api.go 3.0 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137711387113971140711417114271143711447114571146711477114871149711507115171152711537115471155711567115771158711597116071161711627116371164711657116671167711687116971170711717117271173711747117571176711777117871179711807118171182711837118471185711867118771188711897119071191711927119371194711957119671197711987119971200712017120271203712047120571206712077120871209712107121171212712137121471215712167121771218712197122071221712227122371224712257122671227712287122971230712317123271233712347123571236712377123871239712407124171242712437124471245712467124771248712497125071251712527125371254712557125671257712587125971260712617126271263712647126571266712677126871269712707127171272712737127471275712767127771278712797128071281712827128371284712857128671287712887128971290712917129271293712947129571296712977129871299713007130171302713037130471305713067130771308713097131071311713127131371314713157131671317713187131971320713217132271323713247132571326713277132871329713307133171332713337133471335713367133771338713397134071341713427134371344713457134671347713487134971350713517135271353713547135571356713577135871359713607136171362713637136471365713667136771368713697137071371713727137371374713757137671377713787137971380713817138271383713847138571386713877138871389713907139171392713937139471395713967139771398713997140071401714027140371404714057140671407714087140971410714117141271413714147141571416714177141871419714207142171422714237142471425714267142771428714297143071431714327143371434714357143671437714387143971440714417144271443714447144571446714477144871449714507145171452714537145471455714567145771458714597146071461714627146371464714657146671467714687146971470714717147271473714747147571476714777147871479714807148171482714837148471485714867148771488714897149071491714927149371494714957149671497714987149971500715017150271503715047150571506715077150871509715107151171512715137151471515715167151771518715197152071521715227152371524715257152671527715287152971530715317153271533715347153571536715377153871539715407154171542715437154471545715467154771548715497155071551715527155371554715557155671557715587155971560715617156271563715647156571566715677156871569715707157171572715737157471575715767157771578715797158071581715827158371584715857158671587715887158971590715917159271593715947159571596715977159871599716007160171602716037160471605716067160771608716097161071611716127161371614716157161671617716187161971620716217162271623716247162571626716277162871629716307163171632716337163471635716367163771638716397164071641716427164371644716457164671647716487164971650716517165271653716547165571656716577165871659716607166171662716637166471665716667166771668716697167071671716727167371674716757167671677716787167971680716817168271683716847168571686716877168871689716907169171692716937169471695716967169771698716997170071701717027170371704717057170671707717087170971710717117171271713717147171571716717177171871719717207172171722717237172471725717267172771728717297173071731717327173371734717357173671737717387173971740717417174271743717447174571746717477174871749717507175171752717537175471755717567175771758717597176071761717627176371764717657176671767717687176971770717717177271773717747177571776717777177871779717807178171782717837178471785717867178771788717897179071791717927179371794717957179671797717987179971800718017180271803718047180571806718077180871809718107181171812718137181471815718167181771818718197182071821718227182371824718257182671827718287182971830718317183271833718347183571836718377183871839718407184171842718437184471845718467184771848718497185071851718527185371854718557185671857718587185971860718617186271863718647186571866718677186871869718707187171872718737187471875718767187771878718797188071881718827188371884718857188671887718887188971890718917189271893718947189571896718977189871899719007190171902719037190471905719067190771908719097191071911719127191371914719157191671917719187191971920719217192271923719247192571926719277192871929719307193171932719337193471935719367193771938719397194071941719427194371944719457194671947719487194971950719517195271953719547195571956719577195871959719607196171962719637196471965719667196771968719697197071971719727197371974719757197671977719787197971980719817198271983719847198571986719877198871989719907199171992719937199471995719967199771998719997200072001720027200372004720057200672007720087200972010720117201272013720147201572016720177201872019720207202172022720237202472025720267202772028720297203072031720327203372034720357203672037720387203972040720417204272043720447204572046720477204872049720507205172052720537205472055720567205772058720597206072061720627206372064720657206672067720687206972070720717207272073720747207572076720777207872079720807208172082720837208472085720867208772088720897209072091720927209372094720957209672097720987209972100721017210272103721047210572106721077210872109721107211172112721137211472115721167211772118721197212072121721227212372124721257212672127721287212972130721317213272133721347213572136721377213872139721407214172142721437214472145721467214772148721497215072151721527215372154721557215672157721587215972160721617216272163721647216572166721677216872169721707217172172721737217472175721767217772178721797218072181721827218372184721857218672187721887218972190721917219272193721947219572196721977219872199722007220172202722037220472205722067220772208722097221072211722127221372214722157221672217722187221972220722217222272223722247222572226722277222872229722307223172232722337223472235722367223772238722397224072241722427224372244722457224672247722487224972250722517225272253722547225572256722577225872259722607226172262722637226472265722667226772268722697227072271722727227372274722757227672277722787227972280722817228272283722847228572286722877228872289722907229172292722937229472295722967229772298722997230072301723027230372304723057230672307723087230972310723117231272313723147231572316723177231872319723207232172322723237232472325723267232772328723297233072331723327233372334723357233672337723387233972340723417234272343723447234572346723477234872349723507235172352723537235472355723567235772358723597236072361723627236372364723657236672367723687236972370723717237272373723747237572376723777237872379723807238172382723837238472385723867238772388723897239072391723927239372394723957239672397723987239972400724017240272403724047240572406724077240872409724107241172412724137241472415724167241772418724197242072421724227242372424724257242672427724287242972430724317243272433724347243572436724377243872439724407244172442724437244472445724467244772448724497245072451724527245372454724557245672457724587245972460724617246272463724647246572466724677246872469724707247172472724737247472475724767247772478724797248072481724827248372484724857248672487724887248972490724917249272493724947249572496724977249872499725007250172502725037250472505725067250772508725097251072511725127251372514725157251672517725187251972520725217252272523725247252572526725277252872529725307253172532725337253472535725367253772538725397254072541725427254372544725457254672547725487254972550725517255272553725547255572556725577255872559725607256172562725637256472565725667256772568725697257072571725727257372574725757257672577725787257972580725817258272583725847258572586725877258872589725907259172592725937259472595725967259772598725997260072601726027260372604726057260672607726087260972610726117261272613726147261572616726177261872619726207262172622726237262472625726267262772628726297263072631726327263372634726357263672637726387263972640726417264272643726447264572646726477264872649726507265172652726537265472655726567265772658726597266072661726627266372664726657266672667726687266972670726717267272673726747267572676726777267872679726807268172682726837268472685726867268772688726897269072691726927269372694726957269672697726987269972700727017270272703727047270572706727077270872709727107271172712727137271472715727167271772718727197272072721727227272372724727257272672727727287272972730727317273272733727347273572736727377273872739727407274172742727437274472745727467274772748727497275072751727527275372754727557275672757727587275972760727617276272763727647276572766727677276872769727707277172772727737277472775727767277772778727797278072781727827278372784727857278672787727887278972790727917279272793727947279572796727977279872799728007280172802728037280472805728067280772808728097281072811728127281372814728157281672817728187281972820728217282272823728247282572826728277282872829728307283172832728337283472835728367283772838728397284072841728427284372844728457284672847728487284972850728517285272853728547285572856728577285872859728607286172862728637286472865728667286772868728697287072871728727287372874728757287672877728787287972880728817288272883728847288572886728877288872889728907289172892728937289472895728967289772898728997290072901729027290372904729057290672907729087290972910729117291272913729147291572916729177291872919729207292172922729237292472925729267292772928729297293072931729327293372934729357293672937729387293972940729417294272943729447294572946729477294872949729507295172952729537295472955729567295772958729597296072961729627296372964729657296672967729687296972970729717297272973729747297572976729777297872979729807298172982729837298472985729867298772988729897299072991729927299372994729957299672997729987299973000730017300273003730047300573006730077300873009730107301173012730137301473015730167301773018730197302073021730227302373024730257302673027730287302973030730317303273033730347303573036730377303873039730407304173042730437304473045730467304773048730497305073051730527305373054730557305673057730587305973060730617306273063730647306573066730677306873069730707307173072730737307473075730767307773078730797308073081730827308373084730857308673087730887308973090730917309273093730947309573096730977309873099731007310173102731037310473105731067310773108731097311073111731127311373114731157311673117731187311973120731217312273123731247312573126731277312873129731307313173132731337313473135731367313773138731397314073141731427314373144731457314673147731487314973150731517315273153731547315573156731577315873159731607316173162731637316473165731667316773168731697317073171731727317373174731757317673177731787317973180731817318273183731847318573186731877318873189731907319173192731937319473195731967319773198731997320073201732027320373204732057320673207732087320973210732117321273213732147321573216732177321873219732207322173222732237322473225732267322773228732297323073231732327323373234732357323673237732387323973240732417324273243732447324573246732477324873249732507325173252732537325473255732567325773258732597326073261732627326373264732657326673267732687326973270732717327273273732747327573276732777327873279732807328173282732837328473285732867328773288732897329073291732927329373294732957329673297732987329973300733017330273303733047330573306733077330873309733107331173312733137331473315733167331773318733197332073321733227332373324733257332673327733287332973330733317333273333733347333573336733377333873339733407334173342733437334473345733467334773348733497335073351733527335373354733557335673357733587335973360733617336273363733647336573366733677336873369733707337173372733737337473375733767337773378733797338073381733827338373384733857338673387733887338973390733917339273393733947339573396733977339873399734007340173402734037340473405734067340773408734097341073411734127341373414734157341673417734187341973420734217342273423734247342573426734277342873429734307343173432734337343473435734367343773438734397344073441734427344373444734457344673447734487344973450734517345273453734547345573456734577345873459734607346173462734637346473465734667346773468734697347073471734727347373474734757347673477734787347973480734817348273483734847348573486734877348873489734907349173492734937349473495734967349773498734997350073501735027350373504735057350673507735087350973510735117351273513735147351573516735177351873519735207352173522735237352473525735267352773528735297353073531735327353373534735357353673537735387353973540735417354273543735447354573546735477354873549735507355173552735537355473555735567355773558735597356073561735627356373564735657356673567735687356973570735717357273573735747357573576735777357873579735807358173582735837358473585735867358773588735897359073591735927359373594735957359673597735987359973600736017360273603736047360573606736077360873609736107361173612736137361473615736167361773618736197362073621736227362373624736257362673627736287362973630736317363273633736347363573636736377363873639736407364173642736437364473645736467364773648736497365073651736527365373654736557365673657736587365973660736617366273663736647366573666736677366873669736707367173672736737367473675736767367773678736797368073681736827368373684736857368673687736887368973690736917369273693736947369573696736977369873699737007370173702737037370473705737067370773708737097371073711737127371373714737157371673717737187371973720737217372273723737247372573726737277372873729737307373173732737337373473735737367373773738737397374073741737427374373744737457374673747737487374973750737517375273753737547375573756737577375873759737607376173762737637376473765737667376773768737697377073771737727377373774737757377673777737787377973780737817378273783737847378573786737877378873789737907379173792737937379473795737967379773798737997380073801738027380373804738057380673807738087380973810738117381273813738147381573816738177381873819738207382173822738237382473825738267382773828738297383073831738327383373834738357383673837738387383973840738417384273843738447384573846738477384873849738507385173852738537385473855738567385773858738597386073861738627386373864738657386673867738687386973870738717387273873738747387573876738777387873879738807388173882738837388473885738867388773888738897389073891738927389373894738957389673897738987389973900739017390273903739047390573906739077390873909739107391173912739137391473915739167391773918739197392073921739227392373924739257392673927739287392973930739317393273933739347393573936739377393873939739407394173942739437394473945739467394773948739497395073951739527395373954739557395673957739587395973960739617396273963739647396573966739677396873969739707397173972739737397473975739767397773978739797398073981739827398373984739857398673987739887398973990739917399273993739947399573996739977399873999740007400174002740037400474005740067400774008740097401074011740127401374014740157401674017740187401974020740217402274023740247402574026740277402874029740307403174032740337403474035740367403774038740397404074041740427404374044740457404674047740487404974050740517405274053740547405574056740577405874059740607406174062740637406474065740667406774068740697407074071740727407374074740757407674077740787407974080740817408274083740847408574086740877408874089740907409174092740937409474095740967409774098740997410074101741027410374104741057410674107741087410974110741117411274113741147411574116741177411874119741207412174122741237412474125741267412774128741297413074131741327413374134741357413674137741387413974140741417414274143741447414574146741477414874149741507415174152741537415474155741567415774158741597416074161741627416374164741657416674167741687416974170741717417274173741747417574176741777417874179741807418174182741837418474185741867418774188741897419074191741927419374194741957419674197741987419974200742017420274203742047420574206742077420874209742107421174212742137421474215742167421774218742197422074221742227422374224742257422674227742287422974230742317423274233742347423574236742377423874239742407424174242742437424474245742467424774248742497425074251742527425374254742557425674257742587425974260742617426274263742647426574266742677426874269742707427174272742737427474275742767427774278742797428074281742827428374284742857428674287742887428974290742917429274293742947429574296742977429874299743007430174302743037430474305743067430774308743097431074311743127431374314743157431674317743187431974320743217432274323743247432574326743277432874329743307433174332743337433474335743367433774338743397434074341743427434374344743457434674347743487434974350743517435274353743547435574356743577435874359743607436174362743637436474365743667436774368743697437074371743727437374374743757437674377743787437974380743817438274383743847438574386743877438874389743907439174392743937439474395743967439774398743997440074401744027440374404744057440674407744087440974410744117441274413744147441574416744177441874419744207442174422744237442474425744267442774428744297443074431744327443374434744357443674437744387443974440744417444274443744447444574446744477444874449744507445174452744537445474455744567445774458744597446074461744627446374464744657446674467744687446974470744717447274473744747447574476744777447874479744807448174482744837448474485744867448774488744897449074491744927449374494744957449674497744987449974500745017450274503745047450574506745077450874509745107451174512745137451474515745167451774518745197452074521745227452374524745257452674527745287452974530745317453274533745347453574536745377453874539745407454174542745437454474545745467454774548745497455074551745527455374554745557455674557745587455974560745617456274563745647456574566745677456874569745707457174572745737457474575745767457774578745797458074581745827458374584745857458674587745887458974590745917459274593745947459574596745977459874599746007460174602746037460474605746067460774608746097461074611746127461374614746157461674617746187461974620746217462274623746247462574626746277462874629746307463174632746337463474635746367463774638746397464074641746427464374644746457464674647746487464974650746517465274653746547465574656746577465874659746607466174662746637466474665746667466774668746697467074671746727467374674746757467674677746787467974680746817468274683746847468574686746877468874689746907469174692746937469474695746967469774698746997470074701747027470374704747057470674707747087470974710747117471274713747147471574716747177471874719747207472174722747237472474725747267472774728747297473074731747327473374734747357473674737747387473974740747417474274743747447474574746747477474874749747507475174752747537475474755747567475774758747597476074761747627476374764747657476674767747687476974770747717477274773747747477574776747777477874779747807478174782747837478474785747867478774788747897479074791747927479374794747957479674797747987479974800748017480274803748047480574806748077480874809748107481174812748137481474815748167481774818748197482074821748227482374824748257482674827748287482974830748317483274833748347483574836748377483874839748407484174842748437484474845748467484774848748497485074851748527485374854748557485674857748587485974860748617486274863748647486574866748677486874869748707487174872748737487474875748767487774878748797488074881748827488374884748857488674887748887488974890748917489274893748947489574896748977489874899749007490174902749037490474905749067490774908749097491074911749127491374914749157491674917749187491974920749217492274923749247492574926749277492874929749307493174932749337493474935749367493774938749397494074941749427494374944749457494674947749487494974950749517495274953749547495574956749577495874959749607496174962749637496474965749667496774968749697497074971749727497374974749757497674977749787497974980749817498274983749847498574986749877498874989749907499174992749937499474995749967499774998749997500075001750027500375004750057500675007750087500975010750117501275013750147501575016750177501875019750207502175022750237502475025750267502775028750297503075031750327503375034750357503675037750387503975040750417504275043750447504575046750477504875049750507505175052750537505475055750567505775058750597506075061750627506375064750657506675067750687506975070750717507275073750747507575076750777507875079750807508175082750837508475085750867508775088750897509075091750927509375094750957509675097750987509975100751017510275103751047510575106751077510875109751107511175112751137511475115751167511775118751197512075121751227512375124751257512675127751287512975130751317513275133751347513575136751377513875139751407514175142751437514475145751467514775148751497515075151751527515375154751557515675157751587515975160751617516275163751647516575166751677516875169751707517175172751737517475175751767517775178751797518075181751827518375184751857518675187751887518975190751917519275193751947519575196751977519875199752007520175202752037520475205752067520775208752097521075211752127521375214752157521675217752187521975220752217522275223752247522575226752277522875229752307523175232752337523475235752367523775238752397524075241752427524375244752457524675247752487524975250752517525275253752547525575256752577525875259752607526175262752637526475265752667526775268752697527075271752727527375274752757527675277752787527975280752817528275283752847528575286752877528875289752907529175292752937529475295752967529775298752997530075301753027530375304753057530675307753087530975310753117531275313753147531575316753177531875319753207532175322753237532475325753267532775328753297533075331753327533375334753357533675337753387533975340753417534275343753447534575346753477534875349753507535175352753537535475355753567535775358753597536075361753627536375364753657536675367753687536975370753717537275373753747537575376753777537875379753807538175382753837538475385753867538775388753897539075391753927539375394753957539675397753987539975400754017540275403754047540575406754077540875409754107541175412754137541475415754167541775418754197542075421754227542375424754257542675427754287542975430754317543275433754347543575436754377543875439754407544175442754437544475445754467544775448754497545075451754527545375454754557545675457754587545975460754617546275463754647546575466754677546875469754707547175472754737547475475754767547775478754797548075481754827548375484754857548675487754887548975490754917549275493754947549575496754977549875499755007550175502755037550475505755067550775508755097551075511755127551375514755157551675517755187551975520755217552275523755247552575526755277552875529755307553175532755337553475535755367553775538755397554075541755427554375544755457554675547755487554975550755517555275553755547555575556755577555875559755607556175562755637556475565755667556775568755697557075571755727557375574755757557675577755787557975580755817558275583755847558575586755877558875589755907559175592755937559475595755967559775598755997560075601756027560375604756057560675607756087560975610756117561275613756147561575616756177561875619756207562175622756237562475625756267562775628756297563075631756327563375634756357563675637756387563975640756417564275643756447564575646756477564875649756507565175652756537565475655756567565775658756597566075661756627566375664756657566675667756687566975670756717567275673756747567575676756777567875679756807568175682756837568475685756867568775688756897569075691756927569375694756957569675697756987569975700757017570275703757047570575706757077570875709757107571175712757137571475715757167571775718757197572075721757227572375724757257572675727757287572975730757317573275733757347573575736757377573875739757407574175742757437574475745757467574775748757497575075751757527575375754757557575675757757587575975760757617576275763757647576575766757677576875769757707577175772757737577475775757767577775778757797578075781757827578375784757857578675787757887578975790757917579275793757947579575796757977579875799758007580175802758037580475805758067580775808758097581075811758127581375814758157581675817758187581975820758217582275823758247582575826758277582875829758307583175832758337583475835758367583775838758397584075841758427584375844758457584675847758487584975850758517585275853758547585575856758577585875859758607586175862758637586475865758667586775868758697587075871758727587375874758757587675877758787587975880758817588275883758847588575886758877588875889758907589175892758937589475895758967589775898758997590075901759027590375904759057590675907759087590975910759117591275913759147591575916759177591875919759207592175922759237592475925759267592775928759297593075931759327593375934759357593675937759387593975940759417594275943759447594575946759477594875949759507595175952759537595475955759567595775958759597596075961759627596375964759657596675967759687596975970759717597275973759747597575976759777597875979759807598175982759837598475985759867598775988759897599075991759927599375994759957599675997759987599976000760017600276003760047600576006760077600876009760107601176012760137601476015760167601776018760197602076021760227602376024760257602676027760287602976030760317603276033760347603576036760377603876039760407604176042760437604476045760467604776048760497605076051760527605376054760557605676057760587605976060760617606276063760647606576066760677606876069760707607176072760737607476075760767607776078760797608076081760827608376084760857608676087760887608976090760917609276093760947609576096760977609876099761007610176102761037610476105761067610776108761097611076111761127611376114761157611676117761187611976120761217612276123761247612576126761277612876129761307613176132761337613476135761367613776138761397614076141761427614376144761457614676147761487614976150761517615276153761547615576156761577615876159761607616176162761637616476165761667616776168761697617076171761727617376174761757617676177761787617976180761817618276183761847618576186761877618876189761907619176192761937619476195761967619776198761997620076201762027620376204762057620676207762087620976210762117621276213762147621576216762177621876219762207622176222762237622476225762267622776228762297623076231762327623376234762357623676237762387623976240762417624276243762447624576246762477624876249762507625176252762537625476255762567625776258762597626076261762627626376264762657626676267762687626976270762717627276273762747627576276762777627876279762807628176282762837628476285762867628776288762897629076291762927629376294762957629676297762987629976300763017630276303763047630576306763077630876309763107631176312763137631476315763167631776318763197632076321763227632376324763257632676327763287632976330763317633276333763347633576336763377633876339763407634176342763437634476345763467634776348763497635076351763527635376354763557635676357763587635976360763617636276363763647636576366763677636876369763707637176372763737637476375763767637776378763797638076381763827638376384763857638676387763887638976390763917639276393763947639576396763977639876399764007640176402764037640476405764067640776408764097641076411764127641376414764157641676417764187641976420764217642276423764247642576426764277642876429764307643176432764337643476435764367643776438764397644076441764427644376444764457644676447764487644976450764517645276453764547645576456764577645876459764607646176462764637646476465764667646776468764697647076471764727647376474764757647676477764787647976480764817648276483764847648576486764877648876489764907649176492764937649476495764967649776498764997650076501765027650376504765057650676507765087650976510765117651276513765147651576516765177651876519765207652176522765237652476525765267652776528765297653076531765327653376534765357653676537765387653976540765417654276543765447654576546765477654876549765507655176552765537655476555765567655776558765597656076561765627656376564765657656676567765687656976570765717657276573765747657576576765777657876579765807658176582765837658476585765867658776588765897659076591765927659376594765957659676597765987659976600766017660276603766047660576606766077660876609766107661176612766137661476615766167661776618766197662076621766227662376624766257662676627766287662976630766317663276633766347663576636766377663876639766407664176642766437664476645766467664776648766497665076651766527665376654766557665676657766587665976660766617666276663766647666576666766677666876669766707667176672766737667476675766767667776678766797668076681766827668376684766857668676687766887668976690766917669276693766947669576696766977669876699767007670176702767037670476705767067670776708767097671076711767127671376714767157671676717767187671976720767217672276723767247672576726767277672876729767307673176732767337673476735767367673776738767397674076741767427674376744767457674676747767487674976750767517675276753767547675576756767577675876759767607676176762767637676476765767667676776768767697677076771767727677376774767757677676777767787677976780767817678276783767847678576786767877678876789767907679176792767937679476795767967679776798767997680076801768027680376804768057680676807768087680976810768117681276813768147681576816768177681876819768207682176822768237682476825768267682776828768297683076831768327683376834768357683676837768387683976840768417684276843768447684576846768477684876849768507685176852768537685476855768567685776858768597686076861768627686376864768657686676867768687686976870768717687276873768747687576876768777687876879768807688176882768837688476885768867688776888768897689076891768927689376894768957689676897768987689976900769017690276903769047690576906769077690876909769107691176912769137691476915769167691776918769197692076921769227692376924769257692676927769287692976930769317693276933769347693576936769377693876939769407694176942769437694476945769467694776948769497695076951769527695376954769557695676957769587695976960769617696276963769647696576966769677696876969769707697176972769737697476975769767697776978769797698076981769827698376984769857698676987769887698976990769917699276993769947699576996769977699876999770007700177002770037700477005770067700777008770097701077011770127701377014770157701677017770187701977020770217702277023770247702577026770277702877029770307703177032770337703477035770367703777038770397704077041770427704377044770457704677047770487704977050770517705277053770547705577056770577705877059770607706177062770637706477065770667706777068770697707077071770727707377074770757707677077770787707977080770817708277083770847708577086770877708877089770907709177092770937709477095770967709777098770997710077101771027710377104771057710677107771087710977110771117711277113771147711577116771177711877119771207712177122771237712477125771267712777128771297713077131771327713377134771357713677137771387713977140771417714277143771447714577146771477714877149771507715177152771537715477155771567715777158771597716077161771627716377164771657716677167771687716977170771717717277173771747717577176771777717877179771807718177182771837718477185771867718777188771897719077191771927719377194771957719677197771987719977200772017720277203772047720577206772077720877209772107721177212772137721477215772167721777218772197722077221772227722377224772257722677227772287722977230772317723277233772347723577236772377723877239772407724177242772437724477245772467724777248772497725077251772527725377254772557725677257772587725977260772617726277263772647726577266772677726877269772707727177272772737727477275772767727777278772797728077281772827728377284772857728677287772887728977290772917729277293772947729577296772977729877299773007730177302773037730477305773067730777308773097731077311773127731377314773157731677317773187731977320773217732277323773247732577326773277732877329773307733177332773337733477335773367733777338773397734077341773427734377344773457734677347773487734977350773517735277353773547735577356773577735877359773607736177362773637736477365773667736777368773697737077371773727737377374773757737677377773787737977380773817738277383773847738577386773877738877389773907739177392773937739477395773967739777398773997740077401774027740377404774057740677407774087740977410774117741277413774147741577416774177741877419774207742177422774237742477425774267742777428774297743077431774327743377434774357743677437774387743977440774417744277443774447744577446774477744877449774507745177452774537745477455774567745777458774597746077461774627746377464774657746677467774687746977470774717747277473774747747577476774777747877479774807748177482774837748477485774867748777488774897749077491774927749377494774957749677497774987749977500775017750277503775047750577506775077750877509775107751177512775137751477515775167751777518775197752077521775227752377524775257752677527775287752977530775317753277533775347753577536775377753877539775407754177542775437754477545775467754777548775497755077551775527755377554775557755677557775587755977560775617756277563775647756577566775677756877569775707757177572775737757477575775767757777578775797758077581775827758377584775857758677587775887758977590775917759277593775947759577596775977759877599776007760177602776037760477605776067760777608776097761077611776127761377614776157761677617776187761977620776217762277623776247762577626776277762877629776307763177632776337763477635776367763777638776397764077641776427764377644776457764677647776487764977650776517765277653776547765577656776577765877659776607766177662776637766477665776667766777668776697767077671776727767377674776757767677677776787767977680776817768277683776847768577686776877768877689776907769177692776937769477695776967769777698776997770077701777027770377704777057770677707777087770977710777117771277713777147771577716777177771877719777207772177722777237772477725777267772777728777297773077731777327773377734777357773677737777387773977740777417774277743777447774577746777477774877749777507775177752777537775477755777567775777758777597776077761777627776377764777657776677767777687776977770777717777277773777747777577776777777777877779777807778177782777837778477785777867778777788777897779077791777927779377794777957779677797777987779977800778017780277803778047780577806778077780877809778107781177812778137781477815778167781777818778197782077821778227782377824778257782677827778287782977830778317783277833778347783577836778377783877839778407784177842778437784477845778467784777848778497785077851778527785377854778557785677857778587785977860778617786277863778647786577866778677786877869778707787177872778737787477875778767787777878778797788077881778827788377884778857788677887778887788977890778917789277893778947789577896778977789877899779007790177902779037790477905779067790777908779097791077911779127791377914779157791677917779187791977920779217792277923779247792577926779277792877929779307793177932779337793477935779367793777938779397794077941779427794377944779457794677947779487794977950779517795277953779547795577956779577795877959779607796177962779637796477965779667796777968779697797077971779727797377974779757797677977779787797977980779817798277983779847798577986779877798877989779907799177992779937799477995779967799777998779997800078001780027800378004780057800678007780087800978010780117801278013780147801578016780177801878019780207802178022780237802478025780267802778028780297803078031780327803378034780357803678037780387803978040780417804278043780447804578046780477804878049780507805178052780537805478055780567805778058780597806078061780627806378064780657806678067780687806978070780717807278073780747807578076780777807878079780807808178082780837808478085780867808778088780897809078091780927809378094780957809678097780987809978100781017810278103781047810578106781077810878109781107811178112781137811478115781167811778118781197812078121781227812378124781257812678127781287812978130781317813278133781347813578136781377813878139781407814178142781437814478145781467814778148781497815078151781527815378154781557815678157781587815978160781617816278163781647816578166781677816878169781707817178172781737817478175781767817778178781797818078181781827818378184781857818678187781887818978190781917819278193781947819578196781977819878199782007820178202782037820478205782067820778208782097821078211782127821378214782157821678217782187821978220782217822278223782247822578226782277822878229782307823178232782337823478235782367823778238782397824078241782427824378244782457824678247782487824978250782517825278253782547825578256782577825878259782607826178262782637826478265782667826778268782697827078271782727827378274782757827678277782787827978280782817828278283782847828578286782877828878289782907829178292782937829478295782967829778298782997830078301783027830378304783057830678307783087830978310783117831278313783147831578316783177831878319783207832178322783237832478325783267832778328783297833078331783327833378334783357833678337783387833978340783417834278343783447834578346783477834878349783507835178352783537835478355783567835778358783597836078361783627836378364783657836678367783687836978370783717837278373783747837578376783777837878379783807838178382783837838478385783867838778388783897839078391783927839378394783957839678397783987839978400784017840278403784047840578406784077840878409784107841178412784137841478415784167841778418784197842078421784227842378424784257842678427784287842978430784317843278433784347843578436784377843878439784407844178442784437844478445784467844778448784497845078451784527845378454784557845678457784587845978460784617846278463784647846578466784677846878469784707847178472784737847478475784767847778478784797848078481784827848378484784857848678487784887848978490784917849278493784947849578496784977849878499785007850178502785037850478505785067850778508785097851078511785127851378514785157851678517785187851978520785217852278523785247852578526785277852878529785307853178532785337853478535785367853778538785397854078541785427854378544785457854678547785487854978550785517855278553785547855578556785577855878559785607856178562785637856478565785667856778568785697857078571785727857378574785757857678577785787857978580785817858278583785847858578586785877858878589785907859178592785937859478595785967859778598785997860078601786027860378604786057860678607786087860978610786117861278613786147861578616786177861878619786207862178622786237862478625786267862778628786297863078631786327863378634786357863678637786387863978640786417864278643786447864578646786477864878649786507865178652786537865478655786567865778658786597866078661786627866378664786657866678667786687866978670786717867278673786747867578676786777867878679786807868178682786837868478685786867868778688786897869078691786927869378694786957869678697786987869978700787017870278703787047870578706787077870878709787107871178712787137871478715787167871778718787197872078721787227872378724787257872678727787287872978730787317873278733787347873578736787377873878739787407874178742787437874478745787467874778748787497875078751787527875378754787557875678757787587875978760787617876278763787647876578766787677876878769787707877178772787737877478775787767877778778787797878078781787827878378784787857878678787787887878978790787917879278793787947879578796787977879878799788007880178802788037880478805788067880778808788097881078811788127881378814788157881678817788187881978820788217882278823788247882578826788277882878829788307883178832788337883478835788367883778838788397884078841788427884378844788457884678847788487884978850788517885278853788547885578856788577885878859788607886178862788637886478865788667886778868788697887078871788727887378874788757887678877788787887978880788817888278883788847888578886788877888878889788907889178892788937889478895788967889778898788997890078901789027890378904789057890678907789087890978910789117891278913789147891578916789177891878919789207892178922789237892478925789267892778928789297893078931789327893378934789357893678937789387893978940789417894278943789447894578946789477894878949789507895178952789537895478955789567895778958789597896078961789627896378964789657896678967789687896978970789717897278973789747897578976789777897878979789807898178982789837898478985789867898778988789897899078991789927899378994789957899678997789987899979000790017900279003790047900579006790077900879009790107901179012790137901479015790167901779018790197902079021790227902379024790257902679027790287902979030790317903279033790347903579036790377903879039790407904179042790437904479045790467904779048790497905079051790527905379054790557905679057790587905979060790617906279063790647906579066790677906879069790707907179072790737907479075790767907779078790797908079081790827908379084790857908679087790887908979090790917909279093790947909579096790977909879099791007910179102791037910479105791067910779108791097911079111791127911379114791157911679117791187911979120791217912279123791247912579126791277912879129791307913179132791337913479135791367913779138791397914079141791427914379144791457914679147791487914979150791517915279153791547915579156791577915879159791607916179162791637916479165791667916779168791697917079171791727917379174791757917679177791787917979180791817918279183791847918579186791877918879189791907919179192791937919479195791967919779198791997920079201792027920379204792057920679207792087920979210792117921279213792147921579216792177921879219792207922179222792237922479225792267922779228792297923079231792327923379234792357923679237792387923979240792417924279243792447924579246792477924879249792507925179252792537925479255792567925779258792597926079261792627926379264792657926679267792687926979270792717927279273792747927579276792777927879279792807928179282792837928479285792867928779288792897929079291792927929379294792957929679297792987929979300793017930279303793047930579306793077930879309793107931179312793137931479315793167931779318793197932079321793227932379324793257932679327793287932979330793317933279333793347933579336793377933879339793407934179342793437934479345793467934779348793497935079351793527935379354793557935679357793587935979360793617936279363793647936579366793677936879369793707937179372793737937479375793767937779378793797938079381793827938379384793857938679387793887938979390793917939279393793947939579396793977939879399794007940179402794037940479405794067940779408794097941079411794127941379414794157941679417794187941979420794217942279423794247942579426794277942879429794307943179432794337943479435794367943779438794397944079441794427944379444794457944679447794487944979450794517945279453794547945579456794577945879459794607946179462794637946479465794667946779468794697947079471794727947379474794757947679477794787947979480794817948279483794847948579486794877948879489794907949179492794937949479495794967949779498794997950079501795027950379504795057950679507795087950979510795117951279513795147951579516795177951879519795207952179522795237952479525795267952779528795297953079531795327953379534795357953679537795387953979540795417954279543795447954579546795477954879549795507955179552795537955479555795567955779558795597956079561795627956379564795657956679567795687956979570795717957279573795747957579576795777957879579795807958179582795837958479585795867958779588795897959079591795927959379594795957959679597795987959979600796017960279603796047960579606796077960879609796107961179612796137961479615796167961779618796197962079621796227962379624796257962679627796287962979630796317963279633796347963579636796377963879639796407964179642796437964479645796467964779648796497965079651796527965379654796557965679657796587965979660796617966279663796647966579666796677966879669796707967179672796737967479675796767967779678796797968079681796827968379684796857968679687796887968979690796917969279693796947969579696796977969879699797007970179702797037970479705797067970779708797097971079711797127971379714797157971679717797187971979720797217972279723797247972579726797277972879729797307973179732797337973479735797367973779738797397974079741797427974379744797457974679747797487974979750797517975279753797547975579756797577975879759797607976179762797637976479765797667976779768797697977079771797727977379774797757977679777797787977979780797817978279783797847978579786797877978879789797907979179792797937979479795797967979779798797997980079801798027980379804798057980679807798087980979810798117981279813798147981579816798177981879819798207982179822798237982479825798267982779828798297983079831798327983379834798357983679837798387983979840798417984279843798447984579846798477984879849798507985179852798537985479855798567985779858798597986079861798627986379864798657986679867798687986979870798717987279873798747987579876798777987879879798807988179882798837988479885798867988779888798897989079891798927989379894798957989679897798987989979900799017990279903799047990579906799077990879909799107991179912799137991479915799167991779918799197992079921799227992379924799257992679927799287992979930799317993279933799347993579936799377993879939799407994179942799437994479945799467994779948799497995079951799527995379954799557995679957799587995979960799617996279963799647996579966799677996879969799707997179972799737997479975799767997779978799797998079981799827998379984799857998679987799887998979990799917999279993799947999579996799977999879999800008000180002800038000480005800068000780008800098001080011800128001380014800158001680017800188001980020800218002280023800248002580026800278002880029800308003180032800338003480035800368003780038800398004080041800428004380044800458004680047800488004980050800518005280053800548005580056800578005880059800608006180062800638006480065800668006780068800698007080071800728007380074800758007680077800788007980080800818008280083800848008580086800878008880089800908009180092800938009480095800968009780098800998010080101801028010380104801058010680107801088010980110801118011280113801148011580116801178011880119801208012180122801238012480125801268012780128801298013080131801328013380134801358013680137801388013980140801418014280143801448014580146801478014880149801508015180152801538015480155801568015780158801598016080161801628016380164801658016680167801688016980170801718017280173801748017580176801778017880179801808018180182801838018480185801868018780188801898019080191801928019380194801958019680197801988019980200802018020280203802048020580206802078020880209802108021180212802138021480215802168021780218802198022080221802228022380224802258022680227802288022980230802318023280233802348023580236802378023880239802408024180242802438024480245802468024780248802498025080251802528025380254802558025680257802588025980260802618026280263802648026580266802678026880269802708027180272802738027480275802768027780278802798028080281802828028380284802858028680287802888028980290802918029280293802948029580296802978029880299803008030180302803038030480305803068030780308803098031080311803128031380314803158031680317803188031980320803218032280323803248032580326803278032880329803308033180332803338033480335803368033780338803398034080341803428034380344803458034680347803488034980350803518035280353803548035580356803578035880359803608036180362803638036480365803668036780368803698037080371803728037380374803758037680377803788037980380803818038280383803848038580386803878038880389803908039180392803938039480395803968039780398803998040080401804028040380404804058040680407804088040980410804118041280413804148041580416804178041880419804208042180422804238042480425804268042780428804298043080431804328043380434804358043680437804388043980440804418044280443804448044580446804478044880449804508045180452804538045480455804568045780458804598046080461804628046380464804658046680467804688046980470804718047280473804748047580476804778047880479804808048180482804838048480485804868048780488804898049080491804928049380494804958049680497804988049980500805018050280503805048050580506805078050880509805108051180512805138051480515805168051780518805198052080521805228052380524805258052680527805288052980530805318053280533805348053580536805378053880539805408054180542805438054480545805468054780548805498055080551805528055380554805558055680557805588055980560805618056280563805648056580566805678056880569805708057180572805738057480575805768057780578805798058080581805828058380584805858058680587805888058980590805918059280593805948059580596805978059880599806008060180602806038060480605806068060780608806098061080611806128061380614806158061680617806188061980620806218062280623806248062580626806278062880629806308063180632806338063480635806368063780638806398064080641806428064380644806458064680647806488064980650806518065280653806548065580656806578065880659806608066180662806638066480665806668066780668806698067080671806728067380674806758067680677806788067980680806818068280683806848068580686806878068880689806908069180692806938069480695806968069780698806998070080701807028070380704807058070680707807088070980710807118071280713807148071580716807178071880719807208072180722807238072480725807268072780728807298073080731807328073380734807358073680737807388073980740807418074280743807448074580746807478074880749807508075180752807538075480755807568075780758807598076080761807628076380764807658076680767807688076980770807718077280773807748077580776807778077880779807808078180782807838078480785807868078780788807898079080791807928079380794807958079680797807988079980800808018080280803808048080580806808078080880809808108081180812808138081480815808168081780818808198082080821808228082380824808258082680827808288082980830808318083280833808348083580836808378083880839808408084180842808438084480845808468084780848808498085080851808528085380854808558085680857808588085980860808618086280863808648086580866808678086880869808708087180872808738087480875808768087780878808798088080881808828088380884808858088680887808888088980890808918089280893808948089580896808978089880899809008090180902809038090480905809068090780908809098091080911809128091380914809158091680917809188091980920809218092280923809248092580926809278092880929809308093180932809338093480935809368093780938809398094080941809428094380944809458094680947809488094980950809518095280953809548095580956809578095880959809608096180962809638096480965809668096780968809698097080971809728097380974809758097680977809788097980980809818098280983809848098580986809878098880989809908099180992809938099480995809968099780998809998100081001810028100381004810058100681007810088100981010810118101281013810148101581016810178101881019810208102181022810238102481025810268102781028810298103081031810328103381034810358103681037810388103981040810418104281043810448104581046810478104881049810508105181052810538105481055810568105781058810598106081061810628106381064810658106681067810688106981070810718107281073810748107581076810778107881079810808108181082810838108481085810868108781088810898109081091810928109381094810958109681097810988109981100811018110281103811048110581106811078110881109811108111181112811138111481115811168111781118811198112081121811228112381124811258112681127811288112981130811318113281133811348113581136811378113881139811408114181142811438114481145811468114781148811498115081151811528115381154811558115681157811588115981160811618116281163811648116581166811678116881169811708117181172811738117481175811768117781178811798118081181811828118381184811858118681187811888118981190811918119281193811948119581196811978119881199812008120181202812038120481205812068120781208812098121081211812128121381214812158121681217812188121981220812218122281223812248122581226812278122881229812308123181232812338123481235812368123781238812398124081241812428124381244812458124681247812488124981250812518125281253812548125581256812578125881259812608126181262812638126481265812668126781268812698127081271812728127381274812758127681277812788127981280812818128281283812848128581286812878128881289812908129181292812938129481295812968129781298812998130081301813028130381304813058130681307813088130981310813118131281313813148131581316813178131881319813208132181322813238132481325813268132781328813298133081331813328133381334813358133681337813388133981340813418134281343813448134581346813478134881349813508135181352813538135481355813568135781358813598136081361813628136381364813658136681367813688136981370813718137281373813748137581376813778137881379813808138181382813838138481385813868138781388813898139081391813928139381394813958139681397813988139981400814018140281403814048140581406814078140881409814108141181412814138141481415814168141781418814198142081421814228142381424814258142681427814288142981430814318143281433814348143581436814378143881439814408144181442814438144481445814468144781448814498145081451814528145381454814558145681457814588145981460814618146281463814648146581466814678146881469814708147181472814738147481475814768147781478814798148081481814828148381484814858148681487814888148981490814918149281493814948149581496814978149881499815008150181502815038150481505815068150781508815098151081511815128151381514815158151681517815188151981520815218152281523815248152581526815278152881529815308153181532815338153481535815368153781538815398154081541815428154381544815458154681547815488154981550815518155281553815548155581556815578155881559815608156181562815638156481565815668156781568815698157081571815728157381574815758157681577815788157981580815818158281583815848158581586815878158881589815908159181592815938159481595815968159781598815998160081601816028160381604816058160681607816088160981610816118161281613816148161581616816178161881619816208162181622816238162481625816268162781628816298163081631816328163381634816358163681637816388163981640816418164281643816448164581646816478164881649816508165181652816538165481655816568165781658816598166081661816628166381664816658166681667816688166981670816718167281673816748167581676816778167881679816808168181682816838168481685816868168781688816898169081691816928169381694816958169681697816988169981700817018170281703817048170581706817078170881709817108171181712817138171481715817168171781718817198172081721817228172381724817258172681727817288172981730817318173281733817348173581736817378173881739817408174181742817438174481745817468174781748817498175081751817528175381754817558175681757817588175981760817618176281763817648176581766817678176881769817708177181772817738177481775817768177781778817798178081781817828178381784817858178681787817888178981790817918179281793817948179581796817978179881799818008180181802818038180481805818068180781808818098181081811818128181381814818158181681817818188181981820818218182281823818248182581826818278182881829818308183181832818338183481835818368183781838818398184081841818428184381844818458184681847818488184981850818518185281853818548185581856818578185881859818608186181862818638186481865818668186781868818698187081871818728187381874818758187681877818788187981880818818188281883818848188581886818878188881889818908189181892818938189481895818968189781898818998190081901819028190381904819058190681907819088190981910819118191281913819148191581916819178191881919819208192181922819238192481925819268192781928819298193081931819328193381934819358193681937819388193981940819418194281943819448194581946819478194881949819508195181952819538195481955819568195781958819598196081961819628196381964819658196681967819688196981970819718197281973819748197581976819778197881979819808198181982819838198481985819868198781988819898199081991819928199381994819958199681997819988199982000820018200282003820048200582006820078200882009820108201182012820138201482015820168201782018820198202082021820228202382024820258202682027820288202982030820318203282033820348203582036820378203882039820408204182042820438204482045820468204782048820498205082051820528205382054820558205682057820588205982060820618206282063820648206582066820678206882069820708207182072820738207482075820768207782078820798208082081820828208382084820858208682087820888208982090820918209282093820948209582096820978209882099821008210182102821038210482105821068210782108821098211082111821128211382114821158211682117821188211982120821218212282123821248212582126821278212882129821308213182132821338213482135821368213782138821398214082141821428214382144821458214682147821488214982150821518215282153821548215582156821578215882159821608216182162821638216482165821668216782168821698217082171821728217382174821758217682177821788217982180821818218282183821848218582186821878218882189821908219182192821938219482195821968219782198821998220082201822028220382204822058220682207822088220982210822118221282213822148221582216822178221882219822208222182222822238222482225822268222782228822298223082231822328223382234822358223682237822388223982240822418224282243822448224582246822478224882249822508225182252822538225482255822568225782258822598226082261822628226382264822658226682267822688226982270822718227282273822748227582276822778227882279822808228182282822838228482285822868228782288822898229082291822928229382294822958229682297822988229982300823018230282303823048230582306823078230882309823108231182312823138231482315823168231782318823198232082321823228232382324823258232682327823288232982330823318233282333823348233582336823378233882339823408234182342823438234482345823468234782348823498235082351823528235382354823558235682357823588235982360823618236282363823648236582366823678236882369823708237182372823738237482375823768237782378823798238082381823828238382384823858238682387823888238982390823918239282393823948239582396823978239882399824008240182402824038240482405824068240782408824098241082411824128241382414824158241682417824188241982420824218242282423824248242582426824278242882429824308243182432824338243482435824368243782438824398244082441824428244382444824458244682447824488244982450824518245282453824548245582456824578245882459824608246182462824638246482465824668246782468824698247082471824728247382474824758247682477824788247982480824818248282483824848248582486824878248882489824908249182492824938249482495824968249782498824998250082501825028250382504825058250682507825088250982510825118251282513825148251582516825178251882519825208252182522825238252482525825268252782528825298253082531825328253382534825358253682537825388253982540825418254282543825448254582546825478254882549825508255182552825538255482555825568255782558825598256082561825628256382564825658256682567825688256982570825718257282573825748257582576825778257882579825808258182582825838258482585825868258782588825898259082591825928259382594825958259682597825988259982600826018260282603826048260582606826078260882609826108261182612826138261482615826168261782618826198262082621826228262382624826258262682627826288262982630826318263282633826348263582636826378263882639826408264182642826438264482645826468264782648826498265082651826528265382654826558265682657826588265982660826618266282663826648266582666826678266882669826708267182672826738267482675826768267782678826798268082681826828268382684826858268682687826888268982690826918269282693826948269582696826978269882699827008270182702827038270482705827068270782708827098271082711827128271382714827158271682717827188271982720827218272282723827248272582726827278272882729827308273182732827338273482735827368273782738827398274082741827428274382744827458274682747827488274982750827518275282753827548275582756827578275882759827608276182762827638276482765827668276782768827698277082771827728277382774827758277682777827788277982780827818278282783827848278582786827878278882789827908279182792827938279482795827968279782798827998280082801828028280382804828058280682807828088280982810828118281282813828148281582816828178281882819828208282182822828238282482825828268282782828828298283082831828328283382834828358283682837828388283982840828418284282843828448284582846828478284882849828508285182852828538285482855828568285782858828598286082861828628286382864828658286682867828688286982870828718287282873828748287582876828778287882879828808288182882828838288482885828868288782888828898289082891828928289382894828958289682897828988289982900829018290282903829048290582906829078290882909829108291182912829138291482915829168291782918829198292082921829228292382924829258292682927829288292982930829318293282933829348293582936829378293882939829408294182942829438294482945829468294782948829498295082951829528295382954829558295682957829588295982960829618296282963829648296582966829678296882969829708297182972829738297482975829768297782978829798298082981829828298382984829858298682987829888298982990829918299282993829948299582996829978299882999830008300183002830038300483005830068300783008830098301083011830128301383014830158301683017830188301983020830218302283023830248302583026830278302883029830308303183032830338303483035830368303783038830398304083041830428304383044830458304683047830488304983050830518305283053830548305583056830578305883059830608306183062830638306483065830668306783068830698307083071830728307383074830758307683077830788307983080830818308283083830848308583086830878308883089830908309183092830938309483095830968309783098830998310083101831028310383104831058310683107831088310983110831118311283113831148311583116831178311883119831208312183122831238312483125831268312783128831298313083131831328313383134831358313683137831388313983140831418314283143831448314583146831478314883149831508315183152831538315483155831568315783158831598316083161831628316383164831658316683167831688316983170831718317283173831748317583176831778317883179831808318183182831838318483185831868318783188831898319083191831928319383194831958319683197831988319983200832018320283203832048320583206832078320883209832108321183212832138321483215832168321783218832198322083221832228322383224832258322683227832288322983230832318323283233832348323583236832378323883239832408324183242832438324483245832468324783248832498325083251832528325383254832558325683257832588325983260832618326283263832648326583266832678326883269832708327183272832738327483275832768327783278832798328083281832828328383284832858328683287832888328983290832918329283293832948329583296832978329883299833008330183302833038330483305833068330783308833098331083311833128331383314833158331683317833188331983320833218332283323833248332583326833278332883329833308333183332833338333483335833368333783338833398334083341833428334383344833458334683347833488334983350833518335283353833548335583356833578335883359833608336183362833638336483365833668336783368833698337083371833728337383374833758337683377833788337983380833818338283383833848338583386833878338883389833908339183392833938339483395833968339783398833998340083401834028340383404834058340683407834088340983410834118341283413834148341583416834178341883419834208342183422834238342483425834268342783428834298343083431834328343383434834358343683437834388343983440834418344283443834448344583446834478344883449834508345183452834538345483455834568345783458834598346083461834628346383464834658346683467834688346983470834718347283473834748347583476834778347883479834808348183482834838348483485834868348783488834898349083491834928349383494834958349683497834988349983500835018350283503835048350583506835078350883509835108351183512835138351483515835168351783518835198352083521835228352383524835258352683527835288352983530835318353283533835348353583536835378353883539835408354183542835438354483545835468354783548835498355083551835528355383554835558355683557835588355983560835618356283563835648356583566835678356883569835708357183572835738357483575835768357783578835798358083581835828358383584835858358683587835888358983590835918359283593835948359583596835978359883599836008360183602836038360483605836068360783608836098361083611836128361383614836158361683617836188361983620836218362283623836248362583626836278362883629836308363183632836338363483635836368363783638836398364083641836428364383644836458364683647836488364983650836518365283653836548365583656836578365883659836608366183662836638366483665836668366783668836698367083671836728367383674836758367683677836788367983680836818368283683836848368583686836878368883689836908369183692836938369483695836968369783698836998370083701837028370383704837058370683707837088370983710837118371283713837148371583716837178371883719837208372183722837238372483725837268372783728837298373083731837328373383734837358373683737837388373983740837418374283743837448374583746837478374883749837508375183752837538375483755837568375783758837598376083761837628376383764837658376683767837688376983770837718377283773837748377583776837778377883779837808378183782837838378483785837868378783788837898379083791837928379383794837958379683797837988379983800838018380283803838048380583806838078380883809838108381183812838138381483815838168381783818838198382083821838228382383824838258382683827838288382983830838318383283833838348383583836838378383883839838408384183842838438384483845838468384783848838498385083851838528385383854838558385683857838588385983860838618386283863838648386583866838678386883869838708387183872838738387483875838768387783878838798388083881838828388383884838858388683887838888388983890838918389283893838948389583896838978389883899839008390183902839038390483905839068390783908839098391083911839128391383914839158391683917839188391983920839218392283923839248392583926839278392883929839308393183932839338393483935839368393783938839398394083941839428394383944839458394683947839488394983950839518395283953839548395583956839578395883959839608396183962839638396483965839668396783968839698397083971839728397383974839758397683977839788397983980839818398283983839848398583986839878398883989839908399183992839938399483995839968399783998839998400084001840028400384004840058400684007840088400984010840118401284013840148401584016840178401884019840208402184022840238402484025840268402784028840298403084031840328403384034840358403684037840388403984040840418404284043840448404584046840478404884049840508405184052840538405484055840568405784058840598406084061840628406384064840658406684067840688406984070840718407284073840748407584076840778407884079840808408184082840838408484085840868408784088840898409084091840928409384094840958409684097840988409984100841018410284103841048410584106841078410884109841108411184112841138411484115841168411784118841198412084121841228412384124841258412684127841288412984130841318413284133841348413584136841378413884139841408414184142841438414484145841468414784148841498415084151841528415384154841558415684157841588415984160841618416284163841648416584166841678416884169841708417184172841738417484175841768417784178841798418084181841828418384184841858418684187841888418984190841918419284193841948419584196841978419884199842008420184202842038420484205842068420784208842098421084211842128421384214842158421684217842188421984220842218422284223842248422584226842278422884229842308423184232842338423484235842368423784238842398424084241842428424384244842458424684247842488424984250842518425284253842548425584256842578425884259842608426184262842638426484265842668426784268842698427084271842728427384274842758427684277842788427984280842818428284283842848428584286842878428884289842908429184292842938429484295842968429784298842998430084301843028430384304843058430684307843088430984310843118431284313843148431584316843178431884319843208432184322843238432484325843268432784328843298433084331843328433384334843358433684337843388433984340843418434284343843448434584346843478434884349843508435184352843538435484355843568435784358843598436084361843628436384364843658436684367843688436984370843718437284373843748437584376843778437884379843808438184382843838438484385843868438784388843898439084391843928439384394843958439684397843988439984400844018440284403844048440584406844078440884409844108441184412844138441484415844168441784418844198442084421844228442384424844258442684427844288442984430844318443284433844348443584436844378443884439844408444184442844438444484445844468444784448844498445084451844528445384454844558445684457844588445984460844618446284463844648446584466844678446884469844708447184472844738447484475844768447784478844798448084481844828448384484844858448684487844888448984490844918449284493844948449584496844978449884499845008450184502845038450484505845068450784508845098451084511845128451384514845158451684517845188451984520845218452284523845248452584526845278452884529845308453184532845338453484535845368453784538845398454084541845428454384544845458454684547845488454984550845518455284553845548455584556845578455884559845608456184562845638456484565845668456784568845698457084571845728457384574845758457684577845788457984580845818458284583845848458584586845878458884589845908459184592845938459484595845968459784598845998460084601846028460384604846058460684607846088460984610846118461284613846148461584616846178461884619846208462184622846238462484625846268462784628846298463084631846328463384634846358463684637846388463984640846418464284643846448464584646846478464884649846508465184652846538465484655846568465784658846598466084661846628466384664846658466684667846688466984670846718467284673846748467584676846778467884679846808468184682846838468484685846868468784688846898469084691846928469384694846958469684697846988469984700847018470284703847048470584706847078470884709847108471184712847138471484715847168471784718847198472084721847228472384724847258472684727847288472984730847318473284733847348473584736847378473884739847408474184742847438474484745847468474784748847498475084751847528475384754847558475684757847588475984760847618476284763847648476584766847678476884769847708477184772847738477484775847768477784778847798478084781847828478384784847858478684787847888478984790847918479284793847948479584796847978479884799848008480184802848038480484805848068480784808848098481084811848128481384814848158481684817848188481984820848218482284823848248482584826848278482884829848308483184832848338483484835848368483784838848398484084841848428484384844848458484684847848488484984850848518485284853848548485584856848578485884859848608486184862848638486484865848668486784868848698487084871848728487384874848758487684877848788487984880848818488284883848848488584886848878488884889848908489184892848938489484895848968489784898848998490084901849028490384904849058490684907849088490984910849118491284913849148491584916849178491884919849208492184922849238492484925849268492784928849298493084931849328493384934849358493684937849388493984940849418494284943849448494584946849478494884949849508495184952849538495484955849568495784958849598496084961849628496384964849658496684967849688496984970849718497284973849748497584976849778497884979849808498184982849838498484985849868498784988849898499084991849928499384994849958499684997849988499985000850018500285003850048500585006850078500885009850108501185012850138501485015850168501785018850198502085021850228502385024850258502685027850288502985030850318503285033850348503585036850378503885039850408504185042850438504485045850468504785048850498505085051850528505385054850558505685057850588505985060850618506285063850648506585066850678506885069850708507185072850738507485075850768507785078850798508085081850828508385084850858508685087850888508985090850918509285093850948509585096850978509885099851008510185102851038510485105851068510785108851098511085111851128511385114851158511685117851188511985120851218512285123851248512585126851278512885129851308513185132851338513485135851368513785138851398514085141851428514385144851458514685147851488514985150851518515285153851548515585156851578515885159851608516185162851638516485165851668516785168851698517085171851728517385174851758517685177851788517985180851818518285183851848518585186851878518885189851908519185192851938519485195851968519785198851998520085201852028520385204852058520685207852088520985210852118521285213852148521585216852178521885219852208522185222852238522485225852268522785228852298523085231852328523385234852358523685237852388523985240852418524285243852448524585246852478524885249852508525185252852538525485255852568525785258852598526085261852628526385264852658526685267852688526985270852718527285273852748527585276852778527885279852808528185282852838528485285852868528785288852898529085291852928529385294852958529685297852988529985300853018530285303853048530585306853078530885309853108531185312853138531485315853168531785318853198532085321853228532385324853258532685327853288532985330853318533285333853348533585336853378533885339853408534185342853438534485345853468534785348853498535085351853528535385354853558535685357853588535985360853618536285363853648536585366853678536885369853708537185372853738537485375853768537785378853798538085381853828538385384853858538685387853888538985390853918539285393853948539585396853978539885399854008540185402854038540485405854068540785408854098541085411854128541385414854158541685417854188541985420854218542285423854248542585426854278542885429854308543185432854338543485435854368543785438854398544085441854428544385444854458544685447854488544985450854518545285453854548545585456854578545885459854608546185462854638546485465854668546785468854698547085471854728547385474854758547685477854788547985480854818548285483854848548585486854878548885489854908549185492854938549485495854968549785498854998550085501855028550385504855058550685507855088550985510855118551285513855148551585516855178551885519855208552185522855238552485525855268552785528855298553085531855328553385534855358553685537855388553985540855418554285543855448554585546855478554885549855508555185552855538555485555855568555785558855598556085561855628556385564855658556685567855688556985570855718557285573855748557585576855778557885579855808558185582855838558485585855868558785588855898559085591855928559385594855958559685597855988559985600856018560285603856048560585606856078560885609856108561185612856138561485615856168561785618856198562085621856228562385624856258562685627856288562985630856318563285633856348563585636856378563885639856408564185642856438564485645856468564785648856498565085651856528565385654856558565685657856588565985660856618566285663856648566585666856678566885669856708567185672856738567485675856768567785678856798568085681856828568385684856858568685687856888568985690856918569285693856948569585696856978569885699857008570185702857038570485705857068570785708857098571085711857128571385714857158571685717857188571985720857218572285723857248572585726857278572885729857308573185732857338573485735857368573785738857398574085741857428574385744857458574685747857488574985750857518575285753857548575585756857578575885759857608576185762857638576485765857668576785768857698577085771857728577385774857758577685777857788577985780857818578285783857848578585786857878578885789857908579185792857938579485795857968579785798857998580085801858028580385804858058580685807858088580985810858118581285813858148581585816858178581885819858208582185822858238582485825858268582785828858298583085831858328583385834858358583685837858388583985840858418584285843858448584585846858478584885849858508585185852858538585485855858568585785858858598586085861858628586385864858658586685867858688586985870858718587285873858748587585876858778587885879858808588185882858838588485885858868588785888858898589085891858928589385894858958589685897858988589985900859018590285903859048590585906859078590885909859108591185912859138591485915859168591785918859198592085921859228592385924859258592685927859288592985930859318593285933859348593585936859378593885939859408594185942859438594485945859468594785948859498595085951859528595385954859558595685957859588595985960859618596285963859648596585966859678596885969859708597185972859738597485975859768597785978859798598085981859828598385984859858598685987859888598985990859918599285993859948599585996859978599885999860008600186002860038600486005860068600786008860098601086011860128601386014860158601686017860188601986020860218602286023860248602586026860278602886029860308603186032860338603486035860368603786038860398604086041860428604386044860458604686047860488604986050860518605286053860548605586056860578605886059860608606186062860638606486065860668606786068860698607086071860728607386074860758607686077860788607986080860818608286083860848608586086860878608886089860908609186092860938609486095860968609786098860998610086101861028610386104861058610686107861088610986110861118611286113861148611586116861178611886119861208612186122861238612486125861268612786128861298613086131861328613386134861358613686137861388613986140861418614286143861448614586146861478614886149861508615186152861538615486155861568615786158861598616086161861628616386164861658616686167861688616986170861718617286173861748617586176861778617886179861808618186182861838618486185861868618786188861898619086191861928619386194861958619686197861988619986200862018620286203862048620586206862078620886209862108621186212862138621486215862168621786218862198622086221862228622386224862258622686227862288622986230862318623286233862348623586236862378623886239862408624186242862438624486245862468624786248862498625086251862528625386254862558625686257862588625986260862618626286263862648626586266862678626886269862708627186272862738627486275862768627786278862798628086281862828628386284862858628686287862888628986290862918629286293862948629586296862978629886299863008630186302863038630486305863068630786308863098631086311863128631386314863158631686317863188631986320863218632286323863248632586326863278632886329863308633186332863338633486335863368633786338863398634086341863428634386344863458634686347863488634986350863518635286353863548635586356863578635886359863608636186362863638636486365863668636786368863698637086371863728637386374863758637686377863788637986380863818638286383863848638586386863878638886389863908639186392863938639486395863968639786398863998640086401864028640386404864058640686407864088640986410864118641286413864148641586416864178641886419864208642186422864238642486425864268642786428864298643086431864328643386434864358643686437864388643986440864418644286443864448644586446864478644886449864508645186452864538645486455864568645786458864598646086461864628646386464864658646686467864688646986470864718647286473864748647586476864778647886479864808648186482864838648486485864868648786488864898649086491864928649386494864958649686497864988649986500865018650286503865048650586506865078650886509865108651186512865138651486515865168651786518865198652086521865228652386524865258652686527865288652986530865318653286533865348653586536865378653886539865408654186542865438654486545
  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. // successfully.
  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 opAcceptTransitGatewayVpcAttachment = "AcceptTransitGatewayVpcAttachment"
  82. // AcceptTransitGatewayVpcAttachmentRequest generates a "aws/request.Request" representing the
  83. // client's request for the AcceptTransitGatewayVpcAttachment operation. The "output" return
  84. // value will be populated with the request's response once the request completes
  85. // successfully.
  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 AcceptTransitGatewayVpcAttachment for more information on using the AcceptTransitGatewayVpcAttachment
  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 AcceptTransitGatewayVpcAttachmentRequest method.
  98. // req, resp := client.AcceptTransitGatewayVpcAttachmentRequest(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/AcceptTransitGatewayVpcAttachment
  106. func (c *EC2) AcceptTransitGatewayVpcAttachmentRequest(input *AcceptTransitGatewayVpcAttachmentInput) (req *request.Request, output *AcceptTransitGatewayVpcAttachmentOutput) {
  107. op := &request.Operation{
  108. Name: opAcceptTransitGatewayVpcAttachment,
  109. HTTPMethod: "POST",
  110. HTTPPath: "/",
  111. }
  112. if input == nil {
  113. input = &AcceptTransitGatewayVpcAttachmentInput{}
  114. }
  115. output = &AcceptTransitGatewayVpcAttachmentOutput{}
  116. req = c.newRequest(op, input, output)
  117. return
  118. }
  119. // AcceptTransitGatewayVpcAttachment API operation for Amazon Elastic Compute Cloud.
  120. //
  121. // Accepts a request to attach a VPC to a transit gateway.
  122. //
  123. // The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments
  124. // to view your pending VPC attachment requests. Use RejectTransitGatewayVpcAttachment
  125. // to reject a VPC attachment request.
  126. //
  127. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  128. // with awserr.Error's Code and Message methods to get detailed information about
  129. // the error.
  130. //
  131. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  132. // API operation AcceptTransitGatewayVpcAttachment for usage and error information.
  133. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptTransitGatewayVpcAttachment
  134. func (c *EC2) AcceptTransitGatewayVpcAttachment(input *AcceptTransitGatewayVpcAttachmentInput) (*AcceptTransitGatewayVpcAttachmentOutput, error) {
  135. req, out := c.AcceptTransitGatewayVpcAttachmentRequest(input)
  136. return out, req.Send()
  137. }
  138. // AcceptTransitGatewayVpcAttachmentWithContext is the same as AcceptTransitGatewayVpcAttachment with the addition of
  139. // the ability to pass a context and additional request options.
  140. //
  141. // See AcceptTransitGatewayVpcAttachment for details on how to use this API operation.
  142. //
  143. // The context must be non-nil and will be used for request cancellation. If
  144. // the context is nil a panic will occur. In the future the SDK may create
  145. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  146. // for more information on using Contexts.
  147. func (c *EC2) AcceptTransitGatewayVpcAttachmentWithContext(ctx aws.Context, input *AcceptTransitGatewayVpcAttachmentInput, opts ...request.Option) (*AcceptTransitGatewayVpcAttachmentOutput, error) {
  148. req, out := c.AcceptTransitGatewayVpcAttachmentRequest(input)
  149. req.SetContext(ctx)
  150. req.ApplyOptions(opts...)
  151. return out, req.Send()
  152. }
  153. const opAcceptVpcEndpointConnections = "AcceptVpcEndpointConnections"
  154. // AcceptVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the
  155. // client's request for the AcceptVpcEndpointConnections operation. The "output" return
  156. // value will be populated with the request's response once the request completes
  157. // successfully.
  158. //
  159. // Use "Send" method on the returned Request to send the API call to the service.
  160. // the "output" return value is not valid until after Send returns without error.
  161. //
  162. // See AcceptVpcEndpointConnections for more information on using the AcceptVpcEndpointConnections
  163. // API call, and error handling.
  164. //
  165. // This method is useful when you want to inject custom logic or configuration
  166. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  167. //
  168. //
  169. // // Example sending a request using the AcceptVpcEndpointConnectionsRequest method.
  170. // req, resp := client.AcceptVpcEndpointConnectionsRequest(params)
  171. //
  172. // err := req.Send()
  173. // if err == nil { // resp is now filled
  174. // fmt.Println(resp)
  175. // }
  176. //
  177. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcEndpointConnections
  178. func (c *EC2) AcceptVpcEndpointConnectionsRequest(input *AcceptVpcEndpointConnectionsInput) (req *request.Request, output *AcceptVpcEndpointConnectionsOutput) {
  179. op := &request.Operation{
  180. Name: opAcceptVpcEndpointConnections,
  181. HTTPMethod: "POST",
  182. HTTPPath: "/",
  183. }
  184. if input == nil {
  185. input = &AcceptVpcEndpointConnectionsInput{}
  186. }
  187. output = &AcceptVpcEndpointConnectionsOutput{}
  188. req = c.newRequest(op, input, output)
  189. return
  190. }
  191. // AcceptVpcEndpointConnections API operation for Amazon Elastic Compute Cloud.
  192. //
  193. // Accepts one or more interface VPC endpoint connection requests to your VPC
  194. // endpoint service.
  195. //
  196. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  197. // with awserr.Error's Code and Message methods to get detailed information about
  198. // the error.
  199. //
  200. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  201. // API operation AcceptVpcEndpointConnections for usage and error information.
  202. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcEndpointConnections
  203. func (c *EC2) AcceptVpcEndpointConnections(input *AcceptVpcEndpointConnectionsInput) (*AcceptVpcEndpointConnectionsOutput, error) {
  204. req, out := c.AcceptVpcEndpointConnectionsRequest(input)
  205. return out, req.Send()
  206. }
  207. // AcceptVpcEndpointConnectionsWithContext is the same as AcceptVpcEndpointConnections with the addition of
  208. // the ability to pass a context and additional request options.
  209. //
  210. // See AcceptVpcEndpointConnections for details on how to use this API operation.
  211. //
  212. // The context must be non-nil and will be used for request cancellation. If
  213. // the context is nil a panic will occur. In the future the SDK may create
  214. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  215. // for more information on using Contexts.
  216. func (c *EC2) AcceptVpcEndpointConnectionsWithContext(ctx aws.Context, input *AcceptVpcEndpointConnectionsInput, opts ...request.Option) (*AcceptVpcEndpointConnectionsOutput, error) {
  217. req, out := c.AcceptVpcEndpointConnectionsRequest(input)
  218. req.SetContext(ctx)
  219. req.ApplyOptions(opts...)
  220. return out, req.Send()
  221. }
  222. const opAcceptVpcPeeringConnection = "AcceptVpcPeeringConnection"
  223. // AcceptVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  224. // client's request for the AcceptVpcPeeringConnection operation. The "output" return
  225. // value will be populated with the request's response once the request completes
  226. // successfully.
  227. //
  228. // Use "Send" method on the returned Request to send the API call to the service.
  229. // the "output" return value is not valid until after Send returns without error.
  230. //
  231. // See AcceptVpcPeeringConnection for more information on using the AcceptVpcPeeringConnection
  232. // API call, and error handling.
  233. //
  234. // This method is useful when you want to inject custom logic or configuration
  235. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  236. //
  237. //
  238. // // Example sending a request using the AcceptVpcPeeringConnectionRequest method.
  239. // req, resp := client.AcceptVpcPeeringConnectionRequest(params)
  240. //
  241. // err := req.Send()
  242. // if err == nil { // resp is now filled
  243. // fmt.Println(resp)
  244. // }
  245. //
  246. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnection
  247. func (c *EC2) AcceptVpcPeeringConnectionRequest(input *AcceptVpcPeeringConnectionInput) (req *request.Request, output *AcceptVpcPeeringConnectionOutput) {
  248. op := &request.Operation{
  249. Name: opAcceptVpcPeeringConnection,
  250. HTTPMethod: "POST",
  251. HTTPPath: "/",
  252. }
  253. if input == nil {
  254. input = &AcceptVpcPeeringConnectionInput{}
  255. }
  256. output = &AcceptVpcPeeringConnectionOutput{}
  257. req = c.newRequest(op, input, output)
  258. return
  259. }
  260. // AcceptVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  261. //
  262. // Accept a VPC peering connection request. To accept a request, the VPC peering
  263. // connection must be in the pending-acceptance state, and you must be the owner
  264. // of the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding
  265. // VPC peering connection requests.
  266. //
  267. // For an inter-region VPC peering connection request, you must accept the VPC
  268. // peering connection in the region of the accepter VPC.
  269. //
  270. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  271. // with awserr.Error's Code and Message methods to get detailed information about
  272. // the error.
  273. //
  274. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  275. // API operation AcceptVpcPeeringConnection for usage and error information.
  276. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnection
  277. func (c *EC2) AcceptVpcPeeringConnection(input *AcceptVpcPeeringConnectionInput) (*AcceptVpcPeeringConnectionOutput, error) {
  278. req, out := c.AcceptVpcPeeringConnectionRequest(input)
  279. return out, req.Send()
  280. }
  281. // AcceptVpcPeeringConnectionWithContext is the same as AcceptVpcPeeringConnection with the addition of
  282. // the ability to pass a context and additional request options.
  283. //
  284. // See AcceptVpcPeeringConnection for details on how to use this API operation.
  285. //
  286. // The context must be non-nil and will be used for request cancellation. If
  287. // the context is nil a panic will occur. In the future the SDK may create
  288. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  289. // for more information on using Contexts.
  290. func (c *EC2) AcceptVpcPeeringConnectionWithContext(ctx aws.Context, input *AcceptVpcPeeringConnectionInput, opts ...request.Option) (*AcceptVpcPeeringConnectionOutput, error) {
  291. req, out := c.AcceptVpcPeeringConnectionRequest(input)
  292. req.SetContext(ctx)
  293. req.ApplyOptions(opts...)
  294. return out, req.Send()
  295. }
  296. const opAdvertiseByoipCidr = "AdvertiseByoipCidr"
  297. // AdvertiseByoipCidrRequest generates a "aws/request.Request" representing the
  298. // client's request for the AdvertiseByoipCidr operation. The "output" return
  299. // value will be populated with the request's response once the request completes
  300. // successfully.
  301. //
  302. // Use "Send" method on the returned Request to send the API call to the service.
  303. // the "output" return value is not valid until after Send returns without error.
  304. //
  305. // See AdvertiseByoipCidr for more information on using the AdvertiseByoipCidr
  306. // API call, and error handling.
  307. //
  308. // This method is useful when you want to inject custom logic or configuration
  309. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  310. //
  311. //
  312. // // Example sending a request using the AdvertiseByoipCidrRequest method.
  313. // req, resp := client.AdvertiseByoipCidrRequest(params)
  314. //
  315. // err := req.Send()
  316. // if err == nil { // resp is now filled
  317. // fmt.Println(resp)
  318. // }
  319. //
  320. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AdvertiseByoipCidr
  321. func (c *EC2) AdvertiseByoipCidrRequest(input *AdvertiseByoipCidrInput) (req *request.Request, output *AdvertiseByoipCidrOutput) {
  322. op := &request.Operation{
  323. Name: opAdvertiseByoipCidr,
  324. HTTPMethod: "POST",
  325. HTTPPath: "/",
  326. }
  327. if input == nil {
  328. input = &AdvertiseByoipCidrInput{}
  329. }
  330. output = &AdvertiseByoipCidrOutput{}
  331. req = c.newRequest(op, input, output)
  332. return
  333. }
  334. // AdvertiseByoipCidr API operation for Amazon Elastic Compute Cloud.
  335. //
  336. // Advertises an IPv4 address range that is provisioned for use with your AWS
  337. // resources through bring your own IP addresses (BYOIP).
  338. //
  339. // You can perform this operation at most once every 10 seconds, even if you
  340. // specify different address ranges each time.
  341. //
  342. // We recommend that you stop advertising the BYOIP CIDR from other locations
  343. // when you advertise it from AWS. To minimize down time, you can configure
  344. // your AWS resources to use an address from a BYOIP CIDR before it is advertised,
  345. // and then simultaneously stop advertising it from the current location and
  346. // start advertising it through AWS.
  347. //
  348. // It can take a few minutes before traffic to the specified addresses starts
  349. // routing to AWS because of BGP propagation delays.
  350. //
  351. // To stop advertising the BYOIP CIDR, use WithdrawByoipCidr.
  352. //
  353. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  354. // with awserr.Error's Code and Message methods to get detailed information about
  355. // the error.
  356. //
  357. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  358. // API operation AdvertiseByoipCidr for usage and error information.
  359. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AdvertiseByoipCidr
  360. func (c *EC2) AdvertiseByoipCidr(input *AdvertiseByoipCidrInput) (*AdvertiseByoipCidrOutput, error) {
  361. req, out := c.AdvertiseByoipCidrRequest(input)
  362. return out, req.Send()
  363. }
  364. // AdvertiseByoipCidrWithContext is the same as AdvertiseByoipCidr with the addition of
  365. // the ability to pass a context and additional request options.
  366. //
  367. // See AdvertiseByoipCidr for details on how to use this API operation.
  368. //
  369. // The context must be non-nil and will be used for request cancellation. If
  370. // the context is nil a panic will occur. In the future the SDK may create
  371. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  372. // for more information on using Contexts.
  373. func (c *EC2) AdvertiseByoipCidrWithContext(ctx aws.Context, input *AdvertiseByoipCidrInput, opts ...request.Option) (*AdvertiseByoipCidrOutput, error) {
  374. req, out := c.AdvertiseByoipCidrRequest(input)
  375. req.SetContext(ctx)
  376. req.ApplyOptions(opts...)
  377. return out, req.Send()
  378. }
  379. const opAllocateAddress = "AllocateAddress"
  380. // AllocateAddressRequest generates a "aws/request.Request" representing the
  381. // client's request for the AllocateAddress operation. The "output" return
  382. // value will be populated with the request's response once the request completes
  383. // successfully.
  384. //
  385. // Use "Send" method on the returned Request to send the API call to the service.
  386. // the "output" return value is not valid until after Send returns without error.
  387. //
  388. // See AllocateAddress for more information on using the AllocateAddress
  389. // API call, and error handling.
  390. //
  391. // This method is useful when you want to inject custom logic or configuration
  392. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  393. //
  394. //
  395. // // Example sending a request using the AllocateAddressRequest method.
  396. // req, resp := client.AllocateAddressRequest(params)
  397. //
  398. // err := req.Send()
  399. // if err == nil { // resp is now filled
  400. // fmt.Println(resp)
  401. // }
  402. //
  403. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddress
  404. func (c *EC2) AllocateAddressRequest(input *AllocateAddressInput) (req *request.Request, output *AllocateAddressOutput) {
  405. op := &request.Operation{
  406. Name: opAllocateAddress,
  407. HTTPMethod: "POST",
  408. HTTPPath: "/",
  409. }
  410. if input == nil {
  411. input = &AllocateAddressInput{}
  412. }
  413. output = &AllocateAddressOutput{}
  414. req = c.newRequest(op, input, output)
  415. return
  416. }
  417. // AllocateAddress API operation for Amazon Elastic Compute Cloud.
  418. //
  419. // Allocates an Elastic IP address to your AWS account. After you allocate the
  420. // Elastic IP address you can associate it with an instance or network interface.
  421. // After you release an Elastic IP address, it is released to the IP address
  422. // pool and can be allocated to a different AWS account.
  423. //
  424. // You can allocate an Elastic IP address from an address pool owned by AWS
  425. // or from an address pool created from a public IPv4 address range that you
  426. // have brought to AWS for use with your AWS resources using bring your own
  427. // IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses
  428. // (BYOIP) (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html)
  429. // in the Amazon Elastic Compute Cloud User Guide.
  430. //
  431. // [EC2-VPC] If you release an Elastic IP address, you might be able to recover
  432. // it. You cannot recover an Elastic IP address that you released after it is
  433. // allocated to another AWS account. You cannot recover an Elastic IP address
  434. // for EC2-Classic. To attempt to recover an Elastic IP address that you released,
  435. // specify it in this operation.
  436. //
  437. // An Elastic IP address is for use either in the EC2-Classic platform or in
  438. // a VPC. By default, you can allocate 5 Elastic IP addresses for EC2-Classic
  439. // per region and 5 Elastic IP addresses for EC2-VPC per region.
  440. //
  441. // For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  442. // in the Amazon Elastic Compute Cloud User Guide.
  443. //
  444. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  445. // with awserr.Error's Code and Message methods to get detailed information about
  446. // the error.
  447. //
  448. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  449. // API operation AllocateAddress for usage and error information.
  450. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddress
  451. func (c *EC2) AllocateAddress(input *AllocateAddressInput) (*AllocateAddressOutput, error) {
  452. req, out := c.AllocateAddressRequest(input)
  453. return out, req.Send()
  454. }
  455. // AllocateAddressWithContext is the same as AllocateAddress with the addition of
  456. // the ability to pass a context and additional request options.
  457. //
  458. // See AllocateAddress for details on how to use this API operation.
  459. //
  460. // The context must be non-nil and will be used for request cancellation. If
  461. // the context is nil a panic will occur. In the future the SDK may create
  462. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  463. // for more information on using Contexts.
  464. func (c *EC2) AllocateAddressWithContext(ctx aws.Context, input *AllocateAddressInput, opts ...request.Option) (*AllocateAddressOutput, error) {
  465. req, out := c.AllocateAddressRequest(input)
  466. req.SetContext(ctx)
  467. req.ApplyOptions(opts...)
  468. return out, req.Send()
  469. }
  470. const opAllocateHosts = "AllocateHosts"
  471. // AllocateHostsRequest generates a "aws/request.Request" representing the
  472. // client's request for the AllocateHosts operation. The "output" return
  473. // value will be populated with the request's response once the request completes
  474. // successfully.
  475. //
  476. // Use "Send" method on the returned Request to send the API call to the service.
  477. // the "output" return value is not valid until after Send returns without error.
  478. //
  479. // See AllocateHosts for more information on using the AllocateHosts
  480. // API call, and error handling.
  481. //
  482. // This method is useful when you want to inject custom logic or configuration
  483. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  484. //
  485. //
  486. // // Example sending a request using the AllocateHostsRequest method.
  487. // req, resp := client.AllocateHostsRequest(params)
  488. //
  489. // err := req.Send()
  490. // if err == nil { // resp is now filled
  491. // fmt.Println(resp)
  492. // }
  493. //
  494. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHosts
  495. func (c *EC2) AllocateHostsRequest(input *AllocateHostsInput) (req *request.Request, output *AllocateHostsOutput) {
  496. op := &request.Operation{
  497. Name: opAllocateHosts,
  498. HTTPMethod: "POST",
  499. HTTPPath: "/",
  500. }
  501. if input == nil {
  502. input = &AllocateHostsInput{}
  503. }
  504. output = &AllocateHostsOutput{}
  505. req = c.newRequest(op, input, output)
  506. return
  507. }
  508. // AllocateHosts API operation for Amazon Elastic Compute Cloud.
  509. //
  510. // Allocates a Dedicated Host to your account. At a minimum, specify the instance
  511. // size type, Availability Zone, and quantity of hosts to allocate.
  512. //
  513. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  514. // with awserr.Error's Code and Message methods to get detailed information about
  515. // the error.
  516. //
  517. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  518. // API operation AllocateHosts for usage and error information.
  519. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHosts
  520. func (c *EC2) AllocateHosts(input *AllocateHostsInput) (*AllocateHostsOutput, error) {
  521. req, out := c.AllocateHostsRequest(input)
  522. return out, req.Send()
  523. }
  524. // AllocateHostsWithContext is the same as AllocateHosts with the addition of
  525. // the ability to pass a context and additional request options.
  526. //
  527. // See AllocateHosts for details on how to use this API operation.
  528. //
  529. // The context must be non-nil and will be used for request cancellation. If
  530. // the context is nil a panic will occur. In the future the SDK may create
  531. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  532. // for more information on using Contexts.
  533. func (c *EC2) AllocateHostsWithContext(ctx aws.Context, input *AllocateHostsInput, opts ...request.Option) (*AllocateHostsOutput, error) {
  534. req, out := c.AllocateHostsRequest(input)
  535. req.SetContext(ctx)
  536. req.ApplyOptions(opts...)
  537. return out, req.Send()
  538. }
  539. const opApplySecurityGroupsToClientVpnTargetNetwork = "ApplySecurityGroupsToClientVpnTargetNetwork"
  540. // ApplySecurityGroupsToClientVpnTargetNetworkRequest generates a "aws/request.Request" representing the
  541. // client's request for the ApplySecurityGroupsToClientVpnTargetNetwork operation. The "output" return
  542. // value will be populated with the request's response once the request completes
  543. // successfully.
  544. //
  545. // Use "Send" method on the returned Request to send the API call to the service.
  546. // the "output" return value is not valid until after Send returns without error.
  547. //
  548. // See ApplySecurityGroupsToClientVpnTargetNetwork for more information on using the ApplySecurityGroupsToClientVpnTargetNetwork
  549. // API call, and error handling.
  550. //
  551. // This method is useful when you want to inject custom logic or configuration
  552. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  553. //
  554. //
  555. // // Example sending a request using the ApplySecurityGroupsToClientVpnTargetNetworkRequest method.
  556. // req, resp := client.ApplySecurityGroupsToClientVpnTargetNetworkRequest(params)
  557. //
  558. // err := req.Send()
  559. // if err == nil { // resp is now filled
  560. // fmt.Println(resp)
  561. // }
  562. //
  563. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ApplySecurityGroupsToClientVpnTargetNetwork
  564. func (c *EC2) ApplySecurityGroupsToClientVpnTargetNetworkRequest(input *ApplySecurityGroupsToClientVpnTargetNetworkInput) (req *request.Request, output *ApplySecurityGroupsToClientVpnTargetNetworkOutput) {
  565. op := &request.Operation{
  566. Name: opApplySecurityGroupsToClientVpnTargetNetwork,
  567. HTTPMethod: "POST",
  568. HTTPPath: "/",
  569. }
  570. if input == nil {
  571. input = &ApplySecurityGroupsToClientVpnTargetNetworkInput{}
  572. }
  573. output = &ApplySecurityGroupsToClientVpnTargetNetworkOutput{}
  574. req = c.newRequest(op, input, output)
  575. return
  576. }
  577. // ApplySecurityGroupsToClientVpnTargetNetwork API operation for Amazon Elastic Compute Cloud.
  578. //
  579. // Applies a security group to the association between the target network and
  580. // the Client VPN endpoint. This action replaces the existing security groups
  581. // with the specified security groups.
  582. //
  583. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  584. // with awserr.Error's Code and Message methods to get detailed information about
  585. // the error.
  586. //
  587. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  588. // API operation ApplySecurityGroupsToClientVpnTargetNetwork for usage and error information.
  589. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ApplySecurityGroupsToClientVpnTargetNetwork
  590. func (c *EC2) ApplySecurityGroupsToClientVpnTargetNetwork(input *ApplySecurityGroupsToClientVpnTargetNetworkInput) (*ApplySecurityGroupsToClientVpnTargetNetworkOutput, error) {
  591. req, out := c.ApplySecurityGroupsToClientVpnTargetNetworkRequest(input)
  592. return out, req.Send()
  593. }
  594. // ApplySecurityGroupsToClientVpnTargetNetworkWithContext is the same as ApplySecurityGroupsToClientVpnTargetNetwork with the addition of
  595. // the ability to pass a context and additional request options.
  596. //
  597. // See ApplySecurityGroupsToClientVpnTargetNetwork for details on how to use this API operation.
  598. //
  599. // The context must be non-nil and will be used for request cancellation. If
  600. // the context is nil a panic will occur. In the future the SDK may create
  601. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  602. // for more information on using Contexts.
  603. func (c *EC2) ApplySecurityGroupsToClientVpnTargetNetworkWithContext(ctx aws.Context, input *ApplySecurityGroupsToClientVpnTargetNetworkInput, opts ...request.Option) (*ApplySecurityGroupsToClientVpnTargetNetworkOutput, error) {
  604. req, out := c.ApplySecurityGroupsToClientVpnTargetNetworkRequest(input)
  605. req.SetContext(ctx)
  606. req.ApplyOptions(opts...)
  607. return out, req.Send()
  608. }
  609. const opAssignIpv6Addresses = "AssignIpv6Addresses"
  610. // AssignIpv6AddressesRequest generates a "aws/request.Request" representing the
  611. // client's request for the AssignIpv6Addresses operation. The "output" return
  612. // value will be populated with the request's response once the request completes
  613. // successfully.
  614. //
  615. // Use "Send" method on the returned Request to send the API call to the service.
  616. // the "output" return value is not valid until after Send returns without error.
  617. //
  618. // See AssignIpv6Addresses for more information on using the AssignIpv6Addresses
  619. // API call, and error handling.
  620. //
  621. // This method is useful when you want to inject custom logic or configuration
  622. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  623. //
  624. //
  625. // // Example sending a request using the AssignIpv6AddressesRequest method.
  626. // req, resp := client.AssignIpv6AddressesRequest(params)
  627. //
  628. // err := req.Send()
  629. // if err == nil { // resp is now filled
  630. // fmt.Println(resp)
  631. // }
  632. //
  633. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6Addresses
  634. func (c *EC2) AssignIpv6AddressesRequest(input *AssignIpv6AddressesInput) (req *request.Request, output *AssignIpv6AddressesOutput) {
  635. op := &request.Operation{
  636. Name: opAssignIpv6Addresses,
  637. HTTPMethod: "POST",
  638. HTTPPath: "/",
  639. }
  640. if input == nil {
  641. input = &AssignIpv6AddressesInput{}
  642. }
  643. output = &AssignIpv6AddressesOutput{}
  644. req = c.newRequest(op, input, output)
  645. return
  646. }
  647. // AssignIpv6Addresses API operation for Amazon Elastic Compute Cloud.
  648. //
  649. // Assigns one or more IPv6 addresses to the specified network interface. You
  650. // can specify one or more specific IPv6 addresses, or you can specify the number
  651. // of IPv6 addresses to be automatically assigned from within the subnet's IPv6
  652. // CIDR block range. You can assign as many IPv6 addresses to a network interface
  653. // as you can assign private IPv4 addresses, and the limit varies per instance
  654. // type. For information, see IP Addresses Per Network Interface Per Instance
  655. // Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI)
  656. // in the Amazon Elastic Compute Cloud User Guide.
  657. //
  658. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  659. // with awserr.Error's Code and Message methods to get detailed information about
  660. // the error.
  661. //
  662. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  663. // API operation AssignIpv6Addresses for usage and error information.
  664. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6Addresses
  665. func (c *EC2) AssignIpv6Addresses(input *AssignIpv6AddressesInput) (*AssignIpv6AddressesOutput, error) {
  666. req, out := c.AssignIpv6AddressesRequest(input)
  667. return out, req.Send()
  668. }
  669. // AssignIpv6AddressesWithContext is the same as AssignIpv6Addresses with the addition of
  670. // the ability to pass a context and additional request options.
  671. //
  672. // See AssignIpv6Addresses for details on how to use this API operation.
  673. //
  674. // The context must be non-nil and will be used for request cancellation. If
  675. // the context is nil a panic will occur. In the future the SDK may create
  676. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  677. // for more information on using Contexts.
  678. func (c *EC2) AssignIpv6AddressesWithContext(ctx aws.Context, input *AssignIpv6AddressesInput, opts ...request.Option) (*AssignIpv6AddressesOutput, error) {
  679. req, out := c.AssignIpv6AddressesRequest(input)
  680. req.SetContext(ctx)
  681. req.ApplyOptions(opts...)
  682. return out, req.Send()
  683. }
  684. const opAssignPrivateIpAddresses = "AssignPrivateIpAddresses"
  685. // AssignPrivateIpAddressesRequest generates a "aws/request.Request" representing the
  686. // client's request for the AssignPrivateIpAddresses operation. The "output" return
  687. // value will be populated with the request's response once the request completes
  688. // successfully.
  689. //
  690. // Use "Send" method on the returned Request to send the API call to the service.
  691. // the "output" return value is not valid until after Send returns without error.
  692. //
  693. // See AssignPrivateIpAddresses for more information on using the AssignPrivateIpAddresses
  694. // API call, and error handling.
  695. //
  696. // This method is useful when you want to inject custom logic or configuration
  697. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  698. //
  699. //
  700. // // Example sending a request using the AssignPrivateIpAddressesRequest method.
  701. // req, resp := client.AssignPrivateIpAddressesRequest(params)
  702. //
  703. // err := req.Send()
  704. // if err == nil { // resp is now filled
  705. // fmt.Println(resp)
  706. // }
  707. //
  708. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddresses
  709. func (c *EC2) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInput) (req *request.Request, output *AssignPrivateIpAddressesOutput) {
  710. op := &request.Operation{
  711. Name: opAssignPrivateIpAddresses,
  712. HTTPMethod: "POST",
  713. HTTPPath: "/",
  714. }
  715. if input == nil {
  716. input = &AssignPrivateIpAddressesInput{}
  717. }
  718. output = &AssignPrivateIpAddressesOutput{}
  719. req = c.newRequest(op, input, output)
  720. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  721. return
  722. }
  723. // AssignPrivateIpAddresses API operation for Amazon Elastic Compute Cloud.
  724. //
  725. // Assigns one or more secondary private IP addresses to the specified network
  726. // interface.
  727. //
  728. // You can specify one or more specific secondary IP addresses, or you can specify
  729. // the number of secondary IP addresses to be automatically assigned within
  730. // the subnet's CIDR block range. The number of secondary IP addresses that
  731. // you can assign to an instance varies by instance type. For information about
  732. // instance types, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  733. // in the Amazon Elastic Compute Cloud User Guide. For more information about
  734. // Elastic IP addresses, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  735. // in the Amazon Elastic Compute Cloud User Guide.
  736. //
  737. // When you move a secondary private IP address to another network interface,
  738. // any Elastic IP address that is associated with the IP address is also moved.
  739. //
  740. // Remapping an IP address is an asynchronous operation. When you move an IP
  741. // address from one network interface to another, check network/interfaces/macs/mac/local-ipv4s
  742. // in the instance metadata to confirm that the remapping is complete.
  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 AssignPrivateIpAddresses for usage and error information.
  750. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddresses
  751. func (c *EC2) AssignPrivateIpAddresses(input *AssignPrivateIpAddressesInput) (*AssignPrivateIpAddressesOutput, error) {
  752. req, out := c.AssignPrivateIpAddressesRequest(input)
  753. return out, req.Send()
  754. }
  755. // AssignPrivateIpAddressesWithContext is the same as AssignPrivateIpAddresses with the addition of
  756. // the ability to pass a context and additional request options.
  757. //
  758. // See AssignPrivateIpAddresses 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) AssignPrivateIpAddressesWithContext(ctx aws.Context, input *AssignPrivateIpAddressesInput, opts ...request.Option) (*AssignPrivateIpAddressesOutput, error) {
  765. req, out := c.AssignPrivateIpAddressesRequest(input)
  766. req.SetContext(ctx)
  767. req.ApplyOptions(opts...)
  768. return out, req.Send()
  769. }
  770. const opAssociateAddress = "AssociateAddress"
  771. // AssociateAddressRequest generates a "aws/request.Request" representing the
  772. // client's request for the AssociateAddress operation. The "output" return
  773. // value will be populated with the request's response once the request completes
  774. // successfully.
  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 AssociateAddress for more information on using the AssociateAddress
  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 AssociateAddressRequest method.
  787. // req, resp := client.AssociateAddressRequest(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/AssociateAddress
  795. func (c *EC2) AssociateAddressRequest(input *AssociateAddressInput) (req *request.Request, output *AssociateAddressOutput) {
  796. op := &request.Operation{
  797. Name: opAssociateAddress,
  798. HTTPMethod: "POST",
  799. HTTPPath: "/",
  800. }
  801. if input == nil {
  802. input = &AssociateAddressInput{}
  803. }
  804. output = &AssociateAddressOutput{}
  805. req = c.newRequest(op, input, output)
  806. return
  807. }
  808. // AssociateAddress API operation for Amazon Elastic Compute Cloud.
  809. //
  810. // Associates an Elastic IP address with an instance or a network interface.
  811. // Before you can use an Elastic IP address, you must allocate it to your account.
  812. //
  813. // An Elastic IP address is for use in either the EC2-Classic platform or in
  814. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  815. // in the Amazon Elastic Compute Cloud User Guide.
  816. //
  817. // [EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address is
  818. // already associated with a different instance, it is disassociated from that
  819. // instance and associated with the specified instance. If you associate an
  820. // Elastic IP address with an instance that has an existing Elastic IP address,
  821. // the existing address is disassociated from the instance, but remains allocated
  822. // to your account.
  823. //
  824. // [VPC in an EC2-Classic account] If you don't specify a private IP address,
  825. // the Elastic IP address is associated with the primary IP address. If the
  826. // Elastic IP address is already associated with a different instance or a network
  827. // interface, you get an error unless you allow reassociation. You cannot associate
  828. // an Elastic IP address with an instance or network interface that has an existing
  829. // Elastic IP address.
  830. //
  831. // This is an idempotent operation. If you perform the operation more than once,
  832. // Amazon EC2 doesn't return an error, and you may be charged for each time
  833. // the Elastic IP address is remapped to the same instance. For more information,
  834. // see the Elastic IP Addresses section of Amazon EC2 Pricing (http://aws.amazon.com/ec2/pricing/).
  835. //
  836. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  837. // with awserr.Error's Code and Message methods to get detailed information about
  838. // the error.
  839. //
  840. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  841. // API operation AssociateAddress for usage and error information.
  842. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddress
  843. func (c *EC2) AssociateAddress(input *AssociateAddressInput) (*AssociateAddressOutput, error) {
  844. req, out := c.AssociateAddressRequest(input)
  845. return out, req.Send()
  846. }
  847. // AssociateAddressWithContext is the same as AssociateAddress with the addition of
  848. // the ability to pass a context and additional request options.
  849. //
  850. // See AssociateAddress for details on how to use this API operation.
  851. //
  852. // The context must be non-nil and will be used for request cancellation. If
  853. // the context is nil a panic will occur. In the future the SDK may create
  854. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  855. // for more information on using Contexts.
  856. func (c *EC2) AssociateAddressWithContext(ctx aws.Context, input *AssociateAddressInput, opts ...request.Option) (*AssociateAddressOutput, error) {
  857. req, out := c.AssociateAddressRequest(input)
  858. req.SetContext(ctx)
  859. req.ApplyOptions(opts...)
  860. return out, req.Send()
  861. }
  862. const opAssociateClientVpnTargetNetwork = "AssociateClientVpnTargetNetwork"
  863. // AssociateClientVpnTargetNetworkRequest generates a "aws/request.Request" representing the
  864. // client's request for the AssociateClientVpnTargetNetwork operation. The "output" return
  865. // value will be populated with the request's response once the request completes
  866. // successfully.
  867. //
  868. // Use "Send" method on the returned Request to send the API call to the service.
  869. // the "output" return value is not valid until after Send returns without error.
  870. //
  871. // See AssociateClientVpnTargetNetwork for more information on using the AssociateClientVpnTargetNetwork
  872. // API call, and error handling.
  873. //
  874. // This method is useful when you want to inject custom logic or configuration
  875. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  876. //
  877. //
  878. // // Example sending a request using the AssociateClientVpnTargetNetworkRequest method.
  879. // req, resp := client.AssociateClientVpnTargetNetworkRequest(params)
  880. //
  881. // err := req.Send()
  882. // if err == nil { // resp is now filled
  883. // fmt.Println(resp)
  884. // }
  885. //
  886. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateClientVpnTargetNetwork
  887. func (c *EC2) AssociateClientVpnTargetNetworkRequest(input *AssociateClientVpnTargetNetworkInput) (req *request.Request, output *AssociateClientVpnTargetNetworkOutput) {
  888. op := &request.Operation{
  889. Name: opAssociateClientVpnTargetNetwork,
  890. HTTPMethod: "POST",
  891. HTTPPath: "/",
  892. }
  893. if input == nil {
  894. input = &AssociateClientVpnTargetNetworkInput{}
  895. }
  896. output = &AssociateClientVpnTargetNetworkOutput{}
  897. req = c.newRequest(op, input, output)
  898. return
  899. }
  900. // AssociateClientVpnTargetNetwork API operation for Amazon Elastic Compute Cloud.
  901. //
  902. // Associates a target network with a Client VPN endpoint. A target network
  903. // is a subnet in a VPC. You can associate multiple subnets from the same VPC
  904. // with a Client VPN endpoint. You can associate only one subnet in each Availability
  905. // Zone. We recommend that you associate at least two subnets to provide Availability
  906. // Zone redundancy.
  907. //
  908. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  909. // with awserr.Error's Code and Message methods to get detailed information about
  910. // the error.
  911. //
  912. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  913. // API operation AssociateClientVpnTargetNetwork for usage and error information.
  914. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateClientVpnTargetNetwork
  915. func (c *EC2) AssociateClientVpnTargetNetwork(input *AssociateClientVpnTargetNetworkInput) (*AssociateClientVpnTargetNetworkOutput, error) {
  916. req, out := c.AssociateClientVpnTargetNetworkRequest(input)
  917. return out, req.Send()
  918. }
  919. // AssociateClientVpnTargetNetworkWithContext is the same as AssociateClientVpnTargetNetwork with the addition of
  920. // the ability to pass a context and additional request options.
  921. //
  922. // See AssociateClientVpnTargetNetwork for details on how to use this API operation.
  923. //
  924. // The context must be non-nil and will be used for request cancellation. If
  925. // the context is nil a panic will occur. In the future the SDK may create
  926. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  927. // for more information on using Contexts.
  928. func (c *EC2) AssociateClientVpnTargetNetworkWithContext(ctx aws.Context, input *AssociateClientVpnTargetNetworkInput, opts ...request.Option) (*AssociateClientVpnTargetNetworkOutput, error) {
  929. req, out := c.AssociateClientVpnTargetNetworkRequest(input)
  930. req.SetContext(ctx)
  931. req.ApplyOptions(opts...)
  932. return out, req.Send()
  933. }
  934. const opAssociateDhcpOptions = "AssociateDhcpOptions"
  935. // AssociateDhcpOptionsRequest generates a "aws/request.Request" representing the
  936. // client's request for the AssociateDhcpOptions operation. The "output" return
  937. // value will be populated with the request's response once the request completes
  938. // successfully.
  939. //
  940. // Use "Send" method on the returned Request to send the API call to the service.
  941. // the "output" return value is not valid until after Send returns without error.
  942. //
  943. // See AssociateDhcpOptions for more information on using the AssociateDhcpOptions
  944. // API call, and error handling.
  945. //
  946. // This method is useful when you want to inject custom logic or configuration
  947. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  948. //
  949. //
  950. // // Example sending a request using the AssociateDhcpOptionsRequest method.
  951. // req, resp := client.AssociateDhcpOptionsRequest(params)
  952. //
  953. // err := req.Send()
  954. // if err == nil { // resp is now filled
  955. // fmt.Println(resp)
  956. // }
  957. //
  958. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptions
  959. func (c *EC2) AssociateDhcpOptionsRequest(input *AssociateDhcpOptionsInput) (req *request.Request, output *AssociateDhcpOptionsOutput) {
  960. op := &request.Operation{
  961. Name: opAssociateDhcpOptions,
  962. HTTPMethod: "POST",
  963. HTTPPath: "/",
  964. }
  965. if input == nil {
  966. input = &AssociateDhcpOptionsInput{}
  967. }
  968. output = &AssociateDhcpOptionsOutput{}
  969. req = c.newRequest(op, input, output)
  970. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  971. return
  972. }
  973. // AssociateDhcpOptions API operation for Amazon Elastic Compute Cloud.
  974. //
  975. // Associates a set of DHCP options (that you've previously created) with the
  976. // specified VPC, or associates no DHCP options with the VPC.
  977. //
  978. // After you associate the options with the VPC, any existing instances and
  979. // all new instances that you launch in that VPC use the options. You don't
  980. // need to restart or relaunch the instances. They automatically pick up the
  981. // changes within a few hours, depending on how frequently the instance renews
  982. // its DHCP lease. You can explicitly renew the lease using the operating system
  983. // on the instance.
  984. //
  985. // For more information, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  986. // in the Amazon Virtual Private Cloud User Guide.
  987. //
  988. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  989. // with awserr.Error's Code and Message methods to get detailed information about
  990. // the error.
  991. //
  992. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  993. // API operation AssociateDhcpOptions for usage and error information.
  994. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptions
  995. func (c *EC2) AssociateDhcpOptions(input *AssociateDhcpOptionsInput) (*AssociateDhcpOptionsOutput, error) {
  996. req, out := c.AssociateDhcpOptionsRequest(input)
  997. return out, req.Send()
  998. }
  999. // AssociateDhcpOptionsWithContext is the same as AssociateDhcpOptions with the addition of
  1000. // the ability to pass a context and additional request options.
  1001. //
  1002. // See AssociateDhcpOptions for details on how to use this API operation.
  1003. //
  1004. // The context must be non-nil and will be used for request cancellation. If
  1005. // the context is nil a panic will occur. In the future the SDK may create
  1006. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1007. // for more information on using Contexts.
  1008. func (c *EC2) AssociateDhcpOptionsWithContext(ctx aws.Context, input *AssociateDhcpOptionsInput, opts ...request.Option) (*AssociateDhcpOptionsOutput, error) {
  1009. req, out := c.AssociateDhcpOptionsRequest(input)
  1010. req.SetContext(ctx)
  1011. req.ApplyOptions(opts...)
  1012. return out, req.Send()
  1013. }
  1014. const opAssociateIamInstanceProfile = "AssociateIamInstanceProfile"
  1015. // AssociateIamInstanceProfileRequest generates a "aws/request.Request" representing the
  1016. // client's request for the AssociateIamInstanceProfile operation. The "output" return
  1017. // value will be populated with the request's response once the request completes
  1018. // successfully.
  1019. //
  1020. // Use "Send" method on the returned Request to send the API call to the service.
  1021. // the "output" return value is not valid until after Send returns without error.
  1022. //
  1023. // See AssociateIamInstanceProfile for more information on using the AssociateIamInstanceProfile
  1024. // API call, and error handling.
  1025. //
  1026. // This method is useful when you want to inject custom logic or configuration
  1027. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1028. //
  1029. //
  1030. // // Example sending a request using the AssociateIamInstanceProfileRequest method.
  1031. // req, resp := client.AssociateIamInstanceProfileRequest(params)
  1032. //
  1033. // err := req.Send()
  1034. // if err == nil { // resp is now filled
  1035. // fmt.Println(resp)
  1036. // }
  1037. //
  1038. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfile
  1039. func (c *EC2) AssociateIamInstanceProfileRequest(input *AssociateIamInstanceProfileInput) (req *request.Request, output *AssociateIamInstanceProfileOutput) {
  1040. op := &request.Operation{
  1041. Name: opAssociateIamInstanceProfile,
  1042. HTTPMethod: "POST",
  1043. HTTPPath: "/",
  1044. }
  1045. if input == nil {
  1046. input = &AssociateIamInstanceProfileInput{}
  1047. }
  1048. output = &AssociateIamInstanceProfileOutput{}
  1049. req = c.newRequest(op, input, output)
  1050. return
  1051. }
  1052. // AssociateIamInstanceProfile API operation for Amazon Elastic Compute Cloud.
  1053. //
  1054. // Associates an IAM instance profile with a running or stopped instance. You
  1055. // cannot associate more than one IAM instance profile with an instance.
  1056. //
  1057. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1058. // with awserr.Error's Code and Message methods to get detailed information about
  1059. // the error.
  1060. //
  1061. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1062. // API operation AssociateIamInstanceProfile for usage and error information.
  1063. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfile
  1064. func (c *EC2) AssociateIamInstanceProfile(input *AssociateIamInstanceProfileInput) (*AssociateIamInstanceProfileOutput, error) {
  1065. req, out := c.AssociateIamInstanceProfileRequest(input)
  1066. return out, req.Send()
  1067. }
  1068. // AssociateIamInstanceProfileWithContext is the same as AssociateIamInstanceProfile with the addition of
  1069. // the ability to pass a context and additional request options.
  1070. //
  1071. // See AssociateIamInstanceProfile for details on how to use this API operation.
  1072. //
  1073. // The context must be non-nil and will be used for request cancellation. If
  1074. // the context is nil a panic will occur. In the future the SDK may create
  1075. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1076. // for more information on using Contexts.
  1077. func (c *EC2) AssociateIamInstanceProfileWithContext(ctx aws.Context, input *AssociateIamInstanceProfileInput, opts ...request.Option) (*AssociateIamInstanceProfileOutput, error) {
  1078. req, out := c.AssociateIamInstanceProfileRequest(input)
  1079. req.SetContext(ctx)
  1080. req.ApplyOptions(opts...)
  1081. return out, req.Send()
  1082. }
  1083. const opAssociateRouteTable = "AssociateRouteTable"
  1084. // AssociateRouteTableRequest generates a "aws/request.Request" representing the
  1085. // client's request for the AssociateRouteTable operation. The "output" return
  1086. // value will be populated with the request's response once the request completes
  1087. // successfully.
  1088. //
  1089. // Use "Send" method on the returned Request to send the API call to the service.
  1090. // the "output" return value is not valid until after Send returns without error.
  1091. //
  1092. // See AssociateRouteTable for more information on using the AssociateRouteTable
  1093. // API call, and error handling.
  1094. //
  1095. // This method is useful when you want to inject custom logic or configuration
  1096. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1097. //
  1098. //
  1099. // // Example sending a request using the AssociateRouteTableRequest method.
  1100. // req, resp := client.AssociateRouteTableRequest(params)
  1101. //
  1102. // err := req.Send()
  1103. // if err == nil { // resp is now filled
  1104. // fmt.Println(resp)
  1105. // }
  1106. //
  1107. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTable
  1108. func (c *EC2) AssociateRouteTableRequest(input *AssociateRouteTableInput) (req *request.Request, output *AssociateRouteTableOutput) {
  1109. op := &request.Operation{
  1110. Name: opAssociateRouteTable,
  1111. HTTPMethod: "POST",
  1112. HTTPPath: "/",
  1113. }
  1114. if input == nil {
  1115. input = &AssociateRouteTableInput{}
  1116. }
  1117. output = &AssociateRouteTableOutput{}
  1118. req = c.newRequest(op, input, output)
  1119. return
  1120. }
  1121. // AssociateRouteTable API operation for Amazon Elastic Compute Cloud.
  1122. //
  1123. // Associates a subnet with a route table. The subnet and route table must be
  1124. // in the same VPC. This association causes traffic originating from the subnet
  1125. // to be routed according to the routes in the route table. The action returns
  1126. // an association ID, which you need in order to disassociate the route table
  1127. // from the subnet later. A route table can be associated with multiple subnets.
  1128. //
  1129. // For more information, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  1130. // in the Amazon Virtual Private Cloud User Guide.
  1131. //
  1132. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1133. // with awserr.Error's Code and Message methods to get detailed information about
  1134. // the error.
  1135. //
  1136. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1137. // API operation AssociateRouteTable for usage and error information.
  1138. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTable
  1139. func (c *EC2) AssociateRouteTable(input *AssociateRouteTableInput) (*AssociateRouteTableOutput, error) {
  1140. req, out := c.AssociateRouteTableRequest(input)
  1141. return out, req.Send()
  1142. }
  1143. // AssociateRouteTableWithContext is the same as AssociateRouteTable with the addition of
  1144. // the ability to pass a context and additional request options.
  1145. //
  1146. // See AssociateRouteTable for details on how to use this API operation.
  1147. //
  1148. // The context must be non-nil and will be used for request cancellation. If
  1149. // the context is nil a panic will occur. In the future the SDK may create
  1150. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1151. // for more information on using Contexts.
  1152. func (c *EC2) AssociateRouteTableWithContext(ctx aws.Context, input *AssociateRouteTableInput, opts ...request.Option) (*AssociateRouteTableOutput, error) {
  1153. req, out := c.AssociateRouteTableRequest(input)
  1154. req.SetContext(ctx)
  1155. req.ApplyOptions(opts...)
  1156. return out, req.Send()
  1157. }
  1158. const opAssociateSubnetCidrBlock = "AssociateSubnetCidrBlock"
  1159. // AssociateSubnetCidrBlockRequest generates a "aws/request.Request" representing the
  1160. // client's request for the AssociateSubnetCidrBlock operation. The "output" return
  1161. // value will be populated with the request's response once the request completes
  1162. // successfully.
  1163. //
  1164. // Use "Send" method on the returned Request to send the API call to the service.
  1165. // the "output" return value is not valid until after Send returns without error.
  1166. //
  1167. // See AssociateSubnetCidrBlock for more information on using the AssociateSubnetCidrBlock
  1168. // API call, and error handling.
  1169. //
  1170. // This method is useful when you want to inject custom logic or configuration
  1171. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1172. //
  1173. //
  1174. // // Example sending a request using the AssociateSubnetCidrBlockRequest method.
  1175. // req, resp := client.AssociateSubnetCidrBlockRequest(params)
  1176. //
  1177. // err := req.Send()
  1178. // if err == nil { // resp is now filled
  1179. // fmt.Println(resp)
  1180. // }
  1181. //
  1182. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlock
  1183. func (c *EC2) AssociateSubnetCidrBlockRequest(input *AssociateSubnetCidrBlockInput) (req *request.Request, output *AssociateSubnetCidrBlockOutput) {
  1184. op := &request.Operation{
  1185. Name: opAssociateSubnetCidrBlock,
  1186. HTTPMethod: "POST",
  1187. HTTPPath: "/",
  1188. }
  1189. if input == nil {
  1190. input = &AssociateSubnetCidrBlockInput{}
  1191. }
  1192. output = &AssociateSubnetCidrBlockOutput{}
  1193. req = c.newRequest(op, input, output)
  1194. return
  1195. }
  1196. // AssociateSubnetCidrBlock API operation for Amazon Elastic Compute Cloud.
  1197. //
  1198. // Associates a CIDR block with your subnet. You can only associate a single
  1199. // IPv6 CIDR block with your subnet. An IPv6 CIDR block must have a prefix length
  1200. // of /64.
  1201. //
  1202. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1203. // with awserr.Error's Code and Message methods to get detailed information about
  1204. // the error.
  1205. //
  1206. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1207. // API operation AssociateSubnetCidrBlock for usage and error information.
  1208. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlock
  1209. func (c *EC2) AssociateSubnetCidrBlock(input *AssociateSubnetCidrBlockInput) (*AssociateSubnetCidrBlockOutput, error) {
  1210. req, out := c.AssociateSubnetCidrBlockRequest(input)
  1211. return out, req.Send()
  1212. }
  1213. // AssociateSubnetCidrBlockWithContext is the same as AssociateSubnetCidrBlock with the addition of
  1214. // the ability to pass a context and additional request options.
  1215. //
  1216. // See AssociateSubnetCidrBlock for details on how to use this API operation.
  1217. //
  1218. // The context must be non-nil and will be used for request cancellation. If
  1219. // the context is nil a panic will occur. In the future the SDK may create
  1220. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1221. // for more information on using Contexts.
  1222. func (c *EC2) AssociateSubnetCidrBlockWithContext(ctx aws.Context, input *AssociateSubnetCidrBlockInput, opts ...request.Option) (*AssociateSubnetCidrBlockOutput, error) {
  1223. req, out := c.AssociateSubnetCidrBlockRequest(input)
  1224. req.SetContext(ctx)
  1225. req.ApplyOptions(opts...)
  1226. return out, req.Send()
  1227. }
  1228. const opAssociateTransitGatewayRouteTable = "AssociateTransitGatewayRouteTable"
  1229. // AssociateTransitGatewayRouteTableRequest generates a "aws/request.Request" representing the
  1230. // client's request for the AssociateTransitGatewayRouteTable operation. The "output" return
  1231. // value will be populated with the request's response once the request completes
  1232. // successfully.
  1233. //
  1234. // Use "Send" method on the returned Request to send the API call to the service.
  1235. // the "output" return value is not valid until after Send returns without error.
  1236. //
  1237. // See AssociateTransitGatewayRouteTable for more information on using the AssociateTransitGatewayRouteTable
  1238. // API call, and error handling.
  1239. //
  1240. // This method is useful when you want to inject custom logic or configuration
  1241. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1242. //
  1243. //
  1244. // // Example sending a request using the AssociateTransitGatewayRouteTableRequest method.
  1245. // req, resp := client.AssociateTransitGatewayRouteTableRequest(params)
  1246. //
  1247. // err := req.Send()
  1248. // if err == nil { // resp is now filled
  1249. // fmt.Println(resp)
  1250. // }
  1251. //
  1252. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateTransitGatewayRouteTable
  1253. func (c *EC2) AssociateTransitGatewayRouteTableRequest(input *AssociateTransitGatewayRouteTableInput) (req *request.Request, output *AssociateTransitGatewayRouteTableOutput) {
  1254. op := &request.Operation{
  1255. Name: opAssociateTransitGatewayRouteTable,
  1256. HTTPMethod: "POST",
  1257. HTTPPath: "/",
  1258. }
  1259. if input == nil {
  1260. input = &AssociateTransitGatewayRouteTableInput{}
  1261. }
  1262. output = &AssociateTransitGatewayRouteTableOutput{}
  1263. req = c.newRequest(op, input, output)
  1264. return
  1265. }
  1266. // AssociateTransitGatewayRouteTable API operation for Amazon Elastic Compute Cloud.
  1267. //
  1268. // Associates the specified attachment with the specified transit gateway route
  1269. // table. You can associate only one route table with an attachment.
  1270. //
  1271. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1272. // with awserr.Error's Code and Message methods to get detailed information about
  1273. // the error.
  1274. //
  1275. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1276. // API operation AssociateTransitGatewayRouteTable for usage and error information.
  1277. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateTransitGatewayRouteTable
  1278. func (c *EC2) AssociateTransitGatewayRouteTable(input *AssociateTransitGatewayRouteTableInput) (*AssociateTransitGatewayRouteTableOutput, error) {
  1279. req, out := c.AssociateTransitGatewayRouteTableRequest(input)
  1280. return out, req.Send()
  1281. }
  1282. // AssociateTransitGatewayRouteTableWithContext is the same as AssociateTransitGatewayRouteTable with the addition of
  1283. // the ability to pass a context and additional request options.
  1284. //
  1285. // See AssociateTransitGatewayRouteTable for details on how to use this API operation.
  1286. //
  1287. // The context must be non-nil and will be used for request cancellation. If
  1288. // the context is nil a panic will occur. In the future the SDK may create
  1289. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1290. // for more information on using Contexts.
  1291. func (c *EC2) AssociateTransitGatewayRouteTableWithContext(ctx aws.Context, input *AssociateTransitGatewayRouteTableInput, opts ...request.Option) (*AssociateTransitGatewayRouteTableOutput, error) {
  1292. req, out := c.AssociateTransitGatewayRouteTableRequest(input)
  1293. req.SetContext(ctx)
  1294. req.ApplyOptions(opts...)
  1295. return out, req.Send()
  1296. }
  1297. const opAssociateVpcCidrBlock = "AssociateVpcCidrBlock"
  1298. // AssociateVpcCidrBlockRequest generates a "aws/request.Request" representing the
  1299. // client's request for the AssociateVpcCidrBlock operation. The "output" return
  1300. // value will be populated with the request's response once the request completes
  1301. // successfully.
  1302. //
  1303. // Use "Send" method on the returned Request to send the API call to the service.
  1304. // the "output" return value is not valid until after Send returns without error.
  1305. //
  1306. // See AssociateVpcCidrBlock for more information on using the AssociateVpcCidrBlock
  1307. // API call, and error handling.
  1308. //
  1309. // This method is useful when you want to inject custom logic or configuration
  1310. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1311. //
  1312. //
  1313. // // Example sending a request using the AssociateVpcCidrBlockRequest method.
  1314. // req, resp := client.AssociateVpcCidrBlockRequest(params)
  1315. //
  1316. // err := req.Send()
  1317. // if err == nil { // resp is now filled
  1318. // fmt.Println(resp)
  1319. // }
  1320. //
  1321. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlock
  1322. func (c *EC2) AssociateVpcCidrBlockRequest(input *AssociateVpcCidrBlockInput) (req *request.Request, output *AssociateVpcCidrBlockOutput) {
  1323. op := &request.Operation{
  1324. Name: opAssociateVpcCidrBlock,
  1325. HTTPMethod: "POST",
  1326. HTTPPath: "/",
  1327. }
  1328. if input == nil {
  1329. input = &AssociateVpcCidrBlockInput{}
  1330. }
  1331. output = &AssociateVpcCidrBlockOutput{}
  1332. req = c.newRequest(op, input, output)
  1333. return
  1334. }
  1335. // AssociateVpcCidrBlock API operation for Amazon Elastic Compute Cloud.
  1336. //
  1337. // Associates a CIDR block with your VPC. You can associate a secondary IPv4
  1338. // CIDR block, or you can associate an Amazon-provided IPv6 CIDR block. The
  1339. // IPv6 CIDR block size is fixed at /56.
  1340. //
  1341. // For more information about associating CIDR blocks with your VPC and applicable
  1342. // restrictions, see VPC and Subnet Sizing (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html#VPC_Sizing)
  1343. // in the Amazon Virtual Private Cloud User Guide.
  1344. //
  1345. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1346. // with awserr.Error's Code and Message methods to get detailed information about
  1347. // the error.
  1348. //
  1349. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1350. // API operation AssociateVpcCidrBlock for usage and error information.
  1351. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlock
  1352. func (c *EC2) AssociateVpcCidrBlock(input *AssociateVpcCidrBlockInput) (*AssociateVpcCidrBlockOutput, error) {
  1353. req, out := c.AssociateVpcCidrBlockRequest(input)
  1354. return out, req.Send()
  1355. }
  1356. // AssociateVpcCidrBlockWithContext is the same as AssociateVpcCidrBlock with the addition of
  1357. // the ability to pass a context and additional request options.
  1358. //
  1359. // See AssociateVpcCidrBlock for details on how to use this API operation.
  1360. //
  1361. // The context must be non-nil and will be used for request cancellation. If
  1362. // the context is nil a panic will occur. In the future the SDK may create
  1363. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1364. // for more information on using Contexts.
  1365. func (c *EC2) AssociateVpcCidrBlockWithContext(ctx aws.Context, input *AssociateVpcCidrBlockInput, opts ...request.Option) (*AssociateVpcCidrBlockOutput, error) {
  1366. req, out := c.AssociateVpcCidrBlockRequest(input)
  1367. req.SetContext(ctx)
  1368. req.ApplyOptions(opts...)
  1369. return out, req.Send()
  1370. }
  1371. const opAttachClassicLinkVpc = "AttachClassicLinkVpc"
  1372. // AttachClassicLinkVpcRequest generates a "aws/request.Request" representing the
  1373. // client's request for the AttachClassicLinkVpc operation. The "output" return
  1374. // value will be populated with the request's response once the request completes
  1375. // successfully.
  1376. //
  1377. // Use "Send" method on the returned Request to send the API call to the service.
  1378. // the "output" return value is not valid until after Send returns without error.
  1379. //
  1380. // See AttachClassicLinkVpc for more information on using the AttachClassicLinkVpc
  1381. // API call, and error handling.
  1382. //
  1383. // This method is useful when you want to inject custom logic or configuration
  1384. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1385. //
  1386. //
  1387. // // Example sending a request using the AttachClassicLinkVpcRequest method.
  1388. // req, resp := client.AttachClassicLinkVpcRequest(params)
  1389. //
  1390. // err := req.Send()
  1391. // if err == nil { // resp is now filled
  1392. // fmt.Println(resp)
  1393. // }
  1394. //
  1395. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpc
  1396. func (c *EC2) AttachClassicLinkVpcRequest(input *AttachClassicLinkVpcInput) (req *request.Request, output *AttachClassicLinkVpcOutput) {
  1397. op := &request.Operation{
  1398. Name: opAttachClassicLinkVpc,
  1399. HTTPMethod: "POST",
  1400. HTTPPath: "/",
  1401. }
  1402. if input == nil {
  1403. input = &AttachClassicLinkVpcInput{}
  1404. }
  1405. output = &AttachClassicLinkVpcOutput{}
  1406. req = c.newRequest(op, input, output)
  1407. return
  1408. }
  1409. // AttachClassicLinkVpc API operation for Amazon Elastic Compute Cloud.
  1410. //
  1411. // Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or
  1412. // more of the VPC's security groups. You cannot link an EC2-Classic instance
  1413. // to more than one VPC at a time. You can only link an instance that's in the
  1414. // running state. An instance is automatically unlinked from a VPC when it's
  1415. // stopped - you can link it to the VPC again when you restart it.
  1416. //
  1417. // After you've linked an instance, you cannot change the VPC security groups
  1418. // that are associated with it. To change the security groups, you must first
  1419. // unlink the instance, and then link it again.
  1420. //
  1421. // Linking your instance to a VPC is sometimes referred to as attaching your
  1422. // instance.
  1423. //
  1424. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1425. // with awserr.Error's Code and Message methods to get detailed information about
  1426. // the error.
  1427. //
  1428. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1429. // API operation AttachClassicLinkVpc for usage and error information.
  1430. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpc
  1431. func (c *EC2) AttachClassicLinkVpc(input *AttachClassicLinkVpcInput) (*AttachClassicLinkVpcOutput, error) {
  1432. req, out := c.AttachClassicLinkVpcRequest(input)
  1433. return out, req.Send()
  1434. }
  1435. // AttachClassicLinkVpcWithContext is the same as AttachClassicLinkVpc with the addition of
  1436. // the ability to pass a context and additional request options.
  1437. //
  1438. // See AttachClassicLinkVpc for details on how to use this API operation.
  1439. //
  1440. // The context must be non-nil and will be used for request cancellation. If
  1441. // the context is nil a panic will occur. In the future the SDK may create
  1442. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1443. // for more information on using Contexts.
  1444. func (c *EC2) AttachClassicLinkVpcWithContext(ctx aws.Context, input *AttachClassicLinkVpcInput, opts ...request.Option) (*AttachClassicLinkVpcOutput, error) {
  1445. req, out := c.AttachClassicLinkVpcRequest(input)
  1446. req.SetContext(ctx)
  1447. req.ApplyOptions(opts...)
  1448. return out, req.Send()
  1449. }
  1450. const opAttachInternetGateway = "AttachInternetGateway"
  1451. // AttachInternetGatewayRequest generates a "aws/request.Request" representing the
  1452. // client's request for the AttachInternetGateway operation. The "output" return
  1453. // value will be populated with the request's response once the request completes
  1454. // successfully.
  1455. //
  1456. // Use "Send" method on the returned Request to send the API call to the service.
  1457. // the "output" return value is not valid until after Send returns without error.
  1458. //
  1459. // See AttachInternetGateway for more information on using the AttachInternetGateway
  1460. // API call, and error handling.
  1461. //
  1462. // This method is useful when you want to inject custom logic or configuration
  1463. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1464. //
  1465. //
  1466. // // Example sending a request using the AttachInternetGatewayRequest method.
  1467. // req, resp := client.AttachInternetGatewayRequest(params)
  1468. //
  1469. // err := req.Send()
  1470. // if err == nil { // resp is now filled
  1471. // fmt.Println(resp)
  1472. // }
  1473. //
  1474. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGateway
  1475. func (c *EC2) AttachInternetGatewayRequest(input *AttachInternetGatewayInput) (req *request.Request, output *AttachInternetGatewayOutput) {
  1476. op := &request.Operation{
  1477. Name: opAttachInternetGateway,
  1478. HTTPMethod: "POST",
  1479. HTTPPath: "/",
  1480. }
  1481. if input == nil {
  1482. input = &AttachInternetGatewayInput{}
  1483. }
  1484. output = &AttachInternetGatewayOutput{}
  1485. req = c.newRequest(op, input, output)
  1486. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1487. return
  1488. }
  1489. // AttachInternetGateway API operation for Amazon Elastic Compute Cloud.
  1490. //
  1491. // Attaches an internet gateway to a VPC, enabling connectivity between the
  1492. // internet and the VPC. For more information about your VPC and internet gateway,
  1493. // see the Amazon Virtual Private Cloud User Guide (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/).
  1494. //
  1495. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1496. // with awserr.Error's Code and Message methods to get detailed information about
  1497. // the error.
  1498. //
  1499. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1500. // API operation AttachInternetGateway for usage and error information.
  1501. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGateway
  1502. func (c *EC2) AttachInternetGateway(input *AttachInternetGatewayInput) (*AttachInternetGatewayOutput, error) {
  1503. req, out := c.AttachInternetGatewayRequest(input)
  1504. return out, req.Send()
  1505. }
  1506. // AttachInternetGatewayWithContext is the same as AttachInternetGateway with the addition of
  1507. // the ability to pass a context and additional request options.
  1508. //
  1509. // See AttachInternetGateway for details on how to use this API operation.
  1510. //
  1511. // The context must be non-nil and will be used for request cancellation. If
  1512. // the context is nil a panic will occur. In the future the SDK may create
  1513. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1514. // for more information on using Contexts.
  1515. func (c *EC2) AttachInternetGatewayWithContext(ctx aws.Context, input *AttachInternetGatewayInput, opts ...request.Option) (*AttachInternetGatewayOutput, error) {
  1516. req, out := c.AttachInternetGatewayRequest(input)
  1517. req.SetContext(ctx)
  1518. req.ApplyOptions(opts...)
  1519. return out, req.Send()
  1520. }
  1521. const opAttachNetworkInterface = "AttachNetworkInterface"
  1522. // AttachNetworkInterfaceRequest generates a "aws/request.Request" representing the
  1523. // client's request for the AttachNetworkInterface operation. The "output" return
  1524. // value will be populated with the request's response once the request completes
  1525. // successfully.
  1526. //
  1527. // Use "Send" method on the returned Request to send the API call to the service.
  1528. // the "output" return value is not valid until after Send returns without error.
  1529. //
  1530. // See AttachNetworkInterface for more information on using the AttachNetworkInterface
  1531. // API call, and error handling.
  1532. //
  1533. // This method is useful when you want to inject custom logic or configuration
  1534. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1535. //
  1536. //
  1537. // // Example sending a request using the AttachNetworkInterfaceRequest method.
  1538. // req, resp := client.AttachNetworkInterfaceRequest(params)
  1539. //
  1540. // err := req.Send()
  1541. // if err == nil { // resp is now filled
  1542. // fmt.Println(resp)
  1543. // }
  1544. //
  1545. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterface
  1546. func (c *EC2) AttachNetworkInterfaceRequest(input *AttachNetworkInterfaceInput) (req *request.Request, output *AttachNetworkInterfaceOutput) {
  1547. op := &request.Operation{
  1548. Name: opAttachNetworkInterface,
  1549. HTTPMethod: "POST",
  1550. HTTPPath: "/",
  1551. }
  1552. if input == nil {
  1553. input = &AttachNetworkInterfaceInput{}
  1554. }
  1555. output = &AttachNetworkInterfaceOutput{}
  1556. req = c.newRequest(op, input, output)
  1557. return
  1558. }
  1559. // AttachNetworkInterface API operation for Amazon Elastic Compute Cloud.
  1560. //
  1561. // Attaches a network interface to an instance.
  1562. //
  1563. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1564. // with awserr.Error's Code and Message methods to get detailed information about
  1565. // the error.
  1566. //
  1567. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1568. // API operation AttachNetworkInterface for usage and error information.
  1569. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterface
  1570. func (c *EC2) AttachNetworkInterface(input *AttachNetworkInterfaceInput) (*AttachNetworkInterfaceOutput, error) {
  1571. req, out := c.AttachNetworkInterfaceRequest(input)
  1572. return out, req.Send()
  1573. }
  1574. // AttachNetworkInterfaceWithContext is the same as AttachNetworkInterface with the addition of
  1575. // the ability to pass a context and additional request options.
  1576. //
  1577. // See AttachNetworkInterface for details on how to use this API operation.
  1578. //
  1579. // The context must be non-nil and will be used for request cancellation. If
  1580. // the context is nil a panic will occur. In the future the SDK may create
  1581. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1582. // for more information on using Contexts.
  1583. func (c *EC2) AttachNetworkInterfaceWithContext(ctx aws.Context, input *AttachNetworkInterfaceInput, opts ...request.Option) (*AttachNetworkInterfaceOutput, error) {
  1584. req, out := c.AttachNetworkInterfaceRequest(input)
  1585. req.SetContext(ctx)
  1586. req.ApplyOptions(opts...)
  1587. return out, req.Send()
  1588. }
  1589. const opAttachVolume = "AttachVolume"
  1590. // AttachVolumeRequest generates a "aws/request.Request" representing the
  1591. // client's request for the AttachVolume operation. The "output" return
  1592. // value will be populated with the request's response once the request completes
  1593. // successfully.
  1594. //
  1595. // Use "Send" method on the returned Request to send the API call to the service.
  1596. // the "output" return value is not valid until after Send returns without error.
  1597. //
  1598. // See AttachVolume for more information on using the AttachVolume
  1599. // API call, and error handling.
  1600. //
  1601. // This method is useful when you want to inject custom logic or configuration
  1602. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1603. //
  1604. //
  1605. // // Example sending a request using the AttachVolumeRequest method.
  1606. // req, resp := client.AttachVolumeRequest(params)
  1607. //
  1608. // err := req.Send()
  1609. // if err == nil { // resp is now filled
  1610. // fmt.Println(resp)
  1611. // }
  1612. //
  1613. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVolume
  1614. func (c *EC2) AttachVolumeRequest(input *AttachVolumeInput) (req *request.Request, output *VolumeAttachment) {
  1615. op := &request.Operation{
  1616. Name: opAttachVolume,
  1617. HTTPMethod: "POST",
  1618. HTTPPath: "/",
  1619. }
  1620. if input == nil {
  1621. input = &AttachVolumeInput{}
  1622. }
  1623. output = &VolumeAttachment{}
  1624. req = c.newRequest(op, input, output)
  1625. return
  1626. }
  1627. // AttachVolume API operation for Amazon Elastic Compute Cloud.
  1628. //
  1629. // Attaches an EBS volume to a running or stopped instance and exposes it to
  1630. // the instance with the specified device name.
  1631. //
  1632. // Encrypted EBS volumes may only be attached to instances that support Amazon
  1633. // EBS encryption. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  1634. // in the Amazon Elastic Compute Cloud User Guide.
  1635. //
  1636. // For a list of supported device names, see Attaching an EBS Volume to an Instance
  1637. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html).
  1638. // Any device names that aren't reserved for instance store volumes can be used
  1639. // for EBS volumes. For more information, see Amazon EC2 Instance Store (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html)
  1640. // in the Amazon Elastic Compute Cloud User Guide.
  1641. //
  1642. // If a volume has an AWS Marketplace product code:
  1643. //
  1644. // * The volume can be attached only to a stopped instance.
  1645. //
  1646. // * AWS Marketplace product codes are copied from the volume to the instance.
  1647. //
  1648. // * You must be subscribed to the product.
  1649. //
  1650. // * The instance type and operating system of the instance must support
  1651. // the product. For example, you can't detach a volume from a Windows instance
  1652. // and attach it to a Linux instance.
  1653. //
  1654. // For more information about EBS volumes, see Attaching Amazon EBS Volumes
  1655. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html)
  1656. // in the Amazon Elastic Compute Cloud User Guide.
  1657. //
  1658. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1659. // with awserr.Error's Code and Message methods to get detailed information about
  1660. // the error.
  1661. //
  1662. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1663. // API operation AttachVolume for usage and error information.
  1664. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVolume
  1665. func (c *EC2) AttachVolume(input *AttachVolumeInput) (*VolumeAttachment, error) {
  1666. req, out := c.AttachVolumeRequest(input)
  1667. return out, req.Send()
  1668. }
  1669. // AttachVolumeWithContext is the same as AttachVolume with the addition of
  1670. // the ability to pass a context and additional request options.
  1671. //
  1672. // See AttachVolume for details on how to use this API operation.
  1673. //
  1674. // The context must be non-nil and will be used for request cancellation. If
  1675. // the context is nil a panic will occur. In the future the SDK may create
  1676. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1677. // for more information on using Contexts.
  1678. func (c *EC2) AttachVolumeWithContext(ctx aws.Context, input *AttachVolumeInput, opts ...request.Option) (*VolumeAttachment, error) {
  1679. req, out := c.AttachVolumeRequest(input)
  1680. req.SetContext(ctx)
  1681. req.ApplyOptions(opts...)
  1682. return out, req.Send()
  1683. }
  1684. const opAttachVpnGateway = "AttachVpnGateway"
  1685. // AttachVpnGatewayRequest generates a "aws/request.Request" representing the
  1686. // client's request for the AttachVpnGateway operation. The "output" return
  1687. // value will be populated with the request's response once the request completes
  1688. // successfully.
  1689. //
  1690. // Use "Send" method on the returned Request to send the API call to the service.
  1691. // the "output" return value is not valid until after Send returns without error.
  1692. //
  1693. // See AttachVpnGateway for more information on using the AttachVpnGateway
  1694. // API call, and error handling.
  1695. //
  1696. // This method is useful when you want to inject custom logic or configuration
  1697. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1698. //
  1699. //
  1700. // // Example sending a request using the AttachVpnGatewayRequest method.
  1701. // req, resp := client.AttachVpnGatewayRequest(params)
  1702. //
  1703. // err := req.Send()
  1704. // if err == nil { // resp is now filled
  1705. // fmt.Println(resp)
  1706. // }
  1707. //
  1708. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGateway
  1709. func (c *EC2) AttachVpnGatewayRequest(input *AttachVpnGatewayInput) (req *request.Request, output *AttachVpnGatewayOutput) {
  1710. op := &request.Operation{
  1711. Name: opAttachVpnGateway,
  1712. HTTPMethod: "POST",
  1713. HTTPPath: "/",
  1714. }
  1715. if input == nil {
  1716. input = &AttachVpnGatewayInput{}
  1717. }
  1718. output = &AttachVpnGatewayOutput{}
  1719. req = c.newRequest(op, input, output)
  1720. return
  1721. }
  1722. // AttachVpnGateway API operation for Amazon Elastic Compute Cloud.
  1723. //
  1724. // Attaches a virtual private gateway to a VPC. You can attach one virtual private
  1725. // gateway to one VPC at a time.
  1726. //
  1727. // For more information, see AWS Managed VPN Connections (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  1728. // in the Amazon Virtual Private Cloud User Guide.
  1729. //
  1730. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1731. // with awserr.Error's Code and Message methods to get detailed information about
  1732. // the error.
  1733. //
  1734. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1735. // API operation AttachVpnGateway for usage and error information.
  1736. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGateway
  1737. func (c *EC2) AttachVpnGateway(input *AttachVpnGatewayInput) (*AttachVpnGatewayOutput, error) {
  1738. req, out := c.AttachVpnGatewayRequest(input)
  1739. return out, req.Send()
  1740. }
  1741. // AttachVpnGatewayWithContext is the same as AttachVpnGateway with the addition of
  1742. // the ability to pass a context and additional request options.
  1743. //
  1744. // See AttachVpnGateway for details on how to use this API operation.
  1745. //
  1746. // The context must be non-nil and will be used for request cancellation. If
  1747. // the context is nil a panic will occur. In the future the SDK may create
  1748. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1749. // for more information on using Contexts.
  1750. func (c *EC2) AttachVpnGatewayWithContext(ctx aws.Context, input *AttachVpnGatewayInput, opts ...request.Option) (*AttachVpnGatewayOutput, error) {
  1751. req, out := c.AttachVpnGatewayRequest(input)
  1752. req.SetContext(ctx)
  1753. req.ApplyOptions(opts...)
  1754. return out, req.Send()
  1755. }
  1756. const opAuthorizeClientVpnIngress = "AuthorizeClientVpnIngress"
  1757. // AuthorizeClientVpnIngressRequest generates a "aws/request.Request" representing the
  1758. // client's request for the AuthorizeClientVpnIngress operation. The "output" return
  1759. // value will be populated with the request's response once the request completes
  1760. // successfully.
  1761. //
  1762. // Use "Send" method on the returned Request to send the API call to the service.
  1763. // the "output" return value is not valid until after Send returns without error.
  1764. //
  1765. // See AuthorizeClientVpnIngress for more information on using the AuthorizeClientVpnIngress
  1766. // API call, and error handling.
  1767. //
  1768. // This method is useful when you want to inject custom logic or configuration
  1769. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1770. //
  1771. //
  1772. // // Example sending a request using the AuthorizeClientVpnIngressRequest method.
  1773. // req, resp := client.AuthorizeClientVpnIngressRequest(params)
  1774. //
  1775. // err := req.Send()
  1776. // if err == nil { // resp is now filled
  1777. // fmt.Println(resp)
  1778. // }
  1779. //
  1780. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeClientVpnIngress
  1781. func (c *EC2) AuthorizeClientVpnIngressRequest(input *AuthorizeClientVpnIngressInput) (req *request.Request, output *AuthorizeClientVpnIngressOutput) {
  1782. op := &request.Operation{
  1783. Name: opAuthorizeClientVpnIngress,
  1784. HTTPMethod: "POST",
  1785. HTTPPath: "/",
  1786. }
  1787. if input == nil {
  1788. input = &AuthorizeClientVpnIngressInput{}
  1789. }
  1790. output = &AuthorizeClientVpnIngressOutput{}
  1791. req = c.newRequest(op, input, output)
  1792. return
  1793. }
  1794. // AuthorizeClientVpnIngress API operation for Amazon Elastic Compute Cloud.
  1795. //
  1796. // Adds an ingress authorization rule to a Client VPN endpoint. Ingress authorization
  1797. // rules act as firewall rules that grant access to networks. You must configure
  1798. // ingress authorization rules to enable clients to access resources in AWS
  1799. // or on-premises networks.
  1800. //
  1801. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1802. // with awserr.Error's Code and Message methods to get detailed information about
  1803. // the error.
  1804. //
  1805. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1806. // API operation AuthorizeClientVpnIngress for usage and error information.
  1807. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeClientVpnIngress
  1808. func (c *EC2) AuthorizeClientVpnIngress(input *AuthorizeClientVpnIngressInput) (*AuthorizeClientVpnIngressOutput, error) {
  1809. req, out := c.AuthorizeClientVpnIngressRequest(input)
  1810. return out, req.Send()
  1811. }
  1812. // AuthorizeClientVpnIngressWithContext is the same as AuthorizeClientVpnIngress with the addition of
  1813. // the ability to pass a context and additional request options.
  1814. //
  1815. // See AuthorizeClientVpnIngress for details on how to use this API operation.
  1816. //
  1817. // The context must be non-nil and will be used for request cancellation. If
  1818. // the context is nil a panic will occur. In the future the SDK may create
  1819. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1820. // for more information on using Contexts.
  1821. func (c *EC2) AuthorizeClientVpnIngressWithContext(ctx aws.Context, input *AuthorizeClientVpnIngressInput, opts ...request.Option) (*AuthorizeClientVpnIngressOutput, error) {
  1822. req, out := c.AuthorizeClientVpnIngressRequest(input)
  1823. req.SetContext(ctx)
  1824. req.ApplyOptions(opts...)
  1825. return out, req.Send()
  1826. }
  1827. const opAuthorizeSecurityGroupEgress = "AuthorizeSecurityGroupEgress"
  1828. // AuthorizeSecurityGroupEgressRequest generates a "aws/request.Request" representing the
  1829. // client's request for the AuthorizeSecurityGroupEgress operation. The "output" return
  1830. // value will be populated with the request's response once the request completes
  1831. // successfully.
  1832. //
  1833. // Use "Send" method on the returned Request to send the API call to the service.
  1834. // the "output" return value is not valid until after Send returns without error.
  1835. //
  1836. // See AuthorizeSecurityGroupEgress for more information on using the AuthorizeSecurityGroupEgress
  1837. // API call, and error handling.
  1838. //
  1839. // This method is useful when you want to inject custom logic or configuration
  1840. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1841. //
  1842. //
  1843. // // Example sending a request using the AuthorizeSecurityGroupEgressRequest method.
  1844. // req, resp := client.AuthorizeSecurityGroupEgressRequest(params)
  1845. //
  1846. // err := req.Send()
  1847. // if err == nil { // resp is now filled
  1848. // fmt.Println(resp)
  1849. // }
  1850. //
  1851. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgress
  1852. func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupEgressInput) (req *request.Request, output *AuthorizeSecurityGroupEgressOutput) {
  1853. op := &request.Operation{
  1854. Name: opAuthorizeSecurityGroupEgress,
  1855. HTTPMethod: "POST",
  1856. HTTPPath: "/",
  1857. }
  1858. if input == nil {
  1859. input = &AuthorizeSecurityGroupEgressInput{}
  1860. }
  1861. output = &AuthorizeSecurityGroupEgressOutput{}
  1862. req = c.newRequest(op, input, output)
  1863. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1864. return
  1865. }
  1866. // AuthorizeSecurityGroupEgress API operation for Amazon Elastic Compute Cloud.
  1867. //
  1868. // [EC2-VPC only] Adds one or more egress rules to a security group for use
  1869. // with a VPC. Specifically, this action permits instances to send traffic to
  1870. // one or more destination IPv4 or IPv6 CIDR address ranges, or to one or more
  1871. // destination security groups for the same VPC. This action doesn't apply to
  1872. // security groups for use in EC2-Classic. For more information, see Security
  1873. // Groups for Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  1874. // in the Amazon Virtual Private Cloud User Guide. For more information about
  1875. // security group limits, see Amazon VPC Limits (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html).
  1876. //
  1877. // Each rule consists of the protocol (for example, TCP), plus either a CIDR
  1878. // range or a source group. For the TCP and UDP protocols, you must also specify
  1879. // the destination port or port range. For the ICMP protocol, you must also
  1880. // specify the ICMP type and code. You can use -1 for the type or code to mean
  1881. // all types or all codes. You can optionally specify a description for the
  1882. // rule.
  1883. //
  1884. // Rule changes are propagated to affected instances as quickly as possible.
  1885. // However, a small delay might occur.
  1886. //
  1887. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1888. // with awserr.Error's Code and Message methods to get detailed information about
  1889. // the error.
  1890. //
  1891. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1892. // API operation AuthorizeSecurityGroupEgress for usage and error information.
  1893. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgress
  1894. func (c *EC2) AuthorizeSecurityGroupEgress(input *AuthorizeSecurityGroupEgressInput) (*AuthorizeSecurityGroupEgressOutput, error) {
  1895. req, out := c.AuthorizeSecurityGroupEgressRequest(input)
  1896. return out, req.Send()
  1897. }
  1898. // AuthorizeSecurityGroupEgressWithContext is the same as AuthorizeSecurityGroupEgress with the addition of
  1899. // the ability to pass a context and additional request options.
  1900. //
  1901. // See AuthorizeSecurityGroupEgress for details on how to use this API operation.
  1902. //
  1903. // The context must be non-nil and will be used for request cancellation. If
  1904. // the context is nil a panic will occur. In the future the SDK may create
  1905. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1906. // for more information on using Contexts.
  1907. func (c *EC2) AuthorizeSecurityGroupEgressWithContext(ctx aws.Context, input *AuthorizeSecurityGroupEgressInput, opts ...request.Option) (*AuthorizeSecurityGroupEgressOutput, error) {
  1908. req, out := c.AuthorizeSecurityGroupEgressRequest(input)
  1909. req.SetContext(ctx)
  1910. req.ApplyOptions(opts...)
  1911. return out, req.Send()
  1912. }
  1913. const opAuthorizeSecurityGroupIngress = "AuthorizeSecurityGroupIngress"
  1914. // AuthorizeSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  1915. // client's request for the AuthorizeSecurityGroupIngress operation. The "output" return
  1916. // value will be populated with the request's response once the request completes
  1917. // successfully.
  1918. //
  1919. // Use "Send" method on the returned Request to send the API call to the service.
  1920. // the "output" return value is not valid until after Send returns without error.
  1921. //
  1922. // See AuthorizeSecurityGroupIngress for more information on using the AuthorizeSecurityGroupIngress
  1923. // API call, and error handling.
  1924. //
  1925. // This method is useful when you want to inject custom logic or configuration
  1926. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1927. //
  1928. //
  1929. // // Example sending a request using the AuthorizeSecurityGroupIngressRequest method.
  1930. // req, resp := client.AuthorizeSecurityGroupIngressRequest(params)
  1931. //
  1932. // err := req.Send()
  1933. // if err == nil { // resp is now filled
  1934. // fmt.Println(resp)
  1935. // }
  1936. //
  1937. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngress
  1938. func (c *EC2) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroupIngressInput) (req *request.Request, output *AuthorizeSecurityGroupIngressOutput) {
  1939. op := &request.Operation{
  1940. Name: opAuthorizeSecurityGroupIngress,
  1941. HTTPMethod: "POST",
  1942. HTTPPath: "/",
  1943. }
  1944. if input == nil {
  1945. input = &AuthorizeSecurityGroupIngressInput{}
  1946. }
  1947. output = &AuthorizeSecurityGroupIngressOutput{}
  1948. req = c.newRequest(op, input, output)
  1949. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1950. return
  1951. }
  1952. // AuthorizeSecurityGroupIngress API operation for Amazon Elastic Compute Cloud.
  1953. //
  1954. // Adds one or more ingress rules to a security group.
  1955. //
  1956. // Rule changes are propagated to instances within the security group as quickly
  1957. // as possible. However, a small delay might occur.
  1958. //
  1959. // [EC2-Classic] This action gives one or more IPv4 CIDR address ranges permission
  1960. // to access a security group in your account, or gives one or more security
  1961. // groups (called the source groups) permission to access a security group for
  1962. // your account. A source group can be for your own AWS account, or another.
  1963. // You can have up to 100 rules per group.
  1964. //
  1965. // [EC2-VPC] This action gives one or more IPv4 or IPv6 CIDR address ranges
  1966. // permission to access a security group in your VPC, or gives one or more other
  1967. // security groups (called the source groups) permission to access a security
  1968. // group for your VPC. The security groups must all be for the same VPC or a
  1969. // peer VPC in a VPC peering connection. For more information about VPC security
  1970. // group limits, see Amazon VPC Limits (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html).
  1971. //
  1972. // You can optionally specify a description for the security group rule.
  1973. //
  1974. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1975. // with awserr.Error's Code and Message methods to get detailed information about
  1976. // the error.
  1977. //
  1978. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1979. // API operation AuthorizeSecurityGroupIngress for usage and error information.
  1980. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngress
  1981. func (c *EC2) AuthorizeSecurityGroupIngress(input *AuthorizeSecurityGroupIngressInput) (*AuthorizeSecurityGroupIngressOutput, error) {
  1982. req, out := c.AuthorizeSecurityGroupIngressRequest(input)
  1983. return out, req.Send()
  1984. }
  1985. // AuthorizeSecurityGroupIngressWithContext is the same as AuthorizeSecurityGroupIngress with the addition of
  1986. // the ability to pass a context and additional request options.
  1987. //
  1988. // See AuthorizeSecurityGroupIngress for details on how to use this API operation.
  1989. //
  1990. // The context must be non-nil and will be used for request cancellation. If
  1991. // the context is nil a panic will occur. In the future the SDK may create
  1992. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1993. // for more information on using Contexts.
  1994. func (c *EC2) AuthorizeSecurityGroupIngressWithContext(ctx aws.Context, input *AuthorizeSecurityGroupIngressInput, opts ...request.Option) (*AuthorizeSecurityGroupIngressOutput, error) {
  1995. req, out := c.AuthorizeSecurityGroupIngressRequest(input)
  1996. req.SetContext(ctx)
  1997. req.ApplyOptions(opts...)
  1998. return out, req.Send()
  1999. }
  2000. const opBundleInstance = "BundleInstance"
  2001. // BundleInstanceRequest generates a "aws/request.Request" representing the
  2002. // client's request for the BundleInstance operation. The "output" return
  2003. // value will be populated with the request's response once the request completes
  2004. // successfully.
  2005. //
  2006. // Use "Send" method on the returned Request to send the API call to the service.
  2007. // the "output" return value is not valid until after Send returns without error.
  2008. //
  2009. // See BundleInstance for more information on using the BundleInstance
  2010. // API call, and error handling.
  2011. //
  2012. // This method is useful when you want to inject custom logic or configuration
  2013. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2014. //
  2015. //
  2016. // // Example sending a request using the BundleInstanceRequest method.
  2017. // req, resp := client.BundleInstanceRequest(params)
  2018. //
  2019. // err := req.Send()
  2020. // if err == nil { // resp is now filled
  2021. // fmt.Println(resp)
  2022. // }
  2023. //
  2024. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstance
  2025. func (c *EC2) BundleInstanceRequest(input *BundleInstanceInput) (req *request.Request, output *BundleInstanceOutput) {
  2026. op := &request.Operation{
  2027. Name: opBundleInstance,
  2028. HTTPMethod: "POST",
  2029. HTTPPath: "/",
  2030. }
  2031. if input == nil {
  2032. input = &BundleInstanceInput{}
  2033. }
  2034. output = &BundleInstanceOutput{}
  2035. req = c.newRequest(op, input, output)
  2036. return
  2037. }
  2038. // BundleInstance API operation for Amazon Elastic Compute Cloud.
  2039. //
  2040. // Bundles an Amazon instance store-backed Windows instance.
  2041. //
  2042. // During bundling, only the root device volume (C:\) is bundled. Data on other
  2043. // instance store volumes is not preserved.
  2044. //
  2045. // This action is not applicable for Linux/Unix instances or Windows instances
  2046. // that are backed by Amazon EBS.
  2047. //
  2048. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2049. // with awserr.Error's Code and Message methods to get detailed information about
  2050. // the error.
  2051. //
  2052. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2053. // API operation BundleInstance for usage and error information.
  2054. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstance
  2055. func (c *EC2) BundleInstance(input *BundleInstanceInput) (*BundleInstanceOutput, error) {
  2056. req, out := c.BundleInstanceRequest(input)
  2057. return out, req.Send()
  2058. }
  2059. // BundleInstanceWithContext is the same as BundleInstance with the addition of
  2060. // the ability to pass a context and additional request options.
  2061. //
  2062. // See BundleInstance for details on how to use this API operation.
  2063. //
  2064. // The context must be non-nil and will be used for request cancellation. If
  2065. // the context is nil a panic will occur. In the future the SDK may create
  2066. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2067. // for more information on using Contexts.
  2068. func (c *EC2) BundleInstanceWithContext(ctx aws.Context, input *BundleInstanceInput, opts ...request.Option) (*BundleInstanceOutput, error) {
  2069. req, out := c.BundleInstanceRequest(input)
  2070. req.SetContext(ctx)
  2071. req.ApplyOptions(opts...)
  2072. return out, req.Send()
  2073. }
  2074. const opCancelBundleTask = "CancelBundleTask"
  2075. // CancelBundleTaskRequest generates a "aws/request.Request" representing the
  2076. // client's request for the CancelBundleTask operation. The "output" return
  2077. // value will be populated with the request's response once the request completes
  2078. // successfully.
  2079. //
  2080. // Use "Send" method on the returned Request to send the API call to the service.
  2081. // the "output" return value is not valid until after Send returns without error.
  2082. //
  2083. // See CancelBundleTask for more information on using the CancelBundleTask
  2084. // API call, and error handling.
  2085. //
  2086. // This method is useful when you want to inject custom logic or configuration
  2087. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2088. //
  2089. //
  2090. // // Example sending a request using the CancelBundleTaskRequest method.
  2091. // req, resp := client.CancelBundleTaskRequest(params)
  2092. //
  2093. // err := req.Send()
  2094. // if err == nil { // resp is now filled
  2095. // fmt.Println(resp)
  2096. // }
  2097. //
  2098. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTask
  2099. func (c *EC2) CancelBundleTaskRequest(input *CancelBundleTaskInput) (req *request.Request, output *CancelBundleTaskOutput) {
  2100. op := &request.Operation{
  2101. Name: opCancelBundleTask,
  2102. HTTPMethod: "POST",
  2103. HTTPPath: "/",
  2104. }
  2105. if input == nil {
  2106. input = &CancelBundleTaskInput{}
  2107. }
  2108. output = &CancelBundleTaskOutput{}
  2109. req = c.newRequest(op, input, output)
  2110. return
  2111. }
  2112. // CancelBundleTask API operation for Amazon Elastic Compute Cloud.
  2113. //
  2114. // Cancels a bundling operation for an instance store-backed Windows instance.
  2115. //
  2116. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2117. // with awserr.Error's Code and Message methods to get detailed information about
  2118. // the error.
  2119. //
  2120. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2121. // API operation CancelBundleTask for usage and error information.
  2122. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTask
  2123. func (c *EC2) CancelBundleTask(input *CancelBundleTaskInput) (*CancelBundleTaskOutput, error) {
  2124. req, out := c.CancelBundleTaskRequest(input)
  2125. return out, req.Send()
  2126. }
  2127. // CancelBundleTaskWithContext is the same as CancelBundleTask with the addition of
  2128. // the ability to pass a context and additional request options.
  2129. //
  2130. // See CancelBundleTask for details on how to use this API operation.
  2131. //
  2132. // The context must be non-nil and will be used for request cancellation. If
  2133. // the context is nil a panic will occur. In the future the SDK may create
  2134. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2135. // for more information on using Contexts.
  2136. func (c *EC2) CancelBundleTaskWithContext(ctx aws.Context, input *CancelBundleTaskInput, opts ...request.Option) (*CancelBundleTaskOutput, error) {
  2137. req, out := c.CancelBundleTaskRequest(input)
  2138. req.SetContext(ctx)
  2139. req.ApplyOptions(opts...)
  2140. return out, req.Send()
  2141. }
  2142. const opCancelCapacityReservation = "CancelCapacityReservation"
  2143. // CancelCapacityReservationRequest generates a "aws/request.Request" representing the
  2144. // client's request for the CancelCapacityReservation operation. The "output" return
  2145. // value will be populated with the request's response once the request completes
  2146. // successfully.
  2147. //
  2148. // Use "Send" method on the returned Request to send the API call to the service.
  2149. // the "output" return value is not valid until after Send returns without error.
  2150. //
  2151. // See CancelCapacityReservation for more information on using the CancelCapacityReservation
  2152. // API call, and error handling.
  2153. //
  2154. // This method is useful when you want to inject custom logic or configuration
  2155. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2156. //
  2157. //
  2158. // // Example sending a request using the CancelCapacityReservationRequest method.
  2159. // req, resp := client.CancelCapacityReservationRequest(params)
  2160. //
  2161. // err := req.Send()
  2162. // if err == nil { // resp is now filled
  2163. // fmt.Println(resp)
  2164. // }
  2165. //
  2166. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelCapacityReservation
  2167. func (c *EC2) CancelCapacityReservationRequest(input *CancelCapacityReservationInput) (req *request.Request, output *CancelCapacityReservationOutput) {
  2168. op := &request.Operation{
  2169. Name: opCancelCapacityReservation,
  2170. HTTPMethod: "POST",
  2171. HTTPPath: "/",
  2172. }
  2173. if input == nil {
  2174. input = &CancelCapacityReservationInput{}
  2175. }
  2176. output = &CancelCapacityReservationOutput{}
  2177. req = c.newRequest(op, input, output)
  2178. return
  2179. }
  2180. // CancelCapacityReservation API operation for Amazon Elastic Compute Cloud.
  2181. //
  2182. // Cancels the specified Capacity Reservation, releases the reserved capacity,
  2183. // and changes the Capacity Reservation's state to cancelled.
  2184. //
  2185. // Instances running in the reserved capacity continue running until you stop
  2186. // them. Stopped instances that target the Capacity Reservation can no longer
  2187. // launch. Modify these instances to either target a different Capacity Reservation,
  2188. // launch On-Demand Instance capacity, or run in any open Capacity Reservation
  2189. // that has matching attributes and sufficient capacity.
  2190. //
  2191. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2192. // with awserr.Error's Code and Message methods to get detailed information about
  2193. // the error.
  2194. //
  2195. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2196. // API operation CancelCapacityReservation for usage and error information.
  2197. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelCapacityReservation
  2198. func (c *EC2) CancelCapacityReservation(input *CancelCapacityReservationInput) (*CancelCapacityReservationOutput, error) {
  2199. req, out := c.CancelCapacityReservationRequest(input)
  2200. return out, req.Send()
  2201. }
  2202. // CancelCapacityReservationWithContext is the same as CancelCapacityReservation with the addition of
  2203. // the ability to pass a context and additional request options.
  2204. //
  2205. // See CancelCapacityReservation for details on how to use this API operation.
  2206. //
  2207. // The context must be non-nil and will be used for request cancellation. If
  2208. // the context is nil a panic will occur. In the future the SDK may create
  2209. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2210. // for more information on using Contexts.
  2211. func (c *EC2) CancelCapacityReservationWithContext(ctx aws.Context, input *CancelCapacityReservationInput, opts ...request.Option) (*CancelCapacityReservationOutput, error) {
  2212. req, out := c.CancelCapacityReservationRequest(input)
  2213. req.SetContext(ctx)
  2214. req.ApplyOptions(opts...)
  2215. return out, req.Send()
  2216. }
  2217. const opCancelConversionTask = "CancelConversionTask"
  2218. // CancelConversionTaskRequest generates a "aws/request.Request" representing the
  2219. // client's request for the CancelConversionTask operation. The "output" return
  2220. // value will be populated with the request's response once the request completes
  2221. // successfully.
  2222. //
  2223. // Use "Send" method on the returned Request to send the API call to the service.
  2224. // the "output" return value is not valid until after Send returns without error.
  2225. //
  2226. // See CancelConversionTask for more information on using the CancelConversionTask
  2227. // API call, and error handling.
  2228. //
  2229. // This method is useful when you want to inject custom logic or configuration
  2230. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2231. //
  2232. //
  2233. // // Example sending a request using the CancelConversionTaskRequest method.
  2234. // req, resp := client.CancelConversionTaskRequest(params)
  2235. //
  2236. // err := req.Send()
  2237. // if err == nil { // resp is now filled
  2238. // fmt.Println(resp)
  2239. // }
  2240. //
  2241. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionTask
  2242. func (c *EC2) CancelConversionTaskRequest(input *CancelConversionTaskInput) (req *request.Request, output *CancelConversionTaskOutput) {
  2243. op := &request.Operation{
  2244. Name: opCancelConversionTask,
  2245. HTTPMethod: "POST",
  2246. HTTPPath: "/",
  2247. }
  2248. if input == nil {
  2249. input = &CancelConversionTaskInput{}
  2250. }
  2251. output = &CancelConversionTaskOutput{}
  2252. req = c.newRequest(op, input, output)
  2253. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2254. return
  2255. }
  2256. // CancelConversionTask API operation for Amazon Elastic Compute Cloud.
  2257. //
  2258. // Cancels an active conversion task. The task can be the import of an instance
  2259. // or volume. The action removes all artifacts of the conversion, including
  2260. // a partially uploaded volume or instance. If the conversion is complete or
  2261. // is in the process of transferring the final disk image, the command fails
  2262. // and returns an exception.
  2263. //
  2264. // For more information, see Importing a Virtual Machine Using the Amazon EC2
  2265. // CLI (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html).
  2266. //
  2267. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2268. // with awserr.Error's Code and Message methods to get detailed information about
  2269. // the error.
  2270. //
  2271. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2272. // API operation CancelConversionTask for usage and error information.
  2273. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionTask
  2274. func (c *EC2) CancelConversionTask(input *CancelConversionTaskInput) (*CancelConversionTaskOutput, error) {
  2275. req, out := c.CancelConversionTaskRequest(input)
  2276. return out, req.Send()
  2277. }
  2278. // CancelConversionTaskWithContext is the same as CancelConversionTask with the addition of
  2279. // the ability to pass a context and additional request options.
  2280. //
  2281. // See CancelConversionTask for details on how to use this API operation.
  2282. //
  2283. // The context must be non-nil and will be used for request cancellation. If
  2284. // the context is nil a panic will occur. In the future the SDK may create
  2285. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2286. // for more information on using Contexts.
  2287. func (c *EC2) CancelConversionTaskWithContext(ctx aws.Context, input *CancelConversionTaskInput, opts ...request.Option) (*CancelConversionTaskOutput, error) {
  2288. req, out := c.CancelConversionTaskRequest(input)
  2289. req.SetContext(ctx)
  2290. req.ApplyOptions(opts...)
  2291. return out, req.Send()
  2292. }
  2293. const opCancelExportTask = "CancelExportTask"
  2294. // CancelExportTaskRequest generates a "aws/request.Request" representing the
  2295. // client's request for the CancelExportTask operation. The "output" return
  2296. // value will be populated with the request's response once the request completes
  2297. // successfully.
  2298. //
  2299. // Use "Send" method on the returned Request to send the API call to the service.
  2300. // the "output" return value is not valid until after Send returns without error.
  2301. //
  2302. // See CancelExportTask for more information on using the CancelExportTask
  2303. // API call, and error handling.
  2304. //
  2305. // This method is useful when you want to inject custom logic or configuration
  2306. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2307. //
  2308. //
  2309. // // Example sending a request using the CancelExportTaskRequest method.
  2310. // req, resp := client.CancelExportTaskRequest(params)
  2311. //
  2312. // err := req.Send()
  2313. // if err == nil { // resp is now filled
  2314. // fmt.Println(resp)
  2315. // }
  2316. //
  2317. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTask
  2318. func (c *EC2) CancelExportTaskRequest(input *CancelExportTaskInput) (req *request.Request, output *CancelExportTaskOutput) {
  2319. op := &request.Operation{
  2320. Name: opCancelExportTask,
  2321. HTTPMethod: "POST",
  2322. HTTPPath: "/",
  2323. }
  2324. if input == nil {
  2325. input = &CancelExportTaskInput{}
  2326. }
  2327. output = &CancelExportTaskOutput{}
  2328. req = c.newRequest(op, input, output)
  2329. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2330. return
  2331. }
  2332. // CancelExportTask API operation for Amazon Elastic Compute Cloud.
  2333. //
  2334. // Cancels an active export task. The request removes all artifacts of the export,
  2335. // including any partially-created Amazon S3 objects. If the export task is
  2336. // complete or is in the process of transferring the final disk image, the command
  2337. // fails and returns an error.
  2338. //
  2339. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2340. // with awserr.Error's Code and Message methods to get detailed information about
  2341. // the error.
  2342. //
  2343. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2344. // API operation CancelExportTask for usage and error information.
  2345. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTask
  2346. func (c *EC2) CancelExportTask(input *CancelExportTaskInput) (*CancelExportTaskOutput, error) {
  2347. req, out := c.CancelExportTaskRequest(input)
  2348. return out, req.Send()
  2349. }
  2350. // CancelExportTaskWithContext is the same as CancelExportTask with the addition of
  2351. // the ability to pass a context and additional request options.
  2352. //
  2353. // See CancelExportTask for details on how to use this API operation.
  2354. //
  2355. // The context must be non-nil and will be used for request cancellation. If
  2356. // the context is nil a panic will occur. In the future the SDK may create
  2357. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2358. // for more information on using Contexts.
  2359. func (c *EC2) CancelExportTaskWithContext(ctx aws.Context, input *CancelExportTaskInput, opts ...request.Option) (*CancelExportTaskOutput, error) {
  2360. req, out := c.CancelExportTaskRequest(input)
  2361. req.SetContext(ctx)
  2362. req.ApplyOptions(opts...)
  2363. return out, req.Send()
  2364. }
  2365. const opCancelImportTask = "CancelImportTask"
  2366. // CancelImportTaskRequest generates a "aws/request.Request" representing the
  2367. // client's request for the CancelImportTask operation. The "output" return
  2368. // value will be populated with the request's response once the request completes
  2369. // successfully.
  2370. //
  2371. // Use "Send" method on the returned Request to send the API call to the service.
  2372. // the "output" return value is not valid until after Send returns without error.
  2373. //
  2374. // See CancelImportTask for more information on using the CancelImportTask
  2375. // API call, and error handling.
  2376. //
  2377. // This method is useful when you want to inject custom logic or configuration
  2378. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2379. //
  2380. //
  2381. // // Example sending a request using the CancelImportTaskRequest method.
  2382. // req, resp := client.CancelImportTaskRequest(params)
  2383. //
  2384. // err := req.Send()
  2385. // if err == nil { // resp is now filled
  2386. // fmt.Println(resp)
  2387. // }
  2388. //
  2389. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTask
  2390. func (c *EC2) CancelImportTaskRequest(input *CancelImportTaskInput) (req *request.Request, output *CancelImportTaskOutput) {
  2391. op := &request.Operation{
  2392. Name: opCancelImportTask,
  2393. HTTPMethod: "POST",
  2394. HTTPPath: "/",
  2395. }
  2396. if input == nil {
  2397. input = &CancelImportTaskInput{}
  2398. }
  2399. output = &CancelImportTaskOutput{}
  2400. req = c.newRequest(op, input, output)
  2401. return
  2402. }
  2403. // CancelImportTask API operation for Amazon Elastic Compute Cloud.
  2404. //
  2405. // Cancels an in-process import virtual machine or import snapshot task.
  2406. //
  2407. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2408. // with awserr.Error's Code and Message methods to get detailed information about
  2409. // the error.
  2410. //
  2411. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2412. // API operation CancelImportTask for usage and error information.
  2413. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTask
  2414. func (c *EC2) CancelImportTask(input *CancelImportTaskInput) (*CancelImportTaskOutput, error) {
  2415. req, out := c.CancelImportTaskRequest(input)
  2416. return out, req.Send()
  2417. }
  2418. // CancelImportTaskWithContext is the same as CancelImportTask with the addition of
  2419. // the ability to pass a context and additional request options.
  2420. //
  2421. // See CancelImportTask for details on how to use this API operation.
  2422. //
  2423. // The context must be non-nil and will be used for request cancellation. If
  2424. // the context is nil a panic will occur. In the future the SDK may create
  2425. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2426. // for more information on using Contexts.
  2427. func (c *EC2) CancelImportTaskWithContext(ctx aws.Context, input *CancelImportTaskInput, opts ...request.Option) (*CancelImportTaskOutput, error) {
  2428. req, out := c.CancelImportTaskRequest(input)
  2429. req.SetContext(ctx)
  2430. req.ApplyOptions(opts...)
  2431. return out, req.Send()
  2432. }
  2433. const opCancelReservedInstancesListing = "CancelReservedInstancesListing"
  2434. // CancelReservedInstancesListingRequest generates a "aws/request.Request" representing the
  2435. // client's request for the CancelReservedInstancesListing operation. The "output" return
  2436. // value will be populated with the request's response once the request completes
  2437. // successfully.
  2438. //
  2439. // Use "Send" method on the returned Request to send the API call to the service.
  2440. // the "output" return value is not valid until after Send returns without error.
  2441. //
  2442. // See CancelReservedInstancesListing for more information on using the CancelReservedInstancesListing
  2443. // API call, and error handling.
  2444. //
  2445. // This method is useful when you want to inject custom logic or configuration
  2446. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2447. //
  2448. //
  2449. // // Example sending a request using the CancelReservedInstancesListingRequest method.
  2450. // req, resp := client.CancelReservedInstancesListingRequest(params)
  2451. //
  2452. // err := req.Send()
  2453. // if err == nil { // resp is now filled
  2454. // fmt.Println(resp)
  2455. // }
  2456. //
  2457. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListing
  2458. func (c *EC2) CancelReservedInstancesListingRequest(input *CancelReservedInstancesListingInput) (req *request.Request, output *CancelReservedInstancesListingOutput) {
  2459. op := &request.Operation{
  2460. Name: opCancelReservedInstancesListing,
  2461. HTTPMethod: "POST",
  2462. HTTPPath: "/",
  2463. }
  2464. if input == nil {
  2465. input = &CancelReservedInstancesListingInput{}
  2466. }
  2467. output = &CancelReservedInstancesListingOutput{}
  2468. req = c.newRequest(op, input, output)
  2469. return
  2470. }
  2471. // CancelReservedInstancesListing API operation for Amazon Elastic Compute Cloud.
  2472. //
  2473. // Cancels the specified Reserved Instance listing in the Reserved Instance
  2474. // Marketplace.
  2475. //
  2476. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  2477. // in the Amazon Elastic Compute Cloud User Guide.
  2478. //
  2479. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2480. // with awserr.Error's Code and Message methods to get detailed information about
  2481. // the error.
  2482. //
  2483. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2484. // API operation CancelReservedInstancesListing for usage and error information.
  2485. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListing
  2486. func (c *EC2) CancelReservedInstancesListing(input *CancelReservedInstancesListingInput) (*CancelReservedInstancesListingOutput, error) {
  2487. req, out := c.CancelReservedInstancesListingRequest(input)
  2488. return out, req.Send()
  2489. }
  2490. // CancelReservedInstancesListingWithContext is the same as CancelReservedInstancesListing with the addition of
  2491. // the ability to pass a context and additional request options.
  2492. //
  2493. // See CancelReservedInstancesListing for details on how to use this API operation.
  2494. //
  2495. // The context must be non-nil and will be used for request cancellation. If
  2496. // the context is nil a panic will occur. In the future the SDK may create
  2497. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2498. // for more information on using Contexts.
  2499. func (c *EC2) CancelReservedInstancesListingWithContext(ctx aws.Context, input *CancelReservedInstancesListingInput, opts ...request.Option) (*CancelReservedInstancesListingOutput, error) {
  2500. req, out := c.CancelReservedInstancesListingRequest(input)
  2501. req.SetContext(ctx)
  2502. req.ApplyOptions(opts...)
  2503. return out, req.Send()
  2504. }
  2505. const opCancelSpotFleetRequests = "CancelSpotFleetRequests"
  2506. // CancelSpotFleetRequestsRequest generates a "aws/request.Request" representing the
  2507. // client's request for the CancelSpotFleetRequests operation. The "output" return
  2508. // value will be populated with the request's response once the request completes
  2509. // successfully.
  2510. //
  2511. // Use "Send" method on the returned Request to send the API call to the service.
  2512. // the "output" return value is not valid until after Send returns without error.
  2513. //
  2514. // See CancelSpotFleetRequests for more information on using the CancelSpotFleetRequests
  2515. // API call, and error handling.
  2516. //
  2517. // This method is useful when you want to inject custom logic or configuration
  2518. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2519. //
  2520. //
  2521. // // Example sending a request using the CancelSpotFleetRequestsRequest method.
  2522. // req, resp := client.CancelSpotFleetRequestsRequest(params)
  2523. //
  2524. // err := req.Send()
  2525. // if err == nil { // resp is now filled
  2526. // fmt.Println(resp)
  2527. // }
  2528. //
  2529. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequests
  2530. func (c *EC2) CancelSpotFleetRequestsRequest(input *CancelSpotFleetRequestsInput) (req *request.Request, output *CancelSpotFleetRequestsOutput) {
  2531. op := &request.Operation{
  2532. Name: opCancelSpotFleetRequests,
  2533. HTTPMethod: "POST",
  2534. HTTPPath: "/",
  2535. }
  2536. if input == nil {
  2537. input = &CancelSpotFleetRequestsInput{}
  2538. }
  2539. output = &CancelSpotFleetRequestsOutput{}
  2540. req = c.newRequest(op, input, output)
  2541. return
  2542. }
  2543. // CancelSpotFleetRequests API operation for Amazon Elastic Compute Cloud.
  2544. //
  2545. // Cancels the specified Spot Fleet requests.
  2546. //
  2547. // After you cancel a Spot Fleet request, the Spot Fleet launches no new Spot
  2548. // Instances. You must specify whether the Spot Fleet should also terminate
  2549. // its Spot Instances. If you terminate the instances, the Spot Fleet request
  2550. // enters the cancelled_terminating state. Otherwise, the Spot Fleet request
  2551. // enters the cancelled_running state and the instances continue to run until
  2552. // they are interrupted or you terminate them manually.
  2553. //
  2554. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2555. // with awserr.Error's Code and Message methods to get detailed information about
  2556. // the error.
  2557. //
  2558. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2559. // API operation CancelSpotFleetRequests for usage and error information.
  2560. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequests
  2561. func (c *EC2) CancelSpotFleetRequests(input *CancelSpotFleetRequestsInput) (*CancelSpotFleetRequestsOutput, error) {
  2562. req, out := c.CancelSpotFleetRequestsRequest(input)
  2563. return out, req.Send()
  2564. }
  2565. // CancelSpotFleetRequestsWithContext is the same as CancelSpotFleetRequests with the addition of
  2566. // the ability to pass a context and additional request options.
  2567. //
  2568. // See CancelSpotFleetRequests for details on how to use this API operation.
  2569. //
  2570. // The context must be non-nil and will be used for request cancellation. If
  2571. // the context is nil a panic will occur. In the future the SDK may create
  2572. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2573. // for more information on using Contexts.
  2574. func (c *EC2) CancelSpotFleetRequestsWithContext(ctx aws.Context, input *CancelSpotFleetRequestsInput, opts ...request.Option) (*CancelSpotFleetRequestsOutput, error) {
  2575. req, out := c.CancelSpotFleetRequestsRequest(input)
  2576. req.SetContext(ctx)
  2577. req.ApplyOptions(opts...)
  2578. return out, req.Send()
  2579. }
  2580. const opCancelSpotInstanceRequests = "CancelSpotInstanceRequests"
  2581. // CancelSpotInstanceRequestsRequest generates a "aws/request.Request" representing the
  2582. // client's request for the CancelSpotInstanceRequests operation. The "output" return
  2583. // value will be populated with the request's response once the request completes
  2584. // successfully.
  2585. //
  2586. // Use "Send" method on the returned Request to send the API call to the service.
  2587. // the "output" return value is not valid until after Send returns without error.
  2588. //
  2589. // See CancelSpotInstanceRequests for more information on using the CancelSpotInstanceRequests
  2590. // API call, and error handling.
  2591. //
  2592. // This method is useful when you want to inject custom logic or configuration
  2593. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2594. //
  2595. //
  2596. // // Example sending a request using the CancelSpotInstanceRequestsRequest method.
  2597. // req, resp := client.CancelSpotInstanceRequestsRequest(params)
  2598. //
  2599. // err := req.Send()
  2600. // if err == nil { // resp is now filled
  2601. // fmt.Println(resp)
  2602. // }
  2603. //
  2604. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequests
  2605. func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequestsInput) (req *request.Request, output *CancelSpotInstanceRequestsOutput) {
  2606. op := &request.Operation{
  2607. Name: opCancelSpotInstanceRequests,
  2608. HTTPMethod: "POST",
  2609. HTTPPath: "/",
  2610. }
  2611. if input == nil {
  2612. input = &CancelSpotInstanceRequestsInput{}
  2613. }
  2614. output = &CancelSpotInstanceRequestsOutput{}
  2615. req = c.newRequest(op, input, output)
  2616. return
  2617. }
  2618. // CancelSpotInstanceRequests API operation for Amazon Elastic Compute Cloud.
  2619. //
  2620. // Cancels one or more Spot Instance requests.
  2621. //
  2622. // Canceling a Spot Instance request does not terminate running Spot Instances
  2623. // associated with the request.
  2624. //
  2625. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2626. // with awserr.Error's Code and Message methods to get detailed information about
  2627. // the error.
  2628. //
  2629. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2630. // API operation CancelSpotInstanceRequests for usage and error information.
  2631. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequests
  2632. func (c *EC2) CancelSpotInstanceRequests(input *CancelSpotInstanceRequestsInput) (*CancelSpotInstanceRequestsOutput, error) {
  2633. req, out := c.CancelSpotInstanceRequestsRequest(input)
  2634. return out, req.Send()
  2635. }
  2636. // CancelSpotInstanceRequestsWithContext is the same as CancelSpotInstanceRequests with the addition of
  2637. // the ability to pass a context and additional request options.
  2638. //
  2639. // See CancelSpotInstanceRequests for details on how to use this API operation.
  2640. //
  2641. // The context must be non-nil and will be used for request cancellation. If
  2642. // the context is nil a panic will occur. In the future the SDK may create
  2643. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2644. // for more information on using Contexts.
  2645. func (c *EC2) CancelSpotInstanceRequestsWithContext(ctx aws.Context, input *CancelSpotInstanceRequestsInput, opts ...request.Option) (*CancelSpotInstanceRequestsOutput, error) {
  2646. req, out := c.CancelSpotInstanceRequestsRequest(input)
  2647. req.SetContext(ctx)
  2648. req.ApplyOptions(opts...)
  2649. return out, req.Send()
  2650. }
  2651. const opConfirmProductInstance = "ConfirmProductInstance"
  2652. // ConfirmProductInstanceRequest generates a "aws/request.Request" representing the
  2653. // client's request for the ConfirmProductInstance operation. The "output" return
  2654. // value will be populated with the request's response once the request completes
  2655. // successfully.
  2656. //
  2657. // Use "Send" method on the returned Request to send the API call to the service.
  2658. // the "output" return value is not valid until after Send returns without error.
  2659. //
  2660. // See ConfirmProductInstance for more information on using the ConfirmProductInstance
  2661. // API call, and error handling.
  2662. //
  2663. // This method is useful when you want to inject custom logic or configuration
  2664. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2665. //
  2666. //
  2667. // // Example sending a request using the ConfirmProductInstanceRequest method.
  2668. // req, resp := client.ConfirmProductInstanceRequest(params)
  2669. //
  2670. // err := req.Send()
  2671. // if err == nil { // resp is now filled
  2672. // fmt.Println(resp)
  2673. // }
  2674. //
  2675. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstance
  2676. func (c *EC2) ConfirmProductInstanceRequest(input *ConfirmProductInstanceInput) (req *request.Request, output *ConfirmProductInstanceOutput) {
  2677. op := &request.Operation{
  2678. Name: opConfirmProductInstance,
  2679. HTTPMethod: "POST",
  2680. HTTPPath: "/",
  2681. }
  2682. if input == nil {
  2683. input = &ConfirmProductInstanceInput{}
  2684. }
  2685. output = &ConfirmProductInstanceOutput{}
  2686. req = c.newRequest(op, input, output)
  2687. return
  2688. }
  2689. // ConfirmProductInstance API operation for Amazon Elastic Compute Cloud.
  2690. //
  2691. // Determines whether a product code is associated with an instance. This action
  2692. // can only be used by the owner of the product code. It is useful when a product
  2693. // code owner must verify whether another user's instance is eligible for support.
  2694. //
  2695. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2696. // with awserr.Error's Code and Message methods to get detailed information about
  2697. // the error.
  2698. //
  2699. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2700. // API operation ConfirmProductInstance for usage and error information.
  2701. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstance
  2702. func (c *EC2) ConfirmProductInstance(input *ConfirmProductInstanceInput) (*ConfirmProductInstanceOutput, error) {
  2703. req, out := c.ConfirmProductInstanceRequest(input)
  2704. return out, req.Send()
  2705. }
  2706. // ConfirmProductInstanceWithContext is the same as ConfirmProductInstance with the addition of
  2707. // the ability to pass a context and additional request options.
  2708. //
  2709. // See ConfirmProductInstance for details on how to use this API operation.
  2710. //
  2711. // The context must be non-nil and will be used for request cancellation. If
  2712. // the context is nil a panic will occur. In the future the SDK may create
  2713. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2714. // for more information on using Contexts.
  2715. func (c *EC2) ConfirmProductInstanceWithContext(ctx aws.Context, input *ConfirmProductInstanceInput, opts ...request.Option) (*ConfirmProductInstanceOutput, error) {
  2716. req, out := c.ConfirmProductInstanceRequest(input)
  2717. req.SetContext(ctx)
  2718. req.ApplyOptions(opts...)
  2719. return out, req.Send()
  2720. }
  2721. const opCopyFpgaImage = "CopyFpgaImage"
  2722. // CopyFpgaImageRequest generates a "aws/request.Request" representing the
  2723. // client's request for the CopyFpgaImage operation. The "output" return
  2724. // value will be populated with the request's response once the request completes
  2725. // successfully.
  2726. //
  2727. // Use "Send" method on the returned Request to send the API call to the service.
  2728. // the "output" return value is not valid until after Send returns without error.
  2729. //
  2730. // See CopyFpgaImage for more information on using the CopyFpgaImage
  2731. // API call, and error handling.
  2732. //
  2733. // This method is useful when you want to inject custom logic or configuration
  2734. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2735. //
  2736. //
  2737. // // Example sending a request using the CopyFpgaImageRequest method.
  2738. // req, resp := client.CopyFpgaImageRequest(params)
  2739. //
  2740. // err := req.Send()
  2741. // if err == nil { // resp is now filled
  2742. // fmt.Println(resp)
  2743. // }
  2744. //
  2745. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyFpgaImage
  2746. func (c *EC2) CopyFpgaImageRequest(input *CopyFpgaImageInput) (req *request.Request, output *CopyFpgaImageOutput) {
  2747. op := &request.Operation{
  2748. Name: opCopyFpgaImage,
  2749. HTTPMethod: "POST",
  2750. HTTPPath: "/",
  2751. }
  2752. if input == nil {
  2753. input = &CopyFpgaImageInput{}
  2754. }
  2755. output = &CopyFpgaImageOutput{}
  2756. req = c.newRequest(op, input, output)
  2757. return
  2758. }
  2759. // CopyFpgaImage API operation for Amazon Elastic Compute Cloud.
  2760. //
  2761. // Copies the specified Amazon FPGA Image (AFI) to the current region.
  2762. //
  2763. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2764. // with awserr.Error's Code and Message methods to get detailed information about
  2765. // the error.
  2766. //
  2767. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2768. // API operation CopyFpgaImage for usage and error information.
  2769. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyFpgaImage
  2770. func (c *EC2) CopyFpgaImage(input *CopyFpgaImageInput) (*CopyFpgaImageOutput, error) {
  2771. req, out := c.CopyFpgaImageRequest(input)
  2772. return out, req.Send()
  2773. }
  2774. // CopyFpgaImageWithContext is the same as CopyFpgaImage with the addition of
  2775. // the ability to pass a context and additional request options.
  2776. //
  2777. // See CopyFpgaImage for details on how to use this API operation.
  2778. //
  2779. // The context must be non-nil and will be used for request cancellation. If
  2780. // the context is nil a panic will occur. In the future the SDK may create
  2781. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2782. // for more information on using Contexts.
  2783. func (c *EC2) CopyFpgaImageWithContext(ctx aws.Context, input *CopyFpgaImageInput, opts ...request.Option) (*CopyFpgaImageOutput, error) {
  2784. req, out := c.CopyFpgaImageRequest(input)
  2785. req.SetContext(ctx)
  2786. req.ApplyOptions(opts...)
  2787. return out, req.Send()
  2788. }
  2789. const opCopyImage = "CopyImage"
  2790. // CopyImageRequest generates a "aws/request.Request" representing the
  2791. // client's request for the CopyImage operation. The "output" return
  2792. // value will be populated with the request's response once the request completes
  2793. // successfully.
  2794. //
  2795. // Use "Send" method on the returned Request to send the API call to the service.
  2796. // the "output" return value is not valid until after Send returns without error.
  2797. //
  2798. // See CopyImage for more information on using the CopyImage
  2799. // API call, and error handling.
  2800. //
  2801. // This method is useful when you want to inject custom logic or configuration
  2802. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2803. //
  2804. //
  2805. // // Example sending a request using the CopyImageRequest method.
  2806. // req, resp := client.CopyImageRequest(params)
  2807. //
  2808. // err := req.Send()
  2809. // if err == nil { // resp is now filled
  2810. // fmt.Println(resp)
  2811. // }
  2812. //
  2813. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImage
  2814. func (c *EC2) CopyImageRequest(input *CopyImageInput) (req *request.Request, output *CopyImageOutput) {
  2815. op := &request.Operation{
  2816. Name: opCopyImage,
  2817. HTTPMethod: "POST",
  2818. HTTPPath: "/",
  2819. }
  2820. if input == nil {
  2821. input = &CopyImageInput{}
  2822. }
  2823. output = &CopyImageOutput{}
  2824. req = c.newRequest(op, input, output)
  2825. return
  2826. }
  2827. // CopyImage API operation for Amazon Elastic Compute Cloud.
  2828. //
  2829. // Initiates the copy of an AMI from the specified source region to the current
  2830. // region. You specify the destination region by using its endpoint when making
  2831. // the request.
  2832. //
  2833. // Copies of encrypted backing snapshots for the AMI are encrypted. Copies of
  2834. // unencrypted backing snapshots remain unencrypted, unless you set Encrypted
  2835. // during the copy operation. You cannot create an unencrypted copy of an encrypted
  2836. // backing snapshot.
  2837. //
  2838. // For more information about the prerequisites and limits when copying an AMI,
  2839. // see Copying an AMI (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html)
  2840. // in the Amazon Elastic Compute Cloud User Guide.
  2841. //
  2842. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2843. // with awserr.Error's Code and Message methods to get detailed information about
  2844. // the error.
  2845. //
  2846. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2847. // API operation CopyImage for usage and error information.
  2848. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImage
  2849. func (c *EC2) CopyImage(input *CopyImageInput) (*CopyImageOutput, error) {
  2850. req, out := c.CopyImageRequest(input)
  2851. return out, req.Send()
  2852. }
  2853. // CopyImageWithContext is the same as CopyImage with the addition of
  2854. // the ability to pass a context and additional request options.
  2855. //
  2856. // See CopyImage for details on how to use this API operation.
  2857. //
  2858. // The context must be non-nil and will be used for request cancellation. If
  2859. // the context is nil a panic will occur. In the future the SDK may create
  2860. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2861. // for more information on using Contexts.
  2862. func (c *EC2) CopyImageWithContext(ctx aws.Context, input *CopyImageInput, opts ...request.Option) (*CopyImageOutput, error) {
  2863. req, out := c.CopyImageRequest(input)
  2864. req.SetContext(ctx)
  2865. req.ApplyOptions(opts...)
  2866. return out, req.Send()
  2867. }
  2868. const opCopySnapshot = "CopySnapshot"
  2869. // CopySnapshotRequest generates a "aws/request.Request" representing the
  2870. // client's request for the CopySnapshot operation. The "output" return
  2871. // value will be populated with the request's response once the request completes
  2872. // successfully.
  2873. //
  2874. // Use "Send" method on the returned Request to send the API call to the service.
  2875. // the "output" return value is not valid until after Send returns without error.
  2876. //
  2877. // See CopySnapshot for more information on using the CopySnapshot
  2878. // API call, and error handling.
  2879. //
  2880. // This method is useful when you want to inject custom logic or configuration
  2881. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2882. //
  2883. //
  2884. // // Example sending a request using the CopySnapshotRequest method.
  2885. // req, resp := client.CopySnapshotRequest(params)
  2886. //
  2887. // err := req.Send()
  2888. // if err == nil { // resp is now filled
  2889. // fmt.Println(resp)
  2890. // }
  2891. //
  2892. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshot
  2893. func (c *EC2) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Request, output *CopySnapshotOutput) {
  2894. op := &request.Operation{
  2895. Name: opCopySnapshot,
  2896. HTTPMethod: "POST",
  2897. HTTPPath: "/",
  2898. }
  2899. if input == nil {
  2900. input = &CopySnapshotInput{}
  2901. }
  2902. output = &CopySnapshotOutput{}
  2903. req = c.newRequest(op, input, output)
  2904. return
  2905. }
  2906. // CopySnapshot API operation for Amazon Elastic Compute Cloud.
  2907. //
  2908. // Copies a point-in-time snapshot of an EBS volume and stores it in Amazon
  2909. // S3. You can copy the snapshot within the same region or from one region to
  2910. // another. You can use the snapshot to create EBS volumes or Amazon Machine
  2911. // Images (AMIs). The snapshot is copied to the regional endpoint that you send
  2912. // the HTTP request to.
  2913. //
  2914. // Copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted
  2915. // snapshots remain unencrypted, unless the Encrypted flag is specified during
  2916. // the snapshot copy operation. By default, encrypted snapshot copies use the
  2917. // default AWS Key Management Service (AWS KMS) customer master key (CMK); however,
  2918. // you can specify a non-default CMK with the KmsKeyId parameter.
  2919. //
  2920. // To copy an encrypted snapshot that has been shared from another account,
  2921. // you must have permissions for the CMK used to encrypt the snapshot.
  2922. //
  2923. // Snapshots created by copying another snapshot have an arbitrary volume ID
  2924. // that should not be used for any purpose.
  2925. //
  2926. // For more information, see Copying an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html)
  2927. // in the Amazon Elastic Compute Cloud User Guide.
  2928. //
  2929. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2930. // with awserr.Error's Code and Message methods to get detailed information about
  2931. // the error.
  2932. //
  2933. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2934. // API operation CopySnapshot for usage and error information.
  2935. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshot
  2936. func (c *EC2) CopySnapshot(input *CopySnapshotInput) (*CopySnapshotOutput, error) {
  2937. req, out := c.CopySnapshotRequest(input)
  2938. return out, req.Send()
  2939. }
  2940. // CopySnapshotWithContext is the same as CopySnapshot with the addition of
  2941. // the ability to pass a context and additional request options.
  2942. //
  2943. // See CopySnapshot for details on how to use this API operation.
  2944. //
  2945. // The context must be non-nil and will be used for request cancellation. If
  2946. // the context is nil a panic will occur. In the future the SDK may create
  2947. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2948. // for more information on using Contexts.
  2949. func (c *EC2) CopySnapshotWithContext(ctx aws.Context, input *CopySnapshotInput, opts ...request.Option) (*CopySnapshotOutput, error) {
  2950. req, out := c.CopySnapshotRequest(input)
  2951. req.SetContext(ctx)
  2952. req.ApplyOptions(opts...)
  2953. return out, req.Send()
  2954. }
  2955. const opCreateCapacityReservation = "CreateCapacityReservation"
  2956. // CreateCapacityReservationRequest generates a "aws/request.Request" representing the
  2957. // client's request for the CreateCapacityReservation operation. The "output" return
  2958. // value will be populated with the request's response once the request completes
  2959. // successfully.
  2960. //
  2961. // Use "Send" method on the returned Request to send the API call to the service.
  2962. // the "output" return value is not valid until after Send returns without error.
  2963. //
  2964. // See CreateCapacityReservation for more information on using the CreateCapacityReservation
  2965. // API call, and error handling.
  2966. //
  2967. // This method is useful when you want to inject custom logic or configuration
  2968. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2969. //
  2970. //
  2971. // // Example sending a request using the CreateCapacityReservationRequest method.
  2972. // req, resp := client.CreateCapacityReservationRequest(params)
  2973. //
  2974. // err := req.Send()
  2975. // if err == nil { // resp is now filled
  2976. // fmt.Println(resp)
  2977. // }
  2978. //
  2979. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCapacityReservation
  2980. func (c *EC2) CreateCapacityReservationRequest(input *CreateCapacityReservationInput) (req *request.Request, output *CreateCapacityReservationOutput) {
  2981. op := &request.Operation{
  2982. Name: opCreateCapacityReservation,
  2983. HTTPMethod: "POST",
  2984. HTTPPath: "/",
  2985. }
  2986. if input == nil {
  2987. input = &CreateCapacityReservationInput{}
  2988. }
  2989. output = &CreateCapacityReservationOutput{}
  2990. req = c.newRequest(op, input, output)
  2991. return
  2992. }
  2993. // CreateCapacityReservation API operation for Amazon Elastic Compute Cloud.
  2994. //
  2995. // Creates a new Capacity Reservation with the specified attributes.
  2996. //
  2997. // Capacity Reservations enable you to reserve capacity for your Amazon EC2
  2998. // instances in a specific Availability Zone for any duration. This gives you
  2999. // the flexibility to selectively add capacity reservations and still get the
  3000. // Regional RI discounts for that usage. By creating Capacity Reservations,
  3001. // you ensure that you always have access to Amazon EC2 capacity when you need
  3002. // it, for as long as you need it. For more information, see Capacity Reservations
  3003. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html)
  3004. // in the Amazon Elastic Compute Cloud User Guide.
  3005. //
  3006. // Your request to create a Capacity Reservation could fail if Amazon EC2 does
  3007. // not have sufficient capacity to fulfill the request. If your request fails
  3008. // due to Amazon EC2 capacity constraints, either try again at a later time,
  3009. // try in a different Availability Zone, or request a smaller capacity reservation.
  3010. // If your application is flexible across instance types and sizes, try to create
  3011. // a Capacity Reservation with different instance attributes.
  3012. //
  3013. // Your request could also fail if the requested quantity exceeds your On-Demand
  3014. // Instance limit for the selected instance type. If your request fails due
  3015. // to limit constraints, increase your On-Demand Instance limit for the required
  3016. // instance type and try again. For more information about increasing your instance
  3017. // limits, see Amazon EC2 Service Limits (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html)
  3018. // in the Amazon Elastic Compute Cloud User Guide.
  3019. //
  3020. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3021. // with awserr.Error's Code and Message methods to get detailed information about
  3022. // the error.
  3023. //
  3024. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3025. // API operation CreateCapacityReservation for usage and error information.
  3026. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCapacityReservation
  3027. func (c *EC2) CreateCapacityReservation(input *CreateCapacityReservationInput) (*CreateCapacityReservationOutput, error) {
  3028. req, out := c.CreateCapacityReservationRequest(input)
  3029. return out, req.Send()
  3030. }
  3031. // CreateCapacityReservationWithContext is the same as CreateCapacityReservation with the addition of
  3032. // the ability to pass a context and additional request options.
  3033. //
  3034. // See CreateCapacityReservation for details on how to use this API operation.
  3035. //
  3036. // The context must be non-nil and will be used for request cancellation. If
  3037. // the context is nil a panic will occur. In the future the SDK may create
  3038. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3039. // for more information on using Contexts.
  3040. func (c *EC2) CreateCapacityReservationWithContext(ctx aws.Context, input *CreateCapacityReservationInput, opts ...request.Option) (*CreateCapacityReservationOutput, error) {
  3041. req, out := c.CreateCapacityReservationRequest(input)
  3042. req.SetContext(ctx)
  3043. req.ApplyOptions(opts...)
  3044. return out, req.Send()
  3045. }
  3046. const opCreateClientVpnEndpoint = "CreateClientVpnEndpoint"
  3047. // CreateClientVpnEndpointRequest generates a "aws/request.Request" representing the
  3048. // client's request for the CreateClientVpnEndpoint operation. The "output" return
  3049. // value will be populated with the request's response once the request completes
  3050. // successfully.
  3051. //
  3052. // Use "Send" method on the returned Request to send the API call to the service.
  3053. // the "output" return value is not valid until after Send returns without error.
  3054. //
  3055. // See CreateClientVpnEndpoint for more information on using the CreateClientVpnEndpoint
  3056. // API call, and error handling.
  3057. //
  3058. // This method is useful when you want to inject custom logic or configuration
  3059. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3060. //
  3061. //
  3062. // // Example sending a request using the CreateClientVpnEndpointRequest method.
  3063. // req, resp := client.CreateClientVpnEndpointRequest(params)
  3064. //
  3065. // err := req.Send()
  3066. // if err == nil { // resp is now filled
  3067. // fmt.Println(resp)
  3068. // }
  3069. //
  3070. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateClientVpnEndpoint
  3071. func (c *EC2) CreateClientVpnEndpointRequest(input *CreateClientVpnEndpointInput) (req *request.Request, output *CreateClientVpnEndpointOutput) {
  3072. op := &request.Operation{
  3073. Name: opCreateClientVpnEndpoint,
  3074. HTTPMethod: "POST",
  3075. HTTPPath: "/",
  3076. }
  3077. if input == nil {
  3078. input = &CreateClientVpnEndpointInput{}
  3079. }
  3080. output = &CreateClientVpnEndpointOutput{}
  3081. req = c.newRequest(op, input, output)
  3082. return
  3083. }
  3084. // CreateClientVpnEndpoint API operation for Amazon Elastic Compute Cloud.
  3085. //
  3086. // Creates a Client VPN endpoint. A Client VPN endpoint is the resource you
  3087. // create and configure to enable and manage client VPN sessions. It is the
  3088. // destination endpoint at which all client VPN sessions are terminated.
  3089. //
  3090. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3091. // with awserr.Error's Code and Message methods to get detailed information about
  3092. // the error.
  3093. //
  3094. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3095. // API operation CreateClientVpnEndpoint for usage and error information.
  3096. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateClientVpnEndpoint
  3097. func (c *EC2) CreateClientVpnEndpoint(input *CreateClientVpnEndpointInput) (*CreateClientVpnEndpointOutput, error) {
  3098. req, out := c.CreateClientVpnEndpointRequest(input)
  3099. return out, req.Send()
  3100. }
  3101. // CreateClientVpnEndpointWithContext is the same as CreateClientVpnEndpoint with the addition of
  3102. // the ability to pass a context and additional request options.
  3103. //
  3104. // See CreateClientVpnEndpoint for details on how to use this API operation.
  3105. //
  3106. // The context must be non-nil and will be used for request cancellation. If
  3107. // the context is nil a panic will occur. In the future the SDK may create
  3108. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3109. // for more information on using Contexts.
  3110. func (c *EC2) CreateClientVpnEndpointWithContext(ctx aws.Context, input *CreateClientVpnEndpointInput, opts ...request.Option) (*CreateClientVpnEndpointOutput, error) {
  3111. req, out := c.CreateClientVpnEndpointRequest(input)
  3112. req.SetContext(ctx)
  3113. req.ApplyOptions(opts...)
  3114. return out, req.Send()
  3115. }
  3116. const opCreateClientVpnRoute = "CreateClientVpnRoute"
  3117. // CreateClientVpnRouteRequest generates a "aws/request.Request" representing the
  3118. // client's request for the CreateClientVpnRoute operation. The "output" return
  3119. // value will be populated with the request's response once the request completes
  3120. // successfully.
  3121. //
  3122. // Use "Send" method on the returned Request to send the API call to the service.
  3123. // the "output" return value is not valid until after Send returns without error.
  3124. //
  3125. // See CreateClientVpnRoute for more information on using the CreateClientVpnRoute
  3126. // API call, and error handling.
  3127. //
  3128. // This method is useful when you want to inject custom logic or configuration
  3129. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3130. //
  3131. //
  3132. // // Example sending a request using the CreateClientVpnRouteRequest method.
  3133. // req, resp := client.CreateClientVpnRouteRequest(params)
  3134. //
  3135. // err := req.Send()
  3136. // if err == nil { // resp is now filled
  3137. // fmt.Println(resp)
  3138. // }
  3139. //
  3140. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateClientVpnRoute
  3141. func (c *EC2) CreateClientVpnRouteRequest(input *CreateClientVpnRouteInput) (req *request.Request, output *CreateClientVpnRouteOutput) {
  3142. op := &request.Operation{
  3143. Name: opCreateClientVpnRoute,
  3144. HTTPMethod: "POST",
  3145. HTTPPath: "/",
  3146. }
  3147. if input == nil {
  3148. input = &CreateClientVpnRouteInput{}
  3149. }
  3150. output = &CreateClientVpnRouteOutput{}
  3151. req = c.newRequest(op, input, output)
  3152. return
  3153. }
  3154. // CreateClientVpnRoute API operation for Amazon Elastic Compute Cloud.
  3155. //
  3156. // Adds a route to a network to a Client VPN endpoint. Each Client VPN endpoint
  3157. // has a route table that describes the available destination network routes.
  3158. // Each route in the route table specifies the path for traffic to specific resources
  3159. // or networks.
  3160. //
  3161. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3162. // with awserr.Error's Code and Message methods to get detailed information about
  3163. // the error.
  3164. //
  3165. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3166. // API operation CreateClientVpnRoute for usage and error information.
  3167. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateClientVpnRoute
  3168. func (c *EC2) CreateClientVpnRoute(input *CreateClientVpnRouteInput) (*CreateClientVpnRouteOutput, error) {
  3169. req, out := c.CreateClientVpnRouteRequest(input)
  3170. return out, req.Send()
  3171. }
  3172. // CreateClientVpnRouteWithContext is the same as CreateClientVpnRoute with the addition of
  3173. // the ability to pass a context and additional request options.
  3174. //
  3175. // See CreateClientVpnRoute for details on how to use this API operation.
  3176. //
  3177. // The context must be non-nil and will be used for request cancellation. If
  3178. // the context is nil a panic will occur. In the future the SDK may create
  3179. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3180. // for more information on using Contexts.
  3181. func (c *EC2) CreateClientVpnRouteWithContext(ctx aws.Context, input *CreateClientVpnRouteInput, opts ...request.Option) (*CreateClientVpnRouteOutput, error) {
  3182. req, out := c.CreateClientVpnRouteRequest(input)
  3183. req.SetContext(ctx)
  3184. req.ApplyOptions(opts...)
  3185. return out, req.Send()
  3186. }
  3187. const opCreateCustomerGateway = "CreateCustomerGateway"
  3188. // CreateCustomerGatewayRequest generates a "aws/request.Request" representing the
  3189. // client's request for the CreateCustomerGateway operation. The "output" return
  3190. // value will be populated with the request's response once the request completes
  3191. // successfully.
  3192. //
  3193. // Use "Send" method on the returned Request to send the API call to the service.
  3194. // the "output" return value is not valid until after Send returns without error.
  3195. //
  3196. // See CreateCustomerGateway for more information on using the CreateCustomerGateway
  3197. // API call, and error handling.
  3198. //
  3199. // This method is useful when you want to inject custom logic or configuration
  3200. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3201. //
  3202. //
  3203. // // Example sending a request using the CreateCustomerGatewayRequest method.
  3204. // req, resp := client.CreateCustomerGatewayRequest(params)
  3205. //
  3206. // err := req.Send()
  3207. // if err == nil { // resp is now filled
  3208. // fmt.Println(resp)
  3209. // }
  3210. //
  3211. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGateway
  3212. func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (req *request.Request, output *CreateCustomerGatewayOutput) {
  3213. op := &request.Operation{
  3214. Name: opCreateCustomerGateway,
  3215. HTTPMethod: "POST",
  3216. HTTPPath: "/",
  3217. }
  3218. if input == nil {
  3219. input = &CreateCustomerGatewayInput{}
  3220. }
  3221. output = &CreateCustomerGatewayOutput{}
  3222. req = c.newRequest(op, input, output)
  3223. return
  3224. }
  3225. // CreateCustomerGateway API operation for Amazon Elastic Compute Cloud.
  3226. //
  3227. // Provides information to AWS about your VPN customer gateway device. The customer
  3228. // gateway is the appliance at your end of the VPN connection. (The device on
  3229. // the AWS side of the VPN connection is the virtual private gateway.) You must
  3230. // provide the Internet-routable IP address of the customer gateway's external
  3231. // interface. The IP address must be static and may be behind a device performing
  3232. // network address translation (NAT).
  3233. //
  3234. // For devices that use Border Gateway Protocol (BGP), you can also provide
  3235. // the device's BGP Autonomous System Number (ASN). You can use an existing
  3236. // ASN assigned to your network. If you don't have an ASN already, you can use
  3237. // a private ASN (in the 64512 - 65534 range).
  3238. //
  3239. // Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with
  3240. // the exception of 7224, which is reserved in the us-east-1 region, and 9059,
  3241. // which is reserved in the eu-west-1 region.
  3242. //
  3243. // For more information about VPN customer gateways, see AWS Managed VPN Connections
  3244. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) in the
  3245. // Amazon Virtual Private Cloud User Guide.
  3246. //
  3247. // You cannot create more than one customer gateway with the same VPN type,
  3248. // IP address, and BGP ASN parameter values. If you run an identical request
  3249. // more than one time, the first request creates the customer gateway, and subsequent
  3250. // requests return information about the existing customer gateway. The subsequent
  3251. // requests do not create new customer gateway resources.
  3252. //
  3253. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3254. // with awserr.Error's Code and Message methods to get detailed information about
  3255. // the error.
  3256. //
  3257. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3258. // API operation CreateCustomerGateway for usage and error information.
  3259. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGateway
  3260. func (c *EC2) CreateCustomerGateway(input *CreateCustomerGatewayInput) (*CreateCustomerGatewayOutput, error) {
  3261. req, out := c.CreateCustomerGatewayRequest(input)
  3262. return out, req.Send()
  3263. }
  3264. // CreateCustomerGatewayWithContext is the same as CreateCustomerGateway with the addition of
  3265. // the ability to pass a context and additional request options.
  3266. //
  3267. // See CreateCustomerGateway for details on how to use this API operation.
  3268. //
  3269. // The context must be non-nil and will be used for request cancellation. If
  3270. // the context is nil a panic will occur. In the future the SDK may create
  3271. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3272. // for more information on using Contexts.
  3273. func (c *EC2) CreateCustomerGatewayWithContext(ctx aws.Context, input *CreateCustomerGatewayInput, opts ...request.Option) (*CreateCustomerGatewayOutput, error) {
  3274. req, out := c.CreateCustomerGatewayRequest(input)
  3275. req.SetContext(ctx)
  3276. req.ApplyOptions(opts...)
  3277. return out, req.Send()
  3278. }
  3279. const opCreateDefaultSubnet = "CreateDefaultSubnet"
  3280. // CreateDefaultSubnetRequest generates a "aws/request.Request" representing the
  3281. // client's request for the CreateDefaultSubnet operation. The "output" return
  3282. // value will be populated with the request's response once the request completes
  3283. // successfully.
  3284. //
  3285. // Use "Send" method on the returned Request to send the API call to the service.
  3286. // the "output" return value is not valid until after Send returns without error.
  3287. //
  3288. // See CreateDefaultSubnet for more information on using the CreateDefaultSubnet
  3289. // API call, and error handling.
  3290. //
  3291. // This method is useful when you want to inject custom logic or configuration
  3292. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3293. //
  3294. //
  3295. // // Example sending a request using the CreateDefaultSubnetRequest method.
  3296. // req, resp := client.CreateDefaultSubnetRequest(params)
  3297. //
  3298. // err := req.Send()
  3299. // if err == nil { // resp is now filled
  3300. // fmt.Println(resp)
  3301. // }
  3302. //
  3303. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultSubnet
  3304. func (c *EC2) CreateDefaultSubnetRequest(input *CreateDefaultSubnetInput) (req *request.Request, output *CreateDefaultSubnetOutput) {
  3305. op := &request.Operation{
  3306. Name: opCreateDefaultSubnet,
  3307. HTTPMethod: "POST",
  3308. HTTPPath: "/",
  3309. }
  3310. if input == nil {
  3311. input = &CreateDefaultSubnetInput{}
  3312. }
  3313. output = &CreateDefaultSubnetOutput{}
  3314. req = c.newRequest(op, input, output)
  3315. return
  3316. }
  3317. // CreateDefaultSubnet API operation for Amazon Elastic Compute Cloud.
  3318. //
  3319. // Creates a default subnet with a size /20 IPv4 CIDR block in the specified
  3320. // Availability Zone in your default VPC. You can have only one default subnet
  3321. // per Availability Zone. For more information, see Creating a Default Subnet
  3322. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/default-vpc.html#create-default-subnet)
  3323. // in the Amazon Virtual Private Cloud User Guide.
  3324. //
  3325. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3326. // with awserr.Error's Code and Message methods to get detailed information about
  3327. // the error.
  3328. //
  3329. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3330. // API operation CreateDefaultSubnet for usage and error information.
  3331. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultSubnet
  3332. func (c *EC2) CreateDefaultSubnet(input *CreateDefaultSubnetInput) (*CreateDefaultSubnetOutput, error) {
  3333. req, out := c.CreateDefaultSubnetRequest(input)
  3334. return out, req.Send()
  3335. }
  3336. // CreateDefaultSubnetWithContext is the same as CreateDefaultSubnet with the addition of
  3337. // the ability to pass a context and additional request options.
  3338. //
  3339. // See CreateDefaultSubnet for details on how to use this API operation.
  3340. //
  3341. // The context must be non-nil and will be used for request cancellation. If
  3342. // the context is nil a panic will occur. In the future the SDK may create
  3343. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3344. // for more information on using Contexts.
  3345. func (c *EC2) CreateDefaultSubnetWithContext(ctx aws.Context, input *CreateDefaultSubnetInput, opts ...request.Option) (*CreateDefaultSubnetOutput, error) {
  3346. req, out := c.CreateDefaultSubnetRequest(input)
  3347. req.SetContext(ctx)
  3348. req.ApplyOptions(opts...)
  3349. return out, req.Send()
  3350. }
  3351. const opCreateDefaultVpc = "CreateDefaultVpc"
  3352. // CreateDefaultVpcRequest generates a "aws/request.Request" representing the
  3353. // client's request for the CreateDefaultVpc operation. The "output" return
  3354. // value will be populated with the request's response once the request completes
  3355. // successfully.
  3356. //
  3357. // Use "Send" method on the returned Request to send the API call to the service.
  3358. // the "output" return value is not valid until after Send returns without error.
  3359. //
  3360. // See CreateDefaultVpc for more information on using the CreateDefaultVpc
  3361. // API call, and error handling.
  3362. //
  3363. // This method is useful when you want to inject custom logic or configuration
  3364. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3365. //
  3366. //
  3367. // // Example sending a request using the CreateDefaultVpcRequest method.
  3368. // req, resp := client.CreateDefaultVpcRequest(params)
  3369. //
  3370. // err := req.Send()
  3371. // if err == nil { // resp is now filled
  3372. // fmt.Println(resp)
  3373. // }
  3374. //
  3375. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultVpc
  3376. func (c *EC2) CreateDefaultVpcRequest(input *CreateDefaultVpcInput) (req *request.Request, output *CreateDefaultVpcOutput) {
  3377. op := &request.Operation{
  3378. Name: opCreateDefaultVpc,
  3379. HTTPMethod: "POST",
  3380. HTTPPath: "/",
  3381. }
  3382. if input == nil {
  3383. input = &CreateDefaultVpcInput{}
  3384. }
  3385. output = &CreateDefaultVpcOutput{}
  3386. req = c.newRequest(op, input, output)
  3387. return
  3388. }
  3389. // CreateDefaultVpc API operation for Amazon Elastic Compute Cloud.
  3390. //
  3391. // Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet
  3392. // in each Availability Zone. For more information about the components of a
  3393. // default VPC, see Default VPC and Default Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/default-vpc.html)
  3394. // in the Amazon Virtual Private Cloud User Guide. You cannot specify the components
  3395. // of the default VPC yourself.
  3396. //
  3397. // If you deleted your previous default VPC, you can create a default VPC. You
  3398. // cannot have more than one default VPC per Region.
  3399. //
  3400. // If your account supports EC2-Classic, you cannot use this action to create
  3401. // a default VPC in a Region that supports EC2-Classic. If you want a default
  3402. // VPC in a Region that supports EC2-Classic, see "I really want a default VPC
  3403. // for my existing EC2 account. Is that possible?" in the Default VPCs FAQ (http://aws.amazon.com/vpc/faqs/#Default_VPCs).
  3404. //
  3405. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3406. // with awserr.Error's Code and Message methods to get detailed information about
  3407. // the error.
  3408. //
  3409. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3410. // API operation CreateDefaultVpc for usage and error information.
  3411. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultVpc
  3412. func (c *EC2) CreateDefaultVpc(input *CreateDefaultVpcInput) (*CreateDefaultVpcOutput, error) {
  3413. req, out := c.CreateDefaultVpcRequest(input)
  3414. return out, req.Send()
  3415. }
  3416. // CreateDefaultVpcWithContext is the same as CreateDefaultVpc with the addition of
  3417. // the ability to pass a context and additional request options.
  3418. //
  3419. // See CreateDefaultVpc for details on how to use this API operation.
  3420. //
  3421. // The context must be non-nil and will be used for request cancellation. If
  3422. // the context is nil a panic will occur. In the future the SDK may create
  3423. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3424. // for more information on using Contexts.
  3425. func (c *EC2) CreateDefaultVpcWithContext(ctx aws.Context, input *CreateDefaultVpcInput, opts ...request.Option) (*CreateDefaultVpcOutput, error) {
  3426. req, out := c.CreateDefaultVpcRequest(input)
  3427. req.SetContext(ctx)
  3428. req.ApplyOptions(opts...)
  3429. return out, req.Send()
  3430. }
  3431. const opCreateDhcpOptions = "CreateDhcpOptions"
  3432. // CreateDhcpOptionsRequest generates a "aws/request.Request" representing the
  3433. // client's request for the CreateDhcpOptions operation. The "output" return
  3434. // value will be populated with the request's response once the request completes
  3435. // successfully.
  3436. //
  3437. // Use "Send" method on the returned Request to send the API call to the service.
  3438. // the "output" return value is not valid until after Send returns without error.
  3439. //
  3440. // See CreateDhcpOptions for more information on using the CreateDhcpOptions
  3441. // API call, and error handling.
  3442. //
  3443. // This method is useful when you want to inject custom logic or configuration
  3444. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3445. //
  3446. //
  3447. // // Example sending a request using the CreateDhcpOptionsRequest method.
  3448. // req, resp := client.CreateDhcpOptionsRequest(params)
  3449. //
  3450. // err := req.Send()
  3451. // if err == nil { // resp is now filled
  3452. // fmt.Println(resp)
  3453. // }
  3454. //
  3455. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptions
  3456. func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *request.Request, output *CreateDhcpOptionsOutput) {
  3457. op := &request.Operation{
  3458. Name: opCreateDhcpOptions,
  3459. HTTPMethod: "POST",
  3460. HTTPPath: "/",
  3461. }
  3462. if input == nil {
  3463. input = &CreateDhcpOptionsInput{}
  3464. }
  3465. output = &CreateDhcpOptionsOutput{}
  3466. req = c.newRequest(op, input, output)
  3467. return
  3468. }
  3469. // CreateDhcpOptions API operation for Amazon Elastic Compute Cloud.
  3470. //
  3471. // Creates a set of DHCP options for your VPC. After creating the set, you must
  3472. // associate it with the VPC, causing all existing and new instances that you
  3473. // launch in the VPC to use this set of DHCP options. The following are the
  3474. // individual DHCP options you can specify. For more information about the options,
  3475. // see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt).
  3476. //
  3477. // * domain-name-servers - The IP addresses of up to four domain name servers,
  3478. // or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS.
  3479. // If specifying more than one domain name server, specify the IP addresses
  3480. // in a single parameter, separated by commas. ITo have your instance to
  3481. // receive a custom DNS hostname as specified in domain-name, you must set
  3482. // domain-name-servers to a custom DNS server.
  3483. //
  3484. // * domain-name - If you're using AmazonProvidedDNS in us-east-1, specify
  3485. // ec2.internal. If you're using AmazonProvidedDNS in another region, specify
  3486. // region.compute.internal (for example, ap-northeast-1.compute.internal).
  3487. // Otherwise, specify a domain name (for example, MyCompany.com). This value
  3488. // is used to complete unqualified DNS hostnames. Important: Some Linux operating
  3489. // systems accept multiple domain names separated by spaces. However, Windows
  3490. // and other Linux operating systems treat the value as a single domain,
  3491. // which results in unexpected behavior. If your DHCP options set is associated
  3492. // with a VPC that has instances with multiple operating systems, specify
  3493. // only one domain name.
  3494. //
  3495. // * ntp-servers - The IP addresses of up to four Network Time Protocol (NTP)
  3496. // servers.
  3497. //
  3498. // * netbios-name-servers - The IP addresses of up to four NetBIOS name servers.
  3499. //
  3500. // * netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend
  3501. // that you specify 2 (broadcast and multicast are not currently supported).
  3502. // For more information about these node types, see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt).
  3503. //
  3504. // Your VPC automatically starts out with a set of DHCP options that includes
  3505. // only a DNS server that we provide (AmazonProvidedDNS). If you create a set
  3506. // of options, and if your VPC has an internet gateway, make sure to set the
  3507. // domain-name-servers option either to AmazonProvidedDNS or to a domain name
  3508. // server of your choice. For more information, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  3509. // in the Amazon Virtual Private Cloud User Guide.
  3510. //
  3511. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3512. // with awserr.Error's Code and Message methods to get detailed information about
  3513. // the error.
  3514. //
  3515. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3516. // API operation CreateDhcpOptions for usage and error information.
  3517. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptions
  3518. func (c *EC2) CreateDhcpOptions(input *CreateDhcpOptionsInput) (*CreateDhcpOptionsOutput, error) {
  3519. req, out := c.CreateDhcpOptionsRequest(input)
  3520. return out, req.Send()
  3521. }
  3522. // CreateDhcpOptionsWithContext is the same as CreateDhcpOptions with the addition of
  3523. // the ability to pass a context and additional request options.
  3524. //
  3525. // See CreateDhcpOptions for details on how to use this API operation.
  3526. //
  3527. // The context must be non-nil and will be used for request cancellation. If
  3528. // the context is nil a panic will occur. In the future the SDK may create
  3529. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3530. // for more information on using Contexts.
  3531. func (c *EC2) CreateDhcpOptionsWithContext(ctx aws.Context, input *CreateDhcpOptionsInput, opts ...request.Option) (*CreateDhcpOptionsOutput, error) {
  3532. req, out := c.CreateDhcpOptionsRequest(input)
  3533. req.SetContext(ctx)
  3534. req.ApplyOptions(opts...)
  3535. return out, req.Send()
  3536. }
  3537. const opCreateEgressOnlyInternetGateway = "CreateEgressOnlyInternetGateway"
  3538. // CreateEgressOnlyInternetGatewayRequest generates a "aws/request.Request" representing the
  3539. // client's request for the CreateEgressOnlyInternetGateway operation. The "output" return
  3540. // value will be populated with the request's response once the request completes
  3541. // successfully.
  3542. //
  3543. // Use "Send" method on the returned Request to send the API call to the service.
  3544. // the "output" return value is not valid until after Send returns without error.
  3545. //
  3546. // See CreateEgressOnlyInternetGateway for more information on using the CreateEgressOnlyInternetGateway
  3547. // API call, and error handling.
  3548. //
  3549. // This method is useful when you want to inject custom logic or configuration
  3550. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3551. //
  3552. //
  3553. // // Example sending a request using the CreateEgressOnlyInternetGatewayRequest method.
  3554. // req, resp := client.CreateEgressOnlyInternetGatewayRequest(params)
  3555. //
  3556. // err := req.Send()
  3557. // if err == nil { // resp is now filled
  3558. // fmt.Println(resp)
  3559. // }
  3560. //
  3561. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGateway
  3562. func (c *EC2) CreateEgressOnlyInternetGatewayRequest(input *CreateEgressOnlyInternetGatewayInput) (req *request.Request, output *CreateEgressOnlyInternetGatewayOutput) {
  3563. op := &request.Operation{
  3564. Name: opCreateEgressOnlyInternetGateway,
  3565. HTTPMethod: "POST",
  3566. HTTPPath: "/",
  3567. }
  3568. if input == nil {
  3569. input = &CreateEgressOnlyInternetGatewayInput{}
  3570. }
  3571. output = &CreateEgressOnlyInternetGatewayOutput{}
  3572. req = c.newRequest(op, input, output)
  3573. return
  3574. }
  3575. // CreateEgressOnlyInternetGateway API operation for Amazon Elastic Compute Cloud.
  3576. //
  3577. // [IPv6 only] Creates an egress-only internet gateway for your VPC. An egress-only
  3578. // internet gateway is used to enable outbound communication over IPv6 from
  3579. // instances in your VPC to the internet, and prevents hosts outside of your
  3580. // VPC from initiating an IPv6 connection with your instance.
  3581. //
  3582. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3583. // with awserr.Error's Code and Message methods to get detailed information about
  3584. // the error.
  3585. //
  3586. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3587. // API operation CreateEgressOnlyInternetGateway for usage and error information.
  3588. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGateway
  3589. func (c *EC2) CreateEgressOnlyInternetGateway(input *CreateEgressOnlyInternetGatewayInput) (*CreateEgressOnlyInternetGatewayOutput, error) {
  3590. req, out := c.CreateEgressOnlyInternetGatewayRequest(input)
  3591. return out, req.Send()
  3592. }
  3593. // CreateEgressOnlyInternetGatewayWithContext is the same as CreateEgressOnlyInternetGateway with the addition of
  3594. // the ability to pass a context and additional request options.
  3595. //
  3596. // See CreateEgressOnlyInternetGateway for details on how to use this API operation.
  3597. //
  3598. // The context must be non-nil and will be used for request cancellation. If
  3599. // the context is nil a panic will occur. In the future the SDK may create
  3600. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3601. // for more information on using Contexts.
  3602. func (c *EC2) CreateEgressOnlyInternetGatewayWithContext(ctx aws.Context, input *CreateEgressOnlyInternetGatewayInput, opts ...request.Option) (*CreateEgressOnlyInternetGatewayOutput, error) {
  3603. req, out := c.CreateEgressOnlyInternetGatewayRequest(input)
  3604. req.SetContext(ctx)
  3605. req.ApplyOptions(opts...)
  3606. return out, req.Send()
  3607. }
  3608. const opCreateFleet = "CreateFleet"
  3609. // CreateFleetRequest generates a "aws/request.Request" representing the
  3610. // client's request for the CreateFleet operation. The "output" return
  3611. // value will be populated with the request's response once the request completes
  3612. // successfully.
  3613. //
  3614. // Use "Send" method on the returned Request to send the API call to the service.
  3615. // the "output" return value is not valid until after Send returns without error.
  3616. //
  3617. // See CreateFleet for more information on using the CreateFleet
  3618. // API call, and error handling.
  3619. //
  3620. // This method is useful when you want to inject custom logic or configuration
  3621. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3622. //
  3623. //
  3624. // // Example sending a request using the CreateFleetRequest method.
  3625. // req, resp := client.CreateFleetRequest(params)
  3626. //
  3627. // err := req.Send()
  3628. // if err == nil { // resp is now filled
  3629. // fmt.Println(resp)
  3630. // }
  3631. //
  3632. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFleet
  3633. func (c *EC2) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) {
  3634. op := &request.Operation{
  3635. Name: opCreateFleet,
  3636. HTTPMethod: "POST",
  3637. HTTPPath: "/",
  3638. }
  3639. if input == nil {
  3640. input = &CreateFleetInput{}
  3641. }
  3642. output = &CreateFleetOutput{}
  3643. req = c.newRequest(op, input, output)
  3644. return
  3645. }
  3646. // CreateFleet API operation for Amazon Elastic Compute Cloud.
  3647. //
  3648. // Launches an EC2 Fleet.
  3649. //
  3650. // You can create a single EC2 Fleet that includes multiple launch specifications
  3651. // that vary by instance type, AMI, Availability Zone, or subnet.
  3652. //
  3653. // For more information, see Launching an EC2 Fleet (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html)
  3654. // in the Amazon Elastic Compute Cloud User Guide.
  3655. //
  3656. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3657. // with awserr.Error's Code and Message methods to get detailed information about
  3658. // the error.
  3659. //
  3660. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3661. // API operation CreateFleet for usage and error information.
  3662. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFleet
  3663. func (c *EC2) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) {
  3664. req, out := c.CreateFleetRequest(input)
  3665. return out, req.Send()
  3666. }
  3667. // CreateFleetWithContext is the same as CreateFleet with the addition of
  3668. // the ability to pass a context and additional request options.
  3669. //
  3670. // See CreateFleet for details on how to use this API operation.
  3671. //
  3672. // The context must be non-nil and will be used for request cancellation. If
  3673. // the context is nil a panic will occur. In the future the SDK may create
  3674. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3675. // for more information on using Contexts.
  3676. func (c *EC2) CreateFleetWithContext(ctx aws.Context, input *CreateFleetInput, opts ...request.Option) (*CreateFleetOutput, error) {
  3677. req, out := c.CreateFleetRequest(input)
  3678. req.SetContext(ctx)
  3679. req.ApplyOptions(opts...)
  3680. return out, req.Send()
  3681. }
  3682. const opCreateFlowLogs = "CreateFlowLogs"
  3683. // CreateFlowLogsRequest generates a "aws/request.Request" representing the
  3684. // client's request for the CreateFlowLogs operation. The "output" return
  3685. // value will be populated with the request's response once the request completes
  3686. // successfully.
  3687. //
  3688. // Use "Send" method on the returned Request to send the API call to the service.
  3689. // the "output" return value is not valid until after Send returns without error.
  3690. //
  3691. // See CreateFlowLogs for more information on using the CreateFlowLogs
  3692. // API call, and error handling.
  3693. //
  3694. // This method is useful when you want to inject custom logic or configuration
  3695. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3696. //
  3697. //
  3698. // // Example sending a request using the CreateFlowLogsRequest method.
  3699. // req, resp := client.CreateFlowLogsRequest(params)
  3700. //
  3701. // err := req.Send()
  3702. // if err == nil { // resp is now filled
  3703. // fmt.Println(resp)
  3704. // }
  3705. //
  3706. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogs
  3707. func (c *EC2) CreateFlowLogsRequest(input *CreateFlowLogsInput) (req *request.Request, output *CreateFlowLogsOutput) {
  3708. op := &request.Operation{
  3709. Name: opCreateFlowLogs,
  3710. HTTPMethod: "POST",
  3711. HTTPPath: "/",
  3712. }
  3713. if input == nil {
  3714. input = &CreateFlowLogsInput{}
  3715. }
  3716. output = &CreateFlowLogsOutput{}
  3717. req = c.newRequest(op, input, output)
  3718. return
  3719. }
  3720. // CreateFlowLogs API operation for Amazon Elastic Compute Cloud.
  3721. //
  3722. // Creates one or more flow logs to capture information about IP traffic for
  3723. // a specific network interface, subnet, or VPC.
  3724. //
  3725. // Flow log data for a monitored network interface is recorded as flow log records,
  3726. // which are log events consisting of fields that describe the traffic flow.
  3727. // For more information, see Flow Log Records (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/flow-logs.html#flow-log-records)
  3728. // in the Amazon Virtual Private Cloud User Guide.
  3729. //
  3730. // When publishing to CloudWatch Logs, flow log records are published to a log
  3731. // group, and each network interface has a unique log stream in the log group.
  3732. // When publishing to Amazon S3, flow log records for all of the monitored network
  3733. // interfaces are published to a single log file object that is stored in the
  3734. // specified bucket.
  3735. //
  3736. // For more information, see VPC Flow Logs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/flow-logs.html)
  3737. // in the Amazon Virtual Private Cloud User Guide.
  3738. //
  3739. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3740. // with awserr.Error's Code and Message methods to get detailed information about
  3741. // the error.
  3742. //
  3743. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3744. // API operation CreateFlowLogs for usage and error information.
  3745. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogs
  3746. func (c *EC2) CreateFlowLogs(input *CreateFlowLogsInput) (*CreateFlowLogsOutput, error) {
  3747. req, out := c.CreateFlowLogsRequest(input)
  3748. return out, req.Send()
  3749. }
  3750. // CreateFlowLogsWithContext is the same as CreateFlowLogs with the addition of
  3751. // the ability to pass a context and additional request options.
  3752. //
  3753. // See CreateFlowLogs for details on how to use this API operation.
  3754. //
  3755. // The context must be non-nil and will be used for request cancellation. If
  3756. // the context is nil a panic will occur. In the future the SDK may create
  3757. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3758. // for more information on using Contexts.
  3759. func (c *EC2) CreateFlowLogsWithContext(ctx aws.Context, input *CreateFlowLogsInput, opts ...request.Option) (*CreateFlowLogsOutput, error) {
  3760. req, out := c.CreateFlowLogsRequest(input)
  3761. req.SetContext(ctx)
  3762. req.ApplyOptions(opts...)
  3763. return out, req.Send()
  3764. }
  3765. const opCreateFpgaImage = "CreateFpgaImage"
  3766. // CreateFpgaImageRequest generates a "aws/request.Request" representing the
  3767. // client's request for the CreateFpgaImage operation. The "output" return
  3768. // value will be populated with the request's response once the request completes
  3769. // successfully.
  3770. //
  3771. // Use "Send" method on the returned Request to send the API call to the service.
  3772. // the "output" return value is not valid until after Send returns without error.
  3773. //
  3774. // See CreateFpgaImage for more information on using the CreateFpgaImage
  3775. // API call, and error handling.
  3776. //
  3777. // This method is useful when you want to inject custom logic or configuration
  3778. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3779. //
  3780. //
  3781. // // Example sending a request using the CreateFpgaImageRequest method.
  3782. // req, resp := client.CreateFpgaImageRequest(params)
  3783. //
  3784. // err := req.Send()
  3785. // if err == nil { // resp is now filled
  3786. // fmt.Println(resp)
  3787. // }
  3788. //
  3789. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFpgaImage
  3790. func (c *EC2) CreateFpgaImageRequest(input *CreateFpgaImageInput) (req *request.Request, output *CreateFpgaImageOutput) {
  3791. op := &request.Operation{
  3792. Name: opCreateFpgaImage,
  3793. HTTPMethod: "POST",
  3794. HTTPPath: "/",
  3795. }
  3796. if input == nil {
  3797. input = &CreateFpgaImageInput{}
  3798. }
  3799. output = &CreateFpgaImageOutput{}
  3800. req = c.newRequest(op, input, output)
  3801. return
  3802. }
  3803. // CreateFpgaImage API operation for Amazon Elastic Compute Cloud.
  3804. //
  3805. // Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).
  3806. //
  3807. // The create operation is asynchronous. To verify that the AFI is ready for
  3808. // use, check the output logs.
  3809. //
  3810. // An AFI contains the FPGA bitstream that is ready to download to an FPGA.
  3811. // You can securely deploy an AFI on one or more FPGA-accelerated instances.
  3812. // For more information, see the AWS FPGA Hardware Development Kit (https://github.com/aws/aws-fpga/).
  3813. //
  3814. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3815. // with awserr.Error's Code and Message methods to get detailed information about
  3816. // the error.
  3817. //
  3818. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3819. // API operation CreateFpgaImage for usage and error information.
  3820. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFpgaImage
  3821. func (c *EC2) CreateFpgaImage(input *CreateFpgaImageInput) (*CreateFpgaImageOutput, error) {
  3822. req, out := c.CreateFpgaImageRequest(input)
  3823. return out, req.Send()
  3824. }
  3825. // CreateFpgaImageWithContext is the same as CreateFpgaImage with the addition of
  3826. // the ability to pass a context and additional request options.
  3827. //
  3828. // See CreateFpgaImage for details on how to use this API operation.
  3829. //
  3830. // The context must be non-nil and will be used for request cancellation. If
  3831. // the context is nil a panic will occur. In the future the SDK may create
  3832. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3833. // for more information on using Contexts.
  3834. func (c *EC2) CreateFpgaImageWithContext(ctx aws.Context, input *CreateFpgaImageInput, opts ...request.Option) (*CreateFpgaImageOutput, error) {
  3835. req, out := c.CreateFpgaImageRequest(input)
  3836. req.SetContext(ctx)
  3837. req.ApplyOptions(opts...)
  3838. return out, req.Send()
  3839. }
  3840. const opCreateImage = "CreateImage"
  3841. // CreateImageRequest generates a "aws/request.Request" representing the
  3842. // client's request for the CreateImage operation. The "output" return
  3843. // value will be populated with the request's response once the request completes
  3844. // successfully.
  3845. //
  3846. // Use "Send" method on the returned Request to send the API call to the service.
  3847. // the "output" return value is not valid until after Send returns without error.
  3848. //
  3849. // See CreateImage for more information on using the CreateImage
  3850. // API call, and error handling.
  3851. //
  3852. // This method is useful when you want to inject custom logic or configuration
  3853. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3854. //
  3855. //
  3856. // // Example sending a request using the CreateImageRequest method.
  3857. // req, resp := client.CreateImageRequest(params)
  3858. //
  3859. // err := req.Send()
  3860. // if err == nil { // resp is now filled
  3861. // fmt.Println(resp)
  3862. // }
  3863. //
  3864. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImage
  3865. func (c *EC2) CreateImageRequest(input *CreateImageInput) (req *request.Request, output *CreateImageOutput) {
  3866. op := &request.Operation{
  3867. Name: opCreateImage,
  3868. HTTPMethod: "POST",
  3869. HTTPPath: "/",
  3870. }
  3871. if input == nil {
  3872. input = &CreateImageInput{}
  3873. }
  3874. output = &CreateImageOutput{}
  3875. req = c.newRequest(op, input, output)
  3876. return
  3877. }
  3878. // CreateImage API operation for Amazon Elastic Compute Cloud.
  3879. //
  3880. // Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that
  3881. // is either running or stopped.
  3882. //
  3883. // If you customized your instance with instance store volumes or EBS volumes
  3884. // in addition to the root device volume, the new AMI contains block device
  3885. // mapping information for those volumes. When you launch an instance from this
  3886. // new AMI, the instance automatically launches with those additional volumes.
  3887. //
  3888. // For more information, see Creating Amazon EBS-Backed Linux AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html)
  3889. // in the Amazon Elastic Compute Cloud User Guide.
  3890. //
  3891. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3892. // with awserr.Error's Code and Message methods to get detailed information about
  3893. // the error.
  3894. //
  3895. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3896. // API operation CreateImage for usage and error information.
  3897. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImage
  3898. func (c *EC2) CreateImage(input *CreateImageInput) (*CreateImageOutput, error) {
  3899. req, out := c.CreateImageRequest(input)
  3900. return out, req.Send()
  3901. }
  3902. // CreateImageWithContext is the same as CreateImage with the addition of
  3903. // the ability to pass a context and additional request options.
  3904. //
  3905. // See CreateImage for details on how to use this API operation.
  3906. //
  3907. // The context must be non-nil and will be used for request cancellation. If
  3908. // the context is nil a panic will occur. In the future the SDK may create
  3909. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3910. // for more information on using Contexts.
  3911. func (c *EC2) CreateImageWithContext(ctx aws.Context, input *CreateImageInput, opts ...request.Option) (*CreateImageOutput, error) {
  3912. req, out := c.CreateImageRequest(input)
  3913. req.SetContext(ctx)
  3914. req.ApplyOptions(opts...)
  3915. return out, req.Send()
  3916. }
  3917. const opCreateInstanceExportTask = "CreateInstanceExportTask"
  3918. // CreateInstanceExportTaskRequest generates a "aws/request.Request" representing the
  3919. // client's request for the CreateInstanceExportTask operation. The "output" return
  3920. // value will be populated with the request's response once the request completes
  3921. // successfully.
  3922. //
  3923. // Use "Send" method on the returned Request to send the API call to the service.
  3924. // the "output" return value is not valid until after Send returns without error.
  3925. //
  3926. // See CreateInstanceExportTask for more information on using the CreateInstanceExportTask
  3927. // API call, and error handling.
  3928. //
  3929. // This method is useful when you want to inject custom logic or configuration
  3930. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3931. //
  3932. //
  3933. // // Example sending a request using the CreateInstanceExportTaskRequest method.
  3934. // req, resp := client.CreateInstanceExportTaskRequest(params)
  3935. //
  3936. // err := req.Send()
  3937. // if err == nil { // resp is now filled
  3938. // fmt.Println(resp)
  3939. // }
  3940. //
  3941. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTask
  3942. func (c *EC2) CreateInstanceExportTaskRequest(input *CreateInstanceExportTaskInput) (req *request.Request, output *CreateInstanceExportTaskOutput) {
  3943. op := &request.Operation{
  3944. Name: opCreateInstanceExportTask,
  3945. HTTPMethod: "POST",
  3946. HTTPPath: "/",
  3947. }
  3948. if input == nil {
  3949. input = &CreateInstanceExportTaskInput{}
  3950. }
  3951. output = &CreateInstanceExportTaskOutput{}
  3952. req = c.newRequest(op, input, output)
  3953. return
  3954. }
  3955. // CreateInstanceExportTask API operation for Amazon Elastic Compute Cloud.
  3956. //
  3957. // Exports a running or stopped instance to an S3 bucket.
  3958. //
  3959. // For information about the supported operating systems, image formats, and
  3960. // known limitations for the types of instances you can export, see Exporting
  3961. // an Instance as a VM Using VM Import/Export (http://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html)
  3962. // in the VM Import/Export User Guide.
  3963. //
  3964. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3965. // with awserr.Error's Code and Message methods to get detailed information about
  3966. // the error.
  3967. //
  3968. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3969. // API operation CreateInstanceExportTask for usage and error information.
  3970. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTask
  3971. func (c *EC2) CreateInstanceExportTask(input *CreateInstanceExportTaskInput) (*CreateInstanceExportTaskOutput, error) {
  3972. req, out := c.CreateInstanceExportTaskRequest(input)
  3973. return out, req.Send()
  3974. }
  3975. // CreateInstanceExportTaskWithContext is the same as CreateInstanceExportTask with the addition of
  3976. // the ability to pass a context and additional request options.
  3977. //
  3978. // See CreateInstanceExportTask for details on how to use this API operation.
  3979. //
  3980. // The context must be non-nil and will be used for request cancellation. If
  3981. // the context is nil a panic will occur. In the future the SDK may create
  3982. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3983. // for more information on using Contexts.
  3984. func (c *EC2) CreateInstanceExportTaskWithContext(ctx aws.Context, input *CreateInstanceExportTaskInput, opts ...request.Option) (*CreateInstanceExportTaskOutput, error) {
  3985. req, out := c.CreateInstanceExportTaskRequest(input)
  3986. req.SetContext(ctx)
  3987. req.ApplyOptions(opts...)
  3988. return out, req.Send()
  3989. }
  3990. const opCreateInternetGateway = "CreateInternetGateway"
  3991. // CreateInternetGatewayRequest generates a "aws/request.Request" representing the
  3992. // client's request for the CreateInternetGateway operation. The "output" return
  3993. // value will be populated with the request's response once the request completes
  3994. // successfully.
  3995. //
  3996. // Use "Send" method on the returned Request to send the API call to the service.
  3997. // the "output" return value is not valid until after Send returns without error.
  3998. //
  3999. // See CreateInternetGateway for more information on using the CreateInternetGateway
  4000. // API call, and error handling.
  4001. //
  4002. // This method is useful when you want to inject custom logic or configuration
  4003. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4004. //
  4005. //
  4006. // // Example sending a request using the CreateInternetGatewayRequest method.
  4007. // req, resp := client.CreateInternetGatewayRequest(params)
  4008. //
  4009. // err := req.Send()
  4010. // if err == nil { // resp is now filled
  4011. // fmt.Println(resp)
  4012. // }
  4013. //
  4014. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGateway
  4015. func (c *EC2) CreateInternetGatewayRequest(input *CreateInternetGatewayInput) (req *request.Request, output *CreateInternetGatewayOutput) {
  4016. op := &request.Operation{
  4017. Name: opCreateInternetGateway,
  4018. HTTPMethod: "POST",
  4019. HTTPPath: "/",
  4020. }
  4021. if input == nil {
  4022. input = &CreateInternetGatewayInput{}
  4023. }
  4024. output = &CreateInternetGatewayOutput{}
  4025. req = c.newRequest(op, input, output)
  4026. return
  4027. }
  4028. // CreateInternetGateway API operation for Amazon Elastic Compute Cloud.
  4029. //
  4030. // Creates an internet gateway for use with a VPC. After creating the internet
  4031. // gateway, you attach it to a VPC using AttachInternetGateway.
  4032. //
  4033. // For more information about your VPC and internet gateway, see the Amazon
  4034. // Virtual Private Cloud User Guide (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/).
  4035. //
  4036. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4037. // with awserr.Error's Code and Message methods to get detailed information about
  4038. // the error.
  4039. //
  4040. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4041. // API operation CreateInternetGateway for usage and error information.
  4042. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGateway
  4043. func (c *EC2) CreateInternetGateway(input *CreateInternetGatewayInput) (*CreateInternetGatewayOutput, error) {
  4044. req, out := c.CreateInternetGatewayRequest(input)
  4045. return out, req.Send()
  4046. }
  4047. // CreateInternetGatewayWithContext is the same as CreateInternetGateway with the addition of
  4048. // the ability to pass a context and additional request options.
  4049. //
  4050. // See CreateInternetGateway for details on how to use this API operation.
  4051. //
  4052. // The context must be non-nil and will be used for request cancellation. If
  4053. // the context is nil a panic will occur. In the future the SDK may create
  4054. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4055. // for more information on using Contexts.
  4056. func (c *EC2) CreateInternetGatewayWithContext(ctx aws.Context, input *CreateInternetGatewayInput, opts ...request.Option) (*CreateInternetGatewayOutput, error) {
  4057. req, out := c.CreateInternetGatewayRequest(input)
  4058. req.SetContext(ctx)
  4059. req.ApplyOptions(opts...)
  4060. return out, req.Send()
  4061. }
  4062. const opCreateKeyPair = "CreateKeyPair"
  4063. // CreateKeyPairRequest generates a "aws/request.Request" representing the
  4064. // client's request for the CreateKeyPair operation. The "output" return
  4065. // value will be populated with the request's response once the request completes
  4066. // successfully.
  4067. //
  4068. // Use "Send" method on the returned Request to send the API call to the service.
  4069. // the "output" return value is not valid until after Send returns without error.
  4070. //
  4071. // See CreateKeyPair for more information on using the CreateKeyPair
  4072. // API call, and error handling.
  4073. //
  4074. // This method is useful when you want to inject custom logic or configuration
  4075. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4076. //
  4077. //
  4078. // // Example sending a request using the CreateKeyPairRequest method.
  4079. // req, resp := client.CreateKeyPairRequest(params)
  4080. //
  4081. // err := req.Send()
  4082. // if err == nil { // resp is now filled
  4083. // fmt.Println(resp)
  4084. // }
  4085. //
  4086. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPair
  4087. func (c *EC2) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Request, output *CreateKeyPairOutput) {
  4088. op := &request.Operation{
  4089. Name: opCreateKeyPair,
  4090. HTTPMethod: "POST",
  4091. HTTPPath: "/",
  4092. }
  4093. if input == nil {
  4094. input = &CreateKeyPairInput{}
  4095. }
  4096. output = &CreateKeyPairOutput{}
  4097. req = c.newRequest(op, input, output)
  4098. return
  4099. }
  4100. // CreateKeyPair API operation for Amazon Elastic Compute Cloud.
  4101. //
  4102. // Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores
  4103. // the public key and displays the private key for you to save to a file. The
  4104. // private key is returned as an unencrypted PEM encoded PKCS#1 private key.
  4105. // If a key with the specified name already exists, Amazon EC2 returns an error.
  4106. //
  4107. // You can have up to five thousand key pairs per region.
  4108. //
  4109. // The key pair returned to you is available only in the region in which you
  4110. // create it. If you prefer, you can create your own key pair using a third-party
  4111. // tool and upload it to any region using ImportKeyPair.
  4112. //
  4113. // For more information, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  4114. // in the Amazon Elastic Compute Cloud User Guide.
  4115. //
  4116. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4117. // with awserr.Error's Code and Message methods to get detailed information about
  4118. // the error.
  4119. //
  4120. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4121. // API operation CreateKeyPair for usage and error information.
  4122. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPair
  4123. func (c *EC2) CreateKeyPair(input *CreateKeyPairInput) (*CreateKeyPairOutput, error) {
  4124. req, out := c.CreateKeyPairRequest(input)
  4125. return out, req.Send()
  4126. }
  4127. // CreateKeyPairWithContext is the same as CreateKeyPair with the addition of
  4128. // the ability to pass a context and additional request options.
  4129. //
  4130. // See CreateKeyPair for details on how to use this API operation.
  4131. //
  4132. // The context must be non-nil and will be used for request cancellation. If
  4133. // the context is nil a panic will occur. In the future the SDK may create
  4134. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4135. // for more information on using Contexts.
  4136. func (c *EC2) CreateKeyPairWithContext(ctx aws.Context, input *CreateKeyPairInput, opts ...request.Option) (*CreateKeyPairOutput, error) {
  4137. req, out := c.CreateKeyPairRequest(input)
  4138. req.SetContext(ctx)
  4139. req.ApplyOptions(opts...)
  4140. return out, req.Send()
  4141. }
  4142. const opCreateLaunchTemplate = "CreateLaunchTemplate"
  4143. // CreateLaunchTemplateRequest generates a "aws/request.Request" representing the
  4144. // client's request for the CreateLaunchTemplate operation. The "output" return
  4145. // value will be populated with the request's response once the request completes
  4146. // successfully.
  4147. //
  4148. // Use "Send" method on the returned Request to send the API call to the service.
  4149. // the "output" return value is not valid until after Send returns without error.
  4150. //
  4151. // See CreateLaunchTemplate for more information on using the CreateLaunchTemplate
  4152. // API call, and error handling.
  4153. //
  4154. // This method is useful when you want to inject custom logic or configuration
  4155. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4156. //
  4157. //
  4158. // // Example sending a request using the CreateLaunchTemplateRequest method.
  4159. // req, resp := client.CreateLaunchTemplateRequest(params)
  4160. //
  4161. // err := req.Send()
  4162. // if err == nil { // resp is now filled
  4163. // fmt.Println(resp)
  4164. // }
  4165. //
  4166. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplate
  4167. func (c *EC2) CreateLaunchTemplateRequest(input *CreateLaunchTemplateInput) (req *request.Request, output *CreateLaunchTemplateOutput) {
  4168. op := &request.Operation{
  4169. Name: opCreateLaunchTemplate,
  4170. HTTPMethod: "POST",
  4171. HTTPPath: "/",
  4172. }
  4173. if input == nil {
  4174. input = &CreateLaunchTemplateInput{}
  4175. }
  4176. output = &CreateLaunchTemplateOutput{}
  4177. req = c.newRequest(op, input, output)
  4178. return
  4179. }
  4180. // CreateLaunchTemplate API operation for Amazon Elastic Compute Cloud.
  4181. //
  4182. // Creates a launch template. A launch template contains the parameters to launch
  4183. // an instance. When you launch an instance using RunInstances, you can specify
  4184. // a launch template instead of providing the launch parameters in the request.
  4185. //
  4186. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4187. // with awserr.Error's Code and Message methods to get detailed information about
  4188. // the error.
  4189. //
  4190. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4191. // API operation CreateLaunchTemplate for usage and error information.
  4192. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplate
  4193. func (c *EC2) CreateLaunchTemplate(input *CreateLaunchTemplateInput) (*CreateLaunchTemplateOutput, error) {
  4194. req, out := c.CreateLaunchTemplateRequest(input)
  4195. return out, req.Send()
  4196. }
  4197. // CreateLaunchTemplateWithContext is the same as CreateLaunchTemplate with the addition of
  4198. // the ability to pass a context and additional request options.
  4199. //
  4200. // See CreateLaunchTemplate for details on how to use this API operation.
  4201. //
  4202. // The context must be non-nil and will be used for request cancellation. If
  4203. // the context is nil a panic will occur. In the future the SDK may create
  4204. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4205. // for more information on using Contexts.
  4206. func (c *EC2) CreateLaunchTemplateWithContext(ctx aws.Context, input *CreateLaunchTemplateInput, opts ...request.Option) (*CreateLaunchTemplateOutput, error) {
  4207. req, out := c.CreateLaunchTemplateRequest(input)
  4208. req.SetContext(ctx)
  4209. req.ApplyOptions(opts...)
  4210. return out, req.Send()
  4211. }
  4212. const opCreateLaunchTemplateVersion = "CreateLaunchTemplateVersion"
  4213. // CreateLaunchTemplateVersionRequest generates a "aws/request.Request" representing the
  4214. // client's request for the CreateLaunchTemplateVersion operation. The "output" return
  4215. // value will be populated with the request's response once the request completes
  4216. // successfully.
  4217. //
  4218. // Use "Send" method on the returned Request to send the API call to the service.
  4219. // the "output" return value is not valid until after Send returns without error.
  4220. //
  4221. // See CreateLaunchTemplateVersion for more information on using the CreateLaunchTemplateVersion
  4222. // API call, and error handling.
  4223. //
  4224. // This method is useful when you want to inject custom logic or configuration
  4225. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4226. //
  4227. //
  4228. // // Example sending a request using the CreateLaunchTemplateVersionRequest method.
  4229. // req, resp := client.CreateLaunchTemplateVersionRequest(params)
  4230. //
  4231. // err := req.Send()
  4232. // if err == nil { // resp is now filled
  4233. // fmt.Println(resp)
  4234. // }
  4235. //
  4236. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersion
  4237. func (c *EC2) CreateLaunchTemplateVersionRequest(input *CreateLaunchTemplateVersionInput) (req *request.Request, output *CreateLaunchTemplateVersionOutput) {
  4238. op := &request.Operation{
  4239. Name: opCreateLaunchTemplateVersion,
  4240. HTTPMethod: "POST",
  4241. HTTPPath: "/",
  4242. }
  4243. if input == nil {
  4244. input = &CreateLaunchTemplateVersionInput{}
  4245. }
  4246. output = &CreateLaunchTemplateVersionOutput{}
  4247. req = c.newRequest(op, input, output)
  4248. return
  4249. }
  4250. // CreateLaunchTemplateVersion API operation for Amazon Elastic Compute Cloud.
  4251. //
  4252. // Creates a new version for a launch template. You can specify an existing
  4253. // version of launch template from which to base the new version.
  4254. //
  4255. // Launch template versions are numbered in the order in which they are created.
  4256. // You cannot specify, change, or replace the numbering of launch template versions.
  4257. //
  4258. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4259. // with awserr.Error's Code and Message methods to get detailed information about
  4260. // the error.
  4261. //
  4262. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4263. // API operation CreateLaunchTemplateVersion for usage and error information.
  4264. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersion
  4265. func (c *EC2) CreateLaunchTemplateVersion(input *CreateLaunchTemplateVersionInput) (*CreateLaunchTemplateVersionOutput, error) {
  4266. req, out := c.CreateLaunchTemplateVersionRequest(input)
  4267. return out, req.Send()
  4268. }
  4269. // CreateLaunchTemplateVersionWithContext is the same as CreateLaunchTemplateVersion with the addition of
  4270. // the ability to pass a context and additional request options.
  4271. //
  4272. // See CreateLaunchTemplateVersion for details on how to use this API operation.
  4273. //
  4274. // The context must be non-nil and will be used for request cancellation. If
  4275. // the context is nil a panic will occur. In the future the SDK may create
  4276. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4277. // for more information on using Contexts.
  4278. func (c *EC2) CreateLaunchTemplateVersionWithContext(ctx aws.Context, input *CreateLaunchTemplateVersionInput, opts ...request.Option) (*CreateLaunchTemplateVersionOutput, error) {
  4279. req, out := c.CreateLaunchTemplateVersionRequest(input)
  4280. req.SetContext(ctx)
  4281. req.ApplyOptions(opts...)
  4282. return out, req.Send()
  4283. }
  4284. const opCreateNatGateway = "CreateNatGateway"
  4285. // CreateNatGatewayRequest generates a "aws/request.Request" representing the
  4286. // client's request for the CreateNatGateway operation. The "output" return
  4287. // value will be populated with the request's response once the request completes
  4288. // successfully.
  4289. //
  4290. // Use "Send" method on the returned Request to send the API call to the service.
  4291. // the "output" return value is not valid until after Send returns without error.
  4292. //
  4293. // See CreateNatGateway for more information on using the CreateNatGateway
  4294. // API call, and error handling.
  4295. //
  4296. // This method is useful when you want to inject custom logic or configuration
  4297. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4298. //
  4299. //
  4300. // // Example sending a request using the CreateNatGatewayRequest method.
  4301. // req, resp := client.CreateNatGatewayRequest(params)
  4302. //
  4303. // err := req.Send()
  4304. // if err == nil { // resp is now filled
  4305. // fmt.Println(resp)
  4306. // }
  4307. //
  4308. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGateway
  4309. func (c *EC2) CreateNatGatewayRequest(input *CreateNatGatewayInput) (req *request.Request, output *CreateNatGatewayOutput) {
  4310. op := &request.Operation{
  4311. Name: opCreateNatGateway,
  4312. HTTPMethod: "POST",
  4313. HTTPPath: "/",
  4314. }
  4315. if input == nil {
  4316. input = &CreateNatGatewayInput{}
  4317. }
  4318. output = &CreateNatGatewayOutput{}
  4319. req = c.newRequest(op, input, output)
  4320. return
  4321. }
  4322. // CreateNatGateway API operation for Amazon Elastic Compute Cloud.
  4323. //
  4324. // Creates a NAT gateway in the specified public subnet. This action creates
  4325. // a network interface in the specified subnet with a private IP address from
  4326. // the IP address range of the subnet. Internet-bound traffic from a private
  4327. // subnet can be routed to the NAT gateway, therefore enabling instances in
  4328. // the private subnet to connect to the internet. For more information, see
  4329. // NAT Gateways (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html)
  4330. // in the Amazon Virtual Private Cloud User Guide.
  4331. //
  4332. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4333. // with awserr.Error's Code and Message methods to get detailed information about
  4334. // the error.
  4335. //
  4336. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4337. // API operation CreateNatGateway for usage and error information.
  4338. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGateway
  4339. func (c *EC2) CreateNatGateway(input *CreateNatGatewayInput) (*CreateNatGatewayOutput, error) {
  4340. req, out := c.CreateNatGatewayRequest(input)
  4341. return out, req.Send()
  4342. }
  4343. // CreateNatGatewayWithContext is the same as CreateNatGateway with the addition of
  4344. // the ability to pass a context and additional request options.
  4345. //
  4346. // See CreateNatGateway for details on how to use this API operation.
  4347. //
  4348. // The context must be non-nil and will be used for request cancellation. If
  4349. // the context is nil a panic will occur. In the future the SDK may create
  4350. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4351. // for more information on using Contexts.
  4352. func (c *EC2) CreateNatGatewayWithContext(ctx aws.Context, input *CreateNatGatewayInput, opts ...request.Option) (*CreateNatGatewayOutput, error) {
  4353. req, out := c.CreateNatGatewayRequest(input)
  4354. req.SetContext(ctx)
  4355. req.ApplyOptions(opts...)
  4356. return out, req.Send()
  4357. }
  4358. const opCreateNetworkAcl = "CreateNetworkAcl"
  4359. // CreateNetworkAclRequest generates a "aws/request.Request" representing the
  4360. // client's request for the CreateNetworkAcl operation. The "output" return
  4361. // value will be populated with the request's response once the request completes
  4362. // successfully.
  4363. //
  4364. // Use "Send" method on the returned Request to send the API call to the service.
  4365. // the "output" return value is not valid until after Send returns without error.
  4366. //
  4367. // See CreateNetworkAcl for more information on using the CreateNetworkAcl
  4368. // API call, and error handling.
  4369. //
  4370. // This method is useful when you want to inject custom logic or configuration
  4371. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4372. //
  4373. //
  4374. // // Example sending a request using the CreateNetworkAclRequest method.
  4375. // req, resp := client.CreateNetworkAclRequest(params)
  4376. //
  4377. // err := req.Send()
  4378. // if err == nil { // resp is now filled
  4379. // fmt.Println(resp)
  4380. // }
  4381. //
  4382. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAcl
  4383. func (c *EC2) CreateNetworkAclRequest(input *CreateNetworkAclInput) (req *request.Request, output *CreateNetworkAclOutput) {
  4384. op := &request.Operation{
  4385. Name: opCreateNetworkAcl,
  4386. HTTPMethod: "POST",
  4387. HTTPPath: "/",
  4388. }
  4389. if input == nil {
  4390. input = &CreateNetworkAclInput{}
  4391. }
  4392. output = &CreateNetworkAclOutput{}
  4393. req = c.newRequest(op, input, output)
  4394. return
  4395. }
  4396. // CreateNetworkAcl API operation for Amazon Elastic Compute Cloud.
  4397. //
  4398. // Creates a network ACL in a VPC. Network ACLs provide an optional layer of
  4399. // security (in addition to security groups) for the instances in your VPC.
  4400. //
  4401. // For more information, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  4402. // in the Amazon Virtual Private Cloud User Guide.
  4403. //
  4404. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4405. // with awserr.Error's Code and Message methods to get detailed information about
  4406. // the error.
  4407. //
  4408. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4409. // API operation CreateNetworkAcl for usage and error information.
  4410. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAcl
  4411. func (c *EC2) CreateNetworkAcl(input *CreateNetworkAclInput) (*CreateNetworkAclOutput, error) {
  4412. req, out := c.CreateNetworkAclRequest(input)
  4413. return out, req.Send()
  4414. }
  4415. // CreateNetworkAclWithContext is the same as CreateNetworkAcl with the addition of
  4416. // the ability to pass a context and additional request options.
  4417. //
  4418. // See CreateNetworkAcl for details on how to use this API operation.
  4419. //
  4420. // The context must be non-nil and will be used for request cancellation. If
  4421. // the context is nil a panic will occur. In the future the SDK may create
  4422. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4423. // for more information on using Contexts.
  4424. func (c *EC2) CreateNetworkAclWithContext(ctx aws.Context, input *CreateNetworkAclInput, opts ...request.Option) (*CreateNetworkAclOutput, error) {
  4425. req, out := c.CreateNetworkAclRequest(input)
  4426. req.SetContext(ctx)
  4427. req.ApplyOptions(opts...)
  4428. return out, req.Send()
  4429. }
  4430. const opCreateNetworkAclEntry = "CreateNetworkAclEntry"
  4431. // CreateNetworkAclEntryRequest generates a "aws/request.Request" representing the
  4432. // client's request for the CreateNetworkAclEntry operation. The "output" return
  4433. // value will be populated with the request's response once the request completes
  4434. // successfully.
  4435. //
  4436. // Use "Send" method on the returned Request to send the API call to the service.
  4437. // the "output" return value is not valid until after Send returns without error.
  4438. //
  4439. // See CreateNetworkAclEntry for more information on using the CreateNetworkAclEntry
  4440. // API call, and error handling.
  4441. //
  4442. // This method is useful when you want to inject custom logic or configuration
  4443. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4444. //
  4445. //
  4446. // // Example sending a request using the CreateNetworkAclEntryRequest method.
  4447. // req, resp := client.CreateNetworkAclEntryRequest(params)
  4448. //
  4449. // err := req.Send()
  4450. // if err == nil { // resp is now filled
  4451. // fmt.Println(resp)
  4452. // }
  4453. //
  4454. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntry
  4455. func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (req *request.Request, output *CreateNetworkAclEntryOutput) {
  4456. op := &request.Operation{
  4457. Name: opCreateNetworkAclEntry,
  4458. HTTPMethod: "POST",
  4459. HTTPPath: "/",
  4460. }
  4461. if input == nil {
  4462. input = &CreateNetworkAclEntryInput{}
  4463. }
  4464. output = &CreateNetworkAclEntryOutput{}
  4465. req = c.newRequest(op, input, output)
  4466. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  4467. return
  4468. }
  4469. // CreateNetworkAclEntry API operation for Amazon Elastic Compute Cloud.
  4470. //
  4471. // Creates an entry (a rule) in a network ACL with the specified rule number.
  4472. // Each network ACL has a set of numbered ingress rules and a separate set of
  4473. // numbered egress rules. When determining whether a packet should be allowed
  4474. // in or out of a subnet associated with the ACL, we process the entries in
  4475. // the ACL according to the rule numbers, in ascending order. Each network ACL
  4476. // has a set of ingress rules and a separate set of egress rules.
  4477. //
  4478. // We recommend that you leave room between the rule numbers (for example, 100,
  4479. // 110, 120, ...), and not number them one right after the other (for example,
  4480. // 101, 102, 103, ...). This makes it easier to add a rule between existing
  4481. // ones without having to renumber the rules.
  4482. //
  4483. // After you add an entry, you can't modify it; you must either replace it,
  4484. // or create an entry and delete the old one.
  4485. //
  4486. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  4487. // in the Amazon Virtual Private Cloud User Guide.
  4488. //
  4489. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4490. // with awserr.Error's Code and Message methods to get detailed information about
  4491. // the error.
  4492. //
  4493. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4494. // API operation CreateNetworkAclEntry for usage and error information.
  4495. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntry
  4496. func (c *EC2) CreateNetworkAclEntry(input *CreateNetworkAclEntryInput) (*CreateNetworkAclEntryOutput, error) {
  4497. req, out := c.CreateNetworkAclEntryRequest(input)
  4498. return out, req.Send()
  4499. }
  4500. // CreateNetworkAclEntryWithContext is the same as CreateNetworkAclEntry with the addition of
  4501. // the ability to pass a context and additional request options.
  4502. //
  4503. // See CreateNetworkAclEntry for details on how to use this API operation.
  4504. //
  4505. // The context must be non-nil and will be used for request cancellation. If
  4506. // the context is nil a panic will occur. In the future the SDK may create
  4507. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4508. // for more information on using Contexts.
  4509. func (c *EC2) CreateNetworkAclEntryWithContext(ctx aws.Context, input *CreateNetworkAclEntryInput, opts ...request.Option) (*CreateNetworkAclEntryOutput, error) {
  4510. req, out := c.CreateNetworkAclEntryRequest(input)
  4511. req.SetContext(ctx)
  4512. req.ApplyOptions(opts...)
  4513. return out, req.Send()
  4514. }
  4515. const opCreateNetworkInterface = "CreateNetworkInterface"
  4516. // CreateNetworkInterfaceRequest generates a "aws/request.Request" representing the
  4517. // client's request for the CreateNetworkInterface operation. The "output" return
  4518. // value will be populated with the request's response once the request completes
  4519. // successfully.
  4520. //
  4521. // Use "Send" method on the returned Request to send the API call to the service.
  4522. // the "output" return value is not valid until after Send returns without error.
  4523. //
  4524. // See CreateNetworkInterface for more information on using the CreateNetworkInterface
  4525. // API call, and error handling.
  4526. //
  4527. // This method is useful when you want to inject custom logic or configuration
  4528. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4529. //
  4530. //
  4531. // // Example sending a request using the CreateNetworkInterfaceRequest method.
  4532. // req, resp := client.CreateNetworkInterfaceRequest(params)
  4533. //
  4534. // err := req.Send()
  4535. // if err == nil { // resp is now filled
  4536. // fmt.Println(resp)
  4537. // }
  4538. //
  4539. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface
  4540. func (c *EC2) CreateNetworkInterfaceRequest(input *CreateNetworkInterfaceInput) (req *request.Request, output *CreateNetworkInterfaceOutput) {
  4541. op := &request.Operation{
  4542. Name: opCreateNetworkInterface,
  4543. HTTPMethod: "POST",
  4544. HTTPPath: "/",
  4545. }
  4546. if input == nil {
  4547. input = &CreateNetworkInterfaceInput{}
  4548. }
  4549. output = &CreateNetworkInterfaceOutput{}
  4550. req = c.newRequest(op, input, output)
  4551. return
  4552. }
  4553. // CreateNetworkInterface API operation for Amazon Elastic Compute Cloud.
  4554. //
  4555. // Creates a network interface in the specified subnet.
  4556. //
  4557. // For more information about network interfaces, see Elastic Network Interfaces
  4558. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html) in the
  4559. // 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 CreateNetworkInterface for usage and error information.
  4567. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface
  4568. func (c *EC2) CreateNetworkInterface(input *CreateNetworkInterfaceInput) (*CreateNetworkInterfaceOutput, error) {
  4569. req, out := c.CreateNetworkInterfaceRequest(input)
  4570. return out, req.Send()
  4571. }
  4572. // CreateNetworkInterfaceWithContext is the same as CreateNetworkInterface with the addition of
  4573. // the ability to pass a context and additional request options.
  4574. //
  4575. // See CreateNetworkInterface 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) CreateNetworkInterfaceWithContext(ctx aws.Context, input *CreateNetworkInterfaceInput, opts ...request.Option) (*CreateNetworkInterfaceOutput, error) {
  4582. req, out := c.CreateNetworkInterfaceRequest(input)
  4583. req.SetContext(ctx)
  4584. req.ApplyOptions(opts...)
  4585. return out, req.Send()
  4586. }
  4587. const opCreateNetworkInterfacePermission = "CreateNetworkInterfacePermission"
  4588. // CreateNetworkInterfacePermissionRequest generates a "aws/request.Request" representing the
  4589. // client's request for the CreateNetworkInterfacePermission operation. The "output" return
  4590. // value will be populated with the request's response once the request completes
  4591. // successfully.
  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 CreateNetworkInterfacePermission for more information on using the CreateNetworkInterfacePermission
  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 CreateNetworkInterfacePermissionRequest method.
  4604. // req, resp := client.CreateNetworkInterfacePermissionRequest(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/CreateNetworkInterfacePermission
  4612. func (c *EC2) CreateNetworkInterfacePermissionRequest(input *CreateNetworkInterfacePermissionInput) (req *request.Request, output *CreateNetworkInterfacePermissionOutput) {
  4613. op := &request.Operation{
  4614. Name: opCreateNetworkInterfacePermission,
  4615. HTTPMethod: "POST",
  4616. HTTPPath: "/",
  4617. }
  4618. if input == nil {
  4619. input = &CreateNetworkInterfacePermissionInput{}
  4620. }
  4621. output = &CreateNetworkInterfacePermissionOutput{}
  4622. req = c.newRequest(op, input, output)
  4623. return
  4624. }
  4625. // CreateNetworkInterfacePermission API operation for Amazon Elastic Compute Cloud.
  4626. //
  4627. // Grants an AWS-authorized account permission to attach the specified network
  4628. // interface to an instance in their account.
  4629. //
  4630. // You can grant permission to a single AWS account only, and only one account
  4631. // at a time.
  4632. //
  4633. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4634. // with awserr.Error's Code and Message methods to get detailed information about
  4635. // the error.
  4636. //
  4637. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4638. // API operation CreateNetworkInterfacePermission for usage and error information.
  4639. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfacePermission
  4640. func (c *EC2) CreateNetworkInterfacePermission(input *CreateNetworkInterfacePermissionInput) (*CreateNetworkInterfacePermissionOutput, error) {
  4641. req, out := c.CreateNetworkInterfacePermissionRequest(input)
  4642. return out, req.Send()
  4643. }
  4644. // CreateNetworkInterfacePermissionWithContext is the same as CreateNetworkInterfacePermission with the addition of
  4645. // the ability to pass a context and additional request options.
  4646. //
  4647. // See CreateNetworkInterfacePermission for details on how to use this API operation.
  4648. //
  4649. // The context must be non-nil and will be used for request cancellation. If
  4650. // the context is nil a panic will occur. In the future the SDK may create
  4651. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4652. // for more information on using Contexts.
  4653. func (c *EC2) CreateNetworkInterfacePermissionWithContext(ctx aws.Context, input *CreateNetworkInterfacePermissionInput, opts ...request.Option) (*CreateNetworkInterfacePermissionOutput, error) {
  4654. req, out := c.CreateNetworkInterfacePermissionRequest(input)
  4655. req.SetContext(ctx)
  4656. req.ApplyOptions(opts...)
  4657. return out, req.Send()
  4658. }
  4659. const opCreatePlacementGroup = "CreatePlacementGroup"
  4660. // CreatePlacementGroupRequest generates a "aws/request.Request" representing the
  4661. // client's request for the CreatePlacementGroup operation. The "output" return
  4662. // value will be populated with the request's response once the request completes
  4663. // successfully.
  4664. //
  4665. // Use "Send" method on the returned Request to send the API call to the service.
  4666. // the "output" return value is not valid until after Send returns without error.
  4667. //
  4668. // See CreatePlacementGroup for more information on using the CreatePlacementGroup
  4669. // API call, and error handling.
  4670. //
  4671. // This method is useful when you want to inject custom logic or configuration
  4672. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4673. //
  4674. //
  4675. // // Example sending a request using the CreatePlacementGroupRequest method.
  4676. // req, resp := client.CreatePlacementGroupRequest(params)
  4677. //
  4678. // err := req.Send()
  4679. // if err == nil { // resp is now filled
  4680. // fmt.Println(resp)
  4681. // }
  4682. //
  4683. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroup
  4684. func (c *EC2) CreatePlacementGroupRequest(input *CreatePlacementGroupInput) (req *request.Request, output *CreatePlacementGroupOutput) {
  4685. op := &request.Operation{
  4686. Name: opCreatePlacementGroup,
  4687. HTTPMethod: "POST",
  4688. HTTPPath: "/",
  4689. }
  4690. if input == nil {
  4691. input = &CreatePlacementGroupInput{}
  4692. }
  4693. output = &CreatePlacementGroupOutput{}
  4694. req = c.newRequest(op, input, output)
  4695. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  4696. return
  4697. }
  4698. // CreatePlacementGroup API operation for Amazon Elastic Compute Cloud.
  4699. //
  4700. // Creates a placement group in which to launch instances. The strategy of the
  4701. // placement group determines how the instances are organized within the group.
  4702. //
  4703. // A cluster placement group is a logical grouping of instances within a single
  4704. // Availability Zone that benefit from low network latency, high network throughput.
  4705. // A spread placement group places instances on distinct hardware. A partition
  4706. // placement group places groups of instances in different partitions, where
  4707. // instances in one partition do not share the same hardware with instances
  4708. // in another partition.
  4709. //
  4710. // For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
  4711. // in the Amazon Elastic Compute Cloud User Guide.
  4712. //
  4713. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4714. // with awserr.Error's Code and Message methods to get detailed information about
  4715. // the error.
  4716. //
  4717. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4718. // API operation CreatePlacementGroup for usage and error information.
  4719. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroup
  4720. func (c *EC2) CreatePlacementGroup(input *CreatePlacementGroupInput) (*CreatePlacementGroupOutput, error) {
  4721. req, out := c.CreatePlacementGroupRequest(input)
  4722. return out, req.Send()
  4723. }
  4724. // CreatePlacementGroupWithContext is the same as CreatePlacementGroup with the addition of
  4725. // the ability to pass a context and additional request options.
  4726. //
  4727. // See CreatePlacementGroup for details on how to use this API operation.
  4728. //
  4729. // The context must be non-nil and will be used for request cancellation. If
  4730. // the context is nil a panic will occur. In the future the SDK may create
  4731. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4732. // for more information on using Contexts.
  4733. func (c *EC2) CreatePlacementGroupWithContext(ctx aws.Context, input *CreatePlacementGroupInput, opts ...request.Option) (*CreatePlacementGroupOutput, error) {
  4734. req, out := c.CreatePlacementGroupRequest(input)
  4735. req.SetContext(ctx)
  4736. req.ApplyOptions(opts...)
  4737. return out, req.Send()
  4738. }
  4739. const opCreateReservedInstancesListing = "CreateReservedInstancesListing"
  4740. // CreateReservedInstancesListingRequest generates a "aws/request.Request" representing the
  4741. // client's request for the CreateReservedInstancesListing operation. The "output" return
  4742. // value will be populated with the request's response once the request completes
  4743. // successfully.
  4744. //
  4745. // Use "Send" method on the returned Request to send the API call to the service.
  4746. // the "output" return value is not valid until after Send returns without error.
  4747. //
  4748. // See CreateReservedInstancesListing for more information on using the CreateReservedInstancesListing
  4749. // API call, and error handling.
  4750. //
  4751. // This method is useful when you want to inject custom logic or configuration
  4752. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4753. //
  4754. //
  4755. // // Example sending a request using the CreateReservedInstancesListingRequest method.
  4756. // req, resp := client.CreateReservedInstancesListingRequest(params)
  4757. //
  4758. // err := req.Send()
  4759. // if err == nil { // resp is now filled
  4760. // fmt.Println(resp)
  4761. // }
  4762. //
  4763. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListing
  4764. func (c *EC2) CreateReservedInstancesListingRequest(input *CreateReservedInstancesListingInput) (req *request.Request, output *CreateReservedInstancesListingOutput) {
  4765. op := &request.Operation{
  4766. Name: opCreateReservedInstancesListing,
  4767. HTTPMethod: "POST",
  4768. HTTPPath: "/",
  4769. }
  4770. if input == nil {
  4771. input = &CreateReservedInstancesListingInput{}
  4772. }
  4773. output = &CreateReservedInstancesListingOutput{}
  4774. req = c.newRequest(op, input, output)
  4775. return
  4776. }
  4777. // CreateReservedInstancesListing API operation for Amazon Elastic Compute Cloud.
  4778. //
  4779. // Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in
  4780. // the Reserved Instance Marketplace. You can submit one Standard Reserved Instance
  4781. // listing at a time. To get a list of your Standard Reserved Instances, you
  4782. // can use the DescribeReservedInstances operation.
  4783. //
  4784. // Only Standard Reserved Instances with a capacity reservation can be sold
  4785. // in the Reserved Instance Marketplace. Convertible Reserved Instances and
  4786. // Standard Reserved Instances with a regional benefit cannot be sold.
  4787. //
  4788. // The Reserved Instance Marketplace matches sellers who want to resell Standard
  4789. // Reserved Instance capacity that they no longer need with buyers who want
  4790. // to purchase additional capacity. Reserved Instances bought and sold through
  4791. // the Reserved Instance Marketplace work like any other Reserved Instances.
  4792. //
  4793. // To sell your Standard Reserved Instances, you must first register as a seller
  4794. // in the Reserved Instance Marketplace. After completing the registration process,
  4795. // you can create a Reserved Instance Marketplace listing of some or all of
  4796. // your Standard Reserved Instances, and specify the upfront price to receive
  4797. // for them. Your Standard Reserved Instance listings then become available
  4798. // for purchase. To view the details of your Standard Reserved Instance listing,
  4799. // you can use the DescribeReservedInstancesListings operation.
  4800. //
  4801. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  4802. // in the Amazon Elastic Compute Cloud User Guide.
  4803. //
  4804. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4805. // with awserr.Error's Code and Message methods to get detailed information about
  4806. // the error.
  4807. //
  4808. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4809. // API operation CreateReservedInstancesListing for usage and error information.
  4810. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListing
  4811. func (c *EC2) CreateReservedInstancesListing(input *CreateReservedInstancesListingInput) (*CreateReservedInstancesListingOutput, error) {
  4812. req, out := c.CreateReservedInstancesListingRequest(input)
  4813. return out, req.Send()
  4814. }
  4815. // CreateReservedInstancesListingWithContext is the same as CreateReservedInstancesListing with the addition of
  4816. // the ability to pass a context and additional request options.
  4817. //
  4818. // See CreateReservedInstancesListing for details on how to use this API operation.
  4819. //
  4820. // The context must be non-nil and will be used for request cancellation. If
  4821. // the context is nil a panic will occur. In the future the SDK may create
  4822. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4823. // for more information on using Contexts.
  4824. func (c *EC2) CreateReservedInstancesListingWithContext(ctx aws.Context, input *CreateReservedInstancesListingInput, opts ...request.Option) (*CreateReservedInstancesListingOutput, error) {
  4825. req, out := c.CreateReservedInstancesListingRequest(input)
  4826. req.SetContext(ctx)
  4827. req.ApplyOptions(opts...)
  4828. return out, req.Send()
  4829. }
  4830. const opCreateRoute = "CreateRoute"
  4831. // CreateRouteRequest generates a "aws/request.Request" representing the
  4832. // client's request for the CreateRoute operation. The "output" return
  4833. // value will be populated with the request's response once the request completes
  4834. // successfully.
  4835. //
  4836. // Use "Send" method on the returned Request to send the API call to the service.
  4837. // the "output" return value is not valid until after Send returns without error.
  4838. //
  4839. // See CreateRoute for more information on using the CreateRoute
  4840. // API call, and error handling.
  4841. //
  4842. // This method is useful when you want to inject custom logic or configuration
  4843. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4844. //
  4845. //
  4846. // // Example sending a request using the CreateRouteRequest method.
  4847. // req, resp := client.CreateRouteRequest(params)
  4848. //
  4849. // err := req.Send()
  4850. // if err == nil { // resp is now filled
  4851. // fmt.Println(resp)
  4852. // }
  4853. //
  4854. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRoute
  4855. func (c *EC2) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, output *CreateRouteOutput) {
  4856. op := &request.Operation{
  4857. Name: opCreateRoute,
  4858. HTTPMethod: "POST",
  4859. HTTPPath: "/",
  4860. }
  4861. if input == nil {
  4862. input = &CreateRouteInput{}
  4863. }
  4864. output = &CreateRouteOutput{}
  4865. req = c.newRequest(op, input, output)
  4866. return
  4867. }
  4868. // CreateRoute API operation for Amazon Elastic Compute Cloud.
  4869. //
  4870. // Creates a route in a route table within a VPC.
  4871. //
  4872. // You must specify one of the following targets: internet gateway or virtual
  4873. // private gateway, NAT instance, NAT gateway, VPC peering connection, network
  4874. // interface, or egress-only internet gateway.
  4875. //
  4876. // When determining how to route traffic, we use the route with the most specific
  4877. // match. For example, traffic is destined for the IPv4 address 192.0.2.3, and
  4878. // the route table includes the following two IPv4 routes:
  4879. //
  4880. // * 192.0.2.0/24 (goes to some target A)
  4881. //
  4882. // * 192.0.2.0/28 (goes to some target B)
  4883. //
  4884. // Both routes apply to the traffic destined for 192.0.2.3. However, the second
  4885. // route in the list covers a smaller number of IP addresses and is therefore
  4886. // more specific, so we use that route to determine where to target the traffic.
  4887. //
  4888. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  4889. // in the Amazon Virtual Private Cloud User Guide.
  4890. //
  4891. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4892. // with awserr.Error's Code and Message methods to get detailed information about
  4893. // the error.
  4894. //
  4895. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4896. // API operation CreateRoute for usage and error information.
  4897. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRoute
  4898. func (c *EC2) CreateRoute(input *CreateRouteInput) (*CreateRouteOutput, error) {
  4899. req, out := c.CreateRouteRequest(input)
  4900. return out, req.Send()
  4901. }
  4902. // CreateRouteWithContext is the same as CreateRoute with the addition of
  4903. // the ability to pass a context and additional request options.
  4904. //
  4905. // See CreateRoute for details on how to use this API operation.
  4906. //
  4907. // The context must be non-nil and will be used for request cancellation. If
  4908. // the context is nil a panic will occur. In the future the SDK may create
  4909. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4910. // for more information on using Contexts.
  4911. func (c *EC2) CreateRouteWithContext(ctx aws.Context, input *CreateRouteInput, opts ...request.Option) (*CreateRouteOutput, error) {
  4912. req, out := c.CreateRouteRequest(input)
  4913. req.SetContext(ctx)
  4914. req.ApplyOptions(opts...)
  4915. return out, req.Send()
  4916. }
  4917. const opCreateRouteTable = "CreateRouteTable"
  4918. // CreateRouteTableRequest generates a "aws/request.Request" representing the
  4919. // client's request for the CreateRouteTable operation. The "output" return
  4920. // value will be populated with the request's response once the request completes
  4921. // successfully.
  4922. //
  4923. // Use "Send" method on the returned Request to send the API call to the service.
  4924. // the "output" return value is not valid until after Send returns without error.
  4925. //
  4926. // See CreateRouteTable for more information on using the CreateRouteTable
  4927. // API call, and error handling.
  4928. //
  4929. // This method is useful when you want to inject custom logic or configuration
  4930. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4931. //
  4932. //
  4933. // // Example sending a request using the CreateRouteTableRequest method.
  4934. // req, resp := client.CreateRouteTableRequest(params)
  4935. //
  4936. // err := req.Send()
  4937. // if err == nil { // resp is now filled
  4938. // fmt.Println(resp)
  4939. // }
  4940. //
  4941. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTable
  4942. func (c *EC2) CreateRouteTableRequest(input *CreateRouteTableInput) (req *request.Request, output *CreateRouteTableOutput) {
  4943. op := &request.Operation{
  4944. Name: opCreateRouteTable,
  4945. HTTPMethod: "POST",
  4946. HTTPPath: "/",
  4947. }
  4948. if input == nil {
  4949. input = &CreateRouteTableInput{}
  4950. }
  4951. output = &CreateRouteTableOutput{}
  4952. req = c.newRequest(op, input, output)
  4953. return
  4954. }
  4955. // CreateRouteTable API operation for Amazon Elastic Compute Cloud.
  4956. //
  4957. // Creates a route table for the specified VPC. After you create a route table,
  4958. // you can add routes and associate the table with a subnet.
  4959. //
  4960. // For more information, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  4961. // in the Amazon Virtual Private Cloud User Guide.
  4962. //
  4963. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4964. // with awserr.Error's Code and Message methods to get detailed information about
  4965. // the error.
  4966. //
  4967. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4968. // API operation CreateRouteTable for usage and error information.
  4969. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTable
  4970. func (c *EC2) CreateRouteTable(input *CreateRouteTableInput) (*CreateRouteTableOutput, error) {
  4971. req, out := c.CreateRouteTableRequest(input)
  4972. return out, req.Send()
  4973. }
  4974. // CreateRouteTableWithContext is the same as CreateRouteTable with the addition of
  4975. // the ability to pass a context and additional request options.
  4976. //
  4977. // See CreateRouteTable for details on how to use this API operation.
  4978. //
  4979. // The context must be non-nil and will be used for request cancellation. If
  4980. // the context is nil a panic will occur. In the future the SDK may create
  4981. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4982. // for more information on using Contexts.
  4983. func (c *EC2) CreateRouteTableWithContext(ctx aws.Context, input *CreateRouteTableInput, opts ...request.Option) (*CreateRouteTableOutput, error) {
  4984. req, out := c.CreateRouteTableRequest(input)
  4985. req.SetContext(ctx)
  4986. req.ApplyOptions(opts...)
  4987. return out, req.Send()
  4988. }
  4989. const opCreateSecurityGroup = "CreateSecurityGroup"
  4990. // CreateSecurityGroupRequest generates a "aws/request.Request" representing the
  4991. // client's request for the CreateSecurityGroup operation. The "output" return
  4992. // value will be populated with the request's response once the request completes
  4993. // successfully.
  4994. //
  4995. // Use "Send" method on the returned Request to send the API call to the service.
  4996. // the "output" return value is not valid until after Send returns without error.
  4997. //
  4998. // See CreateSecurityGroup for more information on using the CreateSecurityGroup
  4999. // API call, and error handling.
  5000. //
  5001. // This method is useful when you want to inject custom logic or configuration
  5002. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5003. //
  5004. //
  5005. // // Example sending a request using the CreateSecurityGroupRequest method.
  5006. // req, resp := client.CreateSecurityGroupRequest(params)
  5007. //
  5008. // err := req.Send()
  5009. // if err == nil { // resp is now filled
  5010. // fmt.Println(resp)
  5011. // }
  5012. //
  5013. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroup
  5014. func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req *request.Request, output *CreateSecurityGroupOutput) {
  5015. op := &request.Operation{
  5016. Name: opCreateSecurityGroup,
  5017. HTTPMethod: "POST",
  5018. HTTPPath: "/",
  5019. }
  5020. if input == nil {
  5021. input = &CreateSecurityGroupInput{}
  5022. }
  5023. output = &CreateSecurityGroupOutput{}
  5024. req = c.newRequest(op, input, output)
  5025. return
  5026. }
  5027. // CreateSecurityGroup API operation for Amazon Elastic Compute Cloud.
  5028. //
  5029. // Creates a security group.
  5030. //
  5031. // A security group is for use with instances either in the EC2-Classic platform
  5032. // or in a specific VPC. For more information, see Amazon EC2 Security Groups
  5033. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
  5034. // in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your
  5035. // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  5036. // in the Amazon Virtual Private Cloud User Guide.
  5037. //
  5038. // EC2-Classic: You can have up to 500 security groups.
  5039. //
  5040. // EC2-VPC: You can create up to 500 security groups per VPC.
  5041. //
  5042. // When you create a security group, you specify a friendly name of your choice.
  5043. // You can have a security group for use in EC2-Classic with the same name as
  5044. // a security group for use in a VPC. However, you can't have two security groups
  5045. // for use in EC2-Classic with the same name or two security groups for use
  5046. // in a VPC with the same name.
  5047. //
  5048. // You have a default security group for use in EC2-Classic and a default security
  5049. // group for use in your VPC. If you don't specify a security group when you
  5050. // launch an instance, the instance is launched into the appropriate default
  5051. // security group. A default security group includes a default rule that grants
  5052. // instances unrestricted network access to each other.
  5053. //
  5054. // You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress,
  5055. // AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.
  5056. //
  5057. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5058. // with awserr.Error's Code and Message methods to get detailed information about
  5059. // the error.
  5060. //
  5061. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5062. // API operation CreateSecurityGroup for usage and error information.
  5063. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroup
  5064. func (c *EC2) CreateSecurityGroup(input *CreateSecurityGroupInput) (*CreateSecurityGroupOutput, error) {
  5065. req, out := c.CreateSecurityGroupRequest(input)
  5066. return out, req.Send()
  5067. }
  5068. // CreateSecurityGroupWithContext is the same as CreateSecurityGroup with the addition of
  5069. // the ability to pass a context and additional request options.
  5070. //
  5071. // See CreateSecurityGroup for details on how to use this API operation.
  5072. //
  5073. // The context must be non-nil and will be used for request cancellation. If
  5074. // the context is nil a panic will occur. In the future the SDK may create
  5075. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5076. // for more information on using Contexts.
  5077. func (c *EC2) CreateSecurityGroupWithContext(ctx aws.Context, input *CreateSecurityGroupInput, opts ...request.Option) (*CreateSecurityGroupOutput, error) {
  5078. req, out := c.CreateSecurityGroupRequest(input)
  5079. req.SetContext(ctx)
  5080. req.ApplyOptions(opts...)
  5081. return out, req.Send()
  5082. }
  5083. const opCreateSnapshot = "CreateSnapshot"
  5084. // CreateSnapshotRequest generates a "aws/request.Request" representing the
  5085. // client's request for the CreateSnapshot operation. The "output" return
  5086. // value will be populated with the request's response once the request completes
  5087. // successfully.
  5088. //
  5089. // Use "Send" method on the returned Request to send the API call to the service.
  5090. // the "output" return value is not valid until after Send returns without error.
  5091. //
  5092. // See CreateSnapshot for more information on using the CreateSnapshot
  5093. // API call, and error handling.
  5094. //
  5095. // This method is useful when you want to inject custom logic or configuration
  5096. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5097. //
  5098. //
  5099. // // Example sending a request using the CreateSnapshotRequest method.
  5100. // req, resp := client.CreateSnapshotRequest(params)
  5101. //
  5102. // err := req.Send()
  5103. // if err == nil { // resp is now filled
  5104. // fmt.Println(resp)
  5105. // }
  5106. //
  5107. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshot
  5108. func (c *EC2) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *Snapshot) {
  5109. op := &request.Operation{
  5110. Name: opCreateSnapshot,
  5111. HTTPMethod: "POST",
  5112. HTTPPath: "/",
  5113. }
  5114. if input == nil {
  5115. input = &CreateSnapshotInput{}
  5116. }
  5117. output = &Snapshot{}
  5118. req = c.newRequest(op, input, output)
  5119. return
  5120. }
  5121. // CreateSnapshot API operation for Amazon Elastic Compute Cloud.
  5122. //
  5123. // Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use
  5124. // snapshots for backups, to make copies of EBS volumes, and to save data before
  5125. // shutting down an instance.
  5126. //
  5127. // When a snapshot is created, any AWS Marketplace product codes that are associated
  5128. // with the source volume are propagated to the snapshot.
  5129. //
  5130. // You can take a snapshot of an attached volume that is in use. However, snapshots
  5131. // only capture data that has been written to your EBS volume at the time the
  5132. // snapshot command is issued; this may exclude any data that has been cached
  5133. // by any applications or the operating system. If you can pause any file systems
  5134. // on the volume long enough to take a snapshot, your snapshot should be complete.
  5135. // However, if you cannot pause all file writes to the volume, you should unmount
  5136. // the volume from within the instance, issue the snapshot command, and then
  5137. // remount the volume to ensure a consistent and complete snapshot. You may
  5138. // remount and use your volume while the snapshot status is pending.
  5139. //
  5140. // To create a snapshot for EBS volumes that serve as root devices, you should
  5141. // stop the instance before taking the snapshot.
  5142. //
  5143. // Snapshots that are taken from encrypted volumes are automatically encrypted.
  5144. // Volumes that are created from encrypted snapshots are also automatically
  5145. // encrypted. Your encrypted volumes and any associated snapshots always remain
  5146. // protected.
  5147. //
  5148. // You can tag your snapshots during creation. For more information, see Tagging
  5149. // Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  5150. // in the Amazon Elastic Compute Cloud User Guide.
  5151. //
  5152. // For more information, see Amazon Elastic Block Store (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html)
  5153. // and Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  5154. // in the Amazon Elastic Compute Cloud User Guide.
  5155. //
  5156. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5157. // with awserr.Error's Code and Message methods to get detailed information about
  5158. // the error.
  5159. //
  5160. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5161. // API operation CreateSnapshot for usage and error information.
  5162. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshot
  5163. func (c *EC2) CreateSnapshot(input *CreateSnapshotInput) (*Snapshot, error) {
  5164. req, out := c.CreateSnapshotRequest(input)
  5165. return out, req.Send()
  5166. }
  5167. // CreateSnapshotWithContext is the same as CreateSnapshot with the addition of
  5168. // the ability to pass a context and additional request options.
  5169. //
  5170. // See CreateSnapshot for details on how to use this API operation.
  5171. //
  5172. // The context must be non-nil and will be used for request cancellation. If
  5173. // the context is nil a panic will occur. In the future the SDK may create
  5174. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5175. // for more information on using Contexts.
  5176. func (c *EC2) CreateSnapshotWithContext(ctx aws.Context, input *CreateSnapshotInput, opts ...request.Option) (*Snapshot, error) {
  5177. req, out := c.CreateSnapshotRequest(input)
  5178. req.SetContext(ctx)
  5179. req.ApplyOptions(opts...)
  5180. return out, req.Send()
  5181. }
  5182. const opCreateSpotDatafeedSubscription = "CreateSpotDatafeedSubscription"
  5183. // CreateSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  5184. // client's request for the CreateSpotDatafeedSubscription operation. The "output" return
  5185. // value will be populated with the request's response once the request completes
  5186. // successfully.
  5187. //
  5188. // Use "Send" method on the returned Request to send the API call to the service.
  5189. // the "output" return value is not valid until after Send returns without error.
  5190. //
  5191. // See CreateSpotDatafeedSubscription for more information on using the CreateSpotDatafeedSubscription
  5192. // API call, and error handling.
  5193. //
  5194. // This method is useful when you want to inject custom logic or configuration
  5195. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5196. //
  5197. //
  5198. // // Example sending a request using the CreateSpotDatafeedSubscriptionRequest method.
  5199. // req, resp := client.CreateSpotDatafeedSubscriptionRequest(params)
  5200. //
  5201. // err := req.Send()
  5202. // if err == nil { // resp is now filled
  5203. // fmt.Println(resp)
  5204. // }
  5205. //
  5206. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscription
  5207. func (c *EC2) CreateSpotDatafeedSubscriptionRequest(input *CreateSpotDatafeedSubscriptionInput) (req *request.Request, output *CreateSpotDatafeedSubscriptionOutput) {
  5208. op := &request.Operation{
  5209. Name: opCreateSpotDatafeedSubscription,
  5210. HTTPMethod: "POST",
  5211. HTTPPath: "/",
  5212. }
  5213. if input == nil {
  5214. input = &CreateSpotDatafeedSubscriptionInput{}
  5215. }
  5216. output = &CreateSpotDatafeedSubscriptionOutput{}
  5217. req = c.newRequest(op, input, output)
  5218. return
  5219. }
  5220. // CreateSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud.
  5221. //
  5222. // Creates a data feed for Spot Instances, enabling you to view Spot Instance
  5223. // usage logs. You can create one data feed per AWS account. For more information,
  5224. // see Spot Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html)
  5225. // in the Amazon EC2 User Guide for Linux Instances.
  5226. //
  5227. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5228. // with awserr.Error's Code and Message methods to get detailed information about
  5229. // the error.
  5230. //
  5231. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5232. // API operation CreateSpotDatafeedSubscription for usage and error information.
  5233. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscription
  5234. func (c *EC2) CreateSpotDatafeedSubscription(input *CreateSpotDatafeedSubscriptionInput) (*CreateSpotDatafeedSubscriptionOutput, error) {
  5235. req, out := c.CreateSpotDatafeedSubscriptionRequest(input)
  5236. return out, req.Send()
  5237. }
  5238. // CreateSpotDatafeedSubscriptionWithContext is the same as CreateSpotDatafeedSubscription with the addition of
  5239. // the ability to pass a context and additional request options.
  5240. //
  5241. // See CreateSpotDatafeedSubscription for details on how to use this API operation.
  5242. //
  5243. // The context must be non-nil and will be used for request cancellation. If
  5244. // the context is nil a panic will occur. In the future the SDK may create
  5245. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5246. // for more information on using Contexts.
  5247. func (c *EC2) CreateSpotDatafeedSubscriptionWithContext(ctx aws.Context, input *CreateSpotDatafeedSubscriptionInput, opts ...request.Option) (*CreateSpotDatafeedSubscriptionOutput, error) {
  5248. req, out := c.CreateSpotDatafeedSubscriptionRequest(input)
  5249. req.SetContext(ctx)
  5250. req.ApplyOptions(opts...)
  5251. return out, req.Send()
  5252. }
  5253. const opCreateSubnet = "CreateSubnet"
  5254. // CreateSubnetRequest generates a "aws/request.Request" representing the
  5255. // client's request for the CreateSubnet operation. The "output" return
  5256. // value will be populated with the request's response once the request completes
  5257. // successfully.
  5258. //
  5259. // Use "Send" method on the returned Request to send the API call to the service.
  5260. // the "output" return value is not valid until after Send returns without error.
  5261. //
  5262. // See CreateSubnet for more information on using the CreateSubnet
  5263. // API call, and error handling.
  5264. //
  5265. // This method is useful when you want to inject custom logic or configuration
  5266. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5267. //
  5268. //
  5269. // // Example sending a request using the CreateSubnetRequest method.
  5270. // req, resp := client.CreateSubnetRequest(params)
  5271. //
  5272. // err := req.Send()
  5273. // if err == nil { // resp is now filled
  5274. // fmt.Println(resp)
  5275. // }
  5276. //
  5277. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnet
  5278. func (c *EC2) CreateSubnetRequest(input *CreateSubnetInput) (req *request.Request, output *CreateSubnetOutput) {
  5279. op := &request.Operation{
  5280. Name: opCreateSubnet,
  5281. HTTPMethod: "POST",
  5282. HTTPPath: "/",
  5283. }
  5284. if input == nil {
  5285. input = &CreateSubnetInput{}
  5286. }
  5287. output = &CreateSubnetOutput{}
  5288. req = c.newRequest(op, input, output)
  5289. return
  5290. }
  5291. // CreateSubnet API operation for Amazon Elastic Compute Cloud.
  5292. //
  5293. // Creates a subnet in an existing VPC.
  5294. //
  5295. // When you create each subnet, you provide the VPC ID and IPv4 CIDR block for
  5296. // the subnet. After you create a subnet, you can't change its CIDR block. The
  5297. // size of the subnet's IPv4 CIDR block can be the same as a VPC's IPv4 CIDR
  5298. // block, or a subset of a VPC's IPv4 CIDR block. If you create more than one
  5299. // subnet in a VPC, the subnets' CIDR blocks must not overlap. The smallest
  5300. // IPv4 subnet (and VPC) you can create uses a /28 netmask (16 IPv4 addresses),
  5301. // and the largest uses a /16 netmask (65,536 IPv4 addresses).
  5302. //
  5303. // If you've associated an IPv6 CIDR block with your VPC, you can create a subnet
  5304. // with an IPv6 CIDR block that uses a /64 prefix length.
  5305. //
  5306. // AWS reserves both the first four and the last IPv4 address in each subnet's
  5307. // CIDR block. They're not available for use.
  5308. //
  5309. // If you add more than one subnet to a VPC, they're set up in a star topology
  5310. // with a logical router in the middle.
  5311. //
  5312. // If you launch an instance in a VPC using an Amazon EBS-backed AMI, the IP
  5313. // address doesn't change if you stop and restart the instance (unlike a similar
  5314. // instance launched outside a VPC, which gets a new IP address when restarted).
  5315. // It's therefore possible to have a subnet with no running instances (they're
  5316. // all stopped), but no remaining IP addresses available.
  5317. //
  5318. // For more information about subnets, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  5319. // in the Amazon Virtual Private Cloud User Guide.
  5320. //
  5321. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5322. // with awserr.Error's Code and Message methods to get detailed information about
  5323. // the error.
  5324. //
  5325. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5326. // API operation CreateSubnet for usage and error information.
  5327. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnet
  5328. func (c *EC2) CreateSubnet(input *CreateSubnetInput) (*CreateSubnetOutput, error) {
  5329. req, out := c.CreateSubnetRequest(input)
  5330. return out, req.Send()
  5331. }
  5332. // CreateSubnetWithContext is the same as CreateSubnet with the addition of
  5333. // the ability to pass a context and additional request options.
  5334. //
  5335. // See CreateSubnet for details on how to use this API operation.
  5336. //
  5337. // The context must be non-nil and will be used for request cancellation. If
  5338. // the context is nil a panic will occur. In the future the SDK may create
  5339. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5340. // for more information on using Contexts.
  5341. func (c *EC2) CreateSubnetWithContext(ctx aws.Context, input *CreateSubnetInput, opts ...request.Option) (*CreateSubnetOutput, error) {
  5342. req, out := c.CreateSubnetRequest(input)
  5343. req.SetContext(ctx)
  5344. req.ApplyOptions(opts...)
  5345. return out, req.Send()
  5346. }
  5347. const opCreateTags = "CreateTags"
  5348. // CreateTagsRequest generates a "aws/request.Request" representing the
  5349. // client's request for the CreateTags operation. The "output" return
  5350. // value will be populated with the request's response once the request completes
  5351. // successfully.
  5352. //
  5353. // Use "Send" method on the returned Request to send the API call to the service.
  5354. // the "output" return value is not valid until after Send returns without error.
  5355. //
  5356. // See CreateTags for more information on using the CreateTags
  5357. // API call, and error handling.
  5358. //
  5359. // This method is useful when you want to inject custom logic or configuration
  5360. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5361. //
  5362. //
  5363. // // Example sending a request using the CreateTagsRequest method.
  5364. // req, resp := client.CreateTagsRequest(params)
  5365. //
  5366. // err := req.Send()
  5367. // if err == nil { // resp is now filled
  5368. // fmt.Println(resp)
  5369. // }
  5370. //
  5371. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTags
  5372. func (c *EC2) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) {
  5373. op := &request.Operation{
  5374. Name: opCreateTags,
  5375. HTTPMethod: "POST",
  5376. HTTPPath: "/",
  5377. }
  5378. if input == nil {
  5379. input = &CreateTagsInput{}
  5380. }
  5381. output = &CreateTagsOutput{}
  5382. req = c.newRequest(op, input, output)
  5383. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  5384. return
  5385. }
  5386. // CreateTags API operation for Amazon Elastic Compute Cloud.
  5387. //
  5388. // Adds or overwrites one or more tags for the specified Amazon EC2 resource
  5389. // or resources. Each resource can have a maximum of 50 tags. Each tag consists
  5390. // of a key and optional value. Tag keys must be unique per resource.
  5391. //
  5392. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  5393. // in the Amazon Elastic Compute Cloud User Guide. For more information about
  5394. // creating IAM policies that control users' access to resources based on tags,
  5395. // see Supported Resource-Level Permissions for Amazon EC2 API Actions (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-iam-actions-resources.html)
  5396. // in the Amazon Elastic Compute Cloud User Guide.
  5397. //
  5398. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5399. // with awserr.Error's Code and Message methods to get detailed information about
  5400. // the error.
  5401. //
  5402. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5403. // API operation CreateTags for usage and error information.
  5404. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTags
  5405. func (c *EC2) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) {
  5406. req, out := c.CreateTagsRequest(input)
  5407. return out, req.Send()
  5408. }
  5409. // CreateTagsWithContext is the same as CreateTags with the addition of
  5410. // the ability to pass a context and additional request options.
  5411. //
  5412. // See CreateTags for details on how to use this API operation.
  5413. //
  5414. // The context must be non-nil and will be used for request cancellation. If
  5415. // the context is nil a panic will occur. In the future the SDK may create
  5416. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5417. // for more information on using Contexts.
  5418. func (c *EC2) CreateTagsWithContext(ctx aws.Context, input *CreateTagsInput, opts ...request.Option) (*CreateTagsOutput, error) {
  5419. req, out := c.CreateTagsRequest(input)
  5420. req.SetContext(ctx)
  5421. req.ApplyOptions(opts...)
  5422. return out, req.Send()
  5423. }
  5424. const opCreateTransitGateway = "CreateTransitGateway"
  5425. // CreateTransitGatewayRequest generates a "aws/request.Request" representing the
  5426. // client's request for the CreateTransitGateway operation. The "output" return
  5427. // value will be populated with the request's response once the request completes
  5428. // successfully.
  5429. //
  5430. // Use "Send" method on the returned Request to send the API call to the service.
  5431. // the "output" return value is not valid until after Send returns without error.
  5432. //
  5433. // See CreateTransitGateway for more information on using the CreateTransitGateway
  5434. // API call, and error handling.
  5435. //
  5436. // This method is useful when you want to inject custom logic or configuration
  5437. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5438. //
  5439. //
  5440. // // Example sending a request using the CreateTransitGatewayRequest method.
  5441. // req, resp := client.CreateTransitGatewayRequest(params)
  5442. //
  5443. // err := req.Send()
  5444. // if err == nil { // resp is now filled
  5445. // fmt.Println(resp)
  5446. // }
  5447. //
  5448. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGateway
  5449. func (c *EC2) CreateTransitGatewayRequest(input *CreateTransitGatewayInput) (req *request.Request, output *CreateTransitGatewayOutput) {
  5450. op := &request.Operation{
  5451. Name: opCreateTransitGateway,
  5452. HTTPMethod: "POST",
  5453. HTTPPath: "/",
  5454. }
  5455. if input == nil {
  5456. input = &CreateTransitGatewayInput{}
  5457. }
  5458. output = &CreateTransitGatewayOutput{}
  5459. req = c.newRequest(op, input, output)
  5460. return
  5461. }
  5462. // CreateTransitGateway API operation for Amazon Elastic Compute Cloud.
  5463. //
  5464. // Creates a transit gateway.
  5465. //
  5466. // You can use a transit gateway to interconnect your virtual private clouds
  5467. // (VPC) and on-premises networks. After the transit gateway enters the available
  5468. // state, you can attach your VPCs and VPN connections to the transit gateway.
  5469. //
  5470. // To attach your VPCs, use CreateTransitGatewayVpcAttachment.
  5471. //
  5472. // To attach a VPN connection, use CreateCustomerGateway to create a customer
  5473. // gateway and specify the ID of the customer gateway and the ID of the transit
  5474. // gateway in a call to CreateVpnConnection.
  5475. //
  5476. // When you create a transit gateway, we create a default transit gateway route
  5477. // table and use it as the default association route table and the default propagation
  5478. // route table. You can use CreateTransitGatewayRouteTable to create additional
  5479. // transit gateway route tables. If you disable automatic route propagation,
  5480. // we do not create a default transit gateway route table. You can use EnableTransitGatewayRouteTablePropagation
  5481. // to propagate routes from a resource attachment to a transit gateway route
  5482. // table. If you disable automatic associations, you can use AssociateTransitGatewayRouteTable
  5483. // to associate a resource attachment with a transit gateway route table.
  5484. //
  5485. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5486. // with awserr.Error's Code and Message methods to get detailed information about
  5487. // the error.
  5488. //
  5489. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5490. // API operation CreateTransitGateway for usage and error information.
  5491. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGateway
  5492. func (c *EC2) CreateTransitGateway(input *CreateTransitGatewayInput) (*CreateTransitGatewayOutput, error) {
  5493. req, out := c.CreateTransitGatewayRequest(input)
  5494. return out, req.Send()
  5495. }
  5496. // CreateTransitGatewayWithContext is the same as CreateTransitGateway with the addition of
  5497. // the ability to pass a context and additional request options.
  5498. //
  5499. // See CreateTransitGateway for details on how to use this API operation.
  5500. //
  5501. // The context must be non-nil and will be used for request cancellation. If
  5502. // the context is nil a panic will occur. In the future the SDK may create
  5503. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5504. // for more information on using Contexts.
  5505. func (c *EC2) CreateTransitGatewayWithContext(ctx aws.Context, input *CreateTransitGatewayInput, opts ...request.Option) (*CreateTransitGatewayOutput, error) {
  5506. req, out := c.CreateTransitGatewayRequest(input)
  5507. req.SetContext(ctx)
  5508. req.ApplyOptions(opts...)
  5509. return out, req.Send()
  5510. }
  5511. const opCreateTransitGatewayRoute = "CreateTransitGatewayRoute"
  5512. // CreateTransitGatewayRouteRequest generates a "aws/request.Request" representing the
  5513. // client's request for the CreateTransitGatewayRoute operation. The "output" return
  5514. // value will be populated with the request's response once the request completes
  5515. // successfully.
  5516. //
  5517. // Use "Send" method on the returned Request to send the API call to the service.
  5518. // the "output" return value is not valid until after Send returns without error.
  5519. //
  5520. // See CreateTransitGatewayRoute for more information on using the CreateTransitGatewayRoute
  5521. // API call, and error handling.
  5522. //
  5523. // This method is useful when you want to inject custom logic or configuration
  5524. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5525. //
  5526. //
  5527. // // Example sending a request using the CreateTransitGatewayRouteRequest method.
  5528. // req, resp := client.CreateTransitGatewayRouteRequest(params)
  5529. //
  5530. // err := req.Send()
  5531. // if err == nil { // resp is now filled
  5532. // fmt.Println(resp)
  5533. // }
  5534. //
  5535. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayRoute
  5536. func (c *EC2) CreateTransitGatewayRouteRequest(input *CreateTransitGatewayRouteInput) (req *request.Request, output *CreateTransitGatewayRouteOutput) {
  5537. op := &request.Operation{
  5538. Name: opCreateTransitGatewayRoute,
  5539. HTTPMethod: "POST",
  5540. HTTPPath: "/",
  5541. }
  5542. if input == nil {
  5543. input = &CreateTransitGatewayRouteInput{}
  5544. }
  5545. output = &CreateTransitGatewayRouteOutput{}
  5546. req = c.newRequest(op, input, output)
  5547. return
  5548. }
  5549. // CreateTransitGatewayRoute API operation for Amazon Elastic Compute Cloud.
  5550. //
  5551. // Creates a static route for the specified transit gateway route table.
  5552. //
  5553. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5554. // with awserr.Error's Code and Message methods to get detailed information about
  5555. // the error.
  5556. //
  5557. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5558. // API operation CreateTransitGatewayRoute for usage and error information.
  5559. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayRoute
  5560. func (c *EC2) CreateTransitGatewayRoute(input *CreateTransitGatewayRouteInput) (*CreateTransitGatewayRouteOutput, error) {
  5561. req, out := c.CreateTransitGatewayRouteRequest(input)
  5562. return out, req.Send()
  5563. }
  5564. // CreateTransitGatewayRouteWithContext is the same as CreateTransitGatewayRoute with the addition of
  5565. // the ability to pass a context and additional request options.
  5566. //
  5567. // See CreateTransitGatewayRoute for details on how to use this API operation.
  5568. //
  5569. // The context must be non-nil and will be used for request cancellation. If
  5570. // the context is nil a panic will occur. In the future the SDK may create
  5571. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5572. // for more information on using Contexts.
  5573. func (c *EC2) CreateTransitGatewayRouteWithContext(ctx aws.Context, input *CreateTransitGatewayRouteInput, opts ...request.Option) (*CreateTransitGatewayRouteOutput, error) {
  5574. req, out := c.CreateTransitGatewayRouteRequest(input)
  5575. req.SetContext(ctx)
  5576. req.ApplyOptions(opts...)
  5577. return out, req.Send()
  5578. }
  5579. const opCreateTransitGatewayRouteTable = "CreateTransitGatewayRouteTable"
  5580. // CreateTransitGatewayRouteTableRequest generates a "aws/request.Request" representing the
  5581. // client's request for the CreateTransitGatewayRouteTable operation. The "output" return
  5582. // value will be populated with the request's response once the request completes
  5583. // successfully.
  5584. //
  5585. // Use "Send" method on the returned Request to send the API call to the service.
  5586. // the "output" return value is not valid until after Send returns without error.
  5587. //
  5588. // See CreateTransitGatewayRouteTable for more information on using the CreateTransitGatewayRouteTable
  5589. // API call, and error handling.
  5590. //
  5591. // This method is useful when you want to inject custom logic or configuration
  5592. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5593. //
  5594. //
  5595. // // Example sending a request using the CreateTransitGatewayRouteTableRequest method.
  5596. // req, resp := client.CreateTransitGatewayRouteTableRequest(params)
  5597. //
  5598. // err := req.Send()
  5599. // if err == nil { // resp is now filled
  5600. // fmt.Println(resp)
  5601. // }
  5602. //
  5603. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayRouteTable
  5604. func (c *EC2) CreateTransitGatewayRouteTableRequest(input *CreateTransitGatewayRouteTableInput) (req *request.Request, output *CreateTransitGatewayRouteTableOutput) {
  5605. op := &request.Operation{
  5606. Name: opCreateTransitGatewayRouteTable,
  5607. HTTPMethod: "POST",
  5608. HTTPPath: "/",
  5609. }
  5610. if input == nil {
  5611. input = &CreateTransitGatewayRouteTableInput{}
  5612. }
  5613. output = &CreateTransitGatewayRouteTableOutput{}
  5614. req = c.newRequest(op, input, output)
  5615. return
  5616. }
  5617. // CreateTransitGatewayRouteTable API operation for Amazon Elastic Compute Cloud.
  5618. //
  5619. // Creates a route table for the specified transit gateway.
  5620. //
  5621. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5622. // with awserr.Error's Code and Message methods to get detailed information about
  5623. // the error.
  5624. //
  5625. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5626. // API operation CreateTransitGatewayRouteTable for usage and error information.
  5627. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayRouteTable
  5628. func (c *EC2) CreateTransitGatewayRouteTable(input *CreateTransitGatewayRouteTableInput) (*CreateTransitGatewayRouteTableOutput, error) {
  5629. req, out := c.CreateTransitGatewayRouteTableRequest(input)
  5630. return out, req.Send()
  5631. }
  5632. // CreateTransitGatewayRouteTableWithContext is the same as CreateTransitGatewayRouteTable with the addition of
  5633. // the ability to pass a context and additional request options.
  5634. //
  5635. // See CreateTransitGatewayRouteTable for details on how to use this API operation.
  5636. //
  5637. // The context must be non-nil and will be used for request cancellation. If
  5638. // the context is nil a panic will occur. In the future the SDK may create
  5639. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5640. // for more information on using Contexts.
  5641. func (c *EC2) CreateTransitGatewayRouteTableWithContext(ctx aws.Context, input *CreateTransitGatewayRouteTableInput, opts ...request.Option) (*CreateTransitGatewayRouteTableOutput, error) {
  5642. req, out := c.CreateTransitGatewayRouteTableRequest(input)
  5643. req.SetContext(ctx)
  5644. req.ApplyOptions(opts...)
  5645. return out, req.Send()
  5646. }
  5647. const opCreateTransitGatewayVpcAttachment = "CreateTransitGatewayVpcAttachment"
  5648. // CreateTransitGatewayVpcAttachmentRequest generates a "aws/request.Request" representing the
  5649. // client's request for the CreateTransitGatewayVpcAttachment operation. The "output" return
  5650. // value will be populated with the request's response once the request completes
  5651. // successfully.
  5652. //
  5653. // Use "Send" method on the returned Request to send the API call to the service.
  5654. // the "output" return value is not valid until after Send returns without error.
  5655. //
  5656. // See CreateTransitGatewayVpcAttachment for more information on using the CreateTransitGatewayVpcAttachment
  5657. // API call, and error handling.
  5658. //
  5659. // This method is useful when you want to inject custom logic or configuration
  5660. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5661. //
  5662. //
  5663. // // Example sending a request using the CreateTransitGatewayVpcAttachmentRequest method.
  5664. // req, resp := client.CreateTransitGatewayVpcAttachmentRequest(params)
  5665. //
  5666. // err := req.Send()
  5667. // if err == nil { // resp is now filled
  5668. // fmt.Println(resp)
  5669. // }
  5670. //
  5671. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayVpcAttachment
  5672. func (c *EC2) CreateTransitGatewayVpcAttachmentRequest(input *CreateTransitGatewayVpcAttachmentInput) (req *request.Request, output *CreateTransitGatewayVpcAttachmentOutput) {
  5673. op := &request.Operation{
  5674. Name: opCreateTransitGatewayVpcAttachment,
  5675. HTTPMethod: "POST",
  5676. HTTPPath: "/",
  5677. }
  5678. if input == nil {
  5679. input = &CreateTransitGatewayVpcAttachmentInput{}
  5680. }
  5681. output = &CreateTransitGatewayVpcAttachmentOutput{}
  5682. req = c.newRequest(op, input, output)
  5683. return
  5684. }
  5685. // CreateTransitGatewayVpcAttachment API operation for Amazon Elastic Compute Cloud.
  5686. //
  5687. // Attaches the specified VPC to the specified transit gateway.
  5688. //
  5689. // If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC
  5690. // that is already attached, the new VPC CIDR range is not propagated to the
  5691. // default propagation route table.
  5692. //
  5693. // To send VPC traffic to an attached transit gateway, add a route to the VPC
  5694. // route table using CreateRoute.
  5695. //
  5696. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5697. // with awserr.Error's Code and Message methods to get detailed information about
  5698. // the error.
  5699. //
  5700. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5701. // API operation CreateTransitGatewayVpcAttachment for usage and error information.
  5702. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayVpcAttachment
  5703. func (c *EC2) CreateTransitGatewayVpcAttachment(input *CreateTransitGatewayVpcAttachmentInput) (*CreateTransitGatewayVpcAttachmentOutput, error) {
  5704. req, out := c.CreateTransitGatewayVpcAttachmentRequest(input)
  5705. return out, req.Send()
  5706. }
  5707. // CreateTransitGatewayVpcAttachmentWithContext is the same as CreateTransitGatewayVpcAttachment with the addition of
  5708. // the ability to pass a context and additional request options.
  5709. //
  5710. // See CreateTransitGatewayVpcAttachment for details on how to use this API operation.
  5711. //
  5712. // The context must be non-nil and will be used for request cancellation. If
  5713. // the context is nil a panic will occur. In the future the SDK may create
  5714. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5715. // for more information on using Contexts.
  5716. func (c *EC2) CreateTransitGatewayVpcAttachmentWithContext(ctx aws.Context, input *CreateTransitGatewayVpcAttachmentInput, opts ...request.Option) (*CreateTransitGatewayVpcAttachmentOutput, error) {
  5717. req, out := c.CreateTransitGatewayVpcAttachmentRequest(input)
  5718. req.SetContext(ctx)
  5719. req.ApplyOptions(opts...)
  5720. return out, req.Send()
  5721. }
  5722. const opCreateVolume = "CreateVolume"
  5723. // CreateVolumeRequest generates a "aws/request.Request" representing the
  5724. // client's request for the CreateVolume operation. The "output" return
  5725. // value will be populated with the request's response once the request completes
  5726. // successfully.
  5727. //
  5728. // Use "Send" method on the returned Request to send the API call to the service.
  5729. // the "output" return value is not valid until after Send returns without error.
  5730. //
  5731. // See CreateVolume for more information on using the CreateVolume
  5732. // API call, and error handling.
  5733. //
  5734. // This method is useful when you want to inject custom logic or configuration
  5735. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5736. //
  5737. //
  5738. // // Example sending a request using the CreateVolumeRequest method.
  5739. // req, resp := client.CreateVolumeRequest(params)
  5740. //
  5741. // err := req.Send()
  5742. // if err == nil { // resp is now filled
  5743. // fmt.Println(resp)
  5744. // }
  5745. //
  5746. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolume
  5747. func (c *EC2) CreateVolumeRequest(input *CreateVolumeInput) (req *request.Request, output *Volume) {
  5748. op := &request.Operation{
  5749. Name: opCreateVolume,
  5750. HTTPMethod: "POST",
  5751. HTTPPath: "/",
  5752. }
  5753. if input == nil {
  5754. input = &CreateVolumeInput{}
  5755. }
  5756. output = &Volume{}
  5757. req = c.newRequest(op, input, output)
  5758. return
  5759. }
  5760. // CreateVolume API operation for Amazon Elastic Compute Cloud.
  5761. //
  5762. // Creates an EBS volume that can be attached to an instance in the same Availability
  5763. // Zone. The volume is created in the regional endpoint that you send the HTTP
  5764. // request to. For more information see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  5765. //
  5766. // You can create a new empty volume or restore a volume from an EBS snapshot.
  5767. // Any AWS Marketplace product codes from the snapshot are propagated to the
  5768. // volume.
  5769. //
  5770. // You can create encrypted volumes with the Encrypted parameter. Encrypted
  5771. // volumes may only be attached to instances that support Amazon EBS encryption.
  5772. // Volumes that are created from encrypted snapshots are also automatically
  5773. // encrypted. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  5774. // in the Amazon Elastic Compute Cloud User Guide.
  5775. //
  5776. // You can tag your volumes during creation. For more information, see Tagging
  5777. // Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  5778. // in the Amazon Elastic Compute Cloud User Guide.
  5779. //
  5780. // For more information, see Creating an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html)
  5781. // in the Amazon Elastic Compute Cloud User Guide.
  5782. //
  5783. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5784. // with awserr.Error's Code and Message methods to get detailed information about
  5785. // the error.
  5786. //
  5787. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5788. // API operation CreateVolume for usage and error information.
  5789. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolume
  5790. func (c *EC2) CreateVolume(input *CreateVolumeInput) (*Volume, error) {
  5791. req, out := c.CreateVolumeRequest(input)
  5792. return out, req.Send()
  5793. }
  5794. // CreateVolumeWithContext is the same as CreateVolume with the addition of
  5795. // the ability to pass a context and additional request options.
  5796. //
  5797. // See CreateVolume for details on how to use this API operation.
  5798. //
  5799. // The context must be non-nil and will be used for request cancellation. If
  5800. // the context is nil a panic will occur. In the future the SDK may create
  5801. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5802. // for more information on using Contexts.
  5803. func (c *EC2) CreateVolumeWithContext(ctx aws.Context, input *CreateVolumeInput, opts ...request.Option) (*Volume, error) {
  5804. req, out := c.CreateVolumeRequest(input)
  5805. req.SetContext(ctx)
  5806. req.ApplyOptions(opts...)
  5807. return out, req.Send()
  5808. }
  5809. const opCreateVpc = "CreateVpc"
  5810. // CreateVpcRequest generates a "aws/request.Request" representing the
  5811. // client's request for the CreateVpc operation. The "output" return
  5812. // value will be populated with the request's response once the request completes
  5813. // successfully.
  5814. //
  5815. // Use "Send" method on the returned Request to send the API call to the service.
  5816. // the "output" return value is not valid until after Send returns without error.
  5817. //
  5818. // See CreateVpc for more information on using the CreateVpc
  5819. // API call, and error handling.
  5820. //
  5821. // This method is useful when you want to inject custom logic or configuration
  5822. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5823. //
  5824. //
  5825. // // Example sending a request using the CreateVpcRequest method.
  5826. // req, resp := client.CreateVpcRequest(params)
  5827. //
  5828. // err := req.Send()
  5829. // if err == nil { // resp is now filled
  5830. // fmt.Println(resp)
  5831. // }
  5832. //
  5833. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpc
  5834. func (c *EC2) CreateVpcRequest(input *CreateVpcInput) (req *request.Request, output *CreateVpcOutput) {
  5835. op := &request.Operation{
  5836. Name: opCreateVpc,
  5837. HTTPMethod: "POST",
  5838. HTTPPath: "/",
  5839. }
  5840. if input == nil {
  5841. input = &CreateVpcInput{}
  5842. }
  5843. output = &CreateVpcOutput{}
  5844. req = c.newRequest(op, input, output)
  5845. return
  5846. }
  5847. // CreateVpc API operation for Amazon Elastic Compute Cloud.
  5848. //
  5849. // Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can
  5850. // create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16
  5851. // netmask (65,536 IPv4 addresses). For more information about how large to
  5852. // make your VPC, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  5853. // in the Amazon Virtual Private Cloud User Guide.
  5854. //
  5855. // You can optionally request an Amazon-provided IPv6 CIDR block for the VPC.
  5856. // The IPv6 CIDR block uses a /56 prefix length, and is allocated from Amazon's
  5857. // pool of IPv6 addresses. You cannot choose the IPv6 range for your VPC.
  5858. //
  5859. // By default, each instance you launch in the VPC has the default DHCP options,
  5860. // which include only a default DNS server that we provide (AmazonProvidedDNS).
  5861. // For more information, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  5862. // in the Amazon Virtual Private Cloud User Guide.
  5863. //
  5864. // You can specify the instance tenancy value for the VPC when you create it.
  5865. // You can't change this value for the VPC after you create it. For more information,
  5866. // see Dedicated Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html)
  5867. // in the Amazon Elastic Compute Cloud User Guide.
  5868. //
  5869. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5870. // with awserr.Error's Code and Message methods to get detailed information about
  5871. // the error.
  5872. //
  5873. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5874. // API operation CreateVpc for usage and error information.
  5875. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpc
  5876. func (c *EC2) CreateVpc(input *CreateVpcInput) (*CreateVpcOutput, error) {
  5877. req, out := c.CreateVpcRequest(input)
  5878. return out, req.Send()
  5879. }
  5880. // CreateVpcWithContext is the same as CreateVpc with the addition of
  5881. // the ability to pass a context and additional request options.
  5882. //
  5883. // See CreateVpc for details on how to use this API operation.
  5884. //
  5885. // The context must be non-nil and will be used for request cancellation. If
  5886. // the context is nil a panic will occur. In the future the SDK may create
  5887. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5888. // for more information on using Contexts.
  5889. func (c *EC2) CreateVpcWithContext(ctx aws.Context, input *CreateVpcInput, opts ...request.Option) (*CreateVpcOutput, error) {
  5890. req, out := c.CreateVpcRequest(input)
  5891. req.SetContext(ctx)
  5892. req.ApplyOptions(opts...)
  5893. return out, req.Send()
  5894. }
  5895. const opCreateVpcEndpoint = "CreateVpcEndpoint"
  5896. // CreateVpcEndpointRequest generates a "aws/request.Request" representing the
  5897. // client's request for the CreateVpcEndpoint operation. The "output" return
  5898. // value will be populated with the request's response once the request completes
  5899. // successfully.
  5900. //
  5901. // Use "Send" method on the returned Request to send the API call to the service.
  5902. // the "output" return value is not valid until after Send returns without error.
  5903. //
  5904. // See CreateVpcEndpoint for more information on using the CreateVpcEndpoint
  5905. // API call, and error handling.
  5906. //
  5907. // This method is useful when you want to inject custom logic or configuration
  5908. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5909. //
  5910. //
  5911. // // Example sending a request using the CreateVpcEndpointRequest method.
  5912. // req, resp := client.CreateVpcEndpointRequest(params)
  5913. //
  5914. // err := req.Send()
  5915. // if err == nil { // resp is now filled
  5916. // fmt.Println(resp)
  5917. // }
  5918. //
  5919. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpoint
  5920. func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *request.Request, output *CreateVpcEndpointOutput) {
  5921. op := &request.Operation{
  5922. Name: opCreateVpcEndpoint,
  5923. HTTPMethod: "POST",
  5924. HTTPPath: "/",
  5925. }
  5926. if input == nil {
  5927. input = &CreateVpcEndpointInput{}
  5928. }
  5929. output = &CreateVpcEndpointOutput{}
  5930. req = c.newRequest(op, input, output)
  5931. return
  5932. }
  5933. // CreateVpcEndpoint API operation for Amazon Elastic Compute Cloud.
  5934. //
  5935. // Creates a VPC endpoint for a specified service. An endpoint enables you to
  5936. // create a private connection between your VPC and the service. The service
  5937. // may be provided by AWS, an AWS Marketplace partner, or another AWS account.
  5938. // For more information, see VPC Endpoints (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-endpoints.html)
  5939. // in the Amazon Virtual Private Cloud User Guide.
  5940. //
  5941. // A gateway endpoint serves as a target for a route in your route table for
  5942. // traffic destined for the AWS service. You can specify an endpoint policy
  5943. // to attach to the endpoint that will control access to the service from your
  5944. // VPC. You can also specify the VPC route tables that use the endpoint.
  5945. //
  5946. // An interface endpoint is a network interface in your subnet that serves as
  5947. // an endpoint for communicating with the specified service. You can specify
  5948. // the subnets in which to create an endpoint, and the security groups to associate
  5949. // with the endpoint network interface.
  5950. //
  5951. // Use DescribeVpcEndpointServices to get a list of supported services.
  5952. //
  5953. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5954. // with awserr.Error's Code and Message methods to get detailed information about
  5955. // the error.
  5956. //
  5957. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5958. // API operation CreateVpcEndpoint for usage and error information.
  5959. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpoint
  5960. func (c *EC2) CreateVpcEndpoint(input *CreateVpcEndpointInput) (*CreateVpcEndpointOutput, error) {
  5961. req, out := c.CreateVpcEndpointRequest(input)
  5962. return out, req.Send()
  5963. }
  5964. // CreateVpcEndpointWithContext is the same as CreateVpcEndpoint with the addition of
  5965. // the ability to pass a context and additional request options.
  5966. //
  5967. // See CreateVpcEndpoint for details on how to use this API operation.
  5968. //
  5969. // The context must be non-nil and will be used for request cancellation. If
  5970. // the context is nil a panic will occur. In the future the SDK may create
  5971. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5972. // for more information on using Contexts.
  5973. func (c *EC2) CreateVpcEndpointWithContext(ctx aws.Context, input *CreateVpcEndpointInput, opts ...request.Option) (*CreateVpcEndpointOutput, error) {
  5974. req, out := c.CreateVpcEndpointRequest(input)
  5975. req.SetContext(ctx)
  5976. req.ApplyOptions(opts...)
  5977. return out, req.Send()
  5978. }
  5979. const opCreateVpcEndpointConnectionNotification = "CreateVpcEndpointConnectionNotification"
  5980. // CreateVpcEndpointConnectionNotificationRequest generates a "aws/request.Request" representing the
  5981. // client's request for the CreateVpcEndpointConnectionNotification operation. The "output" return
  5982. // value will be populated with the request's response once the request completes
  5983. // successfully.
  5984. //
  5985. // Use "Send" method on the returned Request to send the API call to the service.
  5986. // the "output" return value is not valid until after Send returns without error.
  5987. //
  5988. // See CreateVpcEndpointConnectionNotification for more information on using the CreateVpcEndpointConnectionNotification
  5989. // API call, and error handling.
  5990. //
  5991. // This method is useful when you want to inject custom logic or configuration
  5992. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5993. //
  5994. //
  5995. // // Example sending a request using the CreateVpcEndpointConnectionNotificationRequest method.
  5996. // req, resp := client.CreateVpcEndpointConnectionNotificationRequest(params)
  5997. //
  5998. // err := req.Send()
  5999. // if err == nil { // resp is now filled
  6000. // fmt.Println(resp)
  6001. // }
  6002. //
  6003. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointConnectionNotification
  6004. func (c *EC2) CreateVpcEndpointConnectionNotificationRequest(input *CreateVpcEndpointConnectionNotificationInput) (req *request.Request, output *CreateVpcEndpointConnectionNotificationOutput) {
  6005. op := &request.Operation{
  6006. Name: opCreateVpcEndpointConnectionNotification,
  6007. HTTPMethod: "POST",
  6008. HTTPPath: "/",
  6009. }
  6010. if input == nil {
  6011. input = &CreateVpcEndpointConnectionNotificationInput{}
  6012. }
  6013. output = &CreateVpcEndpointConnectionNotificationOutput{}
  6014. req = c.newRequest(op, input, output)
  6015. return
  6016. }
  6017. // CreateVpcEndpointConnectionNotification API operation for Amazon Elastic Compute Cloud.
  6018. //
  6019. // Creates a connection notification for a specified VPC endpoint or VPC endpoint
  6020. // service. A connection notification notifies you of specific endpoint events.
  6021. // You must create an SNS topic to receive notifications. For more information,
  6022. // see Create a Topic (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html)
  6023. // in the Amazon Simple Notification Service Developer Guide.
  6024. //
  6025. // You can create a connection notification for interface endpoints only.
  6026. //
  6027. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6028. // with awserr.Error's Code and Message methods to get detailed information about
  6029. // the error.
  6030. //
  6031. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6032. // API operation CreateVpcEndpointConnectionNotification for usage and error information.
  6033. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointConnectionNotification
  6034. func (c *EC2) CreateVpcEndpointConnectionNotification(input *CreateVpcEndpointConnectionNotificationInput) (*CreateVpcEndpointConnectionNotificationOutput, error) {
  6035. req, out := c.CreateVpcEndpointConnectionNotificationRequest(input)
  6036. return out, req.Send()
  6037. }
  6038. // CreateVpcEndpointConnectionNotificationWithContext is the same as CreateVpcEndpointConnectionNotification with the addition of
  6039. // the ability to pass a context and additional request options.
  6040. //
  6041. // See CreateVpcEndpointConnectionNotification for details on how to use this API operation.
  6042. //
  6043. // The context must be non-nil and will be used for request cancellation. If
  6044. // the context is nil a panic will occur. In the future the SDK may create
  6045. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6046. // for more information on using Contexts.
  6047. func (c *EC2) CreateVpcEndpointConnectionNotificationWithContext(ctx aws.Context, input *CreateVpcEndpointConnectionNotificationInput, opts ...request.Option) (*CreateVpcEndpointConnectionNotificationOutput, error) {
  6048. req, out := c.CreateVpcEndpointConnectionNotificationRequest(input)
  6049. req.SetContext(ctx)
  6050. req.ApplyOptions(opts...)
  6051. return out, req.Send()
  6052. }
  6053. const opCreateVpcEndpointServiceConfiguration = "CreateVpcEndpointServiceConfiguration"
  6054. // CreateVpcEndpointServiceConfigurationRequest generates a "aws/request.Request" representing the
  6055. // client's request for the CreateVpcEndpointServiceConfiguration operation. The "output" return
  6056. // value will be populated with the request's response once the request completes
  6057. // successfully.
  6058. //
  6059. // Use "Send" method on the returned Request to send the API call to the service.
  6060. // the "output" return value is not valid until after Send returns without error.
  6061. //
  6062. // See CreateVpcEndpointServiceConfiguration for more information on using the CreateVpcEndpointServiceConfiguration
  6063. // API call, and error handling.
  6064. //
  6065. // This method is useful when you want to inject custom logic or configuration
  6066. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6067. //
  6068. //
  6069. // // Example sending a request using the CreateVpcEndpointServiceConfigurationRequest method.
  6070. // req, resp := client.CreateVpcEndpointServiceConfigurationRequest(params)
  6071. //
  6072. // err := req.Send()
  6073. // if err == nil { // resp is now filled
  6074. // fmt.Println(resp)
  6075. // }
  6076. //
  6077. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointServiceConfiguration
  6078. func (c *EC2) CreateVpcEndpointServiceConfigurationRequest(input *CreateVpcEndpointServiceConfigurationInput) (req *request.Request, output *CreateVpcEndpointServiceConfigurationOutput) {
  6079. op := &request.Operation{
  6080. Name: opCreateVpcEndpointServiceConfiguration,
  6081. HTTPMethod: "POST",
  6082. HTTPPath: "/",
  6083. }
  6084. if input == nil {
  6085. input = &CreateVpcEndpointServiceConfigurationInput{}
  6086. }
  6087. output = &CreateVpcEndpointServiceConfigurationOutput{}
  6088. req = c.newRequest(op, input, output)
  6089. return
  6090. }
  6091. // CreateVpcEndpointServiceConfiguration API operation for Amazon Elastic Compute Cloud.
  6092. //
  6093. // Creates a VPC endpoint service configuration to which service consumers (AWS
  6094. // accounts, IAM users, and IAM roles) can connect. Service consumers can create
  6095. // an interface VPC endpoint to connect to your service.
  6096. //
  6097. // To create an endpoint service configuration, you must first create a Network
  6098. // Load Balancer for your service. For more information, see VPC Endpoint Services
  6099. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/endpoint-service.html)
  6100. // in the Amazon Virtual Private Cloud User Guide.
  6101. //
  6102. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6103. // with awserr.Error's Code and Message methods to get detailed information about
  6104. // the error.
  6105. //
  6106. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6107. // API operation CreateVpcEndpointServiceConfiguration for usage and error information.
  6108. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointServiceConfiguration
  6109. func (c *EC2) CreateVpcEndpointServiceConfiguration(input *CreateVpcEndpointServiceConfigurationInput) (*CreateVpcEndpointServiceConfigurationOutput, error) {
  6110. req, out := c.CreateVpcEndpointServiceConfigurationRequest(input)
  6111. return out, req.Send()
  6112. }
  6113. // CreateVpcEndpointServiceConfigurationWithContext is the same as CreateVpcEndpointServiceConfiguration with the addition of
  6114. // the ability to pass a context and additional request options.
  6115. //
  6116. // See CreateVpcEndpointServiceConfiguration for details on how to use this API operation.
  6117. //
  6118. // The context must be non-nil and will be used for request cancellation. If
  6119. // the context is nil a panic will occur. In the future the SDK may create
  6120. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6121. // for more information on using Contexts.
  6122. func (c *EC2) CreateVpcEndpointServiceConfigurationWithContext(ctx aws.Context, input *CreateVpcEndpointServiceConfigurationInput, opts ...request.Option) (*CreateVpcEndpointServiceConfigurationOutput, error) {
  6123. req, out := c.CreateVpcEndpointServiceConfigurationRequest(input)
  6124. req.SetContext(ctx)
  6125. req.ApplyOptions(opts...)
  6126. return out, req.Send()
  6127. }
  6128. const opCreateVpcPeeringConnection = "CreateVpcPeeringConnection"
  6129. // CreateVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  6130. // client's request for the CreateVpcPeeringConnection operation. The "output" return
  6131. // value will be populated with the request's response once the request completes
  6132. // successfully.
  6133. //
  6134. // Use "Send" method on the returned Request to send the API call to the service.
  6135. // the "output" return value is not valid until after Send returns without error.
  6136. //
  6137. // See CreateVpcPeeringConnection for more information on using the CreateVpcPeeringConnection
  6138. // API call, and error handling.
  6139. //
  6140. // This method is useful when you want to inject custom logic or configuration
  6141. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6142. //
  6143. //
  6144. // // Example sending a request using the CreateVpcPeeringConnectionRequest method.
  6145. // req, resp := client.CreateVpcPeeringConnectionRequest(params)
  6146. //
  6147. // err := req.Send()
  6148. // if err == nil { // resp is now filled
  6149. // fmt.Println(resp)
  6150. // }
  6151. //
  6152. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnection
  6153. func (c *EC2) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConnectionInput) (req *request.Request, output *CreateVpcPeeringConnectionOutput) {
  6154. op := &request.Operation{
  6155. Name: opCreateVpcPeeringConnection,
  6156. HTTPMethod: "POST",
  6157. HTTPPath: "/",
  6158. }
  6159. if input == nil {
  6160. input = &CreateVpcPeeringConnectionInput{}
  6161. }
  6162. output = &CreateVpcPeeringConnectionOutput{}
  6163. req = c.newRequest(op, input, output)
  6164. return
  6165. }
  6166. // CreateVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  6167. //
  6168. // Requests a VPC peering connection between two VPCs: a requester VPC that
  6169. // you own and an accepter VPC with which to create the connection. The accepter
  6170. // VPC can belong to another AWS account and can be in a different Region to
  6171. // the requester VPC. The requester VPC and accepter VPC cannot have overlapping
  6172. // CIDR blocks.
  6173. //
  6174. // Limitations and rules apply to a VPC peering connection. For more information,
  6175. // see the limitations (http://docs.aws.amazon.com/AmazonVPC/latest/PeeringGuide/vpc-peering-basics.html#vpc-peering-limitations)
  6176. // section in the VPC Peering Guide.
  6177. //
  6178. // The owner of the accepter VPC must accept the peering request to activate
  6179. // the peering connection. The VPC peering connection request expires after
  6180. // 7 days, after which it cannot be accepted or rejected.
  6181. //
  6182. // If you create a VPC peering connection request between VPCs with overlapping
  6183. // CIDR blocks, the VPC peering connection has a status of failed.
  6184. //
  6185. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6186. // with awserr.Error's Code and Message methods to get detailed information about
  6187. // the error.
  6188. //
  6189. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6190. // API operation CreateVpcPeeringConnection for usage and error information.
  6191. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnection
  6192. func (c *EC2) CreateVpcPeeringConnection(input *CreateVpcPeeringConnectionInput) (*CreateVpcPeeringConnectionOutput, error) {
  6193. req, out := c.CreateVpcPeeringConnectionRequest(input)
  6194. return out, req.Send()
  6195. }
  6196. // CreateVpcPeeringConnectionWithContext is the same as CreateVpcPeeringConnection with the addition of
  6197. // the ability to pass a context and additional request options.
  6198. //
  6199. // See CreateVpcPeeringConnection for details on how to use this API operation.
  6200. //
  6201. // The context must be non-nil and will be used for request cancellation. If
  6202. // the context is nil a panic will occur. In the future the SDK may create
  6203. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6204. // for more information on using Contexts.
  6205. func (c *EC2) CreateVpcPeeringConnectionWithContext(ctx aws.Context, input *CreateVpcPeeringConnectionInput, opts ...request.Option) (*CreateVpcPeeringConnectionOutput, error) {
  6206. req, out := c.CreateVpcPeeringConnectionRequest(input)
  6207. req.SetContext(ctx)
  6208. req.ApplyOptions(opts...)
  6209. return out, req.Send()
  6210. }
  6211. const opCreateVpnConnection = "CreateVpnConnection"
  6212. // CreateVpnConnectionRequest generates a "aws/request.Request" representing the
  6213. // client's request for the CreateVpnConnection operation. The "output" return
  6214. // value will be populated with the request's response once the request completes
  6215. // successfully.
  6216. //
  6217. // Use "Send" method on the returned Request to send the API call to the service.
  6218. // the "output" return value is not valid until after Send returns without error.
  6219. //
  6220. // See CreateVpnConnection for more information on using the CreateVpnConnection
  6221. // API call, and error handling.
  6222. //
  6223. // This method is useful when you want to inject custom logic or configuration
  6224. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6225. //
  6226. //
  6227. // // Example sending a request using the CreateVpnConnectionRequest method.
  6228. // req, resp := client.CreateVpnConnectionRequest(params)
  6229. //
  6230. // err := req.Send()
  6231. // if err == nil { // resp is now filled
  6232. // fmt.Println(resp)
  6233. // }
  6234. //
  6235. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnection
  6236. func (c *EC2) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) (req *request.Request, output *CreateVpnConnectionOutput) {
  6237. op := &request.Operation{
  6238. Name: opCreateVpnConnection,
  6239. HTTPMethod: "POST",
  6240. HTTPPath: "/",
  6241. }
  6242. if input == nil {
  6243. input = &CreateVpnConnectionInput{}
  6244. }
  6245. output = &CreateVpnConnectionOutput{}
  6246. req = c.newRequest(op, input, output)
  6247. return
  6248. }
  6249. // CreateVpnConnection API operation for Amazon Elastic Compute Cloud.
  6250. //
  6251. // Creates a VPN connection between an existing virtual private gateway and
  6252. // a VPN customer gateway. The only supported connection type is ipsec.1.
  6253. //
  6254. // The response includes information that you need to give to your network administrator
  6255. // to configure your customer gateway.
  6256. //
  6257. // We strongly recommend that you use HTTPS when calling this operation because
  6258. // the response contains sensitive cryptographic information for configuring
  6259. // your customer gateway.
  6260. //
  6261. // If you decide to shut down your VPN connection for any reason and later create
  6262. // a new VPN connection, you must reconfigure your customer gateway with the
  6263. // new information returned from this call.
  6264. //
  6265. // This is an idempotent operation. If you perform the operation more than once,
  6266. // Amazon EC2 doesn't return an error.
  6267. //
  6268. // For more information, see AWS Managed VPN Connections (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  6269. // in the Amazon Virtual Private Cloud User Guide.
  6270. //
  6271. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6272. // with awserr.Error's Code and Message methods to get detailed information about
  6273. // the error.
  6274. //
  6275. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6276. // API operation CreateVpnConnection for usage and error information.
  6277. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnection
  6278. func (c *EC2) CreateVpnConnection(input *CreateVpnConnectionInput) (*CreateVpnConnectionOutput, error) {
  6279. req, out := c.CreateVpnConnectionRequest(input)
  6280. return out, req.Send()
  6281. }
  6282. // CreateVpnConnectionWithContext is the same as CreateVpnConnection with the addition of
  6283. // the ability to pass a context and additional request options.
  6284. //
  6285. // See CreateVpnConnection for details on how to use this API operation.
  6286. //
  6287. // The context must be non-nil and will be used for request cancellation. If
  6288. // the context is nil a panic will occur. In the future the SDK may create
  6289. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6290. // for more information on using Contexts.
  6291. func (c *EC2) CreateVpnConnectionWithContext(ctx aws.Context, input *CreateVpnConnectionInput, opts ...request.Option) (*CreateVpnConnectionOutput, error) {
  6292. req, out := c.CreateVpnConnectionRequest(input)
  6293. req.SetContext(ctx)
  6294. req.ApplyOptions(opts...)
  6295. return out, req.Send()
  6296. }
  6297. const opCreateVpnConnectionRoute = "CreateVpnConnectionRoute"
  6298. // CreateVpnConnectionRouteRequest generates a "aws/request.Request" representing the
  6299. // client's request for the CreateVpnConnectionRoute operation. The "output" return
  6300. // value will be populated with the request's response once the request completes
  6301. // successfully.
  6302. //
  6303. // Use "Send" method on the returned Request to send the API call to the service.
  6304. // the "output" return value is not valid until after Send returns without error.
  6305. //
  6306. // See CreateVpnConnectionRoute for more information on using the CreateVpnConnectionRoute
  6307. // API call, and error handling.
  6308. //
  6309. // This method is useful when you want to inject custom logic or configuration
  6310. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6311. //
  6312. //
  6313. // // Example sending a request using the CreateVpnConnectionRouteRequest method.
  6314. // req, resp := client.CreateVpnConnectionRouteRequest(params)
  6315. //
  6316. // err := req.Send()
  6317. // if err == nil { // resp is now filled
  6318. // fmt.Println(resp)
  6319. // }
  6320. //
  6321. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRoute
  6322. func (c *EC2) CreateVpnConnectionRouteRequest(input *CreateVpnConnectionRouteInput) (req *request.Request, output *CreateVpnConnectionRouteOutput) {
  6323. op := &request.Operation{
  6324. Name: opCreateVpnConnectionRoute,
  6325. HTTPMethod: "POST",
  6326. HTTPPath: "/",
  6327. }
  6328. if input == nil {
  6329. input = &CreateVpnConnectionRouteInput{}
  6330. }
  6331. output = &CreateVpnConnectionRouteOutput{}
  6332. req = c.newRequest(op, input, output)
  6333. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  6334. return
  6335. }
  6336. // CreateVpnConnectionRoute API operation for Amazon Elastic Compute Cloud.
  6337. //
  6338. // Creates a static route associated with a VPN connection between an existing
  6339. // virtual private gateway and a VPN customer gateway. The static route allows
  6340. // traffic to be routed from the virtual private gateway to the VPN customer
  6341. // gateway.
  6342. //
  6343. // For more information about VPN connections, see AWS Managed VPN Connections
  6344. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) in the
  6345. // Amazon Virtual Private Cloud User Guide.
  6346. //
  6347. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6348. // with awserr.Error's Code and Message methods to get detailed information about
  6349. // the error.
  6350. //
  6351. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6352. // API operation CreateVpnConnectionRoute for usage and error information.
  6353. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRoute
  6354. func (c *EC2) CreateVpnConnectionRoute(input *CreateVpnConnectionRouteInput) (*CreateVpnConnectionRouteOutput, error) {
  6355. req, out := c.CreateVpnConnectionRouteRequest(input)
  6356. return out, req.Send()
  6357. }
  6358. // CreateVpnConnectionRouteWithContext is the same as CreateVpnConnectionRoute with the addition of
  6359. // the ability to pass a context and additional request options.
  6360. //
  6361. // See CreateVpnConnectionRoute for details on how to use this API operation.
  6362. //
  6363. // The context must be non-nil and will be used for request cancellation. If
  6364. // the context is nil a panic will occur. In the future the SDK may create
  6365. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6366. // for more information on using Contexts.
  6367. func (c *EC2) CreateVpnConnectionRouteWithContext(ctx aws.Context, input *CreateVpnConnectionRouteInput, opts ...request.Option) (*CreateVpnConnectionRouteOutput, error) {
  6368. req, out := c.CreateVpnConnectionRouteRequest(input)
  6369. req.SetContext(ctx)
  6370. req.ApplyOptions(opts...)
  6371. return out, req.Send()
  6372. }
  6373. const opCreateVpnGateway = "CreateVpnGateway"
  6374. // CreateVpnGatewayRequest generates a "aws/request.Request" representing the
  6375. // client's request for the CreateVpnGateway operation. The "output" return
  6376. // value will be populated with the request's response once the request completes
  6377. // successfully.
  6378. //
  6379. // Use "Send" method on the returned Request to send the API call to the service.
  6380. // the "output" return value is not valid until after Send returns without error.
  6381. //
  6382. // See CreateVpnGateway for more information on using the CreateVpnGateway
  6383. // API call, and error handling.
  6384. //
  6385. // This method is useful when you want to inject custom logic or configuration
  6386. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6387. //
  6388. //
  6389. // // Example sending a request using the CreateVpnGatewayRequest method.
  6390. // req, resp := client.CreateVpnGatewayRequest(params)
  6391. //
  6392. // err := req.Send()
  6393. // if err == nil { // resp is now filled
  6394. // fmt.Println(resp)
  6395. // }
  6396. //
  6397. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGateway
  6398. func (c *EC2) CreateVpnGatewayRequest(input *CreateVpnGatewayInput) (req *request.Request, output *CreateVpnGatewayOutput) {
  6399. op := &request.Operation{
  6400. Name: opCreateVpnGateway,
  6401. HTTPMethod: "POST",
  6402. HTTPPath: "/",
  6403. }
  6404. if input == nil {
  6405. input = &CreateVpnGatewayInput{}
  6406. }
  6407. output = &CreateVpnGatewayOutput{}
  6408. req = c.newRequest(op, input, output)
  6409. return
  6410. }
  6411. // CreateVpnGateway API operation for Amazon Elastic Compute Cloud.
  6412. //
  6413. // Creates a virtual private gateway. A virtual private gateway is the endpoint
  6414. // on the VPC side of your VPN connection. You can create a virtual private
  6415. // gateway before creating the VPC itself.
  6416. //
  6417. // For more information about virtual private gateways, see AWS Managed VPN
  6418. // Connections (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  6419. // in the Amazon Virtual Private Cloud User Guide.
  6420. //
  6421. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6422. // with awserr.Error's Code and Message methods to get detailed information about
  6423. // the error.
  6424. //
  6425. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6426. // API operation CreateVpnGateway for usage and error information.
  6427. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGateway
  6428. func (c *EC2) CreateVpnGateway(input *CreateVpnGatewayInput) (*CreateVpnGatewayOutput, error) {
  6429. req, out := c.CreateVpnGatewayRequest(input)
  6430. return out, req.Send()
  6431. }
  6432. // CreateVpnGatewayWithContext is the same as CreateVpnGateway with the addition of
  6433. // the ability to pass a context and additional request options.
  6434. //
  6435. // See CreateVpnGateway for details on how to use this API operation.
  6436. //
  6437. // The context must be non-nil and will be used for request cancellation. If
  6438. // the context is nil a panic will occur. In the future the SDK may create
  6439. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6440. // for more information on using Contexts.
  6441. func (c *EC2) CreateVpnGatewayWithContext(ctx aws.Context, input *CreateVpnGatewayInput, opts ...request.Option) (*CreateVpnGatewayOutput, error) {
  6442. req, out := c.CreateVpnGatewayRequest(input)
  6443. req.SetContext(ctx)
  6444. req.ApplyOptions(opts...)
  6445. return out, req.Send()
  6446. }
  6447. const opDeleteClientVpnEndpoint = "DeleteClientVpnEndpoint"
  6448. // DeleteClientVpnEndpointRequest generates a "aws/request.Request" representing the
  6449. // client's request for the DeleteClientVpnEndpoint operation. The "output" return
  6450. // value will be populated with the request's response once the request completes
  6451. // successfully.
  6452. //
  6453. // Use "Send" method on the returned Request to send the API call to the service.
  6454. // the "output" return value is not valid until after Send returns without error.
  6455. //
  6456. // See DeleteClientVpnEndpoint for more information on using the DeleteClientVpnEndpoint
  6457. // API call, and error handling.
  6458. //
  6459. // This method is useful when you want to inject custom logic or configuration
  6460. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6461. //
  6462. //
  6463. // // Example sending a request using the DeleteClientVpnEndpointRequest method.
  6464. // req, resp := client.DeleteClientVpnEndpointRequest(params)
  6465. //
  6466. // err := req.Send()
  6467. // if err == nil { // resp is now filled
  6468. // fmt.Println(resp)
  6469. // }
  6470. //
  6471. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteClientVpnEndpoint
  6472. func (c *EC2) DeleteClientVpnEndpointRequest(input *DeleteClientVpnEndpointInput) (req *request.Request, output *DeleteClientVpnEndpointOutput) {
  6473. op := &request.Operation{
  6474. Name: opDeleteClientVpnEndpoint,
  6475. HTTPMethod: "POST",
  6476. HTTPPath: "/",
  6477. }
  6478. if input == nil {
  6479. input = &DeleteClientVpnEndpointInput{}
  6480. }
  6481. output = &DeleteClientVpnEndpointOutput{}
  6482. req = c.newRequest(op, input, output)
  6483. return
  6484. }
  6485. // DeleteClientVpnEndpoint API operation for Amazon Elastic Compute Cloud.
  6486. //
  6487. // Deletes the specified Client VPN endpoint. You must disassociate all target
  6488. // networks before you can delete a Client VPN endpoint.
  6489. //
  6490. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6491. // with awserr.Error's Code and Message methods to get detailed information about
  6492. // the error.
  6493. //
  6494. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6495. // API operation DeleteClientVpnEndpoint for usage and error information.
  6496. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteClientVpnEndpoint
  6497. func (c *EC2) DeleteClientVpnEndpoint(input *DeleteClientVpnEndpointInput) (*DeleteClientVpnEndpointOutput, error) {
  6498. req, out := c.DeleteClientVpnEndpointRequest(input)
  6499. return out, req.Send()
  6500. }
  6501. // DeleteClientVpnEndpointWithContext is the same as DeleteClientVpnEndpoint with the addition of
  6502. // the ability to pass a context and additional request options.
  6503. //
  6504. // See DeleteClientVpnEndpoint for details on how to use this API operation.
  6505. //
  6506. // The context must be non-nil and will be used for request cancellation. If
  6507. // the context is nil a panic will occur. In the future the SDK may create
  6508. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6509. // for more information on using Contexts.
  6510. func (c *EC2) DeleteClientVpnEndpointWithContext(ctx aws.Context, input *DeleteClientVpnEndpointInput, opts ...request.Option) (*DeleteClientVpnEndpointOutput, error) {
  6511. req, out := c.DeleteClientVpnEndpointRequest(input)
  6512. req.SetContext(ctx)
  6513. req.ApplyOptions(opts...)
  6514. return out, req.Send()
  6515. }
  6516. const opDeleteClientVpnRoute = "DeleteClientVpnRoute"
  6517. // DeleteClientVpnRouteRequest generates a "aws/request.Request" representing the
  6518. // client's request for the DeleteClientVpnRoute operation. The "output" return
  6519. // value will be populated with the request's response once the request completes
  6520. // successfully.
  6521. //
  6522. // Use "Send" method on the returned Request to send the API call to the service.
  6523. // the "output" return value is not valid until after Send returns without error.
  6524. //
  6525. // See DeleteClientVpnRoute for more information on using the DeleteClientVpnRoute
  6526. // API call, and error handling.
  6527. //
  6528. // This method is useful when you want to inject custom logic or configuration
  6529. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6530. //
  6531. //
  6532. // // Example sending a request using the DeleteClientVpnRouteRequest method.
  6533. // req, resp := client.DeleteClientVpnRouteRequest(params)
  6534. //
  6535. // err := req.Send()
  6536. // if err == nil { // resp is now filled
  6537. // fmt.Println(resp)
  6538. // }
  6539. //
  6540. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteClientVpnRoute
  6541. func (c *EC2) DeleteClientVpnRouteRequest(input *DeleteClientVpnRouteInput) (req *request.Request, output *DeleteClientVpnRouteOutput) {
  6542. op := &request.Operation{
  6543. Name: opDeleteClientVpnRoute,
  6544. HTTPMethod: "POST",
  6545. HTTPPath: "/",
  6546. }
  6547. if input == nil {
  6548. input = &DeleteClientVpnRouteInput{}
  6549. }
  6550. output = &DeleteClientVpnRouteOutput{}
  6551. req = c.newRequest(op, input, output)
  6552. return
  6553. }
  6554. // DeleteClientVpnRoute API operation for Amazon Elastic Compute Cloud.
  6555. //
  6556. // Deletes a route from a Client VPN endpoint. You can only delete routes that
  6557. // you manually added using the CreateClientVpnRoute action. You cannot delete
  6558. // routes that were automatically added when associating a subnet. To remove
  6559. // routes that have been automatically added, disassociate the target subnet
  6560. // from the Client VPN endpoint.
  6561. //
  6562. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6563. // with awserr.Error's Code and Message methods to get detailed information about
  6564. // the error.
  6565. //
  6566. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6567. // API operation DeleteClientVpnRoute for usage and error information.
  6568. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteClientVpnRoute
  6569. func (c *EC2) DeleteClientVpnRoute(input *DeleteClientVpnRouteInput) (*DeleteClientVpnRouteOutput, error) {
  6570. req, out := c.DeleteClientVpnRouteRequest(input)
  6571. return out, req.Send()
  6572. }
  6573. // DeleteClientVpnRouteWithContext is the same as DeleteClientVpnRoute with the addition of
  6574. // the ability to pass a context and additional request options.
  6575. //
  6576. // See DeleteClientVpnRoute for details on how to use this API operation.
  6577. //
  6578. // The context must be non-nil and will be used for request cancellation. If
  6579. // the context is nil a panic will occur. In the future the SDK may create
  6580. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6581. // for more information on using Contexts.
  6582. func (c *EC2) DeleteClientVpnRouteWithContext(ctx aws.Context, input *DeleteClientVpnRouteInput, opts ...request.Option) (*DeleteClientVpnRouteOutput, error) {
  6583. req, out := c.DeleteClientVpnRouteRequest(input)
  6584. req.SetContext(ctx)
  6585. req.ApplyOptions(opts...)
  6586. return out, req.Send()
  6587. }
  6588. const opDeleteCustomerGateway = "DeleteCustomerGateway"
  6589. // DeleteCustomerGatewayRequest generates a "aws/request.Request" representing the
  6590. // client's request for the DeleteCustomerGateway operation. The "output" return
  6591. // value will be populated with the request's response once the request completes
  6592. // successfully.
  6593. //
  6594. // Use "Send" method on the returned Request to send the API call to the service.
  6595. // the "output" return value is not valid until after Send returns without error.
  6596. //
  6597. // See DeleteCustomerGateway for more information on using the DeleteCustomerGateway
  6598. // API call, and error handling.
  6599. //
  6600. // This method is useful when you want to inject custom logic or configuration
  6601. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6602. //
  6603. //
  6604. // // Example sending a request using the DeleteCustomerGatewayRequest method.
  6605. // req, resp := client.DeleteCustomerGatewayRequest(params)
  6606. //
  6607. // err := req.Send()
  6608. // if err == nil { // resp is now filled
  6609. // fmt.Println(resp)
  6610. // }
  6611. //
  6612. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGateway
  6613. func (c *EC2) DeleteCustomerGatewayRequest(input *DeleteCustomerGatewayInput) (req *request.Request, output *DeleteCustomerGatewayOutput) {
  6614. op := &request.Operation{
  6615. Name: opDeleteCustomerGateway,
  6616. HTTPMethod: "POST",
  6617. HTTPPath: "/",
  6618. }
  6619. if input == nil {
  6620. input = &DeleteCustomerGatewayInput{}
  6621. }
  6622. output = &DeleteCustomerGatewayOutput{}
  6623. req = c.newRequest(op, input, output)
  6624. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  6625. return
  6626. }
  6627. // DeleteCustomerGateway API operation for Amazon Elastic Compute Cloud.
  6628. //
  6629. // Deletes the specified customer gateway. You must delete the VPN connection
  6630. // before you can delete the customer gateway.
  6631. //
  6632. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6633. // with awserr.Error's Code and Message methods to get detailed information about
  6634. // the error.
  6635. //
  6636. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6637. // API operation DeleteCustomerGateway for usage and error information.
  6638. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGateway
  6639. func (c *EC2) DeleteCustomerGateway(input *DeleteCustomerGatewayInput) (*DeleteCustomerGatewayOutput, error) {
  6640. req, out := c.DeleteCustomerGatewayRequest(input)
  6641. return out, req.Send()
  6642. }
  6643. // DeleteCustomerGatewayWithContext is the same as DeleteCustomerGateway with the addition of
  6644. // the ability to pass a context and additional request options.
  6645. //
  6646. // See DeleteCustomerGateway for details on how to use this API operation.
  6647. //
  6648. // The context must be non-nil and will be used for request cancellation. If
  6649. // the context is nil a panic will occur. In the future the SDK may create
  6650. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6651. // for more information on using Contexts.
  6652. func (c *EC2) DeleteCustomerGatewayWithContext(ctx aws.Context, input *DeleteCustomerGatewayInput, opts ...request.Option) (*DeleteCustomerGatewayOutput, error) {
  6653. req, out := c.DeleteCustomerGatewayRequest(input)
  6654. req.SetContext(ctx)
  6655. req.ApplyOptions(opts...)
  6656. return out, req.Send()
  6657. }
  6658. const opDeleteDhcpOptions = "DeleteDhcpOptions"
  6659. // DeleteDhcpOptionsRequest generates a "aws/request.Request" representing the
  6660. // client's request for the DeleteDhcpOptions operation. The "output" return
  6661. // value will be populated with the request's response once the request completes
  6662. // successfully.
  6663. //
  6664. // Use "Send" method on the returned Request to send the API call to the service.
  6665. // the "output" return value is not valid until after Send returns without error.
  6666. //
  6667. // See DeleteDhcpOptions for more information on using the DeleteDhcpOptions
  6668. // API call, and error handling.
  6669. //
  6670. // This method is useful when you want to inject custom logic or configuration
  6671. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6672. //
  6673. //
  6674. // // Example sending a request using the DeleteDhcpOptionsRequest method.
  6675. // req, resp := client.DeleteDhcpOptionsRequest(params)
  6676. //
  6677. // err := req.Send()
  6678. // if err == nil { // resp is now filled
  6679. // fmt.Println(resp)
  6680. // }
  6681. //
  6682. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptions
  6683. func (c *EC2) DeleteDhcpOptionsRequest(input *DeleteDhcpOptionsInput) (req *request.Request, output *DeleteDhcpOptionsOutput) {
  6684. op := &request.Operation{
  6685. Name: opDeleteDhcpOptions,
  6686. HTTPMethod: "POST",
  6687. HTTPPath: "/",
  6688. }
  6689. if input == nil {
  6690. input = &DeleteDhcpOptionsInput{}
  6691. }
  6692. output = &DeleteDhcpOptionsOutput{}
  6693. req = c.newRequest(op, input, output)
  6694. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  6695. return
  6696. }
  6697. // DeleteDhcpOptions API operation for Amazon Elastic Compute Cloud.
  6698. //
  6699. // Deletes the specified set of DHCP options. You must disassociate the set
  6700. // of DHCP options before you can delete it. You can disassociate the set of
  6701. // DHCP options by associating either a new set of options or the default set
  6702. // of options with the VPC.
  6703. //
  6704. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6705. // with awserr.Error's Code and Message methods to get detailed information about
  6706. // the error.
  6707. //
  6708. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6709. // API operation DeleteDhcpOptions for usage and error information.
  6710. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptions
  6711. func (c *EC2) DeleteDhcpOptions(input *DeleteDhcpOptionsInput) (*DeleteDhcpOptionsOutput, error) {
  6712. req, out := c.DeleteDhcpOptionsRequest(input)
  6713. return out, req.Send()
  6714. }
  6715. // DeleteDhcpOptionsWithContext is the same as DeleteDhcpOptions with the addition of
  6716. // the ability to pass a context and additional request options.
  6717. //
  6718. // See DeleteDhcpOptions for details on how to use this API operation.
  6719. //
  6720. // The context must be non-nil and will be used for request cancellation. If
  6721. // the context is nil a panic will occur. In the future the SDK may create
  6722. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6723. // for more information on using Contexts.
  6724. func (c *EC2) DeleteDhcpOptionsWithContext(ctx aws.Context, input *DeleteDhcpOptionsInput, opts ...request.Option) (*DeleteDhcpOptionsOutput, error) {
  6725. req, out := c.DeleteDhcpOptionsRequest(input)
  6726. req.SetContext(ctx)
  6727. req.ApplyOptions(opts...)
  6728. return out, req.Send()
  6729. }
  6730. const opDeleteEgressOnlyInternetGateway = "DeleteEgressOnlyInternetGateway"
  6731. // DeleteEgressOnlyInternetGatewayRequest generates a "aws/request.Request" representing the
  6732. // client's request for the DeleteEgressOnlyInternetGateway operation. The "output" return
  6733. // value will be populated with the request's response once the request completes
  6734. // successfully.
  6735. //
  6736. // Use "Send" method on the returned Request to send the API call to the service.
  6737. // the "output" return value is not valid until after Send returns without error.
  6738. //
  6739. // See DeleteEgressOnlyInternetGateway for more information on using the DeleteEgressOnlyInternetGateway
  6740. // API call, and error handling.
  6741. //
  6742. // This method is useful when you want to inject custom logic or configuration
  6743. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6744. //
  6745. //
  6746. // // Example sending a request using the DeleteEgressOnlyInternetGatewayRequest method.
  6747. // req, resp := client.DeleteEgressOnlyInternetGatewayRequest(params)
  6748. //
  6749. // err := req.Send()
  6750. // if err == nil { // resp is now filled
  6751. // fmt.Println(resp)
  6752. // }
  6753. //
  6754. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGateway
  6755. func (c *EC2) DeleteEgressOnlyInternetGatewayRequest(input *DeleteEgressOnlyInternetGatewayInput) (req *request.Request, output *DeleteEgressOnlyInternetGatewayOutput) {
  6756. op := &request.Operation{
  6757. Name: opDeleteEgressOnlyInternetGateway,
  6758. HTTPMethod: "POST",
  6759. HTTPPath: "/",
  6760. }
  6761. if input == nil {
  6762. input = &DeleteEgressOnlyInternetGatewayInput{}
  6763. }
  6764. output = &DeleteEgressOnlyInternetGatewayOutput{}
  6765. req = c.newRequest(op, input, output)
  6766. return
  6767. }
  6768. // DeleteEgressOnlyInternetGateway API operation for Amazon Elastic Compute Cloud.
  6769. //
  6770. // Deletes an egress-only internet gateway.
  6771. //
  6772. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6773. // with awserr.Error's Code and Message methods to get detailed information about
  6774. // the error.
  6775. //
  6776. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6777. // API operation DeleteEgressOnlyInternetGateway for usage and error information.
  6778. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGateway
  6779. func (c *EC2) DeleteEgressOnlyInternetGateway(input *DeleteEgressOnlyInternetGatewayInput) (*DeleteEgressOnlyInternetGatewayOutput, error) {
  6780. req, out := c.DeleteEgressOnlyInternetGatewayRequest(input)
  6781. return out, req.Send()
  6782. }
  6783. // DeleteEgressOnlyInternetGatewayWithContext is the same as DeleteEgressOnlyInternetGateway with the addition of
  6784. // the ability to pass a context and additional request options.
  6785. //
  6786. // See DeleteEgressOnlyInternetGateway for details on how to use this API operation.
  6787. //
  6788. // The context must be non-nil and will be used for request cancellation. If
  6789. // the context is nil a panic will occur. In the future the SDK may create
  6790. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6791. // for more information on using Contexts.
  6792. func (c *EC2) DeleteEgressOnlyInternetGatewayWithContext(ctx aws.Context, input *DeleteEgressOnlyInternetGatewayInput, opts ...request.Option) (*DeleteEgressOnlyInternetGatewayOutput, error) {
  6793. req, out := c.DeleteEgressOnlyInternetGatewayRequest(input)
  6794. req.SetContext(ctx)
  6795. req.ApplyOptions(opts...)
  6796. return out, req.Send()
  6797. }
  6798. const opDeleteFleets = "DeleteFleets"
  6799. // DeleteFleetsRequest generates a "aws/request.Request" representing the
  6800. // client's request for the DeleteFleets operation. The "output" return
  6801. // value will be populated with the request's response once the request completes
  6802. // successfully.
  6803. //
  6804. // Use "Send" method on the returned Request to send the API call to the service.
  6805. // the "output" return value is not valid until after Send returns without error.
  6806. //
  6807. // See DeleteFleets for more information on using the DeleteFleets
  6808. // API call, and error handling.
  6809. //
  6810. // This method is useful when you want to inject custom logic or configuration
  6811. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6812. //
  6813. //
  6814. // // Example sending a request using the DeleteFleetsRequest method.
  6815. // req, resp := client.DeleteFleetsRequest(params)
  6816. //
  6817. // err := req.Send()
  6818. // if err == nil { // resp is now filled
  6819. // fmt.Println(resp)
  6820. // }
  6821. //
  6822. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFleets
  6823. func (c *EC2) DeleteFleetsRequest(input *DeleteFleetsInput) (req *request.Request, output *DeleteFleetsOutput) {
  6824. op := &request.Operation{
  6825. Name: opDeleteFleets,
  6826. HTTPMethod: "POST",
  6827. HTTPPath: "/",
  6828. }
  6829. if input == nil {
  6830. input = &DeleteFleetsInput{}
  6831. }
  6832. output = &DeleteFleetsOutput{}
  6833. req = c.newRequest(op, input, output)
  6834. return
  6835. }
  6836. // DeleteFleets API operation for Amazon Elastic Compute Cloud.
  6837. //
  6838. // Deletes the specified EC2 Fleet.
  6839. //
  6840. // After you delete an EC2 Fleet, it launches no new instances. You must specify
  6841. // whether an EC2 Fleet should also terminate its instances. If you terminate
  6842. // the instances, the EC2 Fleet enters the deleted_terminating state. Otherwise,
  6843. // the EC2 Fleet enters the deleted_running state, and the instances continue
  6844. // to run until they are interrupted or you terminate them manually.
  6845. //
  6846. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6847. // with awserr.Error's Code and Message methods to get detailed information about
  6848. // the error.
  6849. //
  6850. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6851. // API operation DeleteFleets for usage and error information.
  6852. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFleets
  6853. func (c *EC2) DeleteFleets(input *DeleteFleetsInput) (*DeleteFleetsOutput, error) {
  6854. req, out := c.DeleteFleetsRequest(input)
  6855. return out, req.Send()
  6856. }
  6857. // DeleteFleetsWithContext is the same as DeleteFleets with the addition of
  6858. // the ability to pass a context and additional request options.
  6859. //
  6860. // See DeleteFleets for details on how to use this API operation.
  6861. //
  6862. // The context must be non-nil and will be used for request cancellation. If
  6863. // the context is nil a panic will occur. In the future the SDK may create
  6864. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6865. // for more information on using Contexts.
  6866. func (c *EC2) DeleteFleetsWithContext(ctx aws.Context, input *DeleteFleetsInput, opts ...request.Option) (*DeleteFleetsOutput, error) {
  6867. req, out := c.DeleteFleetsRequest(input)
  6868. req.SetContext(ctx)
  6869. req.ApplyOptions(opts...)
  6870. return out, req.Send()
  6871. }
  6872. const opDeleteFlowLogs = "DeleteFlowLogs"
  6873. // DeleteFlowLogsRequest generates a "aws/request.Request" representing the
  6874. // client's request for the DeleteFlowLogs operation. The "output" return
  6875. // value will be populated with the request's response once the request completes
  6876. // successfully.
  6877. //
  6878. // Use "Send" method on the returned Request to send the API call to the service.
  6879. // the "output" return value is not valid until after Send returns without error.
  6880. //
  6881. // See DeleteFlowLogs for more information on using the DeleteFlowLogs
  6882. // API call, and error handling.
  6883. //
  6884. // This method is useful when you want to inject custom logic or configuration
  6885. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6886. //
  6887. //
  6888. // // Example sending a request using the DeleteFlowLogsRequest method.
  6889. // req, resp := client.DeleteFlowLogsRequest(params)
  6890. //
  6891. // err := req.Send()
  6892. // if err == nil { // resp is now filled
  6893. // fmt.Println(resp)
  6894. // }
  6895. //
  6896. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogs
  6897. func (c *EC2) DeleteFlowLogsRequest(input *DeleteFlowLogsInput) (req *request.Request, output *DeleteFlowLogsOutput) {
  6898. op := &request.Operation{
  6899. Name: opDeleteFlowLogs,
  6900. HTTPMethod: "POST",
  6901. HTTPPath: "/",
  6902. }
  6903. if input == nil {
  6904. input = &DeleteFlowLogsInput{}
  6905. }
  6906. output = &DeleteFlowLogsOutput{}
  6907. req = c.newRequest(op, input, output)
  6908. return
  6909. }
  6910. // DeleteFlowLogs API operation for Amazon Elastic Compute Cloud.
  6911. //
  6912. // Deletes one or more flow logs.
  6913. //
  6914. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6915. // with awserr.Error's Code and Message methods to get detailed information about
  6916. // the error.
  6917. //
  6918. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6919. // API operation DeleteFlowLogs for usage and error information.
  6920. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogs
  6921. func (c *EC2) DeleteFlowLogs(input *DeleteFlowLogsInput) (*DeleteFlowLogsOutput, error) {
  6922. req, out := c.DeleteFlowLogsRequest(input)
  6923. return out, req.Send()
  6924. }
  6925. // DeleteFlowLogsWithContext is the same as DeleteFlowLogs with the addition of
  6926. // the ability to pass a context and additional request options.
  6927. //
  6928. // See DeleteFlowLogs for details on how to use this API operation.
  6929. //
  6930. // The context must be non-nil and will be used for request cancellation. If
  6931. // the context is nil a panic will occur. In the future the SDK may create
  6932. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6933. // for more information on using Contexts.
  6934. func (c *EC2) DeleteFlowLogsWithContext(ctx aws.Context, input *DeleteFlowLogsInput, opts ...request.Option) (*DeleteFlowLogsOutput, error) {
  6935. req, out := c.DeleteFlowLogsRequest(input)
  6936. req.SetContext(ctx)
  6937. req.ApplyOptions(opts...)
  6938. return out, req.Send()
  6939. }
  6940. const opDeleteFpgaImage = "DeleteFpgaImage"
  6941. // DeleteFpgaImageRequest generates a "aws/request.Request" representing the
  6942. // client's request for the DeleteFpgaImage operation. The "output" return
  6943. // value will be populated with the request's response once the request completes
  6944. // successfully.
  6945. //
  6946. // Use "Send" method on the returned Request to send the API call to the service.
  6947. // the "output" return value is not valid until after Send returns without error.
  6948. //
  6949. // See DeleteFpgaImage for more information on using the DeleteFpgaImage
  6950. // API call, and error handling.
  6951. //
  6952. // This method is useful when you want to inject custom logic or configuration
  6953. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6954. //
  6955. //
  6956. // // Example sending a request using the DeleteFpgaImageRequest method.
  6957. // req, resp := client.DeleteFpgaImageRequest(params)
  6958. //
  6959. // err := req.Send()
  6960. // if err == nil { // resp is now filled
  6961. // fmt.Println(resp)
  6962. // }
  6963. //
  6964. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFpgaImage
  6965. func (c *EC2) DeleteFpgaImageRequest(input *DeleteFpgaImageInput) (req *request.Request, output *DeleteFpgaImageOutput) {
  6966. op := &request.Operation{
  6967. Name: opDeleteFpgaImage,
  6968. HTTPMethod: "POST",
  6969. HTTPPath: "/",
  6970. }
  6971. if input == nil {
  6972. input = &DeleteFpgaImageInput{}
  6973. }
  6974. output = &DeleteFpgaImageOutput{}
  6975. req = c.newRequest(op, input, output)
  6976. return
  6977. }
  6978. // DeleteFpgaImage API operation for Amazon Elastic Compute Cloud.
  6979. //
  6980. // Deletes the specified Amazon FPGA Image (AFI).
  6981. //
  6982. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6983. // with awserr.Error's Code and Message methods to get detailed information about
  6984. // the error.
  6985. //
  6986. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6987. // API operation DeleteFpgaImage for usage and error information.
  6988. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFpgaImage
  6989. func (c *EC2) DeleteFpgaImage(input *DeleteFpgaImageInput) (*DeleteFpgaImageOutput, error) {
  6990. req, out := c.DeleteFpgaImageRequest(input)
  6991. return out, req.Send()
  6992. }
  6993. // DeleteFpgaImageWithContext is the same as DeleteFpgaImage with the addition of
  6994. // the ability to pass a context and additional request options.
  6995. //
  6996. // See DeleteFpgaImage for details on how to use this API operation.
  6997. //
  6998. // The context must be non-nil and will be used for request cancellation. If
  6999. // the context is nil a panic will occur. In the future the SDK may create
  7000. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7001. // for more information on using Contexts.
  7002. func (c *EC2) DeleteFpgaImageWithContext(ctx aws.Context, input *DeleteFpgaImageInput, opts ...request.Option) (*DeleteFpgaImageOutput, error) {
  7003. req, out := c.DeleteFpgaImageRequest(input)
  7004. req.SetContext(ctx)
  7005. req.ApplyOptions(opts...)
  7006. return out, req.Send()
  7007. }
  7008. const opDeleteInternetGateway = "DeleteInternetGateway"
  7009. // DeleteInternetGatewayRequest generates a "aws/request.Request" representing the
  7010. // client's request for the DeleteInternetGateway operation. The "output" return
  7011. // value will be populated with the request's response once the request completes
  7012. // successfully.
  7013. //
  7014. // Use "Send" method on the returned Request to send the API call to the service.
  7015. // the "output" return value is not valid until after Send returns without error.
  7016. //
  7017. // See DeleteInternetGateway for more information on using the DeleteInternetGateway
  7018. // API call, and error handling.
  7019. //
  7020. // This method is useful when you want to inject custom logic or configuration
  7021. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7022. //
  7023. //
  7024. // // Example sending a request using the DeleteInternetGatewayRequest method.
  7025. // req, resp := client.DeleteInternetGatewayRequest(params)
  7026. //
  7027. // err := req.Send()
  7028. // if err == nil { // resp is now filled
  7029. // fmt.Println(resp)
  7030. // }
  7031. //
  7032. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGateway
  7033. func (c *EC2) DeleteInternetGatewayRequest(input *DeleteInternetGatewayInput) (req *request.Request, output *DeleteInternetGatewayOutput) {
  7034. op := &request.Operation{
  7035. Name: opDeleteInternetGateway,
  7036. HTTPMethod: "POST",
  7037. HTTPPath: "/",
  7038. }
  7039. if input == nil {
  7040. input = &DeleteInternetGatewayInput{}
  7041. }
  7042. output = &DeleteInternetGatewayOutput{}
  7043. req = c.newRequest(op, input, output)
  7044. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  7045. return
  7046. }
  7047. // DeleteInternetGateway API operation for Amazon Elastic Compute Cloud.
  7048. //
  7049. // Deletes the specified internet gateway. You must detach the internet gateway
  7050. // from the VPC before you can delete it.
  7051. //
  7052. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7053. // with awserr.Error's Code and Message methods to get detailed information about
  7054. // the error.
  7055. //
  7056. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7057. // API operation DeleteInternetGateway for usage and error information.
  7058. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGateway
  7059. func (c *EC2) DeleteInternetGateway(input *DeleteInternetGatewayInput) (*DeleteInternetGatewayOutput, error) {
  7060. req, out := c.DeleteInternetGatewayRequest(input)
  7061. return out, req.Send()
  7062. }
  7063. // DeleteInternetGatewayWithContext is the same as DeleteInternetGateway with the addition of
  7064. // the ability to pass a context and additional request options.
  7065. //
  7066. // See DeleteInternetGateway for details on how to use this API operation.
  7067. //
  7068. // The context must be non-nil and will be used for request cancellation. If
  7069. // the context is nil a panic will occur. In the future the SDK may create
  7070. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7071. // for more information on using Contexts.
  7072. func (c *EC2) DeleteInternetGatewayWithContext(ctx aws.Context, input *DeleteInternetGatewayInput, opts ...request.Option) (*DeleteInternetGatewayOutput, error) {
  7073. req, out := c.DeleteInternetGatewayRequest(input)
  7074. req.SetContext(ctx)
  7075. req.ApplyOptions(opts...)
  7076. return out, req.Send()
  7077. }
  7078. const opDeleteKeyPair = "DeleteKeyPair"
  7079. // DeleteKeyPairRequest generates a "aws/request.Request" representing the
  7080. // client's request for the DeleteKeyPair operation. The "output" return
  7081. // value will be populated with the request's response once the request completes
  7082. // successfully.
  7083. //
  7084. // Use "Send" method on the returned Request to send the API call to the service.
  7085. // the "output" return value is not valid until after Send returns without error.
  7086. //
  7087. // See DeleteKeyPair for more information on using the DeleteKeyPair
  7088. // API call, and error handling.
  7089. //
  7090. // This method is useful when you want to inject custom logic or configuration
  7091. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7092. //
  7093. //
  7094. // // Example sending a request using the DeleteKeyPairRequest method.
  7095. // req, resp := client.DeleteKeyPairRequest(params)
  7096. //
  7097. // err := req.Send()
  7098. // if err == nil { // resp is now filled
  7099. // fmt.Println(resp)
  7100. // }
  7101. //
  7102. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPair
  7103. func (c *EC2) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Request, output *DeleteKeyPairOutput) {
  7104. op := &request.Operation{
  7105. Name: opDeleteKeyPair,
  7106. HTTPMethod: "POST",
  7107. HTTPPath: "/",
  7108. }
  7109. if input == nil {
  7110. input = &DeleteKeyPairInput{}
  7111. }
  7112. output = &DeleteKeyPairOutput{}
  7113. req = c.newRequest(op, input, output)
  7114. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  7115. return
  7116. }
  7117. // DeleteKeyPair API operation for Amazon Elastic Compute Cloud.
  7118. //
  7119. // Deletes the specified key pair, by removing the public key from Amazon EC2.
  7120. //
  7121. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7122. // with awserr.Error's Code and Message methods to get detailed information about
  7123. // the error.
  7124. //
  7125. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7126. // API operation DeleteKeyPair for usage and error information.
  7127. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPair
  7128. func (c *EC2) DeleteKeyPair(input *DeleteKeyPairInput) (*DeleteKeyPairOutput, error) {
  7129. req, out := c.DeleteKeyPairRequest(input)
  7130. return out, req.Send()
  7131. }
  7132. // DeleteKeyPairWithContext is the same as DeleteKeyPair with the addition of
  7133. // the ability to pass a context and additional request options.
  7134. //
  7135. // See DeleteKeyPair for details on how to use this API operation.
  7136. //
  7137. // The context must be non-nil and will be used for request cancellation. If
  7138. // the context is nil a panic will occur. In the future the SDK may create
  7139. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7140. // for more information on using Contexts.
  7141. func (c *EC2) DeleteKeyPairWithContext(ctx aws.Context, input *DeleteKeyPairInput, opts ...request.Option) (*DeleteKeyPairOutput, error) {
  7142. req, out := c.DeleteKeyPairRequest(input)
  7143. req.SetContext(ctx)
  7144. req.ApplyOptions(opts...)
  7145. return out, req.Send()
  7146. }
  7147. const opDeleteLaunchTemplate = "DeleteLaunchTemplate"
  7148. // DeleteLaunchTemplateRequest generates a "aws/request.Request" representing the
  7149. // client's request for the DeleteLaunchTemplate operation. The "output" return
  7150. // value will be populated with the request's response once the request completes
  7151. // successfully.
  7152. //
  7153. // Use "Send" method on the returned Request to send the API call to the service.
  7154. // the "output" return value is not valid until after Send returns without error.
  7155. //
  7156. // See DeleteLaunchTemplate for more information on using the DeleteLaunchTemplate
  7157. // API call, and error handling.
  7158. //
  7159. // This method is useful when you want to inject custom logic or configuration
  7160. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7161. //
  7162. //
  7163. // // Example sending a request using the DeleteLaunchTemplateRequest method.
  7164. // req, resp := client.DeleteLaunchTemplateRequest(params)
  7165. //
  7166. // err := req.Send()
  7167. // if err == nil { // resp is now filled
  7168. // fmt.Println(resp)
  7169. // }
  7170. //
  7171. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplate
  7172. func (c *EC2) DeleteLaunchTemplateRequest(input *DeleteLaunchTemplateInput) (req *request.Request, output *DeleteLaunchTemplateOutput) {
  7173. op := &request.Operation{
  7174. Name: opDeleteLaunchTemplate,
  7175. HTTPMethod: "POST",
  7176. HTTPPath: "/",
  7177. }
  7178. if input == nil {
  7179. input = &DeleteLaunchTemplateInput{}
  7180. }
  7181. output = &DeleteLaunchTemplateOutput{}
  7182. req = c.newRequest(op, input, output)
  7183. return
  7184. }
  7185. // DeleteLaunchTemplate API operation for Amazon Elastic Compute Cloud.
  7186. //
  7187. // Deletes a launch template. Deleting a launch template deletes all of its
  7188. // versions.
  7189. //
  7190. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7191. // with awserr.Error's Code and Message methods to get detailed information about
  7192. // the error.
  7193. //
  7194. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7195. // API operation DeleteLaunchTemplate for usage and error information.
  7196. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplate
  7197. func (c *EC2) DeleteLaunchTemplate(input *DeleteLaunchTemplateInput) (*DeleteLaunchTemplateOutput, error) {
  7198. req, out := c.DeleteLaunchTemplateRequest(input)
  7199. return out, req.Send()
  7200. }
  7201. // DeleteLaunchTemplateWithContext is the same as DeleteLaunchTemplate with the addition of
  7202. // the ability to pass a context and additional request options.
  7203. //
  7204. // See DeleteLaunchTemplate for details on how to use this API operation.
  7205. //
  7206. // The context must be non-nil and will be used for request cancellation. If
  7207. // the context is nil a panic will occur. In the future the SDK may create
  7208. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7209. // for more information on using Contexts.
  7210. func (c *EC2) DeleteLaunchTemplateWithContext(ctx aws.Context, input *DeleteLaunchTemplateInput, opts ...request.Option) (*DeleteLaunchTemplateOutput, error) {
  7211. req, out := c.DeleteLaunchTemplateRequest(input)
  7212. req.SetContext(ctx)
  7213. req.ApplyOptions(opts...)
  7214. return out, req.Send()
  7215. }
  7216. const opDeleteLaunchTemplateVersions = "DeleteLaunchTemplateVersions"
  7217. // DeleteLaunchTemplateVersionsRequest generates a "aws/request.Request" representing the
  7218. // client's request for the DeleteLaunchTemplateVersions operation. The "output" return
  7219. // value will be populated with the request's response once the request completes
  7220. // successfully.
  7221. //
  7222. // Use "Send" method on the returned Request to send the API call to the service.
  7223. // the "output" return value is not valid until after Send returns without error.
  7224. //
  7225. // See DeleteLaunchTemplateVersions for more information on using the DeleteLaunchTemplateVersions
  7226. // API call, and error handling.
  7227. //
  7228. // This method is useful when you want to inject custom logic or configuration
  7229. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7230. //
  7231. //
  7232. // // Example sending a request using the DeleteLaunchTemplateVersionsRequest method.
  7233. // req, resp := client.DeleteLaunchTemplateVersionsRequest(params)
  7234. //
  7235. // err := req.Send()
  7236. // if err == nil { // resp is now filled
  7237. // fmt.Println(resp)
  7238. // }
  7239. //
  7240. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersions
  7241. func (c *EC2) DeleteLaunchTemplateVersionsRequest(input *DeleteLaunchTemplateVersionsInput) (req *request.Request, output *DeleteLaunchTemplateVersionsOutput) {
  7242. op := &request.Operation{
  7243. Name: opDeleteLaunchTemplateVersions,
  7244. HTTPMethod: "POST",
  7245. HTTPPath: "/",
  7246. }
  7247. if input == nil {
  7248. input = &DeleteLaunchTemplateVersionsInput{}
  7249. }
  7250. output = &DeleteLaunchTemplateVersionsOutput{}
  7251. req = c.newRequest(op, input, output)
  7252. return
  7253. }
  7254. // DeleteLaunchTemplateVersions API operation for Amazon Elastic Compute Cloud.
  7255. //
  7256. // Deletes one or more versions of a launch template. You cannot delete the
  7257. // default version of a launch template; you must first assign a different version
  7258. // as the default. If the default version is the only version for the launch
  7259. // template, you must delete the entire launch template using DeleteLaunchTemplate.
  7260. //
  7261. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7262. // with awserr.Error's Code and Message methods to get detailed information about
  7263. // the error.
  7264. //
  7265. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7266. // API operation DeleteLaunchTemplateVersions for usage and error information.
  7267. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersions
  7268. func (c *EC2) DeleteLaunchTemplateVersions(input *DeleteLaunchTemplateVersionsInput) (*DeleteLaunchTemplateVersionsOutput, error) {
  7269. req, out := c.DeleteLaunchTemplateVersionsRequest(input)
  7270. return out, req.Send()
  7271. }
  7272. // DeleteLaunchTemplateVersionsWithContext is the same as DeleteLaunchTemplateVersions with the addition of
  7273. // the ability to pass a context and additional request options.
  7274. //
  7275. // See DeleteLaunchTemplateVersions for details on how to use this API operation.
  7276. //
  7277. // The context must be non-nil and will be used for request cancellation. If
  7278. // the context is nil a panic will occur. In the future the SDK may create
  7279. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7280. // for more information on using Contexts.
  7281. func (c *EC2) DeleteLaunchTemplateVersionsWithContext(ctx aws.Context, input *DeleteLaunchTemplateVersionsInput, opts ...request.Option) (*DeleteLaunchTemplateVersionsOutput, error) {
  7282. req, out := c.DeleteLaunchTemplateVersionsRequest(input)
  7283. req.SetContext(ctx)
  7284. req.ApplyOptions(opts...)
  7285. return out, req.Send()
  7286. }
  7287. const opDeleteNatGateway = "DeleteNatGateway"
  7288. // DeleteNatGatewayRequest generates a "aws/request.Request" representing the
  7289. // client's request for the DeleteNatGateway operation. The "output" return
  7290. // value will be populated with the request's response once the request completes
  7291. // successfully.
  7292. //
  7293. // Use "Send" method on the returned Request to send the API call to the service.
  7294. // the "output" return value is not valid until after Send returns without error.
  7295. //
  7296. // See DeleteNatGateway for more information on using the DeleteNatGateway
  7297. // API call, and error handling.
  7298. //
  7299. // This method is useful when you want to inject custom logic or configuration
  7300. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7301. //
  7302. //
  7303. // // Example sending a request using the DeleteNatGatewayRequest method.
  7304. // req, resp := client.DeleteNatGatewayRequest(params)
  7305. //
  7306. // err := req.Send()
  7307. // if err == nil { // resp is now filled
  7308. // fmt.Println(resp)
  7309. // }
  7310. //
  7311. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGateway
  7312. func (c *EC2) DeleteNatGatewayRequest(input *DeleteNatGatewayInput) (req *request.Request, output *DeleteNatGatewayOutput) {
  7313. op := &request.Operation{
  7314. Name: opDeleteNatGateway,
  7315. HTTPMethod: "POST",
  7316. HTTPPath: "/",
  7317. }
  7318. if input == nil {
  7319. input = &DeleteNatGatewayInput{}
  7320. }
  7321. output = &DeleteNatGatewayOutput{}
  7322. req = c.newRequest(op, input, output)
  7323. return
  7324. }
  7325. // DeleteNatGateway API operation for Amazon Elastic Compute Cloud.
  7326. //
  7327. // Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its
  7328. // Elastic IP address, but does not release the address from your account. Deleting
  7329. // a NAT gateway does not delete any NAT gateway routes in your route tables.
  7330. //
  7331. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7332. // with awserr.Error's Code and Message methods to get detailed information about
  7333. // the error.
  7334. //
  7335. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7336. // API operation DeleteNatGateway for usage and error information.
  7337. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGateway
  7338. func (c *EC2) DeleteNatGateway(input *DeleteNatGatewayInput) (*DeleteNatGatewayOutput, error) {
  7339. req, out := c.DeleteNatGatewayRequest(input)
  7340. return out, req.Send()
  7341. }
  7342. // DeleteNatGatewayWithContext is the same as DeleteNatGateway with the addition of
  7343. // the ability to pass a context and additional request options.
  7344. //
  7345. // See DeleteNatGateway for details on how to use this API operation.
  7346. //
  7347. // The context must be non-nil and will be used for request cancellation. If
  7348. // the context is nil a panic will occur. In the future the SDK may create
  7349. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7350. // for more information on using Contexts.
  7351. func (c *EC2) DeleteNatGatewayWithContext(ctx aws.Context, input *DeleteNatGatewayInput, opts ...request.Option) (*DeleteNatGatewayOutput, error) {
  7352. req, out := c.DeleteNatGatewayRequest(input)
  7353. req.SetContext(ctx)
  7354. req.ApplyOptions(opts...)
  7355. return out, req.Send()
  7356. }
  7357. const opDeleteNetworkAcl = "DeleteNetworkAcl"
  7358. // DeleteNetworkAclRequest generates a "aws/request.Request" representing the
  7359. // client's request for the DeleteNetworkAcl operation. The "output" return
  7360. // value will be populated with the request's response once the request completes
  7361. // successfully.
  7362. //
  7363. // Use "Send" method on the returned Request to send the API call to the service.
  7364. // the "output" return value is not valid until after Send returns without error.
  7365. //
  7366. // See DeleteNetworkAcl for more information on using the DeleteNetworkAcl
  7367. // API call, and error handling.
  7368. //
  7369. // This method is useful when you want to inject custom logic or configuration
  7370. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7371. //
  7372. //
  7373. // // Example sending a request using the DeleteNetworkAclRequest method.
  7374. // req, resp := client.DeleteNetworkAclRequest(params)
  7375. //
  7376. // err := req.Send()
  7377. // if err == nil { // resp is now filled
  7378. // fmt.Println(resp)
  7379. // }
  7380. //
  7381. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAcl
  7382. func (c *EC2) DeleteNetworkAclRequest(input *DeleteNetworkAclInput) (req *request.Request, output *DeleteNetworkAclOutput) {
  7383. op := &request.Operation{
  7384. Name: opDeleteNetworkAcl,
  7385. HTTPMethod: "POST",
  7386. HTTPPath: "/",
  7387. }
  7388. if input == nil {
  7389. input = &DeleteNetworkAclInput{}
  7390. }
  7391. output = &DeleteNetworkAclOutput{}
  7392. req = c.newRequest(op, input, output)
  7393. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  7394. return
  7395. }
  7396. // DeleteNetworkAcl API operation for Amazon Elastic Compute Cloud.
  7397. //
  7398. // Deletes the specified network ACL. You can't delete the ACL if it's associated
  7399. // with any subnets. You can't delete the default network ACL.
  7400. //
  7401. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7402. // with awserr.Error's Code and Message methods to get detailed information about
  7403. // the error.
  7404. //
  7405. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7406. // API operation DeleteNetworkAcl for usage and error information.
  7407. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAcl
  7408. func (c *EC2) DeleteNetworkAcl(input *DeleteNetworkAclInput) (*DeleteNetworkAclOutput, error) {
  7409. req, out := c.DeleteNetworkAclRequest(input)
  7410. return out, req.Send()
  7411. }
  7412. // DeleteNetworkAclWithContext is the same as DeleteNetworkAcl with the addition of
  7413. // the ability to pass a context and additional request options.
  7414. //
  7415. // See DeleteNetworkAcl for details on how to use this API operation.
  7416. //
  7417. // The context must be non-nil and will be used for request cancellation. If
  7418. // the context is nil a panic will occur. In the future the SDK may create
  7419. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7420. // for more information on using Contexts.
  7421. func (c *EC2) DeleteNetworkAclWithContext(ctx aws.Context, input *DeleteNetworkAclInput, opts ...request.Option) (*DeleteNetworkAclOutput, error) {
  7422. req, out := c.DeleteNetworkAclRequest(input)
  7423. req.SetContext(ctx)
  7424. req.ApplyOptions(opts...)
  7425. return out, req.Send()
  7426. }
  7427. const opDeleteNetworkAclEntry = "DeleteNetworkAclEntry"
  7428. // DeleteNetworkAclEntryRequest generates a "aws/request.Request" representing the
  7429. // client's request for the DeleteNetworkAclEntry operation. The "output" return
  7430. // value will be populated with the request's response once the request completes
  7431. // successfully.
  7432. //
  7433. // Use "Send" method on the returned Request to send the API call to the service.
  7434. // the "output" return value is not valid until after Send returns without error.
  7435. //
  7436. // See DeleteNetworkAclEntry for more information on using the DeleteNetworkAclEntry
  7437. // API call, and error handling.
  7438. //
  7439. // This method is useful when you want to inject custom logic or configuration
  7440. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7441. //
  7442. //
  7443. // // Example sending a request using the DeleteNetworkAclEntryRequest method.
  7444. // req, resp := client.DeleteNetworkAclEntryRequest(params)
  7445. //
  7446. // err := req.Send()
  7447. // if err == nil { // resp is now filled
  7448. // fmt.Println(resp)
  7449. // }
  7450. //
  7451. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntry
  7452. func (c *EC2) DeleteNetworkAclEntryRequest(input *DeleteNetworkAclEntryInput) (req *request.Request, output *DeleteNetworkAclEntryOutput) {
  7453. op := &request.Operation{
  7454. Name: opDeleteNetworkAclEntry,
  7455. HTTPMethod: "POST",
  7456. HTTPPath: "/",
  7457. }
  7458. if input == nil {
  7459. input = &DeleteNetworkAclEntryInput{}
  7460. }
  7461. output = &DeleteNetworkAclEntryOutput{}
  7462. req = c.newRequest(op, input, output)
  7463. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  7464. return
  7465. }
  7466. // DeleteNetworkAclEntry API operation for Amazon Elastic Compute Cloud.
  7467. //
  7468. // Deletes the specified ingress or egress entry (rule) from the specified network
  7469. // ACL.
  7470. //
  7471. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7472. // with awserr.Error's Code and Message methods to get detailed information about
  7473. // the error.
  7474. //
  7475. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7476. // API operation DeleteNetworkAclEntry for usage and error information.
  7477. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntry
  7478. func (c *EC2) DeleteNetworkAclEntry(input *DeleteNetworkAclEntryInput) (*DeleteNetworkAclEntryOutput, error) {
  7479. req, out := c.DeleteNetworkAclEntryRequest(input)
  7480. return out, req.Send()
  7481. }
  7482. // DeleteNetworkAclEntryWithContext is the same as DeleteNetworkAclEntry with the addition of
  7483. // the ability to pass a context and additional request options.
  7484. //
  7485. // See DeleteNetworkAclEntry for details on how to use this API operation.
  7486. //
  7487. // The context must be non-nil and will be used for request cancellation. If
  7488. // the context is nil a panic will occur. In the future the SDK may create
  7489. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7490. // for more information on using Contexts.
  7491. func (c *EC2) DeleteNetworkAclEntryWithContext(ctx aws.Context, input *DeleteNetworkAclEntryInput, opts ...request.Option) (*DeleteNetworkAclEntryOutput, error) {
  7492. req, out := c.DeleteNetworkAclEntryRequest(input)
  7493. req.SetContext(ctx)
  7494. req.ApplyOptions(opts...)
  7495. return out, req.Send()
  7496. }
  7497. const opDeleteNetworkInterface = "DeleteNetworkInterface"
  7498. // DeleteNetworkInterfaceRequest generates a "aws/request.Request" representing the
  7499. // client's request for the DeleteNetworkInterface operation. The "output" return
  7500. // value will be populated with the request's response once the request completes
  7501. // successfully.
  7502. //
  7503. // Use "Send" method on the returned Request to send the API call to the service.
  7504. // the "output" return value is not valid until after Send returns without error.
  7505. //
  7506. // See DeleteNetworkInterface for more information on using the DeleteNetworkInterface
  7507. // API call, and error handling.
  7508. //
  7509. // This method is useful when you want to inject custom logic or configuration
  7510. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7511. //
  7512. //
  7513. // // Example sending a request using the DeleteNetworkInterfaceRequest method.
  7514. // req, resp := client.DeleteNetworkInterfaceRequest(params)
  7515. //
  7516. // err := req.Send()
  7517. // if err == nil { // resp is now filled
  7518. // fmt.Println(resp)
  7519. // }
  7520. //
  7521. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterface
  7522. func (c *EC2) DeleteNetworkInterfaceRequest(input *DeleteNetworkInterfaceInput) (req *request.Request, output *DeleteNetworkInterfaceOutput) {
  7523. op := &request.Operation{
  7524. Name: opDeleteNetworkInterface,
  7525. HTTPMethod: "POST",
  7526. HTTPPath: "/",
  7527. }
  7528. if input == nil {
  7529. input = &DeleteNetworkInterfaceInput{}
  7530. }
  7531. output = &DeleteNetworkInterfaceOutput{}
  7532. req = c.newRequest(op, input, output)
  7533. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  7534. return
  7535. }
  7536. // DeleteNetworkInterface API operation for Amazon Elastic Compute Cloud.
  7537. //
  7538. // Deletes the specified network interface. You must detach the network interface
  7539. // before you can delete it.
  7540. //
  7541. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7542. // with awserr.Error's Code and Message methods to get detailed information about
  7543. // the error.
  7544. //
  7545. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7546. // API operation DeleteNetworkInterface for usage and error information.
  7547. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterface
  7548. func (c *EC2) DeleteNetworkInterface(input *DeleteNetworkInterfaceInput) (*DeleteNetworkInterfaceOutput, error) {
  7549. req, out := c.DeleteNetworkInterfaceRequest(input)
  7550. return out, req.Send()
  7551. }
  7552. // DeleteNetworkInterfaceWithContext is the same as DeleteNetworkInterface with the addition of
  7553. // the ability to pass a context and additional request options.
  7554. //
  7555. // See DeleteNetworkInterface for details on how to use this API operation.
  7556. //
  7557. // The context must be non-nil and will be used for request cancellation. If
  7558. // the context is nil a panic will occur. In the future the SDK may create
  7559. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7560. // for more information on using Contexts.
  7561. func (c *EC2) DeleteNetworkInterfaceWithContext(ctx aws.Context, input *DeleteNetworkInterfaceInput, opts ...request.Option) (*DeleteNetworkInterfaceOutput, error) {
  7562. req, out := c.DeleteNetworkInterfaceRequest(input)
  7563. req.SetContext(ctx)
  7564. req.ApplyOptions(opts...)
  7565. return out, req.Send()
  7566. }
  7567. const opDeleteNetworkInterfacePermission = "DeleteNetworkInterfacePermission"
  7568. // DeleteNetworkInterfacePermissionRequest generates a "aws/request.Request" representing the
  7569. // client's request for the DeleteNetworkInterfacePermission operation. The "output" return
  7570. // value will be populated with the request's response once the request completes
  7571. // successfully.
  7572. //
  7573. // Use "Send" method on the returned Request to send the API call to the service.
  7574. // the "output" return value is not valid until after Send returns without error.
  7575. //
  7576. // See DeleteNetworkInterfacePermission for more information on using the DeleteNetworkInterfacePermission
  7577. // API call, and error handling.
  7578. //
  7579. // This method is useful when you want to inject custom logic or configuration
  7580. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7581. //
  7582. //
  7583. // // Example sending a request using the DeleteNetworkInterfacePermissionRequest method.
  7584. // req, resp := client.DeleteNetworkInterfacePermissionRequest(params)
  7585. //
  7586. // err := req.Send()
  7587. // if err == nil { // resp is now filled
  7588. // fmt.Println(resp)
  7589. // }
  7590. //
  7591. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfacePermission
  7592. func (c *EC2) DeleteNetworkInterfacePermissionRequest(input *DeleteNetworkInterfacePermissionInput) (req *request.Request, output *DeleteNetworkInterfacePermissionOutput) {
  7593. op := &request.Operation{
  7594. Name: opDeleteNetworkInterfacePermission,
  7595. HTTPMethod: "POST",
  7596. HTTPPath: "/",
  7597. }
  7598. if input == nil {
  7599. input = &DeleteNetworkInterfacePermissionInput{}
  7600. }
  7601. output = &DeleteNetworkInterfacePermissionOutput{}
  7602. req = c.newRequest(op, input, output)
  7603. return
  7604. }
  7605. // DeleteNetworkInterfacePermission API operation for Amazon Elastic Compute Cloud.
  7606. //
  7607. // Deletes a permission for a network interface. By default, you cannot delete
  7608. // the permission if the account for which you're removing the permission has
  7609. // attached the network interface to an instance. However, you can force delete
  7610. // the permission, regardless of any attachment.
  7611. //
  7612. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7613. // with awserr.Error's Code and Message methods to get detailed information about
  7614. // the error.
  7615. //
  7616. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7617. // API operation DeleteNetworkInterfacePermission for usage and error information.
  7618. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfacePermission
  7619. func (c *EC2) DeleteNetworkInterfacePermission(input *DeleteNetworkInterfacePermissionInput) (*DeleteNetworkInterfacePermissionOutput, error) {
  7620. req, out := c.DeleteNetworkInterfacePermissionRequest(input)
  7621. return out, req.Send()
  7622. }
  7623. // DeleteNetworkInterfacePermissionWithContext is the same as DeleteNetworkInterfacePermission with the addition of
  7624. // the ability to pass a context and additional request options.
  7625. //
  7626. // See DeleteNetworkInterfacePermission for details on how to use this API operation.
  7627. //
  7628. // The context must be non-nil and will be used for request cancellation. If
  7629. // the context is nil a panic will occur. In the future the SDK may create
  7630. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7631. // for more information on using Contexts.
  7632. func (c *EC2) DeleteNetworkInterfacePermissionWithContext(ctx aws.Context, input *DeleteNetworkInterfacePermissionInput, opts ...request.Option) (*DeleteNetworkInterfacePermissionOutput, error) {
  7633. req, out := c.DeleteNetworkInterfacePermissionRequest(input)
  7634. req.SetContext(ctx)
  7635. req.ApplyOptions(opts...)
  7636. return out, req.Send()
  7637. }
  7638. const opDeletePlacementGroup = "DeletePlacementGroup"
  7639. // DeletePlacementGroupRequest generates a "aws/request.Request" representing the
  7640. // client's request for the DeletePlacementGroup operation. The "output" return
  7641. // value will be populated with the request's response once the request completes
  7642. // successfully.
  7643. //
  7644. // Use "Send" method on the returned Request to send the API call to the service.
  7645. // the "output" return value is not valid until after Send returns without error.
  7646. //
  7647. // See DeletePlacementGroup for more information on using the DeletePlacementGroup
  7648. // API call, and error handling.
  7649. //
  7650. // This method is useful when you want to inject custom logic or configuration
  7651. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7652. //
  7653. //
  7654. // // Example sending a request using the DeletePlacementGroupRequest method.
  7655. // req, resp := client.DeletePlacementGroupRequest(params)
  7656. //
  7657. // err := req.Send()
  7658. // if err == nil { // resp is now filled
  7659. // fmt.Println(resp)
  7660. // }
  7661. //
  7662. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroup
  7663. func (c *EC2) DeletePlacementGroupRequest(input *DeletePlacementGroupInput) (req *request.Request, output *DeletePlacementGroupOutput) {
  7664. op := &request.Operation{
  7665. Name: opDeletePlacementGroup,
  7666. HTTPMethod: "POST",
  7667. HTTPPath: "/",
  7668. }
  7669. if input == nil {
  7670. input = &DeletePlacementGroupInput{}
  7671. }
  7672. output = &DeletePlacementGroupOutput{}
  7673. req = c.newRequest(op, input, output)
  7674. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  7675. return
  7676. }
  7677. // DeletePlacementGroup API operation for Amazon Elastic Compute Cloud.
  7678. //
  7679. // Deletes the specified placement group. You must terminate all instances in
  7680. // the placement group before you can delete the placement group. For more information,
  7681. // see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
  7682. // in the Amazon Elastic Compute Cloud User Guide.
  7683. //
  7684. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7685. // with awserr.Error's Code and Message methods to get detailed information about
  7686. // the error.
  7687. //
  7688. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7689. // API operation DeletePlacementGroup for usage and error information.
  7690. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroup
  7691. func (c *EC2) DeletePlacementGroup(input *DeletePlacementGroupInput) (*DeletePlacementGroupOutput, error) {
  7692. req, out := c.DeletePlacementGroupRequest(input)
  7693. return out, req.Send()
  7694. }
  7695. // DeletePlacementGroupWithContext is the same as DeletePlacementGroup with the addition of
  7696. // the ability to pass a context and additional request options.
  7697. //
  7698. // See DeletePlacementGroup for details on how to use this API operation.
  7699. //
  7700. // The context must be non-nil and will be used for request cancellation. If
  7701. // the context is nil a panic will occur. In the future the SDK may create
  7702. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7703. // for more information on using Contexts.
  7704. func (c *EC2) DeletePlacementGroupWithContext(ctx aws.Context, input *DeletePlacementGroupInput, opts ...request.Option) (*DeletePlacementGroupOutput, error) {
  7705. req, out := c.DeletePlacementGroupRequest(input)
  7706. req.SetContext(ctx)
  7707. req.ApplyOptions(opts...)
  7708. return out, req.Send()
  7709. }
  7710. const opDeleteRoute = "DeleteRoute"
  7711. // DeleteRouteRequest generates a "aws/request.Request" representing the
  7712. // client's request for the DeleteRoute operation. The "output" return
  7713. // value will be populated with the request's response once the request completes
  7714. // successfully.
  7715. //
  7716. // Use "Send" method on the returned Request to send the API call to the service.
  7717. // the "output" return value is not valid until after Send returns without error.
  7718. //
  7719. // See DeleteRoute for more information on using the DeleteRoute
  7720. // API call, and error handling.
  7721. //
  7722. // This method is useful when you want to inject custom logic or configuration
  7723. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7724. //
  7725. //
  7726. // // Example sending a request using the DeleteRouteRequest method.
  7727. // req, resp := client.DeleteRouteRequest(params)
  7728. //
  7729. // err := req.Send()
  7730. // if err == nil { // resp is now filled
  7731. // fmt.Println(resp)
  7732. // }
  7733. //
  7734. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRoute
  7735. func (c *EC2) DeleteRouteRequest(input *DeleteRouteInput) (req *request.Request, output *DeleteRouteOutput) {
  7736. op := &request.Operation{
  7737. Name: opDeleteRoute,
  7738. HTTPMethod: "POST",
  7739. HTTPPath: "/",
  7740. }
  7741. if input == nil {
  7742. input = &DeleteRouteInput{}
  7743. }
  7744. output = &DeleteRouteOutput{}
  7745. req = c.newRequest(op, input, output)
  7746. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  7747. return
  7748. }
  7749. // DeleteRoute API operation for Amazon Elastic Compute Cloud.
  7750. //
  7751. // Deletes the specified route from the specified route table.
  7752. //
  7753. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7754. // with awserr.Error's Code and Message methods to get detailed information about
  7755. // the error.
  7756. //
  7757. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7758. // API operation DeleteRoute for usage and error information.
  7759. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRoute
  7760. func (c *EC2) DeleteRoute(input *DeleteRouteInput) (*DeleteRouteOutput, error) {
  7761. req, out := c.DeleteRouteRequest(input)
  7762. return out, req.Send()
  7763. }
  7764. // DeleteRouteWithContext is the same as DeleteRoute with the addition of
  7765. // the ability to pass a context and additional request options.
  7766. //
  7767. // See DeleteRoute for details on how to use this API operation.
  7768. //
  7769. // The context must be non-nil and will be used for request cancellation. If
  7770. // the context is nil a panic will occur. In the future the SDK may create
  7771. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7772. // for more information on using Contexts.
  7773. func (c *EC2) DeleteRouteWithContext(ctx aws.Context, input *DeleteRouteInput, opts ...request.Option) (*DeleteRouteOutput, error) {
  7774. req, out := c.DeleteRouteRequest(input)
  7775. req.SetContext(ctx)
  7776. req.ApplyOptions(opts...)
  7777. return out, req.Send()
  7778. }
  7779. const opDeleteRouteTable = "DeleteRouteTable"
  7780. // DeleteRouteTableRequest generates a "aws/request.Request" representing the
  7781. // client's request for the DeleteRouteTable operation. The "output" return
  7782. // value will be populated with the request's response once the request completes
  7783. // successfully.
  7784. //
  7785. // Use "Send" method on the returned Request to send the API call to the service.
  7786. // the "output" return value is not valid until after Send returns without error.
  7787. //
  7788. // See DeleteRouteTable for more information on using the DeleteRouteTable
  7789. // API call, and error handling.
  7790. //
  7791. // This method is useful when you want to inject custom logic or configuration
  7792. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7793. //
  7794. //
  7795. // // Example sending a request using the DeleteRouteTableRequest method.
  7796. // req, resp := client.DeleteRouteTableRequest(params)
  7797. //
  7798. // err := req.Send()
  7799. // if err == nil { // resp is now filled
  7800. // fmt.Println(resp)
  7801. // }
  7802. //
  7803. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTable
  7804. func (c *EC2) DeleteRouteTableRequest(input *DeleteRouteTableInput) (req *request.Request, output *DeleteRouteTableOutput) {
  7805. op := &request.Operation{
  7806. Name: opDeleteRouteTable,
  7807. HTTPMethod: "POST",
  7808. HTTPPath: "/",
  7809. }
  7810. if input == nil {
  7811. input = &DeleteRouteTableInput{}
  7812. }
  7813. output = &DeleteRouteTableOutput{}
  7814. req = c.newRequest(op, input, output)
  7815. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  7816. return
  7817. }
  7818. // DeleteRouteTable API operation for Amazon Elastic Compute Cloud.
  7819. //
  7820. // Deletes the specified route table. You must disassociate the route table
  7821. // from any subnets before you can delete it. You can't delete the main route
  7822. // table.
  7823. //
  7824. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7825. // with awserr.Error's Code and Message methods to get detailed information about
  7826. // the error.
  7827. //
  7828. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7829. // API operation DeleteRouteTable for usage and error information.
  7830. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTable
  7831. func (c *EC2) DeleteRouteTable(input *DeleteRouteTableInput) (*DeleteRouteTableOutput, error) {
  7832. req, out := c.DeleteRouteTableRequest(input)
  7833. return out, req.Send()
  7834. }
  7835. // DeleteRouteTableWithContext is the same as DeleteRouteTable with the addition of
  7836. // the ability to pass a context and additional request options.
  7837. //
  7838. // See DeleteRouteTable for details on how to use this API operation.
  7839. //
  7840. // The context must be non-nil and will be used for request cancellation. If
  7841. // the context is nil a panic will occur. In the future the SDK may create
  7842. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7843. // for more information on using Contexts.
  7844. func (c *EC2) DeleteRouteTableWithContext(ctx aws.Context, input *DeleteRouteTableInput, opts ...request.Option) (*DeleteRouteTableOutput, error) {
  7845. req, out := c.DeleteRouteTableRequest(input)
  7846. req.SetContext(ctx)
  7847. req.ApplyOptions(opts...)
  7848. return out, req.Send()
  7849. }
  7850. const opDeleteSecurityGroup = "DeleteSecurityGroup"
  7851. // DeleteSecurityGroupRequest generates a "aws/request.Request" representing the
  7852. // client's request for the DeleteSecurityGroup operation. The "output" return
  7853. // value will be populated with the request's response once the request completes
  7854. // successfully.
  7855. //
  7856. // Use "Send" method on the returned Request to send the API call to the service.
  7857. // the "output" return value is not valid until after Send returns without error.
  7858. //
  7859. // See DeleteSecurityGroup for more information on using the DeleteSecurityGroup
  7860. // API call, and error handling.
  7861. //
  7862. // This method is useful when you want to inject custom logic or configuration
  7863. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7864. //
  7865. //
  7866. // // Example sending a request using the DeleteSecurityGroupRequest method.
  7867. // req, resp := client.DeleteSecurityGroupRequest(params)
  7868. //
  7869. // err := req.Send()
  7870. // if err == nil { // resp is now filled
  7871. // fmt.Println(resp)
  7872. // }
  7873. //
  7874. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroup
  7875. func (c *EC2) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req *request.Request, output *DeleteSecurityGroupOutput) {
  7876. op := &request.Operation{
  7877. Name: opDeleteSecurityGroup,
  7878. HTTPMethod: "POST",
  7879. HTTPPath: "/",
  7880. }
  7881. if input == nil {
  7882. input = &DeleteSecurityGroupInput{}
  7883. }
  7884. output = &DeleteSecurityGroupOutput{}
  7885. req = c.newRequest(op, input, output)
  7886. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  7887. return
  7888. }
  7889. // DeleteSecurityGroup API operation for Amazon Elastic Compute Cloud.
  7890. //
  7891. // Deletes a security group.
  7892. //
  7893. // If you attempt to delete a security group that is associated with an instance,
  7894. // or is referenced by another security group, the operation fails with InvalidGroup.InUse
  7895. // in EC2-Classic or DependencyViolation in EC2-VPC.
  7896. //
  7897. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7898. // with awserr.Error's Code and Message methods to get detailed information about
  7899. // the error.
  7900. //
  7901. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7902. // API operation DeleteSecurityGroup for usage and error information.
  7903. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroup
  7904. func (c *EC2) DeleteSecurityGroup(input *DeleteSecurityGroupInput) (*DeleteSecurityGroupOutput, error) {
  7905. req, out := c.DeleteSecurityGroupRequest(input)
  7906. return out, req.Send()
  7907. }
  7908. // DeleteSecurityGroupWithContext is the same as DeleteSecurityGroup with the addition of
  7909. // the ability to pass a context and additional request options.
  7910. //
  7911. // See DeleteSecurityGroup for details on how to use this API operation.
  7912. //
  7913. // The context must be non-nil and will be used for request cancellation. If
  7914. // the context is nil a panic will occur. In the future the SDK may create
  7915. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7916. // for more information on using Contexts.
  7917. func (c *EC2) DeleteSecurityGroupWithContext(ctx aws.Context, input *DeleteSecurityGroupInput, opts ...request.Option) (*DeleteSecurityGroupOutput, error) {
  7918. req, out := c.DeleteSecurityGroupRequest(input)
  7919. req.SetContext(ctx)
  7920. req.ApplyOptions(opts...)
  7921. return out, req.Send()
  7922. }
  7923. const opDeleteSnapshot = "DeleteSnapshot"
  7924. // DeleteSnapshotRequest generates a "aws/request.Request" representing the
  7925. // client's request for the DeleteSnapshot operation. The "output" return
  7926. // value will be populated with the request's response once the request completes
  7927. // successfully.
  7928. //
  7929. // Use "Send" method on the returned Request to send the API call to the service.
  7930. // the "output" return value is not valid until after Send returns without error.
  7931. //
  7932. // See DeleteSnapshot for more information on using the DeleteSnapshot
  7933. // API call, and error handling.
  7934. //
  7935. // This method is useful when you want to inject custom logic or configuration
  7936. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7937. //
  7938. //
  7939. // // Example sending a request using the DeleteSnapshotRequest method.
  7940. // req, resp := client.DeleteSnapshotRequest(params)
  7941. //
  7942. // err := req.Send()
  7943. // if err == nil { // resp is now filled
  7944. // fmt.Println(resp)
  7945. // }
  7946. //
  7947. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshot
  7948. func (c *EC2) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Request, output *DeleteSnapshotOutput) {
  7949. op := &request.Operation{
  7950. Name: opDeleteSnapshot,
  7951. HTTPMethod: "POST",
  7952. HTTPPath: "/",
  7953. }
  7954. if input == nil {
  7955. input = &DeleteSnapshotInput{}
  7956. }
  7957. output = &DeleteSnapshotOutput{}
  7958. req = c.newRequest(op, input, output)
  7959. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  7960. return
  7961. }
  7962. // DeleteSnapshot API operation for Amazon Elastic Compute Cloud.
  7963. //
  7964. // Deletes the specified snapshot.
  7965. //
  7966. // When you make periodic snapshots of a volume, the snapshots are incremental,
  7967. // and only the blocks on the device that have changed since your last snapshot
  7968. // are saved in the new snapshot. When you delete a snapshot, only the data
  7969. // not needed for any other snapshot is removed. So regardless of which prior
  7970. // snapshots have been deleted, all active snapshots will have access to all
  7971. // the information needed to restore the volume.
  7972. //
  7973. // You cannot delete a snapshot of the root device of an EBS volume used by
  7974. // a registered AMI. You must first de-register the AMI before you can delete
  7975. // the snapshot.
  7976. //
  7977. // For more information, see Deleting an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-snapshot.html)
  7978. // in the Amazon Elastic Compute Cloud User Guide.
  7979. //
  7980. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7981. // with awserr.Error's Code and Message methods to get detailed information about
  7982. // the error.
  7983. //
  7984. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7985. // API operation DeleteSnapshot for usage and error information.
  7986. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshot
  7987. func (c *EC2) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) {
  7988. req, out := c.DeleteSnapshotRequest(input)
  7989. return out, req.Send()
  7990. }
  7991. // DeleteSnapshotWithContext is the same as DeleteSnapshot with the addition of
  7992. // the ability to pass a context and additional request options.
  7993. //
  7994. // See DeleteSnapshot for details on how to use this API operation.
  7995. //
  7996. // The context must be non-nil and will be used for request cancellation. If
  7997. // the context is nil a panic will occur. In the future the SDK may create
  7998. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7999. // for more information on using Contexts.
  8000. func (c *EC2) DeleteSnapshotWithContext(ctx aws.Context, input *DeleteSnapshotInput, opts ...request.Option) (*DeleteSnapshotOutput, error) {
  8001. req, out := c.DeleteSnapshotRequest(input)
  8002. req.SetContext(ctx)
  8003. req.ApplyOptions(opts...)
  8004. return out, req.Send()
  8005. }
  8006. const opDeleteSpotDatafeedSubscription = "DeleteSpotDatafeedSubscription"
  8007. // DeleteSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  8008. // client's request for the DeleteSpotDatafeedSubscription operation. The "output" return
  8009. // value will be populated with the request's response once the request completes
  8010. // successfully.
  8011. //
  8012. // Use "Send" method on the returned Request to send the API call to the service.
  8013. // the "output" return value is not valid until after Send returns without error.
  8014. //
  8015. // See DeleteSpotDatafeedSubscription for more information on using the DeleteSpotDatafeedSubscription
  8016. // API call, and error handling.
  8017. //
  8018. // This method is useful when you want to inject custom logic or configuration
  8019. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8020. //
  8021. //
  8022. // // Example sending a request using the DeleteSpotDatafeedSubscriptionRequest method.
  8023. // req, resp := client.DeleteSpotDatafeedSubscriptionRequest(params)
  8024. //
  8025. // err := req.Send()
  8026. // if err == nil { // resp is now filled
  8027. // fmt.Println(resp)
  8028. // }
  8029. //
  8030. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscription
  8031. func (c *EC2) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSubscriptionInput) (req *request.Request, output *DeleteSpotDatafeedSubscriptionOutput) {
  8032. op := &request.Operation{
  8033. Name: opDeleteSpotDatafeedSubscription,
  8034. HTTPMethod: "POST",
  8035. HTTPPath: "/",
  8036. }
  8037. if input == nil {
  8038. input = &DeleteSpotDatafeedSubscriptionInput{}
  8039. }
  8040. output = &DeleteSpotDatafeedSubscriptionOutput{}
  8041. req = c.newRequest(op, input, output)
  8042. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  8043. return
  8044. }
  8045. // DeleteSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud.
  8046. //
  8047. // Deletes the data feed for Spot Instances.
  8048. //
  8049. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8050. // with awserr.Error's Code and Message methods to get detailed information about
  8051. // the error.
  8052. //
  8053. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8054. // API operation DeleteSpotDatafeedSubscription for usage and error information.
  8055. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscription
  8056. func (c *EC2) DeleteSpotDatafeedSubscription(input *DeleteSpotDatafeedSubscriptionInput) (*DeleteSpotDatafeedSubscriptionOutput, error) {
  8057. req, out := c.DeleteSpotDatafeedSubscriptionRequest(input)
  8058. return out, req.Send()
  8059. }
  8060. // DeleteSpotDatafeedSubscriptionWithContext is the same as DeleteSpotDatafeedSubscription with the addition of
  8061. // the ability to pass a context and additional request options.
  8062. //
  8063. // See DeleteSpotDatafeedSubscription for details on how to use this API operation.
  8064. //
  8065. // The context must be non-nil and will be used for request cancellation. If
  8066. // the context is nil a panic will occur. In the future the SDK may create
  8067. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8068. // for more information on using Contexts.
  8069. func (c *EC2) DeleteSpotDatafeedSubscriptionWithContext(ctx aws.Context, input *DeleteSpotDatafeedSubscriptionInput, opts ...request.Option) (*DeleteSpotDatafeedSubscriptionOutput, error) {
  8070. req, out := c.DeleteSpotDatafeedSubscriptionRequest(input)
  8071. req.SetContext(ctx)
  8072. req.ApplyOptions(opts...)
  8073. return out, req.Send()
  8074. }
  8075. const opDeleteSubnet = "DeleteSubnet"
  8076. // DeleteSubnetRequest generates a "aws/request.Request" representing the
  8077. // client's request for the DeleteSubnet operation. The "output" return
  8078. // value will be populated with the request's response once the request completes
  8079. // successfully.
  8080. //
  8081. // Use "Send" method on the returned Request to send the API call to the service.
  8082. // the "output" return value is not valid until after Send returns without error.
  8083. //
  8084. // See DeleteSubnet for more information on using the DeleteSubnet
  8085. // API call, and error handling.
  8086. //
  8087. // This method is useful when you want to inject custom logic or configuration
  8088. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8089. //
  8090. //
  8091. // // Example sending a request using the DeleteSubnetRequest method.
  8092. // req, resp := client.DeleteSubnetRequest(params)
  8093. //
  8094. // err := req.Send()
  8095. // if err == nil { // resp is now filled
  8096. // fmt.Println(resp)
  8097. // }
  8098. //
  8099. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnet
  8100. func (c *EC2) DeleteSubnetRequest(input *DeleteSubnetInput) (req *request.Request, output *DeleteSubnetOutput) {
  8101. op := &request.Operation{
  8102. Name: opDeleteSubnet,
  8103. HTTPMethod: "POST",
  8104. HTTPPath: "/",
  8105. }
  8106. if input == nil {
  8107. input = &DeleteSubnetInput{}
  8108. }
  8109. output = &DeleteSubnetOutput{}
  8110. req = c.newRequest(op, input, output)
  8111. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  8112. return
  8113. }
  8114. // DeleteSubnet API operation for Amazon Elastic Compute Cloud.
  8115. //
  8116. // Deletes the specified subnet. You must terminate all running instances in
  8117. // the subnet before you can delete the subnet.
  8118. //
  8119. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8120. // with awserr.Error's Code and Message methods to get detailed information about
  8121. // the error.
  8122. //
  8123. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8124. // API operation DeleteSubnet for usage and error information.
  8125. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnet
  8126. func (c *EC2) DeleteSubnet(input *DeleteSubnetInput) (*DeleteSubnetOutput, error) {
  8127. req, out := c.DeleteSubnetRequest(input)
  8128. return out, req.Send()
  8129. }
  8130. // DeleteSubnetWithContext is the same as DeleteSubnet with the addition of
  8131. // the ability to pass a context and additional request options.
  8132. //
  8133. // See DeleteSubnet for details on how to use this API operation.
  8134. //
  8135. // The context must be non-nil and will be used for request cancellation. If
  8136. // the context is nil a panic will occur. In the future the SDK may create
  8137. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8138. // for more information on using Contexts.
  8139. func (c *EC2) DeleteSubnetWithContext(ctx aws.Context, input *DeleteSubnetInput, opts ...request.Option) (*DeleteSubnetOutput, error) {
  8140. req, out := c.DeleteSubnetRequest(input)
  8141. req.SetContext(ctx)
  8142. req.ApplyOptions(opts...)
  8143. return out, req.Send()
  8144. }
  8145. const opDeleteTags = "DeleteTags"
  8146. // DeleteTagsRequest generates a "aws/request.Request" representing the
  8147. // client's request for the DeleteTags operation. The "output" return
  8148. // value will be populated with the request's response once the request completes
  8149. // successfully.
  8150. //
  8151. // Use "Send" method on the returned Request to send the API call to the service.
  8152. // the "output" return value is not valid until after Send returns without error.
  8153. //
  8154. // See DeleteTags for more information on using the DeleteTags
  8155. // API call, and error handling.
  8156. //
  8157. // This method is useful when you want to inject custom logic or configuration
  8158. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8159. //
  8160. //
  8161. // // Example sending a request using the DeleteTagsRequest method.
  8162. // req, resp := client.DeleteTagsRequest(params)
  8163. //
  8164. // err := req.Send()
  8165. // if err == nil { // resp is now filled
  8166. // fmt.Println(resp)
  8167. // }
  8168. //
  8169. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTags
  8170. func (c *EC2) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
  8171. op := &request.Operation{
  8172. Name: opDeleteTags,
  8173. HTTPMethod: "POST",
  8174. HTTPPath: "/",
  8175. }
  8176. if input == nil {
  8177. input = &DeleteTagsInput{}
  8178. }
  8179. output = &DeleteTagsOutput{}
  8180. req = c.newRequest(op, input, output)
  8181. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  8182. return
  8183. }
  8184. // DeleteTags API operation for Amazon Elastic Compute Cloud.
  8185. //
  8186. // Deletes the specified set of tags from the specified set of resources.
  8187. //
  8188. // To list the current tags, use DescribeTags. For more information about tags,
  8189. // see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  8190. // in the Amazon Elastic Compute Cloud User Guide.
  8191. //
  8192. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8193. // with awserr.Error's Code and Message methods to get detailed information about
  8194. // the error.
  8195. //
  8196. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8197. // API operation DeleteTags for usage and error information.
  8198. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTags
  8199. func (c *EC2) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
  8200. req, out := c.DeleteTagsRequest(input)
  8201. return out, req.Send()
  8202. }
  8203. // DeleteTagsWithContext is the same as DeleteTags with the addition of
  8204. // the ability to pass a context and additional request options.
  8205. //
  8206. // See DeleteTags for details on how to use this API operation.
  8207. //
  8208. // The context must be non-nil and will be used for request cancellation. If
  8209. // the context is nil a panic will occur. In the future the SDK may create
  8210. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8211. // for more information on using Contexts.
  8212. func (c *EC2) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) {
  8213. req, out := c.DeleteTagsRequest(input)
  8214. req.SetContext(ctx)
  8215. req.ApplyOptions(opts...)
  8216. return out, req.Send()
  8217. }
  8218. const opDeleteTransitGateway = "DeleteTransitGateway"
  8219. // DeleteTransitGatewayRequest generates a "aws/request.Request" representing the
  8220. // client's request for the DeleteTransitGateway operation. The "output" return
  8221. // value will be populated with the request's response once the request completes
  8222. // successfully.
  8223. //
  8224. // Use "Send" method on the returned Request to send the API call to the service.
  8225. // the "output" return value is not valid until after Send returns without error.
  8226. //
  8227. // See DeleteTransitGateway for more information on using the DeleteTransitGateway
  8228. // API call, and error handling.
  8229. //
  8230. // This method is useful when you want to inject custom logic or configuration
  8231. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8232. //
  8233. //
  8234. // // Example sending a request using the DeleteTransitGatewayRequest method.
  8235. // req, resp := client.DeleteTransitGatewayRequest(params)
  8236. //
  8237. // err := req.Send()
  8238. // if err == nil { // resp is now filled
  8239. // fmt.Println(resp)
  8240. // }
  8241. //
  8242. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGateway
  8243. func (c *EC2) DeleteTransitGatewayRequest(input *DeleteTransitGatewayInput) (req *request.Request, output *DeleteTransitGatewayOutput) {
  8244. op := &request.Operation{
  8245. Name: opDeleteTransitGateway,
  8246. HTTPMethod: "POST",
  8247. HTTPPath: "/",
  8248. }
  8249. if input == nil {
  8250. input = &DeleteTransitGatewayInput{}
  8251. }
  8252. output = &DeleteTransitGatewayOutput{}
  8253. req = c.newRequest(op, input, output)
  8254. return
  8255. }
  8256. // DeleteTransitGateway API operation for Amazon Elastic Compute Cloud.
  8257. //
  8258. // Deletes the specified transit gateway.
  8259. //
  8260. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8261. // with awserr.Error's Code and Message methods to get detailed information about
  8262. // the error.
  8263. //
  8264. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8265. // API operation DeleteTransitGateway for usage and error information.
  8266. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGateway
  8267. func (c *EC2) DeleteTransitGateway(input *DeleteTransitGatewayInput) (*DeleteTransitGatewayOutput, error) {
  8268. req, out := c.DeleteTransitGatewayRequest(input)
  8269. return out, req.Send()
  8270. }
  8271. // DeleteTransitGatewayWithContext is the same as DeleteTransitGateway with the addition of
  8272. // the ability to pass a context and additional request options.
  8273. //
  8274. // See DeleteTransitGateway for details on how to use this API operation.
  8275. //
  8276. // The context must be non-nil and will be used for request cancellation. If
  8277. // the context is nil a panic will occur. In the future the SDK may create
  8278. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8279. // for more information on using Contexts.
  8280. func (c *EC2) DeleteTransitGatewayWithContext(ctx aws.Context, input *DeleteTransitGatewayInput, opts ...request.Option) (*DeleteTransitGatewayOutput, error) {
  8281. req, out := c.DeleteTransitGatewayRequest(input)
  8282. req.SetContext(ctx)
  8283. req.ApplyOptions(opts...)
  8284. return out, req.Send()
  8285. }
  8286. const opDeleteTransitGatewayRoute = "DeleteTransitGatewayRoute"
  8287. // DeleteTransitGatewayRouteRequest generates a "aws/request.Request" representing the
  8288. // client's request for the DeleteTransitGatewayRoute operation. The "output" return
  8289. // value will be populated with the request's response once the request completes
  8290. // successfully.
  8291. //
  8292. // Use "Send" method on the returned Request to send the API call to the service.
  8293. // the "output" return value is not valid until after Send returns without error.
  8294. //
  8295. // See DeleteTransitGatewayRoute for more information on using the DeleteTransitGatewayRoute
  8296. // API call, and error handling.
  8297. //
  8298. // This method is useful when you want to inject custom logic or configuration
  8299. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8300. //
  8301. //
  8302. // // Example sending a request using the DeleteTransitGatewayRouteRequest method.
  8303. // req, resp := client.DeleteTransitGatewayRouteRequest(params)
  8304. //
  8305. // err := req.Send()
  8306. // if err == nil { // resp is now filled
  8307. // fmt.Println(resp)
  8308. // }
  8309. //
  8310. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayRoute
  8311. func (c *EC2) DeleteTransitGatewayRouteRequest(input *DeleteTransitGatewayRouteInput) (req *request.Request, output *DeleteTransitGatewayRouteOutput) {
  8312. op := &request.Operation{
  8313. Name: opDeleteTransitGatewayRoute,
  8314. HTTPMethod: "POST",
  8315. HTTPPath: "/",
  8316. }
  8317. if input == nil {
  8318. input = &DeleteTransitGatewayRouteInput{}
  8319. }
  8320. output = &DeleteTransitGatewayRouteOutput{}
  8321. req = c.newRequest(op, input, output)
  8322. return
  8323. }
  8324. // DeleteTransitGatewayRoute API operation for Amazon Elastic Compute Cloud.
  8325. //
  8326. // Deletes the specified route from the specified transit gateway route table.
  8327. //
  8328. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8329. // with awserr.Error's Code and Message methods to get detailed information about
  8330. // the error.
  8331. //
  8332. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8333. // API operation DeleteTransitGatewayRoute for usage and error information.
  8334. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayRoute
  8335. func (c *EC2) DeleteTransitGatewayRoute(input *DeleteTransitGatewayRouteInput) (*DeleteTransitGatewayRouteOutput, error) {
  8336. req, out := c.DeleteTransitGatewayRouteRequest(input)
  8337. return out, req.Send()
  8338. }
  8339. // DeleteTransitGatewayRouteWithContext is the same as DeleteTransitGatewayRoute with the addition of
  8340. // the ability to pass a context and additional request options.
  8341. //
  8342. // See DeleteTransitGatewayRoute for details on how to use this API operation.
  8343. //
  8344. // The context must be non-nil and will be used for request cancellation. If
  8345. // the context is nil a panic will occur. In the future the SDK may create
  8346. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8347. // for more information on using Contexts.
  8348. func (c *EC2) DeleteTransitGatewayRouteWithContext(ctx aws.Context, input *DeleteTransitGatewayRouteInput, opts ...request.Option) (*DeleteTransitGatewayRouteOutput, error) {
  8349. req, out := c.DeleteTransitGatewayRouteRequest(input)
  8350. req.SetContext(ctx)
  8351. req.ApplyOptions(opts...)
  8352. return out, req.Send()
  8353. }
  8354. const opDeleteTransitGatewayRouteTable = "DeleteTransitGatewayRouteTable"
  8355. // DeleteTransitGatewayRouteTableRequest generates a "aws/request.Request" representing the
  8356. // client's request for the DeleteTransitGatewayRouteTable operation. The "output" return
  8357. // value will be populated with the request's response once the request completes
  8358. // successfully.
  8359. //
  8360. // Use "Send" method on the returned Request to send the API call to the service.
  8361. // the "output" return value is not valid until after Send returns without error.
  8362. //
  8363. // See DeleteTransitGatewayRouteTable for more information on using the DeleteTransitGatewayRouteTable
  8364. // API call, and error handling.
  8365. //
  8366. // This method is useful when you want to inject custom logic or configuration
  8367. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8368. //
  8369. //
  8370. // // Example sending a request using the DeleteTransitGatewayRouteTableRequest method.
  8371. // req, resp := client.DeleteTransitGatewayRouteTableRequest(params)
  8372. //
  8373. // err := req.Send()
  8374. // if err == nil { // resp is now filled
  8375. // fmt.Println(resp)
  8376. // }
  8377. //
  8378. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayRouteTable
  8379. func (c *EC2) DeleteTransitGatewayRouteTableRequest(input *DeleteTransitGatewayRouteTableInput) (req *request.Request, output *DeleteTransitGatewayRouteTableOutput) {
  8380. op := &request.Operation{
  8381. Name: opDeleteTransitGatewayRouteTable,
  8382. HTTPMethod: "POST",
  8383. HTTPPath: "/",
  8384. }
  8385. if input == nil {
  8386. input = &DeleteTransitGatewayRouteTableInput{}
  8387. }
  8388. output = &DeleteTransitGatewayRouteTableOutput{}
  8389. req = c.newRequest(op, input, output)
  8390. return
  8391. }
  8392. // DeleteTransitGatewayRouteTable API operation for Amazon Elastic Compute Cloud.
  8393. //
  8394. // Deletes the specified transit gateway route table. You must disassociate
  8395. // the route table from any transit gateway route tables before you can delete
  8396. // it.
  8397. //
  8398. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8399. // with awserr.Error's Code and Message methods to get detailed information about
  8400. // the error.
  8401. //
  8402. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8403. // API operation DeleteTransitGatewayRouteTable for usage and error information.
  8404. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayRouteTable
  8405. func (c *EC2) DeleteTransitGatewayRouteTable(input *DeleteTransitGatewayRouteTableInput) (*DeleteTransitGatewayRouteTableOutput, error) {
  8406. req, out := c.DeleteTransitGatewayRouteTableRequest(input)
  8407. return out, req.Send()
  8408. }
  8409. // DeleteTransitGatewayRouteTableWithContext is the same as DeleteTransitGatewayRouteTable with the addition of
  8410. // the ability to pass a context and additional request options.
  8411. //
  8412. // See DeleteTransitGatewayRouteTable for details on how to use this API operation.
  8413. //
  8414. // The context must be non-nil and will be used for request cancellation. If
  8415. // the context is nil a panic will occur. In the future the SDK may create
  8416. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8417. // for more information on using Contexts.
  8418. func (c *EC2) DeleteTransitGatewayRouteTableWithContext(ctx aws.Context, input *DeleteTransitGatewayRouteTableInput, opts ...request.Option) (*DeleteTransitGatewayRouteTableOutput, error) {
  8419. req, out := c.DeleteTransitGatewayRouteTableRequest(input)
  8420. req.SetContext(ctx)
  8421. req.ApplyOptions(opts...)
  8422. return out, req.Send()
  8423. }
  8424. const opDeleteTransitGatewayVpcAttachment = "DeleteTransitGatewayVpcAttachment"
  8425. // DeleteTransitGatewayVpcAttachmentRequest generates a "aws/request.Request" representing the
  8426. // client's request for the DeleteTransitGatewayVpcAttachment operation. The "output" return
  8427. // value will be populated with the request's response once the request completes
  8428. // successfully.
  8429. //
  8430. // Use "Send" method on the returned Request to send the API call to the service.
  8431. // the "output" return value is not valid until after Send returns without error.
  8432. //
  8433. // See DeleteTransitGatewayVpcAttachment for more information on using the DeleteTransitGatewayVpcAttachment
  8434. // API call, and error handling.
  8435. //
  8436. // This method is useful when you want to inject custom logic or configuration
  8437. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8438. //
  8439. //
  8440. // // Example sending a request using the DeleteTransitGatewayVpcAttachmentRequest method.
  8441. // req, resp := client.DeleteTransitGatewayVpcAttachmentRequest(params)
  8442. //
  8443. // err := req.Send()
  8444. // if err == nil { // resp is now filled
  8445. // fmt.Println(resp)
  8446. // }
  8447. //
  8448. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayVpcAttachment
  8449. func (c *EC2) DeleteTransitGatewayVpcAttachmentRequest(input *DeleteTransitGatewayVpcAttachmentInput) (req *request.Request, output *DeleteTransitGatewayVpcAttachmentOutput) {
  8450. op := &request.Operation{
  8451. Name: opDeleteTransitGatewayVpcAttachment,
  8452. HTTPMethod: "POST",
  8453. HTTPPath: "/",
  8454. }
  8455. if input == nil {
  8456. input = &DeleteTransitGatewayVpcAttachmentInput{}
  8457. }
  8458. output = &DeleteTransitGatewayVpcAttachmentOutput{}
  8459. req = c.newRequest(op, input, output)
  8460. return
  8461. }
  8462. // DeleteTransitGatewayVpcAttachment API operation for Amazon Elastic Compute Cloud.
  8463. //
  8464. // Deletes the specified VPC attachment.
  8465. //
  8466. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8467. // with awserr.Error's Code and Message methods to get detailed information about
  8468. // the error.
  8469. //
  8470. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8471. // API operation DeleteTransitGatewayVpcAttachment for usage and error information.
  8472. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayVpcAttachment
  8473. func (c *EC2) DeleteTransitGatewayVpcAttachment(input *DeleteTransitGatewayVpcAttachmentInput) (*DeleteTransitGatewayVpcAttachmentOutput, error) {
  8474. req, out := c.DeleteTransitGatewayVpcAttachmentRequest(input)
  8475. return out, req.Send()
  8476. }
  8477. // DeleteTransitGatewayVpcAttachmentWithContext is the same as DeleteTransitGatewayVpcAttachment with the addition of
  8478. // the ability to pass a context and additional request options.
  8479. //
  8480. // See DeleteTransitGatewayVpcAttachment for details on how to use this API operation.
  8481. //
  8482. // The context must be non-nil and will be used for request cancellation. If
  8483. // the context is nil a panic will occur. In the future the SDK may create
  8484. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8485. // for more information on using Contexts.
  8486. func (c *EC2) DeleteTransitGatewayVpcAttachmentWithContext(ctx aws.Context, input *DeleteTransitGatewayVpcAttachmentInput, opts ...request.Option) (*DeleteTransitGatewayVpcAttachmentOutput, error) {
  8487. req, out := c.DeleteTransitGatewayVpcAttachmentRequest(input)
  8488. req.SetContext(ctx)
  8489. req.ApplyOptions(opts...)
  8490. return out, req.Send()
  8491. }
  8492. const opDeleteVolume = "DeleteVolume"
  8493. // DeleteVolumeRequest generates a "aws/request.Request" representing the
  8494. // client's request for the DeleteVolume operation. The "output" return
  8495. // value will be populated with the request's response once the request completes
  8496. // successfully.
  8497. //
  8498. // Use "Send" method on the returned Request to send the API call to the service.
  8499. // the "output" return value is not valid until after Send returns without error.
  8500. //
  8501. // See DeleteVolume for more information on using the DeleteVolume
  8502. // API call, and error handling.
  8503. //
  8504. // This method is useful when you want to inject custom logic or configuration
  8505. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8506. //
  8507. //
  8508. // // Example sending a request using the DeleteVolumeRequest method.
  8509. // req, resp := client.DeleteVolumeRequest(params)
  8510. //
  8511. // err := req.Send()
  8512. // if err == nil { // resp is now filled
  8513. // fmt.Println(resp)
  8514. // }
  8515. //
  8516. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolume
  8517. func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Request, output *DeleteVolumeOutput) {
  8518. op := &request.Operation{
  8519. Name: opDeleteVolume,
  8520. HTTPMethod: "POST",
  8521. HTTPPath: "/",
  8522. }
  8523. if input == nil {
  8524. input = &DeleteVolumeInput{}
  8525. }
  8526. output = &DeleteVolumeOutput{}
  8527. req = c.newRequest(op, input, output)
  8528. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  8529. return
  8530. }
  8531. // DeleteVolume API operation for Amazon Elastic Compute Cloud.
  8532. //
  8533. // Deletes the specified EBS volume. The volume must be in the available state
  8534. // (not attached to an instance).
  8535. //
  8536. // The volume can remain in the deleting state for several minutes.
  8537. //
  8538. // For more information, see Deleting an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html)
  8539. // in the Amazon Elastic Compute Cloud User Guide.
  8540. //
  8541. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8542. // with awserr.Error's Code and Message methods to get detailed information about
  8543. // the error.
  8544. //
  8545. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8546. // API operation DeleteVolume for usage and error information.
  8547. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolume
  8548. func (c *EC2) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) {
  8549. req, out := c.DeleteVolumeRequest(input)
  8550. return out, req.Send()
  8551. }
  8552. // DeleteVolumeWithContext is the same as DeleteVolume with the addition of
  8553. // the ability to pass a context and additional request options.
  8554. //
  8555. // See DeleteVolume for details on how to use this API operation.
  8556. //
  8557. // The context must be non-nil and will be used for request cancellation. If
  8558. // the context is nil a panic will occur. In the future the SDK may create
  8559. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8560. // for more information on using Contexts.
  8561. func (c *EC2) DeleteVolumeWithContext(ctx aws.Context, input *DeleteVolumeInput, opts ...request.Option) (*DeleteVolumeOutput, error) {
  8562. req, out := c.DeleteVolumeRequest(input)
  8563. req.SetContext(ctx)
  8564. req.ApplyOptions(opts...)
  8565. return out, req.Send()
  8566. }
  8567. const opDeleteVpc = "DeleteVpc"
  8568. // DeleteVpcRequest generates a "aws/request.Request" representing the
  8569. // client's request for the DeleteVpc operation. The "output" return
  8570. // value will be populated with the request's response once the request completes
  8571. // successfully.
  8572. //
  8573. // Use "Send" method on the returned Request to send the API call to the service.
  8574. // the "output" return value is not valid until after Send returns without error.
  8575. //
  8576. // See DeleteVpc for more information on using the DeleteVpc
  8577. // API call, and error handling.
  8578. //
  8579. // This method is useful when you want to inject custom logic or configuration
  8580. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8581. //
  8582. //
  8583. // // Example sending a request using the DeleteVpcRequest method.
  8584. // req, resp := client.DeleteVpcRequest(params)
  8585. //
  8586. // err := req.Send()
  8587. // if err == nil { // resp is now filled
  8588. // fmt.Println(resp)
  8589. // }
  8590. //
  8591. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpc
  8592. func (c *EC2) DeleteVpcRequest(input *DeleteVpcInput) (req *request.Request, output *DeleteVpcOutput) {
  8593. op := &request.Operation{
  8594. Name: opDeleteVpc,
  8595. HTTPMethod: "POST",
  8596. HTTPPath: "/",
  8597. }
  8598. if input == nil {
  8599. input = &DeleteVpcInput{}
  8600. }
  8601. output = &DeleteVpcOutput{}
  8602. req = c.newRequest(op, input, output)
  8603. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  8604. return
  8605. }
  8606. // DeleteVpc API operation for Amazon Elastic Compute Cloud.
  8607. //
  8608. // Deletes the specified VPC. You must detach or delete all gateways and resources
  8609. // that are associated with the VPC before you can delete it. For example, you
  8610. // must terminate all instances running in the VPC, delete all security groups
  8611. // associated with the VPC (except the default one), delete all route tables
  8612. // associated with the VPC (except the default one), and so on.
  8613. //
  8614. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8615. // with awserr.Error's Code and Message methods to get detailed information about
  8616. // the error.
  8617. //
  8618. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8619. // API operation DeleteVpc for usage and error information.
  8620. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpc
  8621. func (c *EC2) DeleteVpc(input *DeleteVpcInput) (*DeleteVpcOutput, error) {
  8622. req, out := c.DeleteVpcRequest(input)
  8623. return out, req.Send()
  8624. }
  8625. // DeleteVpcWithContext is the same as DeleteVpc with the addition of
  8626. // the ability to pass a context and additional request options.
  8627. //
  8628. // See DeleteVpc for details on how to use this API operation.
  8629. //
  8630. // The context must be non-nil and will be used for request cancellation. If
  8631. // the context is nil a panic will occur. In the future the SDK may create
  8632. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8633. // for more information on using Contexts.
  8634. func (c *EC2) DeleteVpcWithContext(ctx aws.Context, input *DeleteVpcInput, opts ...request.Option) (*DeleteVpcOutput, error) {
  8635. req, out := c.DeleteVpcRequest(input)
  8636. req.SetContext(ctx)
  8637. req.ApplyOptions(opts...)
  8638. return out, req.Send()
  8639. }
  8640. const opDeleteVpcEndpointConnectionNotifications = "DeleteVpcEndpointConnectionNotifications"
  8641. // DeleteVpcEndpointConnectionNotificationsRequest generates a "aws/request.Request" representing the
  8642. // client's request for the DeleteVpcEndpointConnectionNotifications operation. The "output" return
  8643. // value will be populated with the request's response once the request completes
  8644. // successfully.
  8645. //
  8646. // Use "Send" method on the returned Request to send the API call to the service.
  8647. // the "output" return value is not valid until after Send returns without error.
  8648. //
  8649. // See DeleteVpcEndpointConnectionNotifications for more information on using the DeleteVpcEndpointConnectionNotifications
  8650. // API call, and error handling.
  8651. //
  8652. // This method is useful when you want to inject custom logic or configuration
  8653. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8654. //
  8655. //
  8656. // // Example sending a request using the DeleteVpcEndpointConnectionNotificationsRequest method.
  8657. // req, resp := client.DeleteVpcEndpointConnectionNotificationsRequest(params)
  8658. //
  8659. // err := req.Send()
  8660. // if err == nil { // resp is now filled
  8661. // fmt.Println(resp)
  8662. // }
  8663. //
  8664. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointConnectionNotifications
  8665. func (c *EC2) DeleteVpcEndpointConnectionNotificationsRequest(input *DeleteVpcEndpointConnectionNotificationsInput) (req *request.Request, output *DeleteVpcEndpointConnectionNotificationsOutput) {
  8666. op := &request.Operation{
  8667. Name: opDeleteVpcEndpointConnectionNotifications,
  8668. HTTPMethod: "POST",
  8669. HTTPPath: "/",
  8670. }
  8671. if input == nil {
  8672. input = &DeleteVpcEndpointConnectionNotificationsInput{}
  8673. }
  8674. output = &DeleteVpcEndpointConnectionNotificationsOutput{}
  8675. req = c.newRequest(op, input, output)
  8676. return
  8677. }
  8678. // DeleteVpcEndpointConnectionNotifications API operation for Amazon Elastic Compute Cloud.
  8679. //
  8680. // Deletes one or more VPC endpoint connection notifications.
  8681. //
  8682. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8683. // with awserr.Error's Code and Message methods to get detailed information about
  8684. // the error.
  8685. //
  8686. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8687. // API operation DeleteVpcEndpointConnectionNotifications for usage and error information.
  8688. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointConnectionNotifications
  8689. func (c *EC2) DeleteVpcEndpointConnectionNotifications(input *DeleteVpcEndpointConnectionNotificationsInput) (*DeleteVpcEndpointConnectionNotificationsOutput, error) {
  8690. req, out := c.DeleteVpcEndpointConnectionNotificationsRequest(input)
  8691. return out, req.Send()
  8692. }
  8693. // DeleteVpcEndpointConnectionNotificationsWithContext is the same as DeleteVpcEndpointConnectionNotifications with the addition of
  8694. // the ability to pass a context and additional request options.
  8695. //
  8696. // See DeleteVpcEndpointConnectionNotifications for details on how to use this API operation.
  8697. //
  8698. // The context must be non-nil and will be used for request cancellation. If
  8699. // the context is nil a panic will occur. In the future the SDK may create
  8700. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8701. // for more information on using Contexts.
  8702. func (c *EC2) DeleteVpcEndpointConnectionNotificationsWithContext(ctx aws.Context, input *DeleteVpcEndpointConnectionNotificationsInput, opts ...request.Option) (*DeleteVpcEndpointConnectionNotificationsOutput, error) {
  8703. req, out := c.DeleteVpcEndpointConnectionNotificationsRequest(input)
  8704. req.SetContext(ctx)
  8705. req.ApplyOptions(opts...)
  8706. return out, req.Send()
  8707. }
  8708. const opDeleteVpcEndpointServiceConfigurations = "DeleteVpcEndpointServiceConfigurations"
  8709. // DeleteVpcEndpointServiceConfigurationsRequest generates a "aws/request.Request" representing the
  8710. // client's request for the DeleteVpcEndpointServiceConfigurations operation. The "output" return
  8711. // value will be populated with the request's response once the request completes
  8712. // successfully.
  8713. //
  8714. // Use "Send" method on the returned Request to send the API call to the service.
  8715. // the "output" return value is not valid until after Send returns without error.
  8716. //
  8717. // See DeleteVpcEndpointServiceConfigurations for more information on using the DeleteVpcEndpointServiceConfigurations
  8718. // API call, and error handling.
  8719. //
  8720. // This method is useful when you want to inject custom logic or configuration
  8721. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8722. //
  8723. //
  8724. // // Example sending a request using the DeleteVpcEndpointServiceConfigurationsRequest method.
  8725. // req, resp := client.DeleteVpcEndpointServiceConfigurationsRequest(params)
  8726. //
  8727. // err := req.Send()
  8728. // if err == nil { // resp is now filled
  8729. // fmt.Println(resp)
  8730. // }
  8731. //
  8732. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointServiceConfigurations
  8733. func (c *EC2) DeleteVpcEndpointServiceConfigurationsRequest(input *DeleteVpcEndpointServiceConfigurationsInput) (req *request.Request, output *DeleteVpcEndpointServiceConfigurationsOutput) {
  8734. op := &request.Operation{
  8735. Name: opDeleteVpcEndpointServiceConfigurations,
  8736. HTTPMethod: "POST",
  8737. HTTPPath: "/",
  8738. }
  8739. if input == nil {
  8740. input = &DeleteVpcEndpointServiceConfigurationsInput{}
  8741. }
  8742. output = &DeleteVpcEndpointServiceConfigurationsOutput{}
  8743. req = c.newRequest(op, input, output)
  8744. return
  8745. }
  8746. // DeleteVpcEndpointServiceConfigurations API operation for Amazon Elastic Compute Cloud.
  8747. //
  8748. // Deletes one or more VPC endpoint service configurations in your account.
  8749. // Before you delete the endpoint service configuration, you must reject any
  8750. // Available or PendingAcceptance interface endpoint connections that are attached
  8751. // to the service.
  8752. //
  8753. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8754. // with awserr.Error's Code and Message methods to get detailed information about
  8755. // the error.
  8756. //
  8757. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8758. // API operation DeleteVpcEndpointServiceConfigurations for usage and error information.
  8759. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointServiceConfigurations
  8760. func (c *EC2) DeleteVpcEndpointServiceConfigurations(input *DeleteVpcEndpointServiceConfigurationsInput) (*DeleteVpcEndpointServiceConfigurationsOutput, error) {
  8761. req, out := c.DeleteVpcEndpointServiceConfigurationsRequest(input)
  8762. return out, req.Send()
  8763. }
  8764. // DeleteVpcEndpointServiceConfigurationsWithContext is the same as DeleteVpcEndpointServiceConfigurations with the addition of
  8765. // the ability to pass a context and additional request options.
  8766. //
  8767. // See DeleteVpcEndpointServiceConfigurations for details on how to use this API operation.
  8768. //
  8769. // The context must be non-nil and will be used for request cancellation. If
  8770. // the context is nil a panic will occur. In the future the SDK may create
  8771. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8772. // for more information on using Contexts.
  8773. func (c *EC2) DeleteVpcEndpointServiceConfigurationsWithContext(ctx aws.Context, input *DeleteVpcEndpointServiceConfigurationsInput, opts ...request.Option) (*DeleteVpcEndpointServiceConfigurationsOutput, error) {
  8774. req, out := c.DeleteVpcEndpointServiceConfigurationsRequest(input)
  8775. req.SetContext(ctx)
  8776. req.ApplyOptions(opts...)
  8777. return out, req.Send()
  8778. }
  8779. const opDeleteVpcEndpoints = "DeleteVpcEndpoints"
  8780. // DeleteVpcEndpointsRequest generates a "aws/request.Request" representing the
  8781. // client's request for the DeleteVpcEndpoints operation. The "output" return
  8782. // value will be populated with the request's response once the request completes
  8783. // successfully.
  8784. //
  8785. // Use "Send" method on the returned Request to send the API call to the service.
  8786. // the "output" return value is not valid until after Send returns without error.
  8787. //
  8788. // See DeleteVpcEndpoints for more information on using the DeleteVpcEndpoints
  8789. // API call, and error handling.
  8790. //
  8791. // This method is useful when you want to inject custom logic or configuration
  8792. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8793. //
  8794. //
  8795. // // Example sending a request using the DeleteVpcEndpointsRequest method.
  8796. // req, resp := client.DeleteVpcEndpointsRequest(params)
  8797. //
  8798. // err := req.Send()
  8799. // if err == nil { // resp is now filled
  8800. // fmt.Println(resp)
  8801. // }
  8802. //
  8803. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpoints
  8804. func (c *EC2) DeleteVpcEndpointsRequest(input *DeleteVpcEndpointsInput) (req *request.Request, output *DeleteVpcEndpointsOutput) {
  8805. op := &request.Operation{
  8806. Name: opDeleteVpcEndpoints,
  8807. HTTPMethod: "POST",
  8808. HTTPPath: "/",
  8809. }
  8810. if input == nil {
  8811. input = &DeleteVpcEndpointsInput{}
  8812. }
  8813. output = &DeleteVpcEndpointsOutput{}
  8814. req = c.newRequest(op, input, output)
  8815. return
  8816. }
  8817. // DeleteVpcEndpoints API operation for Amazon Elastic Compute Cloud.
  8818. //
  8819. // Deletes one or more specified VPC endpoints. Deleting a gateway endpoint
  8820. // also deletes the endpoint routes in the route tables that were associated
  8821. // with the endpoint. Deleting an interface endpoint deletes the endpoint network
  8822. // interfaces.
  8823. //
  8824. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8825. // with awserr.Error's Code and Message methods to get detailed information about
  8826. // the error.
  8827. //
  8828. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8829. // API operation DeleteVpcEndpoints for usage and error information.
  8830. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpoints
  8831. func (c *EC2) DeleteVpcEndpoints(input *DeleteVpcEndpointsInput) (*DeleteVpcEndpointsOutput, error) {
  8832. req, out := c.DeleteVpcEndpointsRequest(input)
  8833. return out, req.Send()
  8834. }
  8835. // DeleteVpcEndpointsWithContext is the same as DeleteVpcEndpoints with the addition of
  8836. // the ability to pass a context and additional request options.
  8837. //
  8838. // See DeleteVpcEndpoints for details on how to use this API operation.
  8839. //
  8840. // The context must be non-nil and will be used for request cancellation. If
  8841. // the context is nil a panic will occur. In the future the SDK may create
  8842. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8843. // for more information on using Contexts.
  8844. func (c *EC2) DeleteVpcEndpointsWithContext(ctx aws.Context, input *DeleteVpcEndpointsInput, opts ...request.Option) (*DeleteVpcEndpointsOutput, error) {
  8845. req, out := c.DeleteVpcEndpointsRequest(input)
  8846. req.SetContext(ctx)
  8847. req.ApplyOptions(opts...)
  8848. return out, req.Send()
  8849. }
  8850. const opDeleteVpcPeeringConnection = "DeleteVpcPeeringConnection"
  8851. // DeleteVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  8852. // client's request for the DeleteVpcPeeringConnection operation. The "output" return
  8853. // value will be populated with the request's response once the request completes
  8854. // successfully.
  8855. //
  8856. // Use "Send" method on the returned Request to send the API call to the service.
  8857. // the "output" return value is not valid until after Send returns without error.
  8858. //
  8859. // See DeleteVpcPeeringConnection for more information on using the DeleteVpcPeeringConnection
  8860. // API call, and error handling.
  8861. //
  8862. // This method is useful when you want to inject custom logic or configuration
  8863. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8864. //
  8865. //
  8866. // // Example sending a request using the DeleteVpcPeeringConnectionRequest method.
  8867. // req, resp := client.DeleteVpcPeeringConnectionRequest(params)
  8868. //
  8869. // err := req.Send()
  8870. // if err == nil { // resp is now filled
  8871. // fmt.Println(resp)
  8872. // }
  8873. //
  8874. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnection
  8875. func (c *EC2) DeleteVpcPeeringConnectionRequest(input *DeleteVpcPeeringConnectionInput) (req *request.Request, output *DeleteVpcPeeringConnectionOutput) {
  8876. op := &request.Operation{
  8877. Name: opDeleteVpcPeeringConnection,
  8878. HTTPMethod: "POST",
  8879. HTTPPath: "/",
  8880. }
  8881. if input == nil {
  8882. input = &DeleteVpcPeeringConnectionInput{}
  8883. }
  8884. output = &DeleteVpcPeeringConnectionOutput{}
  8885. req = c.newRequest(op, input, output)
  8886. return
  8887. }
  8888. // DeleteVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  8889. //
  8890. // Deletes a VPC peering connection. Either the owner of the requester VPC or
  8891. // the owner of the accepter VPC can delete the VPC peering connection if it's
  8892. // in the active state. The owner of the requester VPC can delete a VPC peering
  8893. // connection in the pending-acceptance state. You cannot delete a VPC peering
  8894. // connection that's in the failed state.
  8895. //
  8896. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8897. // with awserr.Error's Code and Message methods to get detailed information about
  8898. // the error.
  8899. //
  8900. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8901. // API operation DeleteVpcPeeringConnection for usage and error information.
  8902. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnection
  8903. func (c *EC2) DeleteVpcPeeringConnection(input *DeleteVpcPeeringConnectionInput) (*DeleteVpcPeeringConnectionOutput, error) {
  8904. req, out := c.DeleteVpcPeeringConnectionRequest(input)
  8905. return out, req.Send()
  8906. }
  8907. // DeleteVpcPeeringConnectionWithContext is the same as DeleteVpcPeeringConnection with the addition of
  8908. // the ability to pass a context and additional request options.
  8909. //
  8910. // See DeleteVpcPeeringConnection for details on how to use this API operation.
  8911. //
  8912. // The context must be non-nil and will be used for request cancellation. If
  8913. // the context is nil a panic will occur. In the future the SDK may create
  8914. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8915. // for more information on using Contexts.
  8916. func (c *EC2) DeleteVpcPeeringConnectionWithContext(ctx aws.Context, input *DeleteVpcPeeringConnectionInput, opts ...request.Option) (*DeleteVpcPeeringConnectionOutput, error) {
  8917. req, out := c.DeleteVpcPeeringConnectionRequest(input)
  8918. req.SetContext(ctx)
  8919. req.ApplyOptions(opts...)
  8920. return out, req.Send()
  8921. }
  8922. const opDeleteVpnConnection = "DeleteVpnConnection"
  8923. // DeleteVpnConnectionRequest generates a "aws/request.Request" representing the
  8924. // client's request for the DeleteVpnConnection operation. The "output" return
  8925. // value will be populated with the request's response once the request completes
  8926. // successfully.
  8927. //
  8928. // Use "Send" method on the returned Request to send the API call to the service.
  8929. // the "output" return value is not valid until after Send returns without error.
  8930. //
  8931. // See DeleteVpnConnection for more information on using the DeleteVpnConnection
  8932. // API call, and error handling.
  8933. //
  8934. // This method is useful when you want to inject custom logic or configuration
  8935. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8936. //
  8937. //
  8938. // // Example sending a request using the DeleteVpnConnectionRequest method.
  8939. // req, resp := client.DeleteVpnConnectionRequest(params)
  8940. //
  8941. // err := req.Send()
  8942. // if err == nil { // resp is now filled
  8943. // fmt.Println(resp)
  8944. // }
  8945. //
  8946. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnection
  8947. func (c *EC2) DeleteVpnConnectionRequest(input *DeleteVpnConnectionInput) (req *request.Request, output *DeleteVpnConnectionOutput) {
  8948. op := &request.Operation{
  8949. Name: opDeleteVpnConnection,
  8950. HTTPMethod: "POST",
  8951. HTTPPath: "/",
  8952. }
  8953. if input == nil {
  8954. input = &DeleteVpnConnectionInput{}
  8955. }
  8956. output = &DeleteVpnConnectionOutput{}
  8957. req = c.newRequest(op, input, output)
  8958. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  8959. return
  8960. }
  8961. // DeleteVpnConnection API operation for Amazon Elastic Compute Cloud.
  8962. //
  8963. // Deletes the specified VPN connection.
  8964. //
  8965. // If you're deleting the VPC and its associated components, we recommend that
  8966. // you detach the virtual private gateway from the VPC and delete the VPC before
  8967. // deleting the VPN connection. If you believe that the tunnel credentials for
  8968. // your VPN connection have been compromised, you can delete the VPN connection
  8969. // and create a new one that has new keys, without needing to delete the VPC
  8970. // or virtual private gateway. If you create a new VPN connection, you must
  8971. // reconfigure the customer gateway using the new configuration information
  8972. // returned with the new VPN connection ID.
  8973. //
  8974. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8975. // with awserr.Error's Code and Message methods to get detailed information about
  8976. // the error.
  8977. //
  8978. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8979. // API operation DeleteVpnConnection for usage and error information.
  8980. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnection
  8981. func (c *EC2) DeleteVpnConnection(input *DeleteVpnConnectionInput) (*DeleteVpnConnectionOutput, error) {
  8982. req, out := c.DeleteVpnConnectionRequest(input)
  8983. return out, req.Send()
  8984. }
  8985. // DeleteVpnConnectionWithContext is the same as DeleteVpnConnection with the addition of
  8986. // the ability to pass a context and additional request options.
  8987. //
  8988. // See DeleteVpnConnection for details on how to use this API operation.
  8989. //
  8990. // The context must be non-nil and will be used for request cancellation. If
  8991. // the context is nil a panic will occur. In the future the SDK may create
  8992. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8993. // for more information on using Contexts.
  8994. func (c *EC2) DeleteVpnConnectionWithContext(ctx aws.Context, input *DeleteVpnConnectionInput, opts ...request.Option) (*DeleteVpnConnectionOutput, error) {
  8995. req, out := c.DeleteVpnConnectionRequest(input)
  8996. req.SetContext(ctx)
  8997. req.ApplyOptions(opts...)
  8998. return out, req.Send()
  8999. }
  9000. const opDeleteVpnConnectionRoute = "DeleteVpnConnectionRoute"
  9001. // DeleteVpnConnectionRouteRequest generates a "aws/request.Request" representing the
  9002. // client's request for the DeleteVpnConnectionRoute operation. The "output" return
  9003. // value will be populated with the request's response once the request completes
  9004. // successfully.
  9005. //
  9006. // Use "Send" method on the returned Request to send the API call to the service.
  9007. // the "output" return value is not valid until after Send returns without error.
  9008. //
  9009. // See DeleteVpnConnectionRoute for more information on using the DeleteVpnConnectionRoute
  9010. // API call, and error handling.
  9011. //
  9012. // This method is useful when you want to inject custom logic or configuration
  9013. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9014. //
  9015. //
  9016. // // Example sending a request using the DeleteVpnConnectionRouteRequest method.
  9017. // req, resp := client.DeleteVpnConnectionRouteRequest(params)
  9018. //
  9019. // err := req.Send()
  9020. // if err == nil { // resp is now filled
  9021. // fmt.Println(resp)
  9022. // }
  9023. //
  9024. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRoute
  9025. func (c *EC2) DeleteVpnConnectionRouteRequest(input *DeleteVpnConnectionRouteInput) (req *request.Request, output *DeleteVpnConnectionRouteOutput) {
  9026. op := &request.Operation{
  9027. Name: opDeleteVpnConnectionRoute,
  9028. HTTPMethod: "POST",
  9029. HTTPPath: "/",
  9030. }
  9031. if input == nil {
  9032. input = &DeleteVpnConnectionRouteInput{}
  9033. }
  9034. output = &DeleteVpnConnectionRouteOutput{}
  9035. req = c.newRequest(op, input, output)
  9036. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  9037. return
  9038. }
  9039. // DeleteVpnConnectionRoute API operation for Amazon Elastic Compute Cloud.
  9040. //
  9041. // Deletes the specified static route associated with a VPN connection between
  9042. // an existing virtual private gateway and a VPN customer gateway. The static
  9043. // route allows traffic to be routed from the virtual private gateway to the
  9044. // VPN customer gateway.
  9045. //
  9046. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9047. // with awserr.Error's Code and Message methods to get detailed information about
  9048. // the error.
  9049. //
  9050. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9051. // API operation DeleteVpnConnectionRoute for usage and error information.
  9052. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRoute
  9053. func (c *EC2) DeleteVpnConnectionRoute(input *DeleteVpnConnectionRouteInput) (*DeleteVpnConnectionRouteOutput, error) {
  9054. req, out := c.DeleteVpnConnectionRouteRequest(input)
  9055. return out, req.Send()
  9056. }
  9057. // DeleteVpnConnectionRouteWithContext is the same as DeleteVpnConnectionRoute with the addition of
  9058. // the ability to pass a context and additional request options.
  9059. //
  9060. // See DeleteVpnConnectionRoute for details on how to use this API operation.
  9061. //
  9062. // The context must be non-nil and will be used for request cancellation. If
  9063. // the context is nil a panic will occur. In the future the SDK may create
  9064. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9065. // for more information on using Contexts.
  9066. func (c *EC2) DeleteVpnConnectionRouteWithContext(ctx aws.Context, input *DeleteVpnConnectionRouteInput, opts ...request.Option) (*DeleteVpnConnectionRouteOutput, error) {
  9067. req, out := c.DeleteVpnConnectionRouteRequest(input)
  9068. req.SetContext(ctx)
  9069. req.ApplyOptions(opts...)
  9070. return out, req.Send()
  9071. }
  9072. const opDeleteVpnGateway = "DeleteVpnGateway"
  9073. // DeleteVpnGatewayRequest generates a "aws/request.Request" representing the
  9074. // client's request for the DeleteVpnGateway operation. The "output" return
  9075. // value will be populated with the request's response once the request completes
  9076. // successfully.
  9077. //
  9078. // Use "Send" method on the returned Request to send the API call to the service.
  9079. // the "output" return value is not valid until after Send returns without error.
  9080. //
  9081. // See DeleteVpnGateway for more information on using the DeleteVpnGateway
  9082. // API call, and error handling.
  9083. //
  9084. // This method is useful when you want to inject custom logic or configuration
  9085. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9086. //
  9087. //
  9088. // // Example sending a request using the DeleteVpnGatewayRequest method.
  9089. // req, resp := client.DeleteVpnGatewayRequest(params)
  9090. //
  9091. // err := req.Send()
  9092. // if err == nil { // resp is now filled
  9093. // fmt.Println(resp)
  9094. // }
  9095. //
  9096. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGateway
  9097. func (c *EC2) DeleteVpnGatewayRequest(input *DeleteVpnGatewayInput) (req *request.Request, output *DeleteVpnGatewayOutput) {
  9098. op := &request.Operation{
  9099. Name: opDeleteVpnGateway,
  9100. HTTPMethod: "POST",
  9101. HTTPPath: "/",
  9102. }
  9103. if input == nil {
  9104. input = &DeleteVpnGatewayInput{}
  9105. }
  9106. output = &DeleteVpnGatewayOutput{}
  9107. req = c.newRequest(op, input, output)
  9108. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  9109. return
  9110. }
  9111. // DeleteVpnGateway API operation for Amazon Elastic Compute Cloud.
  9112. //
  9113. // Deletes the specified virtual private gateway. We recommend that before you
  9114. // delete a virtual private gateway, you detach it from the VPC and delete the
  9115. // VPN connection. Note that you don't need to delete the virtual private gateway
  9116. // if you plan to delete and recreate the VPN connection between your VPC and
  9117. // your network.
  9118. //
  9119. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9120. // with awserr.Error's Code and Message methods to get detailed information about
  9121. // the error.
  9122. //
  9123. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9124. // API operation DeleteVpnGateway for usage and error information.
  9125. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGateway
  9126. func (c *EC2) DeleteVpnGateway(input *DeleteVpnGatewayInput) (*DeleteVpnGatewayOutput, error) {
  9127. req, out := c.DeleteVpnGatewayRequest(input)
  9128. return out, req.Send()
  9129. }
  9130. // DeleteVpnGatewayWithContext is the same as DeleteVpnGateway with the addition of
  9131. // the ability to pass a context and additional request options.
  9132. //
  9133. // See DeleteVpnGateway for details on how to use this API operation.
  9134. //
  9135. // The context must be non-nil and will be used for request cancellation. If
  9136. // the context is nil a panic will occur. In the future the SDK may create
  9137. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9138. // for more information on using Contexts.
  9139. func (c *EC2) DeleteVpnGatewayWithContext(ctx aws.Context, input *DeleteVpnGatewayInput, opts ...request.Option) (*DeleteVpnGatewayOutput, error) {
  9140. req, out := c.DeleteVpnGatewayRequest(input)
  9141. req.SetContext(ctx)
  9142. req.ApplyOptions(opts...)
  9143. return out, req.Send()
  9144. }
  9145. const opDeprovisionByoipCidr = "DeprovisionByoipCidr"
  9146. // DeprovisionByoipCidrRequest generates a "aws/request.Request" representing the
  9147. // client's request for the DeprovisionByoipCidr operation. The "output" return
  9148. // value will be populated with the request's response once the request completes
  9149. // successfully.
  9150. //
  9151. // Use "Send" method on the returned Request to send the API call to the service.
  9152. // the "output" return value is not valid until after Send returns without error.
  9153. //
  9154. // See DeprovisionByoipCidr for more information on using the DeprovisionByoipCidr
  9155. // API call, and error handling.
  9156. //
  9157. // This method is useful when you want to inject custom logic or configuration
  9158. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9159. //
  9160. //
  9161. // // Example sending a request using the DeprovisionByoipCidrRequest method.
  9162. // req, resp := client.DeprovisionByoipCidrRequest(params)
  9163. //
  9164. // err := req.Send()
  9165. // if err == nil { // resp is now filled
  9166. // fmt.Println(resp)
  9167. // }
  9168. //
  9169. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeprovisionByoipCidr
  9170. func (c *EC2) DeprovisionByoipCidrRequest(input *DeprovisionByoipCidrInput) (req *request.Request, output *DeprovisionByoipCidrOutput) {
  9171. op := &request.Operation{
  9172. Name: opDeprovisionByoipCidr,
  9173. HTTPMethod: "POST",
  9174. HTTPPath: "/",
  9175. }
  9176. if input == nil {
  9177. input = &DeprovisionByoipCidrInput{}
  9178. }
  9179. output = &DeprovisionByoipCidrOutput{}
  9180. req = c.newRequest(op, input, output)
  9181. return
  9182. }
  9183. // DeprovisionByoipCidr API operation for Amazon Elastic Compute Cloud.
  9184. //
  9185. // Releases the specified address range that you provisioned for use with your
  9186. // AWS resources through bring your own IP addresses (BYOIP) and deletes the
  9187. // corresponding address pool.
  9188. //
  9189. // Before you can release an address range, you must stop advertising it using
  9190. // WithdrawByoipCidr and you must not have any IP addresses allocated from its
  9191. // address range.
  9192. //
  9193. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9194. // with awserr.Error's Code and Message methods to get detailed information about
  9195. // the error.
  9196. //
  9197. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9198. // API operation DeprovisionByoipCidr for usage and error information.
  9199. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeprovisionByoipCidr
  9200. func (c *EC2) DeprovisionByoipCidr(input *DeprovisionByoipCidrInput) (*DeprovisionByoipCidrOutput, error) {
  9201. req, out := c.DeprovisionByoipCidrRequest(input)
  9202. return out, req.Send()
  9203. }
  9204. // DeprovisionByoipCidrWithContext is the same as DeprovisionByoipCidr with the addition of
  9205. // the ability to pass a context and additional request options.
  9206. //
  9207. // See DeprovisionByoipCidr for details on how to use this API operation.
  9208. //
  9209. // The context must be non-nil and will be used for request cancellation. If
  9210. // the context is nil a panic will occur. In the future the SDK may create
  9211. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9212. // for more information on using Contexts.
  9213. func (c *EC2) DeprovisionByoipCidrWithContext(ctx aws.Context, input *DeprovisionByoipCidrInput, opts ...request.Option) (*DeprovisionByoipCidrOutput, error) {
  9214. req, out := c.DeprovisionByoipCidrRequest(input)
  9215. req.SetContext(ctx)
  9216. req.ApplyOptions(opts...)
  9217. return out, req.Send()
  9218. }
  9219. const opDeregisterImage = "DeregisterImage"
  9220. // DeregisterImageRequest generates a "aws/request.Request" representing the
  9221. // client's request for the DeregisterImage operation. The "output" return
  9222. // value will be populated with the request's response once the request completes
  9223. // successfully.
  9224. //
  9225. // Use "Send" method on the returned Request to send the API call to the service.
  9226. // the "output" return value is not valid until after Send returns without error.
  9227. //
  9228. // See DeregisterImage for more information on using the DeregisterImage
  9229. // API call, and error handling.
  9230. //
  9231. // This method is useful when you want to inject custom logic or configuration
  9232. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9233. //
  9234. //
  9235. // // Example sending a request using the DeregisterImageRequest method.
  9236. // req, resp := client.DeregisterImageRequest(params)
  9237. //
  9238. // err := req.Send()
  9239. // if err == nil { // resp is now filled
  9240. // fmt.Println(resp)
  9241. // }
  9242. //
  9243. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImage
  9244. func (c *EC2) DeregisterImageRequest(input *DeregisterImageInput) (req *request.Request, output *DeregisterImageOutput) {
  9245. op := &request.Operation{
  9246. Name: opDeregisterImage,
  9247. HTTPMethod: "POST",
  9248. HTTPPath: "/",
  9249. }
  9250. if input == nil {
  9251. input = &DeregisterImageInput{}
  9252. }
  9253. output = &DeregisterImageOutput{}
  9254. req = c.newRequest(op, input, output)
  9255. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  9256. return
  9257. }
  9258. // DeregisterImage API operation for Amazon Elastic Compute Cloud.
  9259. //
  9260. // Deregisters the specified AMI. After you deregister an AMI, it can't be used
  9261. // to launch new instances; however, it doesn't affect any instances that you've
  9262. // already launched from the AMI. You'll continue to incur usage costs for those
  9263. // instances until you terminate them.
  9264. //
  9265. // When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot
  9266. // that was created for the root volume of the instance during the AMI creation
  9267. // process. When you deregister an instance store-backed AMI, it doesn't affect
  9268. // the files that you uploaded to Amazon S3 when you created the AMI.
  9269. //
  9270. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9271. // with awserr.Error's Code and Message methods to get detailed information about
  9272. // the error.
  9273. //
  9274. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9275. // API operation DeregisterImage for usage and error information.
  9276. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImage
  9277. func (c *EC2) DeregisterImage(input *DeregisterImageInput) (*DeregisterImageOutput, error) {
  9278. req, out := c.DeregisterImageRequest(input)
  9279. return out, req.Send()
  9280. }
  9281. // DeregisterImageWithContext is the same as DeregisterImage with the addition of
  9282. // the ability to pass a context and additional request options.
  9283. //
  9284. // See DeregisterImage for details on how to use this API operation.
  9285. //
  9286. // The context must be non-nil and will be used for request cancellation. If
  9287. // the context is nil a panic will occur. In the future the SDK may create
  9288. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9289. // for more information on using Contexts.
  9290. func (c *EC2) DeregisterImageWithContext(ctx aws.Context, input *DeregisterImageInput, opts ...request.Option) (*DeregisterImageOutput, error) {
  9291. req, out := c.DeregisterImageRequest(input)
  9292. req.SetContext(ctx)
  9293. req.ApplyOptions(opts...)
  9294. return out, req.Send()
  9295. }
  9296. const opDescribeAccountAttributes = "DescribeAccountAttributes"
  9297. // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the
  9298. // client's request for the DescribeAccountAttributes operation. The "output" return
  9299. // value will be populated with the request's response once the request completes
  9300. // successfully.
  9301. //
  9302. // Use "Send" method on the returned Request to send the API call to the service.
  9303. // the "output" return value is not valid until after Send returns without error.
  9304. //
  9305. // See DescribeAccountAttributes for more information on using the DescribeAccountAttributes
  9306. // API call, and error handling.
  9307. //
  9308. // This method is useful when you want to inject custom logic or configuration
  9309. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9310. //
  9311. //
  9312. // // Example sending a request using the DescribeAccountAttributesRequest method.
  9313. // req, resp := client.DescribeAccountAttributesRequest(params)
  9314. //
  9315. // err := req.Send()
  9316. // if err == nil { // resp is now filled
  9317. // fmt.Println(resp)
  9318. // }
  9319. //
  9320. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributes
  9321. func (c *EC2) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) {
  9322. op := &request.Operation{
  9323. Name: opDescribeAccountAttributes,
  9324. HTTPMethod: "POST",
  9325. HTTPPath: "/",
  9326. }
  9327. if input == nil {
  9328. input = &DescribeAccountAttributesInput{}
  9329. }
  9330. output = &DescribeAccountAttributesOutput{}
  9331. req = c.newRequest(op, input, output)
  9332. return
  9333. }
  9334. // DescribeAccountAttributes API operation for Amazon Elastic Compute Cloud.
  9335. //
  9336. // Describes attributes of your AWS account. The following are the supported
  9337. // account attributes:
  9338. //
  9339. // * supported-platforms: Indicates whether your account can launch instances
  9340. // into EC2-Classic and EC2-VPC, or only into EC2-VPC.
  9341. //
  9342. // * default-vpc: The ID of the default VPC for your account, or none.
  9343. //
  9344. // * max-instances: The maximum number of On-Demand Instances that you can
  9345. // run.
  9346. //
  9347. // * vpc-max-security-groups-per-interface: The maximum number of security
  9348. // groups that you can assign to a network interface.
  9349. //
  9350. // * max-elastic-ips: The maximum number of Elastic IP addresses that you
  9351. // can allocate for use with EC2-Classic.
  9352. //
  9353. // * vpc-max-elastic-ips: The maximum number of Elastic IP addresses that
  9354. // you can allocate for use with EC2-VPC.
  9355. //
  9356. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9357. // with awserr.Error's Code and Message methods to get detailed information about
  9358. // the error.
  9359. //
  9360. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9361. // API operation DescribeAccountAttributes for usage and error information.
  9362. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributes
  9363. func (c *EC2) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) {
  9364. req, out := c.DescribeAccountAttributesRequest(input)
  9365. return out, req.Send()
  9366. }
  9367. // DescribeAccountAttributesWithContext is the same as DescribeAccountAttributes with the addition of
  9368. // the ability to pass a context and additional request options.
  9369. //
  9370. // See DescribeAccountAttributes for details on how to use this API operation.
  9371. //
  9372. // The context must be non-nil and will be used for request cancellation. If
  9373. // the context is nil a panic will occur. In the future the SDK may create
  9374. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9375. // for more information on using Contexts.
  9376. func (c *EC2) DescribeAccountAttributesWithContext(ctx aws.Context, input *DescribeAccountAttributesInput, opts ...request.Option) (*DescribeAccountAttributesOutput, error) {
  9377. req, out := c.DescribeAccountAttributesRequest(input)
  9378. req.SetContext(ctx)
  9379. req.ApplyOptions(opts...)
  9380. return out, req.Send()
  9381. }
  9382. const opDescribeAddresses = "DescribeAddresses"
  9383. // DescribeAddressesRequest generates a "aws/request.Request" representing the
  9384. // client's request for the DescribeAddresses operation. The "output" return
  9385. // value will be populated with the request's response once the request completes
  9386. // successfully.
  9387. //
  9388. // Use "Send" method on the returned Request to send the API call to the service.
  9389. // the "output" return value is not valid until after Send returns without error.
  9390. //
  9391. // See DescribeAddresses for more information on using the DescribeAddresses
  9392. // API call, and error handling.
  9393. //
  9394. // This method is useful when you want to inject custom logic or configuration
  9395. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9396. //
  9397. //
  9398. // // Example sending a request using the DescribeAddressesRequest method.
  9399. // req, resp := client.DescribeAddressesRequest(params)
  9400. //
  9401. // err := req.Send()
  9402. // if err == nil { // resp is now filled
  9403. // fmt.Println(resp)
  9404. // }
  9405. //
  9406. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddresses
  9407. func (c *EC2) DescribeAddressesRequest(input *DescribeAddressesInput) (req *request.Request, output *DescribeAddressesOutput) {
  9408. op := &request.Operation{
  9409. Name: opDescribeAddresses,
  9410. HTTPMethod: "POST",
  9411. HTTPPath: "/",
  9412. }
  9413. if input == nil {
  9414. input = &DescribeAddressesInput{}
  9415. }
  9416. output = &DescribeAddressesOutput{}
  9417. req = c.newRequest(op, input, output)
  9418. return
  9419. }
  9420. // DescribeAddresses API operation for Amazon Elastic Compute Cloud.
  9421. //
  9422. // Describes one or more of your Elastic IP addresses.
  9423. //
  9424. // An Elastic IP address is for use in either the EC2-Classic platform or in
  9425. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  9426. // in the Amazon Elastic Compute Cloud User Guide.
  9427. //
  9428. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9429. // with awserr.Error's Code and Message methods to get detailed information about
  9430. // the error.
  9431. //
  9432. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9433. // API operation DescribeAddresses for usage and error information.
  9434. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddresses
  9435. func (c *EC2) DescribeAddresses(input *DescribeAddressesInput) (*DescribeAddressesOutput, error) {
  9436. req, out := c.DescribeAddressesRequest(input)
  9437. return out, req.Send()
  9438. }
  9439. // DescribeAddressesWithContext is the same as DescribeAddresses with the addition of
  9440. // the ability to pass a context and additional request options.
  9441. //
  9442. // See DescribeAddresses for details on how to use this API operation.
  9443. //
  9444. // The context must be non-nil and will be used for request cancellation. If
  9445. // the context is nil a panic will occur. In the future the SDK may create
  9446. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9447. // for more information on using Contexts.
  9448. func (c *EC2) DescribeAddressesWithContext(ctx aws.Context, input *DescribeAddressesInput, opts ...request.Option) (*DescribeAddressesOutput, error) {
  9449. req, out := c.DescribeAddressesRequest(input)
  9450. req.SetContext(ctx)
  9451. req.ApplyOptions(opts...)
  9452. return out, req.Send()
  9453. }
  9454. const opDescribeAggregateIdFormat = "DescribeAggregateIdFormat"
  9455. // DescribeAggregateIdFormatRequest generates a "aws/request.Request" representing the
  9456. // client's request for the DescribeAggregateIdFormat operation. The "output" return
  9457. // value will be populated with the request's response once the request completes
  9458. // successfully.
  9459. //
  9460. // Use "Send" method on the returned Request to send the API call to the service.
  9461. // the "output" return value is not valid until after Send returns without error.
  9462. //
  9463. // See DescribeAggregateIdFormat for more information on using the DescribeAggregateIdFormat
  9464. // API call, and error handling.
  9465. //
  9466. // This method is useful when you want to inject custom logic or configuration
  9467. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9468. //
  9469. //
  9470. // // Example sending a request using the DescribeAggregateIdFormatRequest method.
  9471. // req, resp := client.DescribeAggregateIdFormatRequest(params)
  9472. //
  9473. // err := req.Send()
  9474. // if err == nil { // resp is now filled
  9475. // fmt.Println(resp)
  9476. // }
  9477. //
  9478. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAggregateIdFormat
  9479. func (c *EC2) DescribeAggregateIdFormatRequest(input *DescribeAggregateIdFormatInput) (req *request.Request, output *DescribeAggregateIdFormatOutput) {
  9480. op := &request.Operation{
  9481. Name: opDescribeAggregateIdFormat,
  9482. HTTPMethod: "POST",
  9483. HTTPPath: "/",
  9484. }
  9485. if input == nil {
  9486. input = &DescribeAggregateIdFormatInput{}
  9487. }
  9488. output = &DescribeAggregateIdFormatOutput{}
  9489. req = c.newRequest(op, input, output)
  9490. return
  9491. }
  9492. // DescribeAggregateIdFormat API operation for Amazon Elastic Compute Cloud.
  9493. //
  9494. // Describes the longer ID format settings for all resource types in a specific
  9495. // region. This request is useful for performing a quick audit to determine
  9496. // whether a specific region is fully opted in for longer IDs (17-character
  9497. // IDs).
  9498. //
  9499. // This request only returns information about resource types that support longer
  9500. // IDs.
  9501. //
  9502. // The following resource types support longer IDs: bundle | conversion-task
  9503. // | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association
  9504. // | export-task | flow-log | image | import-task | instance | internet-gateway
  9505. // | network-acl | network-acl-association | network-interface | network-interface-attachment
  9506. // | prefix-list | reservation | route-table | route-table-association | security-group
  9507. // | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  9508. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  9509. //
  9510. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9511. // with awserr.Error's Code and Message methods to get detailed information about
  9512. // the error.
  9513. //
  9514. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9515. // API operation DescribeAggregateIdFormat for usage and error information.
  9516. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAggregateIdFormat
  9517. func (c *EC2) DescribeAggregateIdFormat(input *DescribeAggregateIdFormatInput) (*DescribeAggregateIdFormatOutput, error) {
  9518. req, out := c.DescribeAggregateIdFormatRequest(input)
  9519. return out, req.Send()
  9520. }
  9521. // DescribeAggregateIdFormatWithContext is the same as DescribeAggregateIdFormat with the addition of
  9522. // the ability to pass a context and additional request options.
  9523. //
  9524. // See DescribeAggregateIdFormat for details on how to use this API operation.
  9525. //
  9526. // The context must be non-nil and will be used for request cancellation. If
  9527. // the context is nil a panic will occur. In the future the SDK may create
  9528. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9529. // for more information on using Contexts.
  9530. func (c *EC2) DescribeAggregateIdFormatWithContext(ctx aws.Context, input *DescribeAggregateIdFormatInput, opts ...request.Option) (*DescribeAggregateIdFormatOutput, error) {
  9531. req, out := c.DescribeAggregateIdFormatRequest(input)
  9532. req.SetContext(ctx)
  9533. req.ApplyOptions(opts...)
  9534. return out, req.Send()
  9535. }
  9536. const opDescribeAvailabilityZones = "DescribeAvailabilityZones"
  9537. // DescribeAvailabilityZonesRequest generates a "aws/request.Request" representing the
  9538. // client's request for the DescribeAvailabilityZones operation. The "output" return
  9539. // value will be populated with the request's response once the request completes
  9540. // successfully.
  9541. //
  9542. // Use "Send" method on the returned Request to send the API call to the service.
  9543. // the "output" return value is not valid until after Send returns without error.
  9544. //
  9545. // See DescribeAvailabilityZones for more information on using the DescribeAvailabilityZones
  9546. // API call, and error handling.
  9547. //
  9548. // This method is useful when you want to inject custom logic or configuration
  9549. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9550. //
  9551. //
  9552. // // Example sending a request using the DescribeAvailabilityZonesRequest method.
  9553. // req, resp := client.DescribeAvailabilityZonesRequest(params)
  9554. //
  9555. // err := req.Send()
  9556. // if err == nil { // resp is now filled
  9557. // fmt.Println(resp)
  9558. // }
  9559. //
  9560. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZones
  9561. func (c *EC2) DescribeAvailabilityZonesRequest(input *DescribeAvailabilityZonesInput) (req *request.Request, output *DescribeAvailabilityZonesOutput) {
  9562. op := &request.Operation{
  9563. Name: opDescribeAvailabilityZones,
  9564. HTTPMethod: "POST",
  9565. HTTPPath: "/",
  9566. }
  9567. if input == nil {
  9568. input = &DescribeAvailabilityZonesInput{}
  9569. }
  9570. output = &DescribeAvailabilityZonesOutput{}
  9571. req = c.newRequest(op, input, output)
  9572. return
  9573. }
  9574. // DescribeAvailabilityZones API operation for Amazon Elastic Compute Cloud.
  9575. //
  9576. // Describes one or more of the Availability Zones that are available to you.
  9577. // The results include zones only for the region you're currently using. If
  9578. // there is an event impacting an Availability Zone, you can use this request
  9579. // to view the state and any provided message for that Availability Zone.
  9580. //
  9581. // For more information, see Regions and Availability Zones (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html)
  9582. // in the Amazon Elastic Compute Cloud User Guide.
  9583. //
  9584. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9585. // with awserr.Error's Code and Message methods to get detailed information about
  9586. // the error.
  9587. //
  9588. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9589. // API operation DescribeAvailabilityZones for usage and error information.
  9590. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZones
  9591. func (c *EC2) DescribeAvailabilityZones(input *DescribeAvailabilityZonesInput) (*DescribeAvailabilityZonesOutput, error) {
  9592. req, out := c.DescribeAvailabilityZonesRequest(input)
  9593. return out, req.Send()
  9594. }
  9595. // DescribeAvailabilityZonesWithContext is the same as DescribeAvailabilityZones with the addition of
  9596. // the ability to pass a context and additional request options.
  9597. //
  9598. // See DescribeAvailabilityZones for details on how to use this API operation.
  9599. //
  9600. // The context must be non-nil and will be used for request cancellation. If
  9601. // the context is nil a panic will occur. In the future the SDK may create
  9602. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9603. // for more information on using Contexts.
  9604. func (c *EC2) DescribeAvailabilityZonesWithContext(ctx aws.Context, input *DescribeAvailabilityZonesInput, opts ...request.Option) (*DescribeAvailabilityZonesOutput, error) {
  9605. req, out := c.DescribeAvailabilityZonesRequest(input)
  9606. req.SetContext(ctx)
  9607. req.ApplyOptions(opts...)
  9608. return out, req.Send()
  9609. }
  9610. const opDescribeBundleTasks = "DescribeBundleTasks"
  9611. // DescribeBundleTasksRequest generates a "aws/request.Request" representing the
  9612. // client's request for the DescribeBundleTasks operation. The "output" return
  9613. // value will be populated with the request's response once the request completes
  9614. // successfully.
  9615. //
  9616. // Use "Send" method on the returned Request to send the API call to the service.
  9617. // the "output" return value is not valid until after Send returns without error.
  9618. //
  9619. // See DescribeBundleTasks for more information on using the DescribeBundleTasks
  9620. // API call, and error handling.
  9621. //
  9622. // This method is useful when you want to inject custom logic or configuration
  9623. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9624. //
  9625. //
  9626. // // Example sending a request using the DescribeBundleTasksRequest method.
  9627. // req, resp := client.DescribeBundleTasksRequest(params)
  9628. //
  9629. // err := req.Send()
  9630. // if err == nil { // resp is now filled
  9631. // fmt.Println(resp)
  9632. // }
  9633. //
  9634. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasks
  9635. func (c *EC2) DescribeBundleTasksRequest(input *DescribeBundleTasksInput) (req *request.Request, output *DescribeBundleTasksOutput) {
  9636. op := &request.Operation{
  9637. Name: opDescribeBundleTasks,
  9638. HTTPMethod: "POST",
  9639. HTTPPath: "/",
  9640. }
  9641. if input == nil {
  9642. input = &DescribeBundleTasksInput{}
  9643. }
  9644. output = &DescribeBundleTasksOutput{}
  9645. req = c.newRequest(op, input, output)
  9646. return
  9647. }
  9648. // DescribeBundleTasks API operation for Amazon Elastic Compute Cloud.
  9649. //
  9650. // Describes one or more of your bundling tasks.
  9651. //
  9652. // Completed bundle tasks are listed for only a limited time. If your bundle
  9653. // task is no longer in the list, you can still register an AMI from it. Just
  9654. // use RegisterImage with the Amazon S3 bucket name and image manifest name
  9655. // you provided to the bundle task.
  9656. //
  9657. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9658. // with awserr.Error's Code and Message methods to get detailed information about
  9659. // the error.
  9660. //
  9661. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9662. // API operation DescribeBundleTasks for usage and error information.
  9663. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasks
  9664. func (c *EC2) DescribeBundleTasks(input *DescribeBundleTasksInput) (*DescribeBundleTasksOutput, error) {
  9665. req, out := c.DescribeBundleTasksRequest(input)
  9666. return out, req.Send()
  9667. }
  9668. // DescribeBundleTasksWithContext is the same as DescribeBundleTasks with the addition of
  9669. // the ability to pass a context and additional request options.
  9670. //
  9671. // See DescribeBundleTasks for details on how to use this API operation.
  9672. //
  9673. // The context must be non-nil and will be used for request cancellation. If
  9674. // the context is nil a panic will occur. In the future the SDK may create
  9675. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9676. // for more information on using Contexts.
  9677. func (c *EC2) DescribeBundleTasksWithContext(ctx aws.Context, input *DescribeBundleTasksInput, opts ...request.Option) (*DescribeBundleTasksOutput, error) {
  9678. req, out := c.DescribeBundleTasksRequest(input)
  9679. req.SetContext(ctx)
  9680. req.ApplyOptions(opts...)
  9681. return out, req.Send()
  9682. }
  9683. const opDescribeByoipCidrs = "DescribeByoipCidrs"
  9684. // DescribeByoipCidrsRequest generates a "aws/request.Request" representing the
  9685. // client's request for the DescribeByoipCidrs operation. The "output" return
  9686. // value will be populated with the request's response once the request completes
  9687. // successfully.
  9688. //
  9689. // Use "Send" method on the returned Request to send the API call to the service.
  9690. // the "output" return value is not valid until after Send returns without error.
  9691. //
  9692. // See DescribeByoipCidrs for more information on using the DescribeByoipCidrs
  9693. // API call, and error handling.
  9694. //
  9695. // This method is useful when you want to inject custom logic or configuration
  9696. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9697. //
  9698. //
  9699. // // Example sending a request using the DescribeByoipCidrsRequest method.
  9700. // req, resp := client.DescribeByoipCidrsRequest(params)
  9701. //
  9702. // err := req.Send()
  9703. // if err == nil { // resp is now filled
  9704. // fmt.Println(resp)
  9705. // }
  9706. //
  9707. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeByoipCidrs
  9708. func (c *EC2) DescribeByoipCidrsRequest(input *DescribeByoipCidrsInput) (req *request.Request, output *DescribeByoipCidrsOutput) {
  9709. op := &request.Operation{
  9710. Name: opDescribeByoipCidrs,
  9711. HTTPMethod: "POST",
  9712. HTTPPath: "/",
  9713. }
  9714. if input == nil {
  9715. input = &DescribeByoipCidrsInput{}
  9716. }
  9717. output = &DescribeByoipCidrsOutput{}
  9718. req = c.newRequest(op, input, output)
  9719. return
  9720. }
  9721. // DescribeByoipCidrs API operation for Amazon Elastic Compute Cloud.
  9722. //
  9723. // Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.
  9724. //
  9725. // To describe the address pools that were created when you provisioned the
  9726. // address ranges, use DescribePublicIpv4Pools.
  9727. //
  9728. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9729. // with awserr.Error's Code and Message methods to get detailed information about
  9730. // the error.
  9731. //
  9732. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9733. // API operation DescribeByoipCidrs for usage and error information.
  9734. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeByoipCidrs
  9735. func (c *EC2) DescribeByoipCidrs(input *DescribeByoipCidrsInput) (*DescribeByoipCidrsOutput, error) {
  9736. req, out := c.DescribeByoipCidrsRequest(input)
  9737. return out, req.Send()
  9738. }
  9739. // DescribeByoipCidrsWithContext is the same as DescribeByoipCidrs with the addition of
  9740. // the ability to pass a context and additional request options.
  9741. //
  9742. // See DescribeByoipCidrs for details on how to use this API operation.
  9743. //
  9744. // The context must be non-nil and will be used for request cancellation. If
  9745. // the context is nil a panic will occur. In the future the SDK may create
  9746. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9747. // for more information on using Contexts.
  9748. func (c *EC2) DescribeByoipCidrsWithContext(ctx aws.Context, input *DescribeByoipCidrsInput, opts ...request.Option) (*DescribeByoipCidrsOutput, error) {
  9749. req, out := c.DescribeByoipCidrsRequest(input)
  9750. req.SetContext(ctx)
  9751. req.ApplyOptions(opts...)
  9752. return out, req.Send()
  9753. }
  9754. const opDescribeCapacityReservations = "DescribeCapacityReservations"
  9755. // DescribeCapacityReservationsRequest generates a "aws/request.Request" representing the
  9756. // client's request for the DescribeCapacityReservations operation. The "output" return
  9757. // value will be populated with the request's response once the request completes
  9758. // successfully.
  9759. //
  9760. // Use "Send" method on the returned Request to send the API call to the service.
  9761. // the "output" return value is not valid until after Send returns without error.
  9762. //
  9763. // See DescribeCapacityReservations for more information on using the DescribeCapacityReservations
  9764. // API call, and error handling.
  9765. //
  9766. // This method is useful when you want to inject custom logic or configuration
  9767. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9768. //
  9769. //
  9770. // // Example sending a request using the DescribeCapacityReservationsRequest method.
  9771. // req, resp := client.DescribeCapacityReservationsRequest(params)
  9772. //
  9773. // err := req.Send()
  9774. // if err == nil { // resp is now filled
  9775. // fmt.Println(resp)
  9776. // }
  9777. //
  9778. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityReservations
  9779. func (c *EC2) DescribeCapacityReservationsRequest(input *DescribeCapacityReservationsInput) (req *request.Request, output *DescribeCapacityReservationsOutput) {
  9780. op := &request.Operation{
  9781. Name: opDescribeCapacityReservations,
  9782. HTTPMethod: "POST",
  9783. HTTPPath: "/",
  9784. }
  9785. if input == nil {
  9786. input = &DescribeCapacityReservationsInput{}
  9787. }
  9788. output = &DescribeCapacityReservationsOutput{}
  9789. req = c.newRequest(op, input, output)
  9790. return
  9791. }
  9792. // DescribeCapacityReservations API operation for Amazon Elastic Compute Cloud.
  9793. //
  9794. // Describes one or more of your Capacity Reservations. The results describe
  9795. // only the Capacity Reservations in the AWS Region that you're currently using.
  9796. //
  9797. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9798. // with awserr.Error's Code and Message methods to get detailed information about
  9799. // the error.
  9800. //
  9801. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9802. // API operation DescribeCapacityReservations for usage and error information.
  9803. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityReservations
  9804. func (c *EC2) DescribeCapacityReservations(input *DescribeCapacityReservationsInput) (*DescribeCapacityReservationsOutput, error) {
  9805. req, out := c.DescribeCapacityReservationsRequest(input)
  9806. return out, req.Send()
  9807. }
  9808. // DescribeCapacityReservationsWithContext is the same as DescribeCapacityReservations with the addition of
  9809. // the ability to pass a context and additional request options.
  9810. //
  9811. // See DescribeCapacityReservations for details on how to use this API operation.
  9812. //
  9813. // The context must be non-nil and will be used for request cancellation. If
  9814. // the context is nil a panic will occur. In the future the SDK may create
  9815. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9816. // for more information on using Contexts.
  9817. func (c *EC2) DescribeCapacityReservationsWithContext(ctx aws.Context, input *DescribeCapacityReservationsInput, opts ...request.Option) (*DescribeCapacityReservationsOutput, error) {
  9818. req, out := c.DescribeCapacityReservationsRequest(input)
  9819. req.SetContext(ctx)
  9820. req.ApplyOptions(opts...)
  9821. return out, req.Send()
  9822. }
  9823. const opDescribeClassicLinkInstances = "DescribeClassicLinkInstances"
  9824. // DescribeClassicLinkInstancesRequest generates a "aws/request.Request" representing the
  9825. // client's request for the DescribeClassicLinkInstances operation. The "output" return
  9826. // value will be populated with the request's response once the request completes
  9827. // successfully.
  9828. //
  9829. // Use "Send" method on the returned Request to send the API call to the service.
  9830. // the "output" return value is not valid until after Send returns without error.
  9831. //
  9832. // See DescribeClassicLinkInstances for more information on using the DescribeClassicLinkInstances
  9833. // API call, and error handling.
  9834. //
  9835. // This method is useful when you want to inject custom logic or configuration
  9836. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9837. //
  9838. //
  9839. // // Example sending a request using the DescribeClassicLinkInstancesRequest method.
  9840. // req, resp := client.DescribeClassicLinkInstancesRequest(params)
  9841. //
  9842. // err := req.Send()
  9843. // if err == nil { // resp is now filled
  9844. // fmt.Println(resp)
  9845. // }
  9846. //
  9847. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstances
  9848. func (c *EC2) DescribeClassicLinkInstancesRequest(input *DescribeClassicLinkInstancesInput) (req *request.Request, output *DescribeClassicLinkInstancesOutput) {
  9849. op := &request.Operation{
  9850. Name: opDescribeClassicLinkInstances,
  9851. HTTPMethod: "POST",
  9852. HTTPPath: "/",
  9853. }
  9854. if input == nil {
  9855. input = &DescribeClassicLinkInstancesInput{}
  9856. }
  9857. output = &DescribeClassicLinkInstancesOutput{}
  9858. req = c.newRequest(op, input, output)
  9859. return
  9860. }
  9861. // DescribeClassicLinkInstances API operation for Amazon Elastic Compute Cloud.
  9862. //
  9863. // Describes one or more of your linked EC2-Classic instances. This request
  9864. // only returns information about EC2-Classic instances linked to a VPC through
  9865. // ClassicLink. You cannot use this request to return information about other
  9866. // instances.
  9867. //
  9868. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9869. // with awserr.Error's Code and Message methods to get detailed information about
  9870. // the error.
  9871. //
  9872. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9873. // API operation DescribeClassicLinkInstances for usage and error information.
  9874. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstances
  9875. func (c *EC2) DescribeClassicLinkInstances(input *DescribeClassicLinkInstancesInput) (*DescribeClassicLinkInstancesOutput, error) {
  9876. req, out := c.DescribeClassicLinkInstancesRequest(input)
  9877. return out, req.Send()
  9878. }
  9879. // DescribeClassicLinkInstancesWithContext is the same as DescribeClassicLinkInstances with the addition of
  9880. // the ability to pass a context and additional request options.
  9881. //
  9882. // See DescribeClassicLinkInstances for details on how to use this API operation.
  9883. //
  9884. // The context must be non-nil and will be used for request cancellation. If
  9885. // the context is nil a panic will occur. In the future the SDK may create
  9886. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9887. // for more information on using Contexts.
  9888. func (c *EC2) DescribeClassicLinkInstancesWithContext(ctx aws.Context, input *DescribeClassicLinkInstancesInput, opts ...request.Option) (*DescribeClassicLinkInstancesOutput, error) {
  9889. req, out := c.DescribeClassicLinkInstancesRequest(input)
  9890. req.SetContext(ctx)
  9891. req.ApplyOptions(opts...)
  9892. return out, req.Send()
  9893. }
  9894. const opDescribeClientVpnAuthorizationRules = "DescribeClientVpnAuthorizationRules"
  9895. // DescribeClientVpnAuthorizationRulesRequest generates a "aws/request.Request" representing the
  9896. // client's request for the DescribeClientVpnAuthorizationRules operation. The "output" return
  9897. // value will be populated with the request's response once the request completes
  9898. // successfully.
  9899. //
  9900. // Use "Send" method on the returned Request to send the API call to the service.
  9901. // the "output" return value is not valid until after Send returns without error.
  9902. //
  9903. // See DescribeClientVpnAuthorizationRules for more information on using the DescribeClientVpnAuthorizationRules
  9904. // API call, and error handling.
  9905. //
  9906. // This method is useful when you want to inject custom logic or configuration
  9907. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9908. //
  9909. //
  9910. // // Example sending a request using the DescribeClientVpnAuthorizationRulesRequest method.
  9911. // req, resp := client.DescribeClientVpnAuthorizationRulesRequest(params)
  9912. //
  9913. // err := req.Send()
  9914. // if err == nil { // resp is now filled
  9915. // fmt.Println(resp)
  9916. // }
  9917. //
  9918. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnAuthorizationRules
  9919. func (c *EC2) DescribeClientVpnAuthorizationRulesRequest(input *DescribeClientVpnAuthorizationRulesInput) (req *request.Request, output *DescribeClientVpnAuthorizationRulesOutput) {
  9920. op := &request.Operation{
  9921. Name: opDescribeClientVpnAuthorizationRules,
  9922. HTTPMethod: "POST",
  9923. HTTPPath: "/",
  9924. }
  9925. if input == nil {
  9926. input = &DescribeClientVpnAuthorizationRulesInput{}
  9927. }
  9928. output = &DescribeClientVpnAuthorizationRulesOutput{}
  9929. req = c.newRequest(op, input, output)
  9930. return
  9931. }
  9932. // DescribeClientVpnAuthorizationRules API operation for Amazon Elastic Compute Cloud.
  9933. //
  9934. // Describes the authorization rules for a specified Client VPN endpoint.
  9935. //
  9936. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9937. // with awserr.Error's Code and Message methods to get detailed information about
  9938. // the error.
  9939. //
  9940. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9941. // API operation DescribeClientVpnAuthorizationRules for usage and error information.
  9942. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnAuthorizationRules
  9943. func (c *EC2) DescribeClientVpnAuthorizationRules(input *DescribeClientVpnAuthorizationRulesInput) (*DescribeClientVpnAuthorizationRulesOutput, error) {
  9944. req, out := c.DescribeClientVpnAuthorizationRulesRequest(input)
  9945. return out, req.Send()
  9946. }
  9947. // DescribeClientVpnAuthorizationRulesWithContext is the same as DescribeClientVpnAuthorizationRules with the addition of
  9948. // the ability to pass a context and additional request options.
  9949. //
  9950. // See DescribeClientVpnAuthorizationRules for details on how to use this API operation.
  9951. //
  9952. // The context must be non-nil and will be used for request cancellation. If
  9953. // the context is nil a panic will occur. In the future the SDK may create
  9954. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9955. // for more information on using Contexts.
  9956. func (c *EC2) DescribeClientVpnAuthorizationRulesWithContext(ctx aws.Context, input *DescribeClientVpnAuthorizationRulesInput, opts ...request.Option) (*DescribeClientVpnAuthorizationRulesOutput, error) {
  9957. req, out := c.DescribeClientVpnAuthorizationRulesRequest(input)
  9958. req.SetContext(ctx)
  9959. req.ApplyOptions(opts...)
  9960. return out, req.Send()
  9961. }
  9962. const opDescribeClientVpnConnections = "DescribeClientVpnConnections"
  9963. // DescribeClientVpnConnectionsRequest generates a "aws/request.Request" representing the
  9964. // client's request for the DescribeClientVpnConnections operation. The "output" return
  9965. // value will be populated with the request's response once the request completes
  9966. // successfully.
  9967. //
  9968. // Use "Send" method on the returned Request to send the API call to the service.
  9969. // the "output" return value is not valid until after Send returns without error.
  9970. //
  9971. // See DescribeClientVpnConnections for more information on using the DescribeClientVpnConnections
  9972. // API call, and error handling.
  9973. //
  9974. // This method is useful when you want to inject custom logic or configuration
  9975. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9976. //
  9977. //
  9978. // // Example sending a request using the DescribeClientVpnConnectionsRequest method.
  9979. // req, resp := client.DescribeClientVpnConnectionsRequest(params)
  9980. //
  9981. // err := req.Send()
  9982. // if err == nil { // resp is now filled
  9983. // fmt.Println(resp)
  9984. // }
  9985. //
  9986. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnConnections
  9987. func (c *EC2) DescribeClientVpnConnectionsRequest(input *DescribeClientVpnConnectionsInput) (req *request.Request, output *DescribeClientVpnConnectionsOutput) {
  9988. op := &request.Operation{
  9989. Name: opDescribeClientVpnConnections,
  9990. HTTPMethod: "POST",
  9991. HTTPPath: "/",
  9992. }
  9993. if input == nil {
  9994. input = &DescribeClientVpnConnectionsInput{}
  9995. }
  9996. output = &DescribeClientVpnConnectionsOutput{}
  9997. req = c.newRequest(op, input, output)
  9998. return
  9999. }
  10000. // DescribeClientVpnConnections API operation for Amazon Elastic Compute Cloud.
  10001. //
  10002. // Describes active client connections and connections that have been terminated
  10003. // within the last 60 minutes for the specified Client VPN endpoint.
  10004. //
  10005. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10006. // with awserr.Error's Code and Message methods to get detailed information about
  10007. // the error.
  10008. //
  10009. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10010. // API operation DescribeClientVpnConnections for usage and error information.
  10011. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnConnections
  10012. func (c *EC2) DescribeClientVpnConnections(input *DescribeClientVpnConnectionsInput) (*DescribeClientVpnConnectionsOutput, error) {
  10013. req, out := c.DescribeClientVpnConnectionsRequest(input)
  10014. return out, req.Send()
  10015. }
  10016. // DescribeClientVpnConnectionsWithContext is the same as DescribeClientVpnConnections with the addition of
  10017. // the ability to pass a context and additional request options.
  10018. //
  10019. // See DescribeClientVpnConnections for details on how to use this API operation.
  10020. //
  10021. // The context must be non-nil and will be used for request cancellation. If
  10022. // the context is nil a panic will occur. In the future the SDK may create
  10023. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10024. // for more information on using Contexts.
  10025. func (c *EC2) DescribeClientVpnConnectionsWithContext(ctx aws.Context, input *DescribeClientVpnConnectionsInput, opts ...request.Option) (*DescribeClientVpnConnectionsOutput, error) {
  10026. req, out := c.DescribeClientVpnConnectionsRequest(input)
  10027. req.SetContext(ctx)
  10028. req.ApplyOptions(opts...)
  10029. return out, req.Send()
  10030. }
  10031. const opDescribeClientVpnEndpoints = "DescribeClientVpnEndpoints"
  10032. // DescribeClientVpnEndpointsRequest generates a "aws/request.Request" representing the
  10033. // client's request for the DescribeClientVpnEndpoints operation. The "output" return
  10034. // value will be populated with the request's response once the request completes
  10035. // successfully.
  10036. //
  10037. // Use "Send" method on the returned Request to send the API call to the service.
  10038. // the "output" return value is not valid until after Send returns without error.
  10039. //
  10040. // See DescribeClientVpnEndpoints for more information on using the DescribeClientVpnEndpoints
  10041. // API call, and error handling.
  10042. //
  10043. // This method is useful when you want to inject custom logic or configuration
  10044. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10045. //
  10046. //
  10047. // // Example sending a request using the DescribeClientVpnEndpointsRequest method.
  10048. // req, resp := client.DescribeClientVpnEndpointsRequest(params)
  10049. //
  10050. // err := req.Send()
  10051. // if err == nil { // resp is now filled
  10052. // fmt.Println(resp)
  10053. // }
  10054. //
  10055. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnEndpoints
  10056. func (c *EC2) DescribeClientVpnEndpointsRequest(input *DescribeClientVpnEndpointsInput) (req *request.Request, output *DescribeClientVpnEndpointsOutput) {
  10057. op := &request.Operation{
  10058. Name: opDescribeClientVpnEndpoints,
  10059. HTTPMethod: "POST",
  10060. HTTPPath: "/",
  10061. }
  10062. if input == nil {
  10063. input = &DescribeClientVpnEndpointsInput{}
  10064. }
  10065. output = &DescribeClientVpnEndpointsOutput{}
  10066. req = c.newRequest(op, input, output)
  10067. return
  10068. }
  10069. // DescribeClientVpnEndpoints API operation for Amazon Elastic Compute Cloud.
  10070. //
  10071. // Describes one or more Client VPN endpoints in the account.
  10072. //
  10073. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10074. // with awserr.Error's Code and Message methods to get detailed information about
  10075. // the error.
  10076. //
  10077. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10078. // API operation DescribeClientVpnEndpoints for usage and error information.
  10079. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnEndpoints
  10080. func (c *EC2) DescribeClientVpnEndpoints(input *DescribeClientVpnEndpointsInput) (*DescribeClientVpnEndpointsOutput, error) {
  10081. req, out := c.DescribeClientVpnEndpointsRequest(input)
  10082. return out, req.Send()
  10083. }
  10084. // DescribeClientVpnEndpointsWithContext is the same as DescribeClientVpnEndpoints with the addition of
  10085. // the ability to pass a context and additional request options.
  10086. //
  10087. // See DescribeClientVpnEndpoints for details on how to use this API operation.
  10088. //
  10089. // The context must be non-nil and will be used for request cancellation. If
  10090. // the context is nil a panic will occur. In the future the SDK may create
  10091. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10092. // for more information on using Contexts.
  10093. func (c *EC2) DescribeClientVpnEndpointsWithContext(ctx aws.Context, input *DescribeClientVpnEndpointsInput, opts ...request.Option) (*DescribeClientVpnEndpointsOutput, error) {
  10094. req, out := c.DescribeClientVpnEndpointsRequest(input)
  10095. req.SetContext(ctx)
  10096. req.ApplyOptions(opts...)
  10097. return out, req.Send()
  10098. }
  10099. const opDescribeClientVpnRoutes = "DescribeClientVpnRoutes"
  10100. // DescribeClientVpnRoutesRequest generates a "aws/request.Request" representing the
  10101. // client's request for the DescribeClientVpnRoutes operation. The "output" return
  10102. // value will be populated with the request's response once the request completes
  10103. // successfully.
  10104. //
  10105. // Use "Send" method on the returned Request to send the API call to the service.
  10106. // the "output" return value is not valid until after Send returns without error.
  10107. //
  10108. // See DescribeClientVpnRoutes for more information on using the DescribeClientVpnRoutes
  10109. // API call, and error handling.
  10110. //
  10111. // This method is useful when you want to inject custom logic or configuration
  10112. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10113. //
  10114. //
  10115. // // Example sending a request using the DescribeClientVpnRoutesRequest method.
  10116. // req, resp := client.DescribeClientVpnRoutesRequest(params)
  10117. //
  10118. // err := req.Send()
  10119. // if err == nil { // resp is now filled
  10120. // fmt.Println(resp)
  10121. // }
  10122. //
  10123. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnRoutes
  10124. func (c *EC2) DescribeClientVpnRoutesRequest(input *DescribeClientVpnRoutesInput) (req *request.Request, output *DescribeClientVpnRoutesOutput) {
  10125. op := &request.Operation{
  10126. Name: opDescribeClientVpnRoutes,
  10127. HTTPMethod: "POST",
  10128. HTTPPath: "/",
  10129. }
  10130. if input == nil {
  10131. input = &DescribeClientVpnRoutesInput{}
  10132. }
  10133. output = &DescribeClientVpnRoutesOutput{}
  10134. req = c.newRequest(op, input, output)
  10135. return
  10136. }
  10137. // DescribeClientVpnRoutes API operation for Amazon Elastic Compute Cloud.
  10138. //
  10139. // Describes the routes for the specified Client VPN endpoint.
  10140. //
  10141. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10142. // with awserr.Error's Code and Message methods to get detailed information about
  10143. // the error.
  10144. //
  10145. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10146. // API operation DescribeClientVpnRoutes for usage and error information.
  10147. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnRoutes
  10148. func (c *EC2) DescribeClientVpnRoutes(input *DescribeClientVpnRoutesInput) (*DescribeClientVpnRoutesOutput, error) {
  10149. req, out := c.DescribeClientVpnRoutesRequest(input)
  10150. return out, req.Send()
  10151. }
  10152. // DescribeClientVpnRoutesWithContext is the same as DescribeClientVpnRoutes with the addition of
  10153. // the ability to pass a context and additional request options.
  10154. //
  10155. // See DescribeClientVpnRoutes for details on how to use this API operation.
  10156. //
  10157. // The context must be non-nil and will be used for request cancellation. If
  10158. // the context is nil a panic will occur. In the future the SDK may create
  10159. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10160. // for more information on using Contexts.
  10161. func (c *EC2) DescribeClientVpnRoutesWithContext(ctx aws.Context, input *DescribeClientVpnRoutesInput, opts ...request.Option) (*DescribeClientVpnRoutesOutput, error) {
  10162. req, out := c.DescribeClientVpnRoutesRequest(input)
  10163. req.SetContext(ctx)
  10164. req.ApplyOptions(opts...)
  10165. return out, req.Send()
  10166. }
  10167. const opDescribeClientVpnTargetNetworks = "DescribeClientVpnTargetNetworks"
  10168. // DescribeClientVpnTargetNetworksRequest generates a "aws/request.Request" representing the
  10169. // client's request for the DescribeClientVpnTargetNetworks operation. The "output" return
  10170. // value will be populated with the request's response once the request completes
  10171. // successfully.
  10172. //
  10173. // Use "Send" method on the returned Request to send the API call to the service.
  10174. // the "output" return value is not valid until after Send returns without error.
  10175. //
  10176. // See DescribeClientVpnTargetNetworks for more information on using the DescribeClientVpnTargetNetworks
  10177. // API call, and error handling.
  10178. //
  10179. // This method is useful when you want to inject custom logic or configuration
  10180. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10181. //
  10182. //
  10183. // // Example sending a request using the DescribeClientVpnTargetNetworksRequest method.
  10184. // req, resp := client.DescribeClientVpnTargetNetworksRequest(params)
  10185. //
  10186. // err := req.Send()
  10187. // if err == nil { // resp is now filled
  10188. // fmt.Println(resp)
  10189. // }
  10190. //
  10191. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnTargetNetworks
  10192. func (c *EC2) DescribeClientVpnTargetNetworksRequest(input *DescribeClientVpnTargetNetworksInput) (req *request.Request, output *DescribeClientVpnTargetNetworksOutput) {
  10193. op := &request.Operation{
  10194. Name: opDescribeClientVpnTargetNetworks,
  10195. HTTPMethod: "POST",
  10196. HTTPPath: "/",
  10197. }
  10198. if input == nil {
  10199. input = &DescribeClientVpnTargetNetworksInput{}
  10200. }
  10201. output = &DescribeClientVpnTargetNetworksOutput{}
  10202. req = c.newRequest(op, input, output)
  10203. return
  10204. }
  10205. // DescribeClientVpnTargetNetworks API operation for Amazon Elastic Compute Cloud.
  10206. //
  10207. // Describes the target networks associated with the specified Client VPN endpoint.
  10208. //
  10209. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10210. // with awserr.Error's Code and Message methods to get detailed information about
  10211. // the error.
  10212. //
  10213. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10214. // API operation DescribeClientVpnTargetNetworks for usage and error information.
  10215. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnTargetNetworks
  10216. func (c *EC2) DescribeClientVpnTargetNetworks(input *DescribeClientVpnTargetNetworksInput) (*DescribeClientVpnTargetNetworksOutput, error) {
  10217. req, out := c.DescribeClientVpnTargetNetworksRequest(input)
  10218. return out, req.Send()
  10219. }
  10220. // DescribeClientVpnTargetNetworksWithContext is the same as DescribeClientVpnTargetNetworks with the addition of
  10221. // the ability to pass a context and additional request options.
  10222. //
  10223. // See DescribeClientVpnTargetNetworks for details on how to use this API operation.
  10224. //
  10225. // The context must be non-nil and will be used for request cancellation. If
  10226. // the context is nil a panic will occur. In the future the SDK may create
  10227. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10228. // for more information on using Contexts.
  10229. func (c *EC2) DescribeClientVpnTargetNetworksWithContext(ctx aws.Context, input *DescribeClientVpnTargetNetworksInput, opts ...request.Option) (*DescribeClientVpnTargetNetworksOutput, error) {
  10230. req, out := c.DescribeClientVpnTargetNetworksRequest(input)
  10231. req.SetContext(ctx)
  10232. req.ApplyOptions(opts...)
  10233. return out, req.Send()
  10234. }
  10235. const opDescribeConversionTasks = "DescribeConversionTasks"
  10236. // DescribeConversionTasksRequest generates a "aws/request.Request" representing the
  10237. // client's request for the DescribeConversionTasks operation. The "output" return
  10238. // value will be populated with the request's response once the request completes
  10239. // successfully.
  10240. //
  10241. // Use "Send" method on the returned Request to send the API call to the service.
  10242. // the "output" return value is not valid until after Send returns without error.
  10243. //
  10244. // See DescribeConversionTasks for more information on using the DescribeConversionTasks
  10245. // API call, and error handling.
  10246. //
  10247. // This method is useful when you want to inject custom logic or configuration
  10248. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10249. //
  10250. //
  10251. // // Example sending a request using the DescribeConversionTasksRequest method.
  10252. // req, resp := client.DescribeConversionTasksRequest(params)
  10253. //
  10254. // err := req.Send()
  10255. // if err == nil { // resp is now filled
  10256. // fmt.Println(resp)
  10257. // }
  10258. //
  10259. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasks
  10260. func (c *EC2) DescribeConversionTasksRequest(input *DescribeConversionTasksInput) (req *request.Request, output *DescribeConversionTasksOutput) {
  10261. op := &request.Operation{
  10262. Name: opDescribeConversionTasks,
  10263. HTTPMethod: "POST",
  10264. HTTPPath: "/",
  10265. }
  10266. if input == nil {
  10267. input = &DescribeConversionTasksInput{}
  10268. }
  10269. output = &DescribeConversionTasksOutput{}
  10270. req = c.newRequest(op, input, output)
  10271. return
  10272. }
  10273. // DescribeConversionTasks API operation for Amazon Elastic Compute Cloud.
  10274. //
  10275. // Describes one or more of your conversion tasks. For more information, see
  10276. // the VM Import/Export User Guide (http://docs.aws.amazon.com/vm-import/latest/userguide/).
  10277. //
  10278. // For information about the import manifest referenced by this API action,
  10279. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  10280. //
  10281. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10282. // with awserr.Error's Code and Message methods to get detailed information about
  10283. // the error.
  10284. //
  10285. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10286. // API operation DescribeConversionTasks for usage and error information.
  10287. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasks
  10288. func (c *EC2) DescribeConversionTasks(input *DescribeConversionTasksInput) (*DescribeConversionTasksOutput, error) {
  10289. req, out := c.DescribeConversionTasksRequest(input)
  10290. return out, req.Send()
  10291. }
  10292. // DescribeConversionTasksWithContext is the same as DescribeConversionTasks with the addition of
  10293. // the ability to pass a context and additional request options.
  10294. //
  10295. // See DescribeConversionTasks for details on how to use this API operation.
  10296. //
  10297. // The context must be non-nil and will be used for request cancellation. If
  10298. // the context is nil a panic will occur. In the future the SDK may create
  10299. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10300. // for more information on using Contexts.
  10301. func (c *EC2) DescribeConversionTasksWithContext(ctx aws.Context, input *DescribeConversionTasksInput, opts ...request.Option) (*DescribeConversionTasksOutput, error) {
  10302. req, out := c.DescribeConversionTasksRequest(input)
  10303. req.SetContext(ctx)
  10304. req.ApplyOptions(opts...)
  10305. return out, req.Send()
  10306. }
  10307. const opDescribeCustomerGateways = "DescribeCustomerGateways"
  10308. // DescribeCustomerGatewaysRequest generates a "aws/request.Request" representing the
  10309. // client's request for the DescribeCustomerGateways operation. The "output" return
  10310. // value will be populated with the request's response once the request completes
  10311. // successfully.
  10312. //
  10313. // Use "Send" method on the returned Request to send the API call to the service.
  10314. // the "output" return value is not valid until after Send returns without error.
  10315. //
  10316. // See DescribeCustomerGateways for more information on using the DescribeCustomerGateways
  10317. // API call, and error handling.
  10318. //
  10319. // This method is useful when you want to inject custom logic or configuration
  10320. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10321. //
  10322. //
  10323. // // Example sending a request using the DescribeCustomerGatewaysRequest method.
  10324. // req, resp := client.DescribeCustomerGatewaysRequest(params)
  10325. //
  10326. // err := req.Send()
  10327. // if err == nil { // resp is now filled
  10328. // fmt.Println(resp)
  10329. // }
  10330. //
  10331. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGateways
  10332. func (c *EC2) DescribeCustomerGatewaysRequest(input *DescribeCustomerGatewaysInput) (req *request.Request, output *DescribeCustomerGatewaysOutput) {
  10333. op := &request.Operation{
  10334. Name: opDescribeCustomerGateways,
  10335. HTTPMethod: "POST",
  10336. HTTPPath: "/",
  10337. }
  10338. if input == nil {
  10339. input = &DescribeCustomerGatewaysInput{}
  10340. }
  10341. output = &DescribeCustomerGatewaysOutput{}
  10342. req = c.newRequest(op, input, output)
  10343. return
  10344. }
  10345. // DescribeCustomerGateways API operation for Amazon Elastic Compute Cloud.
  10346. //
  10347. // Describes one or more of your VPN customer gateways.
  10348. //
  10349. // For more information about VPN customer gateways, see AWS Managed VPN Connections
  10350. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) in the
  10351. // Amazon Virtual Private Cloud User Guide.
  10352. //
  10353. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10354. // with awserr.Error's Code and Message methods to get detailed information about
  10355. // the error.
  10356. //
  10357. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10358. // API operation DescribeCustomerGateways for usage and error information.
  10359. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGateways
  10360. func (c *EC2) DescribeCustomerGateways(input *DescribeCustomerGatewaysInput) (*DescribeCustomerGatewaysOutput, error) {
  10361. req, out := c.DescribeCustomerGatewaysRequest(input)
  10362. return out, req.Send()
  10363. }
  10364. // DescribeCustomerGatewaysWithContext is the same as DescribeCustomerGateways with the addition of
  10365. // the ability to pass a context and additional request options.
  10366. //
  10367. // See DescribeCustomerGateways for details on how to use this API operation.
  10368. //
  10369. // The context must be non-nil and will be used for request cancellation. If
  10370. // the context is nil a panic will occur. In the future the SDK may create
  10371. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10372. // for more information on using Contexts.
  10373. func (c *EC2) DescribeCustomerGatewaysWithContext(ctx aws.Context, input *DescribeCustomerGatewaysInput, opts ...request.Option) (*DescribeCustomerGatewaysOutput, error) {
  10374. req, out := c.DescribeCustomerGatewaysRequest(input)
  10375. req.SetContext(ctx)
  10376. req.ApplyOptions(opts...)
  10377. return out, req.Send()
  10378. }
  10379. const opDescribeDhcpOptions = "DescribeDhcpOptions"
  10380. // DescribeDhcpOptionsRequest generates a "aws/request.Request" representing the
  10381. // client's request for the DescribeDhcpOptions operation. The "output" return
  10382. // value will be populated with the request's response once the request completes
  10383. // successfully.
  10384. //
  10385. // Use "Send" method on the returned Request to send the API call to the service.
  10386. // the "output" return value is not valid until after Send returns without error.
  10387. //
  10388. // See DescribeDhcpOptions for more information on using the DescribeDhcpOptions
  10389. // API call, and error handling.
  10390. //
  10391. // This method is useful when you want to inject custom logic or configuration
  10392. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10393. //
  10394. //
  10395. // // Example sending a request using the DescribeDhcpOptionsRequest method.
  10396. // req, resp := client.DescribeDhcpOptionsRequest(params)
  10397. //
  10398. // err := req.Send()
  10399. // if err == nil { // resp is now filled
  10400. // fmt.Println(resp)
  10401. // }
  10402. //
  10403. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptions
  10404. func (c *EC2) DescribeDhcpOptionsRequest(input *DescribeDhcpOptionsInput) (req *request.Request, output *DescribeDhcpOptionsOutput) {
  10405. op := &request.Operation{
  10406. Name: opDescribeDhcpOptions,
  10407. HTTPMethod: "POST",
  10408. HTTPPath: "/",
  10409. }
  10410. if input == nil {
  10411. input = &DescribeDhcpOptionsInput{}
  10412. }
  10413. output = &DescribeDhcpOptionsOutput{}
  10414. req = c.newRequest(op, input, output)
  10415. return
  10416. }
  10417. // DescribeDhcpOptions API operation for Amazon Elastic Compute Cloud.
  10418. //
  10419. // Describes one or more of your DHCP options sets.
  10420. //
  10421. // For more information, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  10422. // in the Amazon Virtual Private Cloud User Guide.
  10423. //
  10424. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10425. // with awserr.Error's Code and Message methods to get detailed information about
  10426. // the error.
  10427. //
  10428. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10429. // API operation DescribeDhcpOptions for usage and error information.
  10430. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptions
  10431. func (c *EC2) DescribeDhcpOptions(input *DescribeDhcpOptionsInput) (*DescribeDhcpOptionsOutput, error) {
  10432. req, out := c.DescribeDhcpOptionsRequest(input)
  10433. return out, req.Send()
  10434. }
  10435. // DescribeDhcpOptionsWithContext is the same as DescribeDhcpOptions with the addition of
  10436. // the ability to pass a context and additional request options.
  10437. //
  10438. // See DescribeDhcpOptions for details on how to use this API operation.
  10439. //
  10440. // The context must be non-nil and will be used for request cancellation. If
  10441. // the context is nil a panic will occur. In the future the SDK may create
  10442. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10443. // for more information on using Contexts.
  10444. func (c *EC2) DescribeDhcpOptionsWithContext(ctx aws.Context, input *DescribeDhcpOptionsInput, opts ...request.Option) (*DescribeDhcpOptionsOutput, error) {
  10445. req, out := c.DescribeDhcpOptionsRequest(input)
  10446. req.SetContext(ctx)
  10447. req.ApplyOptions(opts...)
  10448. return out, req.Send()
  10449. }
  10450. const opDescribeEgressOnlyInternetGateways = "DescribeEgressOnlyInternetGateways"
  10451. // DescribeEgressOnlyInternetGatewaysRequest generates a "aws/request.Request" representing the
  10452. // client's request for the DescribeEgressOnlyInternetGateways operation. The "output" return
  10453. // value will be populated with the request's response once the request completes
  10454. // successfully.
  10455. //
  10456. // Use "Send" method on the returned Request to send the API call to the service.
  10457. // the "output" return value is not valid until after Send returns without error.
  10458. //
  10459. // See DescribeEgressOnlyInternetGateways for more information on using the DescribeEgressOnlyInternetGateways
  10460. // API call, and error handling.
  10461. //
  10462. // This method is useful when you want to inject custom logic or configuration
  10463. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10464. //
  10465. //
  10466. // // Example sending a request using the DescribeEgressOnlyInternetGatewaysRequest method.
  10467. // req, resp := client.DescribeEgressOnlyInternetGatewaysRequest(params)
  10468. //
  10469. // err := req.Send()
  10470. // if err == nil { // resp is now filled
  10471. // fmt.Println(resp)
  10472. // }
  10473. //
  10474. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGateways
  10475. func (c *EC2) DescribeEgressOnlyInternetGatewaysRequest(input *DescribeEgressOnlyInternetGatewaysInput) (req *request.Request, output *DescribeEgressOnlyInternetGatewaysOutput) {
  10476. op := &request.Operation{
  10477. Name: opDescribeEgressOnlyInternetGateways,
  10478. HTTPMethod: "POST",
  10479. HTTPPath: "/",
  10480. }
  10481. if input == nil {
  10482. input = &DescribeEgressOnlyInternetGatewaysInput{}
  10483. }
  10484. output = &DescribeEgressOnlyInternetGatewaysOutput{}
  10485. req = c.newRequest(op, input, output)
  10486. return
  10487. }
  10488. // DescribeEgressOnlyInternetGateways API operation for Amazon Elastic Compute Cloud.
  10489. //
  10490. // Describes one or more of your egress-only internet gateways.
  10491. //
  10492. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10493. // with awserr.Error's Code and Message methods to get detailed information about
  10494. // the error.
  10495. //
  10496. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10497. // API operation DescribeEgressOnlyInternetGateways for usage and error information.
  10498. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGateways
  10499. func (c *EC2) DescribeEgressOnlyInternetGateways(input *DescribeEgressOnlyInternetGatewaysInput) (*DescribeEgressOnlyInternetGatewaysOutput, error) {
  10500. req, out := c.DescribeEgressOnlyInternetGatewaysRequest(input)
  10501. return out, req.Send()
  10502. }
  10503. // DescribeEgressOnlyInternetGatewaysWithContext is the same as DescribeEgressOnlyInternetGateways with the addition of
  10504. // the ability to pass a context and additional request options.
  10505. //
  10506. // See DescribeEgressOnlyInternetGateways for details on how to use this API operation.
  10507. //
  10508. // The context must be non-nil and will be used for request cancellation. If
  10509. // the context is nil a panic will occur. In the future the SDK may create
  10510. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10511. // for more information on using Contexts.
  10512. func (c *EC2) DescribeEgressOnlyInternetGatewaysWithContext(ctx aws.Context, input *DescribeEgressOnlyInternetGatewaysInput, opts ...request.Option) (*DescribeEgressOnlyInternetGatewaysOutput, error) {
  10513. req, out := c.DescribeEgressOnlyInternetGatewaysRequest(input)
  10514. req.SetContext(ctx)
  10515. req.ApplyOptions(opts...)
  10516. return out, req.Send()
  10517. }
  10518. const opDescribeElasticGpus = "DescribeElasticGpus"
  10519. // DescribeElasticGpusRequest generates a "aws/request.Request" representing the
  10520. // client's request for the DescribeElasticGpus operation. The "output" return
  10521. // value will be populated with the request's response once the request completes
  10522. // successfully.
  10523. //
  10524. // Use "Send" method on the returned Request to send the API call to the service.
  10525. // the "output" return value is not valid until after Send returns without error.
  10526. //
  10527. // See DescribeElasticGpus for more information on using the DescribeElasticGpus
  10528. // API call, and error handling.
  10529. //
  10530. // This method is useful when you want to inject custom logic or configuration
  10531. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10532. //
  10533. //
  10534. // // Example sending a request using the DescribeElasticGpusRequest method.
  10535. // req, resp := client.DescribeElasticGpusRequest(params)
  10536. //
  10537. // err := req.Send()
  10538. // if err == nil { // resp is now filled
  10539. // fmt.Println(resp)
  10540. // }
  10541. //
  10542. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeElasticGpus
  10543. func (c *EC2) DescribeElasticGpusRequest(input *DescribeElasticGpusInput) (req *request.Request, output *DescribeElasticGpusOutput) {
  10544. op := &request.Operation{
  10545. Name: opDescribeElasticGpus,
  10546. HTTPMethod: "POST",
  10547. HTTPPath: "/",
  10548. }
  10549. if input == nil {
  10550. input = &DescribeElasticGpusInput{}
  10551. }
  10552. output = &DescribeElasticGpusOutput{}
  10553. req = c.newRequest(op, input, output)
  10554. return
  10555. }
  10556. // DescribeElasticGpus API operation for Amazon Elastic Compute Cloud.
  10557. //
  10558. // Describes the Elastic Graphics accelerator associated with your instances.
  10559. // For more information about Elastic Graphics, see Amazon Elastic Graphics
  10560. // (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html).
  10561. //
  10562. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10563. // with awserr.Error's Code and Message methods to get detailed information about
  10564. // the error.
  10565. //
  10566. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10567. // API operation DescribeElasticGpus for usage and error information.
  10568. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeElasticGpus
  10569. func (c *EC2) DescribeElasticGpus(input *DescribeElasticGpusInput) (*DescribeElasticGpusOutput, error) {
  10570. req, out := c.DescribeElasticGpusRequest(input)
  10571. return out, req.Send()
  10572. }
  10573. // DescribeElasticGpusWithContext is the same as DescribeElasticGpus with the addition of
  10574. // the ability to pass a context and additional request options.
  10575. //
  10576. // See DescribeElasticGpus for details on how to use this API operation.
  10577. //
  10578. // The context must be non-nil and will be used for request cancellation. If
  10579. // the context is nil a panic will occur. In the future the SDK may create
  10580. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10581. // for more information on using Contexts.
  10582. func (c *EC2) DescribeElasticGpusWithContext(ctx aws.Context, input *DescribeElasticGpusInput, opts ...request.Option) (*DescribeElasticGpusOutput, error) {
  10583. req, out := c.DescribeElasticGpusRequest(input)
  10584. req.SetContext(ctx)
  10585. req.ApplyOptions(opts...)
  10586. return out, req.Send()
  10587. }
  10588. const opDescribeExportTasks = "DescribeExportTasks"
  10589. // DescribeExportTasksRequest generates a "aws/request.Request" representing the
  10590. // client's request for the DescribeExportTasks operation. The "output" return
  10591. // value will be populated with the request's response once the request completes
  10592. // successfully.
  10593. //
  10594. // Use "Send" method on the returned Request to send the API call to the service.
  10595. // the "output" return value is not valid until after Send returns without error.
  10596. //
  10597. // See DescribeExportTasks for more information on using the DescribeExportTasks
  10598. // API call, and error handling.
  10599. //
  10600. // This method is useful when you want to inject custom logic or configuration
  10601. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10602. //
  10603. //
  10604. // // Example sending a request using the DescribeExportTasksRequest method.
  10605. // req, resp := client.DescribeExportTasksRequest(params)
  10606. //
  10607. // err := req.Send()
  10608. // if err == nil { // resp is now filled
  10609. // fmt.Println(resp)
  10610. // }
  10611. //
  10612. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasks
  10613. func (c *EC2) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) {
  10614. op := &request.Operation{
  10615. Name: opDescribeExportTasks,
  10616. HTTPMethod: "POST",
  10617. HTTPPath: "/",
  10618. }
  10619. if input == nil {
  10620. input = &DescribeExportTasksInput{}
  10621. }
  10622. output = &DescribeExportTasksOutput{}
  10623. req = c.newRequest(op, input, output)
  10624. return
  10625. }
  10626. // DescribeExportTasks API operation for Amazon Elastic Compute Cloud.
  10627. //
  10628. // Describes one or more of your export tasks.
  10629. //
  10630. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10631. // with awserr.Error's Code and Message methods to get detailed information about
  10632. // the error.
  10633. //
  10634. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10635. // API operation DescribeExportTasks for usage and error information.
  10636. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasks
  10637. func (c *EC2) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) {
  10638. req, out := c.DescribeExportTasksRequest(input)
  10639. return out, req.Send()
  10640. }
  10641. // DescribeExportTasksWithContext is the same as DescribeExportTasks with the addition of
  10642. // the ability to pass a context and additional request options.
  10643. //
  10644. // See DescribeExportTasks for details on how to use this API operation.
  10645. //
  10646. // The context must be non-nil and will be used for request cancellation. If
  10647. // the context is nil a panic will occur. In the future the SDK may create
  10648. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10649. // for more information on using Contexts.
  10650. func (c *EC2) DescribeExportTasksWithContext(ctx aws.Context, input *DescribeExportTasksInput, opts ...request.Option) (*DescribeExportTasksOutput, error) {
  10651. req, out := c.DescribeExportTasksRequest(input)
  10652. req.SetContext(ctx)
  10653. req.ApplyOptions(opts...)
  10654. return out, req.Send()
  10655. }
  10656. const opDescribeFleetHistory = "DescribeFleetHistory"
  10657. // DescribeFleetHistoryRequest generates a "aws/request.Request" representing the
  10658. // client's request for the DescribeFleetHistory operation. The "output" return
  10659. // value will be populated with the request's response once the request completes
  10660. // successfully.
  10661. //
  10662. // Use "Send" method on the returned Request to send the API call to the service.
  10663. // the "output" return value is not valid until after Send returns without error.
  10664. //
  10665. // See DescribeFleetHistory for more information on using the DescribeFleetHistory
  10666. // API call, and error handling.
  10667. //
  10668. // This method is useful when you want to inject custom logic or configuration
  10669. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10670. //
  10671. //
  10672. // // Example sending a request using the DescribeFleetHistoryRequest method.
  10673. // req, resp := client.DescribeFleetHistoryRequest(params)
  10674. //
  10675. // err := req.Send()
  10676. // if err == nil { // resp is now filled
  10677. // fmt.Println(resp)
  10678. // }
  10679. //
  10680. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetHistory
  10681. func (c *EC2) DescribeFleetHistoryRequest(input *DescribeFleetHistoryInput) (req *request.Request, output *DescribeFleetHistoryOutput) {
  10682. op := &request.Operation{
  10683. Name: opDescribeFleetHistory,
  10684. HTTPMethod: "POST",
  10685. HTTPPath: "/",
  10686. }
  10687. if input == nil {
  10688. input = &DescribeFleetHistoryInput{}
  10689. }
  10690. output = &DescribeFleetHistoryOutput{}
  10691. req = c.newRequest(op, input, output)
  10692. return
  10693. }
  10694. // DescribeFleetHistory API operation for Amazon Elastic Compute Cloud.
  10695. //
  10696. // Describes the events for the specified EC2 Fleet during the specified time.
  10697. //
  10698. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10699. // with awserr.Error's Code and Message methods to get detailed information about
  10700. // the error.
  10701. //
  10702. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10703. // API operation DescribeFleetHistory for usage and error information.
  10704. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetHistory
  10705. func (c *EC2) DescribeFleetHistory(input *DescribeFleetHistoryInput) (*DescribeFleetHistoryOutput, error) {
  10706. req, out := c.DescribeFleetHistoryRequest(input)
  10707. return out, req.Send()
  10708. }
  10709. // DescribeFleetHistoryWithContext is the same as DescribeFleetHistory with the addition of
  10710. // the ability to pass a context and additional request options.
  10711. //
  10712. // See DescribeFleetHistory for details on how to use this API operation.
  10713. //
  10714. // The context must be non-nil and will be used for request cancellation. If
  10715. // the context is nil a panic will occur. In the future the SDK may create
  10716. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10717. // for more information on using Contexts.
  10718. func (c *EC2) DescribeFleetHistoryWithContext(ctx aws.Context, input *DescribeFleetHistoryInput, opts ...request.Option) (*DescribeFleetHistoryOutput, error) {
  10719. req, out := c.DescribeFleetHistoryRequest(input)
  10720. req.SetContext(ctx)
  10721. req.ApplyOptions(opts...)
  10722. return out, req.Send()
  10723. }
  10724. const opDescribeFleetInstances = "DescribeFleetInstances"
  10725. // DescribeFleetInstancesRequest generates a "aws/request.Request" representing the
  10726. // client's request for the DescribeFleetInstances operation. The "output" return
  10727. // value will be populated with the request's response once the request completes
  10728. // successfully.
  10729. //
  10730. // Use "Send" method on the returned Request to send the API call to the service.
  10731. // the "output" return value is not valid until after Send returns without error.
  10732. //
  10733. // See DescribeFleetInstances for more information on using the DescribeFleetInstances
  10734. // API call, and error handling.
  10735. //
  10736. // This method is useful when you want to inject custom logic or configuration
  10737. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10738. //
  10739. //
  10740. // // Example sending a request using the DescribeFleetInstancesRequest method.
  10741. // req, resp := client.DescribeFleetInstancesRequest(params)
  10742. //
  10743. // err := req.Send()
  10744. // if err == nil { // resp is now filled
  10745. // fmt.Println(resp)
  10746. // }
  10747. //
  10748. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetInstances
  10749. func (c *EC2) DescribeFleetInstancesRequest(input *DescribeFleetInstancesInput) (req *request.Request, output *DescribeFleetInstancesOutput) {
  10750. op := &request.Operation{
  10751. Name: opDescribeFleetInstances,
  10752. HTTPMethod: "POST",
  10753. HTTPPath: "/",
  10754. }
  10755. if input == nil {
  10756. input = &DescribeFleetInstancesInput{}
  10757. }
  10758. output = &DescribeFleetInstancesOutput{}
  10759. req = c.newRequest(op, input, output)
  10760. return
  10761. }
  10762. // DescribeFleetInstances API operation for Amazon Elastic Compute Cloud.
  10763. //
  10764. // Describes the running instances for the specified EC2 Fleet.
  10765. //
  10766. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10767. // with awserr.Error's Code and Message methods to get detailed information about
  10768. // the error.
  10769. //
  10770. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10771. // API operation DescribeFleetInstances for usage and error information.
  10772. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetInstances
  10773. func (c *EC2) DescribeFleetInstances(input *DescribeFleetInstancesInput) (*DescribeFleetInstancesOutput, error) {
  10774. req, out := c.DescribeFleetInstancesRequest(input)
  10775. return out, req.Send()
  10776. }
  10777. // DescribeFleetInstancesWithContext is the same as DescribeFleetInstances with the addition of
  10778. // the ability to pass a context and additional request options.
  10779. //
  10780. // See DescribeFleetInstances for details on how to use this API operation.
  10781. //
  10782. // The context must be non-nil and will be used for request cancellation. If
  10783. // the context is nil a panic will occur. In the future the SDK may create
  10784. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10785. // for more information on using Contexts.
  10786. func (c *EC2) DescribeFleetInstancesWithContext(ctx aws.Context, input *DescribeFleetInstancesInput, opts ...request.Option) (*DescribeFleetInstancesOutput, error) {
  10787. req, out := c.DescribeFleetInstancesRequest(input)
  10788. req.SetContext(ctx)
  10789. req.ApplyOptions(opts...)
  10790. return out, req.Send()
  10791. }
  10792. const opDescribeFleets = "DescribeFleets"
  10793. // DescribeFleetsRequest generates a "aws/request.Request" representing the
  10794. // client's request for the DescribeFleets operation. The "output" return
  10795. // value will be populated with the request's response once the request completes
  10796. // successfully.
  10797. //
  10798. // Use "Send" method on the returned Request to send the API call to the service.
  10799. // the "output" return value is not valid until after Send returns without error.
  10800. //
  10801. // See DescribeFleets for more information on using the DescribeFleets
  10802. // API call, and error handling.
  10803. //
  10804. // This method is useful when you want to inject custom logic or configuration
  10805. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10806. //
  10807. //
  10808. // // Example sending a request using the DescribeFleetsRequest method.
  10809. // req, resp := client.DescribeFleetsRequest(params)
  10810. //
  10811. // err := req.Send()
  10812. // if err == nil { // resp is now filled
  10813. // fmt.Println(resp)
  10814. // }
  10815. //
  10816. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleets
  10817. func (c *EC2) DescribeFleetsRequest(input *DescribeFleetsInput) (req *request.Request, output *DescribeFleetsOutput) {
  10818. op := &request.Operation{
  10819. Name: opDescribeFleets,
  10820. HTTPMethod: "POST",
  10821. HTTPPath: "/",
  10822. }
  10823. if input == nil {
  10824. input = &DescribeFleetsInput{}
  10825. }
  10826. output = &DescribeFleetsOutput{}
  10827. req = c.newRequest(op, input, output)
  10828. return
  10829. }
  10830. // DescribeFleets API operation for Amazon Elastic Compute Cloud.
  10831. //
  10832. // Describes one or more of your EC2 Fleets.
  10833. //
  10834. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10835. // with awserr.Error's Code and Message methods to get detailed information about
  10836. // the error.
  10837. //
  10838. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10839. // API operation DescribeFleets for usage and error information.
  10840. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleets
  10841. func (c *EC2) DescribeFleets(input *DescribeFleetsInput) (*DescribeFleetsOutput, error) {
  10842. req, out := c.DescribeFleetsRequest(input)
  10843. return out, req.Send()
  10844. }
  10845. // DescribeFleetsWithContext is the same as DescribeFleets with the addition of
  10846. // the ability to pass a context and additional request options.
  10847. //
  10848. // See DescribeFleets for details on how to use this API operation.
  10849. //
  10850. // The context must be non-nil and will be used for request cancellation. If
  10851. // the context is nil a panic will occur. In the future the SDK may create
  10852. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10853. // for more information on using Contexts.
  10854. func (c *EC2) DescribeFleetsWithContext(ctx aws.Context, input *DescribeFleetsInput, opts ...request.Option) (*DescribeFleetsOutput, error) {
  10855. req, out := c.DescribeFleetsRequest(input)
  10856. req.SetContext(ctx)
  10857. req.ApplyOptions(opts...)
  10858. return out, req.Send()
  10859. }
  10860. const opDescribeFlowLogs = "DescribeFlowLogs"
  10861. // DescribeFlowLogsRequest generates a "aws/request.Request" representing the
  10862. // client's request for the DescribeFlowLogs operation. The "output" return
  10863. // value will be populated with the request's response once the request completes
  10864. // successfully.
  10865. //
  10866. // Use "Send" method on the returned Request to send the API call to the service.
  10867. // the "output" return value is not valid until after Send returns without error.
  10868. //
  10869. // See DescribeFlowLogs for more information on using the DescribeFlowLogs
  10870. // API call, and error handling.
  10871. //
  10872. // This method is useful when you want to inject custom logic or configuration
  10873. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10874. //
  10875. //
  10876. // // Example sending a request using the DescribeFlowLogsRequest method.
  10877. // req, resp := client.DescribeFlowLogsRequest(params)
  10878. //
  10879. // err := req.Send()
  10880. // if err == nil { // resp is now filled
  10881. // fmt.Println(resp)
  10882. // }
  10883. //
  10884. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogs
  10885. func (c *EC2) DescribeFlowLogsRequest(input *DescribeFlowLogsInput) (req *request.Request, output *DescribeFlowLogsOutput) {
  10886. op := &request.Operation{
  10887. Name: opDescribeFlowLogs,
  10888. HTTPMethod: "POST",
  10889. HTTPPath: "/",
  10890. }
  10891. if input == nil {
  10892. input = &DescribeFlowLogsInput{}
  10893. }
  10894. output = &DescribeFlowLogsOutput{}
  10895. req = c.newRequest(op, input, output)
  10896. return
  10897. }
  10898. // DescribeFlowLogs API operation for Amazon Elastic Compute Cloud.
  10899. //
  10900. // Describes one or more flow logs. To view the information in your flow logs
  10901. // (the log streams for the network interfaces), you must use the CloudWatch
  10902. // Logs console or the CloudWatch Logs API.
  10903. //
  10904. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10905. // with awserr.Error's Code and Message methods to get detailed information about
  10906. // the error.
  10907. //
  10908. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10909. // API operation DescribeFlowLogs for usage and error information.
  10910. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogs
  10911. func (c *EC2) DescribeFlowLogs(input *DescribeFlowLogsInput) (*DescribeFlowLogsOutput, error) {
  10912. req, out := c.DescribeFlowLogsRequest(input)
  10913. return out, req.Send()
  10914. }
  10915. // DescribeFlowLogsWithContext is the same as DescribeFlowLogs with the addition of
  10916. // the ability to pass a context and additional request options.
  10917. //
  10918. // See DescribeFlowLogs for details on how to use this API operation.
  10919. //
  10920. // The context must be non-nil and will be used for request cancellation. If
  10921. // the context is nil a panic will occur. In the future the SDK may create
  10922. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10923. // for more information on using Contexts.
  10924. func (c *EC2) DescribeFlowLogsWithContext(ctx aws.Context, input *DescribeFlowLogsInput, opts ...request.Option) (*DescribeFlowLogsOutput, error) {
  10925. req, out := c.DescribeFlowLogsRequest(input)
  10926. req.SetContext(ctx)
  10927. req.ApplyOptions(opts...)
  10928. return out, req.Send()
  10929. }
  10930. const opDescribeFpgaImageAttribute = "DescribeFpgaImageAttribute"
  10931. // DescribeFpgaImageAttributeRequest generates a "aws/request.Request" representing the
  10932. // client's request for the DescribeFpgaImageAttribute operation. The "output" return
  10933. // value will be populated with the request's response once the request completes
  10934. // successfully.
  10935. //
  10936. // Use "Send" method on the returned Request to send the API call to the service.
  10937. // the "output" return value is not valid until after Send returns without error.
  10938. //
  10939. // See DescribeFpgaImageAttribute for more information on using the DescribeFpgaImageAttribute
  10940. // API call, and error handling.
  10941. //
  10942. // This method is useful when you want to inject custom logic or configuration
  10943. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10944. //
  10945. //
  10946. // // Example sending a request using the DescribeFpgaImageAttributeRequest method.
  10947. // req, resp := client.DescribeFpgaImageAttributeRequest(params)
  10948. //
  10949. // err := req.Send()
  10950. // if err == nil { // resp is now filled
  10951. // fmt.Println(resp)
  10952. // }
  10953. //
  10954. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImageAttribute
  10955. func (c *EC2) DescribeFpgaImageAttributeRequest(input *DescribeFpgaImageAttributeInput) (req *request.Request, output *DescribeFpgaImageAttributeOutput) {
  10956. op := &request.Operation{
  10957. Name: opDescribeFpgaImageAttribute,
  10958. HTTPMethod: "POST",
  10959. HTTPPath: "/",
  10960. }
  10961. if input == nil {
  10962. input = &DescribeFpgaImageAttributeInput{}
  10963. }
  10964. output = &DescribeFpgaImageAttributeOutput{}
  10965. req = c.newRequest(op, input, output)
  10966. return
  10967. }
  10968. // DescribeFpgaImageAttribute API operation for Amazon Elastic Compute Cloud.
  10969. //
  10970. // Describes the specified attribute of the specified Amazon FPGA Image (AFI).
  10971. //
  10972. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10973. // with awserr.Error's Code and Message methods to get detailed information about
  10974. // the error.
  10975. //
  10976. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10977. // API operation DescribeFpgaImageAttribute for usage and error information.
  10978. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImageAttribute
  10979. func (c *EC2) DescribeFpgaImageAttribute(input *DescribeFpgaImageAttributeInput) (*DescribeFpgaImageAttributeOutput, error) {
  10980. req, out := c.DescribeFpgaImageAttributeRequest(input)
  10981. return out, req.Send()
  10982. }
  10983. // DescribeFpgaImageAttributeWithContext is the same as DescribeFpgaImageAttribute with the addition of
  10984. // the ability to pass a context and additional request options.
  10985. //
  10986. // See DescribeFpgaImageAttribute for details on how to use this API operation.
  10987. //
  10988. // The context must be non-nil and will be used for request cancellation. If
  10989. // the context is nil a panic will occur. In the future the SDK may create
  10990. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10991. // for more information on using Contexts.
  10992. func (c *EC2) DescribeFpgaImageAttributeWithContext(ctx aws.Context, input *DescribeFpgaImageAttributeInput, opts ...request.Option) (*DescribeFpgaImageAttributeOutput, error) {
  10993. req, out := c.DescribeFpgaImageAttributeRequest(input)
  10994. req.SetContext(ctx)
  10995. req.ApplyOptions(opts...)
  10996. return out, req.Send()
  10997. }
  10998. const opDescribeFpgaImages = "DescribeFpgaImages"
  10999. // DescribeFpgaImagesRequest generates a "aws/request.Request" representing the
  11000. // client's request for the DescribeFpgaImages operation. The "output" return
  11001. // value will be populated with the request's response once the request completes
  11002. // successfully.
  11003. //
  11004. // Use "Send" method on the returned Request to send the API call to the service.
  11005. // the "output" return value is not valid until after Send returns without error.
  11006. //
  11007. // See DescribeFpgaImages for more information on using the DescribeFpgaImages
  11008. // API call, and error handling.
  11009. //
  11010. // This method is useful when you want to inject custom logic or configuration
  11011. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11012. //
  11013. //
  11014. // // Example sending a request using the DescribeFpgaImagesRequest method.
  11015. // req, resp := client.DescribeFpgaImagesRequest(params)
  11016. //
  11017. // err := req.Send()
  11018. // if err == nil { // resp is now filled
  11019. // fmt.Println(resp)
  11020. // }
  11021. //
  11022. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImages
  11023. func (c *EC2) DescribeFpgaImagesRequest(input *DescribeFpgaImagesInput) (req *request.Request, output *DescribeFpgaImagesOutput) {
  11024. op := &request.Operation{
  11025. Name: opDescribeFpgaImages,
  11026. HTTPMethod: "POST",
  11027. HTTPPath: "/",
  11028. }
  11029. if input == nil {
  11030. input = &DescribeFpgaImagesInput{}
  11031. }
  11032. output = &DescribeFpgaImagesOutput{}
  11033. req = c.newRequest(op, input, output)
  11034. return
  11035. }
  11036. // DescribeFpgaImages API operation for Amazon Elastic Compute Cloud.
  11037. //
  11038. // Describes one or more available Amazon FPGA Images (AFIs). These include
  11039. // public AFIs, private AFIs that you own, and AFIs owned by other AWS accounts
  11040. // for which you have load permissions.
  11041. //
  11042. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11043. // with awserr.Error's Code and Message methods to get detailed information about
  11044. // the error.
  11045. //
  11046. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11047. // API operation DescribeFpgaImages for usage and error information.
  11048. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImages
  11049. func (c *EC2) DescribeFpgaImages(input *DescribeFpgaImagesInput) (*DescribeFpgaImagesOutput, error) {
  11050. req, out := c.DescribeFpgaImagesRequest(input)
  11051. return out, req.Send()
  11052. }
  11053. // DescribeFpgaImagesWithContext is the same as DescribeFpgaImages with the addition of
  11054. // the ability to pass a context and additional request options.
  11055. //
  11056. // See DescribeFpgaImages for details on how to use this API operation.
  11057. //
  11058. // The context must be non-nil and will be used for request cancellation. If
  11059. // the context is nil a panic will occur. In the future the SDK may create
  11060. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11061. // for more information on using Contexts.
  11062. func (c *EC2) DescribeFpgaImagesWithContext(ctx aws.Context, input *DescribeFpgaImagesInput, opts ...request.Option) (*DescribeFpgaImagesOutput, error) {
  11063. req, out := c.DescribeFpgaImagesRequest(input)
  11064. req.SetContext(ctx)
  11065. req.ApplyOptions(opts...)
  11066. return out, req.Send()
  11067. }
  11068. const opDescribeHostReservationOfferings = "DescribeHostReservationOfferings"
  11069. // DescribeHostReservationOfferingsRequest generates a "aws/request.Request" representing the
  11070. // client's request for the DescribeHostReservationOfferings operation. The "output" return
  11071. // value will be populated with the request's response once the request completes
  11072. // successfully.
  11073. //
  11074. // Use "Send" method on the returned Request to send the API call to the service.
  11075. // the "output" return value is not valid until after Send returns without error.
  11076. //
  11077. // See DescribeHostReservationOfferings for more information on using the DescribeHostReservationOfferings
  11078. // API call, and error handling.
  11079. //
  11080. // This method is useful when you want to inject custom logic or configuration
  11081. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11082. //
  11083. //
  11084. // // Example sending a request using the DescribeHostReservationOfferingsRequest method.
  11085. // req, resp := client.DescribeHostReservationOfferingsRequest(params)
  11086. //
  11087. // err := req.Send()
  11088. // if err == nil { // resp is now filled
  11089. // fmt.Println(resp)
  11090. // }
  11091. //
  11092. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferings
  11093. func (c *EC2) DescribeHostReservationOfferingsRequest(input *DescribeHostReservationOfferingsInput) (req *request.Request, output *DescribeHostReservationOfferingsOutput) {
  11094. op := &request.Operation{
  11095. Name: opDescribeHostReservationOfferings,
  11096. HTTPMethod: "POST",
  11097. HTTPPath: "/",
  11098. }
  11099. if input == nil {
  11100. input = &DescribeHostReservationOfferingsInput{}
  11101. }
  11102. output = &DescribeHostReservationOfferingsOutput{}
  11103. req = c.newRequest(op, input, output)
  11104. return
  11105. }
  11106. // DescribeHostReservationOfferings API operation for Amazon Elastic Compute Cloud.
  11107. //
  11108. // Describes the Dedicated Host reservations that are available to purchase.
  11109. //
  11110. // The results describe all the Dedicated Host reservation offerings, including
  11111. // offerings that may not match the instance family and Region of your Dedicated
  11112. // Hosts. When purchasing an offering, ensure that the instance family and Region
  11113. // of the offering matches that of the Dedicated Hosts with which it is to be
  11114. // associated. For more information about supported instance types, see Dedicated
  11115. // Hosts Overview (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html)
  11116. // in the Amazon Elastic Compute Cloud User Guide.
  11117. //
  11118. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11119. // with awserr.Error's Code and Message methods to get detailed information about
  11120. // the error.
  11121. //
  11122. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11123. // API operation DescribeHostReservationOfferings for usage and error information.
  11124. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferings
  11125. func (c *EC2) DescribeHostReservationOfferings(input *DescribeHostReservationOfferingsInput) (*DescribeHostReservationOfferingsOutput, error) {
  11126. req, out := c.DescribeHostReservationOfferingsRequest(input)
  11127. return out, req.Send()
  11128. }
  11129. // DescribeHostReservationOfferingsWithContext is the same as DescribeHostReservationOfferings with the addition of
  11130. // the ability to pass a context and additional request options.
  11131. //
  11132. // See DescribeHostReservationOfferings for details on how to use this API operation.
  11133. //
  11134. // The context must be non-nil and will be used for request cancellation. If
  11135. // the context is nil a panic will occur. In the future the SDK may create
  11136. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11137. // for more information on using Contexts.
  11138. func (c *EC2) DescribeHostReservationOfferingsWithContext(ctx aws.Context, input *DescribeHostReservationOfferingsInput, opts ...request.Option) (*DescribeHostReservationOfferingsOutput, error) {
  11139. req, out := c.DescribeHostReservationOfferingsRequest(input)
  11140. req.SetContext(ctx)
  11141. req.ApplyOptions(opts...)
  11142. return out, req.Send()
  11143. }
  11144. const opDescribeHostReservations = "DescribeHostReservations"
  11145. // DescribeHostReservationsRequest generates a "aws/request.Request" representing the
  11146. // client's request for the DescribeHostReservations operation. The "output" return
  11147. // value will be populated with the request's response once the request completes
  11148. // successfully.
  11149. //
  11150. // Use "Send" method on the returned Request to send the API call to the service.
  11151. // the "output" return value is not valid until after Send returns without error.
  11152. //
  11153. // See DescribeHostReservations for more information on using the DescribeHostReservations
  11154. // API call, and error handling.
  11155. //
  11156. // This method is useful when you want to inject custom logic or configuration
  11157. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11158. //
  11159. //
  11160. // // Example sending a request using the DescribeHostReservationsRequest method.
  11161. // req, resp := client.DescribeHostReservationsRequest(params)
  11162. //
  11163. // err := req.Send()
  11164. // if err == nil { // resp is now filled
  11165. // fmt.Println(resp)
  11166. // }
  11167. //
  11168. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservations
  11169. func (c *EC2) DescribeHostReservationsRequest(input *DescribeHostReservationsInput) (req *request.Request, output *DescribeHostReservationsOutput) {
  11170. op := &request.Operation{
  11171. Name: opDescribeHostReservations,
  11172. HTTPMethod: "POST",
  11173. HTTPPath: "/",
  11174. }
  11175. if input == nil {
  11176. input = &DescribeHostReservationsInput{}
  11177. }
  11178. output = &DescribeHostReservationsOutput{}
  11179. req = c.newRequest(op, input, output)
  11180. return
  11181. }
  11182. // DescribeHostReservations API operation for Amazon Elastic Compute Cloud.
  11183. //
  11184. // Describes reservations that are associated with Dedicated Hosts in your account.
  11185. //
  11186. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11187. // with awserr.Error's Code and Message methods to get detailed information about
  11188. // the error.
  11189. //
  11190. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11191. // API operation DescribeHostReservations for usage and error information.
  11192. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservations
  11193. func (c *EC2) DescribeHostReservations(input *DescribeHostReservationsInput) (*DescribeHostReservationsOutput, error) {
  11194. req, out := c.DescribeHostReservationsRequest(input)
  11195. return out, req.Send()
  11196. }
  11197. // DescribeHostReservationsWithContext is the same as DescribeHostReservations with the addition of
  11198. // the ability to pass a context and additional request options.
  11199. //
  11200. // See DescribeHostReservations for details on how to use this API operation.
  11201. //
  11202. // The context must be non-nil and will be used for request cancellation. If
  11203. // the context is nil a panic will occur. In the future the SDK may create
  11204. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11205. // for more information on using Contexts.
  11206. func (c *EC2) DescribeHostReservationsWithContext(ctx aws.Context, input *DescribeHostReservationsInput, opts ...request.Option) (*DescribeHostReservationsOutput, error) {
  11207. req, out := c.DescribeHostReservationsRequest(input)
  11208. req.SetContext(ctx)
  11209. req.ApplyOptions(opts...)
  11210. return out, req.Send()
  11211. }
  11212. const opDescribeHosts = "DescribeHosts"
  11213. // DescribeHostsRequest generates a "aws/request.Request" representing the
  11214. // client's request for the DescribeHosts operation. The "output" return
  11215. // value will be populated with the request's response once the request completes
  11216. // successfully.
  11217. //
  11218. // Use "Send" method on the returned Request to send the API call to the service.
  11219. // the "output" return value is not valid until after Send returns without error.
  11220. //
  11221. // See DescribeHosts for more information on using the DescribeHosts
  11222. // API call, and error handling.
  11223. //
  11224. // This method is useful when you want to inject custom logic or configuration
  11225. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11226. //
  11227. //
  11228. // // Example sending a request using the DescribeHostsRequest method.
  11229. // req, resp := client.DescribeHostsRequest(params)
  11230. //
  11231. // err := req.Send()
  11232. // if err == nil { // resp is now filled
  11233. // fmt.Println(resp)
  11234. // }
  11235. //
  11236. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHosts
  11237. func (c *EC2) DescribeHostsRequest(input *DescribeHostsInput) (req *request.Request, output *DescribeHostsOutput) {
  11238. op := &request.Operation{
  11239. Name: opDescribeHosts,
  11240. HTTPMethod: "POST",
  11241. HTTPPath: "/",
  11242. }
  11243. if input == nil {
  11244. input = &DescribeHostsInput{}
  11245. }
  11246. output = &DescribeHostsOutput{}
  11247. req = c.newRequest(op, input, output)
  11248. return
  11249. }
  11250. // DescribeHosts API operation for Amazon Elastic Compute Cloud.
  11251. //
  11252. // Describes one or more of your Dedicated Hosts.
  11253. //
  11254. // The results describe only the Dedicated Hosts in the Region you're currently
  11255. // using. All listed instances consume capacity on your Dedicated Host. Dedicated
  11256. // Hosts that have recently been released are listed with the state released.
  11257. //
  11258. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11259. // with awserr.Error's Code and Message methods to get detailed information about
  11260. // the error.
  11261. //
  11262. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11263. // API operation DescribeHosts for usage and error information.
  11264. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHosts
  11265. func (c *EC2) DescribeHosts(input *DescribeHostsInput) (*DescribeHostsOutput, error) {
  11266. req, out := c.DescribeHostsRequest(input)
  11267. return out, req.Send()
  11268. }
  11269. // DescribeHostsWithContext is the same as DescribeHosts with the addition of
  11270. // the ability to pass a context and additional request options.
  11271. //
  11272. // See DescribeHosts for details on how to use this API operation.
  11273. //
  11274. // The context must be non-nil and will be used for request cancellation. If
  11275. // the context is nil a panic will occur. In the future the SDK may create
  11276. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11277. // for more information on using Contexts.
  11278. func (c *EC2) DescribeHostsWithContext(ctx aws.Context, input *DescribeHostsInput, opts ...request.Option) (*DescribeHostsOutput, error) {
  11279. req, out := c.DescribeHostsRequest(input)
  11280. req.SetContext(ctx)
  11281. req.ApplyOptions(opts...)
  11282. return out, req.Send()
  11283. }
  11284. const opDescribeIamInstanceProfileAssociations = "DescribeIamInstanceProfileAssociations"
  11285. // DescribeIamInstanceProfileAssociationsRequest generates a "aws/request.Request" representing the
  11286. // client's request for the DescribeIamInstanceProfileAssociations operation. The "output" return
  11287. // value will be populated with the request's response once the request completes
  11288. // successfully.
  11289. //
  11290. // Use "Send" method on the returned Request to send the API call to the service.
  11291. // the "output" return value is not valid until after Send returns without error.
  11292. //
  11293. // See DescribeIamInstanceProfileAssociations for more information on using the DescribeIamInstanceProfileAssociations
  11294. // API call, and error handling.
  11295. //
  11296. // This method is useful when you want to inject custom logic or configuration
  11297. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11298. //
  11299. //
  11300. // // Example sending a request using the DescribeIamInstanceProfileAssociationsRequest method.
  11301. // req, resp := client.DescribeIamInstanceProfileAssociationsRequest(params)
  11302. //
  11303. // err := req.Send()
  11304. // if err == nil { // resp is now filled
  11305. // fmt.Println(resp)
  11306. // }
  11307. //
  11308. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociations
  11309. func (c *EC2) DescribeIamInstanceProfileAssociationsRequest(input *DescribeIamInstanceProfileAssociationsInput) (req *request.Request, output *DescribeIamInstanceProfileAssociationsOutput) {
  11310. op := &request.Operation{
  11311. Name: opDescribeIamInstanceProfileAssociations,
  11312. HTTPMethod: "POST",
  11313. HTTPPath: "/",
  11314. }
  11315. if input == nil {
  11316. input = &DescribeIamInstanceProfileAssociationsInput{}
  11317. }
  11318. output = &DescribeIamInstanceProfileAssociationsOutput{}
  11319. req = c.newRequest(op, input, output)
  11320. return
  11321. }
  11322. // DescribeIamInstanceProfileAssociations API operation for Amazon Elastic Compute Cloud.
  11323. //
  11324. // Describes your IAM instance profile associations.
  11325. //
  11326. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11327. // with awserr.Error's Code and Message methods to get detailed information about
  11328. // the error.
  11329. //
  11330. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11331. // API operation DescribeIamInstanceProfileAssociations for usage and error information.
  11332. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociations
  11333. func (c *EC2) DescribeIamInstanceProfileAssociations(input *DescribeIamInstanceProfileAssociationsInput) (*DescribeIamInstanceProfileAssociationsOutput, error) {
  11334. req, out := c.DescribeIamInstanceProfileAssociationsRequest(input)
  11335. return out, req.Send()
  11336. }
  11337. // DescribeIamInstanceProfileAssociationsWithContext is the same as DescribeIamInstanceProfileAssociations with the addition of
  11338. // the ability to pass a context and additional request options.
  11339. //
  11340. // See DescribeIamInstanceProfileAssociations for details on how to use this API operation.
  11341. //
  11342. // The context must be non-nil and will be used for request cancellation. If
  11343. // the context is nil a panic will occur. In the future the SDK may create
  11344. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11345. // for more information on using Contexts.
  11346. func (c *EC2) DescribeIamInstanceProfileAssociationsWithContext(ctx aws.Context, input *DescribeIamInstanceProfileAssociationsInput, opts ...request.Option) (*DescribeIamInstanceProfileAssociationsOutput, error) {
  11347. req, out := c.DescribeIamInstanceProfileAssociationsRequest(input)
  11348. req.SetContext(ctx)
  11349. req.ApplyOptions(opts...)
  11350. return out, req.Send()
  11351. }
  11352. const opDescribeIdFormat = "DescribeIdFormat"
  11353. // DescribeIdFormatRequest generates a "aws/request.Request" representing the
  11354. // client's request for the DescribeIdFormat operation. The "output" return
  11355. // value will be populated with the request's response once the request completes
  11356. // successfully.
  11357. //
  11358. // Use "Send" method on the returned Request to send the API call to the service.
  11359. // the "output" return value is not valid until after Send returns without error.
  11360. //
  11361. // See DescribeIdFormat for more information on using the DescribeIdFormat
  11362. // API call, and error handling.
  11363. //
  11364. // This method is useful when you want to inject custom logic or configuration
  11365. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11366. //
  11367. //
  11368. // // Example sending a request using the DescribeIdFormatRequest method.
  11369. // req, resp := client.DescribeIdFormatRequest(params)
  11370. //
  11371. // err := req.Send()
  11372. // if err == nil { // resp is now filled
  11373. // fmt.Println(resp)
  11374. // }
  11375. //
  11376. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormat
  11377. func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *request.Request, output *DescribeIdFormatOutput) {
  11378. op := &request.Operation{
  11379. Name: opDescribeIdFormat,
  11380. HTTPMethod: "POST",
  11381. HTTPPath: "/",
  11382. }
  11383. if input == nil {
  11384. input = &DescribeIdFormatInput{}
  11385. }
  11386. output = &DescribeIdFormatOutput{}
  11387. req = c.newRequest(op, input, output)
  11388. return
  11389. }
  11390. // DescribeIdFormat API operation for Amazon Elastic Compute Cloud.
  11391. //
  11392. // Describes the ID format settings for your resources on a per-region basis,
  11393. // for example, to view which resource types are enabled for longer IDs. This
  11394. // request only returns information about resource types whose ID formats can
  11395. // be modified; it does not return information about other resource types.
  11396. //
  11397. // The following resource types support longer IDs: bundle | conversion-task
  11398. // | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association
  11399. // | export-task | flow-log | image | import-task | instance | internet-gateway
  11400. // | network-acl | network-acl-association | network-interface | network-interface-attachment
  11401. // | prefix-list | reservation | route-table | route-table-association | security-group
  11402. // | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  11403. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  11404. //
  11405. // These settings apply to the IAM user who makes the request; they do not apply
  11406. // to the entire AWS account. By default, an IAM user defaults to the same settings
  11407. // as the root user, unless they explicitly override the settings by running
  11408. // the ModifyIdFormat command. Resources created with longer IDs are visible
  11409. // to all IAM users, regardless of these settings and provided that they have
  11410. // permission to use the relevant Describe command for the resource type.
  11411. //
  11412. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11413. // with awserr.Error's Code and Message methods to get detailed information about
  11414. // the error.
  11415. //
  11416. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11417. // API operation DescribeIdFormat for usage and error information.
  11418. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormat
  11419. func (c *EC2) DescribeIdFormat(input *DescribeIdFormatInput) (*DescribeIdFormatOutput, error) {
  11420. req, out := c.DescribeIdFormatRequest(input)
  11421. return out, req.Send()
  11422. }
  11423. // DescribeIdFormatWithContext is the same as DescribeIdFormat with the addition of
  11424. // the ability to pass a context and additional request options.
  11425. //
  11426. // See DescribeIdFormat for details on how to use this API operation.
  11427. //
  11428. // The context must be non-nil and will be used for request cancellation. If
  11429. // the context is nil a panic will occur. In the future the SDK may create
  11430. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11431. // for more information on using Contexts.
  11432. func (c *EC2) DescribeIdFormatWithContext(ctx aws.Context, input *DescribeIdFormatInput, opts ...request.Option) (*DescribeIdFormatOutput, error) {
  11433. req, out := c.DescribeIdFormatRequest(input)
  11434. req.SetContext(ctx)
  11435. req.ApplyOptions(opts...)
  11436. return out, req.Send()
  11437. }
  11438. const opDescribeIdentityIdFormat = "DescribeIdentityIdFormat"
  11439. // DescribeIdentityIdFormatRequest generates a "aws/request.Request" representing the
  11440. // client's request for the DescribeIdentityIdFormat operation. The "output" return
  11441. // value will be populated with the request's response once the request completes
  11442. // successfully.
  11443. //
  11444. // Use "Send" method on the returned Request to send the API call to the service.
  11445. // the "output" return value is not valid until after Send returns without error.
  11446. //
  11447. // See DescribeIdentityIdFormat for more information on using the DescribeIdentityIdFormat
  11448. // API call, and error handling.
  11449. //
  11450. // This method is useful when you want to inject custom logic or configuration
  11451. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11452. //
  11453. //
  11454. // // Example sending a request using the DescribeIdentityIdFormatRequest method.
  11455. // req, resp := client.DescribeIdentityIdFormatRequest(params)
  11456. //
  11457. // err := req.Send()
  11458. // if err == nil { // resp is now filled
  11459. // fmt.Println(resp)
  11460. // }
  11461. //
  11462. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormat
  11463. func (c *EC2) DescribeIdentityIdFormatRequest(input *DescribeIdentityIdFormatInput) (req *request.Request, output *DescribeIdentityIdFormatOutput) {
  11464. op := &request.Operation{
  11465. Name: opDescribeIdentityIdFormat,
  11466. HTTPMethod: "POST",
  11467. HTTPPath: "/",
  11468. }
  11469. if input == nil {
  11470. input = &DescribeIdentityIdFormatInput{}
  11471. }
  11472. output = &DescribeIdentityIdFormatOutput{}
  11473. req = c.newRequest(op, input, output)
  11474. return
  11475. }
  11476. // DescribeIdentityIdFormat API operation for Amazon Elastic Compute Cloud.
  11477. //
  11478. // Describes the ID format settings for resources for the specified IAM user,
  11479. // IAM role, or root user. For example, you can view the resource types that
  11480. // are enabled for longer IDs. This request only returns information about resource
  11481. // types whose ID formats can be modified; it does not return information about
  11482. // other resource types. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  11483. // in the Amazon Elastic Compute Cloud User Guide.
  11484. //
  11485. // The following resource types support longer IDs: bundle | conversion-task
  11486. // | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association
  11487. // | export-task | flow-log | image | import-task | instance | internet-gateway
  11488. // | network-acl | network-acl-association | network-interface | network-interface-attachment
  11489. // | prefix-list | reservation | route-table | route-table-association | security-group
  11490. // | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  11491. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  11492. //
  11493. // These settings apply to the principal specified in the request. They do not
  11494. // apply to the principal that makes the request.
  11495. //
  11496. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11497. // with awserr.Error's Code and Message methods to get detailed information about
  11498. // the error.
  11499. //
  11500. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11501. // API operation DescribeIdentityIdFormat for usage and error information.
  11502. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormat
  11503. func (c *EC2) DescribeIdentityIdFormat(input *DescribeIdentityIdFormatInput) (*DescribeIdentityIdFormatOutput, error) {
  11504. req, out := c.DescribeIdentityIdFormatRequest(input)
  11505. return out, req.Send()
  11506. }
  11507. // DescribeIdentityIdFormatWithContext is the same as DescribeIdentityIdFormat with the addition of
  11508. // the ability to pass a context and additional request options.
  11509. //
  11510. // See DescribeIdentityIdFormat for details on how to use this API operation.
  11511. //
  11512. // The context must be non-nil and will be used for request cancellation. If
  11513. // the context is nil a panic will occur. In the future the SDK may create
  11514. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11515. // for more information on using Contexts.
  11516. func (c *EC2) DescribeIdentityIdFormatWithContext(ctx aws.Context, input *DescribeIdentityIdFormatInput, opts ...request.Option) (*DescribeIdentityIdFormatOutput, error) {
  11517. req, out := c.DescribeIdentityIdFormatRequest(input)
  11518. req.SetContext(ctx)
  11519. req.ApplyOptions(opts...)
  11520. return out, req.Send()
  11521. }
  11522. const opDescribeImageAttribute = "DescribeImageAttribute"
  11523. // DescribeImageAttributeRequest generates a "aws/request.Request" representing the
  11524. // client's request for the DescribeImageAttribute operation. The "output" return
  11525. // value will be populated with the request's response once the request completes
  11526. // successfully.
  11527. //
  11528. // Use "Send" method on the returned Request to send the API call to the service.
  11529. // the "output" return value is not valid until after Send returns without error.
  11530. //
  11531. // See DescribeImageAttribute for more information on using the DescribeImageAttribute
  11532. // API call, and error handling.
  11533. //
  11534. // This method is useful when you want to inject custom logic or configuration
  11535. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11536. //
  11537. //
  11538. // // Example sending a request using the DescribeImageAttributeRequest method.
  11539. // req, resp := client.DescribeImageAttributeRequest(params)
  11540. //
  11541. // err := req.Send()
  11542. // if err == nil { // resp is now filled
  11543. // fmt.Println(resp)
  11544. // }
  11545. //
  11546. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute
  11547. func (c *EC2) DescribeImageAttributeRequest(input *DescribeImageAttributeInput) (req *request.Request, output *DescribeImageAttributeOutput) {
  11548. op := &request.Operation{
  11549. Name: opDescribeImageAttribute,
  11550. HTTPMethod: "POST",
  11551. HTTPPath: "/",
  11552. }
  11553. if input == nil {
  11554. input = &DescribeImageAttributeInput{}
  11555. }
  11556. output = &DescribeImageAttributeOutput{}
  11557. req = c.newRequest(op, input, output)
  11558. return
  11559. }
  11560. // DescribeImageAttribute API operation for Amazon Elastic Compute Cloud.
  11561. //
  11562. // Describes the specified attribute of the specified AMI. You can specify only
  11563. // one attribute at a time.
  11564. //
  11565. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11566. // with awserr.Error's Code and Message methods to get detailed information about
  11567. // the error.
  11568. //
  11569. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11570. // API operation DescribeImageAttribute for usage and error information.
  11571. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute
  11572. func (c *EC2) DescribeImageAttribute(input *DescribeImageAttributeInput) (*DescribeImageAttributeOutput, error) {
  11573. req, out := c.DescribeImageAttributeRequest(input)
  11574. return out, req.Send()
  11575. }
  11576. // DescribeImageAttributeWithContext is the same as DescribeImageAttribute with the addition of
  11577. // the ability to pass a context and additional request options.
  11578. //
  11579. // See DescribeImageAttribute for details on how to use this API operation.
  11580. //
  11581. // The context must be non-nil and will be used for request cancellation. If
  11582. // the context is nil a panic will occur. In the future the SDK may create
  11583. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11584. // for more information on using Contexts.
  11585. func (c *EC2) DescribeImageAttributeWithContext(ctx aws.Context, input *DescribeImageAttributeInput, opts ...request.Option) (*DescribeImageAttributeOutput, error) {
  11586. req, out := c.DescribeImageAttributeRequest(input)
  11587. req.SetContext(ctx)
  11588. req.ApplyOptions(opts...)
  11589. return out, req.Send()
  11590. }
  11591. const opDescribeImages = "DescribeImages"
  11592. // DescribeImagesRequest generates a "aws/request.Request" representing the
  11593. // client's request for the DescribeImages operation. The "output" return
  11594. // value will be populated with the request's response once the request completes
  11595. // successfully.
  11596. //
  11597. // Use "Send" method on the returned Request to send the API call to the service.
  11598. // the "output" return value is not valid until after Send returns without error.
  11599. //
  11600. // See DescribeImages for more information on using the DescribeImages
  11601. // API call, and error handling.
  11602. //
  11603. // This method is useful when you want to inject custom logic or configuration
  11604. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11605. //
  11606. //
  11607. // // Example sending a request using the DescribeImagesRequest method.
  11608. // req, resp := client.DescribeImagesRequest(params)
  11609. //
  11610. // err := req.Send()
  11611. // if err == nil { // resp is now filled
  11612. // fmt.Println(resp)
  11613. // }
  11614. //
  11615. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImages
  11616. func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput) {
  11617. op := &request.Operation{
  11618. Name: opDescribeImages,
  11619. HTTPMethod: "POST",
  11620. HTTPPath: "/",
  11621. }
  11622. if input == nil {
  11623. input = &DescribeImagesInput{}
  11624. }
  11625. output = &DescribeImagesOutput{}
  11626. req = c.newRequest(op, input, output)
  11627. return
  11628. }
  11629. // DescribeImages API operation for Amazon Elastic Compute Cloud.
  11630. //
  11631. // Describes one or more of the images (AMIs, AKIs, and ARIs) available to you.
  11632. // Images available to you include public images, private images that you own,
  11633. // and private images owned by other AWS accounts but for which you have explicit
  11634. // launch permissions.
  11635. //
  11636. // Deregistered images are included in the returned results for an unspecified
  11637. // interval after deregistration.
  11638. //
  11639. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11640. // with awserr.Error's Code and Message methods to get detailed information about
  11641. // the error.
  11642. //
  11643. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11644. // API operation DescribeImages for usage and error information.
  11645. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImages
  11646. func (c *EC2) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error) {
  11647. req, out := c.DescribeImagesRequest(input)
  11648. return out, req.Send()
  11649. }
  11650. // DescribeImagesWithContext is the same as DescribeImages with the addition of
  11651. // the ability to pass a context and additional request options.
  11652. //
  11653. // See DescribeImages for details on how to use this API operation.
  11654. //
  11655. // The context must be non-nil and will be used for request cancellation. If
  11656. // the context is nil a panic will occur. In the future the SDK may create
  11657. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11658. // for more information on using Contexts.
  11659. func (c *EC2) DescribeImagesWithContext(ctx aws.Context, input *DescribeImagesInput, opts ...request.Option) (*DescribeImagesOutput, error) {
  11660. req, out := c.DescribeImagesRequest(input)
  11661. req.SetContext(ctx)
  11662. req.ApplyOptions(opts...)
  11663. return out, req.Send()
  11664. }
  11665. const opDescribeImportImageTasks = "DescribeImportImageTasks"
  11666. // DescribeImportImageTasksRequest generates a "aws/request.Request" representing the
  11667. // client's request for the DescribeImportImageTasks operation. The "output" return
  11668. // value will be populated with the request's response once the request completes
  11669. // successfully.
  11670. //
  11671. // Use "Send" method on the returned Request to send the API call to the service.
  11672. // the "output" return value is not valid until after Send returns without error.
  11673. //
  11674. // See DescribeImportImageTasks for more information on using the DescribeImportImageTasks
  11675. // API call, and error handling.
  11676. //
  11677. // This method is useful when you want to inject custom logic or configuration
  11678. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11679. //
  11680. //
  11681. // // Example sending a request using the DescribeImportImageTasksRequest method.
  11682. // req, resp := client.DescribeImportImageTasksRequest(params)
  11683. //
  11684. // err := req.Send()
  11685. // if err == nil { // resp is now filled
  11686. // fmt.Println(resp)
  11687. // }
  11688. //
  11689. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasks
  11690. func (c *EC2) DescribeImportImageTasksRequest(input *DescribeImportImageTasksInput) (req *request.Request, output *DescribeImportImageTasksOutput) {
  11691. op := &request.Operation{
  11692. Name: opDescribeImportImageTasks,
  11693. HTTPMethod: "POST",
  11694. HTTPPath: "/",
  11695. }
  11696. if input == nil {
  11697. input = &DescribeImportImageTasksInput{}
  11698. }
  11699. output = &DescribeImportImageTasksOutput{}
  11700. req = c.newRequest(op, input, output)
  11701. return
  11702. }
  11703. // DescribeImportImageTasks API operation for Amazon Elastic Compute Cloud.
  11704. //
  11705. // Displays details about an import virtual machine or import snapshot tasks
  11706. // that are already created.
  11707. //
  11708. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11709. // with awserr.Error's Code and Message methods to get detailed information about
  11710. // the error.
  11711. //
  11712. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11713. // API operation DescribeImportImageTasks for usage and error information.
  11714. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasks
  11715. func (c *EC2) DescribeImportImageTasks(input *DescribeImportImageTasksInput) (*DescribeImportImageTasksOutput, error) {
  11716. req, out := c.DescribeImportImageTasksRequest(input)
  11717. return out, req.Send()
  11718. }
  11719. // DescribeImportImageTasksWithContext is the same as DescribeImportImageTasks with the addition of
  11720. // the ability to pass a context and additional request options.
  11721. //
  11722. // See DescribeImportImageTasks for details on how to use this API operation.
  11723. //
  11724. // The context must be non-nil and will be used for request cancellation. If
  11725. // the context is nil a panic will occur. In the future the SDK may create
  11726. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11727. // for more information on using Contexts.
  11728. func (c *EC2) DescribeImportImageTasksWithContext(ctx aws.Context, input *DescribeImportImageTasksInput, opts ...request.Option) (*DescribeImportImageTasksOutput, error) {
  11729. req, out := c.DescribeImportImageTasksRequest(input)
  11730. req.SetContext(ctx)
  11731. req.ApplyOptions(opts...)
  11732. return out, req.Send()
  11733. }
  11734. const opDescribeImportSnapshotTasks = "DescribeImportSnapshotTasks"
  11735. // DescribeImportSnapshotTasksRequest generates a "aws/request.Request" representing the
  11736. // client's request for the DescribeImportSnapshotTasks operation. The "output" return
  11737. // value will be populated with the request's response once the request completes
  11738. // successfully.
  11739. //
  11740. // Use "Send" method on the returned Request to send the API call to the service.
  11741. // the "output" return value is not valid until after Send returns without error.
  11742. //
  11743. // See DescribeImportSnapshotTasks for more information on using the DescribeImportSnapshotTasks
  11744. // API call, and error handling.
  11745. //
  11746. // This method is useful when you want to inject custom logic or configuration
  11747. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11748. //
  11749. //
  11750. // // Example sending a request using the DescribeImportSnapshotTasksRequest method.
  11751. // req, resp := client.DescribeImportSnapshotTasksRequest(params)
  11752. //
  11753. // err := req.Send()
  11754. // if err == nil { // resp is now filled
  11755. // fmt.Println(resp)
  11756. // }
  11757. //
  11758. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasks
  11759. func (c *EC2) DescribeImportSnapshotTasksRequest(input *DescribeImportSnapshotTasksInput) (req *request.Request, output *DescribeImportSnapshotTasksOutput) {
  11760. op := &request.Operation{
  11761. Name: opDescribeImportSnapshotTasks,
  11762. HTTPMethod: "POST",
  11763. HTTPPath: "/",
  11764. }
  11765. if input == nil {
  11766. input = &DescribeImportSnapshotTasksInput{}
  11767. }
  11768. output = &DescribeImportSnapshotTasksOutput{}
  11769. req = c.newRequest(op, input, output)
  11770. return
  11771. }
  11772. // DescribeImportSnapshotTasks API operation for Amazon Elastic Compute Cloud.
  11773. //
  11774. // Describes your import snapshot tasks.
  11775. //
  11776. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11777. // with awserr.Error's Code and Message methods to get detailed information about
  11778. // the error.
  11779. //
  11780. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11781. // API operation DescribeImportSnapshotTasks for usage and error information.
  11782. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasks
  11783. func (c *EC2) DescribeImportSnapshotTasks(input *DescribeImportSnapshotTasksInput) (*DescribeImportSnapshotTasksOutput, error) {
  11784. req, out := c.DescribeImportSnapshotTasksRequest(input)
  11785. return out, req.Send()
  11786. }
  11787. // DescribeImportSnapshotTasksWithContext is the same as DescribeImportSnapshotTasks with the addition of
  11788. // the ability to pass a context and additional request options.
  11789. //
  11790. // See DescribeImportSnapshotTasks for details on how to use this API operation.
  11791. //
  11792. // The context must be non-nil and will be used for request cancellation. If
  11793. // the context is nil a panic will occur. In the future the SDK may create
  11794. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11795. // for more information on using Contexts.
  11796. func (c *EC2) DescribeImportSnapshotTasksWithContext(ctx aws.Context, input *DescribeImportSnapshotTasksInput, opts ...request.Option) (*DescribeImportSnapshotTasksOutput, error) {
  11797. req, out := c.DescribeImportSnapshotTasksRequest(input)
  11798. req.SetContext(ctx)
  11799. req.ApplyOptions(opts...)
  11800. return out, req.Send()
  11801. }
  11802. const opDescribeInstanceAttribute = "DescribeInstanceAttribute"
  11803. // DescribeInstanceAttributeRequest generates a "aws/request.Request" representing the
  11804. // client's request for the DescribeInstanceAttribute operation. The "output" return
  11805. // value will be populated with the request's response once the request completes
  11806. // successfully.
  11807. //
  11808. // Use "Send" method on the returned Request to send the API call to the service.
  11809. // the "output" return value is not valid until after Send returns without error.
  11810. //
  11811. // See DescribeInstanceAttribute for more information on using the DescribeInstanceAttribute
  11812. // API call, and error handling.
  11813. //
  11814. // This method is useful when you want to inject custom logic or configuration
  11815. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11816. //
  11817. //
  11818. // // Example sending a request using the DescribeInstanceAttributeRequest method.
  11819. // req, resp := client.DescribeInstanceAttributeRequest(params)
  11820. //
  11821. // err := req.Send()
  11822. // if err == nil { // resp is now filled
  11823. // fmt.Println(resp)
  11824. // }
  11825. //
  11826. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttribute
  11827. func (c *EC2) DescribeInstanceAttributeRequest(input *DescribeInstanceAttributeInput) (req *request.Request, output *DescribeInstanceAttributeOutput) {
  11828. op := &request.Operation{
  11829. Name: opDescribeInstanceAttribute,
  11830. HTTPMethod: "POST",
  11831. HTTPPath: "/",
  11832. }
  11833. if input == nil {
  11834. input = &DescribeInstanceAttributeInput{}
  11835. }
  11836. output = &DescribeInstanceAttributeOutput{}
  11837. req = c.newRequest(op, input, output)
  11838. return
  11839. }
  11840. // DescribeInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  11841. //
  11842. // Describes the specified attribute of the specified instance. You can specify
  11843. // only one attribute at a time. Valid attribute values are: instanceType |
  11844. // kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior
  11845. // | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck |
  11846. // groupSet | ebsOptimized | sriovNetSupport
  11847. //
  11848. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11849. // with awserr.Error's Code and Message methods to get detailed information about
  11850. // the error.
  11851. //
  11852. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11853. // API operation DescribeInstanceAttribute for usage and error information.
  11854. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttribute
  11855. func (c *EC2) DescribeInstanceAttribute(input *DescribeInstanceAttributeInput) (*DescribeInstanceAttributeOutput, error) {
  11856. req, out := c.DescribeInstanceAttributeRequest(input)
  11857. return out, req.Send()
  11858. }
  11859. // DescribeInstanceAttributeWithContext is the same as DescribeInstanceAttribute with the addition of
  11860. // the ability to pass a context and additional request options.
  11861. //
  11862. // See DescribeInstanceAttribute for details on how to use this API operation.
  11863. //
  11864. // The context must be non-nil and will be used for request cancellation. If
  11865. // the context is nil a panic will occur. In the future the SDK may create
  11866. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11867. // for more information on using Contexts.
  11868. func (c *EC2) DescribeInstanceAttributeWithContext(ctx aws.Context, input *DescribeInstanceAttributeInput, opts ...request.Option) (*DescribeInstanceAttributeOutput, error) {
  11869. req, out := c.DescribeInstanceAttributeRequest(input)
  11870. req.SetContext(ctx)
  11871. req.ApplyOptions(opts...)
  11872. return out, req.Send()
  11873. }
  11874. const opDescribeInstanceCreditSpecifications = "DescribeInstanceCreditSpecifications"
  11875. // DescribeInstanceCreditSpecificationsRequest generates a "aws/request.Request" representing the
  11876. // client's request for the DescribeInstanceCreditSpecifications operation. The "output" return
  11877. // value will be populated with the request's response once the request completes
  11878. // successfully.
  11879. //
  11880. // Use "Send" method on the returned Request to send the API call to the service.
  11881. // the "output" return value is not valid until after Send returns without error.
  11882. //
  11883. // See DescribeInstanceCreditSpecifications for more information on using the DescribeInstanceCreditSpecifications
  11884. // API call, and error handling.
  11885. //
  11886. // This method is useful when you want to inject custom logic or configuration
  11887. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11888. //
  11889. //
  11890. // // Example sending a request using the DescribeInstanceCreditSpecificationsRequest method.
  11891. // req, resp := client.DescribeInstanceCreditSpecificationsRequest(params)
  11892. //
  11893. // err := req.Send()
  11894. // if err == nil { // resp is now filled
  11895. // fmt.Println(resp)
  11896. // }
  11897. //
  11898. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceCreditSpecifications
  11899. func (c *EC2) DescribeInstanceCreditSpecificationsRequest(input *DescribeInstanceCreditSpecificationsInput) (req *request.Request, output *DescribeInstanceCreditSpecificationsOutput) {
  11900. op := &request.Operation{
  11901. Name: opDescribeInstanceCreditSpecifications,
  11902. HTTPMethod: "POST",
  11903. HTTPPath: "/",
  11904. }
  11905. if input == nil {
  11906. input = &DescribeInstanceCreditSpecificationsInput{}
  11907. }
  11908. output = &DescribeInstanceCreditSpecificationsOutput{}
  11909. req = c.newRequest(op, input, output)
  11910. return
  11911. }
  11912. // DescribeInstanceCreditSpecifications API operation for Amazon Elastic Compute Cloud.
  11913. //
  11914. // Describes the credit option for CPU usage of one or more of your T2 or T3
  11915. // instances. The credit options are standard and unlimited.
  11916. //
  11917. // If you do not specify an instance ID, Amazon EC2 returns T2 and T3 instances
  11918. // with the unlimited credit option, as well as instances that were previously
  11919. // configured as T2 or T3 with the unlimited credit option. For example, if
  11920. // you resize a T2 instance, while it is configured as unlimited, to an M4 instance,
  11921. // Amazon EC2 returns the M4 instance.
  11922. //
  11923. // If you specify one or more instance IDs, Amazon EC2 returns the credit option
  11924. // (standard or unlimited) of those instances. If you specify an instance ID
  11925. // that is not valid, such as an instance that is not a T2 or T3 instance, an
  11926. // error is returned.
  11927. //
  11928. // Recently terminated instances might appear in the returned results. This
  11929. // interval is usually less than one hour.
  11930. //
  11931. // If an Availability Zone is experiencing a service disruption and you specify
  11932. // instance IDs in the affected zone, or do not specify any instance IDs at
  11933. // all, the call fails. If you specify only instance IDs in an unaffected zone,
  11934. // the call works normally.
  11935. //
  11936. // For more information, see Burstable Performance Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html)
  11937. // in the Amazon Elastic Compute Cloud User Guide.
  11938. //
  11939. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11940. // with awserr.Error's Code and Message methods to get detailed information about
  11941. // the error.
  11942. //
  11943. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11944. // API operation DescribeInstanceCreditSpecifications for usage and error information.
  11945. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceCreditSpecifications
  11946. func (c *EC2) DescribeInstanceCreditSpecifications(input *DescribeInstanceCreditSpecificationsInput) (*DescribeInstanceCreditSpecificationsOutput, error) {
  11947. req, out := c.DescribeInstanceCreditSpecificationsRequest(input)
  11948. return out, req.Send()
  11949. }
  11950. // DescribeInstanceCreditSpecificationsWithContext is the same as DescribeInstanceCreditSpecifications with the addition of
  11951. // the ability to pass a context and additional request options.
  11952. //
  11953. // See DescribeInstanceCreditSpecifications for details on how to use this API operation.
  11954. //
  11955. // The context must be non-nil and will be used for request cancellation. If
  11956. // the context is nil a panic will occur. In the future the SDK may create
  11957. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11958. // for more information on using Contexts.
  11959. func (c *EC2) DescribeInstanceCreditSpecificationsWithContext(ctx aws.Context, input *DescribeInstanceCreditSpecificationsInput, opts ...request.Option) (*DescribeInstanceCreditSpecificationsOutput, error) {
  11960. req, out := c.DescribeInstanceCreditSpecificationsRequest(input)
  11961. req.SetContext(ctx)
  11962. req.ApplyOptions(opts...)
  11963. return out, req.Send()
  11964. }
  11965. const opDescribeInstanceStatus = "DescribeInstanceStatus"
  11966. // DescribeInstanceStatusRequest generates a "aws/request.Request" representing the
  11967. // client's request for the DescribeInstanceStatus operation. The "output" return
  11968. // value will be populated with the request's response once the request completes
  11969. // successfully.
  11970. //
  11971. // Use "Send" method on the returned Request to send the API call to the service.
  11972. // the "output" return value is not valid until after Send returns without error.
  11973. //
  11974. // See DescribeInstanceStatus for more information on using the DescribeInstanceStatus
  11975. // API call, and error handling.
  11976. //
  11977. // This method is useful when you want to inject custom logic or configuration
  11978. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11979. //
  11980. //
  11981. // // Example sending a request using the DescribeInstanceStatusRequest method.
  11982. // req, resp := client.DescribeInstanceStatusRequest(params)
  11983. //
  11984. // err := req.Send()
  11985. // if err == nil { // resp is now filled
  11986. // fmt.Println(resp)
  11987. // }
  11988. //
  11989. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatus
  11990. func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) (req *request.Request, output *DescribeInstanceStatusOutput) {
  11991. op := &request.Operation{
  11992. Name: opDescribeInstanceStatus,
  11993. HTTPMethod: "POST",
  11994. HTTPPath: "/",
  11995. Paginator: &request.Paginator{
  11996. InputTokens: []string{"NextToken"},
  11997. OutputTokens: []string{"NextToken"},
  11998. LimitToken: "MaxResults",
  11999. TruncationToken: "",
  12000. },
  12001. }
  12002. if input == nil {
  12003. input = &DescribeInstanceStatusInput{}
  12004. }
  12005. output = &DescribeInstanceStatusOutput{}
  12006. req = c.newRequest(op, input, output)
  12007. return
  12008. }
  12009. // DescribeInstanceStatus API operation for Amazon Elastic Compute Cloud.
  12010. //
  12011. // Describes the status of one or more instances. By default, only running instances
  12012. // are described, unless you specifically indicate to return the status of all
  12013. // instances.
  12014. //
  12015. // Instance status includes the following components:
  12016. //
  12017. // * Status checks - Amazon EC2 performs status checks on running EC2 instances
  12018. // to identify hardware and software issues. For more information, see Status
  12019. // Checks for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html)
  12020. // and Troubleshooting Instances with Failed Status Checks (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html)
  12021. // in the Amazon Elastic Compute Cloud User Guide.
  12022. //
  12023. // * Scheduled events - Amazon EC2 can schedule events (such as reboot, stop,
  12024. // or terminate) for your instances related to hardware issues, software
  12025. // updates, or system maintenance. For more information, see Scheduled Events
  12026. // for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html)
  12027. // in the Amazon Elastic Compute Cloud User Guide.
  12028. //
  12029. // * Instance state - You can manage your instances from the moment you launch
  12030. // them through their termination. For more information, see Instance Lifecycle
  12031. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  12032. // in the Amazon Elastic Compute Cloud User Guide.
  12033. //
  12034. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12035. // with awserr.Error's Code and Message methods to get detailed information about
  12036. // the error.
  12037. //
  12038. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12039. // API operation DescribeInstanceStatus for usage and error information.
  12040. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatus
  12041. func (c *EC2) DescribeInstanceStatus(input *DescribeInstanceStatusInput) (*DescribeInstanceStatusOutput, error) {
  12042. req, out := c.DescribeInstanceStatusRequest(input)
  12043. return out, req.Send()
  12044. }
  12045. // DescribeInstanceStatusWithContext is the same as DescribeInstanceStatus with the addition of
  12046. // the ability to pass a context and additional request options.
  12047. //
  12048. // See DescribeInstanceStatus for details on how to use this API operation.
  12049. //
  12050. // The context must be non-nil and will be used for request cancellation. If
  12051. // the context is nil a panic will occur. In the future the SDK may create
  12052. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12053. // for more information on using Contexts.
  12054. func (c *EC2) DescribeInstanceStatusWithContext(ctx aws.Context, input *DescribeInstanceStatusInput, opts ...request.Option) (*DescribeInstanceStatusOutput, error) {
  12055. req, out := c.DescribeInstanceStatusRequest(input)
  12056. req.SetContext(ctx)
  12057. req.ApplyOptions(opts...)
  12058. return out, req.Send()
  12059. }
  12060. // DescribeInstanceStatusPages iterates over the pages of a DescribeInstanceStatus operation,
  12061. // calling the "fn" function with the response data for each page. To stop
  12062. // iterating, return false from the fn function.
  12063. //
  12064. // See DescribeInstanceStatus method for more information on how to use this operation.
  12065. //
  12066. // Note: This operation can generate multiple requests to a service.
  12067. //
  12068. // // Example iterating over at most 3 pages of a DescribeInstanceStatus operation.
  12069. // pageNum := 0
  12070. // err := client.DescribeInstanceStatusPages(params,
  12071. // func(page *DescribeInstanceStatusOutput, lastPage bool) bool {
  12072. // pageNum++
  12073. // fmt.Println(page)
  12074. // return pageNum <= 3
  12075. // })
  12076. //
  12077. func (c *EC2) DescribeInstanceStatusPages(input *DescribeInstanceStatusInput, fn func(*DescribeInstanceStatusOutput, bool) bool) error {
  12078. return c.DescribeInstanceStatusPagesWithContext(aws.BackgroundContext(), input, fn)
  12079. }
  12080. // DescribeInstanceStatusPagesWithContext same as DescribeInstanceStatusPages except
  12081. // it takes a Context and allows setting request options on the pages.
  12082. //
  12083. // The context must be non-nil and will be used for request cancellation. If
  12084. // the context is nil a panic will occur. In the future the SDK may create
  12085. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12086. // for more information on using Contexts.
  12087. func (c *EC2) DescribeInstanceStatusPagesWithContext(ctx aws.Context, input *DescribeInstanceStatusInput, fn func(*DescribeInstanceStatusOutput, bool) bool, opts ...request.Option) error {
  12088. p := request.Pagination{
  12089. NewRequest: func() (*request.Request, error) {
  12090. var inCpy *DescribeInstanceStatusInput
  12091. if input != nil {
  12092. tmp := *input
  12093. inCpy = &tmp
  12094. }
  12095. req, _ := c.DescribeInstanceStatusRequest(inCpy)
  12096. req.SetContext(ctx)
  12097. req.ApplyOptions(opts...)
  12098. return req, nil
  12099. },
  12100. }
  12101. cont := true
  12102. for p.Next() && cont {
  12103. cont = fn(p.Page().(*DescribeInstanceStatusOutput), !p.HasNextPage())
  12104. }
  12105. return p.Err()
  12106. }
  12107. const opDescribeInstances = "DescribeInstances"
  12108. // DescribeInstancesRequest generates a "aws/request.Request" representing the
  12109. // client's request for the DescribeInstances operation. The "output" return
  12110. // value will be populated with the request's response once the request completes
  12111. // successfully.
  12112. //
  12113. // Use "Send" method on the returned Request to send the API call to the service.
  12114. // the "output" return value is not valid until after Send returns without error.
  12115. //
  12116. // See DescribeInstances for more information on using the DescribeInstances
  12117. // API call, and error handling.
  12118. //
  12119. // This method is useful when you want to inject custom logic or configuration
  12120. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12121. //
  12122. //
  12123. // // Example sending a request using the DescribeInstancesRequest method.
  12124. // req, resp := client.DescribeInstancesRequest(params)
  12125. //
  12126. // err := req.Send()
  12127. // if err == nil { // resp is now filled
  12128. // fmt.Println(resp)
  12129. // }
  12130. //
  12131. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstances
  12132. func (c *EC2) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput) {
  12133. op := &request.Operation{
  12134. Name: opDescribeInstances,
  12135. HTTPMethod: "POST",
  12136. HTTPPath: "/",
  12137. Paginator: &request.Paginator{
  12138. InputTokens: []string{"NextToken"},
  12139. OutputTokens: []string{"NextToken"},
  12140. LimitToken: "MaxResults",
  12141. TruncationToken: "",
  12142. },
  12143. }
  12144. if input == nil {
  12145. input = &DescribeInstancesInput{}
  12146. }
  12147. output = &DescribeInstancesOutput{}
  12148. req = c.newRequest(op, input, output)
  12149. return
  12150. }
  12151. // DescribeInstances API operation for Amazon Elastic Compute Cloud.
  12152. //
  12153. // Describes one or more of your instances.
  12154. //
  12155. // If you specify one or more instance IDs, Amazon EC2 returns information for
  12156. // those instances. If you do not specify instance IDs, Amazon EC2 returns information
  12157. // for all relevant instances. If you specify an instance ID that is not valid,
  12158. // an error is returned. If you specify an instance that you do not own, it
  12159. // is not included in the returned results.
  12160. //
  12161. // Recently terminated instances might appear in the returned results. This
  12162. // interval is usually less than one hour.
  12163. //
  12164. // If you describe instances in the rare case where an Availability Zone is
  12165. // experiencing a service disruption and you specify instance IDs that are in
  12166. // the affected zone, or do not specify any instance IDs at all, the call fails.
  12167. // If you describe instances and specify only instance IDs that are in an unaffected
  12168. // zone, the call works normally.
  12169. //
  12170. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12171. // with awserr.Error's Code and Message methods to get detailed information about
  12172. // the error.
  12173. //
  12174. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12175. // API operation DescribeInstances for usage and error information.
  12176. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstances
  12177. func (c *EC2) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) {
  12178. req, out := c.DescribeInstancesRequest(input)
  12179. return out, req.Send()
  12180. }
  12181. // DescribeInstancesWithContext is the same as DescribeInstances with the addition of
  12182. // the ability to pass a context and additional request options.
  12183. //
  12184. // See DescribeInstances for details on how to use this API operation.
  12185. //
  12186. // The context must be non-nil and will be used for request cancellation. If
  12187. // the context is nil a panic will occur. In the future the SDK may create
  12188. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12189. // for more information on using Contexts.
  12190. func (c *EC2) DescribeInstancesWithContext(ctx aws.Context, input *DescribeInstancesInput, opts ...request.Option) (*DescribeInstancesOutput, error) {
  12191. req, out := c.DescribeInstancesRequest(input)
  12192. req.SetContext(ctx)
  12193. req.ApplyOptions(opts...)
  12194. return out, req.Send()
  12195. }
  12196. // DescribeInstancesPages iterates over the pages of a DescribeInstances operation,
  12197. // calling the "fn" function with the response data for each page. To stop
  12198. // iterating, return false from the fn function.
  12199. //
  12200. // See DescribeInstances method for more information on how to use this operation.
  12201. //
  12202. // Note: This operation can generate multiple requests to a service.
  12203. //
  12204. // // Example iterating over at most 3 pages of a DescribeInstances operation.
  12205. // pageNum := 0
  12206. // err := client.DescribeInstancesPages(params,
  12207. // func(page *DescribeInstancesOutput, lastPage bool) bool {
  12208. // pageNum++
  12209. // fmt.Println(page)
  12210. // return pageNum <= 3
  12211. // })
  12212. //
  12213. func (c *EC2) DescribeInstancesPages(input *DescribeInstancesInput, fn func(*DescribeInstancesOutput, bool) bool) error {
  12214. return c.DescribeInstancesPagesWithContext(aws.BackgroundContext(), input, fn)
  12215. }
  12216. // DescribeInstancesPagesWithContext same as DescribeInstancesPages except
  12217. // it takes a Context and allows setting request options on the pages.
  12218. //
  12219. // The context must be non-nil and will be used for request cancellation. If
  12220. // the context is nil a panic will occur. In the future the SDK may create
  12221. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12222. // for more information on using Contexts.
  12223. func (c *EC2) DescribeInstancesPagesWithContext(ctx aws.Context, input *DescribeInstancesInput, fn func(*DescribeInstancesOutput, bool) bool, opts ...request.Option) error {
  12224. p := request.Pagination{
  12225. NewRequest: func() (*request.Request, error) {
  12226. var inCpy *DescribeInstancesInput
  12227. if input != nil {
  12228. tmp := *input
  12229. inCpy = &tmp
  12230. }
  12231. req, _ := c.DescribeInstancesRequest(inCpy)
  12232. req.SetContext(ctx)
  12233. req.ApplyOptions(opts...)
  12234. return req, nil
  12235. },
  12236. }
  12237. cont := true
  12238. for p.Next() && cont {
  12239. cont = fn(p.Page().(*DescribeInstancesOutput), !p.HasNextPage())
  12240. }
  12241. return p.Err()
  12242. }
  12243. const opDescribeInternetGateways = "DescribeInternetGateways"
  12244. // DescribeInternetGatewaysRequest generates a "aws/request.Request" representing the
  12245. // client's request for the DescribeInternetGateways operation. The "output" return
  12246. // value will be populated with the request's response once the request completes
  12247. // successfully.
  12248. //
  12249. // Use "Send" method on the returned Request to send the API call to the service.
  12250. // the "output" return value is not valid until after Send returns without error.
  12251. //
  12252. // See DescribeInternetGateways for more information on using the DescribeInternetGateways
  12253. // API call, and error handling.
  12254. //
  12255. // This method is useful when you want to inject custom logic or configuration
  12256. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12257. //
  12258. //
  12259. // // Example sending a request using the DescribeInternetGatewaysRequest method.
  12260. // req, resp := client.DescribeInternetGatewaysRequest(params)
  12261. //
  12262. // err := req.Send()
  12263. // if err == nil { // resp is now filled
  12264. // fmt.Println(resp)
  12265. // }
  12266. //
  12267. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGateways
  12268. func (c *EC2) DescribeInternetGatewaysRequest(input *DescribeInternetGatewaysInput) (req *request.Request, output *DescribeInternetGatewaysOutput) {
  12269. op := &request.Operation{
  12270. Name: opDescribeInternetGateways,
  12271. HTTPMethod: "POST",
  12272. HTTPPath: "/",
  12273. }
  12274. if input == nil {
  12275. input = &DescribeInternetGatewaysInput{}
  12276. }
  12277. output = &DescribeInternetGatewaysOutput{}
  12278. req = c.newRequest(op, input, output)
  12279. return
  12280. }
  12281. // DescribeInternetGateways API operation for Amazon Elastic Compute Cloud.
  12282. //
  12283. // Describes one or more of your internet gateways.
  12284. //
  12285. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12286. // with awserr.Error's Code and Message methods to get detailed information about
  12287. // the error.
  12288. //
  12289. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12290. // API operation DescribeInternetGateways for usage and error information.
  12291. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGateways
  12292. func (c *EC2) DescribeInternetGateways(input *DescribeInternetGatewaysInput) (*DescribeInternetGatewaysOutput, error) {
  12293. req, out := c.DescribeInternetGatewaysRequest(input)
  12294. return out, req.Send()
  12295. }
  12296. // DescribeInternetGatewaysWithContext is the same as DescribeInternetGateways with the addition of
  12297. // the ability to pass a context and additional request options.
  12298. //
  12299. // See DescribeInternetGateways for details on how to use this API operation.
  12300. //
  12301. // The context must be non-nil and will be used for request cancellation. If
  12302. // the context is nil a panic will occur. In the future the SDK may create
  12303. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12304. // for more information on using Contexts.
  12305. func (c *EC2) DescribeInternetGatewaysWithContext(ctx aws.Context, input *DescribeInternetGatewaysInput, opts ...request.Option) (*DescribeInternetGatewaysOutput, error) {
  12306. req, out := c.DescribeInternetGatewaysRequest(input)
  12307. req.SetContext(ctx)
  12308. req.ApplyOptions(opts...)
  12309. return out, req.Send()
  12310. }
  12311. const opDescribeKeyPairs = "DescribeKeyPairs"
  12312. // DescribeKeyPairsRequest generates a "aws/request.Request" representing the
  12313. // client's request for the DescribeKeyPairs operation. The "output" return
  12314. // value will be populated with the request's response once the request completes
  12315. // successfully.
  12316. //
  12317. // Use "Send" method on the returned Request to send the API call to the service.
  12318. // the "output" return value is not valid until after Send returns without error.
  12319. //
  12320. // See DescribeKeyPairs for more information on using the DescribeKeyPairs
  12321. // API call, and error handling.
  12322. //
  12323. // This method is useful when you want to inject custom logic or configuration
  12324. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12325. //
  12326. //
  12327. // // Example sending a request using the DescribeKeyPairsRequest method.
  12328. // req, resp := client.DescribeKeyPairsRequest(params)
  12329. //
  12330. // err := req.Send()
  12331. // if err == nil { // resp is now filled
  12332. // fmt.Println(resp)
  12333. // }
  12334. //
  12335. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairs
  12336. func (c *EC2) DescribeKeyPairsRequest(input *DescribeKeyPairsInput) (req *request.Request, output *DescribeKeyPairsOutput) {
  12337. op := &request.Operation{
  12338. Name: opDescribeKeyPairs,
  12339. HTTPMethod: "POST",
  12340. HTTPPath: "/",
  12341. }
  12342. if input == nil {
  12343. input = &DescribeKeyPairsInput{}
  12344. }
  12345. output = &DescribeKeyPairsOutput{}
  12346. req = c.newRequest(op, input, output)
  12347. return
  12348. }
  12349. // DescribeKeyPairs API operation for Amazon Elastic Compute Cloud.
  12350. //
  12351. // Describes one or more of your key pairs.
  12352. //
  12353. // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  12354. // in the Amazon Elastic Compute Cloud User Guide.
  12355. //
  12356. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12357. // with awserr.Error's Code and Message methods to get detailed information about
  12358. // the error.
  12359. //
  12360. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12361. // API operation DescribeKeyPairs for usage and error information.
  12362. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairs
  12363. func (c *EC2) DescribeKeyPairs(input *DescribeKeyPairsInput) (*DescribeKeyPairsOutput, error) {
  12364. req, out := c.DescribeKeyPairsRequest(input)
  12365. return out, req.Send()
  12366. }
  12367. // DescribeKeyPairsWithContext is the same as DescribeKeyPairs with the addition of
  12368. // the ability to pass a context and additional request options.
  12369. //
  12370. // See DescribeKeyPairs for details on how to use this API operation.
  12371. //
  12372. // The context must be non-nil and will be used for request cancellation. If
  12373. // the context is nil a panic will occur. In the future the SDK may create
  12374. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12375. // for more information on using Contexts.
  12376. func (c *EC2) DescribeKeyPairsWithContext(ctx aws.Context, input *DescribeKeyPairsInput, opts ...request.Option) (*DescribeKeyPairsOutput, error) {
  12377. req, out := c.DescribeKeyPairsRequest(input)
  12378. req.SetContext(ctx)
  12379. req.ApplyOptions(opts...)
  12380. return out, req.Send()
  12381. }
  12382. const opDescribeLaunchTemplateVersions = "DescribeLaunchTemplateVersions"
  12383. // DescribeLaunchTemplateVersionsRequest generates a "aws/request.Request" representing the
  12384. // client's request for the DescribeLaunchTemplateVersions operation. The "output" return
  12385. // value will be populated with the request's response once the request completes
  12386. // successfully.
  12387. //
  12388. // Use "Send" method on the returned Request to send the API call to the service.
  12389. // the "output" return value is not valid until after Send returns without error.
  12390. //
  12391. // See DescribeLaunchTemplateVersions for more information on using the DescribeLaunchTemplateVersions
  12392. // API call, and error handling.
  12393. //
  12394. // This method is useful when you want to inject custom logic or configuration
  12395. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12396. //
  12397. //
  12398. // // Example sending a request using the DescribeLaunchTemplateVersionsRequest method.
  12399. // req, resp := client.DescribeLaunchTemplateVersionsRequest(params)
  12400. //
  12401. // err := req.Send()
  12402. // if err == nil { // resp is now filled
  12403. // fmt.Println(resp)
  12404. // }
  12405. //
  12406. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersions
  12407. func (c *EC2) DescribeLaunchTemplateVersionsRequest(input *DescribeLaunchTemplateVersionsInput) (req *request.Request, output *DescribeLaunchTemplateVersionsOutput) {
  12408. op := &request.Operation{
  12409. Name: opDescribeLaunchTemplateVersions,
  12410. HTTPMethod: "POST",
  12411. HTTPPath: "/",
  12412. }
  12413. if input == nil {
  12414. input = &DescribeLaunchTemplateVersionsInput{}
  12415. }
  12416. output = &DescribeLaunchTemplateVersionsOutput{}
  12417. req = c.newRequest(op, input, output)
  12418. return
  12419. }
  12420. // DescribeLaunchTemplateVersions API operation for Amazon Elastic Compute Cloud.
  12421. //
  12422. // Describes one or more versions of a specified launch template. You can describe
  12423. // all versions, individual versions, or a range of versions.
  12424. //
  12425. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12426. // with awserr.Error's Code and Message methods to get detailed information about
  12427. // the error.
  12428. //
  12429. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12430. // API operation DescribeLaunchTemplateVersions for usage and error information.
  12431. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersions
  12432. func (c *EC2) DescribeLaunchTemplateVersions(input *DescribeLaunchTemplateVersionsInput) (*DescribeLaunchTemplateVersionsOutput, error) {
  12433. req, out := c.DescribeLaunchTemplateVersionsRequest(input)
  12434. return out, req.Send()
  12435. }
  12436. // DescribeLaunchTemplateVersionsWithContext is the same as DescribeLaunchTemplateVersions with the addition of
  12437. // the ability to pass a context and additional request options.
  12438. //
  12439. // See DescribeLaunchTemplateVersions for details on how to use this API operation.
  12440. //
  12441. // The context must be non-nil and will be used for request cancellation. If
  12442. // the context is nil a panic will occur. In the future the SDK may create
  12443. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12444. // for more information on using Contexts.
  12445. func (c *EC2) DescribeLaunchTemplateVersionsWithContext(ctx aws.Context, input *DescribeLaunchTemplateVersionsInput, opts ...request.Option) (*DescribeLaunchTemplateVersionsOutput, error) {
  12446. req, out := c.DescribeLaunchTemplateVersionsRequest(input)
  12447. req.SetContext(ctx)
  12448. req.ApplyOptions(opts...)
  12449. return out, req.Send()
  12450. }
  12451. const opDescribeLaunchTemplates = "DescribeLaunchTemplates"
  12452. // DescribeLaunchTemplatesRequest generates a "aws/request.Request" representing the
  12453. // client's request for the DescribeLaunchTemplates operation. The "output" return
  12454. // value will be populated with the request's response once the request completes
  12455. // successfully.
  12456. //
  12457. // Use "Send" method on the returned Request to send the API call to the service.
  12458. // the "output" return value is not valid until after Send returns without error.
  12459. //
  12460. // See DescribeLaunchTemplates for more information on using the DescribeLaunchTemplates
  12461. // API call, and error handling.
  12462. //
  12463. // This method is useful when you want to inject custom logic or configuration
  12464. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12465. //
  12466. //
  12467. // // Example sending a request using the DescribeLaunchTemplatesRequest method.
  12468. // req, resp := client.DescribeLaunchTemplatesRequest(params)
  12469. //
  12470. // err := req.Send()
  12471. // if err == nil { // resp is now filled
  12472. // fmt.Println(resp)
  12473. // }
  12474. //
  12475. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplates
  12476. func (c *EC2) DescribeLaunchTemplatesRequest(input *DescribeLaunchTemplatesInput) (req *request.Request, output *DescribeLaunchTemplatesOutput) {
  12477. op := &request.Operation{
  12478. Name: opDescribeLaunchTemplates,
  12479. HTTPMethod: "POST",
  12480. HTTPPath: "/",
  12481. }
  12482. if input == nil {
  12483. input = &DescribeLaunchTemplatesInput{}
  12484. }
  12485. output = &DescribeLaunchTemplatesOutput{}
  12486. req = c.newRequest(op, input, output)
  12487. return
  12488. }
  12489. // DescribeLaunchTemplates API operation for Amazon Elastic Compute Cloud.
  12490. //
  12491. // Describes one or more launch templates.
  12492. //
  12493. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12494. // with awserr.Error's Code and Message methods to get detailed information about
  12495. // the error.
  12496. //
  12497. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12498. // API operation DescribeLaunchTemplates for usage and error information.
  12499. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplates
  12500. func (c *EC2) DescribeLaunchTemplates(input *DescribeLaunchTemplatesInput) (*DescribeLaunchTemplatesOutput, error) {
  12501. req, out := c.DescribeLaunchTemplatesRequest(input)
  12502. return out, req.Send()
  12503. }
  12504. // DescribeLaunchTemplatesWithContext is the same as DescribeLaunchTemplates with the addition of
  12505. // the ability to pass a context and additional request options.
  12506. //
  12507. // See DescribeLaunchTemplates for details on how to use this API operation.
  12508. //
  12509. // The context must be non-nil and will be used for request cancellation. If
  12510. // the context is nil a panic will occur. In the future the SDK may create
  12511. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12512. // for more information on using Contexts.
  12513. func (c *EC2) DescribeLaunchTemplatesWithContext(ctx aws.Context, input *DescribeLaunchTemplatesInput, opts ...request.Option) (*DescribeLaunchTemplatesOutput, error) {
  12514. req, out := c.DescribeLaunchTemplatesRequest(input)
  12515. req.SetContext(ctx)
  12516. req.ApplyOptions(opts...)
  12517. return out, req.Send()
  12518. }
  12519. const opDescribeMovingAddresses = "DescribeMovingAddresses"
  12520. // DescribeMovingAddressesRequest generates a "aws/request.Request" representing the
  12521. // client's request for the DescribeMovingAddresses operation. The "output" return
  12522. // value will be populated with the request's response once the request completes
  12523. // successfully.
  12524. //
  12525. // Use "Send" method on the returned Request to send the API call to the service.
  12526. // the "output" return value is not valid until after Send returns without error.
  12527. //
  12528. // See DescribeMovingAddresses for more information on using the DescribeMovingAddresses
  12529. // API call, and error handling.
  12530. //
  12531. // This method is useful when you want to inject custom logic or configuration
  12532. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12533. //
  12534. //
  12535. // // Example sending a request using the DescribeMovingAddressesRequest method.
  12536. // req, resp := client.DescribeMovingAddressesRequest(params)
  12537. //
  12538. // err := req.Send()
  12539. // if err == nil { // resp is now filled
  12540. // fmt.Println(resp)
  12541. // }
  12542. //
  12543. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddresses
  12544. func (c *EC2) DescribeMovingAddressesRequest(input *DescribeMovingAddressesInput) (req *request.Request, output *DescribeMovingAddressesOutput) {
  12545. op := &request.Operation{
  12546. Name: opDescribeMovingAddresses,
  12547. HTTPMethod: "POST",
  12548. HTTPPath: "/",
  12549. }
  12550. if input == nil {
  12551. input = &DescribeMovingAddressesInput{}
  12552. }
  12553. output = &DescribeMovingAddressesOutput{}
  12554. req = c.newRequest(op, input, output)
  12555. return
  12556. }
  12557. // DescribeMovingAddresses API operation for Amazon Elastic Compute Cloud.
  12558. //
  12559. // Describes your Elastic IP addresses that are being moved to the EC2-VPC platform,
  12560. // or that are being restored to the EC2-Classic platform. This request does
  12561. // not return information about any other Elastic IP addresses in your account.
  12562. //
  12563. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12564. // with awserr.Error's Code and Message methods to get detailed information about
  12565. // the error.
  12566. //
  12567. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12568. // API operation DescribeMovingAddresses for usage and error information.
  12569. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddresses
  12570. func (c *EC2) DescribeMovingAddresses(input *DescribeMovingAddressesInput) (*DescribeMovingAddressesOutput, error) {
  12571. req, out := c.DescribeMovingAddressesRequest(input)
  12572. return out, req.Send()
  12573. }
  12574. // DescribeMovingAddressesWithContext is the same as DescribeMovingAddresses with the addition of
  12575. // the ability to pass a context and additional request options.
  12576. //
  12577. // See DescribeMovingAddresses for details on how to use this API operation.
  12578. //
  12579. // The context must be non-nil and will be used for request cancellation. If
  12580. // the context is nil a panic will occur. In the future the SDK may create
  12581. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12582. // for more information on using Contexts.
  12583. func (c *EC2) DescribeMovingAddressesWithContext(ctx aws.Context, input *DescribeMovingAddressesInput, opts ...request.Option) (*DescribeMovingAddressesOutput, error) {
  12584. req, out := c.DescribeMovingAddressesRequest(input)
  12585. req.SetContext(ctx)
  12586. req.ApplyOptions(opts...)
  12587. return out, req.Send()
  12588. }
  12589. const opDescribeNatGateways = "DescribeNatGateways"
  12590. // DescribeNatGatewaysRequest generates a "aws/request.Request" representing the
  12591. // client's request for the DescribeNatGateways operation. The "output" return
  12592. // value will be populated with the request's response once the request completes
  12593. // successfully.
  12594. //
  12595. // Use "Send" method on the returned Request to send the API call to the service.
  12596. // the "output" return value is not valid until after Send returns without error.
  12597. //
  12598. // See DescribeNatGateways for more information on using the DescribeNatGateways
  12599. // API call, and error handling.
  12600. //
  12601. // This method is useful when you want to inject custom logic or configuration
  12602. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12603. //
  12604. //
  12605. // // Example sending a request using the DescribeNatGatewaysRequest method.
  12606. // req, resp := client.DescribeNatGatewaysRequest(params)
  12607. //
  12608. // err := req.Send()
  12609. // if err == nil { // resp is now filled
  12610. // fmt.Println(resp)
  12611. // }
  12612. //
  12613. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways
  12614. func (c *EC2) DescribeNatGatewaysRequest(input *DescribeNatGatewaysInput) (req *request.Request, output *DescribeNatGatewaysOutput) {
  12615. op := &request.Operation{
  12616. Name: opDescribeNatGateways,
  12617. HTTPMethod: "POST",
  12618. HTTPPath: "/",
  12619. Paginator: &request.Paginator{
  12620. InputTokens: []string{"NextToken"},
  12621. OutputTokens: []string{"NextToken"},
  12622. LimitToken: "MaxResults",
  12623. TruncationToken: "",
  12624. },
  12625. }
  12626. if input == nil {
  12627. input = &DescribeNatGatewaysInput{}
  12628. }
  12629. output = &DescribeNatGatewaysOutput{}
  12630. req = c.newRequest(op, input, output)
  12631. return
  12632. }
  12633. // DescribeNatGateways API operation for Amazon Elastic Compute Cloud.
  12634. //
  12635. // Describes one or more of your NAT gateways.
  12636. //
  12637. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12638. // with awserr.Error's Code and Message methods to get detailed information about
  12639. // the error.
  12640. //
  12641. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12642. // API operation DescribeNatGateways for usage and error information.
  12643. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways
  12644. func (c *EC2) DescribeNatGateways(input *DescribeNatGatewaysInput) (*DescribeNatGatewaysOutput, error) {
  12645. req, out := c.DescribeNatGatewaysRequest(input)
  12646. return out, req.Send()
  12647. }
  12648. // DescribeNatGatewaysWithContext is the same as DescribeNatGateways with the addition of
  12649. // the ability to pass a context and additional request options.
  12650. //
  12651. // See DescribeNatGateways for details on how to use this API operation.
  12652. //
  12653. // The context must be non-nil and will be used for request cancellation. If
  12654. // the context is nil a panic will occur. In the future the SDK may create
  12655. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12656. // for more information on using Contexts.
  12657. func (c *EC2) DescribeNatGatewaysWithContext(ctx aws.Context, input *DescribeNatGatewaysInput, opts ...request.Option) (*DescribeNatGatewaysOutput, error) {
  12658. req, out := c.DescribeNatGatewaysRequest(input)
  12659. req.SetContext(ctx)
  12660. req.ApplyOptions(opts...)
  12661. return out, req.Send()
  12662. }
  12663. // DescribeNatGatewaysPages iterates over the pages of a DescribeNatGateways operation,
  12664. // calling the "fn" function with the response data for each page. To stop
  12665. // iterating, return false from the fn function.
  12666. //
  12667. // See DescribeNatGateways method for more information on how to use this operation.
  12668. //
  12669. // Note: This operation can generate multiple requests to a service.
  12670. //
  12671. // // Example iterating over at most 3 pages of a DescribeNatGateways operation.
  12672. // pageNum := 0
  12673. // err := client.DescribeNatGatewaysPages(params,
  12674. // func(page *DescribeNatGatewaysOutput, lastPage bool) bool {
  12675. // pageNum++
  12676. // fmt.Println(page)
  12677. // return pageNum <= 3
  12678. // })
  12679. //
  12680. func (c *EC2) DescribeNatGatewaysPages(input *DescribeNatGatewaysInput, fn func(*DescribeNatGatewaysOutput, bool) bool) error {
  12681. return c.DescribeNatGatewaysPagesWithContext(aws.BackgroundContext(), input, fn)
  12682. }
  12683. // DescribeNatGatewaysPagesWithContext same as DescribeNatGatewaysPages except
  12684. // it takes a Context and allows setting request options on the pages.
  12685. //
  12686. // The context must be non-nil and will be used for request cancellation. If
  12687. // the context is nil a panic will occur. In the future the SDK may create
  12688. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12689. // for more information on using Contexts.
  12690. func (c *EC2) DescribeNatGatewaysPagesWithContext(ctx aws.Context, input *DescribeNatGatewaysInput, fn func(*DescribeNatGatewaysOutput, bool) bool, opts ...request.Option) error {
  12691. p := request.Pagination{
  12692. NewRequest: func() (*request.Request, error) {
  12693. var inCpy *DescribeNatGatewaysInput
  12694. if input != nil {
  12695. tmp := *input
  12696. inCpy = &tmp
  12697. }
  12698. req, _ := c.DescribeNatGatewaysRequest(inCpy)
  12699. req.SetContext(ctx)
  12700. req.ApplyOptions(opts...)
  12701. return req, nil
  12702. },
  12703. }
  12704. cont := true
  12705. for p.Next() && cont {
  12706. cont = fn(p.Page().(*DescribeNatGatewaysOutput), !p.HasNextPage())
  12707. }
  12708. return p.Err()
  12709. }
  12710. const opDescribeNetworkAcls = "DescribeNetworkAcls"
  12711. // DescribeNetworkAclsRequest generates a "aws/request.Request" representing the
  12712. // client's request for the DescribeNetworkAcls operation. The "output" return
  12713. // value will be populated with the request's response once the request completes
  12714. // successfully.
  12715. //
  12716. // Use "Send" method on the returned Request to send the API call to the service.
  12717. // the "output" return value is not valid until after Send returns without error.
  12718. //
  12719. // See DescribeNetworkAcls for more information on using the DescribeNetworkAcls
  12720. // API call, and error handling.
  12721. //
  12722. // This method is useful when you want to inject custom logic or configuration
  12723. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12724. //
  12725. //
  12726. // // Example sending a request using the DescribeNetworkAclsRequest method.
  12727. // req, resp := client.DescribeNetworkAclsRequest(params)
  12728. //
  12729. // err := req.Send()
  12730. // if err == nil { // resp is now filled
  12731. // fmt.Println(resp)
  12732. // }
  12733. //
  12734. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAcls
  12735. func (c *EC2) DescribeNetworkAclsRequest(input *DescribeNetworkAclsInput) (req *request.Request, output *DescribeNetworkAclsOutput) {
  12736. op := &request.Operation{
  12737. Name: opDescribeNetworkAcls,
  12738. HTTPMethod: "POST",
  12739. HTTPPath: "/",
  12740. }
  12741. if input == nil {
  12742. input = &DescribeNetworkAclsInput{}
  12743. }
  12744. output = &DescribeNetworkAclsOutput{}
  12745. req = c.newRequest(op, input, output)
  12746. return
  12747. }
  12748. // DescribeNetworkAcls API operation for Amazon Elastic Compute Cloud.
  12749. //
  12750. // Describes one or more of your network ACLs.
  12751. //
  12752. // For more information, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  12753. // in the Amazon Virtual Private Cloud User Guide.
  12754. //
  12755. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12756. // with awserr.Error's Code and Message methods to get detailed information about
  12757. // the error.
  12758. //
  12759. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12760. // API operation DescribeNetworkAcls for usage and error information.
  12761. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAcls
  12762. func (c *EC2) DescribeNetworkAcls(input *DescribeNetworkAclsInput) (*DescribeNetworkAclsOutput, error) {
  12763. req, out := c.DescribeNetworkAclsRequest(input)
  12764. return out, req.Send()
  12765. }
  12766. // DescribeNetworkAclsWithContext is the same as DescribeNetworkAcls with the addition of
  12767. // the ability to pass a context and additional request options.
  12768. //
  12769. // See DescribeNetworkAcls for details on how to use this API operation.
  12770. //
  12771. // The context must be non-nil and will be used for request cancellation. If
  12772. // the context is nil a panic will occur. In the future the SDK may create
  12773. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12774. // for more information on using Contexts.
  12775. func (c *EC2) DescribeNetworkAclsWithContext(ctx aws.Context, input *DescribeNetworkAclsInput, opts ...request.Option) (*DescribeNetworkAclsOutput, error) {
  12776. req, out := c.DescribeNetworkAclsRequest(input)
  12777. req.SetContext(ctx)
  12778. req.ApplyOptions(opts...)
  12779. return out, req.Send()
  12780. }
  12781. const opDescribeNetworkInterfaceAttribute = "DescribeNetworkInterfaceAttribute"
  12782. // DescribeNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  12783. // client's request for the DescribeNetworkInterfaceAttribute operation. The "output" return
  12784. // value will be populated with the request's response once the request completes
  12785. // successfully.
  12786. //
  12787. // Use "Send" method on the returned Request to send the API call to the service.
  12788. // the "output" return value is not valid until after Send returns without error.
  12789. //
  12790. // See DescribeNetworkInterfaceAttribute for more information on using the DescribeNetworkInterfaceAttribute
  12791. // API call, and error handling.
  12792. //
  12793. // This method is useful when you want to inject custom logic or configuration
  12794. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12795. //
  12796. //
  12797. // // Example sending a request using the DescribeNetworkInterfaceAttributeRequest method.
  12798. // req, resp := client.DescribeNetworkInterfaceAttributeRequest(params)
  12799. //
  12800. // err := req.Send()
  12801. // if err == nil { // resp is now filled
  12802. // fmt.Println(resp)
  12803. // }
  12804. //
  12805. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttribute
  12806. func (c *EC2) DescribeNetworkInterfaceAttributeRequest(input *DescribeNetworkInterfaceAttributeInput) (req *request.Request, output *DescribeNetworkInterfaceAttributeOutput) {
  12807. op := &request.Operation{
  12808. Name: opDescribeNetworkInterfaceAttribute,
  12809. HTTPMethod: "POST",
  12810. HTTPPath: "/",
  12811. }
  12812. if input == nil {
  12813. input = &DescribeNetworkInterfaceAttributeInput{}
  12814. }
  12815. output = &DescribeNetworkInterfaceAttributeOutput{}
  12816. req = c.newRequest(op, input, output)
  12817. return
  12818. }
  12819. // DescribeNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  12820. //
  12821. // Describes a network interface attribute. You can specify only one attribute
  12822. // at a time.
  12823. //
  12824. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12825. // with awserr.Error's Code and Message methods to get detailed information about
  12826. // the error.
  12827. //
  12828. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12829. // API operation DescribeNetworkInterfaceAttribute for usage and error information.
  12830. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttribute
  12831. func (c *EC2) DescribeNetworkInterfaceAttribute(input *DescribeNetworkInterfaceAttributeInput) (*DescribeNetworkInterfaceAttributeOutput, error) {
  12832. req, out := c.DescribeNetworkInterfaceAttributeRequest(input)
  12833. return out, req.Send()
  12834. }
  12835. // DescribeNetworkInterfaceAttributeWithContext is the same as DescribeNetworkInterfaceAttribute with the addition of
  12836. // the ability to pass a context and additional request options.
  12837. //
  12838. // See DescribeNetworkInterfaceAttribute for details on how to use this API operation.
  12839. //
  12840. // The context must be non-nil and will be used for request cancellation. If
  12841. // the context is nil a panic will occur. In the future the SDK may create
  12842. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12843. // for more information on using Contexts.
  12844. func (c *EC2) DescribeNetworkInterfaceAttributeWithContext(ctx aws.Context, input *DescribeNetworkInterfaceAttributeInput, opts ...request.Option) (*DescribeNetworkInterfaceAttributeOutput, error) {
  12845. req, out := c.DescribeNetworkInterfaceAttributeRequest(input)
  12846. req.SetContext(ctx)
  12847. req.ApplyOptions(opts...)
  12848. return out, req.Send()
  12849. }
  12850. const opDescribeNetworkInterfacePermissions = "DescribeNetworkInterfacePermissions"
  12851. // DescribeNetworkInterfacePermissionsRequest generates a "aws/request.Request" representing the
  12852. // client's request for the DescribeNetworkInterfacePermissions operation. The "output" return
  12853. // value will be populated with the request's response once the request completes
  12854. // successfully.
  12855. //
  12856. // Use "Send" method on the returned Request to send the API call to the service.
  12857. // the "output" return value is not valid until after Send returns without error.
  12858. //
  12859. // See DescribeNetworkInterfacePermissions for more information on using the DescribeNetworkInterfacePermissions
  12860. // API call, and error handling.
  12861. //
  12862. // This method is useful when you want to inject custom logic or configuration
  12863. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12864. //
  12865. //
  12866. // // Example sending a request using the DescribeNetworkInterfacePermissionsRequest method.
  12867. // req, resp := client.DescribeNetworkInterfacePermissionsRequest(params)
  12868. //
  12869. // err := req.Send()
  12870. // if err == nil { // resp is now filled
  12871. // fmt.Println(resp)
  12872. // }
  12873. //
  12874. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacePermissions
  12875. func (c *EC2) DescribeNetworkInterfacePermissionsRequest(input *DescribeNetworkInterfacePermissionsInput) (req *request.Request, output *DescribeNetworkInterfacePermissionsOutput) {
  12876. op := &request.Operation{
  12877. Name: opDescribeNetworkInterfacePermissions,
  12878. HTTPMethod: "POST",
  12879. HTTPPath: "/",
  12880. }
  12881. if input == nil {
  12882. input = &DescribeNetworkInterfacePermissionsInput{}
  12883. }
  12884. output = &DescribeNetworkInterfacePermissionsOutput{}
  12885. req = c.newRequest(op, input, output)
  12886. return
  12887. }
  12888. // DescribeNetworkInterfacePermissions API operation for Amazon Elastic Compute Cloud.
  12889. //
  12890. // Describes the permissions for your network interfaces.
  12891. //
  12892. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12893. // with awserr.Error's Code and Message methods to get detailed information about
  12894. // the error.
  12895. //
  12896. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12897. // API operation DescribeNetworkInterfacePermissions for usage and error information.
  12898. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacePermissions
  12899. func (c *EC2) DescribeNetworkInterfacePermissions(input *DescribeNetworkInterfacePermissionsInput) (*DescribeNetworkInterfacePermissionsOutput, error) {
  12900. req, out := c.DescribeNetworkInterfacePermissionsRequest(input)
  12901. return out, req.Send()
  12902. }
  12903. // DescribeNetworkInterfacePermissionsWithContext is the same as DescribeNetworkInterfacePermissions with the addition of
  12904. // the ability to pass a context and additional request options.
  12905. //
  12906. // See DescribeNetworkInterfacePermissions for details on how to use this API operation.
  12907. //
  12908. // The context must be non-nil and will be used for request cancellation. If
  12909. // the context is nil a panic will occur. In the future the SDK may create
  12910. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12911. // for more information on using Contexts.
  12912. func (c *EC2) DescribeNetworkInterfacePermissionsWithContext(ctx aws.Context, input *DescribeNetworkInterfacePermissionsInput, opts ...request.Option) (*DescribeNetworkInterfacePermissionsOutput, error) {
  12913. req, out := c.DescribeNetworkInterfacePermissionsRequest(input)
  12914. req.SetContext(ctx)
  12915. req.ApplyOptions(opts...)
  12916. return out, req.Send()
  12917. }
  12918. const opDescribeNetworkInterfaces = "DescribeNetworkInterfaces"
  12919. // DescribeNetworkInterfacesRequest generates a "aws/request.Request" representing the
  12920. // client's request for the DescribeNetworkInterfaces operation. The "output" return
  12921. // value will be populated with the request's response once the request completes
  12922. // successfully.
  12923. //
  12924. // Use "Send" method on the returned Request to send the API call to the service.
  12925. // the "output" return value is not valid until after Send returns without error.
  12926. //
  12927. // See DescribeNetworkInterfaces for more information on using the DescribeNetworkInterfaces
  12928. // API call, and error handling.
  12929. //
  12930. // This method is useful when you want to inject custom logic or configuration
  12931. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12932. //
  12933. //
  12934. // // Example sending a request using the DescribeNetworkInterfacesRequest method.
  12935. // req, resp := client.DescribeNetworkInterfacesRequest(params)
  12936. //
  12937. // err := req.Send()
  12938. // if err == nil { // resp is now filled
  12939. // fmt.Println(resp)
  12940. // }
  12941. //
  12942. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaces
  12943. func (c *EC2) DescribeNetworkInterfacesRequest(input *DescribeNetworkInterfacesInput) (req *request.Request, output *DescribeNetworkInterfacesOutput) {
  12944. op := &request.Operation{
  12945. Name: opDescribeNetworkInterfaces,
  12946. HTTPMethod: "POST",
  12947. HTTPPath: "/",
  12948. Paginator: &request.Paginator{
  12949. InputTokens: []string{"NextToken"},
  12950. OutputTokens: []string{"NextToken"},
  12951. LimitToken: "MaxResults",
  12952. TruncationToken: "",
  12953. },
  12954. }
  12955. if input == nil {
  12956. input = &DescribeNetworkInterfacesInput{}
  12957. }
  12958. output = &DescribeNetworkInterfacesOutput{}
  12959. req = c.newRequest(op, input, output)
  12960. return
  12961. }
  12962. // DescribeNetworkInterfaces API operation for Amazon Elastic Compute Cloud.
  12963. //
  12964. // Describes one or more of your network interfaces.
  12965. //
  12966. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12967. // with awserr.Error's Code and Message methods to get detailed information about
  12968. // the error.
  12969. //
  12970. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12971. // API operation DescribeNetworkInterfaces for usage and error information.
  12972. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaces
  12973. func (c *EC2) DescribeNetworkInterfaces(input *DescribeNetworkInterfacesInput) (*DescribeNetworkInterfacesOutput, error) {
  12974. req, out := c.DescribeNetworkInterfacesRequest(input)
  12975. return out, req.Send()
  12976. }
  12977. // DescribeNetworkInterfacesWithContext is the same as DescribeNetworkInterfaces with the addition of
  12978. // the ability to pass a context and additional request options.
  12979. //
  12980. // See DescribeNetworkInterfaces for details on how to use this API operation.
  12981. //
  12982. // The context must be non-nil and will be used for request cancellation. If
  12983. // the context is nil a panic will occur. In the future the SDK may create
  12984. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12985. // for more information on using Contexts.
  12986. func (c *EC2) DescribeNetworkInterfacesWithContext(ctx aws.Context, input *DescribeNetworkInterfacesInput, opts ...request.Option) (*DescribeNetworkInterfacesOutput, error) {
  12987. req, out := c.DescribeNetworkInterfacesRequest(input)
  12988. req.SetContext(ctx)
  12989. req.ApplyOptions(opts...)
  12990. return out, req.Send()
  12991. }
  12992. // DescribeNetworkInterfacesPages iterates over the pages of a DescribeNetworkInterfaces operation,
  12993. // calling the "fn" function with the response data for each page. To stop
  12994. // iterating, return false from the fn function.
  12995. //
  12996. // See DescribeNetworkInterfaces method for more information on how to use this operation.
  12997. //
  12998. // Note: This operation can generate multiple requests to a service.
  12999. //
  13000. // // Example iterating over at most 3 pages of a DescribeNetworkInterfaces operation.
  13001. // pageNum := 0
  13002. // err := client.DescribeNetworkInterfacesPages(params,
  13003. // func(page *DescribeNetworkInterfacesOutput, lastPage bool) bool {
  13004. // pageNum++
  13005. // fmt.Println(page)
  13006. // return pageNum <= 3
  13007. // })
  13008. //
  13009. func (c *EC2) DescribeNetworkInterfacesPages(input *DescribeNetworkInterfacesInput, fn func(*DescribeNetworkInterfacesOutput, bool) bool) error {
  13010. return c.DescribeNetworkInterfacesPagesWithContext(aws.BackgroundContext(), input, fn)
  13011. }
  13012. // DescribeNetworkInterfacesPagesWithContext same as DescribeNetworkInterfacesPages except
  13013. // it takes a Context and allows setting request options on the pages.
  13014. //
  13015. // The context must be non-nil and will be used for request cancellation. If
  13016. // the context is nil a panic will occur. In the future the SDK may create
  13017. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13018. // for more information on using Contexts.
  13019. func (c *EC2) DescribeNetworkInterfacesPagesWithContext(ctx aws.Context, input *DescribeNetworkInterfacesInput, fn func(*DescribeNetworkInterfacesOutput, bool) bool, opts ...request.Option) error {
  13020. p := request.Pagination{
  13021. NewRequest: func() (*request.Request, error) {
  13022. var inCpy *DescribeNetworkInterfacesInput
  13023. if input != nil {
  13024. tmp := *input
  13025. inCpy = &tmp
  13026. }
  13027. req, _ := c.DescribeNetworkInterfacesRequest(inCpy)
  13028. req.SetContext(ctx)
  13029. req.ApplyOptions(opts...)
  13030. return req, nil
  13031. },
  13032. }
  13033. cont := true
  13034. for p.Next() && cont {
  13035. cont = fn(p.Page().(*DescribeNetworkInterfacesOutput), !p.HasNextPage())
  13036. }
  13037. return p.Err()
  13038. }
  13039. const opDescribePlacementGroups = "DescribePlacementGroups"
  13040. // DescribePlacementGroupsRequest generates a "aws/request.Request" representing the
  13041. // client's request for the DescribePlacementGroups operation. The "output" return
  13042. // value will be populated with the request's response once the request completes
  13043. // successfully.
  13044. //
  13045. // Use "Send" method on the returned Request to send the API call to the service.
  13046. // the "output" return value is not valid until after Send returns without error.
  13047. //
  13048. // See DescribePlacementGroups for more information on using the DescribePlacementGroups
  13049. // API call, and error handling.
  13050. //
  13051. // This method is useful when you want to inject custom logic or configuration
  13052. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13053. //
  13054. //
  13055. // // Example sending a request using the DescribePlacementGroupsRequest method.
  13056. // req, resp := client.DescribePlacementGroupsRequest(params)
  13057. //
  13058. // err := req.Send()
  13059. // if err == nil { // resp is now filled
  13060. // fmt.Println(resp)
  13061. // }
  13062. //
  13063. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroups
  13064. func (c *EC2) DescribePlacementGroupsRequest(input *DescribePlacementGroupsInput) (req *request.Request, output *DescribePlacementGroupsOutput) {
  13065. op := &request.Operation{
  13066. Name: opDescribePlacementGroups,
  13067. HTTPMethod: "POST",
  13068. HTTPPath: "/",
  13069. }
  13070. if input == nil {
  13071. input = &DescribePlacementGroupsInput{}
  13072. }
  13073. output = &DescribePlacementGroupsOutput{}
  13074. req = c.newRequest(op, input, output)
  13075. return
  13076. }
  13077. // DescribePlacementGroups API operation for Amazon Elastic Compute Cloud.
  13078. //
  13079. // Describes one or more of your placement groups. For more information, see
  13080. // Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
  13081. // in the Amazon Elastic Compute Cloud User Guide.
  13082. //
  13083. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13084. // with awserr.Error's Code and Message methods to get detailed information about
  13085. // the error.
  13086. //
  13087. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13088. // API operation DescribePlacementGroups for usage and error information.
  13089. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroups
  13090. func (c *EC2) DescribePlacementGroups(input *DescribePlacementGroupsInput) (*DescribePlacementGroupsOutput, error) {
  13091. req, out := c.DescribePlacementGroupsRequest(input)
  13092. return out, req.Send()
  13093. }
  13094. // DescribePlacementGroupsWithContext is the same as DescribePlacementGroups with the addition of
  13095. // the ability to pass a context and additional request options.
  13096. //
  13097. // See DescribePlacementGroups for details on how to use this API operation.
  13098. //
  13099. // The context must be non-nil and will be used for request cancellation. If
  13100. // the context is nil a panic will occur. In the future the SDK may create
  13101. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13102. // for more information on using Contexts.
  13103. func (c *EC2) DescribePlacementGroupsWithContext(ctx aws.Context, input *DescribePlacementGroupsInput, opts ...request.Option) (*DescribePlacementGroupsOutput, error) {
  13104. req, out := c.DescribePlacementGroupsRequest(input)
  13105. req.SetContext(ctx)
  13106. req.ApplyOptions(opts...)
  13107. return out, req.Send()
  13108. }
  13109. const opDescribePrefixLists = "DescribePrefixLists"
  13110. // DescribePrefixListsRequest generates a "aws/request.Request" representing the
  13111. // client's request for the DescribePrefixLists operation. The "output" return
  13112. // value will be populated with the request's response once the request completes
  13113. // successfully.
  13114. //
  13115. // Use "Send" method on the returned Request to send the API call to the service.
  13116. // the "output" return value is not valid until after Send returns without error.
  13117. //
  13118. // See DescribePrefixLists for more information on using the DescribePrefixLists
  13119. // API call, and error handling.
  13120. //
  13121. // This method is useful when you want to inject custom logic or configuration
  13122. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13123. //
  13124. //
  13125. // // Example sending a request using the DescribePrefixListsRequest method.
  13126. // req, resp := client.DescribePrefixListsRequest(params)
  13127. //
  13128. // err := req.Send()
  13129. // if err == nil { // resp is now filled
  13130. // fmt.Println(resp)
  13131. // }
  13132. //
  13133. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixLists
  13134. func (c *EC2) DescribePrefixListsRequest(input *DescribePrefixListsInput) (req *request.Request, output *DescribePrefixListsOutput) {
  13135. op := &request.Operation{
  13136. Name: opDescribePrefixLists,
  13137. HTTPMethod: "POST",
  13138. HTTPPath: "/",
  13139. }
  13140. if input == nil {
  13141. input = &DescribePrefixListsInput{}
  13142. }
  13143. output = &DescribePrefixListsOutput{}
  13144. req = c.newRequest(op, input, output)
  13145. return
  13146. }
  13147. // DescribePrefixLists API operation for Amazon Elastic Compute Cloud.
  13148. //
  13149. // Describes available AWS services in a prefix list format, which includes
  13150. // the prefix list name and prefix list ID of the service and the IP address
  13151. // range for the service. A prefix list ID is required for creating an outbound
  13152. // security group rule that allows traffic from a VPC to access an AWS service
  13153. // through a gateway VPC endpoint. Currently, the services that support this
  13154. // action are Amazon S3 and Amazon DynamoDB.
  13155. //
  13156. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13157. // with awserr.Error's Code and Message methods to get detailed information about
  13158. // the error.
  13159. //
  13160. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13161. // API operation DescribePrefixLists for usage and error information.
  13162. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixLists
  13163. func (c *EC2) DescribePrefixLists(input *DescribePrefixListsInput) (*DescribePrefixListsOutput, error) {
  13164. req, out := c.DescribePrefixListsRequest(input)
  13165. return out, req.Send()
  13166. }
  13167. // DescribePrefixListsWithContext is the same as DescribePrefixLists with the addition of
  13168. // the ability to pass a context and additional request options.
  13169. //
  13170. // See DescribePrefixLists for details on how to use this API operation.
  13171. //
  13172. // The context must be non-nil and will be used for request cancellation. If
  13173. // the context is nil a panic will occur. In the future the SDK may create
  13174. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13175. // for more information on using Contexts.
  13176. func (c *EC2) DescribePrefixListsWithContext(ctx aws.Context, input *DescribePrefixListsInput, opts ...request.Option) (*DescribePrefixListsOutput, error) {
  13177. req, out := c.DescribePrefixListsRequest(input)
  13178. req.SetContext(ctx)
  13179. req.ApplyOptions(opts...)
  13180. return out, req.Send()
  13181. }
  13182. const opDescribePrincipalIdFormat = "DescribePrincipalIdFormat"
  13183. // DescribePrincipalIdFormatRequest generates a "aws/request.Request" representing the
  13184. // client's request for the DescribePrincipalIdFormat operation. The "output" return
  13185. // value will be populated with the request's response once the request completes
  13186. // successfully.
  13187. //
  13188. // Use "Send" method on the returned Request to send the API call to the service.
  13189. // the "output" return value is not valid until after Send returns without error.
  13190. //
  13191. // See DescribePrincipalIdFormat for more information on using the DescribePrincipalIdFormat
  13192. // API call, and error handling.
  13193. //
  13194. // This method is useful when you want to inject custom logic or configuration
  13195. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13196. //
  13197. //
  13198. // // Example sending a request using the DescribePrincipalIdFormatRequest method.
  13199. // req, resp := client.DescribePrincipalIdFormatRequest(params)
  13200. //
  13201. // err := req.Send()
  13202. // if err == nil { // resp is now filled
  13203. // fmt.Println(resp)
  13204. // }
  13205. //
  13206. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrincipalIdFormat
  13207. func (c *EC2) DescribePrincipalIdFormatRequest(input *DescribePrincipalIdFormatInput) (req *request.Request, output *DescribePrincipalIdFormatOutput) {
  13208. op := &request.Operation{
  13209. Name: opDescribePrincipalIdFormat,
  13210. HTTPMethod: "POST",
  13211. HTTPPath: "/",
  13212. }
  13213. if input == nil {
  13214. input = &DescribePrincipalIdFormatInput{}
  13215. }
  13216. output = &DescribePrincipalIdFormatOutput{}
  13217. req = c.newRequest(op, input, output)
  13218. return
  13219. }
  13220. // DescribePrincipalIdFormat API operation for Amazon Elastic Compute Cloud.
  13221. //
  13222. // Describes the ID format settings for the root user and all IAM roles and
  13223. // IAM users that have explicitly specified a longer ID (17-character ID) preference.
  13224. //
  13225. // By default, all IAM roles and IAM users default to the same ID settings as
  13226. // the root user, unless they explicitly override the settings. This request
  13227. // is useful for identifying those IAM users and IAM roles that have overridden
  13228. // the default ID settings.
  13229. //
  13230. // The following resource types support longer IDs: bundle | conversion-task
  13231. // | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association
  13232. // | export-task | flow-log | image | import-task | instance | internet-gateway
  13233. // | network-acl | network-acl-association | network-interface | network-interface-attachment
  13234. // | prefix-list | reservation | route-table | route-table-association | security-group
  13235. // | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  13236. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  13237. //
  13238. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13239. // with awserr.Error's Code and Message methods to get detailed information about
  13240. // the error.
  13241. //
  13242. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13243. // API operation DescribePrincipalIdFormat for usage and error information.
  13244. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrincipalIdFormat
  13245. func (c *EC2) DescribePrincipalIdFormat(input *DescribePrincipalIdFormatInput) (*DescribePrincipalIdFormatOutput, error) {
  13246. req, out := c.DescribePrincipalIdFormatRequest(input)
  13247. return out, req.Send()
  13248. }
  13249. // DescribePrincipalIdFormatWithContext is the same as DescribePrincipalIdFormat with the addition of
  13250. // the ability to pass a context and additional request options.
  13251. //
  13252. // See DescribePrincipalIdFormat for details on how to use this API operation.
  13253. //
  13254. // The context must be non-nil and will be used for request cancellation. If
  13255. // the context is nil a panic will occur. In the future the SDK may create
  13256. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13257. // for more information on using Contexts.
  13258. func (c *EC2) DescribePrincipalIdFormatWithContext(ctx aws.Context, input *DescribePrincipalIdFormatInput, opts ...request.Option) (*DescribePrincipalIdFormatOutput, error) {
  13259. req, out := c.DescribePrincipalIdFormatRequest(input)
  13260. req.SetContext(ctx)
  13261. req.ApplyOptions(opts...)
  13262. return out, req.Send()
  13263. }
  13264. const opDescribePublicIpv4Pools = "DescribePublicIpv4Pools"
  13265. // DescribePublicIpv4PoolsRequest generates a "aws/request.Request" representing the
  13266. // client's request for the DescribePublicIpv4Pools operation. The "output" return
  13267. // value will be populated with the request's response once the request completes
  13268. // successfully.
  13269. //
  13270. // Use "Send" method on the returned Request to send the API call to the service.
  13271. // the "output" return value is not valid until after Send returns without error.
  13272. //
  13273. // See DescribePublicIpv4Pools for more information on using the DescribePublicIpv4Pools
  13274. // API call, and error handling.
  13275. //
  13276. // This method is useful when you want to inject custom logic or configuration
  13277. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13278. //
  13279. //
  13280. // // Example sending a request using the DescribePublicIpv4PoolsRequest method.
  13281. // req, resp := client.DescribePublicIpv4PoolsRequest(params)
  13282. //
  13283. // err := req.Send()
  13284. // if err == nil { // resp is now filled
  13285. // fmt.Println(resp)
  13286. // }
  13287. //
  13288. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePublicIpv4Pools
  13289. func (c *EC2) DescribePublicIpv4PoolsRequest(input *DescribePublicIpv4PoolsInput) (req *request.Request, output *DescribePublicIpv4PoolsOutput) {
  13290. op := &request.Operation{
  13291. Name: opDescribePublicIpv4Pools,
  13292. HTTPMethod: "POST",
  13293. HTTPPath: "/",
  13294. }
  13295. if input == nil {
  13296. input = &DescribePublicIpv4PoolsInput{}
  13297. }
  13298. output = &DescribePublicIpv4PoolsOutput{}
  13299. req = c.newRequest(op, input, output)
  13300. return
  13301. }
  13302. // DescribePublicIpv4Pools API operation for Amazon Elastic Compute Cloud.
  13303. //
  13304. // Describes the specified IPv4 address pools.
  13305. //
  13306. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13307. // with awserr.Error's Code and Message methods to get detailed information about
  13308. // the error.
  13309. //
  13310. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13311. // API operation DescribePublicIpv4Pools for usage and error information.
  13312. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePublicIpv4Pools
  13313. func (c *EC2) DescribePublicIpv4Pools(input *DescribePublicIpv4PoolsInput) (*DescribePublicIpv4PoolsOutput, error) {
  13314. req, out := c.DescribePublicIpv4PoolsRequest(input)
  13315. return out, req.Send()
  13316. }
  13317. // DescribePublicIpv4PoolsWithContext is the same as DescribePublicIpv4Pools with the addition of
  13318. // the ability to pass a context and additional request options.
  13319. //
  13320. // See DescribePublicIpv4Pools for details on how to use this API operation.
  13321. //
  13322. // The context must be non-nil and will be used for request cancellation. If
  13323. // the context is nil a panic will occur. In the future the SDK may create
  13324. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13325. // for more information on using Contexts.
  13326. func (c *EC2) DescribePublicIpv4PoolsWithContext(ctx aws.Context, input *DescribePublicIpv4PoolsInput, opts ...request.Option) (*DescribePublicIpv4PoolsOutput, error) {
  13327. req, out := c.DescribePublicIpv4PoolsRequest(input)
  13328. req.SetContext(ctx)
  13329. req.ApplyOptions(opts...)
  13330. return out, req.Send()
  13331. }
  13332. const opDescribeRegions = "DescribeRegions"
  13333. // DescribeRegionsRequest generates a "aws/request.Request" representing the
  13334. // client's request for the DescribeRegions operation. The "output" return
  13335. // value will be populated with the request's response once the request completes
  13336. // successfully.
  13337. //
  13338. // Use "Send" method on the returned Request to send the API call to the service.
  13339. // the "output" return value is not valid until after Send returns without error.
  13340. //
  13341. // See DescribeRegions for more information on using the DescribeRegions
  13342. // API call, and error handling.
  13343. //
  13344. // This method is useful when you want to inject custom logic or configuration
  13345. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13346. //
  13347. //
  13348. // // Example sending a request using the DescribeRegionsRequest method.
  13349. // req, resp := client.DescribeRegionsRequest(params)
  13350. //
  13351. // err := req.Send()
  13352. // if err == nil { // resp is now filled
  13353. // fmt.Println(resp)
  13354. // }
  13355. //
  13356. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegions
  13357. func (c *EC2) DescribeRegionsRequest(input *DescribeRegionsInput) (req *request.Request, output *DescribeRegionsOutput) {
  13358. op := &request.Operation{
  13359. Name: opDescribeRegions,
  13360. HTTPMethod: "POST",
  13361. HTTPPath: "/",
  13362. }
  13363. if input == nil {
  13364. input = &DescribeRegionsInput{}
  13365. }
  13366. output = &DescribeRegionsOutput{}
  13367. req = c.newRequest(op, input, output)
  13368. return
  13369. }
  13370. // DescribeRegions API operation for Amazon Elastic Compute Cloud.
  13371. //
  13372. // Describes one or more regions that are currently available to you.
  13373. //
  13374. // For a list of the regions supported by Amazon EC2, see Regions and Endpoints
  13375. // (http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region).
  13376. //
  13377. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13378. // with awserr.Error's Code and Message methods to get detailed information about
  13379. // the error.
  13380. //
  13381. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13382. // API operation DescribeRegions for usage and error information.
  13383. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegions
  13384. func (c *EC2) DescribeRegions(input *DescribeRegionsInput) (*DescribeRegionsOutput, error) {
  13385. req, out := c.DescribeRegionsRequest(input)
  13386. return out, req.Send()
  13387. }
  13388. // DescribeRegionsWithContext is the same as DescribeRegions with the addition of
  13389. // the ability to pass a context and additional request options.
  13390. //
  13391. // See DescribeRegions for details on how to use this API operation.
  13392. //
  13393. // The context must be non-nil and will be used for request cancellation. If
  13394. // the context is nil a panic will occur. In the future the SDK may create
  13395. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13396. // for more information on using Contexts.
  13397. func (c *EC2) DescribeRegionsWithContext(ctx aws.Context, input *DescribeRegionsInput, opts ...request.Option) (*DescribeRegionsOutput, error) {
  13398. req, out := c.DescribeRegionsRequest(input)
  13399. req.SetContext(ctx)
  13400. req.ApplyOptions(opts...)
  13401. return out, req.Send()
  13402. }
  13403. const opDescribeReservedInstances = "DescribeReservedInstances"
  13404. // DescribeReservedInstancesRequest generates a "aws/request.Request" representing the
  13405. // client's request for the DescribeReservedInstances operation. The "output" return
  13406. // value will be populated with the request's response once the request completes
  13407. // successfully.
  13408. //
  13409. // Use "Send" method on the returned Request to send the API call to the service.
  13410. // the "output" return value is not valid until after Send returns without error.
  13411. //
  13412. // See DescribeReservedInstances for more information on using the DescribeReservedInstances
  13413. // API call, and error handling.
  13414. //
  13415. // This method is useful when you want to inject custom logic or configuration
  13416. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13417. //
  13418. //
  13419. // // Example sending a request using the DescribeReservedInstancesRequest method.
  13420. // req, resp := client.DescribeReservedInstancesRequest(params)
  13421. //
  13422. // err := req.Send()
  13423. // if err == nil { // resp is now filled
  13424. // fmt.Println(resp)
  13425. // }
  13426. //
  13427. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstances
  13428. func (c *EC2) DescribeReservedInstancesRequest(input *DescribeReservedInstancesInput) (req *request.Request, output *DescribeReservedInstancesOutput) {
  13429. op := &request.Operation{
  13430. Name: opDescribeReservedInstances,
  13431. HTTPMethod: "POST",
  13432. HTTPPath: "/",
  13433. }
  13434. if input == nil {
  13435. input = &DescribeReservedInstancesInput{}
  13436. }
  13437. output = &DescribeReservedInstancesOutput{}
  13438. req = c.newRequest(op, input, output)
  13439. return
  13440. }
  13441. // DescribeReservedInstances API operation for Amazon Elastic Compute Cloud.
  13442. //
  13443. // Describes one or more of the Reserved Instances that you purchased.
  13444. //
  13445. // For more information about Reserved Instances, see Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html)
  13446. // in the Amazon Elastic Compute Cloud User Guide.
  13447. //
  13448. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13449. // with awserr.Error's Code and Message methods to get detailed information about
  13450. // the error.
  13451. //
  13452. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13453. // API operation DescribeReservedInstances for usage and error information.
  13454. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstances
  13455. func (c *EC2) DescribeReservedInstances(input *DescribeReservedInstancesInput) (*DescribeReservedInstancesOutput, error) {
  13456. req, out := c.DescribeReservedInstancesRequest(input)
  13457. return out, req.Send()
  13458. }
  13459. // DescribeReservedInstancesWithContext is the same as DescribeReservedInstances with the addition of
  13460. // the ability to pass a context and additional request options.
  13461. //
  13462. // See DescribeReservedInstances for details on how to use this API operation.
  13463. //
  13464. // The context must be non-nil and will be used for request cancellation. If
  13465. // the context is nil a panic will occur. In the future the SDK may create
  13466. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13467. // for more information on using Contexts.
  13468. func (c *EC2) DescribeReservedInstancesWithContext(ctx aws.Context, input *DescribeReservedInstancesInput, opts ...request.Option) (*DescribeReservedInstancesOutput, error) {
  13469. req, out := c.DescribeReservedInstancesRequest(input)
  13470. req.SetContext(ctx)
  13471. req.ApplyOptions(opts...)
  13472. return out, req.Send()
  13473. }
  13474. const opDescribeReservedInstancesListings = "DescribeReservedInstancesListings"
  13475. // DescribeReservedInstancesListingsRequest generates a "aws/request.Request" representing the
  13476. // client's request for the DescribeReservedInstancesListings operation. The "output" return
  13477. // value will be populated with the request's response once the request completes
  13478. // successfully.
  13479. //
  13480. // Use "Send" method on the returned Request to send the API call to the service.
  13481. // the "output" return value is not valid until after Send returns without error.
  13482. //
  13483. // See DescribeReservedInstancesListings for more information on using the DescribeReservedInstancesListings
  13484. // API call, and error handling.
  13485. //
  13486. // This method is useful when you want to inject custom logic or configuration
  13487. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13488. //
  13489. //
  13490. // // Example sending a request using the DescribeReservedInstancesListingsRequest method.
  13491. // req, resp := client.DescribeReservedInstancesListingsRequest(params)
  13492. //
  13493. // err := req.Send()
  13494. // if err == nil { // resp is now filled
  13495. // fmt.Println(resp)
  13496. // }
  13497. //
  13498. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListings
  13499. func (c *EC2) DescribeReservedInstancesListingsRequest(input *DescribeReservedInstancesListingsInput) (req *request.Request, output *DescribeReservedInstancesListingsOutput) {
  13500. op := &request.Operation{
  13501. Name: opDescribeReservedInstancesListings,
  13502. HTTPMethod: "POST",
  13503. HTTPPath: "/",
  13504. }
  13505. if input == nil {
  13506. input = &DescribeReservedInstancesListingsInput{}
  13507. }
  13508. output = &DescribeReservedInstancesListingsOutput{}
  13509. req = c.newRequest(op, input, output)
  13510. return
  13511. }
  13512. // DescribeReservedInstancesListings API operation for Amazon Elastic Compute Cloud.
  13513. //
  13514. // Describes your account's Reserved Instance listings in the Reserved Instance
  13515. // Marketplace.
  13516. //
  13517. // The Reserved Instance Marketplace matches sellers who want to resell Reserved
  13518. // Instance capacity that they no longer need with buyers who want to purchase
  13519. // additional capacity. Reserved Instances bought and sold through the Reserved
  13520. // Instance Marketplace work like any other Reserved Instances.
  13521. //
  13522. // As a seller, you choose to list some or all of your Reserved Instances, and
  13523. // you specify the upfront price to receive for them. Your Reserved Instances
  13524. // are then listed in the Reserved Instance Marketplace and are available for
  13525. // purchase.
  13526. //
  13527. // As a buyer, you specify the configuration of the Reserved Instance to purchase,
  13528. // and the Marketplace matches what you're searching for with what's available.
  13529. // The Marketplace first sells the lowest priced Reserved Instances to you,
  13530. // and continues to sell available Reserved Instance listings to you until your
  13531. // demand is met. You are charged based on the total price of all of the listings
  13532. // that you purchase.
  13533. //
  13534. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  13535. // in the Amazon Elastic Compute Cloud User Guide.
  13536. //
  13537. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13538. // with awserr.Error's Code and Message methods to get detailed information about
  13539. // the error.
  13540. //
  13541. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13542. // API operation DescribeReservedInstancesListings for usage and error information.
  13543. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListings
  13544. func (c *EC2) DescribeReservedInstancesListings(input *DescribeReservedInstancesListingsInput) (*DescribeReservedInstancesListingsOutput, error) {
  13545. req, out := c.DescribeReservedInstancesListingsRequest(input)
  13546. return out, req.Send()
  13547. }
  13548. // DescribeReservedInstancesListingsWithContext is the same as DescribeReservedInstancesListings with the addition of
  13549. // the ability to pass a context and additional request options.
  13550. //
  13551. // See DescribeReservedInstancesListings for details on how to use this API operation.
  13552. //
  13553. // The context must be non-nil and will be used for request cancellation. If
  13554. // the context is nil a panic will occur. In the future the SDK may create
  13555. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13556. // for more information on using Contexts.
  13557. func (c *EC2) DescribeReservedInstancesListingsWithContext(ctx aws.Context, input *DescribeReservedInstancesListingsInput, opts ...request.Option) (*DescribeReservedInstancesListingsOutput, error) {
  13558. req, out := c.DescribeReservedInstancesListingsRequest(input)
  13559. req.SetContext(ctx)
  13560. req.ApplyOptions(opts...)
  13561. return out, req.Send()
  13562. }
  13563. const opDescribeReservedInstancesModifications = "DescribeReservedInstancesModifications"
  13564. // DescribeReservedInstancesModificationsRequest generates a "aws/request.Request" representing the
  13565. // client's request for the DescribeReservedInstancesModifications operation. The "output" return
  13566. // value will be populated with the request's response once the request completes
  13567. // successfully.
  13568. //
  13569. // Use "Send" method on the returned Request to send the API call to the service.
  13570. // the "output" return value is not valid until after Send returns without error.
  13571. //
  13572. // See DescribeReservedInstancesModifications for more information on using the DescribeReservedInstancesModifications
  13573. // API call, and error handling.
  13574. //
  13575. // This method is useful when you want to inject custom logic or configuration
  13576. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13577. //
  13578. //
  13579. // // Example sending a request using the DescribeReservedInstancesModificationsRequest method.
  13580. // req, resp := client.DescribeReservedInstancesModificationsRequest(params)
  13581. //
  13582. // err := req.Send()
  13583. // if err == nil { // resp is now filled
  13584. // fmt.Println(resp)
  13585. // }
  13586. //
  13587. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModifications
  13588. func (c *EC2) DescribeReservedInstancesModificationsRequest(input *DescribeReservedInstancesModificationsInput) (req *request.Request, output *DescribeReservedInstancesModificationsOutput) {
  13589. op := &request.Operation{
  13590. Name: opDescribeReservedInstancesModifications,
  13591. HTTPMethod: "POST",
  13592. HTTPPath: "/",
  13593. Paginator: &request.Paginator{
  13594. InputTokens: []string{"NextToken"},
  13595. OutputTokens: []string{"NextToken"},
  13596. LimitToken: "",
  13597. TruncationToken: "",
  13598. },
  13599. }
  13600. if input == nil {
  13601. input = &DescribeReservedInstancesModificationsInput{}
  13602. }
  13603. output = &DescribeReservedInstancesModificationsOutput{}
  13604. req = c.newRequest(op, input, output)
  13605. return
  13606. }
  13607. // DescribeReservedInstancesModifications API operation for Amazon Elastic Compute Cloud.
  13608. //
  13609. // Describes the modifications made to your Reserved Instances. If no parameter
  13610. // is specified, information about all your Reserved Instances modification
  13611. // requests is returned. If a modification ID is specified, only information
  13612. // about the specific modification is returned.
  13613. //
  13614. // For more information, see Modifying Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html)
  13615. // in the Amazon Elastic Compute Cloud User Guide.
  13616. //
  13617. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13618. // with awserr.Error's Code and Message methods to get detailed information about
  13619. // the error.
  13620. //
  13621. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13622. // API operation DescribeReservedInstancesModifications for usage and error information.
  13623. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModifications
  13624. func (c *EC2) DescribeReservedInstancesModifications(input *DescribeReservedInstancesModificationsInput) (*DescribeReservedInstancesModificationsOutput, error) {
  13625. req, out := c.DescribeReservedInstancesModificationsRequest(input)
  13626. return out, req.Send()
  13627. }
  13628. // DescribeReservedInstancesModificationsWithContext is the same as DescribeReservedInstancesModifications with the addition of
  13629. // the ability to pass a context and additional request options.
  13630. //
  13631. // See DescribeReservedInstancesModifications for details on how to use this API operation.
  13632. //
  13633. // The context must be non-nil and will be used for request cancellation. If
  13634. // the context is nil a panic will occur. In the future the SDK may create
  13635. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13636. // for more information on using Contexts.
  13637. func (c *EC2) DescribeReservedInstancesModificationsWithContext(ctx aws.Context, input *DescribeReservedInstancesModificationsInput, opts ...request.Option) (*DescribeReservedInstancesModificationsOutput, error) {
  13638. req, out := c.DescribeReservedInstancesModificationsRequest(input)
  13639. req.SetContext(ctx)
  13640. req.ApplyOptions(opts...)
  13641. return out, req.Send()
  13642. }
  13643. // DescribeReservedInstancesModificationsPages iterates over the pages of a DescribeReservedInstancesModifications operation,
  13644. // calling the "fn" function with the response data for each page. To stop
  13645. // iterating, return false from the fn function.
  13646. //
  13647. // See DescribeReservedInstancesModifications method for more information on how to use this operation.
  13648. //
  13649. // Note: This operation can generate multiple requests to a service.
  13650. //
  13651. // // Example iterating over at most 3 pages of a DescribeReservedInstancesModifications operation.
  13652. // pageNum := 0
  13653. // err := client.DescribeReservedInstancesModificationsPages(params,
  13654. // func(page *DescribeReservedInstancesModificationsOutput, lastPage bool) bool {
  13655. // pageNum++
  13656. // fmt.Println(page)
  13657. // return pageNum <= 3
  13658. // })
  13659. //
  13660. func (c *EC2) DescribeReservedInstancesModificationsPages(input *DescribeReservedInstancesModificationsInput, fn func(*DescribeReservedInstancesModificationsOutput, bool) bool) error {
  13661. return c.DescribeReservedInstancesModificationsPagesWithContext(aws.BackgroundContext(), input, fn)
  13662. }
  13663. // DescribeReservedInstancesModificationsPagesWithContext same as DescribeReservedInstancesModificationsPages except
  13664. // it takes a Context and allows setting request options on the pages.
  13665. //
  13666. // The context must be non-nil and will be used for request cancellation. If
  13667. // the context is nil a panic will occur. In the future the SDK may create
  13668. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13669. // for more information on using Contexts.
  13670. func (c *EC2) DescribeReservedInstancesModificationsPagesWithContext(ctx aws.Context, input *DescribeReservedInstancesModificationsInput, fn func(*DescribeReservedInstancesModificationsOutput, bool) bool, opts ...request.Option) error {
  13671. p := request.Pagination{
  13672. NewRequest: func() (*request.Request, error) {
  13673. var inCpy *DescribeReservedInstancesModificationsInput
  13674. if input != nil {
  13675. tmp := *input
  13676. inCpy = &tmp
  13677. }
  13678. req, _ := c.DescribeReservedInstancesModificationsRequest(inCpy)
  13679. req.SetContext(ctx)
  13680. req.ApplyOptions(opts...)
  13681. return req, nil
  13682. },
  13683. }
  13684. cont := true
  13685. for p.Next() && cont {
  13686. cont = fn(p.Page().(*DescribeReservedInstancesModificationsOutput), !p.HasNextPage())
  13687. }
  13688. return p.Err()
  13689. }
  13690. const opDescribeReservedInstancesOfferings = "DescribeReservedInstancesOfferings"
  13691. // DescribeReservedInstancesOfferingsRequest generates a "aws/request.Request" representing the
  13692. // client's request for the DescribeReservedInstancesOfferings operation. The "output" return
  13693. // value will be populated with the request's response once the request completes
  13694. // successfully.
  13695. //
  13696. // Use "Send" method on the returned Request to send the API call to the service.
  13697. // the "output" return value is not valid until after Send returns without error.
  13698. //
  13699. // See DescribeReservedInstancesOfferings for more information on using the DescribeReservedInstancesOfferings
  13700. // API call, and error handling.
  13701. //
  13702. // This method is useful when you want to inject custom logic or configuration
  13703. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13704. //
  13705. //
  13706. // // Example sending a request using the DescribeReservedInstancesOfferingsRequest method.
  13707. // req, resp := client.DescribeReservedInstancesOfferingsRequest(params)
  13708. //
  13709. // err := req.Send()
  13710. // if err == nil { // resp is now filled
  13711. // fmt.Println(resp)
  13712. // }
  13713. //
  13714. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferings
  13715. func (c *EC2) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedInstancesOfferingsInput) (req *request.Request, output *DescribeReservedInstancesOfferingsOutput) {
  13716. op := &request.Operation{
  13717. Name: opDescribeReservedInstancesOfferings,
  13718. HTTPMethod: "POST",
  13719. HTTPPath: "/",
  13720. Paginator: &request.Paginator{
  13721. InputTokens: []string{"NextToken"},
  13722. OutputTokens: []string{"NextToken"},
  13723. LimitToken: "MaxResults",
  13724. TruncationToken: "",
  13725. },
  13726. }
  13727. if input == nil {
  13728. input = &DescribeReservedInstancesOfferingsInput{}
  13729. }
  13730. output = &DescribeReservedInstancesOfferingsOutput{}
  13731. req = c.newRequest(op, input, output)
  13732. return
  13733. }
  13734. // DescribeReservedInstancesOfferings API operation for Amazon Elastic Compute Cloud.
  13735. //
  13736. // Describes Reserved Instance offerings that are available for purchase. With
  13737. // Reserved Instances, you purchase the right to launch instances for a period
  13738. // of time. During that time period, you do not receive insufficient capacity
  13739. // errors, and you pay a lower usage rate than the rate charged for On-Demand
  13740. // instances for the actual time used.
  13741. //
  13742. // If you have listed your own Reserved Instances for sale in the Reserved Instance
  13743. // Marketplace, they will be excluded from these results. This is to ensure
  13744. // that you do not purchase your own Reserved Instances.
  13745. //
  13746. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  13747. // in the Amazon Elastic Compute Cloud User Guide.
  13748. //
  13749. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13750. // with awserr.Error's Code and Message methods to get detailed information about
  13751. // the error.
  13752. //
  13753. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13754. // API operation DescribeReservedInstancesOfferings for usage and error information.
  13755. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferings
  13756. func (c *EC2) DescribeReservedInstancesOfferings(input *DescribeReservedInstancesOfferingsInput) (*DescribeReservedInstancesOfferingsOutput, error) {
  13757. req, out := c.DescribeReservedInstancesOfferingsRequest(input)
  13758. return out, req.Send()
  13759. }
  13760. // DescribeReservedInstancesOfferingsWithContext is the same as DescribeReservedInstancesOfferings with the addition of
  13761. // the ability to pass a context and additional request options.
  13762. //
  13763. // See DescribeReservedInstancesOfferings for details on how to use this API operation.
  13764. //
  13765. // The context must be non-nil and will be used for request cancellation. If
  13766. // the context is nil a panic will occur. In the future the SDK may create
  13767. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13768. // for more information on using Contexts.
  13769. func (c *EC2) DescribeReservedInstancesOfferingsWithContext(ctx aws.Context, input *DescribeReservedInstancesOfferingsInput, opts ...request.Option) (*DescribeReservedInstancesOfferingsOutput, error) {
  13770. req, out := c.DescribeReservedInstancesOfferingsRequest(input)
  13771. req.SetContext(ctx)
  13772. req.ApplyOptions(opts...)
  13773. return out, req.Send()
  13774. }
  13775. // DescribeReservedInstancesOfferingsPages iterates over the pages of a DescribeReservedInstancesOfferings operation,
  13776. // calling the "fn" function with the response data for each page. To stop
  13777. // iterating, return false from the fn function.
  13778. //
  13779. // See DescribeReservedInstancesOfferings method for more information on how to use this operation.
  13780. //
  13781. // Note: This operation can generate multiple requests to a service.
  13782. //
  13783. // // Example iterating over at most 3 pages of a DescribeReservedInstancesOfferings operation.
  13784. // pageNum := 0
  13785. // err := client.DescribeReservedInstancesOfferingsPages(params,
  13786. // func(page *DescribeReservedInstancesOfferingsOutput, lastPage bool) bool {
  13787. // pageNum++
  13788. // fmt.Println(page)
  13789. // return pageNum <= 3
  13790. // })
  13791. //
  13792. func (c *EC2) DescribeReservedInstancesOfferingsPages(input *DescribeReservedInstancesOfferingsInput, fn func(*DescribeReservedInstancesOfferingsOutput, bool) bool) error {
  13793. return c.DescribeReservedInstancesOfferingsPagesWithContext(aws.BackgroundContext(), input, fn)
  13794. }
  13795. // DescribeReservedInstancesOfferingsPagesWithContext same as DescribeReservedInstancesOfferingsPages except
  13796. // it takes a Context and allows setting request options on the pages.
  13797. //
  13798. // The context must be non-nil and will be used for request cancellation. If
  13799. // the context is nil a panic will occur. In the future the SDK may create
  13800. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13801. // for more information on using Contexts.
  13802. func (c *EC2) DescribeReservedInstancesOfferingsPagesWithContext(ctx aws.Context, input *DescribeReservedInstancesOfferingsInput, fn func(*DescribeReservedInstancesOfferingsOutput, bool) bool, opts ...request.Option) error {
  13803. p := request.Pagination{
  13804. NewRequest: func() (*request.Request, error) {
  13805. var inCpy *DescribeReservedInstancesOfferingsInput
  13806. if input != nil {
  13807. tmp := *input
  13808. inCpy = &tmp
  13809. }
  13810. req, _ := c.DescribeReservedInstancesOfferingsRequest(inCpy)
  13811. req.SetContext(ctx)
  13812. req.ApplyOptions(opts...)
  13813. return req, nil
  13814. },
  13815. }
  13816. cont := true
  13817. for p.Next() && cont {
  13818. cont = fn(p.Page().(*DescribeReservedInstancesOfferingsOutput), !p.HasNextPage())
  13819. }
  13820. return p.Err()
  13821. }
  13822. const opDescribeRouteTables = "DescribeRouteTables"
  13823. // DescribeRouteTablesRequest generates a "aws/request.Request" representing the
  13824. // client's request for the DescribeRouteTables operation. The "output" return
  13825. // value will be populated with the request's response once the request completes
  13826. // successfully.
  13827. //
  13828. // Use "Send" method on the returned Request to send the API call to the service.
  13829. // the "output" return value is not valid until after Send returns without error.
  13830. //
  13831. // See DescribeRouteTables for more information on using the DescribeRouteTables
  13832. // API call, and error handling.
  13833. //
  13834. // This method is useful when you want to inject custom logic or configuration
  13835. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13836. //
  13837. //
  13838. // // Example sending a request using the DescribeRouteTablesRequest method.
  13839. // req, resp := client.DescribeRouteTablesRequest(params)
  13840. //
  13841. // err := req.Send()
  13842. // if err == nil { // resp is now filled
  13843. // fmt.Println(resp)
  13844. // }
  13845. //
  13846. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTables
  13847. func (c *EC2) DescribeRouteTablesRequest(input *DescribeRouteTablesInput) (req *request.Request, output *DescribeRouteTablesOutput) {
  13848. op := &request.Operation{
  13849. Name: opDescribeRouteTables,
  13850. HTTPMethod: "POST",
  13851. HTTPPath: "/",
  13852. Paginator: &request.Paginator{
  13853. InputTokens: []string{"NextToken"},
  13854. OutputTokens: []string{"NextToken"},
  13855. LimitToken: "MaxResults",
  13856. TruncationToken: "",
  13857. },
  13858. }
  13859. if input == nil {
  13860. input = &DescribeRouteTablesInput{}
  13861. }
  13862. output = &DescribeRouteTablesOutput{}
  13863. req = c.newRequest(op, input, output)
  13864. return
  13865. }
  13866. // DescribeRouteTables API operation for Amazon Elastic Compute Cloud.
  13867. //
  13868. // Describes one or more of your route tables.
  13869. //
  13870. // Each subnet in your VPC must be associated with a route table. If a subnet
  13871. // is not explicitly associated with any route table, it is implicitly associated
  13872. // with the main route table. This command does not return the subnet ID for
  13873. // implicit associations.
  13874. //
  13875. // For more information, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  13876. // in the Amazon Virtual Private Cloud User Guide.
  13877. //
  13878. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13879. // with awserr.Error's Code and Message methods to get detailed information about
  13880. // the error.
  13881. //
  13882. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13883. // API operation DescribeRouteTables for usage and error information.
  13884. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTables
  13885. func (c *EC2) DescribeRouteTables(input *DescribeRouteTablesInput) (*DescribeRouteTablesOutput, error) {
  13886. req, out := c.DescribeRouteTablesRequest(input)
  13887. return out, req.Send()
  13888. }
  13889. // DescribeRouteTablesWithContext is the same as DescribeRouteTables with the addition of
  13890. // the ability to pass a context and additional request options.
  13891. //
  13892. // See DescribeRouteTables for details on how to use this API operation.
  13893. //
  13894. // The context must be non-nil and will be used for request cancellation. If
  13895. // the context is nil a panic will occur. In the future the SDK may create
  13896. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13897. // for more information on using Contexts.
  13898. func (c *EC2) DescribeRouteTablesWithContext(ctx aws.Context, input *DescribeRouteTablesInput, opts ...request.Option) (*DescribeRouteTablesOutput, error) {
  13899. req, out := c.DescribeRouteTablesRequest(input)
  13900. req.SetContext(ctx)
  13901. req.ApplyOptions(opts...)
  13902. return out, req.Send()
  13903. }
  13904. // DescribeRouteTablesPages iterates over the pages of a DescribeRouteTables operation,
  13905. // calling the "fn" function with the response data for each page. To stop
  13906. // iterating, return false from the fn function.
  13907. //
  13908. // See DescribeRouteTables method for more information on how to use this operation.
  13909. //
  13910. // Note: This operation can generate multiple requests to a service.
  13911. //
  13912. // // Example iterating over at most 3 pages of a DescribeRouteTables operation.
  13913. // pageNum := 0
  13914. // err := client.DescribeRouteTablesPages(params,
  13915. // func(page *DescribeRouteTablesOutput, lastPage bool) bool {
  13916. // pageNum++
  13917. // fmt.Println(page)
  13918. // return pageNum <= 3
  13919. // })
  13920. //
  13921. func (c *EC2) DescribeRouteTablesPages(input *DescribeRouteTablesInput, fn func(*DescribeRouteTablesOutput, bool) bool) error {
  13922. return c.DescribeRouteTablesPagesWithContext(aws.BackgroundContext(), input, fn)
  13923. }
  13924. // DescribeRouteTablesPagesWithContext same as DescribeRouteTablesPages except
  13925. // it takes a Context and allows setting request options on the pages.
  13926. //
  13927. // The context must be non-nil and will be used for request cancellation. If
  13928. // the context is nil a panic will occur. In the future the SDK may create
  13929. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13930. // for more information on using Contexts.
  13931. func (c *EC2) DescribeRouteTablesPagesWithContext(ctx aws.Context, input *DescribeRouteTablesInput, fn func(*DescribeRouteTablesOutput, bool) bool, opts ...request.Option) error {
  13932. p := request.Pagination{
  13933. NewRequest: func() (*request.Request, error) {
  13934. var inCpy *DescribeRouteTablesInput
  13935. if input != nil {
  13936. tmp := *input
  13937. inCpy = &tmp
  13938. }
  13939. req, _ := c.DescribeRouteTablesRequest(inCpy)
  13940. req.SetContext(ctx)
  13941. req.ApplyOptions(opts...)
  13942. return req, nil
  13943. },
  13944. }
  13945. cont := true
  13946. for p.Next() && cont {
  13947. cont = fn(p.Page().(*DescribeRouteTablesOutput), !p.HasNextPage())
  13948. }
  13949. return p.Err()
  13950. }
  13951. const opDescribeScheduledInstanceAvailability = "DescribeScheduledInstanceAvailability"
  13952. // DescribeScheduledInstanceAvailabilityRequest generates a "aws/request.Request" representing the
  13953. // client's request for the DescribeScheduledInstanceAvailability operation. The "output" return
  13954. // value will be populated with the request's response once the request completes
  13955. // successfully.
  13956. //
  13957. // Use "Send" method on the returned Request to send the API call to the service.
  13958. // the "output" return value is not valid until after Send returns without error.
  13959. //
  13960. // See DescribeScheduledInstanceAvailability for more information on using the DescribeScheduledInstanceAvailability
  13961. // API call, and error handling.
  13962. //
  13963. // This method is useful when you want to inject custom logic or configuration
  13964. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13965. //
  13966. //
  13967. // // Example sending a request using the DescribeScheduledInstanceAvailabilityRequest method.
  13968. // req, resp := client.DescribeScheduledInstanceAvailabilityRequest(params)
  13969. //
  13970. // err := req.Send()
  13971. // if err == nil { // resp is now filled
  13972. // fmt.Println(resp)
  13973. // }
  13974. //
  13975. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailability
  13976. func (c *EC2) DescribeScheduledInstanceAvailabilityRequest(input *DescribeScheduledInstanceAvailabilityInput) (req *request.Request, output *DescribeScheduledInstanceAvailabilityOutput) {
  13977. op := &request.Operation{
  13978. Name: opDescribeScheduledInstanceAvailability,
  13979. HTTPMethod: "POST",
  13980. HTTPPath: "/",
  13981. }
  13982. if input == nil {
  13983. input = &DescribeScheduledInstanceAvailabilityInput{}
  13984. }
  13985. output = &DescribeScheduledInstanceAvailabilityOutput{}
  13986. req = c.newRequest(op, input, output)
  13987. return
  13988. }
  13989. // DescribeScheduledInstanceAvailability API operation for Amazon Elastic Compute Cloud.
  13990. //
  13991. // Finds available schedules that meet the specified criteria.
  13992. //
  13993. // You can search for an available schedule no more than 3 months in advance.
  13994. // You must meet the minimum required duration of 1,200 hours per year. For
  13995. // example, the minimum daily schedule is 4 hours, the minimum weekly schedule
  13996. // is 24 hours, and the minimum monthly schedule is 100 hours.
  13997. //
  13998. // After you find a schedule that meets your needs, call PurchaseScheduledInstances
  13999. // to purchase Scheduled Instances with that schedule.
  14000. //
  14001. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14002. // with awserr.Error's Code and Message methods to get detailed information about
  14003. // the error.
  14004. //
  14005. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14006. // API operation DescribeScheduledInstanceAvailability for usage and error information.
  14007. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailability
  14008. func (c *EC2) DescribeScheduledInstanceAvailability(input *DescribeScheduledInstanceAvailabilityInput) (*DescribeScheduledInstanceAvailabilityOutput, error) {
  14009. req, out := c.DescribeScheduledInstanceAvailabilityRequest(input)
  14010. return out, req.Send()
  14011. }
  14012. // DescribeScheduledInstanceAvailabilityWithContext is the same as DescribeScheduledInstanceAvailability with the addition of
  14013. // the ability to pass a context and additional request options.
  14014. //
  14015. // See DescribeScheduledInstanceAvailability for details on how to use this API operation.
  14016. //
  14017. // The context must be non-nil and will be used for request cancellation. If
  14018. // the context is nil a panic will occur. In the future the SDK may create
  14019. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14020. // for more information on using Contexts.
  14021. func (c *EC2) DescribeScheduledInstanceAvailabilityWithContext(ctx aws.Context, input *DescribeScheduledInstanceAvailabilityInput, opts ...request.Option) (*DescribeScheduledInstanceAvailabilityOutput, error) {
  14022. req, out := c.DescribeScheduledInstanceAvailabilityRequest(input)
  14023. req.SetContext(ctx)
  14024. req.ApplyOptions(opts...)
  14025. return out, req.Send()
  14026. }
  14027. const opDescribeScheduledInstances = "DescribeScheduledInstances"
  14028. // DescribeScheduledInstancesRequest generates a "aws/request.Request" representing the
  14029. // client's request for the DescribeScheduledInstances operation. The "output" return
  14030. // value will be populated with the request's response once the request completes
  14031. // successfully.
  14032. //
  14033. // Use "Send" method on the returned Request to send the API call to the service.
  14034. // the "output" return value is not valid until after Send returns without error.
  14035. //
  14036. // See DescribeScheduledInstances for more information on using the DescribeScheduledInstances
  14037. // API call, and error handling.
  14038. //
  14039. // This method is useful when you want to inject custom logic or configuration
  14040. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14041. //
  14042. //
  14043. // // Example sending a request using the DescribeScheduledInstancesRequest method.
  14044. // req, resp := client.DescribeScheduledInstancesRequest(params)
  14045. //
  14046. // err := req.Send()
  14047. // if err == nil { // resp is now filled
  14048. // fmt.Println(resp)
  14049. // }
  14050. //
  14051. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstances
  14052. func (c *EC2) DescribeScheduledInstancesRequest(input *DescribeScheduledInstancesInput) (req *request.Request, output *DescribeScheduledInstancesOutput) {
  14053. op := &request.Operation{
  14054. Name: opDescribeScheduledInstances,
  14055. HTTPMethod: "POST",
  14056. HTTPPath: "/",
  14057. }
  14058. if input == nil {
  14059. input = &DescribeScheduledInstancesInput{}
  14060. }
  14061. output = &DescribeScheduledInstancesOutput{}
  14062. req = c.newRequest(op, input, output)
  14063. return
  14064. }
  14065. // DescribeScheduledInstances API operation for Amazon Elastic Compute Cloud.
  14066. //
  14067. // Describes one or more of your Scheduled Instances.
  14068. //
  14069. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14070. // with awserr.Error's Code and Message methods to get detailed information about
  14071. // the error.
  14072. //
  14073. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14074. // API operation DescribeScheduledInstances for usage and error information.
  14075. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstances
  14076. func (c *EC2) DescribeScheduledInstances(input *DescribeScheduledInstancesInput) (*DescribeScheduledInstancesOutput, error) {
  14077. req, out := c.DescribeScheduledInstancesRequest(input)
  14078. return out, req.Send()
  14079. }
  14080. // DescribeScheduledInstancesWithContext is the same as DescribeScheduledInstances with the addition of
  14081. // the ability to pass a context and additional request options.
  14082. //
  14083. // See DescribeScheduledInstances for details on how to use this API operation.
  14084. //
  14085. // The context must be non-nil and will be used for request cancellation. If
  14086. // the context is nil a panic will occur. In the future the SDK may create
  14087. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14088. // for more information on using Contexts.
  14089. func (c *EC2) DescribeScheduledInstancesWithContext(ctx aws.Context, input *DescribeScheduledInstancesInput, opts ...request.Option) (*DescribeScheduledInstancesOutput, error) {
  14090. req, out := c.DescribeScheduledInstancesRequest(input)
  14091. req.SetContext(ctx)
  14092. req.ApplyOptions(opts...)
  14093. return out, req.Send()
  14094. }
  14095. const opDescribeSecurityGroupReferences = "DescribeSecurityGroupReferences"
  14096. // DescribeSecurityGroupReferencesRequest generates a "aws/request.Request" representing the
  14097. // client's request for the DescribeSecurityGroupReferences operation. The "output" return
  14098. // value will be populated with the request's response once the request completes
  14099. // successfully.
  14100. //
  14101. // Use "Send" method on the returned Request to send the API call to the service.
  14102. // the "output" return value is not valid until after Send returns without error.
  14103. //
  14104. // See DescribeSecurityGroupReferences for more information on using the DescribeSecurityGroupReferences
  14105. // API call, and error handling.
  14106. //
  14107. // This method is useful when you want to inject custom logic or configuration
  14108. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14109. //
  14110. //
  14111. // // Example sending a request using the DescribeSecurityGroupReferencesRequest method.
  14112. // req, resp := client.DescribeSecurityGroupReferencesRequest(params)
  14113. //
  14114. // err := req.Send()
  14115. // if err == nil { // resp is now filled
  14116. // fmt.Println(resp)
  14117. // }
  14118. //
  14119. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferences
  14120. func (c *EC2) DescribeSecurityGroupReferencesRequest(input *DescribeSecurityGroupReferencesInput) (req *request.Request, output *DescribeSecurityGroupReferencesOutput) {
  14121. op := &request.Operation{
  14122. Name: opDescribeSecurityGroupReferences,
  14123. HTTPMethod: "POST",
  14124. HTTPPath: "/",
  14125. }
  14126. if input == nil {
  14127. input = &DescribeSecurityGroupReferencesInput{}
  14128. }
  14129. output = &DescribeSecurityGroupReferencesOutput{}
  14130. req = c.newRequest(op, input, output)
  14131. return
  14132. }
  14133. // DescribeSecurityGroupReferences API operation for Amazon Elastic Compute Cloud.
  14134. //
  14135. // [EC2-VPC only] Describes the VPCs on the other side of a VPC peering connection
  14136. // that are referencing the security groups you've specified in this request.
  14137. //
  14138. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14139. // with awserr.Error's Code and Message methods to get detailed information about
  14140. // the error.
  14141. //
  14142. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14143. // API operation DescribeSecurityGroupReferences for usage and error information.
  14144. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferences
  14145. func (c *EC2) DescribeSecurityGroupReferences(input *DescribeSecurityGroupReferencesInput) (*DescribeSecurityGroupReferencesOutput, error) {
  14146. req, out := c.DescribeSecurityGroupReferencesRequest(input)
  14147. return out, req.Send()
  14148. }
  14149. // DescribeSecurityGroupReferencesWithContext is the same as DescribeSecurityGroupReferences with the addition of
  14150. // the ability to pass a context and additional request options.
  14151. //
  14152. // See DescribeSecurityGroupReferences for details on how to use this API operation.
  14153. //
  14154. // The context must be non-nil and will be used for request cancellation. If
  14155. // the context is nil a panic will occur. In the future the SDK may create
  14156. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14157. // for more information on using Contexts.
  14158. func (c *EC2) DescribeSecurityGroupReferencesWithContext(ctx aws.Context, input *DescribeSecurityGroupReferencesInput, opts ...request.Option) (*DescribeSecurityGroupReferencesOutput, error) {
  14159. req, out := c.DescribeSecurityGroupReferencesRequest(input)
  14160. req.SetContext(ctx)
  14161. req.ApplyOptions(opts...)
  14162. return out, req.Send()
  14163. }
  14164. const opDescribeSecurityGroups = "DescribeSecurityGroups"
  14165. // DescribeSecurityGroupsRequest generates a "aws/request.Request" representing the
  14166. // client's request for the DescribeSecurityGroups operation. The "output" return
  14167. // value will be populated with the request's response once the request completes
  14168. // successfully.
  14169. //
  14170. // Use "Send" method on the returned Request to send the API call to the service.
  14171. // the "output" return value is not valid until after Send returns without error.
  14172. //
  14173. // See DescribeSecurityGroups for more information on using the DescribeSecurityGroups
  14174. // API call, and error handling.
  14175. //
  14176. // This method is useful when you want to inject custom logic or configuration
  14177. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14178. //
  14179. //
  14180. // // Example sending a request using the DescribeSecurityGroupsRequest method.
  14181. // req, resp := client.DescribeSecurityGroupsRequest(params)
  14182. //
  14183. // err := req.Send()
  14184. // if err == nil { // resp is now filled
  14185. // fmt.Println(resp)
  14186. // }
  14187. //
  14188. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroups
  14189. func (c *EC2) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) (req *request.Request, output *DescribeSecurityGroupsOutput) {
  14190. op := &request.Operation{
  14191. Name: opDescribeSecurityGroups,
  14192. HTTPMethod: "POST",
  14193. HTTPPath: "/",
  14194. Paginator: &request.Paginator{
  14195. InputTokens: []string{"NextToken"},
  14196. OutputTokens: []string{"NextToken"},
  14197. LimitToken: "MaxResults",
  14198. TruncationToken: "",
  14199. },
  14200. }
  14201. if input == nil {
  14202. input = &DescribeSecurityGroupsInput{}
  14203. }
  14204. output = &DescribeSecurityGroupsOutput{}
  14205. req = c.newRequest(op, input, output)
  14206. return
  14207. }
  14208. // DescribeSecurityGroups API operation for Amazon Elastic Compute Cloud.
  14209. //
  14210. // Describes one or more of your security groups.
  14211. //
  14212. // A security group is for use with instances either in the EC2-Classic platform
  14213. // or in a specific VPC. For more information, see Amazon EC2 Security Groups
  14214. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
  14215. // in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your
  14216. // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  14217. // in the Amazon Virtual Private Cloud User Guide.
  14218. //
  14219. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14220. // with awserr.Error's Code and Message methods to get detailed information about
  14221. // the error.
  14222. //
  14223. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14224. // API operation DescribeSecurityGroups for usage and error information.
  14225. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroups
  14226. func (c *EC2) DescribeSecurityGroups(input *DescribeSecurityGroupsInput) (*DescribeSecurityGroupsOutput, error) {
  14227. req, out := c.DescribeSecurityGroupsRequest(input)
  14228. return out, req.Send()
  14229. }
  14230. // DescribeSecurityGroupsWithContext is the same as DescribeSecurityGroups with the addition of
  14231. // the ability to pass a context and additional request options.
  14232. //
  14233. // See DescribeSecurityGroups for details on how to use this API operation.
  14234. //
  14235. // The context must be non-nil and will be used for request cancellation. If
  14236. // the context is nil a panic will occur. In the future the SDK may create
  14237. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14238. // for more information on using Contexts.
  14239. func (c *EC2) DescribeSecurityGroupsWithContext(ctx aws.Context, input *DescribeSecurityGroupsInput, opts ...request.Option) (*DescribeSecurityGroupsOutput, error) {
  14240. req, out := c.DescribeSecurityGroupsRequest(input)
  14241. req.SetContext(ctx)
  14242. req.ApplyOptions(opts...)
  14243. return out, req.Send()
  14244. }
  14245. // DescribeSecurityGroupsPages iterates over the pages of a DescribeSecurityGroups operation,
  14246. // calling the "fn" function with the response data for each page. To stop
  14247. // iterating, return false from the fn function.
  14248. //
  14249. // See DescribeSecurityGroups method for more information on how to use this operation.
  14250. //
  14251. // Note: This operation can generate multiple requests to a service.
  14252. //
  14253. // // Example iterating over at most 3 pages of a DescribeSecurityGroups operation.
  14254. // pageNum := 0
  14255. // err := client.DescribeSecurityGroupsPages(params,
  14256. // func(page *DescribeSecurityGroupsOutput, lastPage bool) bool {
  14257. // pageNum++
  14258. // fmt.Println(page)
  14259. // return pageNum <= 3
  14260. // })
  14261. //
  14262. func (c *EC2) DescribeSecurityGroupsPages(input *DescribeSecurityGroupsInput, fn func(*DescribeSecurityGroupsOutput, bool) bool) error {
  14263. return c.DescribeSecurityGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
  14264. }
  14265. // DescribeSecurityGroupsPagesWithContext same as DescribeSecurityGroupsPages except
  14266. // it takes a Context and allows setting request options on the pages.
  14267. //
  14268. // The context must be non-nil and will be used for request cancellation. If
  14269. // the context is nil a panic will occur. In the future the SDK may create
  14270. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14271. // for more information on using Contexts.
  14272. func (c *EC2) DescribeSecurityGroupsPagesWithContext(ctx aws.Context, input *DescribeSecurityGroupsInput, fn func(*DescribeSecurityGroupsOutput, bool) bool, opts ...request.Option) error {
  14273. p := request.Pagination{
  14274. NewRequest: func() (*request.Request, error) {
  14275. var inCpy *DescribeSecurityGroupsInput
  14276. if input != nil {
  14277. tmp := *input
  14278. inCpy = &tmp
  14279. }
  14280. req, _ := c.DescribeSecurityGroupsRequest(inCpy)
  14281. req.SetContext(ctx)
  14282. req.ApplyOptions(opts...)
  14283. return req, nil
  14284. },
  14285. }
  14286. cont := true
  14287. for p.Next() && cont {
  14288. cont = fn(p.Page().(*DescribeSecurityGroupsOutput), !p.HasNextPage())
  14289. }
  14290. return p.Err()
  14291. }
  14292. const opDescribeSnapshotAttribute = "DescribeSnapshotAttribute"
  14293. // DescribeSnapshotAttributeRequest generates a "aws/request.Request" representing the
  14294. // client's request for the DescribeSnapshotAttribute operation. The "output" return
  14295. // value will be populated with the request's response once the request completes
  14296. // successfully.
  14297. //
  14298. // Use "Send" method on the returned Request to send the API call to the service.
  14299. // the "output" return value is not valid until after Send returns without error.
  14300. //
  14301. // See DescribeSnapshotAttribute for more information on using the DescribeSnapshotAttribute
  14302. // API call, and error handling.
  14303. //
  14304. // This method is useful when you want to inject custom logic or configuration
  14305. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14306. //
  14307. //
  14308. // // Example sending a request using the DescribeSnapshotAttributeRequest method.
  14309. // req, resp := client.DescribeSnapshotAttributeRequest(params)
  14310. //
  14311. // err := req.Send()
  14312. // if err == nil { // resp is now filled
  14313. // fmt.Println(resp)
  14314. // }
  14315. //
  14316. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttribute
  14317. func (c *EC2) DescribeSnapshotAttributeRequest(input *DescribeSnapshotAttributeInput) (req *request.Request, output *DescribeSnapshotAttributeOutput) {
  14318. op := &request.Operation{
  14319. Name: opDescribeSnapshotAttribute,
  14320. HTTPMethod: "POST",
  14321. HTTPPath: "/",
  14322. }
  14323. if input == nil {
  14324. input = &DescribeSnapshotAttributeInput{}
  14325. }
  14326. output = &DescribeSnapshotAttributeOutput{}
  14327. req = c.newRequest(op, input, output)
  14328. return
  14329. }
  14330. // DescribeSnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  14331. //
  14332. // Describes the specified attribute of the specified snapshot. You can specify
  14333. // only one attribute at a time.
  14334. //
  14335. // For more information about EBS snapshots, see Amazon EBS Snapshots (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html)
  14336. // in the Amazon Elastic Compute Cloud User Guide.
  14337. //
  14338. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14339. // with awserr.Error's Code and Message methods to get detailed information about
  14340. // the error.
  14341. //
  14342. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14343. // API operation DescribeSnapshotAttribute for usage and error information.
  14344. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttribute
  14345. func (c *EC2) DescribeSnapshotAttribute(input *DescribeSnapshotAttributeInput) (*DescribeSnapshotAttributeOutput, error) {
  14346. req, out := c.DescribeSnapshotAttributeRequest(input)
  14347. return out, req.Send()
  14348. }
  14349. // DescribeSnapshotAttributeWithContext is the same as DescribeSnapshotAttribute with the addition of
  14350. // the ability to pass a context and additional request options.
  14351. //
  14352. // See DescribeSnapshotAttribute for details on how to use this API operation.
  14353. //
  14354. // The context must be non-nil and will be used for request cancellation. If
  14355. // the context is nil a panic will occur. In the future the SDK may create
  14356. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14357. // for more information on using Contexts.
  14358. func (c *EC2) DescribeSnapshotAttributeWithContext(ctx aws.Context, input *DescribeSnapshotAttributeInput, opts ...request.Option) (*DescribeSnapshotAttributeOutput, error) {
  14359. req, out := c.DescribeSnapshotAttributeRequest(input)
  14360. req.SetContext(ctx)
  14361. req.ApplyOptions(opts...)
  14362. return out, req.Send()
  14363. }
  14364. const opDescribeSnapshots = "DescribeSnapshots"
  14365. // DescribeSnapshotsRequest generates a "aws/request.Request" representing the
  14366. // client's request for the DescribeSnapshots operation. The "output" return
  14367. // value will be populated with the request's response once the request completes
  14368. // successfully.
  14369. //
  14370. // Use "Send" method on the returned Request to send the API call to the service.
  14371. // the "output" return value is not valid until after Send returns without error.
  14372. //
  14373. // See DescribeSnapshots for more information on using the DescribeSnapshots
  14374. // API call, and error handling.
  14375. //
  14376. // This method is useful when you want to inject custom logic or configuration
  14377. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14378. //
  14379. //
  14380. // // Example sending a request using the DescribeSnapshotsRequest method.
  14381. // req, resp := client.DescribeSnapshotsRequest(params)
  14382. //
  14383. // err := req.Send()
  14384. // if err == nil { // resp is now filled
  14385. // fmt.Println(resp)
  14386. // }
  14387. //
  14388. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshots
  14389. func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *request.Request, output *DescribeSnapshotsOutput) {
  14390. op := &request.Operation{
  14391. Name: opDescribeSnapshots,
  14392. HTTPMethod: "POST",
  14393. HTTPPath: "/",
  14394. Paginator: &request.Paginator{
  14395. InputTokens: []string{"NextToken"},
  14396. OutputTokens: []string{"NextToken"},
  14397. LimitToken: "MaxResults",
  14398. TruncationToken: "",
  14399. },
  14400. }
  14401. if input == nil {
  14402. input = &DescribeSnapshotsInput{}
  14403. }
  14404. output = &DescribeSnapshotsOutput{}
  14405. req = c.newRequest(op, input, output)
  14406. return
  14407. }
  14408. // DescribeSnapshots API operation for Amazon Elastic Compute Cloud.
  14409. //
  14410. // Describes one or more of the EBS snapshots available to you. Available snapshots
  14411. // include public snapshots available for any AWS account to launch, private
  14412. // snapshots that you own, and private snapshots owned by another AWS account
  14413. // but for which you've been given explicit create volume permissions.
  14414. //
  14415. // The create volume permissions fall into the following categories:
  14416. //
  14417. // * public: The owner of the snapshot granted create volume permissions
  14418. // for the snapshot to the all group. All AWS accounts have create volume
  14419. // permissions for these snapshots.
  14420. //
  14421. // * explicit: The owner of the snapshot granted create volume permissions
  14422. // to a specific AWS account.
  14423. //
  14424. // * implicit: An AWS account has implicit create volume permissions for
  14425. // all snapshots it owns.
  14426. //
  14427. // The list of snapshots returned can be modified by specifying snapshot IDs,
  14428. // snapshot owners, or AWS accounts with create volume permissions. If no options
  14429. // are specified, Amazon EC2 returns all snapshots for which you have create
  14430. // volume permissions.
  14431. //
  14432. // If you specify one or more snapshot IDs, only snapshots that have the specified
  14433. // IDs are returned. If you specify an invalid snapshot ID, an error is returned.
  14434. // If you specify a snapshot ID for which you do not have access, it is not
  14435. // included in the returned results.
  14436. //
  14437. // If you specify one or more snapshot owners using the OwnerIds option, only
  14438. // snapshots from the specified owners and for which you have access are returned.
  14439. // The results can include the AWS account IDs of the specified owners, amazon
  14440. // for snapshots owned by Amazon, or self for snapshots that you own.
  14441. //
  14442. // If you specify a list of restorable users, only snapshots with create snapshot
  14443. // permissions for those users are returned. You can specify AWS account IDs
  14444. // (if you own the snapshots), self for snapshots for which you own or have
  14445. // explicit permissions, or all for public snapshots.
  14446. //
  14447. // If you are describing a long list of snapshots, you can paginate the output
  14448. // to make the list more manageable. The MaxResults parameter sets the maximum
  14449. // number of results returned in a single page. If the list of results exceeds
  14450. // your MaxResults value, then that number of results is returned along with
  14451. // a NextToken value that can be passed to a subsequent DescribeSnapshots request
  14452. // to retrieve the remaining results.
  14453. //
  14454. // For more information about EBS snapshots, see Amazon EBS Snapshots (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html)
  14455. // in the Amazon Elastic Compute Cloud User Guide.
  14456. //
  14457. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14458. // with awserr.Error's Code and Message methods to get detailed information about
  14459. // the error.
  14460. //
  14461. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14462. // API operation DescribeSnapshots for usage and error information.
  14463. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshots
  14464. func (c *EC2) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) {
  14465. req, out := c.DescribeSnapshotsRequest(input)
  14466. return out, req.Send()
  14467. }
  14468. // DescribeSnapshotsWithContext is the same as DescribeSnapshots with the addition of
  14469. // the ability to pass a context and additional request options.
  14470. //
  14471. // See DescribeSnapshots for details on how to use this API operation.
  14472. //
  14473. // The context must be non-nil and will be used for request cancellation. If
  14474. // the context is nil a panic will occur. In the future the SDK may create
  14475. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14476. // for more information on using Contexts.
  14477. func (c *EC2) DescribeSnapshotsWithContext(ctx aws.Context, input *DescribeSnapshotsInput, opts ...request.Option) (*DescribeSnapshotsOutput, error) {
  14478. req, out := c.DescribeSnapshotsRequest(input)
  14479. req.SetContext(ctx)
  14480. req.ApplyOptions(opts...)
  14481. return out, req.Send()
  14482. }
  14483. // DescribeSnapshotsPages iterates over the pages of a DescribeSnapshots operation,
  14484. // calling the "fn" function with the response data for each page. To stop
  14485. // iterating, return false from the fn function.
  14486. //
  14487. // See DescribeSnapshots method for more information on how to use this operation.
  14488. //
  14489. // Note: This operation can generate multiple requests to a service.
  14490. //
  14491. // // Example iterating over at most 3 pages of a DescribeSnapshots operation.
  14492. // pageNum := 0
  14493. // err := client.DescribeSnapshotsPages(params,
  14494. // func(page *DescribeSnapshotsOutput, lastPage bool) bool {
  14495. // pageNum++
  14496. // fmt.Println(page)
  14497. // return pageNum <= 3
  14498. // })
  14499. //
  14500. func (c *EC2) DescribeSnapshotsPages(input *DescribeSnapshotsInput, fn func(*DescribeSnapshotsOutput, bool) bool) error {
  14501. return c.DescribeSnapshotsPagesWithContext(aws.BackgroundContext(), input, fn)
  14502. }
  14503. // DescribeSnapshotsPagesWithContext same as DescribeSnapshotsPages except
  14504. // it takes a Context and allows setting request options on the pages.
  14505. //
  14506. // The context must be non-nil and will be used for request cancellation. If
  14507. // the context is nil a panic will occur. In the future the SDK may create
  14508. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14509. // for more information on using Contexts.
  14510. func (c *EC2) DescribeSnapshotsPagesWithContext(ctx aws.Context, input *DescribeSnapshotsInput, fn func(*DescribeSnapshotsOutput, bool) bool, opts ...request.Option) error {
  14511. p := request.Pagination{
  14512. NewRequest: func() (*request.Request, error) {
  14513. var inCpy *DescribeSnapshotsInput
  14514. if input != nil {
  14515. tmp := *input
  14516. inCpy = &tmp
  14517. }
  14518. req, _ := c.DescribeSnapshotsRequest(inCpy)
  14519. req.SetContext(ctx)
  14520. req.ApplyOptions(opts...)
  14521. return req, nil
  14522. },
  14523. }
  14524. cont := true
  14525. for p.Next() && cont {
  14526. cont = fn(p.Page().(*DescribeSnapshotsOutput), !p.HasNextPage())
  14527. }
  14528. return p.Err()
  14529. }
  14530. const opDescribeSpotDatafeedSubscription = "DescribeSpotDatafeedSubscription"
  14531. // DescribeSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  14532. // client's request for the DescribeSpotDatafeedSubscription operation. The "output" return
  14533. // value will be populated with the request's response once the request completes
  14534. // successfully.
  14535. //
  14536. // Use "Send" method on the returned Request to send the API call to the service.
  14537. // the "output" return value is not valid until after Send returns without error.
  14538. //
  14539. // See DescribeSpotDatafeedSubscription for more information on using the DescribeSpotDatafeedSubscription
  14540. // API call, and error handling.
  14541. //
  14542. // This method is useful when you want to inject custom logic or configuration
  14543. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14544. //
  14545. //
  14546. // // Example sending a request using the DescribeSpotDatafeedSubscriptionRequest method.
  14547. // req, resp := client.DescribeSpotDatafeedSubscriptionRequest(params)
  14548. //
  14549. // err := req.Send()
  14550. // if err == nil { // resp is now filled
  14551. // fmt.Println(resp)
  14552. // }
  14553. //
  14554. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscription
  14555. func (c *EC2) DescribeSpotDatafeedSubscriptionRequest(input *DescribeSpotDatafeedSubscriptionInput) (req *request.Request, output *DescribeSpotDatafeedSubscriptionOutput) {
  14556. op := &request.Operation{
  14557. Name: opDescribeSpotDatafeedSubscription,
  14558. HTTPMethod: "POST",
  14559. HTTPPath: "/",
  14560. }
  14561. if input == nil {
  14562. input = &DescribeSpotDatafeedSubscriptionInput{}
  14563. }
  14564. output = &DescribeSpotDatafeedSubscriptionOutput{}
  14565. req = c.newRequest(op, input, output)
  14566. return
  14567. }
  14568. // DescribeSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud.
  14569. //
  14570. // Describes the data feed for Spot Instances. For more information, see Spot
  14571. // Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html)
  14572. // in the Amazon EC2 User Guide for Linux Instances.
  14573. //
  14574. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14575. // with awserr.Error's Code and Message methods to get detailed information about
  14576. // the error.
  14577. //
  14578. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14579. // API operation DescribeSpotDatafeedSubscription for usage and error information.
  14580. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscription
  14581. func (c *EC2) DescribeSpotDatafeedSubscription(input *DescribeSpotDatafeedSubscriptionInput) (*DescribeSpotDatafeedSubscriptionOutput, error) {
  14582. req, out := c.DescribeSpotDatafeedSubscriptionRequest(input)
  14583. return out, req.Send()
  14584. }
  14585. // DescribeSpotDatafeedSubscriptionWithContext is the same as DescribeSpotDatafeedSubscription with the addition of
  14586. // the ability to pass a context and additional request options.
  14587. //
  14588. // See DescribeSpotDatafeedSubscription for details on how to use this API operation.
  14589. //
  14590. // The context must be non-nil and will be used for request cancellation. If
  14591. // the context is nil a panic will occur. In the future the SDK may create
  14592. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14593. // for more information on using Contexts.
  14594. func (c *EC2) DescribeSpotDatafeedSubscriptionWithContext(ctx aws.Context, input *DescribeSpotDatafeedSubscriptionInput, opts ...request.Option) (*DescribeSpotDatafeedSubscriptionOutput, error) {
  14595. req, out := c.DescribeSpotDatafeedSubscriptionRequest(input)
  14596. req.SetContext(ctx)
  14597. req.ApplyOptions(opts...)
  14598. return out, req.Send()
  14599. }
  14600. const opDescribeSpotFleetInstances = "DescribeSpotFleetInstances"
  14601. // DescribeSpotFleetInstancesRequest generates a "aws/request.Request" representing the
  14602. // client's request for the DescribeSpotFleetInstances operation. The "output" return
  14603. // value will be populated with the request's response once the request completes
  14604. // successfully.
  14605. //
  14606. // Use "Send" method on the returned Request to send the API call to the service.
  14607. // the "output" return value is not valid until after Send returns without error.
  14608. //
  14609. // See DescribeSpotFleetInstances for more information on using the DescribeSpotFleetInstances
  14610. // API call, and error handling.
  14611. //
  14612. // This method is useful when you want to inject custom logic or configuration
  14613. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14614. //
  14615. //
  14616. // // Example sending a request using the DescribeSpotFleetInstancesRequest method.
  14617. // req, resp := client.DescribeSpotFleetInstancesRequest(params)
  14618. //
  14619. // err := req.Send()
  14620. // if err == nil { // resp is now filled
  14621. // fmt.Println(resp)
  14622. // }
  14623. //
  14624. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstances
  14625. func (c *EC2) DescribeSpotFleetInstancesRequest(input *DescribeSpotFleetInstancesInput) (req *request.Request, output *DescribeSpotFleetInstancesOutput) {
  14626. op := &request.Operation{
  14627. Name: opDescribeSpotFleetInstances,
  14628. HTTPMethod: "POST",
  14629. HTTPPath: "/",
  14630. }
  14631. if input == nil {
  14632. input = &DescribeSpotFleetInstancesInput{}
  14633. }
  14634. output = &DescribeSpotFleetInstancesOutput{}
  14635. req = c.newRequest(op, input, output)
  14636. return
  14637. }
  14638. // DescribeSpotFleetInstances API operation for Amazon Elastic Compute Cloud.
  14639. //
  14640. // Describes the running instances for the specified Spot Fleet.
  14641. //
  14642. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14643. // with awserr.Error's Code and Message methods to get detailed information about
  14644. // the error.
  14645. //
  14646. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14647. // API operation DescribeSpotFleetInstances for usage and error information.
  14648. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstances
  14649. func (c *EC2) DescribeSpotFleetInstances(input *DescribeSpotFleetInstancesInput) (*DescribeSpotFleetInstancesOutput, error) {
  14650. req, out := c.DescribeSpotFleetInstancesRequest(input)
  14651. return out, req.Send()
  14652. }
  14653. // DescribeSpotFleetInstancesWithContext is the same as DescribeSpotFleetInstances with the addition of
  14654. // the ability to pass a context and additional request options.
  14655. //
  14656. // See DescribeSpotFleetInstances for details on how to use this API operation.
  14657. //
  14658. // The context must be non-nil and will be used for request cancellation. If
  14659. // the context is nil a panic will occur. In the future the SDK may create
  14660. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14661. // for more information on using Contexts.
  14662. func (c *EC2) DescribeSpotFleetInstancesWithContext(ctx aws.Context, input *DescribeSpotFleetInstancesInput, opts ...request.Option) (*DescribeSpotFleetInstancesOutput, error) {
  14663. req, out := c.DescribeSpotFleetInstancesRequest(input)
  14664. req.SetContext(ctx)
  14665. req.ApplyOptions(opts...)
  14666. return out, req.Send()
  14667. }
  14668. const opDescribeSpotFleetRequestHistory = "DescribeSpotFleetRequestHistory"
  14669. // DescribeSpotFleetRequestHistoryRequest generates a "aws/request.Request" representing the
  14670. // client's request for the DescribeSpotFleetRequestHistory operation. The "output" return
  14671. // value will be populated with the request's response once the request completes
  14672. // successfully.
  14673. //
  14674. // Use "Send" method on the returned Request to send the API call to the service.
  14675. // the "output" return value is not valid until after Send returns without error.
  14676. //
  14677. // See DescribeSpotFleetRequestHistory for more information on using the DescribeSpotFleetRequestHistory
  14678. // API call, and error handling.
  14679. //
  14680. // This method is useful when you want to inject custom logic or configuration
  14681. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14682. //
  14683. //
  14684. // // Example sending a request using the DescribeSpotFleetRequestHistoryRequest method.
  14685. // req, resp := client.DescribeSpotFleetRequestHistoryRequest(params)
  14686. //
  14687. // err := req.Send()
  14688. // if err == nil { // resp is now filled
  14689. // fmt.Println(resp)
  14690. // }
  14691. //
  14692. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistory
  14693. func (c *EC2) DescribeSpotFleetRequestHistoryRequest(input *DescribeSpotFleetRequestHistoryInput) (req *request.Request, output *DescribeSpotFleetRequestHistoryOutput) {
  14694. op := &request.Operation{
  14695. Name: opDescribeSpotFleetRequestHistory,
  14696. HTTPMethod: "POST",
  14697. HTTPPath: "/",
  14698. }
  14699. if input == nil {
  14700. input = &DescribeSpotFleetRequestHistoryInput{}
  14701. }
  14702. output = &DescribeSpotFleetRequestHistoryOutput{}
  14703. req = c.newRequest(op, input, output)
  14704. return
  14705. }
  14706. // DescribeSpotFleetRequestHistory API operation for Amazon Elastic Compute Cloud.
  14707. //
  14708. // Describes the events for the specified Spot Fleet request during the specified
  14709. // time.
  14710. //
  14711. // Spot Fleet events are delayed by up to 30 seconds before they can be described.
  14712. // This ensures that you can query by the last evaluated time and not miss a
  14713. // recorded event. Spot Fleet events are available for 48 hours.
  14714. //
  14715. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14716. // with awserr.Error's Code and Message methods to get detailed information about
  14717. // the error.
  14718. //
  14719. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14720. // API operation DescribeSpotFleetRequestHistory for usage and error information.
  14721. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistory
  14722. func (c *EC2) DescribeSpotFleetRequestHistory(input *DescribeSpotFleetRequestHistoryInput) (*DescribeSpotFleetRequestHistoryOutput, error) {
  14723. req, out := c.DescribeSpotFleetRequestHistoryRequest(input)
  14724. return out, req.Send()
  14725. }
  14726. // DescribeSpotFleetRequestHistoryWithContext is the same as DescribeSpotFleetRequestHistory with the addition of
  14727. // the ability to pass a context and additional request options.
  14728. //
  14729. // See DescribeSpotFleetRequestHistory for details on how to use this API operation.
  14730. //
  14731. // The context must be non-nil and will be used for request cancellation. If
  14732. // the context is nil a panic will occur. In the future the SDK may create
  14733. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14734. // for more information on using Contexts.
  14735. func (c *EC2) DescribeSpotFleetRequestHistoryWithContext(ctx aws.Context, input *DescribeSpotFleetRequestHistoryInput, opts ...request.Option) (*DescribeSpotFleetRequestHistoryOutput, error) {
  14736. req, out := c.DescribeSpotFleetRequestHistoryRequest(input)
  14737. req.SetContext(ctx)
  14738. req.ApplyOptions(opts...)
  14739. return out, req.Send()
  14740. }
  14741. const opDescribeSpotFleetRequests = "DescribeSpotFleetRequests"
  14742. // DescribeSpotFleetRequestsRequest generates a "aws/request.Request" representing the
  14743. // client's request for the DescribeSpotFleetRequests operation. The "output" return
  14744. // value will be populated with the request's response once the request completes
  14745. // successfully.
  14746. //
  14747. // Use "Send" method on the returned Request to send the API call to the service.
  14748. // the "output" return value is not valid until after Send returns without error.
  14749. //
  14750. // See DescribeSpotFleetRequests for more information on using the DescribeSpotFleetRequests
  14751. // API call, and error handling.
  14752. //
  14753. // This method is useful when you want to inject custom logic or configuration
  14754. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14755. //
  14756. //
  14757. // // Example sending a request using the DescribeSpotFleetRequestsRequest method.
  14758. // req, resp := client.DescribeSpotFleetRequestsRequest(params)
  14759. //
  14760. // err := req.Send()
  14761. // if err == nil { // resp is now filled
  14762. // fmt.Println(resp)
  14763. // }
  14764. //
  14765. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequests
  14766. func (c *EC2) DescribeSpotFleetRequestsRequest(input *DescribeSpotFleetRequestsInput) (req *request.Request, output *DescribeSpotFleetRequestsOutput) {
  14767. op := &request.Operation{
  14768. Name: opDescribeSpotFleetRequests,
  14769. HTTPMethod: "POST",
  14770. HTTPPath: "/",
  14771. Paginator: &request.Paginator{
  14772. InputTokens: []string{"NextToken"},
  14773. OutputTokens: []string{"NextToken"},
  14774. LimitToken: "MaxResults",
  14775. TruncationToken: "",
  14776. },
  14777. }
  14778. if input == nil {
  14779. input = &DescribeSpotFleetRequestsInput{}
  14780. }
  14781. output = &DescribeSpotFleetRequestsOutput{}
  14782. req = c.newRequest(op, input, output)
  14783. return
  14784. }
  14785. // DescribeSpotFleetRequests API operation for Amazon Elastic Compute Cloud.
  14786. //
  14787. // Describes your Spot Fleet requests.
  14788. //
  14789. // Spot Fleet requests are deleted 48 hours after they are canceled and their
  14790. // instances are terminated.
  14791. //
  14792. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14793. // with awserr.Error's Code and Message methods to get detailed information about
  14794. // the error.
  14795. //
  14796. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14797. // API operation DescribeSpotFleetRequests for usage and error information.
  14798. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequests
  14799. func (c *EC2) DescribeSpotFleetRequests(input *DescribeSpotFleetRequestsInput) (*DescribeSpotFleetRequestsOutput, error) {
  14800. req, out := c.DescribeSpotFleetRequestsRequest(input)
  14801. return out, req.Send()
  14802. }
  14803. // DescribeSpotFleetRequestsWithContext is the same as DescribeSpotFleetRequests with the addition of
  14804. // the ability to pass a context and additional request options.
  14805. //
  14806. // See DescribeSpotFleetRequests for details on how to use this API operation.
  14807. //
  14808. // The context must be non-nil and will be used for request cancellation. If
  14809. // the context is nil a panic will occur. In the future the SDK may create
  14810. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14811. // for more information on using Contexts.
  14812. func (c *EC2) DescribeSpotFleetRequestsWithContext(ctx aws.Context, input *DescribeSpotFleetRequestsInput, opts ...request.Option) (*DescribeSpotFleetRequestsOutput, error) {
  14813. req, out := c.DescribeSpotFleetRequestsRequest(input)
  14814. req.SetContext(ctx)
  14815. req.ApplyOptions(opts...)
  14816. return out, req.Send()
  14817. }
  14818. // DescribeSpotFleetRequestsPages iterates over the pages of a DescribeSpotFleetRequests operation,
  14819. // calling the "fn" function with the response data for each page. To stop
  14820. // iterating, return false from the fn function.
  14821. //
  14822. // See DescribeSpotFleetRequests method for more information on how to use this operation.
  14823. //
  14824. // Note: This operation can generate multiple requests to a service.
  14825. //
  14826. // // Example iterating over at most 3 pages of a DescribeSpotFleetRequests operation.
  14827. // pageNum := 0
  14828. // err := client.DescribeSpotFleetRequestsPages(params,
  14829. // func(page *DescribeSpotFleetRequestsOutput, lastPage bool) bool {
  14830. // pageNum++
  14831. // fmt.Println(page)
  14832. // return pageNum <= 3
  14833. // })
  14834. //
  14835. func (c *EC2) DescribeSpotFleetRequestsPages(input *DescribeSpotFleetRequestsInput, fn func(*DescribeSpotFleetRequestsOutput, bool) bool) error {
  14836. return c.DescribeSpotFleetRequestsPagesWithContext(aws.BackgroundContext(), input, fn)
  14837. }
  14838. // DescribeSpotFleetRequestsPagesWithContext same as DescribeSpotFleetRequestsPages except
  14839. // it takes a Context and allows setting request options on the pages.
  14840. //
  14841. // The context must be non-nil and will be used for request cancellation. If
  14842. // the context is nil a panic will occur. In the future the SDK may create
  14843. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14844. // for more information on using Contexts.
  14845. func (c *EC2) DescribeSpotFleetRequestsPagesWithContext(ctx aws.Context, input *DescribeSpotFleetRequestsInput, fn func(*DescribeSpotFleetRequestsOutput, bool) bool, opts ...request.Option) error {
  14846. p := request.Pagination{
  14847. NewRequest: func() (*request.Request, error) {
  14848. var inCpy *DescribeSpotFleetRequestsInput
  14849. if input != nil {
  14850. tmp := *input
  14851. inCpy = &tmp
  14852. }
  14853. req, _ := c.DescribeSpotFleetRequestsRequest(inCpy)
  14854. req.SetContext(ctx)
  14855. req.ApplyOptions(opts...)
  14856. return req, nil
  14857. },
  14858. }
  14859. cont := true
  14860. for p.Next() && cont {
  14861. cont = fn(p.Page().(*DescribeSpotFleetRequestsOutput), !p.HasNextPage())
  14862. }
  14863. return p.Err()
  14864. }
  14865. const opDescribeSpotInstanceRequests = "DescribeSpotInstanceRequests"
  14866. // DescribeSpotInstanceRequestsRequest generates a "aws/request.Request" representing the
  14867. // client's request for the DescribeSpotInstanceRequests operation. The "output" return
  14868. // value will be populated with the request's response once the request completes
  14869. // successfully.
  14870. //
  14871. // Use "Send" method on the returned Request to send the API call to the service.
  14872. // the "output" return value is not valid until after Send returns without error.
  14873. //
  14874. // See DescribeSpotInstanceRequests for more information on using the DescribeSpotInstanceRequests
  14875. // API call, and error handling.
  14876. //
  14877. // This method is useful when you want to inject custom logic or configuration
  14878. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14879. //
  14880. //
  14881. // // Example sending a request using the DescribeSpotInstanceRequestsRequest method.
  14882. // req, resp := client.DescribeSpotInstanceRequestsRequest(params)
  14883. //
  14884. // err := req.Send()
  14885. // if err == nil { // resp is now filled
  14886. // fmt.Println(resp)
  14887. // }
  14888. //
  14889. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequests
  14890. func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceRequestsInput) (req *request.Request, output *DescribeSpotInstanceRequestsOutput) {
  14891. op := &request.Operation{
  14892. Name: opDescribeSpotInstanceRequests,
  14893. HTTPMethod: "POST",
  14894. HTTPPath: "/",
  14895. }
  14896. if input == nil {
  14897. input = &DescribeSpotInstanceRequestsInput{}
  14898. }
  14899. output = &DescribeSpotInstanceRequestsOutput{}
  14900. req = c.newRequest(op, input, output)
  14901. return
  14902. }
  14903. // DescribeSpotInstanceRequests API operation for Amazon Elastic Compute Cloud.
  14904. //
  14905. // Describes the specified Spot Instance requests.
  14906. //
  14907. // You can use DescribeSpotInstanceRequests to find a running Spot Instance
  14908. // by examining the response. If the status of the Spot Instance is fulfilled,
  14909. // the instance ID appears in the response and contains the identifier of the
  14910. // instance. Alternatively, you can use DescribeInstances with a filter to look
  14911. // for instances where the instance lifecycle is spot.
  14912. //
  14913. // Spot Instance requests are deleted four hours after they are canceled and
  14914. // their instances are terminated.
  14915. //
  14916. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14917. // with awserr.Error's Code and Message methods to get detailed information about
  14918. // the error.
  14919. //
  14920. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14921. // API operation DescribeSpotInstanceRequests for usage and error information.
  14922. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequests
  14923. func (c *EC2) DescribeSpotInstanceRequests(input *DescribeSpotInstanceRequestsInput) (*DescribeSpotInstanceRequestsOutput, error) {
  14924. req, out := c.DescribeSpotInstanceRequestsRequest(input)
  14925. return out, req.Send()
  14926. }
  14927. // DescribeSpotInstanceRequestsWithContext is the same as DescribeSpotInstanceRequests with the addition of
  14928. // the ability to pass a context and additional request options.
  14929. //
  14930. // See DescribeSpotInstanceRequests for details on how to use this API operation.
  14931. //
  14932. // The context must be non-nil and will be used for request cancellation. If
  14933. // the context is nil a panic will occur. In the future the SDK may create
  14934. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14935. // for more information on using Contexts.
  14936. func (c *EC2) DescribeSpotInstanceRequestsWithContext(ctx aws.Context, input *DescribeSpotInstanceRequestsInput, opts ...request.Option) (*DescribeSpotInstanceRequestsOutput, error) {
  14937. req, out := c.DescribeSpotInstanceRequestsRequest(input)
  14938. req.SetContext(ctx)
  14939. req.ApplyOptions(opts...)
  14940. return out, req.Send()
  14941. }
  14942. const opDescribeSpotPriceHistory = "DescribeSpotPriceHistory"
  14943. // DescribeSpotPriceHistoryRequest generates a "aws/request.Request" representing the
  14944. // client's request for the DescribeSpotPriceHistory operation. The "output" return
  14945. // value will be populated with the request's response once the request completes
  14946. // successfully.
  14947. //
  14948. // Use "Send" method on the returned Request to send the API call to the service.
  14949. // the "output" return value is not valid until after Send returns without error.
  14950. //
  14951. // See DescribeSpotPriceHistory for more information on using the DescribeSpotPriceHistory
  14952. // API call, and error handling.
  14953. //
  14954. // This method is useful when you want to inject custom logic or configuration
  14955. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14956. //
  14957. //
  14958. // // Example sending a request using the DescribeSpotPriceHistoryRequest method.
  14959. // req, resp := client.DescribeSpotPriceHistoryRequest(params)
  14960. //
  14961. // err := req.Send()
  14962. // if err == nil { // resp is now filled
  14963. // fmt.Println(resp)
  14964. // }
  14965. //
  14966. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistory
  14967. func (c *EC2) DescribeSpotPriceHistoryRequest(input *DescribeSpotPriceHistoryInput) (req *request.Request, output *DescribeSpotPriceHistoryOutput) {
  14968. op := &request.Operation{
  14969. Name: opDescribeSpotPriceHistory,
  14970. HTTPMethod: "POST",
  14971. HTTPPath: "/",
  14972. Paginator: &request.Paginator{
  14973. InputTokens: []string{"NextToken"},
  14974. OutputTokens: []string{"NextToken"},
  14975. LimitToken: "MaxResults",
  14976. TruncationToken: "",
  14977. },
  14978. }
  14979. if input == nil {
  14980. input = &DescribeSpotPriceHistoryInput{}
  14981. }
  14982. output = &DescribeSpotPriceHistoryOutput{}
  14983. req = c.newRequest(op, input, output)
  14984. return
  14985. }
  14986. // DescribeSpotPriceHistory API operation for Amazon Elastic Compute Cloud.
  14987. //
  14988. // Describes the Spot price history. For more information, see Spot Instance
  14989. // Pricing History (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html)
  14990. // in the Amazon EC2 User Guide for Linux Instances.
  14991. //
  14992. // When you specify a start and end time, this operation returns the prices
  14993. // of the instance types within the time range that you specified and the time
  14994. // when the price changed. The price is valid within the time period that you
  14995. // specified; the response merely indicates the last time that the price changed.
  14996. //
  14997. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14998. // with awserr.Error's Code and Message methods to get detailed information about
  14999. // the error.
  15000. //
  15001. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15002. // API operation DescribeSpotPriceHistory for usage and error information.
  15003. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistory
  15004. func (c *EC2) DescribeSpotPriceHistory(input *DescribeSpotPriceHistoryInput) (*DescribeSpotPriceHistoryOutput, error) {
  15005. req, out := c.DescribeSpotPriceHistoryRequest(input)
  15006. return out, req.Send()
  15007. }
  15008. // DescribeSpotPriceHistoryWithContext is the same as DescribeSpotPriceHistory with the addition of
  15009. // the ability to pass a context and additional request options.
  15010. //
  15011. // See DescribeSpotPriceHistory for details on how to use this API operation.
  15012. //
  15013. // The context must be non-nil and will be used for request cancellation. If
  15014. // the context is nil a panic will occur. In the future the SDK may create
  15015. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15016. // for more information on using Contexts.
  15017. func (c *EC2) DescribeSpotPriceHistoryWithContext(ctx aws.Context, input *DescribeSpotPriceHistoryInput, opts ...request.Option) (*DescribeSpotPriceHistoryOutput, error) {
  15018. req, out := c.DescribeSpotPriceHistoryRequest(input)
  15019. req.SetContext(ctx)
  15020. req.ApplyOptions(opts...)
  15021. return out, req.Send()
  15022. }
  15023. // DescribeSpotPriceHistoryPages iterates over the pages of a DescribeSpotPriceHistory operation,
  15024. // calling the "fn" function with the response data for each page. To stop
  15025. // iterating, return false from the fn function.
  15026. //
  15027. // See DescribeSpotPriceHistory method for more information on how to use this operation.
  15028. //
  15029. // Note: This operation can generate multiple requests to a service.
  15030. //
  15031. // // Example iterating over at most 3 pages of a DescribeSpotPriceHistory operation.
  15032. // pageNum := 0
  15033. // err := client.DescribeSpotPriceHistoryPages(params,
  15034. // func(page *DescribeSpotPriceHistoryOutput, lastPage bool) bool {
  15035. // pageNum++
  15036. // fmt.Println(page)
  15037. // return pageNum <= 3
  15038. // })
  15039. //
  15040. func (c *EC2) DescribeSpotPriceHistoryPages(input *DescribeSpotPriceHistoryInput, fn func(*DescribeSpotPriceHistoryOutput, bool) bool) error {
  15041. return c.DescribeSpotPriceHistoryPagesWithContext(aws.BackgroundContext(), input, fn)
  15042. }
  15043. // DescribeSpotPriceHistoryPagesWithContext same as DescribeSpotPriceHistoryPages except
  15044. // it takes a Context and allows setting request options on the pages.
  15045. //
  15046. // The context must be non-nil and will be used for request cancellation. If
  15047. // the context is nil a panic will occur. In the future the SDK may create
  15048. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15049. // for more information on using Contexts.
  15050. func (c *EC2) DescribeSpotPriceHistoryPagesWithContext(ctx aws.Context, input *DescribeSpotPriceHistoryInput, fn func(*DescribeSpotPriceHistoryOutput, bool) bool, opts ...request.Option) error {
  15051. p := request.Pagination{
  15052. NewRequest: func() (*request.Request, error) {
  15053. var inCpy *DescribeSpotPriceHistoryInput
  15054. if input != nil {
  15055. tmp := *input
  15056. inCpy = &tmp
  15057. }
  15058. req, _ := c.DescribeSpotPriceHistoryRequest(inCpy)
  15059. req.SetContext(ctx)
  15060. req.ApplyOptions(opts...)
  15061. return req, nil
  15062. },
  15063. }
  15064. cont := true
  15065. for p.Next() && cont {
  15066. cont = fn(p.Page().(*DescribeSpotPriceHistoryOutput), !p.HasNextPage())
  15067. }
  15068. return p.Err()
  15069. }
  15070. const opDescribeStaleSecurityGroups = "DescribeStaleSecurityGroups"
  15071. // DescribeStaleSecurityGroupsRequest generates a "aws/request.Request" representing the
  15072. // client's request for the DescribeStaleSecurityGroups operation. The "output" return
  15073. // value will be populated with the request's response once the request completes
  15074. // successfully.
  15075. //
  15076. // Use "Send" method on the returned Request to send the API call to the service.
  15077. // the "output" return value is not valid until after Send returns without error.
  15078. //
  15079. // See DescribeStaleSecurityGroups for more information on using the DescribeStaleSecurityGroups
  15080. // API call, and error handling.
  15081. //
  15082. // This method is useful when you want to inject custom logic or configuration
  15083. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15084. //
  15085. //
  15086. // // Example sending a request using the DescribeStaleSecurityGroupsRequest method.
  15087. // req, resp := client.DescribeStaleSecurityGroupsRequest(params)
  15088. //
  15089. // err := req.Send()
  15090. // if err == nil { // resp is now filled
  15091. // fmt.Println(resp)
  15092. // }
  15093. //
  15094. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroups
  15095. func (c *EC2) DescribeStaleSecurityGroupsRequest(input *DescribeStaleSecurityGroupsInput) (req *request.Request, output *DescribeStaleSecurityGroupsOutput) {
  15096. op := &request.Operation{
  15097. Name: opDescribeStaleSecurityGroups,
  15098. HTTPMethod: "POST",
  15099. HTTPPath: "/",
  15100. }
  15101. if input == nil {
  15102. input = &DescribeStaleSecurityGroupsInput{}
  15103. }
  15104. output = &DescribeStaleSecurityGroupsOutput{}
  15105. req = c.newRequest(op, input, output)
  15106. return
  15107. }
  15108. // DescribeStaleSecurityGroups API operation for Amazon Elastic Compute Cloud.
  15109. //
  15110. // [EC2-VPC only] Describes the stale security group rules for security groups
  15111. // in a specified VPC. Rules are stale when they reference a deleted security
  15112. // group in a peer VPC, or a security group in a peer VPC for which the VPC
  15113. // peering connection has been deleted.
  15114. //
  15115. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15116. // with awserr.Error's Code and Message methods to get detailed information about
  15117. // the error.
  15118. //
  15119. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15120. // API operation DescribeStaleSecurityGroups for usage and error information.
  15121. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroups
  15122. func (c *EC2) DescribeStaleSecurityGroups(input *DescribeStaleSecurityGroupsInput) (*DescribeStaleSecurityGroupsOutput, error) {
  15123. req, out := c.DescribeStaleSecurityGroupsRequest(input)
  15124. return out, req.Send()
  15125. }
  15126. // DescribeStaleSecurityGroupsWithContext is the same as DescribeStaleSecurityGroups with the addition of
  15127. // the ability to pass a context and additional request options.
  15128. //
  15129. // See DescribeStaleSecurityGroups for details on how to use this API operation.
  15130. //
  15131. // The context must be non-nil and will be used for request cancellation. If
  15132. // the context is nil a panic will occur. In the future the SDK may create
  15133. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15134. // for more information on using Contexts.
  15135. func (c *EC2) DescribeStaleSecurityGroupsWithContext(ctx aws.Context, input *DescribeStaleSecurityGroupsInput, opts ...request.Option) (*DescribeStaleSecurityGroupsOutput, error) {
  15136. req, out := c.DescribeStaleSecurityGroupsRequest(input)
  15137. req.SetContext(ctx)
  15138. req.ApplyOptions(opts...)
  15139. return out, req.Send()
  15140. }
  15141. const opDescribeSubnets = "DescribeSubnets"
  15142. // DescribeSubnetsRequest generates a "aws/request.Request" representing the
  15143. // client's request for the DescribeSubnets operation. The "output" return
  15144. // value will be populated with the request's response once the request completes
  15145. // successfully.
  15146. //
  15147. // Use "Send" method on the returned Request to send the API call to the service.
  15148. // the "output" return value is not valid until after Send returns without error.
  15149. //
  15150. // See DescribeSubnets for more information on using the DescribeSubnets
  15151. // API call, and error handling.
  15152. //
  15153. // This method is useful when you want to inject custom logic or configuration
  15154. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15155. //
  15156. //
  15157. // // Example sending a request using the DescribeSubnetsRequest method.
  15158. // req, resp := client.DescribeSubnetsRequest(params)
  15159. //
  15160. // err := req.Send()
  15161. // if err == nil { // resp is now filled
  15162. // fmt.Println(resp)
  15163. // }
  15164. //
  15165. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets
  15166. func (c *EC2) DescribeSubnetsRequest(input *DescribeSubnetsInput) (req *request.Request, output *DescribeSubnetsOutput) {
  15167. op := &request.Operation{
  15168. Name: opDescribeSubnets,
  15169. HTTPMethod: "POST",
  15170. HTTPPath: "/",
  15171. }
  15172. if input == nil {
  15173. input = &DescribeSubnetsInput{}
  15174. }
  15175. output = &DescribeSubnetsOutput{}
  15176. req = c.newRequest(op, input, output)
  15177. return
  15178. }
  15179. // DescribeSubnets API operation for Amazon Elastic Compute Cloud.
  15180. //
  15181. // Describes one or more of your subnets.
  15182. //
  15183. // For more information, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  15184. // in the Amazon Virtual Private Cloud User Guide.
  15185. //
  15186. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15187. // with awserr.Error's Code and Message methods to get detailed information about
  15188. // the error.
  15189. //
  15190. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15191. // API operation DescribeSubnets for usage and error information.
  15192. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets
  15193. func (c *EC2) DescribeSubnets(input *DescribeSubnetsInput) (*DescribeSubnetsOutput, error) {
  15194. req, out := c.DescribeSubnetsRequest(input)
  15195. return out, req.Send()
  15196. }
  15197. // DescribeSubnetsWithContext is the same as DescribeSubnets with the addition of
  15198. // the ability to pass a context and additional request options.
  15199. //
  15200. // See DescribeSubnets for details on how to use this API operation.
  15201. //
  15202. // The context must be non-nil and will be used for request cancellation. If
  15203. // the context is nil a panic will occur. In the future the SDK may create
  15204. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15205. // for more information on using Contexts.
  15206. func (c *EC2) DescribeSubnetsWithContext(ctx aws.Context, input *DescribeSubnetsInput, opts ...request.Option) (*DescribeSubnetsOutput, error) {
  15207. req, out := c.DescribeSubnetsRequest(input)
  15208. req.SetContext(ctx)
  15209. req.ApplyOptions(opts...)
  15210. return out, req.Send()
  15211. }
  15212. const opDescribeTags = "DescribeTags"
  15213. // DescribeTagsRequest generates a "aws/request.Request" representing the
  15214. // client's request for the DescribeTags operation. The "output" return
  15215. // value will be populated with the request's response once the request completes
  15216. // successfully.
  15217. //
  15218. // Use "Send" method on the returned Request to send the API call to the service.
  15219. // the "output" return value is not valid until after Send returns without error.
  15220. //
  15221. // See DescribeTags for more information on using the DescribeTags
  15222. // API call, and error handling.
  15223. //
  15224. // This method is useful when you want to inject custom logic or configuration
  15225. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15226. //
  15227. //
  15228. // // Example sending a request using the DescribeTagsRequest method.
  15229. // req, resp := client.DescribeTagsRequest(params)
  15230. //
  15231. // err := req.Send()
  15232. // if err == nil { // resp is now filled
  15233. // fmt.Println(resp)
  15234. // }
  15235. //
  15236. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags
  15237. func (c *EC2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  15238. op := &request.Operation{
  15239. Name: opDescribeTags,
  15240. HTTPMethod: "POST",
  15241. HTTPPath: "/",
  15242. Paginator: &request.Paginator{
  15243. InputTokens: []string{"NextToken"},
  15244. OutputTokens: []string{"NextToken"},
  15245. LimitToken: "MaxResults",
  15246. TruncationToken: "",
  15247. },
  15248. }
  15249. if input == nil {
  15250. input = &DescribeTagsInput{}
  15251. }
  15252. output = &DescribeTagsOutput{}
  15253. req = c.newRequest(op, input, output)
  15254. return
  15255. }
  15256. // DescribeTags API operation for Amazon Elastic Compute Cloud.
  15257. //
  15258. // Describes one or more of the tags for your EC2 resources.
  15259. //
  15260. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  15261. // in the Amazon Elastic Compute Cloud User Guide.
  15262. //
  15263. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15264. // with awserr.Error's Code and Message methods to get detailed information about
  15265. // the error.
  15266. //
  15267. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15268. // API operation DescribeTags for usage and error information.
  15269. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags
  15270. func (c *EC2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  15271. req, out := c.DescribeTagsRequest(input)
  15272. return out, req.Send()
  15273. }
  15274. // DescribeTagsWithContext is the same as DescribeTags with the addition of
  15275. // the ability to pass a context and additional request options.
  15276. //
  15277. // See DescribeTags for details on how to use this API operation.
  15278. //
  15279. // The context must be non-nil and will be used for request cancellation. If
  15280. // the context is nil a panic will occur. In the future the SDK may create
  15281. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15282. // for more information on using Contexts.
  15283. func (c *EC2) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error) {
  15284. req, out := c.DescribeTagsRequest(input)
  15285. req.SetContext(ctx)
  15286. req.ApplyOptions(opts...)
  15287. return out, req.Send()
  15288. }
  15289. // DescribeTagsPages iterates over the pages of a DescribeTags operation,
  15290. // calling the "fn" function with the response data for each page. To stop
  15291. // iterating, return false from the fn function.
  15292. //
  15293. // See DescribeTags method for more information on how to use this operation.
  15294. //
  15295. // Note: This operation can generate multiple requests to a service.
  15296. //
  15297. // // Example iterating over at most 3 pages of a DescribeTags operation.
  15298. // pageNum := 0
  15299. // err := client.DescribeTagsPages(params,
  15300. // func(page *DescribeTagsOutput, lastPage bool) bool {
  15301. // pageNum++
  15302. // fmt.Println(page)
  15303. // return pageNum <= 3
  15304. // })
  15305. //
  15306. func (c *EC2) DescribeTagsPages(input *DescribeTagsInput, fn func(*DescribeTagsOutput, bool) bool) error {
  15307. return c.DescribeTagsPagesWithContext(aws.BackgroundContext(), input, fn)
  15308. }
  15309. // DescribeTagsPagesWithContext same as DescribeTagsPages except
  15310. // it takes a Context and allows setting request options on the pages.
  15311. //
  15312. // The context must be non-nil and will be used for request cancellation. If
  15313. // the context is nil a panic will occur. In the future the SDK may create
  15314. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15315. // for more information on using Contexts.
  15316. func (c *EC2) DescribeTagsPagesWithContext(ctx aws.Context, input *DescribeTagsInput, fn func(*DescribeTagsOutput, bool) bool, opts ...request.Option) error {
  15317. p := request.Pagination{
  15318. NewRequest: func() (*request.Request, error) {
  15319. var inCpy *DescribeTagsInput
  15320. if input != nil {
  15321. tmp := *input
  15322. inCpy = &tmp
  15323. }
  15324. req, _ := c.DescribeTagsRequest(inCpy)
  15325. req.SetContext(ctx)
  15326. req.ApplyOptions(opts...)
  15327. return req, nil
  15328. },
  15329. }
  15330. cont := true
  15331. for p.Next() && cont {
  15332. cont = fn(p.Page().(*DescribeTagsOutput), !p.HasNextPage())
  15333. }
  15334. return p.Err()
  15335. }
  15336. const opDescribeTransitGatewayAttachments = "DescribeTransitGatewayAttachments"
  15337. // DescribeTransitGatewayAttachmentsRequest generates a "aws/request.Request" representing the
  15338. // client's request for the DescribeTransitGatewayAttachments operation. The "output" return
  15339. // value will be populated with the request's response once the request completes
  15340. // successfully.
  15341. //
  15342. // Use "Send" method on the returned Request to send the API call to the service.
  15343. // the "output" return value is not valid until after Send returns without error.
  15344. //
  15345. // See DescribeTransitGatewayAttachments for more information on using the DescribeTransitGatewayAttachments
  15346. // API call, and error handling.
  15347. //
  15348. // This method is useful when you want to inject custom logic or configuration
  15349. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15350. //
  15351. //
  15352. // // Example sending a request using the DescribeTransitGatewayAttachmentsRequest method.
  15353. // req, resp := client.DescribeTransitGatewayAttachmentsRequest(params)
  15354. //
  15355. // err := req.Send()
  15356. // if err == nil { // resp is now filled
  15357. // fmt.Println(resp)
  15358. // }
  15359. //
  15360. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayAttachments
  15361. func (c *EC2) DescribeTransitGatewayAttachmentsRequest(input *DescribeTransitGatewayAttachmentsInput) (req *request.Request, output *DescribeTransitGatewayAttachmentsOutput) {
  15362. op := &request.Operation{
  15363. Name: opDescribeTransitGatewayAttachments,
  15364. HTTPMethod: "POST",
  15365. HTTPPath: "/",
  15366. }
  15367. if input == nil {
  15368. input = &DescribeTransitGatewayAttachmentsInput{}
  15369. }
  15370. output = &DescribeTransitGatewayAttachmentsOutput{}
  15371. req = c.newRequest(op, input, output)
  15372. return
  15373. }
  15374. // DescribeTransitGatewayAttachments API operation for Amazon Elastic Compute Cloud.
  15375. //
  15376. // Describes one or more attachments between resources and transit gateways.
  15377. // By default, all attachments are described. Alternatively, you can filter
  15378. // the results by attachment ID, attachment state, resource ID, or resource
  15379. // owner.
  15380. //
  15381. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15382. // with awserr.Error's Code and Message methods to get detailed information about
  15383. // the error.
  15384. //
  15385. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15386. // API operation DescribeTransitGatewayAttachments for usage and error information.
  15387. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayAttachments
  15388. func (c *EC2) DescribeTransitGatewayAttachments(input *DescribeTransitGatewayAttachmentsInput) (*DescribeTransitGatewayAttachmentsOutput, error) {
  15389. req, out := c.DescribeTransitGatewayAttachmentsRequest(input)
  15390. return out, req.Send()
  15391. }
  15392. // DescribeTransitGatewayAttachmentsWithContext is the same as DescribeTransitGatewayAttachments with the addition of
  15393. // the ability to pass a context and additional request options.
  15394. //
  15395. // See DescribeTransitGatewayAttachments for details on how to use this API operation.
  15396. //
  15397. // The context must be non-nil and will be used for request cancellation. If
  15398. // the context is nil a panic will occur. In the future the SDK may create
  15399. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15400. // for more information on using Contexts.
  15401. func (c *EC2) DescribeTransitGatewayAttachmentsWithContext(ctx aws.Context, input *DescribeTransitGatewayAttachmentsInput, opts ...request.Option) (*DescribeTransitGatewayAttachmentsOutput, error) {
  15402. req, out := c.DescribeTransitGatewayAttachmentsRequest(input)
  15403. req.SetContext(ctx)
  15404. req.ApplyOptions(opts...)
  15405. return out, req.Send()
  15406. }
  15407. const opDescribeTransitGatewayRouteTables = "DescribeTransitGatewayRouteTables"
  15408. // DescribeTransitGatewayRouteTablesRequest generates a "aws/request.Request" representing the
  15409. // client's request for the DescribeTransitGatewayRouteTables operation. The "output" return
  15410. // value will be populated with the request's response once the request completes
  15411. // successfully.
  15412. //
  15413. // Use "Send" method on the returned Request to send the API call to the service.
  15414. // the "output" return value is not valid until after Send returns without error.
  15415. //
  15416. // See DescribeTransitGatewayRouteTables for more information on using the DescribeTransitGatewayRouteTables
  15417. // API call, and error handling.
  15418. //
  15419. // This method is useful when you want to inject custom logic or configuration
  15420. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15421. //
  15422. //
  15423. // // Example sending a request using the DescribeTransitGatewayRouteTablesRequest method.
  15424. // req, resp := client.DescribeTransitGatewayRouteTablesRequest(params)
  15425. //
  15426. // err := req.Send()
  15427. // if err == nil { // resp is now filled
  15428. // fmt.Println(resp)
  15429. // }
  15430. //
  15431. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayRouteTables
  15432. func (c *EC2) DescribeTransitGatewayRouteTablesRequest(input *DescribeTransitGatewayRouteTablesInput) (req *request.Request, output *DescribeTransitGatewayRouteTablesOutput) {
  15433. op := &request.Operation{
  15434. Name: opDescribeTransitGatewayRouteTables,
  15435. HTTPMethod: "POST",
  15436. HTTPPath: "/",
  15437. }
  15438. if input == nil {
  15439. input = &DescribeTransitGatewayRouteTablesInput{}
  15440. }
  15441. output = &DescribeTransitGatewayRouteTablesOutput{}
  15442. req = c.newRequest(op, input, output)
  15443. return
  15444. }
  15445. // DescribeTransitGatewayRouteTables API operation for Amazon Elastic Compute Cloud.
  15446. //
  15447. // Describes one or more transit gateway route tables. By default, all transit
  15448. // gateway route tables are described. Alternatively, you can filter the results.
  15449. //
  15450. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15451. // with awserr.Error's Code and Message methods to get detailed information about
  15452. // the error.
  15453. //
  15454. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15455. // API operation DescribeTransitGatewayRouteTables for usage and error information.
  15456. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayRouteTables
  15457. func (c *EC2) DescribeTransitGatewayRouteTables(input *DescribeTransitGatewayRouteTablesInput) (*DescribeTransitGatewayRouteTablesOutput, error) {
  15458. req, out := c.DescribeTransitGatewayRouteTablesRequest(input)
  15459. return out, req.Send()
  15460. }
  15461. // DescribeTransitGatewayRouteTablesWithContext is the same as DescribeTransitGatewayRouteTables with the addition of
  15462. // the ability to pass a context and additional request options.
  15463. //
  15464. // See DescribeTransitGatewayRouteTables for details on how to use this API operation.
  15465. //
  15466. // The context must be non-nil and will be used for request cancellation. If
  15467. // the context is nil a panic will occur. In the future the SDK may create
  15468. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15469. // for more information on using Contexts.
  15470. func (c *EC2) DescribeTransitGatewayRouteTablesWithContext(ctx aws.Context, input *DescribeTransitGatewayRouteTablesInput, opts ...request.Option) (*DescribeTransitGatewayRouteTablesOutput, error) {
  15471. req, out := c.DescribeTransitGatewayRouteTablesRequest(input)
  15472. req.SetContext(ctx)
  15473. req.ApplyOptions(opts...)
  15474. return out, req.Send()
  15475. }
  15476. const opDescribeTransitGatewayVpcAttachments = "DescribeTransitGatewayVpcAttachments"
  15477. // DescribeTransitGatewayVpcAttachmentsRequest generates a "aws/request.Request" representing the
  15478. // client's request for the DescribeTransitGatewayVpcAttachments operation. The "output" return
  15479. // value will be populated with the request's response once the request completes
  15480. // successfully.
  15481. //
  15482. // Use "Send" method on the returned Request to send the API call to the service.
  15483. // the "output" return value is not valid until after Send returns without error.
  15484. //
  15485. // See DescribeTransitGatewayVpcAttachments for more information on using the DescribeTransitGatewayVpcAttachments
  15486. // API call, and error handling.
  15487. //
  15488. // This method is useful when you want to inject custom logic or configuration
  15489. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15490. //
  15491. //
  15492. // // Example sending a request using the DescribeTransitGatewayVpcAttachmentsRequest method.
  15493. // req, resp := client.DescribeTransitGatewayVpcAttachmentsRequest(params)
  15494. //
  15495. // err := req.Send()
  15496. // if err == nil { // resp is now filled
  15497. // fmt.Println(resp)
  15498. // }
  15499. //
  15500. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayVpcAttachments
  15501. func (c *EC2) DescribeTransitGatewayVpcAttachmentsRequest(input *DescribeTransitGatewayVpcAttachmentsInput) (req *request.Request, output *DescribeTransitGatewayVpcAttachmentsOutput) {
  15502. op := &request.Operation{
  15503. Name: opDescribeTransitGatewayVpcAttachments,
  15504. HTTPMethod: "POST",
  15505. HTTPPath: "/",
  15506. }
  15507. if input == nil {
  15508. input = &DescribeTransitGatewayVpcAttachmentsInput{}
  15509. }
  15510. output = &DescribeTransitGatewayVpcAttachmentsOutput{}
  15511. req = c.newRequest(op, input, output)
  15512. return
  15513. }
  15514. // DescribeTransitGatewayVpcAttachments API operation for Amazon Elastic Compute Cloud.
  15515. //
  15516. // Describes one or more VPC attachments. By default, all VPC attachments are
  15517. // described. Alternatively, you can filter the results.
  15518. //
  15519. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15520. // with awserr.Error's Code and Message methods to get detailed information about
  15521. // the error.
  15522. //
  15523. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15524. // API operation DescribeTransitGatewayVpcAttachments for usage and error information.
  15525. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayVpcAttachments
  15526. func (c *EC2) DescribeTransitGatewayVpcAttachments(input *DescribeTransitGatewayVpcAttachmentsInput) (*DescribeTransitGatewayVpcAttachmentsOutput, error) {
  15527. req, out := c.DescribeTransitGatewayVpcAttachmentsRequest(input)
  15528. return out, req.Send()
  15529. }
  15530. // DescribeTransitGatewayVpcAttachmentsWithContext is the same as DescribeTransitGatewayVpcAttachments with the addition of
  15531. // the ability to pass a context and additional request options.
  15532. //
  15533. // See DescribeTransitGatewayVpcAttachments for details on how to use this API operation.
  15534. //
  15535. // The context must be non-nil and will be used for request cancellation. If
  15536. // the context is nil a panic will occur. In the future the SDK may create
  15537. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15538. // for more information on using Contexts.
  15539. func (c *EC2) DescribeTransitGatewayVpcAttachmentsWithContext(ctx aws.Context, input *DescribeTransitGatewayVpcAttachmentsInput, opts ...request.Option) (*DescribeTransitGatewayVpcAttachmentsOutput, error) {
  15540. req, out := c.DescribeTransitGatewayVpcAttachmentsRequest(input)
  15541. req.SetContext(ctx)
  15542. req.ApplyOptions(opts...)
  15543. return out, req.Send()
  15544. }
  15545. const opDescribeTransitGateways = "DescribeTransitGateways"
  15546. // DescribeTransitGatewaysRequest generates a "aws/request.Request" representing the
  15547. // client's request for the DescribeTransitGateways operation. The "output" return
  15548. // value will be populated with the request's response once the request completes
  15549. // successfully.
  15550. //
  15551. // Use "Send" method on the returned Request to send the API call to the service.
  15552. // the "output" return value is not valid until after Send returns without error.
  15553. //
  15554. // See DescribeTransitGateways for more information on using the DescribeTransitGateways
  15555. // API call, and error handling.
  15556. //
  15557. // This method is useful when you want to inject custom logic or configuration
  15558. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15559. //
  15560. //
  15561. // // Example sending a request using the DescribeTransitGatewaysRequest method.
  15562. // req, resp := client.DescribeTransitGatewaysRequest(params)
  15563. //
  15564. // err := req.Send()
  15565. // if err == nil { // resp is now filled
  15566. // fmt.Println(resp)
  15567. // }
  15568. //
  15569. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGateways
  15570. func (c *EC2) DescribeTransitGatewaysRequest(input *DescribeTransitGatewaysInput) (req *request.Request, output *DescribeTransitGatewaysOutput) {
  15571. op := &request.Operation{
  15572. Name: opDescribeTransitGateways,
  15573. HTTPMethod: "POST",
  15574. HTTPPath: "/",
  15575. }
  15576. if input == nil {
  15577. input = &DescribeTransitGatewaysInput{}
  15578. }
  15579. output = &DescribeTransitGatewaysOutput{}
  15580. req = c.newRequest(op, input, output)
  15581. return
  15582. }
  15583. // DescribeTransitGateways API operation for Amazon Elastic Compute Cloud.
  15584. //
  15585. // Describes one or more transit gateways. By default, all transit gateways
  15586. // are described. Alternatively, you can filter the results.
  15587. //
  15588. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15589. // with awserr.Error's Code and Message methods to get detailed information about
  15590. // the error.
  15591. //
  15592. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15593. // API operation DescribeTransitGateways for usage and error information.
  15594. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGateways
  15595. func (c *EC2) DescribeTransitGateways(input *DescribeTransitGatewaysInput) (*DescribeTransitGatewaysOutput, error) {
  15596. req, out := c.DescribeTransitGatewaysRequest(input)
  15597. return out, req.Send()
  15598. }
  15599. // DescribeTransitGatewaysWithContext is the same as DescribeTransitGateways with the addition of
  15600. // the ability to pass a context and additional request options.
  15601. //
  15602. // See DescribeTransitGateways for details on how to use this API operation.
  15603. //
  15604. // The context must be non-nil and will be used for request cancellation. If
  15605. // the context is nil a panic will occur. In the future the SDK may create
  15606. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15607. // for more information on using Contexts.
  15608. func (c *EC2) DescribeTransitGatewaysWithContext(ctx aws.Context, input *DescribeTransitGatewaysInput, opts ...request.Option) (*DescribeTransitGatewaysOutput, error) {
  15609. req, out := c.DescribeTransitGatewaysRequest(input)
  15610. req.SetContext(ctx)
  15611. req.ApplyOptions(opts...)
  15612. return out, req.Send()
  15613. }
  15614. const opDescribeVolumeAttribute = "DescribeVolumeAttribute"
  15615. // DescribeVolumeAttributeRequest generates a "aws/request.Request" representing the
  15616. // client's request for the DescribeVolumeAttribute operation. The "output" return
  15617. // value will be populated with the request's response once the request completes
  15618. // successfully.
  15619. //
  15620. // Use "Send" method on the returned Request to send the API call to the service.
  15621. // the "output" return value is not valid until after Send returns without error.
  15622. //
  15623. // See DescribeVolumeAttribute for more information on using the DescribeVolumeAttribute
  15624. // API call, and error handling.
  15625. //
  15626. // This method is useful when you want to inject custom logic or configuration
  15627. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15628. //
  15629. //
  15630. // // Example sending a request using the DescribeVolumeAttributeRequest method.
  15631. // req, resp := client.DescribeVolumeAttributeRequest(params)
  15632. //
  15633. // err := req.Send()
  15634. // if err == nil { // resp is now filled
  15635. // fmt.Println(resp)
  15636. // }
  15637. //
  15638. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttribute
  15639. func (c *EC2) DescribeVolumeAttributeRequest(input *DescribeVolumeAttributeInput) (req *request.Request, output *DescribeVolumeAttributeOutput) {
  15640. op := &request.Operation{
  15641. Name: opDescribeVolumeAttribute,
  15642. HTTPMethod: "POST",
  15643. HTTPPath: "/",
  15644. }
  15645. if input == nil {
  15646. input = &DescribeVolumeAttributeInput{}
  15647. }
  15648. output = &DescribeVolumeAttributeOutput{}
  15649. req = c.newRequest(op, input, output)
  15650. return
  15651. }
  15652. // DescribeVolumeAttribute API operation for Amazon Elastic Compute Cloud.
  15653. //
  15654. // Describes the specified attribute of the specified volume. You can specify
  15655. // only one attribute at a time.
  15656. //
  15657. // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html)
  15658. // in the Amazon Elastic Compute Cloud User Guide.
  15659. //
  15660. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15661. // with awserr.Error's Code and Message methods to get detailed information about
  15662. // the error.
  15663. //
  15664. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15665. // API operation DescribeVolumeAttribute for usage and error information.
  15666. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttribute
  15667. func (c *EC2) DescribeVolumeAttribute(input *DescribeVolumeAttributeInput) (*DescribeVolumeAttributeOutput, error) {
  15668. req, out := c.DescribeVolumeAttributeRequest(input)
  15669. return out, req.Send()
  15670. }
  15671. // DescribeVolumeAttributeWithContext is the same as DescribeVolumeAttribute with the addition of
  15672. // the ability to pass a context and additional request options.
  15673. //
  15674. // See DescribeVolumeAttribute for details on how to use this API operation.
  15675. //
  15676. // The context must be non-nil and will be used for request cancellation. If
  15677. // the context is nil a panic will occur. In the future the SDK may create
  15678. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15679. // for more information on using Contexts.
  15680. func (c *EC2) DescribeVolumeAttributeWithContext(ctx aws.Context, input *DescribeVolumeAttributeInput, opts ...request.Option) (*DescribeVolumeAttributeOutput, error) {
  15681. req, out := c.DescribeVolumeAttributeRequest(input)
  15682. req.SetContext(ctx)
  15683. req.ApplyOptions(opts...)
  15684. return out, req.Send()
  15685. }
  15686. const opDescribeVolumeStatus = "DescribeVolumeStatus"
  15687. // DescribeVolumeStatusRequest generates a "aws/request.Request" representing the
  15688. // client's request for the DescribeVolumeStatus operation. The "output" return
  15689. // value will be populated with the request's response once the request completes
  15690. // successfully.
  15691. //
  15692. // Use "Send" method on the returned Request to send the API call to the service.
  15693. // the "output" return value is not valid until after Send returns without error.
  15694. //
  15695. // See DescribeVolumeStatus for more information on using the DescribeVolumeStatus
  15696. // API call, and error handling.
  15697. //
  15698. // This method is useful when you want to inject custom logic or configuration
  15699. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15700. //
  15701. //
  15702. // // Example sending a request using the DescribeVolumeStatusRequest method.
  15703. // req, resp := client.DescribeVolumeStatusRequest(params)
  15704. //
  15705. // err := req.Send()
  15706. // if err == nil { // resp is now filled
  15707. // fmt.Println(resp)
  15708. // }
  15709. //
  15710. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus
  15711. func (c *EC2) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) (req *request.Request, output *DescribeVolumeStatusOutput) {
  15712. op := &request.Operation{
  15713. Name: opDescribeVolumeStatus,
  15714. HTTPMethod: "POST",
  15715. HTTPPath: "/",
  15716. Paginator: &request.Paginator{
  15717. InputTokens: []string{"NextToken"},
  15718. OutputTokens: []string{"NextToken"},
  15719. LimitToken: "MaxResults",
  15720. TruncationToken: "",
  15721. },
  15722. }
  15723. if input == nil {
  15724. input = &DescribeVolumeStatusInput{}
  15725. }
  15726. output = &DescribeVolumeStatusOutput{}
  15727. req = c.newRequest(op, input, output)
  15728. return
  15729. }
  15730. // DescribeVolumeStatus API operation for Amazon Elastic Compute Cloud.
  15731. //
  15732. // Describes the status of the specified volumes. Volume status provides the
  15733. // result of the checks performed on your volumes to determine events that can
  15734. // impair the performance of your volumes. The performance of a volume can be
  15735. // affected if an issue occurs on the volume's underlying host. If the volume's
  15736. // underlying host experiences a power outage or system issue, after the system
  15737. // is restored, there could be data inconsistencies on the volume. Volume events
  15738. // notify you if this occurs. Volume actions notify you if any action needs
  15739. // to be taken in response to the event.
  15740. //
  15741. // The DescribeVolumeStatus operation provides the following information about
  15742. // the specified volumes:
  15743. //
  15744. // Status: Reflects the current status of the volume. The possible values are
  15745. // ok, impaired , warning, or insufficient-data. If all checks pass, the overall
  15746. // status of the volume is ok. If the check fails, the overall status is impaired.
  15747. // If the status is insufficient-data, then the checks may still be taking place
  15748. // on your volume at the time. We recommend that you retry the request. For
  15749. // more information about volume status, see Monitoring the Status of Your Volumes
  15750. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html)
  15751. // in the Amazon Elastic Compute Cloud User Guide.
  15752. //
  15753. // Events: Reflect the cause of a volume status and may require you to take
  15754. // action. For example, if your volume returns an impaired status, then the
  15755. // volume event might be potential-data-inconsistency. This means that your
  15756. // volume has been affected by an issue with the underlying host, has all I/O
  15757. // operations disabled, and may have inconsistent data.
  15758. //
  15759. // Actions: Reflect the actions you may have to take in response to an event.
  15760. // For example, if the status of the volume is impaired and the volume event
  15761. // shows potential-data-inconsistency, then the action shows enable-volume-io.
  15762. // This means that you may want to enable the I/O operations for the volume
  15763. // by calling the EnableVolumeIO action and then check the volume for data consistency.
  15764. //
  15765. // Volume status is based on the volume status checks, and does not reflect
  15766. // the volume state. Therefore, volume status does not indicate volumes in the
  15767. // error state (for example, when a volume is incapable of accepting I/O.)
  15768. //
  15769. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15770. // with awserr.Error's Code and Message methods to get detailed information about
  15771. // the error.
  15772. //
  15773. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15774. // API operation DescribeVolumeStatus for usage and error information.
  15775. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus
  15776. func (c *EC2) DescribeVolumeStatus(input *DescribeVolumeStatusInput) (*DescribeVolumeStatusOutput, error) {
  15777. req, out := c.DescribeVolumeStatusRequest(input)
  15778. return out, req.Send()
  15779. }
  15780. // DescribeVolumeStatusWithContext is the same as DescribeVolumeStatus with the addition of
  15781. // the ability to pass a context and additional request options.
  15782. //
  15783. // See DescribeVolumeStatus for details on how to use this API operation.
  15784. //
  15785. // The context must be non-nil and will be used for request cancellation. If
  15786. // the context is nil a panic will occur. In the future the SDK may create
  15787. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15788. // for more information on using Contexts.
  15789. func (c *EC2) DescribeVolumeStatusWithContext(ctx aws.Context, input *DescribeVolumeStatusInput, opts ...request.Option) (*DescribeVolumeStatusOutput, error) {
  15790. req, out := c.DescribeVolumeStatusRequest(input)
  15791. req.SetContext(ctx)
  15792. req.ApplyOptions(opts...)
  15793. return out, req.Send()
  15794. }
  15795. // DescribeVolumeStatusPages iterates over the pages of a DescribeVolumeStatus operation,
  15796. // calling the "fn" function with the response data for each page. To stop
  15797. // iterating, return false from the fn function.
  15798. //
  15799. // See DescribeVolumeStatus method for more information on how to use this operation.
  15800. //
  15801. // Note: This operation can generate multiple requests to a service.
  15802. //
  15803. // // Example iterating over at most 3 pages of a DescribeVolumeStatus operation.
  15804. // pageNum := 0
  15805. // err := client.DescribeVolumeStatusPages(params,
  15806. // func(page *DescribeVolumeStatusOutput, lastPage bool) bool {
  15807. // pageNum++
  15808. // fmt.Println(page)
  15809. // return pageNum <= 3
  15810. // })
  15811. //
  15812. func (c *EC2) DescribeVolumeStatusPages(input *DescribeVolumeStatusInput, fn func(*DescribeVolumeStatusOutput, bool) bool) error {
  15813. return c.DescribeVolumeStatusPagesWithContext(aws.BackgroundContext(), input, fn)
  15814. }
  15815. // DescribeVolumeStatusPagesWithContext same as DescribeVolumeStatusPages except
  15816. // it takes a Context and allows setting request options on the pages.
  15817. //
  15818. // The context must be non-nil and will be used for request cancellation. If
  15819. // the context is nil a panic will occur. In the future the SDK may create
  15820. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15821. // for more information on using Contexts.
  15822. func (c *EC2) DescribeVolumeStatusPagesWithContext(ctx aws.Context, input *DescribeVolumeStatusInput, fn func(*DescribeVolumeStatusOutput, bool) bool, opts ...request.Option) error {
  15823. p := request.Pagination{
  15824. NewRequest: func() (*request.Request, error) {
  15825. var inCpy *DescribeVolumeStatusInput
  15826. if input != nil {
  15827. tmp := *input
  15828. inCpy = &tmp
  15829. }
  15830. req, _ := c.DescribeVolumeStatusRequest(inCpy)
  15831. req.SetContext(ctx)
  15832. req.ApplyOptions(opts...)
  15833. return req, nil
  15834. },
  15835. }
  15836. cont := true
  15837. for p.Next() && cont {
  15838. cont = fn(p.Page().(*DescribeVolumeStatusOutput), !p.HasNextPage())
  15839. }
  15840. return p.Err()
  15841. }
  15842. const opDescribeVolumes = "DescribeVolumes"
  15843. // DescribeVolumesRequest generates a "aws/request.Request" representing the
  15844. // client's request for the DescribeVolumes operation. The "output" return
  15845. // value will be populated with the request's response once the request completes
  15846. // successfully.
  15847. //
  15848. // Use "Send" method on the returned Request to send the API call to the service.
  15849. // the "output" return value is not valid until after Send returns without error.
  15850. //
  15851. // See DescribeVolumes for more information on using the DescribeVolumes
  15852. // API call, and error handling.
  15853. //
  15854. // This method is useful when you want to inject custom logic or configuration
  15855. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15856. //
  15857. //
  15858. // // Example sending a request using the DescribeVolumesRequest method.
  15859. // req, resp := client.DescribeVolumesRequest(params)
  15860. //
  15861. // err := req.Send()
  15862. // if err == nil { // resp is now filled
  15863. // fmt.Println(resp)
  15864. // }
  15865. //
  15866. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes
  15867. func (c *EC2) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request.Request, output *DescribeVolumesOutput) {
  15868. op := &request.Operation{
  15869. Name: opDescribeVolumes,
  15870. HTTPMethod: "POST",
  15871. HTTPPath: "/",
  15872. Paginator: &request.Paginator{
  15873. InputTokens: []string{"NextToken"},
  15874. OutputTokens: []string{"NextToken"},
  15875. LimitToken: "MaxResults",
  15876. TruncationToken: "",
  15877. },
  15878. }
  15879. if input == nil {
  15880. input = &DescribeVolumesInput{}
  15881. }
  15882. output = &DescribeVolumesOutput{}
  15883. req = c.newRequest(op, input, output)
  15884. return
  15885. }
  15886. // DescribeVolumes API operation for Amazon Elastic Compute Cloud.
  15887. //
  15888. // Describes the specified EBS volumes.
  15889. //
  15890. // If you are describing a long list of volumes, you can paginate the output
  15891. // to make the list more manageable. The MaxResults parameter sets the maximum
  15892. // number of results returned in a single page. If the list of results exceeds
  15893. // your MaxResults value, then that number of results is returned along with
  15894. // a NextToken value that can be passed to a subsequent DescribeVolumes request
  15895. // to retrieve the remaining results.
  15896. //
  15897. // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html)
  15898. // in the Amazon Elastic Compute Cloud User Guide.
  15899. //
  15900. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15901. // with awserr.Error's Code and Message methods to get detailed information about
  15902. // the error.
  15903. //
  15904. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15905. // API operation DescribeVolumes for usage and error information.
  15906. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes
  15907. func (c *EC2) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) {
  15908. req, out := c.DescribeVolumesRequest(input)
  15909. return out, req.Send()
  15910. }
  15911. // DescribeVolumesWithContext is the same as DescribeVolumes with the addition of
  15912. // the ability to pass a context and additional request options.
  15913. //
  15914. // See DescribeVolumes for details on how to use this API operation.
  15915. //
  15916. // The context must be non-nil and will be used for request cancellation. If
  15917. // the context is nil a panic will occur. In the future the SDK may create
  15918. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15919. // for more information on using Contexts.
  15920. func (c *EC2) DescribeVolumesWithContext(ctx aws.Context, input *DescribeVolumesInput, opts ...request.Option) (*DescribeVolumesOutput, error) {
  15921. req, out := c.DescribeVolumesRequest(input)
  15922. req.SetContext(ctx)
  15923. req.ApplyOptions(opts...)
  15924. return out, req.Send()
  15925. }
  15926. // DescribeVolumesPages iterates over the pages of a DescribeVolumes operation,
  15927. // calling the "fn" function with the response data for each page. To stop
  15928. // iterating, return false from the fn function.
  15929. //
  15930. // See DescribeVolumes method for more information on how to use this operation.
  15931. //
  15932. // Note: This operation can generate multiple requests to a service.
  15933. //
  15934. // // Example iterating over at most 3 pages of a DescribeVolumes operation.
  15935. // pageNum := 0
  15936. // err := client.DescribeVolumesPages(params,
  15937. // func(page *DescribeVolumesOutput, lastPage bool) bool {
  15938. // pageNum++
  15939. // fmt.Println(page)
  15940. // return pageNum <= 3
  15941. // })
  15942. //
  15943. func (c *EC2) DescribeVolumesPages(input *DescribeVolumesInput, fn func(*DescribeVolumesOutput, bool) bool) error {
  15944. return c.DescribeVolumesPagesWithContext(aws.BackgroundContext(), input, fn)
  15945. }
  15946. // DescribeVolumesPagesWithContext same as DescribeVolumesPages except
  15947. // it takes a Context and allows setting request options on the pages.
  15948. //
  15949. // The context must be non-nil and will be used for request cancellation. If
  15950. // the context is nil a panic will occur. In the future the SDK may create
  15951. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15952. // for more information on using Contexts.
  15953. func (c *EC2) DescribeVolumesPagesWithContext(ctx aws.Context, input *DescribeVolumesInput, fn func(*DescribeVolumesOutput, bool) bool, opts ...request.Option) error {
  15954. p := request.Pagination{
  15955. NewRequest: func() (*request.Request, error) {
  15956. var inCpy *DescribeVolumesInput
  15957. if input != nil {
  15958. tmp := *input
  15959. inCpy = &tmp
  15960. }
  15961. req, _ := c.DescribeVolumesRequest(inCpy)
  15962. req.SetContext(ctx)
  15963. req.ApplyOptions(opts...)
  15964. return req, nil
  15965. },
  15966. }
  15967. cont := true
  15968. for p.Next() && cont {
  15969. cont = fn(p.Page().(*DescribeVolumesOutput), !p.HasNextPage())
  15970. }
  15971. return p.Err()
  15972. }
  15973. const opDescribeVolumesModifications = "DescribeVolumesModifications"
  15974. // DescribeVolumesModificationsRequest generates a "aws/request.Request" representing the
  15975. // client's request for the DescribeVolumesModifications operation. The "output" return
  15976. // value will be populated with the request's response once the request completes
  15977. // successfully.
  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 DescribeVolumesModifications for more information on using the DescribeVolumesModifications
  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 DescribeVolumesModificationsRequest method.
  15990. // req, resp := client.DescribeVolumesModificationsRequest(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/DescribeVolumesModifications
  15998. func (c *EC2) DescribeVolumesModificationsRequest(input *DescribeVolumesModificationsInput) (req *request.Request, output *DescribeVolumesModificationsOutput) {
  15999. op := &request.Operation{
  16000. Name: opDescribeVolumesModifications,
  16001. HTTPMethod: "POST",
  16002. HTTPPath: "/",
  16003. }
  16004. if input == nil {
  16005. input = &DescribeVolumesModificationsInput{}
  16006. }
  16007. output = &DescribeVolumesModificationsOutput{}
  16008. req = c.newRequest(op, input, output)
  16009. return
  16010. }
  16011. // DescribeVolumesModifications API operation for Amazon Elastic Compute Cloud.
  16012. //
  16013. // Reports the current modification status of EBS volumes.
  16014. //
  16015. // Current-generation EBS volumes support modification of attributes including
  16016. // type, size, and (for io1 volumes) IOPS provisioning while either attached
  16017. // to or detached from an instance. Following an action from the API or the
  16018. // console to modify a volume, the status of the modification may be modifying,
  16019. // optimizing, completed, or failed. If a volume has never been modified, then
  16020. // certain elements of the returned VolumeModification objects are null.
  16021. //
  16022. // You can also use CloudWatch Events to check the status of a modification
  16023. // to an EBS volume. For information about CloudWatch Events, see the Amazon
  16024. // CloudWatch Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/).
  16025. // For more information, see Monitoring Volume Modifications" (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods)
  16026. // in the Amazon Elastic Compute Cloud User Guide.
  16027. //
  16028. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16029. // with awserr.Error's Code and Message methods to get detailed information about
  16030. // the error.
  16031. //
  16032. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16033. // API operation DescribeVolumesModifications for usage and error information.
  16034. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModifications
  16035. func (c *EC2) DescribeVolumesModifications(input *DescribeVolumesModificationsInput) (*DescribeVolumesModificationsOutput, error) {
  16036. req, out := c.DescribeVolumesModificationsRequest(input)
  16037. return out, req.Send()
  16038. }
  16039. // DescribeVolumesModificationsWithContext is the same as DescribeVolumesModifications with the addition of
  16040. // the ability to pass a context and additional request options.
  16041. //
  16042. // See DescribeVolumesModifications for details on how to use this API operation.
  16043. //
  16044. // The context must be non-nil and will be used for request cancellation. If
  16045. // the context is nil a panic will occur. In the future the SDK may create
  16046. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16047. // for more information on using Contexts.
  16048. func (c *EC2) DescribeVolumesModificationsWithContext(ctx aws.Context, input *DescribeVolumesModificationsInput, opts ...request.Option) (*DescribeVolumesModificationsOutput, error) {
  16049. req, out := c.DescribeVolumesModificationsRequest(input)
  16050. req.SetContext(ctx)
  16051. req.ApplyOptions(opts...)
  16052. return out, req.Send()
  16053. }
  16054. const opDescribeVpcAttribute = "DescribeVpcAttribute"
  16055. // DescribeVpcAttributeRequest generates a "aws/request.Request" representing the
  16056. // client's request for the DescribeVpcAttribute operation. The "output" return
  16057. // value will be populated with the request's response once the request completes
  16058. // successfully.
  16059. //
  16060. // Use "Send" method on the returned Request to send the API call to the service.
  16061. // the "output" return value is not valid until after Send returns without error.
  16062. //
  16063. // See DescribeVpcAttribute for more information on using the DescribeVpcAttribute
  16064. // API call, and error handling.
  16065. //
  16066. // This method is useful when you want to inject custom logic or configuration
  16067. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16068. //
  16069. //
  16070. // // Example sending a request using the DescribeVpcAttributeRequest method.
  16071. // req, resp := client.DescribeVpcAttributeRequest(params)
  16072. //
  16073. // err := req.Send()
  16074. // if err == nil { // resp is now filled
  16075. // fmt.Println(resp)
  16076. // }
  16077. //
  16078. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute
  16079. func (c *EC2) DescribeVpcAttributeRequest(input *DescribeVpcAttributeInput) (req *request.Request, output *DescribeVpcAttributeOutput) {
  16080. op := &request.Operation{
  16081. Name: opDescribeVpcAttribute,
  16082. HTTPMethod: "POST",
  16083. HTTPPath: "/",
  16084. }
  16085. if input == nil {
  16086. input = &DescribeVpcAttributeInput{}
  16087. }
  16088. output = &DescribeVpcAttributeOutput{}
  16089. req = c.newRequest(op, input, output)
  16090. return
  16091. }
  16092. // DescribeVpcAttribute API operation for Amazon Elastic Compute Cloud.
  16093. //
  16094. // Describes the specified attribute of the specified VPC. You can specify only
  16095. // one attribute at a time.
  16096. //
  16097. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16098. // with awserr.Error's Code and Message methods to get detailed information about
  16099. // the error.
  16100. //
  16101. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16102. // API operation DescribeVpcAttribute for usage and error information.
  16103. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute
  16104. func (c *EC2) DescribeVpcAttribute(input *DescribeVpcAttributeInput) (*DescribeVpcAttributeOutput, error) {
  16105. req, out := c.DescribeVpcAttributeRequest(input)
  16106. return out, req.Send()
  16107. }
  16108. // DescribeVpcAttributeWithContext is the same as DescribeVpcAttribute with the addition of
  16109. // the ability to pass a context and additional request options.
  16110. //
  16111. // See DescribeVpcAttribute for details on how to use this API operation.
  16112. //
  16113. // The context must be non-nil and will be used for request cancellation. If
  16114. // the context is nil a panic will occur. In the future the SDK may create
  16115. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16116. // for more information on using Contexts.
  16117. func (c *EC2) DescribeVpcAttributeWithContext(ctx aws.Context, input *DescribeVpcAttributeInput, opts ...request.Option) (*DescribeVpcAttributeOutput, error) {
  16118. req, out := c.DescribeVpcAttributeRequest(input)
  16119. req.SetContext(ctx)
  16120. req.ApplyOptions(opts...)
  16121. return out, req.Send()
  16122. }
  16123. const opDescribeVpcClassicLink = "DescribeVpcClassicLink"
  16124. // DescribeVpcClassicLinkRequest generates a "aws/request.Request" representing the
  16125. // client's request for the DescribeVpcClassicLink operation. The "output" return
  16126. // value will be populated with the request's response once the request completes
  16127. // successfully.
  16128. //
  16129. // Use "Send" method on the returned Request to send the API call to the service.
  16130. // the "output" return value is not valid until after Send returns without error.
  16131. //
  16132. // See DescribeVpcClassicLink for more information on using the DescribeVpcClassicLink
  16133. // API call, and error handling.
  16134. //
  16135. // This method is useful when you want to inject custom logic or configuration
  16136. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16137. //
  16138. //
  16139. // // Example sending a request using the DescribeVpcClassicLinkRequest method.
  16140. // req, resp := client.DescribeVpcClassicLinkRequest(params)
  16141. //
  16142. // err := req.Send()
  16143. // if err == nil { // resp is now filled
  16144. // fmt.Println(resp)
  16145. // }
  16146. //
  16147. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLink
  16148. func (c *EC2) DescribeVpcClassicLinkRequest(input *DescribeVpcClassicLinkInput) (req *request.Request, output *DescribeVpcClassicLinkOutput) {
  16149. op := &request.Operation{
  16150. Name: opDescribeVpcClassicLink,
  16151. HTTPMethod: "POST",
  16152. HTTPPath: "/",
  16153. }
  16154. if input == nil {
  16155. input = &DescribeVpcClassicLinkInput{}
  16156. }
  16157. output = &DescribeVpcClassicLinkOutput{}
  16158. req = c.newRequest(op, input, output)
  16159. return
  16160. }
  16161. // DescribeVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  16162. //
  16163. // Describes the ClassicLink status of one or more VPCs.
  16164. //
  16165. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16166. // with awserr.Error's Code and Message methods to get detailed information about
  16167. // the error.
  16168. //
  16169. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16170. // API operation DescribeVpcClassicLink for usage and error information.
  16171. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLink
  16172. func (c *EC2) DescribeVpcClassicLink(input *DescribeVpcClassicLinkInput) (*DescribeVpcClassicLinkOutput, error) {
  16173. req, out := c.DescribeVpcClassicLinkRequest(input)
  16174. return out, req.Send()
  16175. }
  16176. // DescribeVpcClassicLinkWithContext is the same as DescribeVpcClassicLink with the addition of
  16177. // the ability to pass a context and additional request options.
  16178. //
  16179. // See DescribeVpcClassicLink for details on how to use this API operation.
  16180. //
  16181. // The context must be non-nil and will be used for request cancellation. If
  16182. // the context is nil a panic will occur. In the future the SDK may create
  16183. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16184. // for more information on using Contexts.
  16185. func (c *EC2) DescribeVpcClassicLinkWithContext(ctx aws.Context, input *DescribeVpcClassicLinkInput, opts ...request.Option) (*DescribeVpcClassicLinkOutput, error) {
  16186. req, out := c.DescribeVpcClassicLinkRequest(input)
  16187. req.SetContext(ctx)
  16188. req.ApplyOptions(opts...)
  16189. return out, req.Send()
  16190. }
  16191. const opDescribeVpcClassicLinkDnsSupport = "DescribeVpcClassicLinkDnsSupport"
  16192. // DescribeVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  16193. // client's request for the DescribeVpcClassicLinkDnsSupport operation. The "output" return
  16194. // value will be populated with the request's response once the request completes
  16195. // successfully.
  16196. //
  16197. // Use "Send" method on the returned Request to send the API call to the service.
  16198. // the "output" return value is not valid until after Send returns without error.
  16199. //
  16200. // See DescribeVpcClassicLinkDnsSupport for more information on using the DescribeVpcClassicLinkDnsSupport
  16201. // API call, and error handling.
  16202. //
  16203. // This method is useful when you want to inject custom logic or configuration
  16204. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16205. //
  16206. //
  16207. // // Example sending a request using the DescribeVpcClassicLinkDnsSupportRequest method.
  16208. // req, resp := client.DescribeVpcClassicLinkDnsSupportRequest(params)
  16209. //
  16210. // err := req.Send()
  16211. // if err == nil { // resp is now filled
  16212. // fmt.Println(resp)
  16213. // }
  16214. //
  16215. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupport
  16216. func (c *EC2) DescribeVpcClassicLinkDnsSupportRequest(input *DescribeVpcClassicLinkDnsSupportInput) (req *request.Request, output *DescribeVpcClassicLinkDnsSupportOutput) {
  16217. op := &request.Operation{
  16218. Name: opDescribeVpcClassicLinkDnsSupport,
  16219. HTTPMethod: "POST",
  16220. HTTPPath: "/",
  16221. }
  16222. if input == nil {
  16223. input = &DescribeVpcClassicLinkDnsSupportInput{}
  16224. }
  16225. output = &DescribeVpcClassicLinkDnsSupportOutput{}
  16226. req = c.newRequest(op, input, output)
  16227. return
  16228. }
  16229. // DescribeVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  16230. //
  16231. // Describes the ClassicLink DNS support status of one or more VPCs. If enabled,
  16232. // the DNS hostname of a linked EC2-Classic instance resolves to its private
  16233. // IP address when addressed from an instance in the VPC to which it's linked.
  16234. // Similarly, the DNS hostname of an instance in a VPC resolves to its private
  16235. // IP address when addressed from a linked EC2-Classic instance. For more information,
  16236. // see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  16237. // in the Amazon Elastic Compute Cloud User Guide.
  16238. //
  16239. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16240. // with awserr.Error's Code and Message methods to get detailed information about
  16241. // the error.
  16242. //
  16243. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16244. // API operation DescribeVpcClassicLinkDnsSupport for usage and error information.
  16245. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupport
  16246. func (c *EC2) DescribeVpcClassicLinkDnsSupport(input *DescribeVpcClassicLinkDnsSupportInput) (*DescribeVpcClassicLinkDnsSupportOutput, error) {
  16247. req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input)
  16248. return out, req.Send()
  16249. }
  16250. // DescribeVpcClassicLinkDnsSupportWithContext is the same as DescribeVpcClassicLinkDnsSupport with the addition of
  16251. // the ability to pass a context and additional request options.
  16252. //
  16253. // See DescribeVpcClassicLinkDnsSupport for details on how to use this API operation.
  16254. //
  16255. // The context must be non-nil and will be used for request cancellation. If
  16256. // the context is nil a panic will occur. In the future the SDK may create
  16257. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16258. // for more information on using Contexts.
  16259. func (c *EC2) DescribeVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *DescribeVpcClassicLinkDnsSupportInput, opts ...request.Option) (*DescribeVpcClassicLinkDnsSupportOutput, error) {
  16260. req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input)
  16261. req.SetContext(ctx)
  16262. req.ApplyOptions(opts...)
  16263. return out, req.Send()
  16264. }
  16265. const opDescribeVpcEndpointConnectionNotifications = "DescribeVpcEndpointConnectionNotifications"
  16266. // DescribeVpcEndpointConnectionNotificationsRequest generates a "aws/request.Request" representing the
  16267. // client's request for the DescribeVpcEndpointConnectionNotifications operation. The "output" return
  16268. // value will be populated with the request's response once the request completes
  16269. // successfully.
  16270. //
  16271. // Use "Send" method on the returned Request to send the API call to the service.
  16272. // the "output" return value is not valid until after Send returns without error.
  16273. //
  16274. // See DescribeVpcEndpointConnectionNotifications for more information on using the DescribeVpcEndpointConnectionNotifications
  16275. // API call, and error handling.
  16276. //
  16277. // This method is useful when you want to inject custom logic or configuration
  16278. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16279. //
  16280. //
  16281. // // Example sending a request using the DescribeVpcEndpointConnectionNotificationsRequest method.
  16282. // req, resp := client.DescribeVpcEndpointConnectionNotificationsRequest(params)
  16283. //
  16284. // err := req.Send()
  16285. // if err == nil { // resp is now filled
  16286. // fmt.Println(resp)
  16287. // }
  16288. //
  16289. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotifications
  16290. func (c *EC2) DescribeVpcEndpointConnectionNotificationsRequest(input *DescribeVpcEndpointConnectionNotificationsInput) (req *request.Request, output *DescribeVpcEndpointConnectionNotificationsOutput) {
  16291. op := &request.Operation{
  16292. Name: opDescribeVpcEndpointConnectionNotifications,
  16293. HTTPMethod: "POST",
  16294. HTTPPath: "/",
  16295. }
  16296. if input == nil {
  16297. input = &DescribeVpcEndpointConnectionNotificationsInput{}
  16298. }
  16299. output = &DescribeVpcEndpointConnectionNotificationsOutput{}
  16300. req = c.newRequest(op, input, output)
  16301. return
  16302. }
  16303. // DescribeVpcEndpointConnectionNotifications API operation for Amazon Elastic Compute Cloud.
  16304. //
  16305. // Describes the connection notifications for VPC endpoints and VPC endpoint
  16306. // services.
  16307. //
  16308. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16309. // with awserr.Error's Code and Message methods to get detailed information about
  16310. // the error.
  16311. //
  16312. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16313. // API operation DescribeVpcEndpointConnectionNotifications for usage and error information.
  16314. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotifications
  16315. func (c *EC2) DescribeVpcEndpointConnectionNotifications(input *DescribeVpcEndpointConnectionNotificationsInput) (*DescribeVpcEndpointConnectionNotificationsOutput, error) {
  16316. req, out := c.DescribeVpcEndpointConnectionNotificationsRequest(input)
  16317. return out, req.Send()
  16318. }
  16319. // DescribeVpcEndpointConnectionNotificationsWithContext is the same as DescribeVpcEndpointConnectionNotifications with the addition of
  16320. // the ability to pass a context and additional request options.
  16321. //
  16322. // See DescribeVpcEndpointConnectionNotifications for details on how to use this API operation.
  16323. //
  16324. // The context must be non-nil and will be used for request cancellation. If
  16325. // the context is nil a panic will occur. In the future the SDK may create
  16326. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16327. // for more information on using Contexts.
  16328. func (c *EC2) DescribeVpcEndpointConnectionNotificationsWithContext(ctx aws.Context, input *DescribeVpcEndpointConnectionNotificationsInput, opts ...request.Option) (*DescribeVpcEndpointConnectionNotificationsOutput, error) {
  16329. req, out := c.DescribeVpcEndpointConnectionNotificationsRequest(input)
  16330. req.SetContext(ctx)
  16331. req.ApplyOptions(opts...)
  16332. return out, req.Send()
  16333. }
  16334. const opDescribeVpcEndpointConnections = "DescribeVpcEndpointConnections"
  16335. // DescribeVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the
  16336. // client's request for the DescribeVpcEndpointConnections operation. The "output" return
  16337. // value will be populated with the request's response once the request completes
  16338. // successfully.
  16339. //
  16340. // Use "Send" method on the returned Request to send the API call to the service.
  16341. // the "output" return value is not valid until after Send returns without error.
  16342. //
  16343. // See DescribeVpcEndpointConnections for more information on using the DescribeVpcEndpointConnections
  16344. // API call, and error handling.
  16345. //
  16346. // This method is useful when you want to inject custom logic or configuration
  16347. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16348. //
  16349. //
  16350. // // Example sending a request using the DescribeVpcEndpointConnectionsRequest method.
  16351. // req, resp := client.DescribeVpcEndpointConnectionsRequest(params)
  16352. //
  16353. // err := req.Send()
  16354. // if err == nil { // resp is now filled
  16355. // fmt.Println(resp)
  16356. // }
  16357. //
  16358. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnections
  16359. func (c *EC2) DescribeVpcEndpointConnectionsRequest(input *DescribeVpcEndpointConnectionsInput) (req *request.Request, output *DescribeVpcEndpointConnectionsOutput) {
  16360. op := &request.Operation{
  16361. Name: opDescribeVpcEndpointConnections,
  16362. HTTPMethod: "POST",
  16363. HTTPPath: "/",
  16364. }
  16365. if input == nil {
  16366. input = &DescribeVpcEndpointConnectionsInput{}
  16367. }
  16368. output = &DescribeVpcEndpointConnectionsOutput{}
  16369. req = c.newRequest(op, input, output)
  16370. return
  16371. }
  16372. // DescribeVpcEndpointConnections API operation for Amazon Elastic Compute Cloud.
  16373. //
  16374. // Describes the VPC endpoint connections to your VPC endpoint services, including
  16375. // any endpoints that are pending your acceptance.
  16376. //
  16377. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16378. // with awserr.Error's Code and Message methods to get detailed information about
  16379. // the error.
  16380. //
  16381. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16382. // API operation DescribeVpcEndpointConnections for usage and error information.
  16383. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnections
  16384. func (c *EC2) DescribeVpcEndpointConnections(input *DescribeVpcEndpointConnectionsInput) (*DescribeVpcEndpointConnectionsOutput, error) {
  16385. req, out := c.DescribeVpcEndpointConnectionsRequest(input)
  16386. return out, req.Send()
  16387. }
  16388. // DescribeVpcEndpointConnectionsWithContext is the same as DescribeVpcEndpointConnections with the addition of
  16389. // the ability to pass a context and additional request options.
  16390. //
  16391. // See DescribeVpcEndpointConnections for details on how to use this API operation.
  16392. //
  16393. // The context must be non-nil and will be used for request cancellation. If
  16394. // the context is nil a panic will occur. In the future the SDK may create
  16395. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16396. // for more information on using Contexts.
  16397. func (c *EC2) DescribeVpcEndpointConnectionsWithContext(ctx aws.Context, input *DescribeVpcEndpointConnectionsInput, opts ...request.Option) (*DescribeVpcEndpointConnectionsOutput, error) {
  16398. req, out := c.DescribeVpcEndpointConnectionsRequest(input)
  16399. req.SetContext(ctx)
  16400. req.ApplyOptions(opts...)
  16401. return out, req.Send()
  16402. }
  16403. const opDescribeVpcEndpointServiceConfigurations = "DescribeVpcEndpointServiceConfigurations"
  16404. // DescribeVpcEndpointServiceConfigurationsRequest generates a "aws/request.Request" representing the
  16405. // client's request for the DescribeVpcEndpointServiceConfigurations operation. The "output" return
  16406. // value will be populated with the request's response once the request completes
  16407. // successfully.
  16408. //
  16409. // Use "Send" method on the returned Request to send the API call to the service.
  16410. // the "output" return value is not valid until after Send returns without error.
  16411. //
  16412. // See DescribeVpcEndpointServiceConfigurations for more information on using the DescribeVpcEndpointServiceConfigurations
  16413. // API call, and error handling.
  16414. //
  16415. // This method is useful when you want to inject custom logic or configuration
  16416. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16417. //
  16418. //
  16419. // // Example sending a request using the DescribeVpcEndpointServiceConfigurationsRequest method.
  16420. // req, resp := client.DescribeVpcEndpointServiceConfigurationsRequest(params)
  16421. //
  16422. // err := req.Send()
  16423. // if err == nil { // resp is now filled
  16424. // fmt.Println(resp)
  16425. // }
  16426. //
  16427. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurations
  16428. func (c *EC2) DescribeVpcEndpointServiceConfigurationsRequest(input *DescribeVpcEndpointServiceConfigurationsInput) (req *request.Request, output *DescribeVpcEndpointServiceConfigurationsOutput) {
  16429. op := &request.Operation{
  16430. Name: opDescribeVpcEndpointServiceConfigurations,
  16431. HTTPMethod: "POST",
  16432. HTTPPath: "/",
  16433. }
  16434. if input == nil {
  16435. input = &DescribeVpcEndpointServiceConfigurationsInput{}
  16436. }
  16437. output = &DescribeVpcEndpointServiceConfigurationsOutput{}
  16438. req = c.newRequest(op, input, output)
  16439. return
  16440. }
  16441. // DescribeVpcEndpointServiceConfigurations API operation for Amazon Elastic Compute Cloud.
  16442. //
  16443. // Describes the VPC endpoint service configurations in your account (your services).
  16444. //
  16445. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16446. // with awserr.Error's Code and Message methods to get detailed information about
  16447. // the error.
  16448. //
  16449. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16450. // API operation DescribeVpcEndpointServiceConfigurations for usage and error information.
  16451. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurations
  16452. func (c *EC2) DescribeVpcEndpointServiceConfigurations(input *DescribeVpcEndpointServiceConfigurationsInput) (*DescribeVpcEndpointServiceConfigurationsOutput, error) {
  16453. req, out := c.DescribeVpcEndpointServiceConfigurationsRequest(input)
  16454. return out, req.Send()
  16455. }
  16456. // DescribeVpcEndpointServiceConfigurationsWithContext is the same as DescribeVpcEndpointServiceConfigurations with the addition of
  16457. // the ability to pass a context and additional request options.
  16458. //
  16459. // See DescribeVpcEndpointServiceConfigurations for details on how to use this API operation.
  16460. //
  16461. // The context must be non-nil and will be used for request cancellation. If
  16462. // the context is nil a panic will occur. In the future the SDK may create
  16463. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16464. // for more information on using Contexts.
  16465. func (c *EC2) DescribeVpcEndpointServiceConfigurationsWithContext(ctx aws.Context, input *DescribeVpcEndpointServiceConfigurationsInput, opts ...request.Option) (*DescribeVpcEndpointServiceConfigurationsOutput, error) {
  16466. req, out := c.DescribeVpcEndpointServiceConfigurationsRequest(input)
  16467. req.SetContext(ctx)
  16468. req.ApplyOptions(opts...)
  16469. return out, req.Send()
  16470. }
  16471. const opDescribeVpcEndpointServicePermissions = "DescribeVpcEndpointServicePermissions"
  16472. // DescribeVpcEndpointServicePermissionsRequest generates a "aws/request.Request" representing the
  16473. // client's request for the DescribeVpcEndpointServicePermissions operation. The "output" return
  16474. // value will be populated with the request's response once the request completes
  16475. // successfully.
  16476. //
  16477. // Use "Send" method on the returned Request to send the API call to the service.
  16478. // the "output" return value is not valid until after Send returns without error.
  16479. //
  16480. // See DescribeVpcEndpointServicePermissions for more information on using the DescribeVpcEndpointServicePermissions
  16481. // API call, and error handling.
  16482. //
  16483. // This method is useful when you want to inject custom logic or configuration
  16484. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16485. //
  16486. //
  16487. // // Example sending a request using the DescribeVpcEndpointServicePermissionsRequest method.
  16488. // req, resp := client.DescribeVpcEndpointServicePermissionsRequest(params)
  16489. //
  16490. // err := req.Send()
  16491. // if err == nil { // resp is now filled
  16492. // fmt.Println(resp)
  16493. // }
  16494. //
  16495. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissions
  16496. func (c *EC2) DescribeVpcEndpointServicePermissionsRequest(input *DescribeVpcEndpointServicePermissionsInput) (req *request.Request, output *DescribeVpcEndpointServicePermissionsOutput) {
  16497. op := &request.Operation{
  16498. Name: opDescribeVpcEndpointServicePermissions,
  16499. HTTPMethod: "POST",
  16500. HTTPPath: "/",
  16501. }
  16502. if input == nil {
  16503. input = &DescribeVpcEndpointServicePermissionsInput{}
  16504. }
  16505. output = &DescribeVpcEndpointServicePermissionsOutput{}
  16506. req = c.newRequest(op, input, output)
  16507. return
  16508. }
  16509. // DescribeVpcEndpointServicePermissions API operation for Amazon Elastic Compute Cloud.
  16510. //
  16511. // Describes the principals (service consumers) that are permitted to discover
  16512. // your VPC endpoint service.
  16513. //
  16514. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16515. // with awserr.Error's Code and Message methods to get detailed information about
  16516. // the error.
  16517. //
  16518. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16519. // API operation DescribeVpcEndpointServicePermissions for usage and error information.
  16520. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissions
  16521. func (c *EC2) DescribeVpcEndpointServicePermissions(input *DescribeVpcEndpointServicePermissionsInput) (*DescribeVpcEndpointServicePermissionsOutput, error) {
  16522. req, out := c.DescribeVpcEndpointServicePermissionsRequest(input)
  16523. return out, req.Send()
  16524. }
  16525. // DescribeVpcEndpointServicePermissionsWithContext is the same as DescribeVpcEndpointServicePermissions with the addition of
  16526. // the ability to pass a context and additional request options.
  16527. //
  16528. // See DescribeVpcEndpointServicePermissions for details on how to use this API operation.
  16529. //
  16530. // The context must be non-nil and will be used for request cancellation. If
  16531. // the context is nil a panic will occur. In the future the SDK may create
  16532. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16533. // for more information on using Contexts.
  16534. func (c *EC2) DescribeVpcEndpointServicePermissionsWithContext(ctx aws.Context, input *DescribeVpcEndpointServicePermissionsInput, opts ...request.Option) (*DescribeVpcEndpointServicePermissionsOutput, error) {
  16535. req, out := c.DescribeVpcEndpointServicePermissionsRequest(input)
  16536. req.SetContext(ctx)
  16537. req.ApplyOptions(opts...)
  16538. return out, req.Send()
  16539. }
  16540. const opDescribeVpcEndpointServices = "DescribeVpcEndpointServices"
  16541. // DescribeVpcEndpointServicesRequest generates a "aws/request.Request" representing the
  16542. // client's request for the DescribeVpcEndpointServices operation. The "output" return
  16543. // value will be populated with the request's response once the request completes
  16544. // successfully.
  16545. //
  16546. // Use "Send" method on the returned Request to send the API call to the service.
  16547. // the "output" return value is not valid until after Send returns without error.
  16548. //
  16549. // See DescribeVpcEndpointServices for more information on using the DescribeVpcEndpointServices
  16550. // API call, and error handling.
  16551. //
  16552. // This method is useful when you want to inject custom logic or configuration
  16553. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16554. //
  16555. //
  16556. // // Example sending a request using the DescribeVpcEndpointServicesRequest method.
  16557. // req, resp := client.DescribeVpcEndpointServicesRequest(params)
  16558. //
  16559. // err := req.Send()
  16560. // if err == nil { // resp is now filled
  16561. // fmt.Println(resp)
  16562. // }
  16563. //
  16564. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServices
  16565. func (c *EC2) DescribeVpcEndpointServicesRequest(input *DescribeVpcEndpointServicesInput) (req *request.Request, output *DescribeVpcEndpointServicesOutput) {
  16566. op := &request.Operation{
  16567. Name: opDescribeVpcEndpointServices,
  16568. HTTPMethod: "POST",
  16569. HTTPPath: "/",
  16570. }
  16571. if input == nil {
  16572. input = &DescribeVpcEndpointServicesInput{}
  16573. }
  16574. output = &DescribeVpcEndpointServicesOutput{}
  16575. req = c.newRequest(op, input, output)
  16576. return
  16577. }
  16578. // DescribeVpcEndpointServices API operation for Amazon Elastic Compute Cloud.
  16579. //
  16580. // Describes available services to which you can create a VPC endpoint.
  16581. //
  16582. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16583. // with awserr.Error's Code and Message methods to get detailed information about
  16584. // the error.
  16585. //
  16586. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16587. // API operation DescribeVpcEndpointServices for usage and error information.
  16588. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServices
  16589. func (c *EC2) DescribeVpcEndpointServices(input *DescribeVpcEndpointServicesInput) (*DescribeVpcEndpointServicesOutput, error) {
  16590. req, out := c.DescribeVpcEndpointServicesRequest(input)
  16591. return out, req.Send()
  16592. }
  16593. // DescribeVpcEndpointServicesWithContext is the same as DescribeVpcEndpointServices with the addition of
  16594. // the ability to pass a context and additional request options.
  16595. //
  16596. // See DescribeVpcEndpointServices for details on how to use this API operation.
  16597. //
  16598. // The context must be non-nil and will be used for request cancellation. If
  16599. // the context is nil a panic will occur. In the future the SDK may create
  16600. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16601. // for more information on using Contexts.
  16602. func (c *EC2) DescribeVpcEndpointServicesWithContext(ctx aws.Context, input *DescribeVpcEndpointServicesInput, opts ...request.Option) (*DescribeVpcEndpointServicesOutput, error) {
  16603. req, out := c.DescribeVpcEndpointServicesRequest(input)
  16604. req.SetContext(ctx)
  16605. req.ApplyOptions(opts...)
  16606. return out, req.Send()
  16607. }
  16608. const opDescribeVpcEndpoints = "DescribeVpcEndpoints"
  16609. // DescribeVpcEndpointsRequest generates a "aws/request.Request" representing the
  16610. // client's request for the DescribeVpcEndpoints operation. The "output" return
  16611. // value will be populated with the request's response once the request completes
  16612. // successfully.
  16613. //
  16614. // Use "Send" method on the returned Request to send the API call to the service.
  16615. // the "output" return value is not valid until after Send returns without error.
  16616. //
  16617. // See DescribeVpcEndpoints for more information on using the DescribeVpcEndpoints
  16618. // API call, and error handling.
  16619. //
  16620. // This method is useful when you want to inject custom logic or configuration
  16621. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16622. //
  16623. //
  16624. // // Example sending a request using the DescribeVpcEndpointsRequest method.
  16625. // req, resp := client.DescribeVpcEndpointsRequest(params)
  16626. //
  16627. // err := req.Send()
  16628. // if err == nil { // resp is now filled
  16629. // fmt.Println(resp)
  16630. // }
  16631. //
  16632. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpoints
  16633. func (c *EC2) DescribeVpcEndpointsRequest(input *DescribeVpcEndpointsInput) (req *request.Request, output *DescribeVpcEndpointsOutput) {
  16634. op := &request.Operation{
  16635. Name: opDescribeVpcEndpoints,
  16636. HTTPMethod: "POST",
  16637. HTTPPath: "/",
  16638. }
  16639. if input == nil {
  16640. input = &DescribeVpcEndpointsInput{}
  16641. }
  16642. output = &DescribeVpcEndpointsOutput{}
  16643. req = c.newRequest(op, input, output)
  16644. return
  16645. }
  16646. // DescribeVpcEndpoints API operation for Amazon Elastic Compute Cloud.
  16647. //
  16648. // Describes one or more of your VPC endpoints.
  16649. //
  16650. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16651. // with awserr.Error's Code and Message methods to get detailed information about
  16652. // the error.
  16653. //
  16654. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16655. // API operation DescribeVpcEndpoints for usage and error information.
  16656. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpoints
  16657. func (c *EC2) DescribeVpcEndpoints(input *DescribeVpcEndpointsInput) (*DescribeVpcEndpointsOutput, error) {
  16658. req, out := c.DescribeVpcEndpointsRequest(input)
  16659. return out, req.Send()
  16660. }
  16661. // DescribeVpcEndpointsWithContext is the same as DescribeVpcEndpoints with the addition of
  16662. // the ability to pass a context and additional request options.
  16663. //
  16664. // See DescribeVpcEndpoints for details on how to use this API operation.
  16665. //
  16666. // The context must be non-nil and will be used for request cancellation. If
  16667. // the context is nil a panic will occur. In the future the SDK may create
  16668. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16669. // for more information on using Contexts.
  16670. func (c *EC2) DescribeVpcEndpointsWithContext(ctx aws.Context, input *DescribeVpcEndpointsInput, opts ...request.Option) (*DescribeVpcEndpointsOutput, error) {
  16671. req, out := c.DescribeVpcEndpointsRequest(input)
  16672. req.SetContext(ctx)
  16673. req.ApplyOptions(opts...)
  16674. return out, req.Send()
  16675. }
  16676. const opDescribeVpcPeeringConnections = "DescribeVpcPeeringConnections"
  16677. // DescribeVpcPeeringConnectionsRequest generates a "aws/request.Request" representing the
  16678. // client's request for the DescribeVpcPeeringConnections operation. The "output" return
  16679. // value will be populated with the request's response once the request completes
  16680. // successfully.
  16681. //
  16682. // Use "Send" method on the returned Request to send the API call to the service.
  16683. // the "output" return value is not valid until after Send returns without error.
  16684. //
  16685. // See DescribeVpcPeeringConnections for more information on using the DescribeVpcPeeringConnections
  16686. // API call, and error handling.
  16687. //
  16688. // This method is useful when you want to inject custom logic or configuration
  16689. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16690. //
  16691. //
  16692. // // Example sending a request using the DescribeVpcPeeringConnectionsRequest method.
  16693. // req, resp := client.DescribeVpcPeeringConnectionsRequest(params)
  16694. //
  16695. // err := req.Send()
  16696. // if err == nil { // resp is now filled
  16697. // fmt.Println(resp)
  16698. // }
  16699. //
  16700. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnections
  16701. func (c *EC2) DescribeVpcPeeringConnectionsRequest(input *DescribeVpcPeeringConnectionsInput) (req *request.Request, output *DescribeVpcPeeringConnectionsOutput) {
  16702. op := &request.Operation{
  16703. Name: opDescribeVpcPeeringConnections,
  16704. HTTPMethod: "POST",
  16705. HTTPPath: "/",
  16706. }
  16707. if input == nil {
  16708. input = &DescribeVpcPeeringConnectionsInput{}
  16709. }
  16710. output = &DescribeVpcPeeringConnectionsOutput{}
  16711. req = c.newRequest(op, input, output)
  16712. return
  16713. }
  16714. // DescribeVpcPeeringConnections API operation for Amazon Elastic Compute Cloud.
  16715. //
  16716. // Describes one or more of your VPC peering connections.
  16717. //
  16718. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16719. // with awserr.Error's Code and Message methods to get detailed information about
  16720. // the error.
  16721. //
  16722. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16723. // API operation DescribeVpcPeeringConnections for usage and error information.
  16724. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnections
  16725. func (c *EC2) DescribeVpcPeeringConnections(input *DescribeVpcPeeringConnectionsInput) (*DescribeVpcPeeringConnectionsOutput, error) {
  16726. req, out := c.DescribeVpcPeeringConnectionsRequest(input)
  16727. return out, req.Send()
  16728. }
  16729. // DescribeVpcPeeringConnectionsWithContext is the same as DescribeVpcPeeringConnections with the addition of
  16730. // the ability to pass a context and additional request options.
  16731. //
  16732. // See DescribeVpcPeeringConnections for details on how to use this API operation.
  16733. //
  16734. // The context must be non-nil and will be used for request cancellation. If
  16735. // the context is nil a panic will occur. In the future the SDK may create
  16736. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16737. // for more information on using Contexts.
  16738. func (c *EC2) DescribeVpcPeeringConnectionsWithContext(ctx aws.Context, input *DescribeVpcPeeringConnectionsInput, opts ...request.Option) (*DescribeVpcPeeringConnectionsOutput, error) {
  16739. req, out := c.DescribeVpcPeeringConnectionsRequest(input)
  16740. req.SetContext(ctx)
  16741. req.ApplyOptions(opts...)
  16742. return out, req.Send()
  16743. }
  16744. const opDescribeVpcs = "DescribeVpcs"
  16745. // DescribeVpcsRequest generates a "aws/request.Request" representing the
  16746. // client's request for the DescribeVpcs operation. The "output" return
  16747. // value will be populated with the request's response once the request completes
  16748. // successfully.
  16749. //
  16750. // Use "Send" method on the returned Request to send the API call to the service.
  16751. // the "output" return value is not valid until after Send returns without error.
  16752. //
  16753. // See DescribeVpcs for more information on using the DescribeVpcs
  16754. // API call, and error handling.
  16755. //
  16756. // This method is useful when you want to inject custom logic or configuration
  16757. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16758. //
  16759. //
  16760. // // Example sending a request using the DescribeVpcsRequest method.
  16761. // req, resp := client.DescribeVpcsRequest(params)
  16762. //
  16763. // err := req.Send()
  16764. // if err == nil { // resp is now filled
  16765. // fmt.Println(resp)
  16766. // }
  16767. //
  16768. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs
  16769. func (c *EC2) DescribeVpcsRequest(input *DescribeVpcsInput) (req *request.Request, output *DescribeVpcsOutput) {
  16770. op := &request.Operation{
  16771. Name: opDescribeVpcs,
  16772. HTTPMethod: "POST",
  16773. HTTPPath: "/",
  16774. }
  16775. if input == nil {
  16776. input = &DescribeVpcsInput{}
  16777. }
  16778. output = &DescribeVpcsOutput{}
  16779. req = c.newRequest(op, input, output)
  16780. return
  16781. }
  16782. // DescribeVpcs API operation for Amazon Elastic Compute Cloud.
  16783. //
  16784. // Describes one or more of your VPCs.
  16785. //
  16786. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16787. // with awserr.Error's Code and Message methods to get detailed information about
  16788. // the error.
  16789. //
  16790. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16791. // API operation DescribeVpcs for usage and error information.
  16792. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs
  16793. func (c *EC2) DescribeVpcs(input *DescribeVpcsInput) (*DescribeVpcsOutput, error) {
  16794. req, out := c.DescribeVpcsRequest(input)
  16795. return out, req.Send()
  16796. }
  16797. // DescribeVpcsWithContext is the same as DescribeVpcs with the addition of
  16798. // the ability to pass a context and additional request options.
  16799. //
  16800. // See DescribeVpcs for details on how to use this API operation.
  16801. //
  16802. // The context must be non-nil and will be used for request cancellation. If
  16803. // the context is nil a panic will occur. In the future the SDK may create
  16804. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16805. // for more information on using Contexts.
  16806. func (c *EC2) DescribeVpcsWithContext(ctx aws.Context, input *DescribeVpcsInput, opts ...request.Option) (*DescribeVpcsOutput, error) {
  16807. req, out := c.DescribeVpcsRequest(input)
  16808. req.SetContext(ctx)
  16809. req.ApplyOptions(opts...)
  16810. return out, req.Send()
  16811. }
  16812. const opDescribeVpnConnections = "DescribeVpnConnections"
  16813. // DescribeVpnConnectionsRequest generates a "aws/request.Request" representing the
  16814. // client's request for the DescribeVpnConnections operation. The "output" return
  16815. // value will be populated with the request's response once the request completes
  16816. // successfully.
  16817. //
  16818. // Use "Send" method on the returned Request to send the API call to the service.
  16819. // the "output" return value is not valid until after Send returns without error.
  16820. //
  16821. // See DescribeVpnConnections for more information on using the DescribeVpnConnections
  16822. // API call, and error handling.
  16823. //
  16824. // This method is useful when you want to inject custom logic or configuration
  16825. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16826. //
  16827. //
  16828. // // Example sending a request using the DescribeVpnConnectionsRequest method.
  16829. // req, resp := client.DescribeVpnConnectionsRequest(params)
  16830. //
  16831. // err := req.Send()
  16832. // if err == nil { // resp is now filled
  16833. // fmt.Println(resp)
  16834. // }
  16835. //
  16836. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnections
  16837. func (c *EC2) DescribeVpnConnectionsRequest(input *DescribeVpnConnectionsInput) (req *request.Request, output *DescribeVpnConnectionsOutput) {
  16838. op := &request.Operation{
  16839. Name: opDescribeVpnConnections,
  16840. HTTPMethod: "POST",
  16841. HTTPPath: "/",
  16842. }
  16843. if input == nil {
  16844. input = &DescribeVpnConnectionsInput{}
  16845. }
  16846. output = &DescribeVpnConnectionsOutput{}
  16847. req = c.newRequest(op, input, output)
  16848. return
  16849. }
  16850. // DescribeVpnConnections API operation for Amazon Elastic Compute Cloud.
  16851. //
  16852. // Describes one or more of your VPN connections.
  16853. //
  16854. // For more information about VPN connections, see AWS Managed VPN Connections
  16855. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) in the
  16856. // Amazon Virtual Private Cloud User Guide.
  16857. //
  16858. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16859. // with awserr.Error's Code and Message methods to get detailed information about
  16860. // the error.
  16861. //
  16862. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16863. // API operation DescribeVpnConnections for usage and error information.
  16864. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnections
  16865. func (c *EC2) DescribeVpnConnections(input *DescribeVpnConnectionsInput) (*DescribeVpnConnectionsOutput, error) {
  16866. req, out := c.DescribeVpnConnectionsRequest(input)
  16867. return out, req.Send()
  16868. }
  16869. // DescribeVpnConnectionsWithContext is the same as DescribeVpnConnections with the addition of
  16870. // the ability to pass a context and additional request options.
  16871. //
  16872. // See DescribeVpnConnections for details on how to use this API operation.
  16873. //
  16874. // The context must be non-nil and will be used for request cancellation. If
  16875. // the context is nil a panic will occur. In the future the SDK may create
  16876. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16877. // for more information on using Contexts.
  16878. func (c *EC2) DescribeVpnConnectionsWithContext(ctx aws.Context, input *DescribeVpnConnectionsInput, opts ...request.Option) (*DescribeVpnConnectionsOutput, error) {
  16879. req, out := c.DescribeVpnConnectionsRequest(input)
  16880. req.SetContext(ctx)
  16881. req.ApplyOptions(opts...)
  16882. return out, req.Send()
  16883. }
  16884. const opDescribeVpnGateways = "DescribeVpnGateways"
  16885. // DescribeVpnGatewaysRequest generates a "aws/request.Request" representing the
  16886. // client's request for the DescribeVpnGateways operation. The "output" return
  16887. // value will be populated with the request's response once the request completes
  16888. // successfully.
  16889. //
  16890. // Use "Send" method on the returned Request to send the API call to the service.
  16891. // the "output" return value is not valid until after Send returns without error.
  16892. //
  16893. // See DescribeVpnGateways for more information on using the DescribeVpnGateways
  16894. // API call, and error handling.
  16895. //
  16896. // This method is useful when you want to inject custom logic or configuration
  16897. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16898. //
  16899. //
  16900. // // Example sending a request using the DescribeVpnGatewaysRequest method.
  16901. // req, resp := client.DescribeVpnGatewaysRequest(params)
  16902. //
  16903. // err := req.Send()
  16904. // if err == nil { // resp is now filled
  16905. // fmt.Println(resp)
  16906. // }
  16907. //
  16908. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGateways
  16909. func (c *EC2) DescribeVpnGatewaysRequest(input *DescribeVpnGatewaysInput) (req *request.Request, output *DescribeVpnGatewaysOutput) {
  16910. op := &request.Operation{
  16911. Name: opDescribeVpnGateways,
  16912. HTTPMethod: "POST",
  16913. HTTPPath: "/",
  16914. }
  16915. if input == nil {
  16916. input = &DescribeVpnGatewaysInput{}
  16917. }
  16918. output = &DescribeVpnGatewaysOutput{}
  16919. req = c.newRequest(op, input, output)
  16920. return
  16921. }
  16922. // DescribeVpnGateways API operation for Amazon Elastic Compute Cloud.
  16923. //
  16924. // Describes one or more of your virtual private gateways.
  16925. //
  16926. // For more information about virtual private gateways, see AWS Managed VPN
  16927. // Connections (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  16928. // in the Amazon Virtual Private Cloud User Guide.
  16929. //
  16930. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16931. // with awserr.Error's Code and Message methods to get detailed information about
  16932. // the error.
  16933. //
  16934. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16935. // API operation DescribeVpnGateways for usage and error information.
  16936. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGateways
  16937. func (c *EC2) DescribeVpnGateways(input *DescribeVpnGatewaysInput) (*DescribeVpnGatewaysOutput, error) {
  16938. req, out := c.DescribeVpnGatewaysRequest(input)
  16939. return out, req.Send()
  16940. }
  16941. // DescribeVpnGatewaysWithContext is the same as DescribeVpnGateways with the addition of
  16942. // the ability to pass a context and additional request options.
  16943. //
  16944. // See DescribeVpnGateways for details on how to use this API operation.
  16945. //
  16946. // The context must be non-nil and will be used for request cancellation. If
  16947. // the context is nil a panic will occur. In the future the SDK may create
  16948. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16949. // for more information on using Contexts.
  16950. func (c *EC2) DescribeVpnGatewaysWithContext(ctx aws.Context, input *DescribeVpnGatewaysInput, opts ...request.Option) (*DescribeVpnGatewaysOutput, error) {
  16951. req, out := c.DescribeVpnGatewaysRequest(input)
  16952. req.SetContext(ctx)
  16953. req.ApplyOptions(opts...)
  16954. return out, req.Send()
  16955. }
  16956. const opDetachClassicLinkVpc = "DetachClassicLinkVpc"
  16957. // DetachClassicLinkVpcRequest generates a "aws/request.Request" representing the
  16958. // client's request for the DetachClassicLinkVpc operation. The "output" return
  16959. // value will be populated with the request's response once the request completes
  16960. // successfully.
  16961. //
  16962. // Use "Send" method on the returned Request to send the API call to the service.
  16963. // the "output" return value is not valid until after Send returns without error.
  16964. //
  16965. // See DetachClassicLinkVpc for more information on using the DetachClassicLinkVpc
  16966. // API call, and error handling.
  16967. //
  16968. // This method is useful when you want to inject custom logic or configuration
  16969. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16970. //
  16971. //
  16972. // // Example sending a request using the DetachClassicLinkVpcRequest method.
  16973. // req, resp := client.DetachClassicLinkVpcRequest(params)
  16974. //
  16975. // err := req.Send()
  16976. // if err == nil { // resp is now filled
  16977. // fmt.Println(resp)
  16978. // }
  16979. //
  16980. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpc
  16981. func (c *EC2) DetachClassicLinkVpcRequest(input *DetachClassicLinkVpcInput) (req *request.Request, output *DetachClassicLinkVpcOutput) {
  16982. op := &request.Operation{
  16983. Name: opDetachClassicLinkVpc,
  16984. HTTPMethod: "POST",
  16985. HTTPPath: "/",
  16986. }
  16987. if input == nil {
  16988. input = &DetachClassicLinkVpcInput{}
  16989. }
  16990. output = &DetachClassicLinkVpcOutput{}
  16991. req = c.newRequest(op, input, output)
  16992. return
  16993. }
  16994. // DetachClassicLinkVpc API operation for Amazon Elastic Compute Cloud.
  16995. //
  16996. // Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance
  16997. // has been unlinked, the VPC security groups are no longer associated with
  16998. // it. An instance is automatically unlinked from a VPC when it's stopped.
  16999. //
  17000. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17001. // with awserr.Error's Code and Message methods to get detailed information about
  17002. // the error.
  17003. //
  17004. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17005. // API operation DetachClassicLinkVpc for usage and error information.
  17006. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpc
  17007. func (c *EC2) DetachClassicLinkVpc(input *DetachClassicLinkVpcInput) (*DetachClassicLinkVpcOutput, error) {
  17008. req, out := c.DetachClassicLinkVpcRequest(input)
  17009. return out, req.Send()
  17010. }
  17011. // DetachClassicLinkVpcWithContext is the same as DetachClassicLinkVpc with the addition of
  17012. // the ability to pass a context and additional request options.
  17013. //
  17014. // See DetachClassicLinkVpc for details on how to use this API operation.
  17015. //
  17016. // The context must be non-nil and will be used for request cancellation. If
  17017. // the context is nil a panic will occur. In the future the SDK may create
  17018. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17019. // for more information on using Contexts.
  17020. func (c *EC2) DetachClassicLinkVpcWithContext(ctx aws.Context, input *DetachClassicLinkVpcInput, opts ...request.Option) (*DetachClassicLinkVpcOutput, error) {
  17021. req, out := c.DetachClassicLinkVpcRequest(input)
  17022. req.SetContext(ctx)
  17023. req.ApplyOptions(opts...)
  17024. return out, req.Send()
  17025. }
  17026. const opDetachInternetGateway = "DetachInternetGateway"
  17027. // DetachInternetGatewayRequest generates a "aws/request.Request" representing the
  17028. // client's request for the DetachInternetGateway operation. The "output" return
  17029. // value will be populated with the request's response once the request completes
  17030. // successfully.
  17031. //
  17032. // Use "Send" method on the returned Request to send the API call to the service.
  17033. // the "output" return value is not valid until after Send returns without error.
  17034. //
  17035. // See DetachInternetGateway for more information on using the DetachInternetGateway
  17036. // API call, and error handling.
  17037. //
  17038. // This method is useful when you want to inject custom logic or configuration
  17039. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17040. //
  17041. //
  17042. // // Example sending a request using the DetachInternetGatewayRequest method.
  17043. // req, resp := client.DetachInternetGatewayRequest(params)
  17044. //
  17045. // err := req.Send()
  17046. // if err == nil { // resp is now filled
  17047. // fmt.Println(resp)
  17048. // }
  17049. //
  17050. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGateway
  17051. func (c *EC2) DetachInternetGatewayRequest(input *DetachInternetGatewayInput) (req *request.Request, output *DetachInternetGatewayOutput) {
  17052. op := &request.Operation{
  17053. Name: opDetachInternetGateway,
  17054. HTTPMethod: "POST",
  17055. HTTPPath: "/",
  17056. }
  17057. if input == nil {
  17058. input = &DetachInternetGatewayInput{}
  17059. }
  17060. output = &DetachInternetGatewayOutput{}
  17061. req = c.newRequest(op, input, output)
  17062. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  17063. return
  17064. }
  17065. // DetachInternetGateway API operation for Amazon Elastic Compute Cloud.
  17066. //
  17067. // Detaches an internet gateway from a VPC, disabling connectivity between the
  17068. // internet and the VPC. The VPC must not contain any running instances with
  17069. // Elastic IP addresses or public IPv4 addresses.
  17070. //
  17071. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17072. // with awserr.Error's Code and Message methods to get detailed information about
  17073. // the error.
  17074. //
  17075. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17076. // API operation DetachInternetGateway for usage and error information.
  17077. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGateway
  17078. func (c *EC2) DetachInternetGateway(input *DetachInternetGatewayInput) (*DetachInternetGatewayOutput, error) {
  17079. req, out := c.DetachInternetGatewayRequest(input)
  17080. return out, req.Send()
  17081. }
  17082. // DetachInternetGatewayWithContext is the same as DetachInternetGateway with the addition of
  17083. // the ability to pass a context and additional request options.
  17084. //
  17085. // See DetachInternetGateway for details on how to use this API operation.
  17086. //
  17087. // The context must be non-nil and will be used for request cancellation. If
  17088. // the context is nil a panic will occur. In the future the SDK may create
  17089. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17090. // for more information on using Contexts.
  17091. func (c *EC2) DetachInternetGatewayWithContext(ctx aws.Context, input *DetachInternetGatewayInput, opts ...request.Option) (*DetachInternetGatewayOutput, error) {
  17092. req, out := c.DetachInternetGatewayRequest(input)
  17093. req.SetContext(ctx)
  17094. req.ApplyOptions(opts...)
  17095. return out, req.Send()
  17096. }
  17097. const opDetachNetworkInterface = "DetachNetworkInterface"
  17098. // DetachNetworkInterfaceRequest generates a "aws/request.Request" representing the
  17099. // client's request for the DetachNetworkInterface operation. The "output" return
  17100. // value will be populated with the request's response once the request completes
  17101. // successfully.
  17102. //
  17103. // Use "Send" method on the returned Request to send the API call to the service.
  17104. // the "output" return value is not valid until after Send returns without error.
  17105. //
  17106. // See DetachNetworkInterface for more information on using the DetachNetworkInterface
  17107. // API call, and error handling.
  17108. //
  17109. // This method is useful when you want to inject custom logic or configuration
  17110. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17111. //
  17112. //
  17113. // // Example sending a request using the DetachNetworkInterfaceRequest method.
  17114. // req, resp := client.DetachNetworkInterfaceRequest(params)
  17115. //
  17116. // err := req.Send()
  17117. // if err == nil { // resp is now filled
  17118. // fmt.Println(resp)
  17119. // }
  17120. //
  17121. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterface
  17122. func (c *EC2) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput) (req *request.Request, output *DetachNetworkInterfaceOutput) {
  17123. op := &request.Operation{
  17124. Name: opDetachNetworkInterface,
  17125. HTTPMethod: "POST",
  17126. HTTPPath: "/",
  17127. }
  17128. if input == nil {
  17129. input = &DetachNetworkInterfaceInput{}
  17130. }
  17131. output = &DetachNetworkInterfaceOutput{}
  17132. req = c.newRequest(op, input, output)
  17133. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  17134. return
  17135. }
  17136. // DetachNetworkInterface API operation for Amazon Elastic Compute Cloud.
  17137. //
  17138. // Detaches a network interface from an instance.
  17139. //
  17140. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17141. // with awserr.Error's Code and Message methods to get detailed information about
  17142. // the error.
  17143. //
  17144. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17145. // API operation DetachNetworkInterface for usage and error information.
  17146. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterface
  17147. func (c *EC2) DetachNetworkInterface(input *DetachNetworkInterfaceInput) (*DetachNetworkInterfaceOutput, error) {
  17148. req, out := c.DetachNetworkInterfaceRequest(input)
  17149. return out, req.Send()
  17150. }
  17151. // DetachNetworkInterfaceWithContext is the same as DetachNetworkInterface with the addition of
  17152. // the ability to pass a context and additional request options.
  17153. //
  17154. // See DetachNetworkInterface for details on how to use this API operation.
  17155. //
  17156. // The context must be non-nil and will be used for request cancellation. If
  17157. // the context is nil a panic will occur. In the future the SDK may create
  17158. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17159. // for more information on using Contexts.
  17160. func (c *EC2) DetachNetworkInterfaceWithContext(ctx aws.Context, input *DetachNetworkInterfaceInput, opts ...request.Option) (*DetachNetworkInterfaceOutput, error) {
  17161. req, out := c.DetachNetworkInterfaceRequest(input)
  17162. req.SetContext(ctx)
  17163. req.ApplyOptions(opts...)
  17164. return out, req.Send()
  17165. }
  17166. const opDetachVolume = "DetachVolume"
  17167. // DetachVolumeRequest generates a "aws/request.Request" representing the
  17168. // client's request for the DetachVolume operation. The "output" return
  17169. // value will be populated with the request's response once the request completes
  17170. // successfully.
  17171. //
  17172. // Use "Send" method on the returned Request to send the API call to the service.
  17173. // the "output" return value is not valid until after Send returns without error.
  17174. //
  17175. // See DetachVolume for more information on using the DetachVolume
  17176. // API call, and error handling.
  17177. //
  17178. // This method is useful when you want to inject custom logic or configuration
  17179. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17180. //
  17181. //
  17182. // // Example sending a request using the DetachVolumeRequest method.
  17183. // req, resp := client.DetachVolumeRequest(params)
  17184. //
  17185. // err := req.Send()
  17186. // if err == nil { // resp is now filled
  17187. // fmt.Println(resp)
  17188. // }
  17189. //
  17190. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolume
  17191. func (c *EC2) DetachVolumeRequest(input *DetachVolumeInput) (req *request.Request, output *VolumeAttachment) {
  17192. op := &request.Operation{
  17193. Name: opDetachVolume,
  17194. HTTPMethod: "POST",
  17195. HTTPPath: "/",
  17196. }
  17197. if input == nil {
  17198. input = &DetachVolumeInput{}
  17199. }
  17200. output = &VolumeAttachment{}
  17201. req = c.newRequest(op, input, output)
  17202. return
  17203. }
  17204. // DetachVolume API operation for Amazon Elastic Compute Cloud.
  17205. //
  17206. // Detaches an EBS volume from an instance. Make sure to unmount any file systems
  17207. // on the device within your operating system before detaching the volume. Failure
  17208. // to do so can result in the volume becoming stuck in the busy state while
  17209. // detaching. If this happens, detachment can be delayed indefinitely until
  17210. // you unmount the volume, force detachment, reboot the instance, or all three.
  17211. // If an EBS volume is the root device of an instance, it can't be detached
  17212. // while the instance is running. To detach the root volume, stop the instance
  17213. // first.
  17214. //
  17215. // When a volume with an AWS Marketplace product code is detached from an instance,
  17216. // the product code is no longer associated with the instance.
  17217. //
  17218. // For more information, see Detaching an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html)
  17219. // in the Amazon Elastic Compute Cloud User Guide.
  17220. //
  17221. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17222. // with awserr.Error's Code and Message methods to get detailed information about
  17223. // the error.
  17224. //
  17225. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17226. // API operation DetachVolume for usage and error information.
  17227. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolume
  17228. func (c *EC2) DetachVolume(input *DetachVolumeInput) (*VolumeAttachment, error) {
  17229. req, out := c.DetachVolumeRequest(input)
  17230. return out, req.Send()
  17231. }
  17232. // DetachVolumeWithContext is the same as DetachVolume with the addition of
  17233. // the ability to pass a context and additional request options.
  17234. //
  17235. // See DetachVolume for details on how to use this API operation.
  17236. //
  17237. // The context must be non-nil and will be used for request cancellation. If
  17238. // the context is nil a panic will occur. In the future the SDK may create
  17239. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17240. // for more information on using Contexts.
  17241. func (c *EC2) DetachVolumeWithContext(ctx aws.Context, input *DetachVolumeInput, opts ...request.Option) (*VolumeAttachment, error) {
  17242. req, out := c.DetachVolumeRequest(input)
  17243. req.SetContext(ctx)
  17244. req.ApplyOptions(opts...)
  17245. return out, req.Send()
  17246. }
  17247. const opDetachVpnGateway = "DetachVpnGateway"
  17248. // DetachVpnGatewayRequest generates a "aws/request.Request" representing the
  17249. // client's request for the DetachVpnGateway operation. The "output" return
  17250. // value will be populated with the request's response once the request completes
  17251. // successfully.
  17252. //
  17253. // Use "Send" method on the returned Request to send the API call to the service.
  17254. // the "output" return value is not valid until after Send returns without error.
  17255. //
  17256. // See DetachVpnGateway for more information on using the DetachVpnGateway
  17257. // API call, and error handling.
  17258. //
  17259. // This method is useful when you want to inject custom logic or configuration
  17260. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17261. //
  17262. //
  17263. // // Example sending a request using the DetachVpnGatewayRequest method.
  17264. // req, resp := client.DetachVpnGatewayRequest(params)
  17265. //
  17266. // err := req.Send()
  17267. // if err == nil { // resp is now filled
  17268. // fmt.Println(resp)
  17269. // }
  17270. //
  17271. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGateway
  17272. func (c *EC2) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) (req *request.Request, output *DetachVpnGatewayOutput) {
  17273. op := &request.Operation{
  17274. Name: opDetachVpnGateway,
  17275. HTTPMethod: "POST",
  17276. HTTPPath: "/",
  17277. }
  17278. if input == nil {
  17279. input = &DetachVpnGatewayInput{}
  17280. }
  17281. output = &DetachVpnGatewayOutput{}
  17282. req = c.newRequest(op, input, output)
  17283. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  17284. return
  17285. }
  17286. // DetachVpnGateway API operation for Amazon Elastic Compute Cloud.
  17287. //
  17288. // Detaches a virtual private gateway from a VPC. You do this if you're planning
  17289. // to turn off the VPC and not use it anymore. You can confirm a virtual private
  17290. // gateway has been completely detached from a VPC by describing the virtual
  17291. // private gateway (any attachments to the virtual private gateway are also
  17292. // described).
  17293. //
  17294. // You must wait for the attachment's state to switch to detached before you
  17295. // can delete the VPC or attach a different VPC to the virtual private gateway.
  17296. //
  17297. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17298. // with awserr.Error's Code and Message methods to get detailed information about
  17299. // the error.
  17300. //
  17301. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17302. // API operation DetachVpnGateway for usage and error information.
  17303. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGateway
  17304. func (c *EC2) DetachVpnGateway(input *DetachVpnGatewayInput) (*DetachVpnGatewayOutput, error) {
  17305. req, out := c.DetachVpnGatewayRequest(input)
  17306. return out, req.Send()
  17307. }
  17308. // DetachVpnGatewayWithContext is the same as DetachVpnGateway with the addition of
  17309. // the ability to pass a context and additional request options.
  17310. //
  17311. // See DetachVpnGateway for details on how to use this API operation.
  17312. //
  17313. // The context must be non-nil and will be used for request cancellation. If
  17314. // the context is nil a panic will occur. In the future the SDK may create
  17315. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17316. // for more information on using Contexts.
  17317. func (c *EC2) DetachVpnGatewayWithContext(ctx aws.Context, input *DetachVpnGatewayInput, opts ...request.Option) (*DetachVpnGatewayOutput, error) {
  17318. req, out := c.DetachVpnGatewayRequest(input)
  17319. req.SetContext(ctx)
  17320. req.ApplyOptions(opts...)
  17321. return out, req.Send()
  17322. }
  17323. const opDisableTransitGatewayRouteTablePropagation = "DisableTransitGatewayRouteTablePropagation"
  17324. // DisableTransitGatewayRouteTablePropagationRequest generates a "aws/request.Request" representing the
  17325. // client's request for the DisableTransitGatewayRouteTablePropagation operation. The "output" return
  17326. // value will be populated with the request's response once the request completes
  17327. // successfully.
  17328. //
  17329. // Use "Send" method on the returned Request to send the API call to the service.
  17330. // the "output" return value is not valid until after Send returns without error.
  17331. //
  17332. // See DisableTransitGatewayRouteTablePropagation for more information on using the DisableTransitGatewayRouteTablePropagation
  17333. // API call, and error handling.
  17334. //
  17335. // This method is useful when you want to inject custom logic or configuration
  17336. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17337. //
  17338. //
  17339. // // Example sending a request using the DisableTransitGatewayRouteTablePropagationRequest method.
  17340. // req, resp := client.DisableTransitGatewayRouteTablePropagationRequest(params)
  17341. //
  17342. // err := req.Send()
  17343. // if err == nil { // resp is now filled
  17344. // fmt.Println(resp)
  17345. // }
  17346. //
  17347. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableTransitGatewayRouteTablePropagation
  17348. func (c *EC2) DisableTransitGatewayRouteTablePropagationRequest(input *DisableTransitGatewayRouteTablePropagationInput) (req *request.Request, output *DisableTransitGatewayRouteTablePropagationOutput) {
  17349. op := &request.Operation{
  17350. Name: opDisableTransitGatewayRouteTablePropagation,
  17351. HTTPMethod: "POST",
  17352. HTTPPath: "/",
  17353. }
  17354. if input == nil {
  17355. input = &DisableTransitGatewayRouteTablePropagationInput{}
  17356. }
  17357. output = &DisableTransitGatewayRouteTablePropagationOutput{}
  17358. req = c.newRequest(op, input, output)
  17359. return
  17360. }
  17361. // DisableTransitGatewayRouteTablePropagation API operation for Amazon Elastic Compute Cloud.
  17362. //
  17363. // Disables the specified resource attachment from propagating routes to the
  17364. // specified propagation route table.
  17365. //
  17366. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17367. // with awserr.Error's Code and Message methods to get detailed information about
  17368. // the error.
  17369. //
  17370. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17371. // API operation DisableTransitGatewayRouteTablePropagation for usage and error information.
  17372. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableTransitGatewayRouteTablePropagation
  17373. func (c *EC2) DisableTransitGatewayRouteTablePropagation(input *DisableTransitGatewayRouteTablePropagationInput) (*DisableTransitGatewayRouteTablePropagationOutput, error) {
  17374. req, out := c.DisableTransitGatewayRouteTablePropagationRequest(input)
  17375. return out, req.Send()
  17376. }
  17377. // DisableTransitGatewayRouteTablePropagationWithContext is the same as DisableTransitGatewayRouteTablePropagation with the addition of
  17378. // the ability to pass a context and additional request options.
  17379. //
  17380. // See DisableTransitGatewayRouteTablePropagation for details on how to use this API operation.
  17381. //
  17382. // The context must be non-nil and will be used for request cancellation. If
  17383. // the context is nil a panic will occur. In the future the SDK may create
  17384. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17385. // for more information on using Contexts.
  17386. func (c *EC2) DisableTransitGatewayRouteTablePropagationWithContext(ctx aws.Context, input *DisableTransitGatewayRouteTablePropagationInput, opts ...request.Option) (*DisableTransitGatewayRouteTablePropagationOutput, error) {
  17387. req, out := c.DisableTransitGatewayRouteTablePropagationRequest(input)
  17388. req.SetContext(ctx)
  17389. req.ApplyOptions(opts...)
  17390. return out, req.Send()
  17391. }
  17392. const opDisableVgwRoutePropagation = "DisableVgwRoutePropagation"
  17393. // DisableVgwRoutePropagationRequest generates a "aws/request.Request" representing the
  17394. // client's request for the DisableVgwRoutePropagation operation. The "output" return
  17395. // value will be populated with the request's response once the request completes
  17396. // successfully.
  17397. //
  17398. // Use "Send" method on the returned Request to send the API call to the service.
  17399. // the "output" return value is not valid until after Send returns without error.
  17400. //
  17401. // See DisableVgwRoutePropagation for more information on using the DisableVgwRoutePropagation
  17402. // API call, and error handling.
  17403. //
  17404. // This method is useful when you want to inject custom logic or configuration
  17405. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17406. //
  17407. //
  17408. // // Example sending a request using the DisableVgwRoutePropagationRequest method.
  17409. // req, resp := client.DisableVgwRoutePropagationRequest(params)
  17410. //
  17411. // err := req.Send()
  17412. // if err == nil { // resp is now filled
  17413. // fmt.Println(resp)
  17414. // }
  17415. //
  17416. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagation
  17417. func (c *EC2) DisableVgwRoutePropagationRequest(input *DisableVgwRoutePropagationInput) (req *request.Request, output *DisableVgwRoutePropagationOutput) {
  17418. op := &request.Operation{
  17419. Name: opDisableVgwRoutePropagation,
  17420. HTTPMethod: "POST",
  17421. HTTPPath: "/",
  17422. }
  17423. if input == nil {
  17424. input = &DisableVgwRoutePropagationInput{}
  17425. }
  17426. output = &DisableVgwRoutePropagationOutput{}
  17427. req = c.newRequest(op, input, output)
  17428. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  17429. return
  17430. }
  17431. // DisableVgwRoutePropagation API operation for Amazon Elastic Compute Cloud.
  17432. //
  17433. // Disables a virtual private gateway (VGW) from propagating routes to a specified
  17434. // route table of a VPC.
  17435. //
  17436. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17437. // with awserr.Error's Code and Message methods to get detailed information about
  17438. // the error.
  17439. //
  17440. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17441. // API operation DisableVgwRoutePropagation for usage and error information.
  17442. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagation
  17443. func (c *EC2) DisableVgwRoutePropagation(input *DisableVgwRoutePropagationInput) (*DisableVgwRoutePropagationOutput, error) {
  17444. req, out := c.DisableVgwRoutePropagationRequest(input)
  17445. return out, req.Send()
  17446. }
  17447. // DisableVgwRoutePropagationWithContext is the same as DisableVgwRoutePropagation with the addition of
  17448. // the ability to pass a context and additional request options.
  17449. //
  17450. // See DisableVgwRoutePropagation for details on how to use this API operation.
  17451. //
  17452. // The context must be non-nil and will be used for request cancellation. If
  17453. // the context is nil a panic will occur. In the future the SDK may create
  17454. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17455. // for more information on using Contexts.
  17456. func (c *EC2) DisableVgwRoutePropagationWithContext(ctx aws.Context, input *DisableVgwRoutePropagationInput, opts ...request.Option) (*DisableVgwRoutePropagationOutput, error) {
  17457. req, out := c.DisableVgwRoutePropagationRequest(input)
  17458. req.SetContext(ctx)
  17459. req.ApplyOptions(opts...)
  17460. return out, req.Send()
  17461. }
  17462. const opDisableVpcClassicLink = "DisableVpcClassicLink"
  17463. // DisableVpcClassicLinkRequest generates a "aws/request.Request" representing the
  17464. // client's request for the DisableVpcClassicLink operation. The "output" return
  17465. // value will be populated with the request's response once the request completes
  17466. // successfully.
  17467. //
  17468. // Use "Send" method on the returned Request to send the API call to the service.
  17469. // the "output" return value is not valid until after Send returns without error.
  17470. //
  17471. // See DisableVpcClassicLink for more information on using the DisableVpcClassicLink
  17472. // API call, and error handling.
  17473. //
  17474. // This method is useful when you want to inject custom logic or configuration
  17475. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17476. //
  17477. //
  17478. // // Example sending a request using the DisableVpcClassicLinkRequest method.
  17479. // req, resp := client.DisableVpcClassicLinkRequest(params)
  17480. //
  17481. // err := req.Send()
  17482. // if err == nil { // resp is now filled
  17483. // fmt.Println(resp)
  17484. // }
  17485. //
  17486. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLink
  17487. func (c *EC2) DisableVpcClassicLinkRequest(input *DisableVpcClassicLinkInput) (req *request.Request, output *DisableVpcClassicLinkOutput) {
  17488. op := &request.Operation{
  17489. Name: opDisableVpcClassicLink,
  17490. HTTPMethod: "POST",
  17491. HTTPPath: "/",
  17492. }
  17493. if input == nil {
  17494. input = &DisableVpcClassicLinkInput{}
  17495. }
  17496. output = &DisableVpcClassicLinkOutput{}
  17497. req = c.newRequest(op, input, output)
  17498. return
  17499. }
  17500. // DisableVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  17501. //
  17502. // Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC
  17503. // that has EC2-Classic instances linked to it.
  17504. //
  17505. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17506. // with awserr.Error's Code and Message methods to get detailed information about
  17507. // the error.
  17508. //
  17509. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17510. // API operation DisableVpcClassicLink for usage and error information.
  17511. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLink
  17512. func (c *EC2) DisableVpcClassicLink(input *DisableVpcClassicLinkInput) (*DisableVpcClassicLinkOutput, error) {
  17513. req, out := c.DisableVpcClassicLinkRequest(input)
  17514. return out, req.Send()
  17515. }
  17516. // DisableVpcClassicLinkWithContext is the same as DisableVpcClassicLink with the addition of
  17517. // the ability to pass a context and additional request options.
  17518. //
  17519. // See DisableVpcClassicLink for details on how to use this API operation.
  17520. //
  17521. // The context must be non-nil and will be used for request cancellation. If
  17522. // the context is nil a panic will occur. In the future the SDK may create
  17523. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17524. // for more information on using Contexts.
  17525. func (c *EC2) DisableVpcClassicLinkWithContext(ctx aws.Context, input *DisableVpcClassicLinkInput, opts ...request.Option) (*DisableVpcClassicLinkOutput, error) {
  17526. req, out := c.DisableVpcClassicLinkRequest(input)
  17527. req.SetContext(ctx)
  17528. req.ApplyOptions(opts...)
  17529. return out, req.Send()
  17530. }
  17531. const opDisableVpcClassicLinkDnsSupport = "DisableVpcClassicLinkDnsSupport"
  17532. // DisableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  17533. // client's request for the DisableVpcClassicLinkDnsSupport operation. The "output" return
  17534. // value will be populated with the request's response once the request completes
  17535. // successfully.
  17536. //
  17537. // Use "Send" method on the returned Request to send the API call to the service.
  17538. // the "output" return value is not valid until after Send returns without error.
  17539. //
  17540. // See DisableVpcClassicLinkDnsSupport for more information on using the DisableVpcClassicLinkDnsSupport
  17541. // API call, and error handling.
  17542. //
  17543. // This method is useful when you want to inject custom logic or configuration
  17544. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17545. //
  17546. //
  17547. // // Example sending a request using the DisableVpcClassicLinkDnsSupportRequest method.
  17548. // req, resp := client.DisableVpcClassicLinkDnsSupportRequest(params)
  17549. //
  17550. // err := req.Send()
  17551. // if err == nil { // resp is now filled
  17552. // fmt.Println(resp)
  17553. // }
  17554. //
  17555. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupport
  17556. func (c *EC2) DisableVpcClassicLinkDnsSupportRequest(input *DisableVpcClassicLinkDnsSupportInput) (req *request.Request, output *DisableVpcClassicLinkDnsSupportOutput) {
  17557. op := &request.Operation{
  17558. Name: opDisableVpcClassicLinkDnsSupport,
  17559. HTTPMethod: "POST",
  17560. HTTPPath: "/",
  17561. }
  17562. if input == nil {
  17563. input = &DisableVpcClassicLinkDnsSupportInput{}
  17564. }
  17565. output = &DisableVpcClassicLinkDnsSupportOutput{}
  17566. req = c.newRequest(op, input, output)
  17567. return
  17568. }
  17569. // DisableVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  17570. //
  17571. // Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve
  17572. // to public IP addresses when addressed between a linked EC2-Classic instance
  17573. // and instances in the VPC to which it's linked. For more information, see
  17574. // ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  17575. // in the Amazon Elastic Compute Cloud User Guide.
  17576. //
  17577. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17578. // with awserr.Error's Code and Message methods to get detailed information about
  17579. // the error.
  17580. //
  17581. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17582. // API operation DisableVpcClassicLinkDnsSupport for usage and error information.
  17583. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupport
  17584. func (c *EC2) DisableVpcClassicLinkDnsSupport(input *DisableVpcClassicLinkDnsSupportInput) (*DisableVpcClassicLinkDnsSupportOutput, error) {
  17585. req, out := c.DisableVpcClassicLinkDnsSupportRequest(input)
  17586. return out, req.Send()
  17587. }
  17588. // DisableVpcClassicLinkDnsSupportWithContext is the same as DisableVpcClassicLinkDnsSupport with the addition of
  17589. // the ability to pass a context and additional request options.
  17590. //
  17591. // See DisableVpcClassicLinkDnsSupport for details on how to use this API operation.
  17592. //
  17593. // The context must be non-nil and will be used for request cancellation. If
  17594. // the context is nil a panic will occur. In the future the SDK may create
  17595. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17596. // for more information on using Contexts.
  17597. func (c *EC2) DisableVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *DisableVpcClassicLinkDnsSupportInput, opts ...request.Option) (*DisableVpcClassicLinkDnsSupportOutput, error) {
  17598. req, out := c.DisableVpcClassicLinkDnsSupportRequest(input)
  17599. req.SetContext(ctx)
  17600. req.ApplyOptions(opts...)
  17601. return out, req.Send()
  17602. }
  17603. const opDisassociateAddress = "DisassociateAddress"
  17604. // DisassociateAddressRequest generates a "aws/request.Request" representing the
  17605. // client's request for the DisassociateAddress operation. The "output" return
  17606. // value will be populated with the request's response once the request completes
  17607. // successfully.
  17608. //
  17609. // Use "Send" method on the returned Request to send the API call to the service.
  17610. // the "output" return value is not valid until after Send returns without error.
  17611. //
  17612. // See DisassociateAddress for more information on using the DisassociateAddress
  17613. // API call, and error handling.
  17614. //
  17615. // This method is useful when you want to inject custom logic or configuration
  17616. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17617. //
  17618. //
  17619. // // Example sending a request using the DisassociateAddressRequest method.
  17620. // req, resp := client.DisassociateAddressRequest(params)
  17621. //
  17622. // err := req.Send()
  17623. // if err == nil { // resp is now filled
  17624. // fmt.Println(resp)
  17625. // }
  17626. //
  17627. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddress
  17628. func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req *request.Request, output *DisassociateAddressOutput) {
  17629. op := &request.Operation{
  17630. Name: opDisassociateAddress,
  17631. HTTPMethod: "POST",
  17632. HTTPPath: "/",
  17633. }
  17634. if input == nil {
  17635. input = &DisassociateAddressInput{}
  17636. }
  17637. output = &DisassociateAddressOutput{}
  17638. req = c.newRequest(op, input, output)
  17639. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  17640. return
  17641. }
  17642. // DisassociateAddress API operation for Amazon Elastic Compute Cloud.
  17643. //
  17644. // Disassociates an Elastic IP address from the instance or network interface
  17645. // it's associated with.
  17646. //
  17647. // An Elastic IP address is for use in either the EC2-Classic platform or in
  17648. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  17649. // in the Amazon Elastic Compute Cloud User Guide.
  17650. //
  17651. // This is an idempotent operation. If you perform the operation more than once,
  17652. // Amazon EC2 doesn't return an error.
  17653. //
  17654. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17655. // with awserr.Error's Code and Message methods to get detailed information about
  17656. // the error.
  17657. //
  17658. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17659. // API operation DisassociateAddress for usage and error information.
  17660. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddress
  17661. func (c *EC2) DisassociateAddress(input *DisassociateAddressInput) (*DisassociateAddressOutput, error) {
  17662. req, out := c.DisassociateAddressRequest(input)
  17663. return out, req.Send()
  17664. }
  17665. // DisassociateAddressWithContext is the same as DisassociateAddress with the addition of
  17666. // the ability to pass a context and additional request options.
  17667. //
  17668. // See DisassociateAddress for details on how to use this API operation.
  17669. //
  17670. // The context must be non-nil and will be used for request cancellation. If
  17671. // the context is nil a panic will occur. In the future the SDK may create
  17672. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17673. // for more information on using Contexts.
  17674. func (c *EC2) DisassociateAddressWithContext(ctx aws.Context, input *DisassociateAddressInput, opts ...request.Option) (*DisassociateAddressOutput, error) {
  17675. req, out := c.DisassociateAddressRequest(input)
  17676. req.SetContext(ctx)
  17677. req.ApplyOptions(opts...)
  17678. return out, req.Send()
  17679. }
  17680. const opDisassociateClientVpnTargetNetwork = "DisassociateClientVpnTargetNetwork"
  17681. // DisassociateClientVpnTargetNetworkRequest generates a "aws/request.Request" representing the
  17682. // client's request for the DisassociateClientVpnTargetNetwork operation. The "output" return
  17683. // value will be populated with the request's response once the request completes
  17684. // successfully.
  17685. //
  17686. // Use "Send" method on the returned Request to send the API call to the service.
  17687. // the "output" return value is not valid until after Send returns without error.
  17688. //
  17689. // See DisassociateClientVpnTargetNetwork for more information on using the DisassociateClientVpnTargetNetwork
  17690. // API call, and error handling.
  17691. //
  17692. // This method is useful when you want to inject custom logic or configuration
  17693. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17694. //
  17695. //
  17696. // // Example sending a request using the DisassociateClientVpnTargetNetworkRequest method.
  17697. // req, resp := client.DisassociateClientVpnTargetNetworkRequest(params)
  17698. //
  17699. // err := req.Send()
  17700. // if err == nil { // resp is now filled
  17701. // fmt.Println(resp)
  17702. // }
  17703. //
  17704. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateClientVpnTargetNetwork
  17705. func (c *EC2) DisassociateClientVpnTargetNetworkRequest(input *DisassociateClientVpnTargetNetworkInput) (req *request.Request, output *DisassociateClientVpnTargetNetworkOutput) {
  17706. op := &request.Operation{
  17707. Name: opDisassociateClientVpnTargetNetwork,
  17708. HTTPMethod: "POST",
  17709. HTTPPath: "/",
  17710. }
  17711. if input == nil {
  17712. input = &DisassociateClientVpnTargetNetworkInput{}
  17713. }
  17714. output = &DisassociateClientVpnTargetNetworkOutput{}
  17715. req = c.newRequest(op, input, output)
  17716. return
  17717. }
  17718. // DisassociateClientVpnTargetNetwork API operation for Amazon Elastic Compute Cloud.
  17719. //
  17720. // Disassociates a target network from the specified Client VPN endpoint. When
  17721. // you disassociate the last target network from a Client VPN, the following
  17722. // happens:
  17723. //
  17724. // * The route that was automatically added for the VPC is deleted
  17725. //
  17726. // * All active client connections are terminated
  17727. //
  17728. // * New client connections are disallowed
  17729. //
  17730. // * The Client VPN endpoint's status changes to pending-associate
  17731. //
  17732. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17733. // with awserr.Error's Code and Message methods to get detailed information about
  17734. // the error.
  17735. //
  17736. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17737. // API operation DisassociateClientVpnTargetNetwork for usage and error information.
  17738. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateClientVpnTargetNetwork
  17739. func (c *EC2) DisassociateClientVpnTargetNetwork(input *DisassociateClientVpnTargetNetworkInput) (*DisassociateClientVpnTargetNetworkOutput, error) {
  17740. req, out := c.DisassociateClientVpnTargetNetworkRequest(input)
  17741. return out, req.Send()
  17742. }
  17743. // DisassociateClientVpnTargetNetworkWithContext is the same as DisassociateClientVpnTargetNetwork with the addition of
  17744. // the ability to pass a context and additional request options.
  17745. //
  17746. // See DisassociateClientVpnTargetNetwork for details on how to use this API operation.
  17747. //
  17748. // The context must be non-nil and will be used for request cancellation. If
  17749. // the context is nil a panic will occur. In the future the SDK may create
  17750. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17751. // for more information on using Contexts.
  17752. func (c *EC2) DisassociateClientVpnTargetNetworkWithContext(ctx aws.Context, input *DisassociateClientVpnTargetNetworkInput, opts ...request.Option) (*DisassociateClientVpnTargetNetworkOutput, error) {
  17753. req, out := c.DisassociateClientVpnTargetNetworkRequest(input)
  17754. req.SetContext(ctx)
  17755. req.ApplyOptions(opts...)
  17756. return out, req.Send()
  17757. }
  17758. const opDisassociateIamInstanceProfile = "DisassociateIamInstanceProfile"
  17759. // DisassociateIamInstanceProfileRequest generates a "aws/request.Request" representing the
  17760. // client's request for the DisassociateIamInstanceProfile operation. The "output" return
  17761. // value will be populated with the request's response once the request completes
  17762. // successfully.
  17763. //
  17764. // Use "Send" method on the returned Request to send the API call to the service.
  17765. // the "output" return value is not valid until after Send returns without error.
  17766. //
  17767. // See DisassociateIamInstanceProfile for more information on using the DisassociateIamInstanceProfile
  17768. // API call, and error handling.
  17769. //
  17770. // This method is useful when you want to inject custom logic or configuration
  17771. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17772. //
  17773. //
  17774. // // Example sending a request using the DisassociateIamInstanceProfileRequest method.
  17775. // req, resp := client.DisassociateIamInstanceProfileRequest(params)
  17776. //
  17777. // err := req.Send()
  17778. // if err == nil { // resp is now filled
  17779. // fmt.Println(resp)
  17780. // }
  17781. //
  17782. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfile
  17783. func (c *EC2) DisassociateIamInstanceProfileRequest(input *DisassociateIamInstanceProfileInput) (req *request.Request, output *DisassociateIamInstanceProfileOutput) {
  17784. op := &request.Operation{
  17785. Name: opDisassociateIamInstanceProfile,
  17786. HTTPMethod: "POST",
  17787. HTTPPath: "/",
  17788. }
  17789. if input == nil {
  17790. input = &DisassociateIamInstanceProfileInput{}
  17791. }
  17792. output = &DisassociateIamInstanceProfileOutput{}
  17793. req = c.newRequest(op, input, output)
  17794. return
  17795. }
  17796. // DisassociateIamInstanceProfile API operation for Amazon Elastic Compute Cloud.
  17797. //
  17798. // Disassociates an IAM instance profile from a running or stopped instance.
  17799. //
  17800. // Use DescribeIamInstanceProfileAssociations to get the association ID.
  17801. //
  17802. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17803. // with awserr.Error's Code and Message methods to get detailed information about
  17804. // the error.
  17805. //
  17806. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17807. // API operation DisassociateIamInstanceProfile for usage and error information.
  17808. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfile
  17809. func (c *EC2) DisassociateIamInstanceProfile(input *DisassociateIamInstanceProfileInput) (*DisassociateIamInstanceProfileOutput, error) {
  17810. req, out := c.DisassociateIamInstanceProfileRequest(input)
  17811. return out, req.Send()
  17812. }
  17813. // DisassociateIamInstanceProfileWithContext is the same as DisassociateIamInstanceProfile with the addition of
  17814. // the ability to pass a context and additional request options.
  17815. //
  17816. // See DisassociateIamInstanceProfile for details on how to use this API operation.
  17817. //
  17818. // The context must be non-nil and will be used for request cancellation. If
  17819. // the context is nil a panic will occur. In the future the SDK may create
  17820. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17821. // for more information on using Contexts.
  17822. func (c *EC2) DisassociateIamInstanceProfileWithContext(ctx aws.Context, input *DisassociateIamInstanceProfileInput, opts ...request.Option) (*DisassociateIamInstanceProfileOutput, error) {
  17823. req, out := c.DisassociateIamInstanceProfileRequest(input)
  17824. req.SetContext(ctx)
  17825. req.ApplyOptions(opts...)
  17826. return out, req.Send()
  17827. }
  17828. const opDisassociateRouteTable = "DisassociateRouteTable"
  17829. // DisassociateRouteTableRequest generates a "aws/request.Request" representing the
  17830. // client's request for the DisassociateRouteTable operation. The "output" return
  17831. // value will be populated with the request's response once the request completes
  17832. // successfully.
  17833. //
  17834. // Use "Send" method on the returned Request to send the API call to the service.
  17835. // the "output" return value is not valid until after Send returns without error.
  17836. //
  17837. // See DisassociateRouteTable for more information on using the DisassociateRouteTable
  17838. // API call, and error handling.
  17839. //
  17840. // This method is useful when you want to inject custom logic or configuration
  17841. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17842. //
  17843. //
  17844. // // Example sending a request using the DisassociateRouteTableRequest method.
  17845. // req, resp := client.DisassociateRouteTableRequest(params)
  17846. //
  17847. // err := req.Send()
  17848. // if err == nil { // resp is now filled
  17849. // fmt.Println(resp)
  17850. // }
  17851. //
  17852. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTable
  17853. func (c *EC2) DisassociateRouteTableRequest(input *DisassociateRouteTableInput) (req *request.Request, output *DisassociateRouteTableOutput) {
  17854. op := &request.Operation{
  17855. Name: opDisassociateRouteTable,
  17856. HTTPMethod: "POST",
  17857. HTTPPath: "/",
  17858. }
  17859. if input == nil {
  17860. input = &DisassociateRouteTableInput{}
  17861. }
  17862. output = &DisassociateRouteTableOutput{}
  17863. req = c.newRequest(op, input, output)
  17864. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  17865. return
  17866. }
  17867. // DisassociateRouteTable API operation for Amazon Elastic Compute Cloud.
  17868. //
  17869. // Disassociates a subnet from a route table.
  17870. //
  17871. // After you perform this action, the subnet no longer uses the routes in the
  17872. // route table. Instead, it uses the routes in the VPC's main route table. For
  17873. // more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  17874. // in the Amazon Virtual Private Cloud User Guide.
  17875. //
  17876. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17877. // with awserr.Error's Code and Message methods to get detailed information about
  17878. // the error.
  17879. //
  17880. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17881. // API operation DisassociateRouteTable for usage and error information.
  17882. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTable
  17883. func (c *EC2) DisassociateRouteTable(input *DisassociateRouteTableInput) (*DisassociateRouteTableOutput, error) {
  17884. req, out := c.DisassociateRouteTableRequest(input)
  17885. return out, req.Send()
  17886. }
  17887. // DisassociateRouteTableWithContext is the same as DisassociateRouteTable with the addition of
  17888. // the ability to pass a context and additional request options.
  17889. //
  17890. // See DisassociateRouteTable for details on how to use this API operation.
  17891. //
  17892. // The context must be non-nil and will be used for request cancellation. If
  17893. // the context is nil a panic will occur. In the future the SDK may create
  17894. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17895. // for more information on using Contexts.
  17896. func (c *EC2) DisassociateRouteTableWithContext(ctx aws.Context, input *DisassociateRouteTableInput, opts ...request.Option) (*DisassociateRouteTableOutput, error) {
  17897. req, out := c.DisassociateRouteTableRequest(input)
  17898. req.SetContext(ctx)
  17899. req.ApplyOptions(opts...)
  17900. return out, req.Send()
  17901. }
  17902. const opDisassociateSubnetCidrBlock = "DisassociateSubnetCidrBlock"
  17903. // DisassociateSubnetCidrBlockRequest generates a "aws/request.Request" representing the
  17904. // client's request for the DisassociateSubnetCidrBlock operation. The "output" return
  17905. // value will be populated with the request's response once the request completes
  17906. // successfully.
  17907. //
  17908. // Use "Send" method on the returned Request to send the API call to the service.
  17909. // the "output" return value is not valid until after Send returns without error.
  17910. //
  17911. // See DisassociateSubnetCidrBlock for more information on using the DisassociateSubnetCidrBlock
  17912. // API call, and error handling.
  17913. //
  17914. // This method is useful when you want to inject custom logic or configuration
  17915. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17916. //
  17917. //
  17918. // // Example sending a request using the DisassociateSubnetCidrBlockRequest method.
  17919. // req, resp := client.DisassociateSubnetCidrBlockRequest(params)
  17920. //
  17921. // err := req.Send()
  17922. // if err == nil { // resp is now filled
  17923. // fmt.Println(resp)
  17924. // }
  17925. //
  17926. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlock
  17927. func (c *EC2) DisassociateSubnetCidrBlockRequest(input *DisassociateSubnetCidrBlockInput) (req *request.Request, output *DisassociateSubnetCidrBlockOutput) {
  17928. op := &request.Operation{
  17929. Name: opDisassociateSubnetCidrBlock,
  17930. HTTPMethod: "POST",
  17931. HTTPPath: "/",
  17932. }
  17933. if input == nil {
  17934. input = &DisassociateSubnetCidrBlockInput{}
  17935. }
  17936. output = &DisassociateSubnetCidrBlockOutput{}
  17937. req = c.newRequest(op, input, output)
  17938. return
  17939. }
  17940. // DisassociateSubnetCidrBlock API operation for Amazon Elastic Compute Cloud.
  17941. //
  17942. // Disassociates a CIDR block from a subnet. Currently, you can disassociate
  17943. // an IPv6 CIDR block only. You must detach or delete all gateways and resources
  17944. // that are associated with the CIDR block before you can disassociate it.
  17945. //
  17946. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17947. // with awserr.Error's Code and Message methods to get detailed information about
  17948. // the error.
  17949. //
  17950. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17951. // API operation DisassociateSubnetCidrBlock for usage and error information.
  17952. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlock
  17953. func (c *EC2) DisassociateSubnetCidrBlock(input *DisassociateSubnetCidrBlockInput) (*DisassociateSubnetCidrBlockOutput, error) {
  17954. req, out := c.DisassociateSubnetCidrBlockRequest(input)
  17955. return out, req.Send()
  17956. }
  17957. // DisassociateSubnetCidrBlockWithContext is the same as DisassociateSubnetCidrBlock with the addition of
  17958. // the ability to pass a context and additional request options.
  17959. //
  17960. // See DisassociateSubnetCidrBlock for details on how to use this API operation.
  17961. //
  17962. // The context must be non-nil and will be used for request cancellation. If
  17963. // the context is nil a panic will occur. In the future the SDK may create
  17964. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17965. // for more information on using Contexts.
  17966. func (c *EC2) DisassociateSubnetCidrBlockWithContext(ctx aws.Context, input *DisassociateSubnetCidrBlockInput, opts ...request.Option) (*DisassociateSubnetCidrBlockOutput, error) {
  17967. req, out := c.DisassociateSubnetCidrBlockRequest(input)
  17968. req.SetContext(ctx)
  17969. req.ApplyOptions(opts...)
  17970. return out, req.Send()
  17971. }
  17972. const opDisassociateTransitGatewayRouteTable = "DisassociateTransitGatewayRouteTable"
  17973. // DisassociateTransitGatewayRouteTableRequest generates a "aws/request.Request" representing the
  17974. // client's request for the DisassociateTransitGatewayRouteTable operation. The "output" return
  17975. // value will be populated with the request's response once the request completes
  17976. // successfully.
  17977. //
  17978. // Use "Send" method on the returned Request to send the API call to the service.
  17979. // the "output" return value is not valid until after Send returns without error.
  17980. //
  17981. // See DisassociateTransitGatewayRouteTable for more information on using the DisassociateTransitGatewayRouteTable
  17982. // API call, and error handling.
  17983. //
  17984. // This method is useful when you want to inject custom logic or configuration
  17985. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17986. //
  17987. //
  17988. // // Example sending a request using the DisassociateTransitGatewayRouteTableRequest method.
  17989. // req, resp := client.DisassociateTransitGatewayRouteTableRequest(params)
  17990. //
  17991. // err := req.Send()
  17992. // if err == nil { // resp is now filled
  17993. // fmt.Println(resp)
  17994. // }
  17995. //
  17996. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateTransitGatewayRouteTable
  17997. func (c *EC2) DisassociateTransitGatewayRouteTableRequest(input *DisassociateTransitGatewayRouteTableInput) (req *request.Request, output *DisassociateTransitGatewayRouteTableOutput) {
  17998. op := &request.Operation{
  17999. Name: opDisassociateTransitGatewayRouteTable,
  18000. HTTPMethod: "POST",
  18001. HTTPPath: "/",
  18002. }
  18003. if input == nil {
  18004. input = &DisassociateTransitGatewayRouteTableInput{}
  18005. }
  18006. output = &DisassociateTransitGatewayRouteTableOutput{}
  18007. req = c.newRequest(op, input, output)
  18008. return
  18009. }
  18010. // DisassociateTransitGatewayRouteTable API operation for Amazon Elastic Compute Cloud.
  18011. //
  18012. // Disassociates a resource attachment from a transit gateway route table.
  18013. //
  18014. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18015. // with awserr.Error's Code and Message methods to get detailed information about
  18016. // the error.
  18017. //
  18018. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18019. // API operation DisassociateTransitGatewayRouteTable for usage and error information.
  18020. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateTransitGatewayRouteTable
  18021. func (c *EC2) DisassociateTransitGatewayRouteTable(input *DisassociateTransitGatewayRouteTableInput) (*DisassociateTransitGatewayRouteTableOutput, error) {
  18022. req, out := c.DisassociateTransitGatewayRouteTableRequest(input)
  18023. return out, req.Send()
  18024. }
  18025. // DisassociateTransitGatewayRouteTableWithContext is the same as DisassociateTransitGatewayRouteTable with the addition of
  18026. // the ability to pass a context and additional request options.
  18027. //
  18028. // See DisassociateTransitGatewayRouteTable for details on how to use this API operation.
  18029. //
  18030. // The context must be non-nil and will be used for request cancellation. If
  18031. // the context is nil a panic will occur. In the future the SDK may create
  18032. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18033. // for more information on using Contexts.
  18034. func (c *EC2) DisassociateTransitGatewayRouteTableWithContext(ctx aws.Context, input *DisassociateTransitGatewayRouteTableInput, opts ...request.Option) (*DisassociateTransitGatewayRouteTableOutput, error) {
  18035. req, out := c.DisassociateTransitGatewayRouteTableRequest(input)
  18036. req.SetContext(ctx)
  18037. req.ApplyOptions(opts...)
  18038. return out, req.Send()
  18039. }
  18040. const opDisassociateVpcCidrBlock = "DisassociateVpcCidrBlock"
  18041. // DisassociateVpcCidrBlockRequest generates a "aws/request.Request" representing the
  18042. // client's request for the DisassociateVpcCidrBlock operation. The "output" return
  18043. // value will be populated with the request's response once the request completes
  18044. // successfully.
  18045. //
  18046. // Use "Send" method on the returned Request to send the API call to the service.
  18047. // the "output" return value is not valid until after Send returns without error.
  18048. //
  18049. // See DisassociateVpcCidrBlock for more information on using the DisassociateVpcCidrBlock
  18050. // API call, and error handling.
  18051. //
  18052. // This method is useful when you want to inject custom logic or configuration
  18053. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18054. //
  18055. //
  18056. // // Example sending a request using the DisassociateVpcCidrBlockRequest method.
  18057. // req, resp := client.DisassociateVpcCidrBlockRequest(params)
  18058. //
  18059. // err := req.Send()
  18060. // if err == nil { // resp is now filled
  18061. // fmt.Println(resp)
  18062. // }
  18063. //
  18064. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlock
  18065. func (c *EC2) DisassociateVpcCidrBlockRequest(input *DisassociateVpcCidrBlockInput) (req *request.Request, output *DisassociateVpcCidrBlockOutput) {
  18066. op := &request.Operation{
  18067. Name: opDisassociateVpcCidrBlock,
  18068. HTTPMethod: "POST",
  18069. HTTPPath: "/",
  18070. }
  18071. if input == nil {
  18072. input = &DisassociateVpcCidrBlockInput{}
  18073. }
  18074. output = &DisassociateVpcCidrBlockOutput{}
  18075. req = c.newRequest(op, input, output)
  18076. return
  18077. }
  18078. // DisassociateVpcCidrBlock API operation for Amazon Elastic Compute Cloud.
  18079. //
  18080. // Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you
  18081. // must specify its association ID. You can get the association ID by using
  18082. // DescribeVpcs. You must detach or delete all gateways and resources that are
  18083. // associated with the CIDR block before you can disassociate it.
  18084. //
  18085. // You cannot disassociate the CIDR block with which you originally created
  18086. // the VPC (the primary CIDR block).
  18087. //
  18088. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18089. // with awserr.Error's Code and Message methods to get detailed information about
  18090. // the error.
  18091. //
  18092. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18093. // API operation DisassociateVpcCidrBlock for usage and error information.
  18094. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlock
  18095. func (c *EC2) DisassociateVpcCidrBlock(input *DisassociateVpcCidrBlockInput) (*DisassociateVpcCidrBlockOutput, error) {
  18096. req, out := c.DisassociateVpcCidrBlockRequest(input)
  18097. return out, req.Send()
  18098. }
  18099. // DisassociateVpcCidrBlockWithContext is the same as DisassociateVpcCidrBlock with the addition of
  18100. // the ability to pass a context and additional request options.
  18101. //
  18102. // See DisassociateVpcCidrBlock for details on how to use this API operation.
  18103. //
  18104. // The context must be non-nil and will be used for request cancellation. If
  18105. // the context is nil a panic will occur. In the future the SDK may create
  18106. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18107. // for more information on using Contexts.
  18108. func (c *EC2) DisassociateVpcCidrBlockWithContext(ctx aws.Context, input *DisassociateVpcCidrBlockInput, opts ...request.Option) (*DisassociateVpcCidrBlockOutput, error) {
  18109. req, out := c.DisassociateVpcCidrBlockRequest(input)
  18110. req.SetContext(ctx)
  18111. req.ApplyOptions(opts...)
  18112. return out, req.Send()
  18113. }
  18114. const opEnableTransitGatewayRouteTablePropagation = "EnableTransitGatewayRouteTablePropagation"
  18115. // EnableTransitGatewayRouteTablePropagationRequest generates a "aws/request.Request" representing the
  18116. // client's request for the EnableTransitGatewayRouteTablePropagation operation. The "output" return
  18117. // value will be populated with the request's response once the request completes
  18118. // successfully.
  18119. //
  18120. // Use "Send" method on the returned Request to send the API call to the service.
  18121. // the "output" return value is not valid until after Send returns without error.
  18122. //
  18123. // See EnableTransitGatewayRouteTablePropagation for more information on using the EnableTransitGatewayRouteTablePropagation
  18124. // API call, and error handling.
  18125. //
  18126. // This method is useful when you want to inject custom logic or configuration
  18127. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18128. //
  18129. //
  18130. // // Example sending a request using the EnableTransitGatewayRouteTablePropagationRequest method.
  18131. // req, resp := client.EnableTransitGatewayRouteTablePropagationRequest(params)
  18132. //
  18133. // err := req.Send()
  18134. // if err == nil { // resp is now filled
  18135. // fmt.Println(resp)
  18136. // }
  18137. //
  18138. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableTransitGatewayRouteTablePropagation
  18139. func (c *EC2) EnableTransitGatewayRouteTablePropagationRequest(input *EnableTransitGatewayRouteTablePropagationInput) (req *request.Request, output *EnableTransitGatewayRouteTablePropagationOutput) {
  18140. op := &request.Operation{
  18141. Name: opEnableTransitGatewayRouteTablePropagation,
  18142. HTTPMethod: "POST",
  18143. HTTPPath: "/",
  18144. }
  18145. if input == nil {
  18146. input = &EnableTransitGatewayRouteTablePropagationInput{}
  18147. }
  18148. output = &EnableTransitGatewayRouteTablePropagationOutput{}
  18149. req = c.newRequest(op, input, output)
  18150. return
  18151. }
  18152. // EnableTransitGatewayRouteTablePropagation API operation for Amazon Elastic Compute Cloud.
  18153. //
  18154. // Enables the specified attachment to propagate routes to the specified propagation
  18155. // route table.
  18156. //
  18157. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18158. // with awserr.Error's Code and Message methods to get detailed information about
  18159. // the error.
  18160. //
  18161. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18162. // API operation EnableTransitGatewayRouteTablePropagation for usage and error information.
  18163. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableTransitGatewayRouteTablePropagation
  18164. func (c *EC2) EnableTransitGatewayRouteTablePropagation(input *EnableTransitGatewayRouteTablePropagationInput) (*EnableTransitGatewayRouteTablePropagationOutput, error) {
  18165. req, out := c.EnableTransitGatewayRouteTablePropagationRequest(input)
  18166. return out, req.Send()
  18167. }
  18168. // EnableTransitGatewayRouteTablePropagationWithContext is the same as EnableTransitGatewayRouteTablePropagation with the addition of
  18169. // the ability to pass a context and additional request options.
  18170. //
  18171. // See EnableTransitGatewayRouteTablePropagation for details on how to use this API operation.
  18172. //
  18173. // The context must be non-nil and will be used for request cancellation. If
  18174. // the context is nil a panic will occur. In the future the SDK may create
  18175. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18176. // for more information on using Contexts.
  18177. func (c *EC2) EnableTransitGatewayRouteTablePropagationWithContext(ctx aws.Context, input *EnableTransitGatewayRouteTablePropagationInput, opts ...request.Option) (*EnableTransitGatewayRouteTablePropagationOutput, error) {
  18178. req, out := c.EnableTransitGatewayRouteTablePropagationRequest(input)
  18179. req.SetContext(ctx)
  18180. req.ApplyOptions(opts...)
  18181. return out, req.Send()
  18182. }
  18183. const opEnableVgwRoutePropagation = "EnableVgwRoutePropagation"
  18184. // EnableVgwRoutePropagationRequest generates a "aws/request.Request" representing the
  18185. // client's request for the EnableVgwRoutePropagation operation. The "output" return
  18186. // value will be populated with the request's response once the request completes
  18187. // successfully.
  18188. //
  18189. // Use "Send" method on the returned Request to send the API call to the service.
  18190. // the "output" return value is not valid until after Send returns without error.
  18191. //
  18192. // See EnableVgwRoutePropagation for more information on using the EnableVgwRoutePropagation
  18193. // API call, and error handling.
  18194. //
  18195. // This method is useful when you want to inject custom logic or configuration
  18196. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18197. //
  18198. //
  18199. // // Example sending a request using the EnableVgwRoutePropagationRequest method.
  18200. // req, resp := client.EnableVgwRoutePropagationRequest(params)
  18201. //
  18202. // err := req.Send()
  18203. // if err == nil { // resp is now filled
  18204. // fmt.Println(resp)
  18205. // }
  18206. //
  18207. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation
  18208. func (c *EC2) EnableVgwRoutePropagationRequest(input *EnableVgwRoutePropagationInput) (req *request.Request, output *EnableVgwRoutePropagationOutput) {
  18209. op := &request.Operation{
  18210. Name: opEnableVgwRoutePropagation,
  18211. HTTPMethod: "POST",
  18212. HTTPPath: "/",
  18213. }
  18214. if input == nil {
  18215. input = &EnableVgwRoutePropagationInput{}
  18216. }
  18217. output = &EnableVgwRoutePropagationOutput{}
  18218. req = c.newRequest(op, input, output)
  18219. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  18220. return
  18221. }
  18222. // EnableVgwRoutePropagation API operation for Amazon Elastic Compute Cloud.
  18223. //
  18224. // Enables a virtual private gateway (VGW) to propagate routes to the specified
  18225. // route table of a VPC.
  18226. //
  18227. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18228. // with awserr.Error's Code and Message methods to get detailed information about
  18229. // the error.
  18230. //
  18231. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18232. // API operation EnableVgwRoutePropagation for usage and error information.
  18233. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation
  18234. func (c *EC2) EnableVgwRoutePropagation(input *EnableVgwRoutePropagationInput) (*EnableVgwRoutePropagationOutput, error) {
  18235. req, out := c.EnableVgwRoutePropagationRequest(input)
  18236. return out, req.Send()
  18237. }
  18238. // EnableVgwRoutePropagationWithContext is the same as EnableVgwRoutePropagation with the addition of
  18239. // the ability to pass a context and additional request options.
  18240. //
  18241. // See EnableVgwRoutePropagation for details on how to use this API operation.
  18242. //
  18243. // The context must be non-nil and will be used for request cancellation. If
  18244. // the context is nil a panic will occur. In the future the SDK may create
  18245. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18246. // for more information on using Contexts.
  18247. func (c *EC2) EnableVgwRoutePropagationWithContext(ctx aws.Context, input *EnableVgwRoutePropagationInput, opts ...request.Option) (*EnableVgwRoutePropagationOutput, error) {
  18248. req, out := c.EnableVgwRoutePropagationRequest(input)
  18249. req.SetContext(ctx)
  18250. req.ApplyOptions(opts...)
  18251. return out, req.Send()
  18252. }
  18253. const opEnableVolumeIO = "EnableVolumeIO"
  18254. // EnableVolumeIORequest generates a "aws/request.Request" representing the
  18255. // client's request for the EnableVolumeIO operation. The "output" return
  18256. // value will be populated with the request's response once the request completes
  18257. // successfully.
  18258. //
  18259. // Use "Send" method on the returned Request to send the API call to the service.
  18260. // the "output" return value is not valid until after Send returns without error.
  18261. //
  18262. // See EnableVolumeIO for more information on using the EnableVolumeIO
  18263. // API call, and error handling.
  18264. //
  18265. // This method is useful when you want to inject custom logic or configuration
  18266. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18267. //
  18268. //
  18269. // // Example sending a request using the EnableVolumeIORequest method.
  18270. // req, resp := client.EnableVolumeIORequest(params)
  18271. //
  18272. // err := req.Send()
  18273. // if err == nil { // resp is now filled
  18274. // fmt.Println(resp)
  18275. // }
  18276. //
  18277. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIO
  18278. func (c *EC2) EnableVolumeIORequest(input *EnableVolumeIOInput) (req *request.Request, output *EnableVolumeIOOutput) {
  18279. op := &request.Operation{
  18280. Name: opEnableVolumeIO,
  18281. HTTPMethod: "POST",
  18282. HTTPPath: "/",
  18283. }
  18284. if input == nil {
  18285. input = &EnableVolumeIOInput{}
  18286. }
  18287. output = &EnableVolumeIOOutput{}
  18288. req = c.newRequest(op, input, output)
  18289. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  18290. return
  18291. }
  18292. // EnableVolumeIO API operation for Amazon Elastic Compute Cloud.
  18293. //
  18294. // Enables I/O operations for a volume that had I/O operations disabled because
  18295. // the data on the volume was potentially inconsistent.
  18296. //
  18297. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18298. // with awserr.Error's Code and Message methods to get detailed information about
  18299. // the error.
  18300. //
  18301. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18302. // API operation EnableVolumeIO for usage and error information.
  18303. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIO
  18304. func (c *EC2) EnableVolumeIO(input *EnableVolumeIOInput) (*EnableVolumeIOOutput, error) {
  18305. req, out := c.EnableVolumeIORequest(input)
  18306. return out, req.Send()
  18307. }
  18308. // EnableVolumeIOWithContext is the same as EnableVolumeIO with the addition of
  18309. // the ability to pass a context and additional request options.
  18310. //
  18311. // See EnableVolumeIO for details on how to use this API operation.
  18312. //
  18313. // The context must be non-nil and will be used for request cancellation. If
  18314. // the context is nil a panic will occur. In the future the SDK may create
  18315. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18316. // for more information on using Contexts.
  18317. func (c *EC2) EnableVolumeIOWithContext(ctx aws.Context, input *EnableVolumeIOInput, opts ...request.Option) (*EnableVolumeIOOutput, error) {
  18318. req, out := c.EnableVolumeIORequest(input)
  18319. req.SetContext(ctx)
  18320. req.ApplyOptions(opts...)
  18321. return out, req.Send()
  18322. }
  18323. const opEnableVpcClassicLink = "EnableVpcClassicLink"
  18324. // EnableVpcClassicLinkRequest generates a "aws/request.Request" representing the
  18325. // client's request for the EnableVpcClassicLink operation. The "output" return
  18326. // value will be populated with the request's response once the request completes
  18327. // successfully.
  18328. //
  18329. // Use "Send" method on the returned Request to send the API call to the service.
  18330. // the "output" return value is not valid until after Send returns without error.
  18331. //
  18332. // See EnableVpcClassicLink for more information on using the EnableVpcClassicLink
  18333. // API call, and error handling.
  18334. //
  18335. // This method is useful when you want to inject custom logic or configuration
  18336. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18337. //
  18338. //
  18339. // // Example sending a request using the EnableVpcClassicLinkRequest method.
  18340. // req, resp := client.EnableVpcClassicLinkRequest(params)
  18341. //
  18342. // err := req.Send()
  18343. // if err == nil { // resp is now filled
  18344. // fmt.Println(resp)
  18345. // }
  18346. //
  18347. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLink
  18348. func (c *EC2) EnableVpcClassicLinkRequest(input *EnableVpcClassicLinkInput) (req *request.Request, output *EnableVpcClassicLinkOutput) {
  18349. op := &request.Operation{
  18350. Name: opEnableVpcClassicLink,
  18351. HTTPMethod: "POST",
  18352. HTTPPath: "/",
  18353. }
  18354. if input == nil {
  18355. input = &EnableVpcClassicLinkInput{}
  18356. }
  18357. output = &EnableVpcClassicLinkOutput{}
  18358. req = c.newRequest(op, input, output)
  18359. return
  18360. }
  18361. // EnableVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  18362. //
  18363. // Enables a VPC for ClassicLink. You can then link EC2-Classic instances to
  18364. // your ClassicLink-enabled VPC to allow communication over private IP addresses.
  18365. // You cannot enable your VPC for ClassicLink if any of your VPC route tables
  18366. // have existing routes for address ranges within the 10.0.0.0/8 IP address
  18367. // range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16
  18368. // IP address ranges. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  18369. // in the Amazon Elastic Compute Cloud User Guide.
  18370. //
  18371. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18372. // with awserr.Error's Code and Message methods to get detailed information about
  18373. // the error.
  18374. //
  18375. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18376. // API operation EnableVpcClassicLink for usage and error information.
  18377. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLink
  18378. func (c *EC2) EnableVpcClassicLink(input *EnableVpcClassicLinkInput) (*EnableVpcClassicLinkOutput, error) {
  18379. req, out := c.EnableVpcClassicLinkRequest(input)
  18380. return out, req.Send()
  18381. }
  18382. // EnableVpcClassicLinkWithContext is the same as EnableVpcClassicLink with the addition of
  18383. // the ability to pass a context and additional request options.
  18384. //
  18385. // See EnableVpcClassicLink for details on how to use this API operation.
  18386. //
  18387. // The context must be non-nil and will be used for request cancellation. If
  18388. // the context is nil a panic will occur. In the future the SDK may create
  18389. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18390. // for more information on using Contexts.
  18391. func (c *EC2) EnableVpcClassicLinkWithContext(ctx aws.Context, input *EnableVpcClassicLinkInput, opts ...request.Option) (*EnableVpcClassicLinkOutput, error) {
  18392. req, out := c.EnableVpcClassicLinkRequest(input)
  18393. req.SetContext(ctx)
  18394. req.ApplyOptions(opts...)
  18395. return out, req.Send()
  18396. }
  18397. const opEnableVpcClassicLinkDnsSupport = "EnableVpcClassicLinkDnsSupport"
  18398. // EnableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  18399. // client's request for the EnableVpcClassicLinkDnsSupport operation. The "output" return
  18400. // value will be populated with the request's response once the request completes
  18401. // successfully.
  18402. //
  18403. // Use "Send" method on the returned Request to send the API call to the service.
  18404. // the "output" return value is not valid until after Send returns without error.
  18405. //
  18406. // See EnableVpcClassicLinkDnsSupport for more information on using the EnableVpcClassicLinkDnsSupport
  18407. // API call, and error handling.
  18408. //
  18409. // This method is useful when you want to inject custom logic or configuration
  18410. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18411. //
  18412. //
  18413. // // Example sending a request using the EnableVpcClassicLinkDnsSupportRequest method.
  18414. // req, resp := client.EnableVpcClassicLinkDnsSupportRequest(params)
  18415. //
  18416. // err := req.Send()
  18417. // if err == nil { // resp is now filled
  18418. // fmt.Println(resp)
  18419. // }
  18420. //
  18421. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupport
  18422. func (c *EC2) EnableVpcClassicLinkDnsSupportRequest(input *EnableVpcClassicLinkDnsSupportInput) (req *request.Request, output *EnableVpcClassicLinkDnsSupportOutput) {
  18423. op := &request.Operation{
  18424. Name: opEnableVpcClassicLinkDnsSupport,
  18425. HTTPMethod: "POST",
  18426. HTTPPath: "/",
  18427. }
  18428. if input == nil {
  18429. input = &EnableVpcClassicLinkDnsSupportInput{}
  18430. }
  18431. output = &EnableVpcClassicLinkDnsSupportOutput{}
  18432. req = c.newRequest(op, input, output)
  18433. return
  18434. }
  18435. // EnableVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  18436. //
  18437. // Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled,
  18438. // the DNS hostname of a linked EC2-Classic instance resolves to its private
  18439. // IP address when addressed from an instance in the VPC to which it's linked.
  18440. // Similarly, the DNS hostname of an instance in a VPC resolves to its private
  18441. // IP address when addressed from a linked EC2-Classic instance. For more information,
  18442. // see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  18443. // in the Amazon Elastic Compute Cloud User Guide.
  18444. //
  18445. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18446. // with awserr.Error's Code and Message methods to get detailed information about
  18447. // the error.
  18448. //
  18449. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18450. // API operation EnableVpcClassicLinkDnsSupport for usage and error information.
  18451. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupport
  18452. func (c *EC2) EnableVpcClassicLinkDnsSupport(input *EnableVpcClassicLinkDnsSupportInput) (*EnableVpcClassicLinkDnsSupportOutput, error) {
  18453. req, out := c.EnableVpcClassicLinkDnsSupportRequest(input)
  18454. return out, req.Send()
  18455. }
  18456. // EnableVpcClassicLinkDnsSupportWithContext is the same as EnableVpcClassicLinkDnsSupport with the addition of
  18457. // the ability to pass a context and additional request options.
  18458. //
  18459. // See EnableVpcClassicLinkDnsSupport for details on how to use this API operation.
  18460. //
  18461. // The context must be non-nil and will be used for request cancellation. If
  18462. // the context is nil a panic will occur. In the future the SDK may create
  18463. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18464. // for more information on using Contexts.
  18465. func (c *EC2) EnableVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *EnableVpcClassicLinkDnsSupportInput, opts ...request.Option) (*EnableVpcClassicLinkDnsSupportOutput, error) {
  18466. req, out := c.EnableVpcClassicLinkDnsSupportRequest(input)
  18467. req.SetContext(ctx)
  18468. req.ApplyOptions(opts...)
  18469. return out, req.Send()
  18470. }
  18471. const opExportClientVpnClientCertificateRevocationList = "ExportClientVpnClientCertificateRevocationList"
  18472. // ExportClientVpnClientCertificateRevocationListRequest generates a "aws/request.Request" representing the
  18473. // client's request for the ExportClientVpnClientCertificateRevocationList operation. The "output" return
  18474. // value will be populated with the request's response once the request completes
  18475. // successfully.
  18476. //
  18477. // Use "Send" method on the returned Request to send the API call to the service.
  18478. // the "output" return value is not valid until after Send returns without error.
  18479. //
  18480. // See ExportClientVpnClientCertificateRevocationList for more information on using the ExportClientVpnClientCertificateRevocationList
  18481. // API call, and error handling.
  18482. //
  18483. // This method is useful when you want to inject custom logic or configuration
  18484. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18485. //
  18486. //
  18487. // // Example sending a request using the ExportClientVpnClientCertificateRevocationListRequest method.
  18488. // req, resp := client.ExportClientVpnClientCertificateRevocationListRequest(params)
  18489. //
  18490. // err := req.Send()
  18491. // if err == nil { // resp is now filled
  18492. // fmt.Println(resp)
  18493. // }
  18494. //
  18495. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportClientVpnClientCertificateRevocationList
  18496. func (c *EC2) ExportClientVpnClientCertificateRevocationListRequest(input *ExportClientVpnClientCertificateRevocationListInput) (req *request.Request, output *ExportClientVpnClientCertificateRevocationListOutput) {
  18497. op := &request.Operation{
  18498. Name: opExportClientVpnClientCertificateRevocationList,
  18499. HTTPMethod: "POST",
  18500. HTTPPath: "/",
  18501. }
  18502. if input == nil {
  18503. input = &ExportClientVpnClientCertificateRevocationListInput{}
  18504. }
  18505. output = &ExportClientVpnClientCertificateRevocationListOutput{}
  18506. req = c.newRequest(op, input, output)
  18507. return
  18508. }
  18509. // ExportClientVpnClientCertificateRevocationList API operation for Amazon Elastic Compute Cloud.
  18510. //
  18511. // Downloads the client certificate revocation list for the specified Client
  18512. // VPN endpoint.
  18513. //
  18514. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18515. // with awserr.Error's Code and Message methods to get detailed information about
  18516. // the error.
  18517. //
  18518. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18519. // API operation ExportClientVpnClientCertificateRevocationList for usage and error information.
  18520. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportClientVpnClientCertificateRevocationList
  18521. func (c *EC2) ExportClientVpnClientCertificateRevocationList(input *ExportClientVpnClientCertificateRevocationListInput) (*ExportClientVpnClientCertificateRevocationListOutput, error) {
  18522. req, out := c.ExportClientVpnClientCertificateRevocationListRequest(input)
  18523. return out, req.Send()
  18524. }
  18525. // ExportClientVpnClientCertificateRevocationListWithContext is the same as ExportClientVpnClientCertificateRevocationList with the addition of
  18526. // the ability to pass a context and additional request options.
  18527. //
  18528. // See ExportClientVpnClientCertificateRevocationList for details on how to use this API operation.
  18529. //
  18530. // The context must be non-nil and will be used for request cancellation. If
  18531. // the context is nil a panic will occur. In the future the SDK may create
  18532. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18533. // for more information on using Contexts.
  18534. func (c *EC2) ExportClientVpnClientCertificateRevocationListWithContext(ctx aws.Context, input *ExportClientVpnClientCertificateRevocationListInput, opts ...request.Option) (*ExportClientVpnClientCertificateRevocationListOutput, error) {
  18535. req, out := c.ExportClientVpnClientCertificateRevocationListRequest(input)
  18536. req.SetContext(ctx)
  18537. req.ApplyOptions(opts...)
  18538. return out, req.Send()
  18539. }
  18540. const opExportClientVpnClientConfiguration = "ExportClientVpnClientConfiguration"
  18541. // ExportClientVpnClientConfigurationRequest generates a "aws/request.Request" representing the
  18542. // client's request for the ExportClientVpnClientConfiguration operation. The "output" return
  18543. // value will be populated with the request's response once the request completes
  18544. // successfully.
  18545. //
  18546. // Use "Send" method on the returned Request to send the API call to the service.
  18547. // the "output" return value is not valid until after Send returns without error.
  18548. //
  18549. // See ExportClientVpnClientConfiguration for more information on using the ExportClientVpnClientConfiguration
  18550. // API call, and error handling.
  18551. //
  18552. // This method is useful when you want to inject custom logic or configuration
  18553. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18554. //
  18555. //
  18556. // // Example sending a request using the ExportClientVpnClientConfigurationRequest method.
  18557. // req, resp := client.ExportClientVpnClientConfigurationRequest(params)
  18558. //
  18559. // err := req.Send()
  18560. // if err == nil { // resp is now filled
  18561. // fmt.Println(resp)
  18562. // }
  18563. //
  18564. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportClientVpnClientConfiguration
  18565. func (c *EC2) ExportClientVpnClientConfigurationRequest(input *ExportClientVpnClientConfigurationInput) (req *request.Request, output *ExportClientVpnClientConfigurationOutput) {
  18566. op := &request.Operation{
  18567. Name: opExportClientVpnClientConfiguration,
  18568. HTTPMethod: "POST",
  18569. HTTPPath: "/",
  18570. }
  18571. if input == nil {
  18572. input = &ExportClientVpnClientConfigurationInput{}
  18573. }
  18574. output = &ExportClientVpnClientConfigurationOutput{}
  18575. req = c.newRequest(op, input, output)
  18576. return
  18577. }
  18578. // ExportClientVpnClientConfiguration API operation for Amazon Elastic Compute Cloud.
  18579. //
  18580. // Downloads the contents of the Client VPN endpoint configuration file for
  18581. // the specified Client VPN endpoint. The Client VPN endpoint configuration
  18582. // file includes the Client VPN endpoint and certificate information clients
  18583. // need to establish a connection with the Client VPN endpoint.
  18584. //
  18585. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18586. // with awserr.Error's Code and Message methods to get detailed information about
  18587. // the error.
  18588. //
  18589. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18590. // API operation ExportClientVpnClientConfiguration for usage and error information.
  18591. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportClientVpnClientConfiguration
  18592. func (c *EC2) ExportClientVpnClientConfiguration(input *ExportClientVpnClientConfigurationInput) (*ExportClientVpnClientConfigurationOutput, error) {
  18593. req, out := c.ExportClientVpnClientConfigurationRequest(input)
  18594. return out, req.Send()
  18595. }
  18596. // ExportClientVpnClientConfigurationWithContext is the same as ExportClientVpnClientConfiguration with the addition of
  18597. // the ability to pass a context and additional request options.
  18598. //
  18599. // See ExportClientVpnClientConfiguration for details on how to use this API operation.
  18600. //
  18601. // The context must be non-nil and will be used for request cancellation. If
  18602. // the context is nil a panic will occur. In the future the SDK may create
  18603. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18604. // for more information on using Contexts.
  18605. func (c *EC2) ExportClientVpnClientConfigurationWithContext(ctx aws.Context, input *ExportClientVpnClientConfigurationInput, opts ...request.Option) (*ExportClientVpnClientConfigurationOutput, error) {
  18606. req, out := c.ExportClientVpnClientConfigurationRequest(input)
  18607. req.SetContext(ctx)
  18608. req.ApplyOptions(opts...)
  18609. return out, req.Send()
  18610. }
  18611. const opExportTransitGatewayRoutes = "ExportTransitGatewayRoutes"
  18612. // ExportTransitGatewayRoutesRequest generates a "aws/request.Request" representing the
  18613. // client's request for the ExportTransitGatewayRoutes operation. The "output" return
  18614. // value will be populated with the request's response once the request completes
  18615. // successfully.
  18616. //
  18617. // Use "Send" method on the returned Request to send the API call to the service.
  18618. // the "output" return value is not valid until after Send returns without error.
  18619. //
  18620. // See ExportTransitGatewayRoutes for more information on using the ExportTransitGatewayRoutes
  18621. // API call, and error handling.
  18622. //
  18623. // This method is useful when you want to inject custom logic or configuration
  18624. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18625. //
  18626. //
  18627. // // Example sending a request using the ExportTransitGatewayRoutesRequest method.
  18628. // req, resp := client.ExportTransitGatewayRoutesRequest(params)
  18629. //
  18630. // err := req.Send()
  18631. // if err == nil { // resp is now filled
  18632. // fmt.Println(resp)
  18633. // }
  18634. //
  18635. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportTransitGatewayRoutes
  18636. func (c *EC2) ExportTransitGatewayRoutesRequest(input *ExportTransitGatewayRoutesInput) (req *request.Request, output *ExportTransitGatewayRoutesOutput) {
  18637. op := &request.Operation{
  18638. Name: opExportTransitGatewayRoutes,
  18639. HTTPMethod: "POST",
  18640. HTTPPath: "/",
  18641. }
  18642. if input == nil {
  18643. input = &ExportTransitGatewayRoutesInput{}
  18644. }
  18645. output = &ExportTransitGatewayRoutesOutput{}
  18646. req = c.newRequest(op, input, output)
  18647. return
  18648. }
  18649. // ExportTransitGatewayRoutes API operation for Amazon Elastic Compute Cloud.
  18650. //
  18651. // Exports routes from the specified transit gateway route table to the specified
  18652. // S3 bucket. By default, all routes are exported. Alternatively, you can filter
  18653. // by CIDR range.
  18654. //
  18655. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18656. // with awserr.Error's Code and Message methods to get detailed information about
  18657. // the error.
  18658. //
  18659. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18660. // API operation ExportTransitGatewayRoutes for usage and error information.
  18661. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportTransitGatewayRoutes
  18662. func (c *EC2) ExportTransitGatewayRoutes(input *ExportTransitGatewayRoutesInput) (*ExportTransitGatewayRoutesOutput, error) {
  18663. req, out := c.ExportTransitGatewayRoutesRequest(input)
  18664. return out, req.Send()
  18665. }
  18666. // ExportTransitGatewayRoutesWithContext is the same as ExportTransitGatewayRoutes with the addition of
  18667. // the ability to pass a context and additional request options.
  18668. //
  18669. // See ExportTransitGatewayRoutes for details on how to use this API operation.
  18670. //
  18671. // The context must be non-nil and will be used for request cancellation. If
  18672. // the context is nil a panic will occur. In the future the SDK may create
  18673. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18674. // for more information on using Contexts.
  18675. func (c *EC2) ExportTransitGatewayRoutesWithContext(ctx aws.Context, input *ExportTransitGatewayRoutesInput, opts ...request.Option) (*ExportTransitGatewayRoutesOutput, error) {
  18676. req, out := c.ExportTransitGatewayRoutesRequest(input)
  18677. req.SetContext(ctx)
  18678. req.ApplyOptions(opts...)
  18679. return out, req.Send()
  18680. }
  18681. const opGetConsoleOutput = "GetConsoleOutput"
  18682. // GetConsoleOutputRequest generates a "aws/request.Request" representing the
  18683. // client's request for the GetConsoleOutput operation. The "output" return
  18684. // value will be populated with the request's response once the request completes
  18685. // successfully.
  18686. //
  18687. // Use "Send" method on the returned Request to send the API call to the service.
  18688. // the "output" return value is not valid until after Send returns without error.
  18689. //
  18690. // See GetConsoleOutput for more information on using the GetConsoleOutput
  18691. // API call, and error handling.
  18692. //
  18693. // This method is useful when you want to inject custom logic or configuration
  18694. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18695. //
  18696. //
  18697. // // Example sending a request using the GetConsoleOutputRequest method.
  18698. // req, resp := client.GetConsoleOutputRequest(params)
  18699. //
  18700. // err := req.Send()
  18701. // if err == nil { // resp is now filled
  18702. // fmt.Println(resp)
  18703. // }
  18704. //
  18705. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutput
  18706. func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *request.Request, output *GetConsoleOutputOutput) {
  18707. op := &request.Operation{
  18708. Name: opGetConsoleOutput,
  18709. HTTPMethod: "POST",
  18710. HTTPPath: "/",
  18711. }
  18712. if input == nil {
  18713. input = &GetConsoleOutputInput{}
  18714. }
  18715. output = &GetConsoleOutputOutput{}
  18716. req = c.newRequest(op, input, output)
  18717. return
  18718. }
  18719. // GetConsoleOutput API operation for Amazon Elastic Compute Cloud.
  18720. //
  18721. // Gets the console output for the specified instance. For Linux instances,
  18722. // the instance console output displays the exact console output that would
  18723. // normally be displayed on a physical monitor attached to a computer. For Windows
  18724. // instances, the instance console output includes the last three system event
  18725. // log errors.
  18726. //
  18727. // By default, the console output returns buffered information that was posted
  18728. // shortly after an instance transition state (start, stop, reboot, or terminate).
  18729. // This information is available for at least one hour after the most recent
  18730. // post. Only the most recent 64 KB of console output is available.
  18731. //
  18732. // You can optionally retrieve the latest serial console output at any time
  18733. // during the instance lifecycle. This option is supported on instance types
  18734. // that use the Nitro hypervisor.
  18735. //
  18736. // For more information, see Instance Console Output (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html#instance-console-console-output)
  18737. // in the Amazon Elastic Compute Cloud User Guide.
  18738. //
  18739. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18740. // with awserr.Error's Code and Message methods to get detailed information about
  18741. // the error.
  18742. //
  18743. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18744. // API operation GetConsoleOutput for usage and error information.
  18745. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutput
  18746. func (c *EC2) GetConsoleOutput(input *GetConsoleOutputInput) (*GetConsoleOutputOutput, error) {
  18747. req, out := c.GetConsoleOutputRequest(input)
  18748. return out, req.Send()
  18749. }
  18750. // GetConsoleOutputWithContext is the same as GetConsoleOutput with the addition of
  18751. // the ability to pass a context and additional request options.
  18752. //
  18753. // See GetConsoleOutput for details on how to use this API operation.
  18754. //
  18755. // The context must be non-nil and will be used for request cancellation. If
  18756. // the context is nil a panic will occur. In the future the SDK may create
  18757. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18758. // for more information on using Contexts.
  18759. func (c *EC2) GetConsoleOutputWithContext(ctx aws.Context, input *GetConsoleOutputInput, opts ...request.Option) (*GetConsoleOutputOutput, error) {
  18760. req, out := c.GetConsoleOutputRequest(input)
  18761. req.SetContext(ctx)
  18762. req.ApplyOptions(opts...)
  18763. return out, req.Send()
  18764. }
  18765. const opGetConsoleScreenshot = "GetConsoleScreenshot"
  18766. // GetConsoleScreenshotRequest generates a "aws/request.Request" representing the
  18767. // client's request for the GetConsoleScreenshot operation. The "output" return
  18768. // value will be populated with the request's response once the request completes
  18769. // successfully.
  18770. //
  18771. // Use "Send" method on the returned Request to send the API call to the service.
  18772. // the "output" return value is not valid until after Send returns without error.
  18773. //
  18774. // See GetConsoleScreenshot for more information on using the GetConsoleScreenshot
  18775. // API call, and error handling.
  18776. //
  18777. // This method is useful when you want to inject custom logic or configuration
  18778. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18779. //
  18780. //
  18781. // // Example sending a request using the GetConsoleScreenshotRequest method.
  18782. // req, resp := client.GetConsoleScreenshotRequest(params)
  18783. //
  18784. // err := req.Send()
  18785. // if err == nil { // resp is now filled
  18786. // fmt.Println(resp)
  18787. // }
  18788. //
  18789. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshot
  18790. func (c *EC2) GetConsoleScreenshotRequest(input *GetConsoleScreenshotInput) (req *request.Request, output *GetConsoleScreenshotOutput) {
  18791. op := &request.Operation{
  18792. Name: opGetConsoleScreenshot,
  18793. HTTPMethod: "POST",
  18794. HTTPPath: "/",
  18795. }
  18796. if input == nil {
  18797. input = &GetConsoleScreenshotInput{}
  18798. }
  18799. output = &GetConsoleScreenshotOutput{}
  18800. req = c.newRequest(op, input, output)
  18801. return
  18802. }
  18803. // GetConsoleScreenshot API operation for Amazon Elastic Compute Cloud.
  18804. //
  18805. // Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.
  18806. //
  18807. // The returned content is Base64-encoded.
  18808. //
  18809. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18810. // with awserr.Error's Code and Message methods to get detailed information about
  18811. // the error.
  18812. //
  18813. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18814. // API operation GetConsoleScreenshot for usage and error information.
  18815. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshot
  18816. func (c *EC2) GetConsoleScreenshot(input *GetConsoleScreenshotInput) (*GetConsoleScreenshotOutput, error) {
  18817. req, out := c.GetConsoleScreenshotRequest(input)
  18818. return out, req.Send()
  18819. }
  18820. // GetConsoleScreenshotWithContext is the same as GetConsoleScreenshot with the addition of
  18821. // the ability to pass a context and additional request options.
  18822. //
  18823. // See GetConsoleScreenshot for details on how to use this API operation.
  18824. //
  18825. // The context must be non-nil and will be used for request cancellation. If
  18826. // the context is nil a panic will occur. In the future the SDK may create
  18827. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18828. // for more information on using Contexts.
  18829. func (c *EC2) GetConsoleScreenshotWithContext(ctx aws.Context, input *GetConsoleScreenshotInput, opts ...request.Option) (*GetConsoleScreenshotOutput, error) {
  18830. req, out := c.GetConsoleScreenshotRequest(input)
  18831. req.SetContext(ctx)
  18832. req.ApplyOptions(opts...)
  18833. return out, req.Send()
  18834. }
  18835. const opGetHostReservationPurchasePreview = "GetHostReservationPurchasePreview"
  18836. // GetHostReservationPurchasePreviewRequest generates a "aws/request.Request" representing the
  18837. // client's request for the GetHostReservationPurchasePreview operation. The "output" return
  18838. // value will be populated with the request's response once the request completes
  18839. // successfully.
  18840. //
  18841. // Use "Send" method on the returned Request to send the API call to the service.
  18842. // the "output" return value is not valid until after Send returns without error.
  18843. //
  18844. // See GetHostReservationPurchasePreview for more information on using the GetHostReservationPurchasePreview
  18845. // API call, and error handling.
  18846. //
  18847. // This method is useful when you want to inject custom logic or configuration
  18848. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18849. //
  18850. //
  18851. // // Example sending a request using the GetHostReservationPurchasePreviewRequest method.
  18852. // req, resp := client.GetHostReservationPurchasePreviewRequest(params)
  18853. //
  18854. // err := req.Send()
  18855. // if err == nil { // resp is now filled
  18856. // fmt.Println(resp)
  18857. // }
  18858. //
  18859. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreview
  18860. func (c *EC2) GetHostReservationPurchasePreviewRequest(input *GetHostReservationPurchasePreviewInput) (req *request.Request, output *GetHostReservationPurchasePreviewOutput) {
  18861. op := &request.Operation{
  18862. Name: opGetHostReservationPurchasePreview,
  18863. HTTPMethod: "POST",
  18864. HTTPPath: "/",
  18865. }
  18866. if input == nil {
  18867. input = &GetHostReservationPurchasePreviewInput{}
  18868. }
  18869. output = &GetHostReservationPurchasePreviewOutput{}
  18870. req = c.newRequest(op, input, output)
  18871. return
  18872. }
  18873. // GetHostReservationPurchasePreview API operation for Amazon Elastic Compute Cloud.
  18874. //
  18875. // Preview a reservation purchase with configurations that match those of your
  18876. // Dedicated Host. You must have active Dedicated Hosts in your account before
  18877. // you purchase a reservation.
  18878. //
  18879. // This is a preview of the PurchaseHostReservation action and does not result
  18880. // in the offering being purchased.
  18881. //
  18882. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18883. // with awserr.Error's Code and Message methods to get detailed information about
  18884. // the error.
  18885. //
  18886. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18887. // API operation GetHostReservationPurchasePreview for usage and error information.
  18888. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreview
  18889. func (c *EC2) GetHostReservationPurchasePreview(input *GetHostReservationPurchasePreviewInput) (*GetHostReservationPurchasePreviewOutput, error) {
  18890. req, out := c.GetHostReservationPurchasePreviewRequest(input)
  18891. return out, req.Send()
  18892. }
  18893. // GetHostReservationPurchasePreviewWithContext is the same as GetHostReservationPurchasePreview with the addition of
  18894. // the ability to pass a context and additional request options.
  18895. //
  18896. // See GetHostReservationPurchasePreview for details on how to use this API operation.
  18897. //
  18898. // The context must be non-nil and will be used for request cancellation. If
  18899. // the context is nil a panic will occur. In the future the SDK may create
  18900. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18901. // for more information on using Contexts.
  18902. func (c *EC2) GetHostReservationPurchasePreviewWithContext(ctx aws.Context, input *GetHostReservationPurchasePreviewInput, opts ...request.Option) (*GetHostReservationPurchasePreviewOutput, error) {
  18903. req, out := c.GetHostReservationPurchasePreviewRequest(input)
  18904. req.SetContext(ctx)
  18905. req.ApplyOptions(opts...)
  18906. return out, req.Send()
  18907. }
  18908. const opGetLaunchTemplateData = "GetLaunchTemplateData"
  18909. // GetLaunchTemplateDataRequest generates a "aws/request.Request" representing the
  18910. // client's request for the GetLaunchTemplateData operation. The "output" return
  18911. // value will be populated with the request's response once the request completes
  18912. // successfully.
  18913. //
  18914. // Use "Send" method on the returned Request to send the API call to the service.
  18915. // the "output" return value is not valid until after Send returns without error.
  18916. //
  18917. // See GetLaunchTemplateData for more information on using the GetLaunchTemplateData
  18918. // API call, and error handling.
  18919. //
  18920. // This method is useful when you want to inject custom logic or configuration
  18921. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18922. //
  18923. //
  18924. // // Example sending a request using the GetLaunchTemplateDataRequest method.
  18925. // req, resp := client.GetLaunchTemplateDataRequest(params)
  18926. //
  18927. // err := req.Send()
  18928. // if err == nil { // resp is now filled
  18929. // fmt.Println(resp)
  18930. // }
  18931. //
  18932. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData
  18933. func (c *EC2) GetLaunchTemplateDataRequest(input *GetLaunchTemplateDataInput) (req *request.Request, output *GetLaunchTemplateDataOutput) {
  18934. op := &request.Operation{
  18935. Name: opGetLaunchTemplateData,
  18936. HTTPMethod: "POST",
  18937. HTTPPath: "/",
  18938. }
  18939. if input == nil {
  18940. input = &GetLaunchTemplateDataInput{}
  18941. }
  18942. output = &GetLaunchTemplateDataOutput{}
  18943. req = c.newRequest(op, input, output)
  18944. return
  18945. }
  18946. // GetLaunchTemplateData API operation for Amazon Elastic Compute Cloud.
  18947. //
  18948. // Retrieves the configuration data of the specified instance. You can use this
  18949. // data to create a launch template.
  18950. //
  18951. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18952. // with awserr.Error's Code and Message methods to get detailed information about
  18953. // the error.
  18954. //
  18955. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18956. // API operation GetLaunchTemplateData for usage and error information.
  18957. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData
  18958. func (c *EC2) GetLaunchTemplateData(input *GetLaunchTemplateDataInput) (*GetLaunchTemplateDataOutput, error) {
  18959. req, out := c.GetLaunchTemplateDataRequest(input)
  18960. return out, req.Send()
  18961. }
  18962. // GetLaunchTemplateDataWithContext is the same as GetLaunchTemplateData with the addition of
  18963. // the ability to pass a context and additional request options.
  18964. //
  18965. // See GetLaunchTemplateData for details on how to use this API operation.
  18966. //
  18967. // The context must be non-nil and will be used for request cancellation. If
  18968. // the context is nil a panic will occur. In the future the SDK may create
  18969. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18970. // for more information on using Contexts.
  18971. func (c *EC2) GetLaunchTemplateDataWithContext(ctx aws.Context, input *GetLaunchTemplateDataInput, opts ...request.Option) (*GetLaunchTemplateDataOutput, error) {
  18972. req, out := c.GetLaunchTemplateDataRequest(input)
  18973. req.SetContext(ctx)
  18974. req.ApplyOptions(opts...)
  18975. return out, req.Send()
  18976. }
  18977. const opGetPasswordData = "GetPasswordData"
  18978. // GetPasswordDataRequest generates a "aws/request.Request" representing the
  18979. // client's request for the GetPasswordData operation. The "output" return
  18980. // value will be populated with the request's response once the request completes
  18981. // successfully.
  18982. //
  18983. // Use "Send" method on the returned Request to send the API call to the service.
  18984. // the "output" return value is not valid until after Send returns without error.
  18985. //
  18986. // See GetPasswordData for more information on using the GetPasswordData
  18987. // API call, and error handling.
  18988. //
  18989. // This method is useful when you want to inject custom logic or configuration
  18990. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18991. //
  18992. //
  18993. // // Example sending a request using the GetPasswordDataRequest method.
  18994. // req, resp := client.GetPasswordDataRequest(params)
  18995. //
  18996. // err := req.Send()
  18997. // if err == nil { // resp is now filled
  18998. // fmt.Println(resp)
  18999. // }
  19000. //
  19001. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordData
  19002. func (c *EC2) GetPasswordDataRequest(input *GetPasswordDataInput) (req *request.Request, output *GetPasswordDataOutput) {
  19003. op := &request.Operation{
  19004. Name: opGetPasswordData,
  19005. HTTPMethod: "POST",
  19006. HTTPPath: "/",
  19007. }
  19008. if input == nil {
  19009. input = &GetPasswordDataInput{}
  19010. }
  19011. output = &GetPasswordDataOutput{}
  19012. req = c.newRequest(op, input, output)
  19013. return
  19014. }
  19015. // GetPasswordData API operation for Amazon Elastic Compute Cloud.
  19016. //
  19017. // Retrieves the encrypted administrator password for a running Windows instance.
  19018. //
  19019. // The Windows password is generated at boot by the EC2Config service or EC2Launch
  19020. // scripts (Windows Server 2016 and later). This usually only happens the first
  19021. // time an instance is launched. For more information, see EC2Config (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/UsingConfig_WinAMI.html)
  19022. // and EC2Launch (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2launch.html)
  19023. // in the Amazon Elastic Compute Cloud User Guide.
  19024. //
  19025. // For the EC2Config service, the password is not generated for rebundled AMIs
  19026. // unless Ec2SetPassword is enabled before bundling.
  19027. //
  19028. // The password is encrypted using the key pair that you specified when you
  19029. // launched the instance. You must provide the corresponding key pair file.
  19030. //
  19031. // When you launch an instance, password generation and encryption may take
  19032. // a few minutes. If you try to retrieve the password before it's available,
  19033. // the output returns an empty string. We recommend that you wait up to 15 minutes
  19034. // after launching an instance before trying to retrieve the generated password.
  19035. //
  19036. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19037. // with awserr.Error's Code and Message methods to get detailed information about
  19038. // the error.
  19039. //
  19040. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19041. // API operation GetPasswordData for usage and error information.
  19042. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordData
  19043. func (c *EC2) GetPasswordData(input *GetPasswordDataInput) (*GetPasswordDataOutput, error) {
  19044. req, out := c.GetPasswordDataRequest(input)
  19045. return out, req.Send()
  19046. }
  19047. // GetPasswordDataWithContext is the same as GetPasswordData with the addition of
  19048. // the ability to pass a context and additional request options.
  19049. //
  19050. // See GetPasswordData for details on how to use this API operation.
  19051. //
  19052. // The context must be non-nil and will be used for request cancellation. If
  19053. // the context is nil a panic will occur. In the future the SDK may create
  19054. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19055. // for more information on using Contexts.
  19056. func (c *EC2) GetPasswordDataWithContext(ctx aws.Context, input *GetPasswordDataInput, opts ...request.Option) (*GetPasswordDataOutput, error) {
  19057. req, out := c.GetPasswordDataRequest(input)
  19058. req.SetContext(ctx)
  19059. req.ApplyOptions(opts...)
  19060. return out, req.Send()
  19061. }
  19062. const opGetReservedInstancesExchangeQuote = "GetReservedInstancesExchangeQuote"
  19063. // GetReservedInstancesExchangeQuoteRequest generates a "aws/request.Request" representing the
  19064. // client's request for the GetReservedInstancesExchangeQuote operation. The "output" return
  19065. // value will be populated with the request's response once the request completes
  19066. // successfully.
  19067. //
  19068. // Use "Send" method on the returned Request to send the API call to the service.
  19069. // the "output" return value is not valid until after Send returns without error.
  19070. //
  19071. // See GetReservedInstancesExchangeQuote for more information on using the GetReservedInstancesExchangeQuote
  19072. // API call, and error handling.
  19073. //
  19074. // This method is useful when you want to inject custom logic or configuration
  19075. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19076. //
  19077. //
  19078. // // Example sending a request using the GetReservedInstancesExchangeQuoteRequest method.
  19079. // req, resp := client.GetReservedInstancesExchangeQuoteRequest(params)
  19080. //
  19081. // err := req.Send()
  19082. // if err == nil { // resp is now filled
  19083. // fmt.Println(resp)
  19084. // }
  19085. //
  19086. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuote
  19087. func (c *EC2) GetReservedInstancesExchangeQuoteRequest(input *GetReservedInstancesExchangeQuoteInput) (req *request.Request, output *GetReservedInstancesExchangeQuoteOutput) {
  19088. op := &request.Operation{
  19089. Name: opGetReservedInstancesExchangeQuote,
  19090. HTTPMethod: "POST",
  19091. HTTPPath: "/",
  19092. }
  19093. if input == nil {
  19094. input = &GetReservedInstancesExchangeQuoteInput{}
  19095. }
  19096. output = &GetReservedInstancesExchangeQuoteOutput{}
  19097. req = c.newRequest(op, input, output)
  19098. return
  19099. }
  19100. // GetReservedInstancesExchangeQuote API operation for Amazon Elastic Compute Cloud.
  19101. //
  19102. // Returns a quote and exchange information for exchanging one or more specified
  19103. // Convertible Reserved Instances for a new Convertible Reserved Instance. If
  19104. // the exchange cannot be performed, the reason is returned in the response.
  19105. // Use AcceptReservedInstancesExchangeQuote to perform the exchange.
  19106. //
  19107. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19108. // with awserr.Error's Code and Message methods to get detailed information about
  19109. // the error.
  19110. //
  19111. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19112. // API operation GetReservedInstancesExchangeQuote for usage and error information.
  19113. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuote
  19114. func (c *EC2) GetReservedInstancesExchangeQuote(input *GetReservedInstancesExchangeQuoteInput) (*GetReservedInstancesExchangeQuoteOutput, error) {
  19115. req, out := c.GetReservedInstancesExchangeQuoteRequest(input)
  19116. return out, req.Send()
  19117. }
  19118. // GetReservedInstancesExchangeQuoteWithContext is the same as GetReservedInstancesExchangeQuote with the addition of
  19119. // the ability to pass a context and additional request options.
  19120. //
  19121. // See GetReservedInstancesExchangeQuote for details on how to use this API operation.
  19122. //
  19123. // The context must be non-nil and will be used for request cancellation. If
  19124. // the context is nil a panic will occur. In the future the SDK may create
  19125. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19126. // for more information on using Contexts.
  19127. func (c *EC2) GetReservedInstancesExchangeQuoteWithContext(ctx aws.Context, input *GetReservedInstancesExchangeQuoteInput, opts ...request.Option) (*GetReservedInstancesExchangeQuoteOutput, error) {
  19128. req, out := c.GetReservedInstancesExchangeQuoteRequest(input)
  19129. req.SetContext(ctx)
  19130. req.ApplyOptions(opts...)
  19131. return out, req.Send()
  19132. }
  19133. const opGetTransitGatewayAttachmentPropagations = "GetTransitGatewayAttachmentPropagations"
  19134. // GetTransitGatewayAttachmentPropagationsRequest generates a "aws/request.Request" representing the
  19135. // client's request for the GetTransitGatewayAttachmentPropagations operation. The "output" return
  19136. // value will be populated with the request's response once the request completes
  19137. // successfully.
  19138. //
  19139. // Use "Send" method on the returned Request to send the API call to the service.
  19140. // the "output" return value is not valid until after Send returns without error.
  19141. //
  19142. // See GetTransitGatewayAttachmentPropagations for more information on using the GetTransitGatewayAttachmentPropagations
  19143. // API call, and error handling.
  19144. //
  19145. // This method is useful when you want to inject custom logic or configuration
  19146. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19147. //
  19148. //
  19149. // // Example sending a request using the GetTransitGatewayAttachmentPropagationsRequest method.
  19150. // req, resp := client.GetTransitGatewayAttachmentPropagationsRequest(params)
  19151. //
  19152. // err := req.Send()
  19153. // if err == nil { // resp is now filled
  19154. // fmt.Println(resp)
  19155. // }
  19156. //
  19157. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayAttachmentPropagations
  19158. func (c *EC2) GetTransitGatewayAttachmentPropagationsRequest(input *GetTransitGatewayAttachmentPropagationsInput) (req *request.Request, output *GetTransitGatewayAttachmentPropagationsOutput) {
  19159. op := &request.Operation{
  19160. Name: opGetTransitGatewayAttachmentPropagations,
  19161. HTTPMethod: "POST",
  19162. HTTPPath: "/",
  19163. }
  19164. if input == nil {
  19165. input = &GetTransitGatewayAttachmentPropagationsInput{}
  19166. }
  19167. output = &GetTransitGatewayAttachmentPropagationsOutput{}
  19168. req = c.newRequest(op, input, output)
  19169. return
  19170. }
  19171. // GetTransitGatewayAttachmentPropagations API operation for Amazon Elastic Compute Cloud.
  19172. //
  19173. // Lists the route tables to which the specified resource attachment propagates
  19174. // routes.
  19175. //
  19176. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19177. // with awserr.Error's Code and Message methods to get detailed information about
  19178. // the error.
  19179. //
  19180. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19181. // API operation GetTransitGatewayAttachmentPropagations for usage and error information.
  19182. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayAttachmentPropagations
  19183. func (c *EC2) GetTransitGatewayAttachmentPropagations(input *GetTransitGatewayAttachmentPropagationsInput) (*GetTransitGatewayAttachmentPropagationsOutput, error) {
  19184. req, out := c.GetTransitGatewayAttachmentPropagationsRequest(input)
  19185. return out, req.Send()
  19186. }
  19187. // GetTransitGatewayAttachmentPropagationsWithContext is the same as GetTransitGatewayAttachmentPropagations with the addition of
  19188. // the ability to pass a context and additional request options.
  19189. //
  19190. // See GetTransitGatewayAttachmentPropagations for details on how to use this API operation.
  19191. //
  19192. // The context must be non-nil and will be used for request cancellation. If
  19193. // the context is nil a panic will occur. In the future the SDK may create
  19194. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19195. // for more information on using Contexts.
  19196. func (c *EC2) GetTransitGatewayAttachmentPropagationsWithContext(ctx aws.Context, input *GetTransitGatewayAttachmentPropagationsInput, opts ...request.Option) (*GetTransitGatewayAttachmentPropagationsOutput, error) {
  19197. req, out := c.GetTransitGatewayAttachmentPropagationsRequest(input)
  19198. req.SetContext(ctx)
  19199. req.ApplyOptions(opts...)
  19200. return out, req.Send()
  19201. }
  19202. const opGetTransitGatewayRouteTableAssociations = "GetTransitGatewayRouteTableAssociations"
  19203. // GetTransitGatewayRouteTableAssociationsRequest generates a "aws/request.Request" representing the
  19204. // client's request for the GetTransitGatewayRouteTableAssociations operation. The "output" return
  19205. // value will be populated with the request's response once the request completes
  19206. // successfully.
  19207. //
  19208. // Use "Send" method on the returned Request to send the API call to the service.
  19209. // the "output" return value is not valid until after Send returns without error.
  19210. //
  19211. // See GetTransitGatewayRouteTableAssociations for more information on using the GetTransitGatewayRouteTableAssociations
  19212. // API call, and error handling.
  19213. //
  19214. // This method is useful when you want to inject custom logic or configuration
  19215. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19216. //
  19217. //
  19218. // // Example sending a request using the GetTransitGatewayRouteTableAssociationsRequest method.
  19219. // req, resp := client.GetTransitGatewayRouteTableAssociationsRequest(params)
  19220. //
  19221. // err := req.Send()
  19222. // if err == nil { // resp is now filled
  19223. // fmt.Println(resp)
  19224. // }
  19225. //
  19226. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTableAssociations
  19227. func (c *EC2) GetTransitGatewayRouteTableAssociationsRequest(input *GetTransitGatewayRouteTableAssociationsInput) (req *request.Request, output *GetTransitGatewayRouteTableAssociationsOutput) {
  19228. op := &request.Operation{
  19229. Name: opGetTransitGatewayRouteTableAssociations,
  19230. HTTPMethod: "POST",
  19231. HTTPPath: "/",
  19232. }
  19233. if input == nil {
  19234. input = &GetTransitGatewayRouteTableAssociationsInput{}
  19235. }
  19236. output = &GetTransitGatewayRouteTableAssociationsOutput{}
  19237. req = c.newRequest(op, input, output)
  19238. return
  19239. }
  19240. // GetTransitGatewayRouteTableAssociations API operation for Amazon Elastic Compute Cloud.
  19241. //
  19242. // Gets information about the associations for the specified transit gateway
  19243. // route table.
  19244. //
  19245. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19246. // with awserr.Error's Code and Message methods to get detailed information about
  19247. // the error.
  19248. //
  19249. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19250. // API operation GetTransitGatewayRouteTableAssociations for usage and error information.
  19251. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTableAssociations
  19252. func (c *EC2) GetTransitGatewayRouteTableAssociations(input *GetTransitGatewayRouteTableAssociationsInput) (*GetTransitGatewayRouteTableAssociationsOutput, error) {
  19253. req, out := c.GetTransitGatewayRouteTableAssociationsRequest(input)
  19254. return out, req.Send()
  19255. }
  19256. // GetTransitGatewayRouteTableAssociationsWithContext is the same as GetTransitGatewayRouteTableAssociations with the addition of
  19257. // the ability to pass a context and additional request options.
  19258. //
  19259. // See GetTransitGatewayRouteTableAssociations for details on how to use this API operation.
  19260. //
  19261. // The context must be non-nil and will be used for request cancellation. If
  19262. // the context is nil a panic will occur. In the future the SDK may create
  19263. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19264. // for more information on using Contexts.
  19265. func (c *EC2) GetTransitGatewayRouteTableAssociationsWithContext(ctx aws.Context, input *GetTransitGatewayRouteTableAssociationsInput, opts ...request.Option) (*GetTransitGatewayRouteTableAssociationsOutput, error) {
  19266. req, out := c.GetTransitGatewayRouteTableAssociationsRequest(input)
  19267. req.SetContext(ctx)
  19268. req.ApplyOptions(opts...)
  19269. return out, req.Send()
  19270. }
  19271. const opGetTransitGatewayRouteTablePropagations = "GetTransitGatewayRouteTablePropagations"
  19272. // GetTransitGatewayRouteTablePropagationsRequest generates a "aws/request.Request" representing the
  19273. // client's request for the GetTransitGatewayRouteTablePropagations operation. The "output" return
  19274. // value will be populated with the request's response once the request completes
  19275. // successfully.
  19276. //
  19277. // Use "Send" method on the returned Request to send the API call to the service.
  19278. // the "output" return value is not valid until after Send returns without error.
  19279. //
  19280. // See GetTransitGatewayRouteTablePropagations for more information on using the GetTransitGatewayRouteTablePropagations
  19281. // API call, and error handling.
  19282. //
  19283. // This method is useful when you want to inject custom logic or configuration
  19284. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19285. //
  19286. //
  19287. // // Example sending a request using the GetTransitGatewayRouteTablePropagationsRequest method.
  19288. // req, resp := client.GetTransitGatewayRouteTablePropagationsRequest(params)
  19289. //
  19290. // err := req.Send()
  19291. // if err == nil { // resp is now filled
  19292. // fmt.Println(resp)
  19293. // }
  19294. //
  19295. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTablePropagations
  19296. func (c *EC2) GetTransitGatewayRouteTablePropagationsRequest(input *GetTransitGatewayRouteTablePropagationsInput) (req *request.Request, output *GetTransitGatewayRouteTablePropagationsOutput) {
  19297. op := &request.Operation{
  19298. Name: opGetTransitGatewayRouteTablePropagations,
  19299. HTTPMethod: "POST",
  19300. HTTPPath: "/",
  19301. }
  19302. if input == nil {
  19303. input = &GetTransitGatewayRouteTablePropagationsInput{}
  19304. }
  19305. output = &GetTransitGatewayRouteTablePropagationsOutput{}
  19306. req = c.newRequest(op, input, output)
  19307. return
  19308. }
  19309. // GetTransitGatewayRouteTablePropagations API operation for Amazon Elastic Compute Cloud.
  19310. //
  19311. // Gets information about the route table propagations for the specified transit
  19312. // gateway route table.
  19313. //
  19314. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19315. // with awserr.Error's Code and Message methods to get detailed information about
  19316. // the error.
  19317. //
  19318. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19319. // API operation GetTransitGatewayRouteTablePropagations for usage and error information.
  19320. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTablePropagations
  19321. func (c *EC2) GetTransitGatewayRouteTablePropagations(input *GetTransitGatewayRouteTablePropagationsInput) (*GetTransitGatewayRouteTablePropagationsOutput, error) {
  19322. req, out := c.GetTransitGatewayRouteTablePropagationsRequest(input)
  19323. return out, req.Send()
  19324. }
  19325. // GetTransitGatewayRouteTablePropagationsWithContext is the same as GetTransitGatewayRouteTablePropagations with the addition of
  19326. // the ability to pass a context and additional request options.
  19327. //
  19328. // See GetTransitGatewayRouteTablePropagations for details on how to use this API operation.
  19329. //
  19330. // The context must be non-nil and will be used for request cancellation. If
  19331. // the context is nil a panic will occur. In the future the SDK may create
  19332. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19333. // for more information on using Contexts.
  19334. func (c *EC2) GetTransitGatewayRouteTablePropagationsWithContext(ctx aws.Context, input *GetTransitGatewayRouteTablePropagationsInput, opts ...request.Option) (*GetTransitGatewayRouteTablePropagationsOutput, error) {
  19335. req, out := c.GetTransitGatewayRouteTablePropagationsRequest(input)
  19336. req.SetContext(ctx)
  19337. req.ApplyOptions(opts...)
  19338. return out, req.Send()
  19339. }
  19340. const opImportClientVpnClientCertificateRevocationList = "ImportClientVpnClientCertificateRevocationList"
  19341. // ImportClientVpnClientCertificateRevocationListRequest generates a "aws/request.Request" representing the
  19342. // client's request for the ImportClientVpnClientCertificateRevocationList operation. The "output" return
  19343. // value will be populated with the request's response once the request completes
  19344. // successfully.
  19345. //
  19346. // Use "Send" method on the returned Request to send the API call to the service.
  19347. // the "output" return value is not valid until after Send returns without error.
  19348. //
  19349. // See ImportClientVpnClientCertificateRevocationList for more information on using the ImportClientVpnClientCertificateRevocationList
  19350. // API call, and error handling.
  19351. //
  19352. // This method is useful when you want to inject custom logic or configuration
  19353. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19354. //
  19355. //
  19356. // // Example sending a request using the ImportClientVpnClientCertificateRevocationListRequest method.
  19357. // req, resp := client.ImportClientVpnClientCertificateRevocationListRequest(params)
  19358. //
  19359. // err := req.Send()
  19360. // if err == nil { // resp is now filled
  19361. // fmt.Println(resp)
  19362. // }
  19363. //
  19364. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportClientVpnClientCertificateRevocationList
  19365. func (c *EC2) ImportClientVpnClientCertificateRevocationListRequest(input *ImportClientVpnClientCertificateRevocationListInput) (req *request.Request, output *ImportClientVpnClientCertificateRevocationListOutput) {
  19366. op := &request.Operation{
  19367. Name: opImportClientVpnClientCertificateRevocationList,
  19368. HTTPMethod: "POST",
  19369. HTTPPath: "/",
  19370. }
  19371. if input == nil {
  19372. input = &ImportClientVpnClientCertificateRevocationListInput{}
  19373. }
  19374. output = &ImportClientVpnClientCertificateRevocationListOutput{}
  19375. req = c.newRequest(op, input, output)
  19376. return
  19377. }
  19378. // ImportClientVpnClientCertificateRevocationList API operation for Amazon Elastic Compute Cloud.
  19379. //
  19380. // Uploads a client certificate revocation list to the specified Client VPN
  19381. // endpoint. Uploading a client certificate revocation list overwrites the existing
  19382. // client certificate revocation list.
  19383. //
  19384. // Uploading a client certificate revocation list resets existing client connections.
  19385. //
  19386. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19387. // with awserr.Error's Code and Message methods to get detailed information about
  19388. // the error.
  19389. //
  19390. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19391. // API operation ImportClientVpnClientCertificateRevocationList for usage and error information.
  19392. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportClientVpnClientCertificateRevocationList
  19393. func (c *EC2) ImportClientVpnClientCertificateRevocationList(input *ImportClientVpnClientCertificateRevocationListInput) (*ImportClientVpnClientCertificateRevocationListOutput, error) {
  19394. req, out := c.ImportClientVpnClientCertificateRevocationListRequest(input)
  19395. return out, req.Send()
  19396. }
  19397. // ImportClientVpnClientCertificateRevocationListWithContext is the same as ImportClientVpnClientCertificateRevocationList with the addition of
  19398. // the ability to pass a context and additional request options.
  19399. //
  19400. // See ImportClientVpnClientCertificateRevocationList for details on how to use this API operation.
  19401. //
  19402. // The context must be non-nil and will be used for request cancellation. If
  19403. // the context is nil a panic will occur. In the future the SDK may create
  19404. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19405. // for more information on using Contexts.
  19406. func (c *EC2) ImportClientVpnClientCertificateRevocationListWithContext(ctx aws.Context, input *ImportClientVpnClientCertificateRevocationListInput, opts ...request.Option) (*ImportClientVpnClientCertificateRevocationListOutput, error) {
  19407. req, out := c.ImportClientVpnClientCertificateRevocationListRequest(input)
  19408. req.SetContext(ctx)
  19409. req.ApplyOptions(opts...)
  19410. return out, req.Send()
  19411. }
  19412. const opImportImage = "ImportImage"
  19413. // ImportImageRequest generates a "aws/request.Request" representing the
  19414. // client's request for the ImportImage operation. The "output" return
  19415. // value will be populated with the request's response once the request completes
  19416. // successfully.
  19417. //
  19418. // Use "Send" method on the returned Request to send the API call to the service.
  19419. // the "output" return value is not valid until after Send returns without error.
  19420. //
  19421. // See ImportImage for more information on using the ImportImage
  19422. // API call, and error handling.
  19423. //
  19424. // This method is useful when you want to inject custom logic or configuration
  19425. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19426. //
  19427. //
  19428. // // Example sending a request using the ImportImageRequest method.
  19429. // req, resp := client.ImportImageRequest(params)
  19430. //
  19431. // err := req.Send()
  19432. // if err == nil { // resp is now filled
  19433. // fmt.Println(resp)
  19434. // }
  19435. //
  19436. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImage
  19437. func (c *EC2) ImportImageRequest(input *ImportImageInput) (req *request.Request, output *ImportImageOutput) {
  19438. op := &request.Operation{
  19439. Name: opImportImage,
  19440. HTTPMethod: "POST",
  19441. HTTPPath: "/",
  19442. }
  19443. if input == nil {
  19444. input = &ImportImageInput{}
  19445. }
  19446. output = &ImportImageOutput{}
  19447. req = c.newRequest(op, input, output)
  19448. return
  19449. }
  19450. // ImportImage API operation for Amazon Elastic Compute Cloud.
  19451. //
  19452. // Import single or multi-volume disk images or EBS snapshots into an Amazon
  19453. // Machine Image (AMI). For more information, see Importing a VM as an Image
  19454. // Using VM Import/Export (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html)
  19455. // in the VM Import/Export User Guide.
  19456. //
  19457. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19458. // with awserr.Error's Code and Message methods to get detailed information about
  19459. // the error.
  19460. //
  19461. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19462. // API operation ImportImage for usage and error information.
  19463. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImage
  19464. func (c *EC2) ImportImage(input *ImportImageInput) (*ImportImageOutput, error) {
  19465. req, out := c.ImportImageRequest(input)
  19466. return out, req.Send()
  19467. }
  19468. // ImportImageWithContext is the same as ImportImage with the addition of
  19469. // the ability to pass a context and additional request options.
  19470. //
  19471. // See ImportImage for details on how to use this API operation.
  19472. //
  19473. // The context must be non-nil and will be used for request cancellation. If
  19474. // the context is nil a panic will occur. In the future the SDK may create
  19475. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19476. // for more information on using Contexts.
  19477. func (c *EC2) ImportImageWithContext(ctx aws.Context, input *ImportImageInput, opts ...request.Option) (*ImportImageOutput, error) {
  19478. req, out := c.ImportImageRequest(input)
  19479. req.SetContext(ctx)
  19480. req.ApplyOptions(opts...)
  19481. return out, req.Send()
  19482. }
  19483. const opImportInstance = "ImportInstance"
  19484. // ImportInstanceRequest generates a "aws/request.Request" representing the
  19485. // client's request for the ImportInstance operation. The "output" return
  19486. // value will be populated with the request's response once the request completes
  19487. // successfully.
  19488. //
  19489. // Use "Send" method on the returned Request to send the API call to the service.
  19490. // the "output" return value is not valid until after Send returns without error.
  19491. //
  19492. // See ImportInstance for more information on using the ImportInstance
  19493. // API call, and error handling.
  19494. //
  19495. // This method is useful when you want to inject custom logic or configuration
  19496. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19497. //
  19498. //
  19499. // // Example sending a request using the ImportInstanceRequest method.
  19500. // req, resp := client.ImportInstanceRequest(params)
  19501. //
  19502. // err := req.Send()
  19503. // if err == nil { // resp is now filled
  19504. // fmt.Println(resp)
  19505. // }
  19506. //
  19507. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance
  19508. func (c *EC2) ImportInstanceRequest(input *ImportInstanceInput) (req *request.Request, output *ImportInstanceOutput) {
  19509. op := &request.Operation{
  19510. Name: opImportInstance,
  19511. HTTPMethod: "POST",
  19512. HTTPPath: "/",
  19513. }
  19514. if input == nil {
  19515. input = &ImportInstanceInput{}
  19516. }
  19517. output = &ImportInstanceOutput{}
  19518. req = c.newRequest(op, input, output)
  19519. return
  19520. }
  19521. // ImportInstance API operation for Amazon Elastic Compute Cloud.
  19522. //
  19523. // Creates an import instance task using metadata from the specified disk image.
  19524. // ImportInstance only supports single-volume VMs. To import multi-volume VMs,
  19525. // use ImportImage. For more information, see Importing a Virtual Machine Using
  19526. // the Amazon EC2 CLI (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html).
  19527. //
  19528. // For information about the import manifest referenced by this API action,
  19529. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  19530. //
  19531. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19532. // with awserr.Error's Code and Message methods to get detailed information about
  19533. // the error.
  19534. //
  19535. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19536. // API operation ImportInstance for usage and error information.
  19537. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance
  19538. func (c *EC2) ImportInstance(input *ImportInstanceInput) (*ImportInstanceOutput, error) {
  19539. req, out := c.ImportInstanceRequest(input)
  19540. return out, req.Send()
  19541. }
  19542. // ImportInstanceWithContext is the same as ImportInstance with the addition of
  19543. // the ability to pass a context and additional request options.
  19544. //
  19545. // See ImportInstance for details on how to use this API operation.
  19546. //
  19547. // The context must be non-nil and will be used for request cancellation. If
  19548. // the context is nil a panic will occur. In the future the SDK may create
  19549. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19550. // for more information on using Contexts.
  19551. func (c *EC2) ImportInstanceWithContext(ctx aws.Context, input *ImportInstanceInput, opts ...request.Option) (*ImportInstanceOutput, error) {
  19552. req, out := c.ImportInstanceRequest(input)
  19553. req.SetContext(ctx)
  19554. req.ApplyOptions(opts...)
  19555. return out, req.Send()
  19556. }
  19557. const opImportKeyPair = "ImportKeyPair"
  19558. // ImportKeyPairRequest generates a "aws/request.Request" representing the
  19559. // client's request for the ImportKeyPair operation. The "output" return
  19560. // value will be populated with the request's response once the request completes
  19561. // successfully.
  19562. //
  19563. // Use "Send" method on the returned Request to send the API call to the service.
  19564. // the "output" return value is not valid until after Send returns without error.
  19565. //
  19566. // See ImportKeyPair for more information on using the ImportKeyPair
  19567. // API call, and error handling.
  19568. //
  19569. // This method is useful when you want to inject custom logic or configuration
  19570. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19571. //
  19572. //
  19573. // // Example sending a request using the ImportKeyPairRequest method.
  19574. // req, resp := client.ImportKeyPairRequest(params)
  19575. //
  19576. // err := req.Send()
  19577. // if err == nil { // resp is now filled
  19578. // fmt.Println(resp)
  19579. // }
  19580. //
  19581. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair
  19582. func (c *EC2) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Request, output *ImportKeyPairOutput) {
  19583. op := &request.Operation{
  19584. Name: opImportKeyPair,
  19585. HTTPMethod: "POST",
  19586. HTTPPath: "/",
  19587. }
  19588. if input == nil {
  19589. input = &ImportKeyPairInput{}
  19590. }
  19591. output = &ImportKeyPairOutput{}
  19592. req = c.newRequest(op, input, output)
  19593. return
  19594. }
  19595. // ImportKeyPair API operation for Amazon Elastic Compute Cloud.
  19596. //
  19597. // Imports the public key from an RSA key pair that you created with a third-party
  19598. // tool. Compare this with CreateKeyPair, in which AWS creates the key pair
  19599. // and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair,
  19600. // you create the key pair and give AWS just the public key. The private key
  19601. // is never transferred between you and AWS.
  19602. //
  19603. // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  19604. // in the Amazon Elastic Compute Cloud User Guide.
  19605. //
  19606. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19607. // with awserr.Error's Code and Message methods to get detailed information about
  19608. // the error.
  19609. //
  19610. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19611. // API operation ImportKeyPair for usage and error information.
  19612. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair
  19613. func (c *EC2) ImportKeyPair(input *ImportKeyPairInput) (*ImportKeyPairOutput, error) {
  19614. req, out := c.ImportKeyPairRequest(input)
  19615. return out, req.Send()
  19616. }
  19617. // ImportKeyPairWithContext is the same as ImportKeyPair with the addition of
  19618. // the ability to pass a context and additional request options.
  19619. //
  19620. // See ImportKeyPair for details on how to use this API operation.
  19621. //
  19622. // The context must be non-nil and will be used for request cancellation. If
  19623. // the context is nil a panic will occur. In the future the SDK may create
  19624. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19625. // for more information on using Contexts.
  19626. func (c *EC2) ImportKeyPairWithContext(ctx aws.Context, input *ImportKeyPairInput, opts ...request.Option) (*ImportKeyPairOutput, error) {
  19627. req, out := c.ImportKeyPairRequest(input)
  19628. req.SetContext(ctx)
  19629. req.ApplyOptions(opts...)
  19630. return out, req.Send()
  19631. }
  19632. const opImportSnapshot = "ImportSnapshot"
  19633. // ImportSnapshotRequest generates a "aws/request.Request" representing the
  19634. // client's request for the ImportSnapshot operation. The "output" return
  19635. // value will be populated with the request's response once the request completes
  19636. // successfully.
  19637. //
  19638. // Use "Send" method on the returned Request to send the API call to the service.
  19639. // the "output" return value is not valid until after Send returns without error.
  19640. //
  19641. // See ImportSnapshot for more information on using the ImportSnapshot
  19642. // API call, and error handling.
  19643. //
  19644. // This method is useful when you want to inject custom logic or configuration
  19645. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19646. //
  19647. //
  19648. // // Example sending a request using the ImportSnapshotRequest method.
  19649. // req, resp := client.ImportSnapshotRequest(params)
  19650. //
  19651. // err := req.Send()
  19652. // if err == nil { // resp is now filled
  19653. // fmt.Println(resp)
  19654. // }
  19655. //
  19656. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshot
  19657. func (c *EC2) ImportSnapshotRequest(input *ImportSnapshotInput) (req *request.Request, output *ImportSnapshotOutput) {
  19658. op := &request.Operation{
  19659. Name: opImportSnapshot,
  19660. HTTPMethod: "POST",
  19661. HTTPPath: "/",
  19662. }
  19663. if input == nil {
  19664. input = &ImportSnapshotInput{}
  19665. }
  19666. output = &ImportSnapshotOutput{}
  19667. req = c.newRequest(op, input, output)
  19668. return
  19669. }
  19670. // ImportSnapshot API operation for Amazon Elastic Compute Cloud.
  19671. //
  19672. // Imports a disk into an EBS snapshot.
  19673. //
  19674. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19675. // with awserr.Error's Code and Message methods to get detailed information about
  19676. // the error.
  19677. //
  19678. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19679. // API operation ImportSnapshot for usage and error information.
  19680. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshot
  19681. func (c *EC2) ImportSnapshot(input *ImportSnapshotInput) (*ImportSnapshotOutput, error) {
  19682. req, out := c.ImportSnapshotRequest(input)
  19683. return out, req.Send()
  19684. }
  19685. // ImportSnapshotWithContext is the same as ImportSnapshot with the addition of
  19686. // the ability to pass a context and additional request options.
  19687. //
  19688. // See ImportSnapshot for details on how to use this API operation.
  19689. //
  19690. // The context must be non-nil and will be used for request cancellation. If
  19691. // the context is nil a panic will occur. In the future the SDK may create
  19692. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19693. // for more information on using Contexts.
  19694. func (c *EC2) ImportSnapshotWithContext(ctx aws.Context, input *ImportSnapshotInput, opts ...request.Option) (*ImportSnapshotOutput, error) {
  19695. req, out := c.ImportSnapshotRequest(input)
  19696. req.SetContext(ctx)
  19697. req.ApplyOptions(opts...)
  19698. return out, req.Send()
  19699. }
  19700. const opImportVolume = "ImportVolume"
  19701. // ImportVolumeRequest generates a "aws/request.Request" representing the
  19702. // client's request for the ImportVolume operation. The "output" return
  19703. // value will be populated with the request's response once the request completes
  19704. // successfully.
  19705. //
  19706. // Use "Send" method on the returned Request to send the API call to the service.
  19707. // the "output" return value is not valid until after Send returns without error.
  19708. //
  19709. // See ImportVolume for more information on using the ImportVolume
  19710. // API call, and error handling.
  19711. //
  19712. // This method is useful when you want to inject custom logic or configuration
  19713. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19714. //
  19715. //
  19716. // // Example sending a request using the ImportVolumeRequest method.
  19717. // req, resp := client.ImportVolumeRequest(params)
  19718. //
  19719. // err := req.Send()
  19720. // if err == nil { // resp is now filled
  19721. // fmt.Println(resp)
  19722. // }
  19723. //
  19724. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolume
  19725. func (c *EC2) ImportVolumeRequest(input *ImportVolumeInput) (req *request.Request, output *ImportVolumeOutput) {
  19726. op := &request.Operation{
  19727. Name: opImportVolume,
  19728. HTTPMethod: "POST",
  19729. HTTPPath: "/",
  19730. }
  19731. if input == nil {
  19732. input = &ImportVolumeInput{}
  19733. }
  19734. output = &ImportVolumeOutput{}
  19735. req = c.newRequest(op, input, output)
  19736. return
  19737. }
  19738. // ImportVolume API operation for Amazon Elastic Compute Cloud.
  19739. //
  19740. // Creates an import volume task using metadata from the specified disk image.For
  19741. // more information, see Importing Disks to Amazon EBS (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/importing-your-volumes-into-amazon-ebs.html).
  19742. //
  19743. // For information about the import manifest referenced by this API action,
  19744. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  19745. //
  19746. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19747. // with awserr.Error's Code and Message methods to get detailed information about
  19748. // the error.
  19749. //
  19750. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19751. // API operation ImportVolume for usage and error information.
  19752. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolume
  19753. func (c *EC2) ImportVolume(input *ImportVolumeInput) (*ImportVolumeOutput, error) {
  19754. req, out := c.ImportVolumeRequest(input)
  19755. return out, req.Send()
  19756. }
  19757. // ImportVolumeWithContext is the same as ImportVolume with the addition of
  19758. // the ability to pass a context and additional request options.
  19759. //
  19760. // See ImportVolume for details on how to use this API operation.
  19761. //
  19762. // The context must be non-nil and will be used for request cancellation. If
  19763. // the context is nil a panic will occur. In the future the SDK may create
  19764. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19765. // for more information on using Contexts.
  19766. func (c *EC2) ImportVolumeWithContext(ctx aws.Context, input *ImportVolumeInput, opts ...request.Option) (*ImportVolumeOutput, error) {
  19767. req, out := c.ImportVolumeRequest(input)
  19768. req.SetContext(ctx)
  19769. req.ApplyOptions(opts...)
  19770. return out, req.Send()
  19771. }
  19772. const opModifyCapacityReservation = "ModifyCapacityReservation"
  19773. // ModifyCapacityReservationRequest generates a "aws/request.Request" representing the
  19774. // client's request for the ModifyCapacityReservation operation. The "output" return
  19775. // value will be populated with the request's response once the request completes
  19776. // successfully.
  19777. //
  19778. // Use "Send" method on the returned Request to send the API call to the service.
  19779. // the "output" return value is not valid until after Send returns without error.
  19780. //
  19781. // See ModifyCapacityReservation for more information on using the ModifyCapacityReservation
  19782. // API call, and error handling.
  19783. //
  19784. // This method is useful when you want to inject custom logic or configuration
  19785. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19786. //
  19787. //
  19788. // // Example sending a request using the ModifyCapacityReservationRequest method.
  19789. // req, resp := client.ModifyCapacityReservationRequest(params)
  19790. //
  19791. // err := req.Send()
  19792. // if err == nil { // resp is now filled
  19793. // fmt.Println(resp)
  19794. // }
  19795. //
  19796. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyCapacityReservation
  19797. func (c *EC2) ModifyCapacityReservationRequest(input *ModifyCapacityReservationInput) (req *request.Request, output *ModifyCapacityReservationOutput) {
  19798. op := &request.Operation{
  19799. Name: opModifyCapacityReservation,
  19800. HTTPMethod: "POST",
  19801. HTTPPath: "/",
  19802. }
  19803. if input == nil {
  19804. input = &ModifyCapacityReservationInput{}
  19805. }
  19806. output = &ModifyCapacityReservationOutput{}
  19807. req = c.newRequest(op, input, output)
  19808. return
  19809. }
  19810. // ModifyCapacityReservation API operation for Amazon Elastic Compute Cloud.
  19811. //
  19812. // Modifies a Capacity Reservation's capacity and the conditions under which
  19813. // it is to be released. You cannot change a Capacity Reservation's instance
  19814. // type, EBS optimization, instance store settings, platform, Availability Zone,
  19815. // or instance eligibility. If you need to modify any of these attributes, we
  19816. // recommend that you cancel the Capacity Reservation, and then create a new
  19817. // one with the required attributes.
  19818. //
  19819. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19820. // with awserr.Error's Code and Message methods to get detailed information about
  19821. // the error.
  19822. //
  19823. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19824. // API operation ModifyCapacityReservation for usage and error information.
  19825. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyCapacityReservation
  19826. func (c *EC2) ModifyCapacityReservation(input *ModifyCapacityReservationInput) (*ModifyCapacityReservationOutput, error) {
  19827. req, out := c.ModifyCapacityReservationRequest(input)
  19828. return out, req.Send()
  19829. }
  19830. // ModifyCapacityReservationWithContext is the same as ModifyCapacityReservation with the addition of
  19831. // the ability to pass a context and additional request options.
  19832. //
  19833. // See ModifyCapacityReservation for details on how to use this API operation.
  19834. //
  19835. // The context must be non-nil and will be used for request cancellation. If
  19836. // the context is nil a panic will occur. In the future the SDK may create
  19837. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19838. // for more information on using Contexts.
  19839. func (c *EC2) ModifyCapacityReservationWithContext(ctx aws.Context, input *ModifyCapacityReservationInput, opts ...request.Option) (*ModifyCapacityReservationOutput, error) {
  19840. req, out := c.ModifyCapacityReservationRequest(input)
  19841. req.SetContext(ctx)
  19842. req.ApplyOptions(opts...)
  19843. return out, req.Send()
  19844. }
  19845. const opModifyClientVpnEndpoint = "ModifyClientVpnEndpoint"
  19846. // ModifyClientVpnEndpointRequest generates a "aws/request.Request" representing the
  19847. // client's request for the ModifyClientVpnEndpoint operation. The "output" return
  19848. // value will be populated with the request's response once the request completes
  19849. // successfully.
  19850. //
  19851. // Use "Send" method on the returned Request to send the API call to the service.
  19852. // the "output" return value is not valid until after Send returns without error.
  19853. //
  19854. // See ModifyClientVpnEndpoint for more information on using the ModifyClientVpnEndpoint
  19855. // API call, and error handling.
  19856. //
  19857. // This method is useful when you want to inject custom logic or configuration
  19858. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19859. //
  19860. //
  19861. // // Example sending a request using the ModifyClientVpnEndpointRequest method.
  19862. // req, resp := client.ModifyClientVpnEndpointRequest(params)
  19863. //
  19864. // err := req.Send()
  19865. // if err == nil { // resp is now filled
  19866. // fmt.Println(resp)
  19867. // }
  19868. //
  19869. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyClientVpnEndpoint
  19870. func (c *EC2) ModifyClientVpnEndpointRequest(input *ModifyClientVpnEndpointInput) (req *request.Request, output *ModifyClientVpnEndpointOutput) {
  19871. op := &request.Operation{
  19872. Name: opModifyClientVpnEndpoint,
  19873. HTTPMethod: "POST",
  19874. HTTPPath: "/",
  19875. }
  19876. if input == nil {
  19877. input = &ModifyClientVpnEndpointInput{}
  19878. }
  19879. output = &ModifyClientVpnEndpointOutput{}
  19880. req = c.newRequest(op, input, output)
  19881. return
  19882. }
  19883. // ModifyClientVpnEndpoint API operation for Amazon Elastic Compute Cloud.
  19884. //
  19885. // Modifies the specified Client VPN endpoint. You can only modify an endpoint's
  19886. // server certificate information, client connection logging information, DNS
  19887. // server, and description. Modifying the DNS server resets existing client
  19888. // connections.
  19889. //
  19890. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19891. // with awserr.Error's Code and Message methods to get detailed information about
  19892. // the error.
  19893. //
  19894. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19895. // API operation ModifyClientVpnEndpoint for usage and error information.
  19896. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyClientVpnEndpoint
  19897. func (c *EC2) ModifyClientVpnEndpoint(input *ModifyClientVpnEndpointInput) (*ModifyClientVpnEndpointOutput, error) {
  19898. req, out := c.ModifyClientVpnEndpointRequest(input)
  19899. return out, req.Send()
  19900. }
  19901. // ModifyClientVpnEndpointWithContext is the same as ModifyClientVpnEndpoint with the addition of
  19902. // the ability to pass a context and additional request options.
  19903. //
  19904. // See ModifyClientVpnEndpoint for details on how to use this API operation.
  19905. //
  19906. // The context must be non-nil and will be used for request cancellation. If
  19907. // the context is nil a panic will occur. In the future the SDK may create
  19908. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19909. // for more information on using Contexts.
  19910. func (c *EC2) ModifyClientVpnEndpointWithContext(ctx aws.Context, input *ModifyClientVpnEndpointInput, opts ...request.Option) (*ModifyClientVpnEndpointOutput, error) {
  19911. req, out := c.ModifyClientVpnEndpointRequest(input)
  19912. req.SetContext(ctx)
  19913. req.ApplyOptions(opts...)
  19914. return out, req.Send()
  19915. }
  19916. const opModifyFleet = "ModifyFleet"
  19917. // ModifyFleetRequest generates a "aws/request.Request" representing the
  19918. // client's request for the ModifyFleet operation. The "output" return
  19919. // value will be populated with the request's response once the request completes
  19920. // successfully.
  19921. //
  19922. // Use "Send" method on the returned Request to send the API call to the service.
  19923. // the "output" return value is not valid until after Send returns without error.
  19924. //
  19925. // See ModifyFleet for more information on using the ModifyFleet
  19926. // API call, and error handling.
  19927. //
  19928. // This method is useful when you want to inject custom logic or configuration
  19929. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19930. //
  19931. //
  19932. // // Example sending a request using the ModifyFleetRequest method.
  19933. // req, resp := client.ModifyFleetRequest(params)
  19934. //
  19935. // err := req.Send()
  19936. // if err == nil { // resp is now filled
  19937. // fmt.Println(resp)
  19938. // }
  19939. //
  19940. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFleet
  19941. func (c *EC2) ModifyFleetRequest(input *ModifyFleetInput) (req *request.Request, output *ModifyFleetOutput) {
  19942. op := &request.Operation{
  19943. Name: opModifyFleet,
  19944. HTTPMethod: "POST",
  19945. HTTPPath: "/",
  19946. }
  19947. if input == nil {
  19948. input = &ModifyFleetInput{}
  19949. }
  19950. output = &ModifyFleetOutput{}
  19951. req = c.newRequest(op, input, output)
  19952. return
  19953. }
  19954. // ModifyFleet API operation for Amazon Elastic Compute Cloud.
  19955. //
  19956. // Modifies the specified EC2 Fleet.
  19957. //
  19958. // While the EC2 Fleet is being modified, it is in the modifying state.
  19959. //
  19960. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19961. // with awserr.Error's Code and Message methods to get detailed information about
  19962. // the error.
  19963. //
  19964. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19965. // API operation ModifyFleet for usage and error information.
  19966. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFleet
  19967. func (c *EC2) ModifyFleet(input *ModifyFleetInput) (*ModifyFleetOutput, error) {
  19968. req, out := c.ModifyFleetRequest(input)
  19969. return out, req.Send()
  19970. }
  19971. // ModifyFleetWithContext is the same as ModifyFleet with the addition of
  19972. // the ability to pass a context and additional request options.
  19973. //
  19974. // See ModifyFleet for details on how to use this API operation.
  19975. //
  19976. // The context must be non-nil and will be used for request cancellation. If
  19977. // the context is nil a panic will occur. In the future the SDK may create
  19978. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19979. // for more information on using Contexts.
  19980. func (c *EC2) ModifyFleetWithContext(ctx aws.Context, input *ModifyFleetInput, opts ...request.Option) (*ModifyFleetOutput, error) {
  19981. req, out := c.ModifyFleetRequest(input)
  19982. req.SetContext(ctx)
  19983. req.ApplyOptions(opts...)
  19984. return out, req.Send()
  19985. }
  19986. const opModifyFpgaImageAttribute = "ModifyFpgaImageAttribute"
  19987. // ModifyFpgaImageAttributeRequest generates a "aws/request.Request" representing the
  19988. // client's request for the ModifyFpgaImageAttribute operation. The "output" return
  19989. // value will be populated with the request's response once the request completes
  19990. // successfully.
  19991. //
  19992. // Use "Send" method on the returned Request to send the API call to the service.
  19993. // the "output" return value is not valid until after Send returns without error.
  19994. //
  19995. // See ModifyFpgaImageAttribute for more information on using the ModifyFpgaImageAttribute
  19996. // API call, and error handling.
  19997. //
  19998. // This method is useful when you want to inject custom logic or configuration
  19999. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20000. //
  20001. //
  20002. // // Example sending a request using the ModifyFpgaImageAttributeRequest method.
  20003. // req, resp := client.ModifyFpgaImageAttributeRequest(params)
  20004. //
  20005. // err := req.Send()
  20006. // if err == nil { // resp is now filled
  20007. // fmt.Println(resp)
  20008. // }
  20009. //
  20010. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFpgaImageAttribute
  20011. func (c *EC2) ModifyFpgaImageAttributeRequest(input *ModifyFpgaImageAttributeInput) (req *request.Request, output *ModifyFpgaImageAttributeOutput) {
  20012. op := &request.Operation{
  20013. Name: opModifyFpgaImageAttribute,
  20014. HTTPMethod: "POST",
  20015. HTTPPath: "/",
  20016. }
  20017. if input == nil {
  20018. input = &ModifyFpgaImageAttributeInput{}
  20019. }
  20020. output = &ModifyFpgaImageAttributeOutput{}
  20021. req = c.newRequest(op, input, output)
  20022. return
  20023. }
  20024. // ModifyFpgaImageAttribute API operation for Amazon Elastic Compute Cloud.
  20025. //
  20026. // Modifies the specified attribute of the specified Amazon FPGA Image (AFI).
  20027. //
  20028. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20029. // with awserr.Error's Code and Message methods to get detailed information about
  20030. // the error.
  20031. //
  20032. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20033. // API operation ModifyFpgaImageAttribute for usage and error information.
  20034. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFpgaImageAttribute
  20035. func (c *EC2) ModifyFpgaImageAttribute(input *ModifyFpgaImageAttributeInput) (*ModifyFpgaImageAttributeOutput, error) {
  20036. req, out := c.ModifyFpgaImageAttributeRequest(input)
  20037. return out, req.Send()
  20038. }
  20039. // ModifyFpgaImageAttributeWithContext is the same as ModifyFpgaImageAttribute with the addition of
  20040. // the ability to pass a context and additional request options.
  20041. //
  20042. // See ModifyFpgaImageAttribute for details on how to use this API operation.
  20043. //
  20044. // The context must be non-nil and will be used for request cancellation. If
  20045. // the context is nil a panic will occur. In the future the SDK may create
  20046. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20047. // for more information on using Contexts.
  20048. func (c *EC2) ModifyFpgaImageAttributeWithContext(ctx aws.Context, input *ModifyFpgaImageAttributeInput, opts ...request.Option) (*ModifyFpgaImageAttributeOutput, error) {
  20049. req, out := c.ModifyFpgaImageAttributeRequest(input)
  20050. req.SetContext(ctx)
  20051. req.ApplyOptions(opts...)
  20052. return out, req.Send()
  20053. }
  20054. const opModifyHosts = "ModifyHosts"
  20055. // ModifyHostsRequest generates a "aws/request.Request" representing the
  20056. // client's request for the ModifyHosts operation. The "output" return
  20057. // value will be populated with the request's response once the request completes
  20058. // successfully.
  20059. //
  20060. // Use "Send" method on the returned Request to send the API call to the service.
  20061. // the "output" return value is not valid until after Send returns without error.
  20062. //
  20063. // See ModifyHosts for more information on using the ModifyHosts
  20064. // API call, and error handling.
  20065. //
  20066. // This method is useful when you want to inject custom logic or configuration
  20067. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20068. //
  20069. //
  20070. // // Example sending a request using the ModifyHostsRequest method.
  20071. // req, resp := client.ModifyHostsRequest(params)
  20072. //
  20073. // err := req.Send()
  20074. // if err == nil { // resp is now filled
  20075. // fmt.Println(resp)
  20076. // }
  20077. //
  20078. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHosts
  20079. func (c *EC2) ModifyHostsRequest(input *ModifyHostsInput) (req *request.Request, output *ModifyHostsOutput) {
  20080. op := &request.Operation{
  20081. Name: opModifyHosts,
  20082. HTTPMethod: "POST",
  20083. HTTPPath: "/",
  20084. }
  20085. if input == nil {
  20086. input = &ModifyHostsInput{}
  20087. }
  20088. output = &ModifyHostsOutput{}
  20089. req = c.newRequest(op, input, output)
  20090. return
  20091. }
  20092. // ModifyHosts API operation for Amazon Elastic Compute Cloud.
  20093. //
  20094. // Modify the auto-placement setting of a Dedicated Host. When auto-placement
  20095. // is enabled, any instances that you launch with a tenancy of host but without
  20096. // a specific host ID are placed onto any available Dedicated Host in your account
  20097. // that has auto-placement enabled. When auto-placement is disabled, you need
  20098. // to provide a host ID to have the instance launch onto a specific host. If
  20099. // no host ID is provided, the instance is launched onto a suitable host with
  20100. // auto-placement enabled.
  20101. //
  20102. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20103. // with awserr.Error's Code and Message methods to get detailed information about
  20104. // the error.
  20105. //
  20106. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20107. // API operation ModifyHosts for usage and error information.
  20108. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHosts
  20109. func (c *EC2) ModifyHosts(input *ModifyHostsInput) (*ModifyHostsOutput, error) {
  20110. req, out := c.ModifyHostsRequest(input)
  20111. return out, req.Send()
  20112. }
  20113. // ModifyHostsWithContext is the same as ModifyHosts with the addition of
  20114. // the ability to pass a context and additional request options.
  20115. //
  20116. // See ModifyHosts for details on how to use this API operation.
  20117. //
  20118. // The context must be non-nil and will be used for request cancellation. If
  20119. // the context is nil a panic will occur. In the future the SDK may create
  20120. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20121. // for more information on using Contexts.
  20122. func (c *EC2) ModifyHostsWithContext(ctx aws.Context, input *ModifyHostsInput, opts ...request.Option) (*ModifyHostsOutput, error) {
  20123. req, out := c.ModifyHostsRequest(input)
  20124. req.SetContext(ctx)
  20125. req.ApplyOptions(opts...)
  20126. return out, req.Send()
  20127. }
  20128. const opModifyIdFormat = "ModifyIdFormat"
  20129. // ModifyIdFormatRequest generates a "aws/request.Request" representing the
  20130. // client's request for the ModifyIdFormat operation. The "output" return
  20131. // value will be populated with the request's response once the request completes
  20132. // successfully.
  20133. //
  20134. // Use "Send" method on the returned Request to send the API call to the service.
  20135. // the "output" return value is not valid until after Send returns without error.
  20136. //
  20137. // See ModifyIdFormat for more information on using the ModifyIdFormat
  20138. // API call, and error handling.
  20139. //
  20140. // This method is useful when you want to inject custom logic or configuration
  20141. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20142. //
  20143. //
  20144. // // Example sending a request using the ModifyIdFormatRequest method.
  20145. // req, resp := client.ModifyIdFormatRequest(params)
  20146. //
  20147. // err := req.Send()
  20148. // if err == nil { // resp is now filled
  20149. // fmt.Println(resp)
  20150. // }
  20151. //
  20152. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormat
  20153. func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Request, output *ModifyIdFormatOutput) {
  20154. op := &request.Operation{
  20155. Name: opModifyIdFormat,
  20156. HTTPMethod: "POST",
  20157. HTTPPath: "/",
  20158. }
  20159. if input == nil {
  20160. input = &ModifyIdFormatInput{}
  20161. }
  20162. output = &ModifyIdFormatOutput{}
  20163. req = c.newRequest(op, input, output)
  20164. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  20165. return
  20166. }
  20167. // ModifyIdFormat API operation for Amazon Elastic Compute Cloud.
  20168. //
  20169. // Modifies the ID format for the specified resource on a per-region basis.
  20170. // You can specify that resources should receive longer IDs (17-character IDs)
  20171. // when they are created.
  20172. //
  20173. // This request can only be used to modify longer ID settings for resource types
  20174. // that are within the opt-in period. Resources currently in their opt-in period
  20175. // include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation
  20176. // | elastic-ip-association | export-task | flow-log | image | import-task |
  20177. // internet-gateway | network-acl | network-acl-association | network-interface
  20178. // | network-interface-attachment | prefix-list | route-table | route-table-association
  20179. // | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association
  20180. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  20181. //
  20182. // This setting applies to the IAM user who makes the request; it does not apply
  20183. // to the entire AWS account. By default, an IAM user defaults to the same settings
  20184. // as the root user. If you're using this action as the root user, then these
  20185. // settings apply to the entire account, unless an IAM user explicitly overrides
  20186. // these settings for themselves. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  20187. // in the Amazon Elastic Compute Cloud User Guide.
  20188. //
  20189. // Resources created with longer IDs are visible to all IAM roles and users,
  20190. // regardless of these settings and provided that they have permission to use
  20191. // the relevant Describe command for the resource type.
  20192. //
  20193. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20194. // with awserr.Error's Code and Message methods to get detailed information about
  20195. // the error.
  20196. //
  20197. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20198. // API operation ModifyIdFormat for usage and error information.
  20199. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormat
  20200. func (c *EC2) ModifyIdFormat(input *ModifyIdFormatInput) (*ModifyIdFormatOutput, error) {
  20201. req, out := c.ModifyIdFormatRequest(input)
  20202. return out, req.Send()
  20203. }
  20204. // ModifyIdFormatWithContext is the same as ModifyIdFormat with the addition of
  20205. // the ability to pass a context and additional request options.
  20206. //
  20207. // See ModifyIdFormat for details on how to use this API operation.
  20208. //
  20209. // The context must be non-nil and will be used for request cancellation. If
  20210. // the context is nil a panic will occur. In the future the SDK may create
  20211. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20212. // for more information on using Contexts.
  20213. func (c *EC2) ModifyIdFormatWithContext(ctx aws.Context, input *ModifyIdFormatInput, opts ...request.Option) (*ModifyIdFormatOutput, error) {
  20214. req, out := c.ModifyIdFormatRequest(input)
  20215. req.SetContext(ctx)
  20216. req.ApplyOptions(opts...)
  20217. return out, req.Send()
  20218. }
  20219. const opModifyIdentityIdFormat = "ModifyIdentityIdFormat"
  20220. // ModifyIdentityIdFormatRequest generates a "aws/request.Request" representing the
  20221. // client's request for the ModifyIdentityIdFormat operation. The "output" return
  20222. // value will be populated with the request's response once the request completes
  20223. // successfully.
  20224. //
  20225. // Use "Send" method on the returned Request to send the API call to the service.
  20226. // the "output" return value is not valid until after Send returns without error.
  20227. //
  20228. // See ModifyIdentityIdFormat for more information on using the ModifyIdentityIdFormat
  20229. // API call, and error handling.
  20230. //
  20231. // This method is useful when you want to inject custom logic or configuration
  20232. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20233. //
  20234. //
  20235. // // Example sending a request using the ModifyIdentityIdFormatRequest method.
  20236. // req, resp := client.ModifyIdentityIdFormatRequest(params)
  20237. //
  20238. // err := req.Send()
  20239. // if err == nil { // resp is now filled
  20240. // fmt.Println(resp)
  20241. // }
  20242. //
  20243. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormat
  20244. func (c *EC2) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) (req *request.Request, output *ModifyIdentityIdFormatOutput) {
  20245. op := &request.Operation{
  20246. Name: opModifyIdentityIdFormat,
  20247. HTTPMethod: "POST",
  20248. HTTPPath: "/",
  20249. }
  20250. if input == nil {
  20251. input = &ModifyIdentityIdFormatInput{}
  20252. }
  20253. output = &ModifyIdentityIdFormatOutput{}
  20254. req = c.newRequest(op, input, output)
  20255. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  20256. return
  20257. }
  20258. // ModifyIdentityIdFormat API operation for Amazon Elastic Compute Cloud.
  20259. //
  20260. // Modifies the ID format of a resource for a specified IAM user, IAM role,
  20261. // or the root user for an account; or all IAM users, IAM roles, and the root
  20262. // user for an account. You can specify that resources should receive longer
  20263. // IDs (17-character IDs) when they are created.
  20264. //
  20265. // This request can only be used to modify longer ID settings for resource types
  20266. // that are within the opt-in period. Resources currently in their opt-in period
  20267. // include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation
  20268. // | elastic-ip-association | export-task | flow-log | image | import-task |
  20269. // internet-gateway | network-acl | network-acl-association | network-interface
  20270. // | network-interface-attachment | prefix-list | route-table | route-table-association
  20271. // | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association
  20272. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  20273. //
  20274. // For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  20275. // in the Amazon Elastic Compute Cloud User Guide.
  20276. //
  20277. // This setting applies to the principal specified in the request; it does not
  20278. // apply to the principal that makes the request.
  20279. //
  20280. // Resources created with longer IDs are visible to all IAM roles and users,
  20281. // regardless of these settings and provided that they have permission to use
  20282. // the relevant Describe command for the resource type.
  20283. //
  20284. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20285. // with awserr.Error's Code and Message methods to get detailed information about
  20286. // the error.
  20287. //
  20288. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20289. // API operation ModifyIdentityIdFormat for usage and error information.
  20290. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormat
  20291. func (c *EC2) ModifyIdentityIdFormat(input *ModifyIdentityIdFormatInput) (*ModifyIdentityIdFormatOutput, error) {
  20292. req, out := c.ModifyIdentityIdFormatRequest(input)
  20293. return out, req.Send()
  20294. }
  20295. // ModifyIdentityIdFormatWithContext is the same as ModifyIdentityIdFormat with the addition of
  20296. // the ability to pass a context and additional request options.
  20297. //
  20298. // See ModifyIdentityIdFormat for details on how to use this API operation.
  20299. //
  20300. // The context must be non-nil and will be used for request cancellation. If
  20301. // the context is nil a panic will occur. In the future the SDK may create
  20302. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20303. // for more information on using Contexts.
  20304. func (c *EC2) ModifyIdentityIdFormatWithContext(ctx aws.Context, input *ModifyIdentityIdFormatInput, opts ...request.Option) (*ModifyIdentityIdFormatOutput, error) {
  20305. req, out := c.ModifyIdentityIdFormatRequest(input)
  20306. req.SetContext(ctx)
  20307. req.ApplyOptions(opts...)
  20308. return out, req.Send()
  20309. }
  20310. const opModifyImageAttribute = "ModifyImageAttribute"
  20311. // ModifyImageAttributeRequest generates a "aws/request.Request" representing the
  20312. // client's request for the ModifyImageAttribute operation. The "output" return
  20313. // value will be populated with the request's response once the request completes
  20314. // successfully.
  20315. //
  20316. // Use "Send" method on the returned Request to send the API call to the service.
  20317. // the "output" return value is not valid until after Send returns without error.
  20318. //
  20319. // See ModifyImageAttribute for more information on using the ModifyImageAttribute
  20320. // API call, and error handling.
  20321. //
  20322. // This method is useful when you want to inject custom logic or configuration
  20323. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20324. //
  20325. //
  20326. // // Example sending a request using the ModifyImageAttributeRequest method.
  20327. // req, resp := client.ModifyImageAttributeRequest(params)
  20328. //
  20329. // err := req.Send()
  20330. // if err == nil { // resp is now filled
  20331. // fmt.Println(resp)
  20332. // }
  20333. //
  20334. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute
  20335. func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req *request.Request, output *ModifyImageAttributeOutput) {
  20336. op := &request.Operation{
  20337. Name: opModifyImageAttribute,
  20338. HTTPMethod: "POST",
  20339. HTTPPath: "/",
  20340. }
  20341. if input == nil {
  20342. input = &ModifyImageAttributeInput{}
  20343. }
  20344. output = &ModifyImageAttributeOutput{}
  20345. req = c.newRequest(op, input, output)
  20346. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  20347. return
  20348. }
  20349. // ModifyImageAttribute API operation for Amazon Elastic Compute Cloud.
  20350. //
  20351. // Modifies the specified attribute of the specified AMI. You can specify only
  20352. // one attribute at a time. You can use the Attribute parameter to specify the
  20353. // attribute or one of the following parameters: Description, LaunchPermission,
  20354. // or ProductCode.
  20355. //
  20356. // AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace
  20357. // product code cannot be made public.
  20358. //
  20359. // To enable the SriovNetSupport enhanced networking attribute of an image,
  20360. // enable SriovNetSupport on an instance and create an AMI from the instance.
  20361. //
  20362. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20363. // with awserr.Error's Code and Message methods to get detailed information about
  20364. // the error.
  20365. //
  20366. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20367. // API operation ModifyImageAttribute for usage and error information.
  20368. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute
  20369. func (c *EC2) ModifyImageAttribute(input *ModifyImageAttributeInput) (*ModifyImageAttributeOutput, error) {
  20370. req, out := c.ModifyImageAttributeRequest(input)
  20371. return out, req.Send()
  20372. }
  20373. // ModifyImageAttributeWithContext is the same as ModifyImageAttribute with the addition of
  20374. // the ability to pass a context and additional request options.
  20375. //
  20376. // See ModifyImageAttribute for details on how to use this API operation.
  20377. //
  20378. // The context must be non-nil and will be used for request cancellation. If
  20379. // the context is nil a panic will occur. In the future the SDK may create
  20380. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20381. // for more information on using Contexts.
  20382. func (c *EC2) ModifyImageAttributeWithContext(ctx aws.Context, input *ModifyImageAttributeInput, opts ...request.Option) (*ModifyImageAttributeOutput, error) {
  20383. req, out := c.ModifyImageAttributeRequest(input)
  20384. req.SetContext(ctx)
  20385. req.ApplyOptions(opts...)
  20386. return out, req.Send()
  20387. }
  20388. const opModifyInstanceAttribute = "ModifyInstanceAttribute"
  20389. // ModifyInstanceAttributeRequest generates a "aws/request.Request" representing the
  20390. // client's request for the ModifyInstanceAttribute operation. The "output" return
  20391. // value will be populated with the request's response once the request completes
  20392. // successfully.
  20393. //
  20394. // Use "Send" method on the returned Request to send the API call to the service.
  20395. // the "output" return value is not valid until after Send returns without error.
  20396. //
  20397. // See ModifyInstanceAttribute for more information on using the ModifyInstanceAttribute
  20398. // API call, and error handling.
  20399. //
  20400. // This method is useful when you want to inject custom logic or configuration
  20401. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20402. //
  20403. //
  20404. // // Example sending a request using the ModifyInstanceAttributeRequest method.
  20405. // req, resp := client.ModifyInstanceAttributeRequest(params)
  20406. //
  20407. // err := req.Send()
  20408. // if err == nil { // resp is now filled
  20409. // fmt.Println(resp)
  20410. // }
  20411. //
  20412. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute
  20413. func (c *EC2) ModifyInstanceAttributeRequest(input *ModifyInstanceAttributeInput) (req *request.Request, output *ModifyInstanceAttributeOutput) {
  20414. op := &request.Operation{
  20415. Name: opModifyInstanceAttribute,
  20416. HTTPMethod: "POST",
  20417. HTTPPath: "/",
  20418. }
  20419. if input == nil {
  20420. input = &ModifyInstanceAttributeInput{}
  20421. }
  20422. output = &ModifyInstanceAttributeOutput{}
  20423. req = c.newRequest(op, input, output)
  20424. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  20425. return
  20426. }
  20427. // ModifyInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  20428. //
  20429. // Modifies the specified attribute of the specified instance. You can specify
  20430. // only one attribute at a time.
  20431. //
  20432. // Note: Using this action to change the security groups associated with an
  20433. // elastic network interface (ENI) attached to an instance in a VPC can result
  20434. // in an error if the instance has more than one ENI. To change the security
  20435. // groups associated with an ENI attached to an instance that has multiple ENIs,
  20436. // we recommend that you use the ModifyNetworkInterfaceAttribute action.
  20437. //
  20438. // To modify some attributes, the instance must be stopped. For more information,
  20439. // see Modifying Attributes of a Stopped Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html)
  20440. // in the Amazon Elastic Compute Cloud User Guide.
  20441. //
  20442. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20443. // with awserr.Error's Code and Message methods to get detailed information about
  20444. // the error.
  20445. //
  20446. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20447. // API operation ModifyInstanceAttribute for usage and error information.
  20448. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute
  20449. func (c *EC2) ModifyInstanceAttribute(input *ModifyInstanceAttributeInput) (*ModifyInstanceAttributeOutput, error) {
  20450. req, out := c.ModifyInstanceAttributeRequest(input)
  20451. return out, req.Send()
  20452. }
  20453. // ModifyInstanceAttributeWithContext is the same as ModifyInstanceAttribute with the addition of
  20454. // the ability to pass a context and additional request options.
  20455. //
  20456. // See ModifyInstanceAttribute for details on how to use this API operation.
  20457. //
  20458. // The context must be non-nil and will be used for request cancellation. If
  20459. // the context is nil a panic will occur. In the future the SDK may create
  20460. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20461. // for more information on using Contexts.
  20462. func (c *EC2) ModifyInstanceAttributeWithContext(ctx aws.Context, input *ModifyInstanceAttributeInput, opts ...request.Option) (*ModifyInstanceAttributeOutput, error) {
  20463. req, out := c.ModifyInstanceAttributeRequest(input)
  20464. req.SetContext(ctx)
  20465. req.ApplyOptions(opts...)
  20466. return out, req.Send()
  20467. }
  20468. const opModifyInstanceCapacityReservationAttributes = "ModifyInstanceCapacityReservationAttributes"
  20469. // ModifyInstanceCapacityReservationAttributesRequest generates a "aws/request.Request" representing the
  20470. // client's request for the ModifyInstanceCapacityReservationAttributes operation. The "output" return
  20471. // value will be populated with the request's response once the request completes
  20472. // successfully.
  20473. //
  20474. // Use "Send" method on the returned Request to send the API call to the service.
  20475. // the "output" return value is not valid until after Send returns without error.
  20476. //
  20477. // See ModifyInstanceCapacityReservationAttributes for more information on using the ModifyInstanceCapacityReservationAttributes
  20478. // API call, and error handling.
  20479. //
  20480. // This method is useful when you want to inject custom logic or configuration
  20481. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20482. //
  20483. //
  20484. // // Example sending a request using the ModifyInstanceCapacityReservationAttributesRequest method.
  20485. // req, resp := client.ModifyInstanceCapacityReservationAttributesRequest(params)
  20486. //
  20487. // err := req.Send()
  20488. // if err == nil { // resp is now filled
  20489. // fmt.Println(resp)
  20490. // }
  20491. //
  20492. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCapacityReservationAttributes
  20493. func (c *EC2) ModifyInstanceCapacityReservationAttributesRequest(input *ModifyInstanceCapacityReservationAttributesInput) (req *request.Request, output *ModifyInstanceCapacityReservationAttributesOutput) {
  20494. op := &request.Operation{
  20495. Name: opModifyInstanceCapacityReservationAttributes,
  20496. HTTPMethod: "POST",
  20497. HTTPPath: "/",
  20498. }
  20499. if input == nil {
  20500. input = &ModifyInstanceCapacityReservationAttributesInput{}
  20501. }
  20502. output = &ModifyInstanceCapacityReservationAttributesOutput{}
  20503. req = c.newRequest(op, input, output)
  20504. return
  20505. }
  20506. // ModifyInstanceCapacityReservationAttributes API operation for Amazon Elastic Compute Cloud.
  20507. //
  20508. // Modifies the Capacity Reservation settings for a stopped instance. Use this
  20509. // action to configure an instance to target a specific Capacity Reservation,
  20510. // run in any open Capacity Reservation with matching attributes, or run On-Demand
  20511. // Instance capacity.
  20512. //
  20513. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20514. // with awserr.Error's Code and Message methods to get detailed information about
  20515. // the error.
  20516. //
  20517. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20518. // API operation ModifyInstanceCapacityReservationAttributes for usage and error information.
  20519. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCapacityReservationAttributes
  20520. func (c *EC2) ModifyInstanceCapacityReservationAttributes(input *ModifyInstanceCapacityReservationAttributesInput) (*ModifyInstanceCapacityReservationAttributesOutput, error) {
  20521. req, out := c.ModifyInstanceCapacityReservationAttributesRequest(input)
  20522. return out, req.Send()
  20523. }
  20524. // ModifyInstanceCapacityReservationAttributesWithContext is the same as ModifyInstanceCapacityReservationAttributes with the addition of
  20525. // the ability to pass a context and additional request options.
  20526. //
  20527. // See ModifyInstanceCapacityReservationAttributes for details on how to use this API operation.
  20528. //
  20529. // The context must be non-nil and will be used for request cancellation. If
  20530. // the context is nil a panic will occur. In the future the SDK may create
  20531. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20532. // for more information on using Contexts.
  20533. func (c *EC2) ModifyInstanceCapacityReservationAttributesWithContext(ctx aws.Context, input *ModifyInstanceCapacityReservationAttributesInput, opts ...request.Option) (*ModifyInstanceCapacityReservationAttributesOutput, error) {
  20534. req, out := c.ModifyInstanceCapacityReservationAttributesRequest(input)
  20535. req.SetContext(ctx)
  20536. req.ApplyOptions(opts...)
  20537. return out, req.Send()
  20538. }
  20539. const opModifyInstanceCreditSpecification = "ModifyInstanceCreditSpecification"
  20540. // ModifyInstanceCreditSpecificationRequest generates a "aws/request.Request" representing the
  20541. // client's request for the ModifyInstanceCreditSpecification operation. The "output" return
  20542. // value will be populated with the request's response once the request completes
  20543. // successfully.
  20544. //
  20545. // Use "Send" method on the returned Request to send the API call to the service.
  20546. // the "output" return value is not valid until after Send returns without error.
  20547. //
  20548. // See ModifyInstanceCreditSpecification for more information on using the ModifyInstanceCreditSpecification
  20549. // API call, and error handling.
  20550. //
  20551. // This method is useful when you want to inject custom logic or configuration
  20552. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20553. //
  20554. //
  20555. // // Example sending a request using the ModifyInstanceCreditSpecificationRequest method.
  20556. // req, resp := client.ModifyInstanceCreditSpecificationRequest(params)
  20557. //
  20558. // err := req.Send()
  20559. // if err == nil { // resp is now filled
  20560. // fmt.Println(resp)
  20561. // }
  20562. //
  20563. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCreditSpecification
  20564. func (c *EC2) ModifyInstanceCreditSpecificationRequest(input *ModifyInstanceCreditSpecificationInput) (req *request.Request, output *ModifyInstanceCreditSpecificationOutput) {
  20565. op := &request.Operation{
  20566. Name: opModifyInstanceCreditSpecification,
  20567. HTTPMethod: "POST",
  20568. HTTPPath: "/",
  20569. }
  20570. if input == nil {
  20571. input = &ModifyInstanceCreditSpecificationInput{}
  20572. }
  20573. output = &ModifyInstanceCreditSpecificationOutput{}
  20574. req = c.newRequest(op, input, output)
  20575. return
  20576. }
  20577. // ModifyInstanceCreditSpecification API operation for Amazon Elastic Compute Cloud.
  20578. //
  20579. // Modifies the credit option for CPU usage on a running or stopped T2 or T3
  20580. // instance. The credit options are standard and unlimited.
  20581. //
  20582. // For more information, see Burstable Performance Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html)
  20583. // in the Amazon Elastic Compute Cloud User Guide.
  20584. //
  20585. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20586. // with awserr.Error's Code and Message methods to get detailed information about
  20587. // the error.
  20588. //
  20589. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20590. // API operation ModifyInstanceCreditSpecification for usage and error information.
  20591. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCreditSpecification
  20592. func (c *EC2) ModifyInstanceCreditSpecification(input *ModifyInstanceCreditSpecificationInput) (*ModifyInstanceCreditSpecificationOutput, error) {
  20593. req, out := c.ModifyInstanceCreditSpecificationRequest(input)
  20594. return out, req.Send()
  20595. }
  20596. // ModifyInstanceCreditSpecificationWithContext is the same as ModifyInstanceCreditSpecification with the addition of
  20597. // the ability to pass a context and additional request options.
  20598. //
  20599. // See ModifyInstanceCreditSpecification for details on how to use this API operation.
  20600. //
  20601. // The context must be non-nil and will be used for request cancellation. If
  20602. // the context is nil a panic will occur. In the future the SDK may create
  20603. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20604. // for more information on using Contexts.
  20605. func (c *EC2) ModifyInstanceCreditSpecificationWithContext(ctx aws.Context, input *ModifyInstanceCreditSpecificationInput, opts ...request.Option) (*ModifyInstanceCreditSpecificationOutput, error) {
  20606. req, out := c.ModifyInstanceCreditSpecificationRequest(input)
  20607. req.SetContext(ctx)
  20608. req.ApplyOptions(opts...)
  20609. return out, req.Send()
  20610. }
  20611. const opModifyInstancePlacement = "ModifyInstancePlacement"
  20612. // ModifyInstancePlacementRequest generates a "aws/request.Request" representing the
  20613. // client's request for the ModifyInstancePlacement operation. The "output" return
  20614. // value will be populated with the request's response once the request completes
  20615. // successfully.
  20616. //
  20617. // Use "Send" method on the returned Request to send the API call to the service.
  20618. // the "output" return value is not valid until after Send returns without error.
  20619. //
  20620. // See ModifyInstancePlacement for more information on using the ModifyInstancePlacement
  20621. // API call, and error handling.
  20622. //
  20623. // This method is useful when you want to inject custom logic or configuration
  20624. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20625. //
  20626. //
  20627. // // Example sending a request using the ModifyInstancePlacementRequest method.
  20628. // req, resp := client.ModifyInstancePlacementRequest(params)
  20629. //
  20630. // err := req.Send()
  20631. // if err == nil { // resp is now filled
  20632. // fmt.Println(resp)
  20633. // }
  20634. //
  20635. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacement
  20636. func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput) (req *request.Request, output *ModifyInstancePlacementOutput) {
  20637. op := &request.Operation{
  20638. Name: opModifyInstancePlacement,
  20639. HTTPMethod: "POST",
  20640. HTTPPath: "/",
  20641. }
  20642. if input == nil {
  20643. input = &ModifyInstancePlacementInput{}
  20644. }
  20645. output = &ModifyInstancePlacementOutput{}
  20646. req = c.newRequest(op, input, output)
  20647. return
  20648. }
  20649. // ModifyInstancePlacement API operation for Amazon Elastic Compute Cloud.
  20650. //
  20651. // Modifies the placement attributes for a specified instance. You can do the
  20652. // following:
  20653. //
  20654. // * Modify the affinity between an instance and a Dedicated Host (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html).
  20655. // When affinity is set to host and the instance is not associated with a
  20656. // specific Dedicated Host, the next time the instance is launched, it is
  20657. // automatically associated with the host on which it lands. If the instance
  20658. // is restarted or rebooted, this relationship persists.
  20659. //
  20660. // * Change the Dedicated Host with which an instance is associated.
  20661. //
  20662. // * Change the instance tenancy of an instance from host to dedicated, or
  20663. // from dedicated to host.
  20664. //
  20665. // * Move an instance to or from a placement group (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html).
  20666. //
  20667. // At least one attribute for affinity, host ID, tenancy, or placement group
  20668. // name must be specified in the request. Affinity and tenancy can be modified
  20669. // in the same request.
  20670. //
  20671. // To modify the host ID, tenancy, placement group, or partition for an instance,
  20672. // the instance must be in the stopped state.
  20673. //
  20674. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20675. // with awserr.Error's Code and Message methods to get detailed information about
  20676. // the error.
  20677. //
  20678. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20679. // API operation ModifyInstancePlacement for usage and error information.
  20680. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacement
  20681. func (c *EC2) ModifyInstancePlacement(input *ModifyInstancePlacementInput) (*ModifyInstancePlacementOutput, error) {
  20682. req, out := c.ModifyInstancePlacementRequest(input)
  20683. return out, req.Send()
  20684. }
  20685. // ModifyInstancePlacementWithContext is the same as ModifyInstancePlacement with the addition of
  20686. // the ability to pass a context and additional request options.
  20687. //
  20688. // See ModifyInstancePlacement for details on how to use this API operation.
  20689. //
  20690. // The context must be non-nil and will be used for request cancellation. If
  20691. // the context is nil a panic will occur. In the future the SDK may create
  20692. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20693. // for more information on using Contexts.
  20694. func (c *EC2) ModifyInstancePlacementWithContext(ctx aws.Context, input *ModifyInstancePlacementInput, opts ...request.Option) (*ModifyInstancePlacementOutput, error) {
  20695. req, out := c.ModifyInstancePlacementRequest(input)
  20696. req.SetContext(ctx)
  20697. req.ApplyOptions(opts...)
  20698. return out, req.Send()
  20699. }
  20700. const opModifyLaunchTemplate = "ModifyLaunchTemplate"
  20701. // ModifyLaunchTemplateRequest generates a "aws/request.Request" representing the
  20702. // client's request for the ModifyLaunchTemplate operation. The "output" return
  20703. // value will be populated with the request's response once the request completes
  20704. // successfully.
  20705. //
  20706. // Use "Send" method on the returned Request to send the API call to the service.
  20707. // the "output" return value is not valid until after Send returns without error.
  20708. //
  20709. // See ModifyLaunchTemplate for more information on using the ModifyLaunchTemplate
  20710. // API call, and error handling.
  20711. //
  20712. // This method is useful when you want to inject custom logic or configuration
  20713. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20714. //
  20715. //
  20716. // // Example sending a request using the ModifyLaunchTemplateRequest method.
  20717. // req, resp := client.ModifyLaunchTemplateRequest(params)
  20718. //
  20719. // err := req.Send()
  20720. // if err == nil { // resp is now filled
  20721. // fmt.Println(resp)
  20722. // }
  20723. //
  20724. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplate
  20725. func (c *EC2) ModifyLaunchTemplateRequest(input *ModifyLaunchTemplateInput) (req *request.Request, output *ModifyLaunchTemplateOutput) {
  20726. op := &request.Operation{
  20727. Name: opModifyLaunchTemplate,
  20728. HTTPMethod: "POST",
  20729. HTTPPath: "/",
  20730. }
  20731. if input == nil {
  20732. input = &ModifyLaunchTemplateInput{}
  20733. }
  20734. output = &ModifyLaunchTemplateOutput{}
  20735. req = c.newRequest(op, input, output)
  20736. return
  20737. }
  20738. // ModifyLaunchTemplate API operation for Amazon Elastic Compute Cloud.
  20739. //
  20740. // Modifies a launch template. You can specify which version of the launch template
  20741. // to set as the default version. When launching an instance, the default version
  20742. // applies when a launch template version is not specified.
  20743. //
  20744. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20745. // with awserr.Error's Code and Message methods to get detailed information about
  20746. // the error.
  20747. //
  20748. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20749. // API operation ModifyLaunchTemplate for usage and error information.
  20750. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplate
  20751. func (c *EC2) ModifyLaunchTemplate(input *ModifyLaunchTemplateInput) (*ModifyLaunchTemplateOutput, error) {
  20752. req, out := c.ModifyLaunchTemplateRequest(input)
  20753. return out, req.Send()
  20754. }
  20755. // ModifyLaunchTemplateWithContext is the same as ModifyLaunchTemplate with the addition of
  20756. // the ability to pass a context and additional request options.
  20757. //
  20758. // See ModifyLaunchTemplate for details on how to use this API operation.
  20759. //
  20760. // The context must be non-nil and will be used for request cancellation. If
  20761. // the context is nil a panic will occur. In the future the SDK may create
  20762. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20763. // for more information on using Contexts.
  20764. func (c *EC2) ModifyLaunchTemplateWithContext(ctx aws.Context, input *ModifyLaunchTemplateInput, opts ...request.Option) (*ModifyLaunchTemplateOutput, error) {
  20765. req, out := c.ModifyLaunchTemplateRequest(input)
  20766. req.SetContext(ctx)
  20767. req.ApplyOptions(opts...)
  20768. return out, req.Send()
  20769. }
  20770. const opModifyNetworkInterfaceAttribute = "ModifyNetworkInterfaceAttribute"
  20771. // ModifyNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  20772. // client's request for the ModifyNetworkInterfaceAttribute operation. The "output" return
  20773. // value will be populated with the request's response once the request completes
  20774. // successfully.
  20775. //
  20776. // Use "Send" method on the returned Request to send the API call to the service.
  20777. // the "output" return value is not valid until after Send returns without error.
  20778. //
  20779. // See ModifyNetworkInterfaceAttribute for more information on using the ModifyNetworkInterfaceAttribute
  20780. // API call, and error handling.
  20781. //
  20782. // This method is useful when you want to inject custom logic or configuration
  20783. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20784. //
  20785. //
  20786. // // Example sending a request using the ModifyNetworkInterfaceAttributeRequest method.
  20787. // req, resp := client.ModifyNetworkInterfaceAttributeRequest(params)
  20788. //
  20789. // err := req.Send()
  20790. // if err == nil { // resp is now filled
  20791. // fmt.Println(resp)
  20792. // }
  20793. //
  20794. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttribute
  20795. func (c *EC2) ModifyNetworkInterfaceAttributeRequest(input *ModifyNetworkInterfaceAttributeInput) (req *request.Request, output *ModifyNetworkInterfaceAttributeOutput) {
  20796. op := &request.Operation{
  20797. Name: opModifyNetworkInterfaceAttribute,
  20798. HTTPMethod: "POST",
  20799. HTTPPath: "/",
  20800. }
  20801. if input == nil {
  20802. input = &ModifyNetworkInterfaceAttributeInput{}
  20803. }
  20804. output = &ModifyNetworkInterfaceAttributeOutput{}
  20805. req = c.newRequest(op, input, output)
  20806. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  20807. return
  20808. }
  20809. // ModifyNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  20810. //
  20811. // Modifies the specified network interface attribute. You can specify only
  20812. // one attribute at a time.
  20813. //
  20814. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20815. // with awserr.Error's Code and Message methods to get detailed information about
  20816. // the error.
  20817. //
  20818. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20819. // API operation ModifyNetworkInterfaceAttribute for usage and error information.
  20820. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttribute
  20821. func (c *EC2) ModifyNetworkInterfaceAttribute(input *ModifyNetworkInterfaceAttributeInput) (*ModifyNetworkInterfaceAttributeOutput, error) {
  20822. req, out := c.ModifyNetworkInterfaceAttributeRequest(input)
  20823. return out, req.Send()
  20824. }
  20825. // ModifyNetworkInterfaceAttributeWithContext is the same as ModifyNetworkInterfaceAttribute with the addition of
  20826. // the ability to pass a context and additional request options.
  20827. //
  20828. // See ModifyNetworkInterfaceAttribute for details on how to use this API operation.
  20829. //
  20830. // The context must be non-nil and will be used for request cancellation. If
  20831. // the context is nil a panic will occur. In the future the SDK may create
  20832. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20833. // for more information on using Contexts.
  20834. func (c *EC2) ModifyNetworkInterfaceAttributeWithContext(ctx aws.Context, input *ModifyNetworkInterfaceAttributeInput, opts ...request.Option) (*ModifyNetworkInterfaceAttributeOutput, error) {
  20835. req, out := c.ModifyNetworkInterfaceAttributeRequest(input)
  20836. req.SetContext(ctx)
  20837. req.ApplyOptions(opts...)
  20838. return out, req.Send()
  20839. }
  20840. const opModifyReservedInstances = "ModifyReservedInstances"
  20841. // ModifyReservedInstancesRequest generates a "aws/request.Request" representing the
  20842. // client's request for the ModifyReservedInstances operation. The "output" return
  20843. // value will be populated with the request's response once the request completes
  20844. // successfully.
  20845. //
  20846. // Use "Send" method on the returned Request to send the API call to the service.
  20847. // the "output" return value is not valid until after Send returns without error.
  20848. //
  20849. // See ModifyReservedInstances for more information on using the ModifyReservedInstances
  20850. // API call, and error handling.
  20851. //
  20852. // This method is useful when you want to inject custom logic or configuration
  20853. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20854. //
  20855. //
  20856. // // Example sending a request using the ModifyReservedInstancesRequest method.
  20857. // req, resp := client.ModifyReservedInstancesRequest(params)
  20858. //
  20859. // err := req.Send()
  20860. // if err == nil { // resp is now filled
  20861. // fmt.Println(resp)
  20862. // }
  20863. //
  20864. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstances
  20865. func (c *EC2) ModifyReservedInstancesRequest(input *ModifyReservedInstancesInput) (req *request.Request, output *ModifyReservedInstancesOutput) {
  20866. op := &request.Operation{
  20867. Name: opModifyReservedInstances,
  20868. HTTPMethod: "POST",
  20869. HTTPPath: "/",
  20870. }
  20871. if input == nil {
  20872. input = &ModifyReservedInstancesInput{}
  20873. }
  20874. output = &ModifyReservedInstancesOutput{}
  20875. req = c.newRequest(op, input, output)
  20876. return
  20877. }
  20878. // ModifyReservedInstances API operation for Amazon Elastic Compute Cloud.
  20879. //
  20880. // Modifies the Availability Zone, instance count, instance type, or network
  20881. // platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved
  20882. // Instances to be modified must be identical, except for Availability Zone,
  20883. // network platform, and instance type.
  20884. //
  20885. // For more information, see Modifying Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html)
  20886. // in the Amazon Elastic Compute Cloud User Guide.
  20887. //
  20888. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20889. // with awserr.Error's Code and Message methods to get detailed information about
  20890. // the error.
  20891. //
  20892. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20893. // API operation ModifyReservedInstances for usage and error information.
  20894. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstances
  20895. func (c *EC2) ModifyReservedInstances(input *ModifyReservedInstancesInput) (*ModifyReservedInstancesOutput, error) {
  20896. req, out := c.ModifyReservedInstancesRequest(input)
  20897. return out, req.Send()
  20898. }
  20899. // ModifyReservedInstancesWithContext is the same as ModifyReservedInstances with the addition of
  20900. // the ability to pass a context and additional request options.
  20901. //
  20902. // See ModifyReservedInstances for details on how to use this API operation.
  20903. //
  20904. // The context must be non-nil and will be used for request cancellation. If
  20905. // the context is nil a panic will occur. In the future the SDK may create
  20906. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20907. // for more information on using Contexts.
  20908. func (c *EC2) ModifyReservedInstancesWithContext(ctx aws.Context, input *ModifyReservedInstancesInput, opts ...request.Option) (*ModifyReservedInstancesOutput, error) {
  20909. req, out := c.ModifyReservedInstancesRequest(input)
  20910. req.SetContext(ctx)
  20911. req.ApplyOptions(opts...)
  20912. return out, req.Send()
  20913. }
  20914. const opModifySnapshotAttribute = "ModifySnapshotAttribute"
  20915. // ModifySnapshotAttributeRequest generates a "aws/request.Request" representing the
  20916. // client's request for the ModifySnapshotAttribute operation. The "output" return
  20917. // value will be populated with the request's response once the request completes
  20918. // successfully.
  20919. //
  20920. // Use "Send" method on the returned Request to send the API call to the service.
  20921. // the "output" return value is not valid until after Send returns without error.
  20922. //
  20923. // See ModifySnapshotAttribute for more information on using the ModifySnapshotAttribute
  20924. // API call, and error handling.
  20925. //
  20926. // This method is useful when you want to inject custom logic or configuration
  20927. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20928. //
  20929. //
  20930. // // Example sending a request using the ModifySnapshotAttributeRequest method.
  20931. // req, resp := client.ModifySnapshotAttributeRequest(params)
  20932. //
  20933. // err := req.Send()
  20934. // if err == nil { // resp is now filled
  20935. // fmt.Println(resp)
  20936. // }
  20937. //
  20938. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttribute
  20939. func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput) (req *request.Request, output *ModifySnapshotAttributeOutput) {
  20940. op := &request.Operation{
  20941. Name: opModifySnapshotAttribute,
  20942. HTTPMethod: "POST",
  20943. HTTPPath: "/",
  20944. }
  20945. if input == nil {
  20946. input = &ModifySnapshotAttributeInput{}
  20947. }
  20948. output = &ModifySnapshotAttributeOutput{}
  20949. req = c.newRequest(op, input, output)
  20950. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  20951. return
  20952. }
  20953. // ModifySnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  20954. //
  20955. // Adds or removes permission settings for the specified snapshot. You may add
  20956. // or remove specified AWS account IDs from a snapshot's list of create volume
  20957. // permissions, but you cannot do both in a single API call. If you need to
  20958. // both add and remove account IDs for a snapshot, you must use multiple API
  20959. // calls.
  20960. //
  20961. // Encrypted snapshots and snapshots with AWS Marketplace product codes cannot
  20962. // be made public. Snapshots encrypted with your default CMK cannot be shared
  20963. // with other accounts.
  20964. //
  20965. // For more information about modifying snapshot permissions, see Sharing Snapshots
  20966. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html)
  20967. // in the Amazon Elastic Compute Cloud User Guide.
  20968. //
  20969. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20970. // with awserr.Error's Code and Message methods to get detailed information about
  20971. // the error.
  20972. //
  20973. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20974. // API operation ModifySnapshotAttribute for usage and error information.
  20975. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttribute
  20976. func (c *EC2) ModifySnapshotAttribute(input *ModifySnapshotAttributeInput) (*ModifySnapshotAttributeOutput, error) {
  20977. req, out := c.ModifySnapshotAttributeRequest(input)
  20978. return out, req.Send()
  20979. }
  20980. // ModifySnapshotAttributeWithContext is the same as ModifySnapshotAttribute with the addition of
  20981. // the ability to pass a context and additional request options.
  20982. //
  20983. // See ModifySnapshotAttribute for details on how to use this API operation.
  20984. //
  20985. // The context must be non-nil and will be used for request cancellation. If
  20986. // the context is nil a panic will occur. In the future the SDK may create
  20987. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20988. // for more information on using Contexts.
  20989. func (c *EC2) ModifySnapshotAttributeWithContext(ctx aws.Context, input *ModifySnapshotAttributeInput, opts ...request.Option) (*ModifySnapshotAttributeOutput, error) {
  20990. req, out := c.ModifySnapshotAttributeRequest(input)
  20991. req.SetContext(ctx)
  20992. req.ApplyOptions(opts...)
  20993. return out, req.Send()
  20994. }
  20995. const opModifySpotFleetRequest = "ModifySpotFleetRequest"
  20996. // ModifySpotFleetRequestRequest generates a "aws/request.Request" representing the
  20997. // client's request for the ModifySpotFleetRequest operation. The "output" return
  20998. // value will be populated with the request's response once the request completes
  20999. // successfully.
  21000. //
  21001. // Use "Send" method on the returned Request to send the API call to the service.
  21002. // the "output" return value is not valid until after Send returns without error.
  21003. //
  21004. // See ModifySpotFleetRequest for more information on using the ModifySpotFleetRequest
  21005. // API call, and error handling.
  21006. //
  21007. // This method is useful when you want to inject custom logic or configuration
  21008. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21009. //
  21010. //
  21011. // // Example sending a request using the ModifySpotFleetRequestRequest method.
  21012. // req, resp := client.ModifySpotFleetRequestRequest(params)
  21013. //
  21014. // err := req.Send()
  21015. // if err == nil { // resp is now filled
  21016. // fmt.Println(resp)
  21017. // }
  21018. //
  21019. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequest
  21020. func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) (req *request.Request, output *ModifySpotFleetRequestOutput) {
  21021. op := &request.Operation{
  21022. Name: opModifySpotFleetRequest,
  21023. HTTPMethod: "POST",
  21024. HTTPPath: "/",
  21025. }
  21026. if input == nil {
  21027. input = &ModifySpotFleetRequestInput{}
  21028. }
  21029. output = &ModifySpotFleetRequestOutput{}
  21030. req = c.newRequest(op, input, output)
  21031. return
  21032. }
  21033. // ModifySpotFleetRequest API operation for Amazon Elastic Compute Cloud.
  21034. //
  21035. // Modifies the specified Spot Fleet request.
  21036. //
  21037. // While the Spot Fleet request is being modified, it is in the modifying state.
  21038. //
  21039. // To scale up your Spot Fleet, increase its target capacity. The Spot Fleet
  21040. // launches the additional Spot Instances according to the allocation strategy
  21041. // for the Spot Fleet request. If the allocation strategy is lowestPrice, the
  21042. // Spot Fleet launches instances using the Spot pool with the lowest price.
  21043. // If the allocation strategy is diversified, the Spot Fleet distributes the
  21044. // instances across the Spot pools.
  21045. //
  21046. // To scale down your Spot Fleet, decrease its target capacity. First, the Spot
  21047. // Fleet cancels any open requests that exceed the new target capacity. You
  21048. // can request that the Spot Fleet terminate Spot Instances until the size of
  21049. // the fleet no longer exceeds the new target capacity. If the allocation strategy
  21050. // is lowestPrice, the Spot Fleet terminates the instances with the highest
  21051. // price per unit. If the allocation strategy is diversified, the Spot Fleet
  21052. // terminates instances across the Spot pools. Alternatively, you can request
  21053. // that the Spot Fleet keep the fleet at its current size, but not replace any
  21054. // Spot Instances that are interrupted or that you terminate manually.
  21055. //
  21056. // If you are finished with your Spot Fleet for now, but will use it again later,
  21057. // you can set the target capacity to 0.
  21058. //
  21059. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21060. // with awserr.Error's Code and Message methods to get detailed information about
  21061. // the error.
  21062. //
  21063. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21064. // API operation ModifySpotFleetRequest for usage and error information.
  21065. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequest
  21066. func (c *EC2) ModifySpotFleetRequest(input *ModifySpotFleetRequestInput) (*ModifySpotFleetRequestOutput, error) {
  21067. req, out := c.ModifySpotFleetRequestRequest(input)
  21068. return out, req.Send()
  21069. }
  21070. // ModifySpotFleetRequestWithContext is the same as ModifySpotFleetRequest with the addition of
  21071. // the ability to pass a context and additional request options.
  21072. //
  21073. // See ModifySpotFleetRequest for details on how to use this API operation.
  21074. //
  21075. // The context must be non-nil and will be used for request cancellation. If
  21076. // the context is nil a panic will occur. In the future the SDK may create
  21077. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21078. // for more information on using Contexts.
  21079. func (c *EC2) ModifySpotFleetRequestWithContext(ctx aws.Context, input *ModifySpotFleetRequestInput, opts ...request.Option) (*ModifySpotFleetRequestOutput, error) {
  21080. req, out := c.ModifySpotFleetRequestRequest(input)
  21081. req.SetContext(ctx)
  21082. req.ApplyOptions(opts...)
  21083. return out, req.Send()
  21084. }
  21085. const opModifySubnetAttribute = "ModifySubnetAttribute"
  21086. // ModifySubnetAttributeRequest generates a "aws/request.Request" representing the
  21087. // client's request for the ModifySubnetAttribute operation. The "output" return
  21088. // value will be populated with the request's response once the request completes
  21089. // successfully.
  21090. //
  21091. // Use "Send" method on the returned Request to send the API call to the service.
  21092. // the "output" return value is not valid until after Send returns without error.
  21093. //
  21094. // See ModifySubnetAttribute for more information on using the ModifySubnetAttribute
  21095. // API call, and error handling.
  21096. //
  21097. // This method is useful when you want to inject custom logic or configuration
  21098. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21099. //
  21100. //
  21101. // // Example sending a request using the ModifySubnetAttributeRequest method.
  21102. // req, resp := client.ModifySubnetAttributeRequest(params)
  21103. //
  21104. // err := req.Send()
  21105. // if err == nil { // resp is now filled
  21106. // fmt.Println(resp)
  21107. // }
  21108. //
  21109. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttribute
  21110. func (c *EC2) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) (req *request.Request, output *ModifySubnetAttributeOutput) {
  21111. op := &request.Operation{
  21112. Name: opModifySubnetAttribute,
  21113. HTTPMethod: "POST",
  21114. HTTPPath: "/",
  21115. }
  21116. if input == nil {
  21117. input = &ModifySubnetAttributeInput{}
  21118. }
  21119. output = &ModifySubnetAttributeOutput{}
  21120. req = c.newRequest(op, input, output)
  21121. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  21122. return
  21123. }
  21124. // ModifySubnetAttribute API operation for Amazon Elastic Compute Cloud.
  21125. //
  21126. // Modifies a subnet attribute. You can only modify one attribute at a time.
  21127. //
  21128. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21129. // with awserr.Error's Code and Message methods to get detailed information about
  21130. // the error.
  21131. //
  21132. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21133. // API operation ModifySubnetAttribute for usage and error information.
  21134. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttribute
  21135. func (c *EC2) ModifySubnetAttribute(input *ModifySubnetAttributeInput) (*ModifySubnetAttributeOutput, error) {
  21136. req, out := c.ModifySubnetAttributeRequest(input)
  21137. return out, req.Send()
  21138. }
  21139. // ModifySubnetAttributeWithContext is the same as ModifySubnetAttribute with the addition of
  21140. // the ability to pass a context and additional request options.
  21141. //
  21142. // See ModifySubnetAttribute for details on how to use this API operation.
  21143. //
  21144. // The context must be non-nil and will be used for request cancellation. If
  21145. // the context is nil a panic will occur. In the future the SDK may create
  21146. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21147. // for more information on using Contexts.
  21148. func (c *EC2) ModifySubnetAttributeWithContext(ctx aws.Context, input *ModifySubnetAttributeInput, opts ...request.Option) (*ModifySubnetAttributeOutput, error) {
  21149. req, out := c.ModifySubnetAttributeRequest(input)
  21150. req.SetContext(ctx)
  21151. req.ApplyOptions(opts...)
  21152. return out, req.Send()
  21153. }
  21154. const opModifyTransitGatewayVpcAttachment = "ModifyTransitGatewayVpcAttachment"
  21155. // ModifyTransitGatewayVpcAttachmentRequest generates a "aws/request.Request" representing the
  21156. // client's request for the ModifyTransitGatewayVpcAttachment operation. The "output" return
  21157. // value will be populated with the request's response once the request completes
  21158. // successfully.
  21159. //
  21160. // Use "Send" method on the returned Request to send the API call to the service.
  21161. // the "output" return value is not valid until after Send returns without error.
  21162. //
  21163. // See ModifyTransitGatewayVpcAttachment for more information on using the ModifyTransitGatewayVpcAttachment
  21164. // API call, and error handling.
  21165. //
  21166. // This method is useful when you want to inject custom logic or configuration
  21167. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21168. //
  21169. //
  21170. // // Example sending a request using the ModifyTransitGatewayVpcAttachmentRequest method.
  21171. // req, resp := client.ModifyTransitGatewayVpcAttachmentRequest(params)
  21172. //
  21173. // err := req.Send()
  21174. // if err == nil { // resp is now filled
  21175. // fmt.Println(resp)
  21176. // }
  21177. //
  21178. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyTransitGatewayVpcAttachment
  21179. func (c *EC2) ModifyTransitGatewayVpcAttachmentRequest(input *ModifyTransitGatewayVpcAttachmentInput) (req *request.Request, output *ModifyTransitGatewayVpcAttachmentOutput) {
  21180. op := &request.Operation{
  21181. Name: opModifyTransitGatewayVpcAttachment,
  21182. HTTPMethod: "POST",
  21183. HTTPPath: "/",
  21184. }
  21185. if input == nil {
  21186. input = &ModifyTransitGatewayVpcAttachmentInput{}
  21187. }
  21188. output = &ModifyTransitGatewayVpcAttachmentOutput{}
  21189. req = c.newRequest(op, input, output)
  21190. return
  21191. }
  21192. // ModifyTransitGatewayVpcAttachment API operation for Amazon Elastic Compute Cloud.
  21193. //
  21194. // Modifies the specified VPC attachment.
  21195. //
  21196. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21197. // with awserr.Error's Code and Message methods to get detailed information about
  21198. // the error.
  21199. //
  21200. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21201. // API operation ModifyTransitGatewayVpcAttachment for usage and error information.
  21202. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyTransitGatewayVpcAttachment
  21203. func (c *EC2) ModifyTransitGatewayVpcAttachment(input *ModifyTransitGatewayVpcAttachmentInput) (*ModifyTransitGatewayVpcAttachmentOutput, error) {
  21204. req, out := c.ModifyTransitGatewayVpcAttachmentRequest(input)
  21205. return out, req.Send()
  21206. }
  21207. // ModifyTransitGatewayVpcAttachmentWithContext is the same as ModifyTransitGatewayVpcAttachment with the addition of
  21208. // the ability to pass a context and additional request options.
  21209. //
  21210. // See ModifyTransitGatewayVpcAttachment for details on how to use this API operation.
  21211. //
  21212. // The context must be non-nil and will be used for request cancellation. If
  21213. // the context is nil a panic will occur. In the future the SDK may create
  21214. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21215. // for more information on using Contexts.
  21216. func (c *EC2) ModifyTransitGatewayVpcAttachmentWithContext(ctx aws.Context, input *ModifyTransitGatewayVpcAttachmentInput, opts ...request.Option) (*ModifyTransitGatewayVpcAttachmentOutput, error) {
  21217. req, out := c.ModifyTransitGatewayVpcAttachmentRequest(input)
  21218. req.SetContext(ctx)
  21219. req.ApplyOptions(opts...)
  21220. return out, req.Send()
  21221. }
  21222. const opModifyVolume = "ModifyVolume"
  21223. // ModifyVolumeRequest generates a "aws/request.Request" representing the
  21224. // client's request for the ModifyVolume operation. The "output" return
  21225. // value will be populated with the request's response once the request completes
  21226. // successfully.
  21227. //
  21228. // Use "Send" method on the returned Request to send the API call to the service.
  21229. // the "output" return value is not valid until after Send returns without error.
  21230. //
  21231. // See ModifyVolume for more information on using the ModifyVolume
  21232. // API call, and error handling.
  21233. //
  21234. // This method is useful when you want to inject custom logic or configuration
  21235. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21236. //
  21237. //
  21238. // // Example sending a request using the ModifyVolumeRequest method.
  21239. // req, resp := client.ModifyVolumeRequest(params)
  21240. //
  21241. // err := req.Send()
  21242. // if err == nil { // resp is now filled
  21243. // fmt.Println(resp)
  21244. // }
  21245. //
  21246. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolume
  21247. func (c *EC2) ModifyVolumeRequest(input *ModifyVolumeInput) (req *request.Request, output *ModifyVolumeOutput) {
  21248. op := &request.Operation{
  21249. Name: opModifyVolume,
  21250. HTTPMethod: "POST",
  21251. HTTPPath: "/",
  21252. }
  21253. if input == nil {
  21254. input = &ModifyVolumeInput{}
  21255. }
  21256. output = &ModifyVolumeOutput{}
  21257. req = c.newRequest(op, input, output)
  21258. return
  21259. }
  21260. // ModifyVolume API operation for Amazon Elastic Compute Cloud.
  21261. //
  21262. // You can modify several parameters of an existing EBS volume, including volume
  21263. // size, volume type, and IOPS capacity. If your EBS volume is attached to a
  21264. // current-generation EC2 instance type, you may be able to apply these changes
  21265. // without stopping the instance or detaching the volume from it. For more information
  21266. // about modifying an EBS volume running Linux, see Modifying the Size, IOPS,
  21267. // or Type of an EBS Volume on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html).
  21268. // For more information about modifying an EBS volume running Windows, see Modifying
  21269. // the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html).
  21270. //
  21271. // When you complete a resize operation on your volume, you need to extend the
  21272. // volume's file-system size to take advantage of the new storage capacity.
  21273. // For information about extending a Linux file system, see Extending a Linux
  21274. // File System (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux).
  21275. // For information about extending a Windows file system, see Extending a Windows
  21276. // File System (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows).
  21277. //
  21278. // You can use CloudWatch Events to check the status of a modification to an
  21279. // EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch
  21280. // Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/).
  21281. // You can also track the status of a modification using the DescribeVolumesModifications
  21282. // API. For information about tracking status changes using either method, see
  21283. // Monitoring Volume Modifications (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods).
  21284. //
  21285. // With previous-generation instance types, resizing an EBS volume may require
  21286. // detaching and reattaching the volume or stopping and restarting the instance.
  21287. // For more information, see Modifying the Size, IOPS, or Type of an EBS Volume
  21288. // on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html)
  21289. // and Modifying the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html).
  21290. //
  21291. // If you reach the maximum volume modification rate per volume limit, you will
  21292. // need to wait at least six hours before applying further modifications to
  21293. // the affected EBS volume.
  21294. //
  21295. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21296. // with awserr.Error's Code and Message methods to get detailed information about
  21297. // the error.
  21298. //
  21299. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21300. // API operation ModifyVolume for usage and error information.
  21301. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolume
  21302. func (c *EC2) ModifyVolume(input *ModifyVolumeInput) (*ModifyVolumeOutput, error) {
  21303. req, out := c.ModifyVolumeRequest(input)
  21304. return out, req.Send()
  21305. }
  21306. // ModifyVolumeWithContext is the same as ModifyVolume with the addition of
  21307. // the ability to pass a context and additional request options.
  21308. //
  21309. // See ModifyVolume for details on how to use this API operation.
  21310. //
  21311. // The context must be non-nil and will be used for request cancellation. If
  21312. // the context is nil a panic will occur. In the future the SDK may create
  21313. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21314. // for more information on using Contexts.
  21315. func (c *EC2) ModifyVolumeWithContext(ctx aws.Context, input *ModifyVolumeInput, opts ...request.Option) (*ModifyVolumeOutput, error) {
  21316. req, out := c.ModifyVolumeRequest(input)
  21317. req.SetContext(ctx)
  21318. req.ApplyOptions(opts...)
  21319. return out, req.Send()
  21320. }
  21321. const opModifyVolumeAttribute = "ModifyVolumeAttribute"
  21322. // ModifyVolumeAttributeRequest generates a "aws/request.Request" representing the
  21323. // client's request for the ModifyVolumeAttribute operation. The "output" return
  21324. // value will be populated with the request's response once the request completes
  21325. // successfully.
  21326. //
  21327. // Use "Send" method on the returned Request to send the API call to the service.
  21328. // the "output" return value is not valid until after Send returns without error.
  21329. //
  21330. // See ModifyVolumeAttribute for more information on using the ModifyVolumeAttribute
  21331. // API call, and error handling.
  21332. //
  21333. // This method is useful when you want to inject custom logic or configuration
  21334. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21335. //
  21336. //
  21337. // // Example sending a request using the ModifyVolumeAttributeRequest method.
  21338. // req, resp := client.ModifyVolumeAttributeRequest(params)
  21339. //
  21340. // err := req.Send()
  21341. // if err == nil { // resp is now filled
  21342. // fmt.Println(resp)
  21343. // }
  21344. //
  21345. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttribute
  21346. func (c *EC2) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) (req *request.Request, output *ModifyVolumeAttributeOutput) {
  21347. op := &request.Operation{
  21348. Name: opModifyVolumeAttribute,
  21349. HTTPMethod: "POST",
  21350. HTTPPath: "/",
  21351. }
  21352. if input == nil {
  21353. input = &ModifyVolumeAttributeInput{}
  21354. }
  21355. output = &ModifyVolumeAttributeOutput{}
  21356. req = c.newRequest(op, input, output)
  21357. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  21358. return
  21359. }
  21360. // ModifyVolumeAttribute API operation for Amazon Elastic Compute Cloud.
  21361. //
  21362. // Modifies a volume attribute.
  21363. //
  21364. // By default, all I/O operations for the volume are suspended when the data
  21365. // on the volume is determined to be potentially inconsistent, to prevent undetectable,
  21366. // latent data corruption. The I/O access to the volume can be resumed by first
  21367. // enabling I/O access and then checking the data consistency on your volume.
  21368. //
  21369. // You can change the default behavior to resume I/O operations. We recommend
  21370. // that you change this only for boot volumes or for volumes that are stateless
  21371. // or disposable.
  21372. //
  21373. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21374. // with awserr.Error's Code and Message methods to get detailed information about
  21375. // the error.
  21376. //
  21377. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21378. // API operation ModifyVolumeAttribute for usage and error information.
  21379. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttribute
  21380. func (c *EC2) ModifyVolumeAttribute(input *ModifyVolumeAttributeInput) (*ModifyVolumeAttributeOutput, error) {
  21381. req, out := c.ModifyVolumeAttributeRequest(input)
  21382. return out, req.Send()
  21383. }
  21384. // ModifyVolumeAttributeWithContext is the same as ModifyVolumeAttribute with the addition of
  21385. // the ability to pass a context and additional request options.
  21386. //
  21387. // See ModifyVolumeAttribute for details on how to use this API operation.
  21388. //
  21389. // The context must be non-nil and will be used for request cancellation. If
  21390. // the context is nil a panic will occur. In the future the SDK may create
  21391. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21392. // for more information on using Contexts.
  21393. func (c *EC2) ModifyVolumeAttributeWithContext(ctx aws.Context, input *ModifyVolumeAttributeInput, opts ...request.Option) (*ModifyVolumeAttributeOutput, error) {
  21394. req, out := c.ModifyVolumeAttributeRequest(input)
  21395. req.SetContext(ctx)
  21396. req.ApplyOptions(opts...)
  21397. return out, req.Send()
  21398. }
  21399. const opModifyVpcAttribute = "ModifyVpcAttribute"
  21400. // ModifyVpcAttributeRequest generates a "aws/request.Request" representing the
  21401. // client's request for the ModifyVpcAttribute operation. The "output" return
  21402. // value will be populated with the request's response once the request completes
  21403. // successfully.
  21404. //
  21405. // Use "Send" method on the returned Request to send the API call to the service.
  21406. // the "output" return value is not valid until after Send returns without error.
  21407. //
  21408. // See ModifyVpcAttribute for more information on using the ModifyVpcAttribute
  21409. // API call, and error handling.
  21410. //
  21411. // This method is useful when you want to inject custom logic or configuration
  21412. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21413. //
  21414. //
  21415. // // Example sending a request using the ModifyVpcAttributeRequest method.
  21416. // req, resp := client.ModifyVpcAttributeRequest(params)
  21417. //
  21418. // err := req.Send()
  21419. // if err == nil { // resp is now filled
  21420. // fmt.Println(resp)
  21421. // }
  21422. //
  21423. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute
  21424. func (c *EC2) ModifyVpcAttributeRequest(input *ModifyVpcAttributeInput) (req *request.Request, output *ModifyVpcAttributeOutput) {
  21425. op := &request.Operation{
  21426. Name: opModifyVpcAttribute,
  21427. HTTPMethod: "POST",
  21428. HTTPPath: "/",
  21429. }
  21430. if input == nil {
  21431. input = &ModifyVpcAttributeInput{}
  21432. }
  21433. output = &ModifyVpcAttributeOutput{}
  21434. req = c.newRequest(op, input, output)
  21435. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  21436. return
  21437. }
  21438. // ModifyVpcAttribute API operation for Amazon Elastic Compute Cloud.
  21439. //
  21440. // Modifies the specified attribute of the specified VPC.
  21441. //
  21442. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21443. // with awserr.Error's Code and Message methods to get detailed information about
  21444. // the error.
  21445. //
  21446. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21447. // API operation ModifyVpcAttribute for usage and error information.
  21448. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute
  21449. func (c *EC2) ModifyVpcAttribute(input *ModifyVpcAttributeInput) (*ModifyVpcAttributeOutput, error) {
  21450. req, out := c.ModifyVpcAttributeRequest(input)
  21451. return out, req.Send()
  21452. }
  21453. // ModifyVpcAttributeWithContext is the same as ModifyVpcAttribute with the addition of
  21454. // the ability to pass a context and additional request options.
  21455. //
  21456. // See ModifyVpcAttribute for details on how to use this API operation.
  21457. //
  21458. // The context must be non-nil and will be used for request cancellation. If
  21459. // the context is nil a panic will occur. In the future the SDK may create
  21460. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21461. // for more information on using Contexts.
  21462. func (c *EC2) ModifyVpcAttributeWithContext(ctx aws.Context, input *ModifyVpcAttributeInput, opts ...request.Option) (*ModifyVpcAttributeOutput, error) {
  21463. req, out := c.ModifyVpcAttributeRequest(input)
  21464. req.SetContext(ctx)
  21465. req.ApplyOptions(opts...)
  21466. return out, req.Send()
  21467. }
  21468. const opModifyVpcEndpoint = "ModifyVpcEndpoint"
  21469. // ModifyVpcEndpointRequest generates a "aws/request.Request" representing the
  21470. // client's request for the ModifyVpcEndpoint operation. The "output" return
  21471. // value will be populated with the request's response once the request completes
  21472. // successfully.
  21473. //
  21474. // Use "Send" method on the returned Request to send the API call to the service.
  21475. // the "output" return value is not valid until after Send returns without error.
  21476. //
  21477. // See ModifyVpcEndpoint for more information on using the ModifyVpcEndpoint
  21478. // API call, and error handling.
  21479. //
  21480. // This method is useful when you want to inject custom logic or configuration
  21481. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21482. //
  21483. //
  21484. // // Example sending a request using the ModifyVpcEndpointRequest method.
  21485. // req, resp := client.ModifyVpcEndpointRequest(params)
  21486. //
  21487. // err := req.Send()
  21488. // if err == nil { // resp is now filled
  21489. // fmt.Println(resp)
  21490. // }
  21491. //
  21492. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpoint
  21493. func (c *EC2) ModifyVpcEndpointRequest(input *ModifyVpcEndpointInput) (req *request.Request, output *ModifyVpcEndpointOutput) {
  21494. op := &request.Operation{
  21495. Name: opModifyVpcEndpoint,
  21496. HTTPMethod: "POST",
  21497. HTTPPath: "/",
  21498. }
  21499. if input == nil {
  21500. input = &ModifyVpcEndpointInput{}
  21501. }
  21502. output = &ModifyVpcEndpointOutput{}
  21503. req = c.newRequest(op, input, output)
  21504. return
  21505. }
  21506. // ModifyVpcEndpoint API operation for Amazon Elastic Compute Cloud.
  21507. //
  21508. // Modifies attributes of a specified VPC endpoint. The attributes that you
  21509. // can modify depend on the type of VPC endpoint (interface or gateway). For
  21510. // more information, see VPC Endpoints (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-endpoints.html)
  21511. // in the Amazon Virtual Private Cloud User Guide.
  21512. //
  21513. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21514. // with awserr.Error's Code and Message methods to get detailed information about
  21515. // the error.
  21516. //
  21517. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21518. // API operation ModifyVpcEndpoint for usage and error information.
  21519. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpoint
  21520. func (c *EC2) ModifyVpcEndpoint(input *ModifyVpcEndpointInput) (*ModifyVpcEndpointOutput, error) {
  21521. req, out := c.ModifyVpcEndpointRequest(input)
  21522. return out, req.Send()
  21523. }
  21524. // ModifyVpcEndpointWithContext is the same as ModifyVpcEndpoint with the addition of
  21525. // the ability to pass a context and additional request options.
  21526. //
  21527. // See ModifyVpcEndpoint for details on how to use this API operation.
  21528. //
  21529. // The context must be non-nil and will be used for request cancellation. If
  21530. // the context is nil a panic will occur. In the future the SDK may create
  21531. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21532. // for more information on using Contexts.
  21533. func (c *EC2) ModifyVpcEndpointWithContext(ctx aws.Context, input *ModifyVpcEndpointInput, opts ...request.Option) (*ModifyVpcEndpointOutput, error) {
  21534. req, out := c.ModifyVpcEndpointRequest(input)
  21535. req.SetContext(ctx)
  21536. req.ApplyOptions(opts...)
  21537. return out, req.Send()
  21538. }
  21539. const opModifyVpcEndpointConnectionNotification = "ModifyVpcEndpointConnectionNotification"
  21540. // ModifyVpcEndpointConnectionNotificationRequest generates a "aws/request.Request" representing the
  21541. // client's request for the ModifyVpcEndpointConnectionNotification operation. The "output" return
  21542. // value will be populated with the request's response once the request completes
  21543. // successfully.
  21544. //
  21545. // Use "Send" method on the returned Request to send the API call to the service.
  21546. // the "output" return value is not valid until after Send returns without error.
  21547. //
  21548. // See ModifyVpcEndpointConnectionNotification for more information on using the ModifyVpcEndpointConnectionNotification
  21549. // API call, and error handling.
  21550. //
  21551. // This method is useful when you want to inject custom logic or configuration
  21552. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21553. //
  21554. //
  21555. // // Example sending a request using the ModifyVpcEndpointConnectionNotificationRequest method.
  21556. // req, resp := client.ModifyVpcEndpointConnectionNotificationRequest(params)
  21557. //
  21558. // err := req.Send()
  21559. // if err == nil { // resp is now filled
  21560. // fmt.Println(resp)
  21561. // }
  21562. //
  21563. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotification
  21564. func (c *EC2) ModifyVpcEndpointConnectionNotificationRequest(input *ModifyVpcEndpointConnectionNotificationInput) (req *request.Request, output *ModifyVpcEndpointConnectionNotificationOutput) {
  21565. op := &request.Operation{
  21566. Name: opModifyVpcEndpointConnectionNotification,
  21567. HTTPMethod: "POST",
  21568. HTTPPath: "/",
  21569. }
  21570. if input == nil {
  21571. input = &ModifyVpcEndpointConnectionNotificationInput{}
  21572. }
  21573. output = &ModifyVpcEndpointConnectionNotificationOutput{}
  21574. req = c.newRequest(op, input, output)
  21575. return
  21576. }
  21577. // ModifyVpcEndpointConnectionNotification API operation for Amazon Elastic Compute Cloud.
  21578. //
  21579. // Modifies a connection notification for VPC endpoint or VPC endpoint service.
  21580. // You can change the SNS topic for the notification, or the events for which
  21581. // to be notified.
  21582. //
  21583. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21584. // with awserr.Error's Code and Message methods to get detailed information about
  21585. // the error.
  21586. //
  21587. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21588. // API operation ModifyVpcEndpointConnectionNotification for usage and error information.
  21589. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotification
  21590. func (c *EC2) ModifyVpcEndpointConnectionNotification(input *ModifyVpcEndpointConnectionNotificationInput) (*ModifyVpcEndpointConnectionNotificationOutput, error) {
  21591. req, out := c.ModifyVpcEndpointConnectionNotificationRequest(input)
  21592. return out, req.Send()
  21593. }
  21594. // ModifyVpcEndpointConnectionNotificationWithContext is the same as ModifyVpcEndpointConnectionNotification with the addition of
  21595. // the ability to pass a context and additional request options.
  21596. //
  21597. // See ModifyVpcEndpointConnectionNotification for details on how to use this API operation.
  21598. //
  21599. // The context must be non-nil and will be used for request cancellation. If
  21600. // the context is nil a panic will occur. In the future the SDK may create
  21601. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21602. // for more information on using Contexts.
  21603. func (c *EC2) ModifyVpcEndpointConnectionNotificationWithContext(ctx aws.Context, input *ModifyVpcEndpointConnectionNotificationInput, opts ...request.Option) (*ModifyVpcEndpointConnectionNotificationOutput, error) {
  21604. req, out := c.ModifyVpcEndpointConnectionNotificationRequest(input)
  21605. req.SetContext(ctx)
  21606. req.ApplyOptions(opts...)
  21607. return out, req.Send()
  21608. }
  21609. const opModifyVpcEndpointServiceConfiguration = "ModifyVpcEndpointServiceConfiguration"
  21610. // ModifyVpcEndpointServiceConfigurationRequest generates a "aws/request.Request" representing the
  21611. // client's request for the ModifyVpcEndpointServiceConfiguration operation. The "output" return
  21612. // value will be populated with the request's response once the request completes
  21613. // successfully.
  21614. //
  21615. // Use "Send" method on the returned Request to send the API call to the service.
  21616. // the "output" return value is not valid until after Send returns without error.
  21617. //
  21618. // See ModifyVpcEndpointServiceConfiguration for more information on using the ModifyVpcEndpointServiceConfiguration
  21619. // API call, and error handling.
  21620. //
  21621. // This method is useful when you want to inject custom logic or configuration
  21622. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21623. //
  21624. //
  21625. // // Example sending a request using the ModifyVpcEndpointServiceConfigurationRequest method.
  21626. // req, resp := client.ModifyVpcEndpointServiceConfigurationRequest(params)
  21627. //
  21628. // err := req.Send()
  21629. // if err == nil { // resp is now filled
  21630. // fmt.Println(resp)
  21631. // }
  21632. //
  21633. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfiguration
  21634. func (c *EC2) ModifyVpcEndpointServiceConfigurationRequest(input *ModifyVpcEndpointServiceConfigurationInput) (req *request.Request, output *ModifyVpcEndpointServiceConfigurationOutput) {
  21635. op := &request.Operation{
  21636. Name: opModifyVpcEndpointServiceConfiguration,
  21637. HTTPMethod: "POST",
  21638. HTTPPath: "/",
  21639. }
  21640. if input == nil {
  21641. input = &ModifyVpcEndpointServiceConfigurationInput{}
  21642. }
  21643. output = &ModifyVpcEndpointServiceConfigurationOutput{}
  21644. req = c.newRequest(op, input, output)
  21645. return
  21646. }
  21647. // ModifyVpcEndpointServiceConfiguration API operation for Amazon Elastic Compute Cloud.
  21648. //
  21649. // Modifies the attributes of your VPC endpoint service configuration. You can
  21650. // change the Network Load Balancers for your service, and you can specify whether
  21651. // acceptance is required for requests to connect to your endpoint service through
  21652. // an interface VPC endpoint.
  21653. //
  21654. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21655. // with awserr.Error's Code and Message methods to get detailed information about
  21656. // the error.
  21657. //
  21658. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21659. // API operation ModifyVpcEndpointServiceConfiguration for usage and error information.
  21660. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfiguration
  21661. func (c *EC2) ModifyVpcEndpointServiceConfiguration(input *ModifyVpcEndpointServiceConfigurationInput) (*ModifyVpcEndpointServiceConfigurationOutput, error) {
  21662. req, out := c.ModifyVpcEndpointServiceConfigurationRequest(input)
  21663. return out, req.Send()
  21664. }
  21665. // ModifyVpcEndpointServiceConfigurationWithContext is the same as ModifyVpcEndpointServiceConfiguration with the addition of
  21666. // the ability to pass a context and additional request options.
  21667. //
  21668. // See ModifyVpcEndpointServiceConfiguration for details on how to use this API operation.
  21669. //
  21670. // The context must be non-nil and will be used for request cancellation. If
  21671. // the context is nil a panic will occur. In the future the SDK may create
  21672. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21673. // for more information on using Contexts.
  21674. func (c *EC2) ModifyVpcEndpointServiceConfigurationWithContext(ctx aws.Context, input *ModifyVpcEndpointServiceConfigurationInput, opts ...request.Option) (*ModifyVpcEndpointServiceConfigurationOutput, error) {
  21675. req, out := c.ModifyVpcEndpointServiceConfigurationRequest(input)
  21676. req.SetContext(ctx)
  21677. req.ApplyOptions(opts...)
  21678. return out, req.Send()
  21679. }
  21680. const opModifyVpcEndpointServicePermissions = "ModifyVpcEndpointServicePermissions"
  21681. // ModifyVpcEndpointServicePermissionsRequest generates a "aws/request.Request" representing the
  21682. // client's request for the ModifyVpcEndpointServicePermissions operation. The "output" return
  21683. // value will be populated with the request's response once the request completes
  21684. // successfully.
  21685. //
  21686. // Use "Send" method on the returned Request to send the API call to the service.
  21687. // the "output" return value is not valid until after Send returns without error.
  21688. //
  21689. // See ModifyVpcEndpointServicePermissions for more information on using the ModifyVpcEndpointServicePermissions
  21690. // API call, and error handling.
  21691. //
  21692. // This method is useful when you want to inject custom logic or configuration
  21693. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21694. //
  21695. //
  21696. // // Example sending a request using the ModifyVpcEndpointServicePermissionsRequest method.
  21697. // req, resp := client.ModifyVpcEndpointServicePermissionsRequest(params)
  21698. //
  21699. // err := req.Send()
  21700. // if err == nil { // resp is now filled
  21701. // fmt.Println(resp)
  21702. // }
  21703. //
  21704. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissions
  21705. func (c *EC2) ModifyVpcEndpointServicePermissionsRequest(input *ModifyVpcEndpointServicePermissionsInput) (req *request.Request, output *ModifyVpcEndpointServicePermissionsOutput) {
  21706. op := &request.Operation{
  21707. Name: opModifyVpcEndpointServicePermissions,
  21708. HTTPMethod: "POST",
  21709. HTTPPath: "/",
  21710. }
  21711. if input == nil {
  21712. input = &ModifyVpcEndpointServicePermissionsInput{}
  21713. }
  21714. output = &ModifyVpcEndpointServicePermissionsOutput{}
  21715. req = c.newRequest(op, input, output)
  21716. return
  21717. }
  21718. // ModifyVpcEndpointServicePermissions API operation for Amazon Elastic Compute Cloud.
  21719. //
  21720. // Modifies the permissions for your VPC endpoint service (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/endpoint-service.html).
  21721. // You can add or remove permissions for service consumers (IAM users, IAM roles,
  21722. // and AWS accounts) to connect to your endpoint service.
  21723. //
  21724. // If you grant permissions to all principals, the service is public. Any users
  21725. // who know the name of a public service can send a request to attach an endpoint.
  21726. // If the service does not require manual approval, attachments are automatically
  21727. // approved.
  21728. //
  21729. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21730. // with awserr.Error's Code and Message methods to get detailed information about
  21731. // the error.
  21732. //
  21733. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21734. // API operation ModifyVpcEndpointServicePermissions for usage and error information.
  21735. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissions
  21736. func (c *EC2) ModifyVpcEndpointServicePermissions(input *ModifyVpcEndpointServicePermissionsInput) (*ModifyVpcEndpointServicePermissionsOutput, error) {
  21737. req, out := c.ModifyVpcEndpointServicePermissionsRequest(input)
  21738. return out, req.Send()
  21739. }
  21740. // ModifyVpcEndpointServicePermissionsWithContext is the same as ModifyVpcEndpointServicePermissions with the addition of
  21741. // the ability to pass a context and additional request options.
  21742. //
  21743. // See ModifyVpcEndpointServicePermissions for details on how to use this API operation.
  21744. //
  21745. // The context must be non-nil and will be used for request cancellation. If
  21746. // the context is nil a panic will occur. In the future the SDK may create
  21747. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21748. // for more information on using Contexts.
  21749. func (c *EC2) ModifyVpcEndpointServicePermissionsWithContext(ctx aws.Context, input *ModifyVpcEndpointServicePermissionsInput, opts ...request.Option) (*ModifyVpcEndpointServicePermissionsOutput, error) {
  21750. req, out := c.ModifyVpcEndpointServicePermissionsRequest(input)
  21751. req.SetContext(ctx)
  21752. req.ApplyOptions(opts...)
  21753. return out, req.Send()
  21754. }
  21755. const opModifyVpcPeeringConnectionOptions = "ModifyVpcPeeringConnectionOptions"
  21756. // ModifyVpcPeeringConnectionOptionsRequest generates a "aws/request.Request" representing the
  21757. // client's request for the ModifyVpcPeeringConnectionOptions operation. The "output" return
  21758. // value will be populated with the request's response once the request completes
  21759. // successfully.
  21760. //
  21761. // Use "Send" method on the returned Request to send the API call to the service.
  21762. // the "output" return value is not valid until after Send returns without error.
  21763. //
  21764. // See ModifyVpcPeeringConnectionOptions for more information on using the ModifyVpcPeeringConnectionOptions
  21765. // API call, and error handling.
  21766. //
  21767. // This method is useful when you want to inject custom logic or configuration
  21768. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21769. //
  21770. //
  21771. // // Example sending a request using the ModifyVpcPeeringConnectionOptionsRequest method.
  21772. // req, resp := client.ModifyVpcPeeringConnectionOptionsRequest(params)
  21773. //
  21774. // err := req.Send()
  21775. // if err == nil { // resp is now filled
  21776. // fmt.Println(resp)
  21777. // }
  21778. //
  21779. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptions
  21780. func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringConnectionOptionsInput) (req *request.Request, output *ModifyVpcPeeringConnectionOptionsOutput) {
  21781. op := &request.Operation{
  21782. Name: opModifyVpcPeeringConnectionOptions,
  21783. HTTPMethod: "POST",
  21784. HTTPPath: "/",
  21785. }
  21786. if input == nil {
  21787. input = &ModifyVpcPeeringConnectionOptionsInput{}
  21788. }
  21789. output = &ModifyVpcPeeringConnectionOptionsOutput{}
  21790. req = c.newRequest(op, input, output)
  21791. return
  21792. }
  21793. // ModifyVpcPeeringConnectionOptions API operation for Amazon Elastic Compute Cloud.
  21794. //
  21795. // Modifies the VPC peering connection options on one side of a VPC peering
  21796. // connection. You can do the following:
  21797. //
  21798. // * Enable/disable communication over the peering connection between an
  21799. // EC2-Classic instance that's linked to your VPC (using ClassicLink) and
  21800. // instances in the peer VPC.
  21801. //
  21802. // * Enable/disable communication over the peering connection between instances
  21803. // in your VPC and an EC2-Classic instance that's linked to the peer VPC.
  21804. //
  21805. // * Enable/disable the ability to resolve public DNS hostnames to private
  21806. // IP addresses when queried from instances in the peer VPC.
  21807. //
  21808. // If the peered VPCs are in the same AWS account, you can enable DNS resolution
  21809. // for queries from the local VPC. This ensures that queries from the local
  21810. // VPC resolve to private IP addresses in the peer VPC. This option is not available
  21811. // if the peered VPCs are in different AWS accounts or different regions. For
  21812. // peered VPCs in different AWS accounts, each AWS account owner must initiate
  21813. // a separate request to modify the peering connection options. For inter-region
  21814. // peering connections, you must use the region for the requester VPC to modify
  21815. // the requester VPC peering options and the region for the accepter VPC to
  21816. // modify the accepter VPC peering options. To verify which VPCs are the accepter
  21817. // and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections
  21818. // command.
  21819. //
  21820. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21821. // with awserr.Error's Code and Message methods to get detailed information about
  21822. // the error.
  21823. //
  21824. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21825. // API operation ModifyVpcPeeringConnectionOptions for usage and error information.
  21826. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptions
  21827. func (c *EC2) ModifyVpcPeeringConnectionOptions(input *ModifyVpcPeeringConnectionOptionsInput) (*ModifyVpcPeeringConnectionOptionsOutput, error) {
  21828. req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input)
  21829. return out, req.Send()
  21830. }
  21831. // ModifyVpcPeeringConnectionOptionsWithContext is the same as ModifyVpcPeeringConnectionOptions with the addition of
  21832. // the ability to pass a context and additional request options.
  21833. //
  21834. // See ModifyVpcPeeringConnectionOptions for details on how to use this API operation.
  21835. //
  21836. // The context must be non-nil and will be used for request cancellation. If
  21837. // the context is nil a panic will occur. In the future the SDK may create
  21838. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21839. // for more information on using Contexts.
  21840. func (c *EC2) ModifyVpcPeeringConnectionOptionsWithContext(ctx aws.Context, input *ModifyVpcPeeringConnectionOptionsInput, opts ...request.Option) (*ModifyVpcPeeringConnectionOptionsOutput, error) {
  21841. req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input)
  21842. req.SetContext(ctx)
  21843. req.ApplyOptions(opts...)
  21844. return out, req.Send()
  21845. }
  21846. const opModifyVpcTenancy = "ModifyVpcTenancy"
  21847. // ModifyVpcTenancyRequest generates a "aws/request.Request" representing the
  21848. // client's request for the ModifyVpcTenancy operation. The "output" return
  21849. // value will be populated with the request's response once the request completes
  21850. // successfully.
  21851. //
  21852. // Use "Send" method on the returned Request to send the API call to the service.
  21853. // the "output" return value is not valid until after Send returns without error.
  21854. //
  21855. // See ModifyVpcTenancy for more information on using the ModifyVpcTenancy
  21856. // API call, and error handling.
  21857. //
  21858. // This method is useful when you want to inject custom logic or configuration
  21859. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21860. //
  21861. //
  21862. // // Example sending a request using the ModifyVpcTenancyRequest method.
  21863. // req, resp := client.ModifyVpcTenancyRequest(params)
  21864. //
  21865. // err := req.Send()
  21866. // if err == nil { // resp is now filled
  21867. // fmt.Println(resp)
  21868. // }
  21869. //
  21870. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcTenancy
  21871. func (c *EC2) ModifyVpcTenancyRequest(input *ModifyVpcTenancyInput) (req *request.Request, output *ModifyVpcTenancyOutput) {
  21872. op := &request.Operation{
  21873. Name: opModifyVpcTenancy,
  21874. HTTPMethod: "POST",
  21875. HTTPPath: "/",
  21876. }
  21877. if input == nil {
  21878. input = &ModifyVpcTenancyInput{}
  21879. }
  21880. output = &ModifyVpcTenancyOutput{}
  21881. req = c.newRequest(op, input, output)
  21882. return
  21883. }
  21884. // ModifyVpcTenancy API operation for Amazon Elastic Compute Cloud.
  21885. //
  21886. // Modifies the instance tenancy attribute of the specified VPC. You can change
  21887. // the instance tenancy attribute of a VPC to default only. You cannot change
  21888. // the instance tenancy attribute to dedicated.
  21889. //
  21890. // After you modify the tenancy of the VPC, any new instances that you launch
  21891. // into the VPC have a tenancy of default, unless you specify otherwise during
  21892. // launch. The tenancy of any existing instances in the VPC is not affected.
  21893. //
  21894. // For more information, see Dedicated Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html)
  21895. // in the Amazon Elastic Compute Cloud User Guide.
  21896. //
  21897. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21898. // with awserr.Error's Code and Message methods to get detailed information about
  21899. // the error.
  21900. //
  21901. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21902. // API operation ModifyVpcTenancy for usage and error information.
  21903. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcTenancy
  21904. func (c *EC2) ModifyVpcTenancy(input *ModifyVpcTenancyInput) (*ModifyVpcTenancyOutput, error) {
  21905. req, out := c.ModifyVpcTenancyRequest(input)
  21906. return out, req.Send()
  21907. }
  21908. // ModifyVpcTenancyWithContext is the same as ModifyVpcTenancy with the addition of
  21909. // the ability to pass a context and additional request options.
  21910. //
  21911. // See ModifyVpcTenancy for details on how to use this API operation.
  21912. //
  21913. // The context must be non-nil and will be used for request cancellation. If
  21914. // the context is nil a panic will occur. In the future the SDK may create
  21915. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21916. // for more information on using Contexts.
  21917. func (c *EC2) ModifyVpcTenancyWithContext(ctx aws.Context, input *ModifyVpcTenancyInput, opts ...request.Option) (*ModifyVpcTenancyOutput, error) {
  21918. req, out := c.ModifyVpcTenancyRequest(input)
  21919. req.SetContext(ctx)
  21920. req.ApplyOptions(opts...)
  21921. return out, req.Send()
  21922. }
  21923. const opMonitorInstances = "MonitorInstances"
  21924. // MonitorInstancesRequest generates a "aws/request.Request" representing the
  21925. // client's request for the MonitorInstances operation. The "output" return
  21926. // value will be populated with the request's response once the request completes
  21927. // successfully.
  21928. //
  21929. // Use "Send" method on the returned Request to send the API call to the service.
  21930. // the "output" return value is not valid until after Send returns without error.
  21931. //
  21932. // See MonitorInstances for more information on using the MonitorInstances
  21933. // API call, and error handling.
  21934. //
  21935. // This method is useful when you want to inject custom logic or configuration
  21936. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21937. //
  21938. //
  21939. // // Example sending a request using the MonitorInstancesRequest method.
  21940. // req, resp := client.MonitorInstancesRequest(params)
  21941. //
  21942. // err := req.Send()
  21943. // if err == nil { // resp is now filled
  21944. // fmt.Println(resp)
  21945. // }
  21946. //
  21947. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances
  21948. func (c *EC2) MonitorInstancesRequest(input *MonitorInstancesInput) (req *request.Request, output *MonitorInstancesOutput) {
  21949. op := &request.Operation{
  21950. Name: opMonitorInstances,
  21951. HTTPMethod: "POST",
  21952. HTTPPath: "/",
  21953. }
  21954. if input == nil {
  21955. input = &MonitorInstancesInput{}
  21956. }
  21957. output = &MonitorInstancesOutput{}
  21958. req = c.newRequest(op, input, output)
  21959. return
  21960. }
  21961. // MonitorInstances API operation for Amazon Elastic Compute Cloud.
  21962. //
  21963. // Enables detailed monitoring for a running instance. Otherwise, basic monitoring
  21964. // is enabled. For more information, see Monitoring Your Instances and Volumes
  21965. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html)
  21966. // in the Amazon Elastic Compute Cloud User Guide.
  21967. //
  21968. // To disable detailed monitoring, see .
  21969. //
  21970. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21971. // with awserr.Error's Code and Message methods to get detailed information about
  21972. // the error.
  21973. //
  21974. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21975. // API operation MonitorInstances for usage and error information.
  21976. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances
  21977. func (c *EC2) MonitorInstances(input *MonitorInstancesInput) (*MonitorInstancesOutput, error) {
  21978. req, out := c.MonitorInstancesRequest(input)
  21979. return out, req.Send()
  21980. }
  21981. // MonitorInstancesWithContext is the same as MonitorInstances with the addition of
  21982. // the ability to pass a context and additional request options.
  21983. //
  21984. // See MonitorInstances for details on how to use this API operation.
  21985. //
  21986. // The context must be non-nil and will be used for request cancellation. If
  21987. // the context is nil a panic will occur. In the future the SDK may create
  21988. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21989. // for more information on using Contexts.
  21990. func (c *EC2) MonitorInstancesWithContext(ctx aws.Context, input *MonitorInstancesInput, opts ...request.Option) (*MonitorInstancesOutput, error) {
  21991. req, out := c.MonitorInstancesRequest(input)
  21992. req.SetContext(ctx)
  21993. req.ApplyOptions(opts...)
  21994. return out, req.Send()
  21995. }
  21996. const opMoveAddressToVpc = "MoveAddressToVpc"
  21997. // MoveAddressToVpcRequest generates a "aws/request.Request" representing the
  21998. // client's request for the MoveAddressToVpc operation. The "output" return
  21999. // value will be populated with the request's response once the request completes
  22000. // successfully.
  22001. //
  22002. // Use "Send" method on the returned Request to send the API call to the service.
  22003. // the "output" return value is not valid until after Send returns without error.
  22004. //
  22005. // See MoveAddressToVpc for more information on using the MoveAddressToVpc
  22006. // API call, and error handling.
  22007. //
  22008. // This method is useful when you want to inject custom logic or configuration
  22009. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22010. //
  22011. //
  22012. // // Example sending a request using the MoveAddressToVpcRequest method.
  22013. // req, resp := client.MoveAddressToVpcRequest(params)
  22014. //
  22015. // err := req.Send()
  22016. // if err == nil { // resp is now filled
  22017. // fmt.Println(resp)
  22018. // }
  22019. //
  22020. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpc
  22021. func (c *EC2) MoveAddressToVpcRequest(input *MoveAddressToVpcInput) (req *request.Request, output *MoveAddressToVpcOutput) {
  22022. op := &request.Operation{
  22023. Name: opMoveAddressToVpc,
  22024. HTTPMethod: "POST",
  22025. HTTPPath: "/",
  22026. }
  22027. if input == nil {
  22028. input = &MoveAddressToVpcInput{}
  22029. }
  22030. output = &MoveAddressToVpcOutput{}
  22031. req = c.newRequest(op, input, output)
  22032. return
  22033. }
  22034. // MoveAddressToVpc API operation for Amazon Elastic Compute Cloud.
  22035. //
  22036. // Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC
  22037. // platform. The Elastic IP address must be allocated to your account for more
  22038. // than 24 hours, and it must not be associated with an instance. After the
  22039. // Elastic IP address is moved, it is no longer available for use in the EC2-Classic
  22040. // platform, unless you move it back using the RestoreAddressToClassic request.
  22041. // You cannot move an Elastic IP address that was originally allocated for use
  22042. // in the EC2-VPC platform to the EC2-Classic platform.
  22043. //
  22044. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22045. // with awserr.Error's Code and Message methods to get detailed information about
  22046. // the error.
  22047. //
  22048. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22049. // API operation MoveAddressToVpc for usage and error information.
  22050. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpc
  22051. func (c *EC2) MoveAddressToVpc(input *MoveAddressToVpcInput) (*MoveAddressToVpcOutput, error) {
  22052. req, out := c.MoveAddressToVpcRequest(input)
  22053. return out, req.Send()
  22054. }
  22055. // MoveAddressToVpcWithContext is the same as MoveAddressToVpc with the addition of
  22056. // the ability to pass a context and additional request options.
  22057. //
  22058. // See MoveAddressToVpc for details on how to use this API operation.
  22059. //
  22060. // The context must be non-nil and will be used for request cancellation. If
  22061. // the context is nil a panic will occur. In the future the SDK may create
  22062. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22063. // for more information on using Contexts.
  22064. func (c *EC2) MoveAddressToVpcWithContext(ctx aws.Context, input *MoveAddressToVpcInput, opts ...request.Option) (*MoveAddressToVpcOutput, error) {
  22065. req, out := c.MoveAddressToVpcRequest(input)
  22066. req.SetContext(ctx)
  22067. req.ApplyOptions(opts...)
  22068. return out, req.Send()
  22069. }
  22070. const opProvisionByoipCidr = "ProvisionByoipCidr"
  22071. // ProvisionByoipCidrRequest generates a "aws/request.Request" representing the
  22072. // client's request for the ProvisionByoipCidr operation. The "output" return
  22073. // value will be populated with the request's response once the request completes
  22074. // successfully.
  22075. //
  22076. // Use "Send" method on the returned Request to send the API call to the service.
  22077. // the "output" return value is not valid until after Send returns without error.
  22078. //
  22079. // See ProvisionByoipCidr for more information on using the ProvisionByoipCidr
  22080. // API call, and error handling.
  22081. //
  22082. // This method is useful when you want to inject custom logic or configuration
  22083. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22084. //
  22085. //
  22086. // // Example sending a request using the ProvisionByoipCidrRequest method.
  22087. // req, resp := client.ProvisionByoipCidrRequest(params)
  22088. //
  22089. // err := req.Send()
  22090. // if err == nil { // resp is now filled
  22091. // fmt.Println(resp)
  22092. // }
  22093. //
  22094. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ProvisionByoipCidr
  22095. func (c *EC2) ProvisionByoipCidrRequest(input *ProvisionByoipCidrInput) (req *request.Request, output *ProvisionByoipCidrOutput) {
  22096. op := &request.Operation{
  22097. Name: opProvisionByoipCidr,
  22098. HTTPMethod: "POST",
  22099. HTTPPath: "/",
  22100. }
  22101. if input == nil {
  22102. input = &ProvisionByoipCidrInput{}
  22103. }
  22104. output = &ProvisionByoipCidrOutput{}
  22105. req = c.newRequest(op, input, output)
  22106. return
  22107. }
  22108. // ProvisionByoipCidr API operation for Amazon Elastic Compute Cloud.
  22109. //
  22110. // Provisions an address range for use with your AWS resources through bring
  22111. // your own IP addresses (BYOIP) and creates a corresponding address pool. After
  22112. // the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.
  22113. //
  22114. // AWS verifies that you own the address range and are authorized to advertise
  22115. // it. You must ensure that the address range is registered to you and that
  22116. // you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise
  22117. // the address range. For more information, see Bring Your Own IP Addresses
  22118. // (BYOIP) (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html)
  22119. // in the Amazon Elastic Compute Cloud User Guide.
  22120. //
  22121. // Provisioning an address range is an asynchronous operation, so the call returns
  22122. // immediately, but the address range is not ready to use until its status changes
  22123. // from pending-provision to provisioned. To monitor the status of an address
  22124. // range, use DescribeByoipCidrs. To allocate an Elastic IP address from your
  22125. // address pool, use AllocateAddress with either the specific address from the
  22126. // address pool or the ID of the address pool.
  22127. //
  22128. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22129. // with awserr.Error's Code and Message methods to get detailed information about
  22130. // the error.
  22131. //
  22132. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22133. // API operation ProvisionByoipCidr for usage and error information.
  22134. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ProvisionByoipCidr
  22135. func (c *EC2) ProvisionByoipCidr(input *ProvisionByoipCidrInput) (*ProvisionByoipCidrOutput, error) {
  22136. req, out := c.ProvisionByoipCidrRequest(input)
  22137. return out, req.Send()
  22138. }
  22139. // ProvisionByoipCidrWithContext is the same as ProvisionByoipCidr with the addition of
  22140. // the ability to pass a context and additional request options.
  22141. //
  22142. // See ProvisionByoipCidr for details on how to use this API operation.
  22143. //
  22144. // The context must be non-nil and will be used for request cancellation. If
  22145. // the context is nil a panic will occur. In the future the SDK may create
  22146. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22147. // for more information on using Contexts.
  22148. func (c *EC2) ProvisionByoipCidrWithContext(ctx aws.Context, input *ProvisionByoipCidrInput, opts ...request.Option) (*ProvisionByoipCidrOutput, error) {
  22149. req, out := c.ProvisionByoipCidrRequest(input)
  22150. req.SetContext(ctx)
  22151. req.ApplyOptions(opts...)
  22152. return out, req.Send()
  22153. }
  22154. const opPurchaseHostReservation = "PurchaseHostReservation"
  22155. // PurchaseHostReservationRequest generates a "aws/request.Request" representing the
  22156. // client's request for the PurchaseHostReservation operation. The "output" return
  22157. // value will be populated with the request's response once the request completes
  22158. // successfully.
  22159. //
  22160. // Use "Send" method on the returned Request to send the API call to the service.
  22161. // the "output" return value is not valid until after Send returns without error.
  22162. //
  22163. // See PurchaseHostReservation for more information on using the PurchaseHostReservation
  22164. // API call, and error handling.
  22165. //
  22166. // This method is useful when you want to inject custom logic or configuration
  22167. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22168. //
  22169. //
  22170. // // Example sending a request using the PurchaseHostReservationRequest method.
  22171. // req, resp := client.PurchaseHostReservationRequest(params)
  22172. //
  22173. // err := req.Send()
  22174. // if err == nil { // resp is now filled
  22175. // fmt.Println(resp)
  22176. // }
  22177. //
  22178. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservation
  22179. func (c *EC2) PurchaseHostReservationRequest(input *PurchaseHostReservationInput) (req *request.Request, output *PurchaseHostReservationOutput) {
  22180. op := &request.Operation{
  22181. Name: opPurchaseHostReservation,
  22182. HTTPMethod: "POST",
  22183. HTTPPath: "/",
  22184. }
  22185. if input == nil {
  22186. input = &PurchaseHostReservationInput{}
  22187. }
  22188. output = &PurchaseHostReservationOutput{}
  22189. req = c.newRequest(op, input, output)
  22190. return
  22191. }
  22192. // PurchaseHostReservation API operation for Amazon Elastic Compute Cloud.
  22193. //
  22194. // Purchase a reservation with configurations that match those of your Dedicated
  22195. // Host. You must have active Dedicated Hosts in your account before you purchase
  22196. // a reservation. This action results in the specified reservation being purchased
  22197. // and charged to your account.
  22198. //
  22199. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22200. // with awserr.Error's Code and Message methods to get detailed information about
  22201. // the error.
  22202. //
  22203. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22204. // API operation PurchaseHostReservation for usage and error information.
  22205. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservation
  22206. func (c *EC2) PurchaseHostReservation(input *PurchaseHostReservationInput) (*PurchaseHostReservationOutput, error) {
  22207. req, out := c.PurchaseHostReservationRequest(input)
  22208. return out, req.Send()
  22209. }
  22210. // PurchaseHostReservationWithContext is the same as PurchaseHostReservation with the addition of
  22211. // the ability to pass a context and additional request options.
  22212. //
  22213. // See PurchaseHostReservation for details on how to use this API operation.
  22214. //
  22215. // The context must be non-nil and will be used for request cancellation. If
  22216. // the context is nil a panic will occur. In the future the SDK may create
  22217. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22218. // for more information on using Contexts.
  22219. func (c *EC2) PurchaseHostReservationWithContext(ctx aws.Context, input *PurchaseHostReservationInput, opts ...request.Option) (*PurchaseHostReservationOutput, error) {
  22220. req, out := c.PurchaseHostReservationRequest(input)
  22221. req.SetContext(ctx)
  22222. req.ApplyOptions(opts...)
  22223. return out, req.Send()
  22224. }
  22225. const opPurchaseReservedInstancesOffering = "PurchaseReservedInstancesOffering"
  22226. // PurchaseReservedInstancesOfferingRequest generates a "aws/request.Request" representing the
  22227. // client's request for the PurchaseReservedInstancesOffering operation. The "output" return
  22228. // value will be populated with the request's response once the request completes
  22229. // successfully.
  22230. //
  22231. // Use "Send" method on the returned Request to send the API call to the service.
  22232. // the "output" return value is not valid until after Send returns without error.
  22233. //
  22234. // See PurchaseReservedInstancesOffering for more information on using the PurchaseReservedInstancesOffering
  22235. // API call, and error handling.
  22236. //
  22237. // This method is useful when you want to inject custom logic or configuration
  22238. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22239. //
  22240. //
  22241. // // Example sending a request using the PurchaseReservedInstancesOfferingRequest method.
  22242. // req, resp := client.PurchaseReservedInstancesOfferingRequest(params)
  22243. //
  22244. // err := req.Send()
  22245. // if err == nil { // resp is now filled
  22246. // fmt.Println(resp)
  22247. // }
  22248. //
  22249. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOffering
  22250. func (c *EC2) PurchaseReservedInstancesOfferingRequest(input *PurchaseReservedInstancesOfferingInput) (req *request.Request, output *PurchaseReservedInstancesOfferingOutput) {
  22251. op := &request.Operation{
  22252. Name: opPurchaseReservedInstancesOffering,
  22253. HTTPMethod: "POST",
  22254. HTTPPath: "/",
  22255. }
  22256. if input == nil {
  22257. input = &PurchaseReservedInstancesOfferingInput{}
  22258. }
  22259. output = &PurchaseReservedInstancesOfferingOutput{}
  22260. req = c.newRequest(op, input, output)
  22261. return
  22262. }
  22263. // PurchaseReservedInstancesOffering API operation for Amazon Elastic Compute Cloud.
  22264. //
  22265. // Purchases a Reserved Instance for use with your account. With Reserved Instances,
  22266. // you pay a lower hourly rate compared to On-Demand instance pricing.
  22267. //
  22268. // Use DescribeReservedInstancesOfferings to get a list of Reserved Instance
  22269. // offerings that match your specifications. After you've purchased a Reserved
  22270. // Instance, you can check for your new Reserved Instance with DescribeReservedInstances.
  22271. //
  22272. // For more information, see Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html)
  22273. // and Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  22274. // in the Amazon Elastic Compute Cloud User Guide.
  22275. //
  22276. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22277. // with awserr.Error's Code and Message methods to get detailed information about
  22278. // the error.
  22279. //
  22280. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22281. // API operation PurchaseReservedInstancesOffering for usage and error information.
  22282. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOffering
  22283. func (c *EC2) PurchaseReservedInstancesOffering(input *PurchaseReservedInstancesOfferingInput) (*PurchaseReservedInstancesOfferingOutput, error) {
  22284. req, out := c.PurchaseReservedInstancesOfferingRequest(input)
  22285. return out, req.Send()
  22286. }
  22287. // PurchaseReservedInstancesOfferingWithContext is the same as PurchaseReservedInstancesOffering with the addition of
  22288. // the ability to pass a context and additional request options.
  22289. //
  22290. // See PurchaseReservedInstancesOffering for details on how to use this API operation.
  22291. //
  22292. // The context must be non-nil and will be used for request cancellation. If
  22293. // the context is nil a panic will occur. In the future the SDK may create
  22294. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22295. // for more information on using Contexts.
  22296. func (c *EC2) PurchaseReservedInstancesOfferingWithContext(ctx aws.Context, input *PurchaseReservedInstancesOfferingInput, opts ...request.Option) (*PurchaseReservedInstancesOfferingOutput, error) {
  22297. req, out := c.PurchaseReservedInstancesOfferingRequest(input)
  22298. req.SetContext(ctx)
  22299. req.ApplyOptions(opts...)
  22300. return out, req.Send()
  22301. }
  22302. const opPurchaseScheduledInstances = "PurchaseScheduledInstances"
  22303. // PurchaseScheduledInstancesRequest generates a "aws/request.Request" representing the
  22304. // client's request for the PurchaseScheduledInstances operation. The "output" return
  22305. // value will be populated with the request's response once the request completes
  22306. // successfully.
  22307. //
  22308. // Use "Send" method on the returned Request to send the API call to the service.
  22309. // the "output" return value is not valid until after Send returns without error.
  22310. //
  22311. // See PurchaseScheduledInstances for more information on using the PurchaseScheduledInstances
  22312. // API call, and error handling.
  22313. //
  22314. // This method is useful when you want to inject custom logic or configuration
  22315. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22316. //
  22317. //
  22318. // // Example sending a request using the PurchaseScheduledInstancesRequest method.
  22319. // req, resp := client.PurchaseScheduledInstancesRequest(params)
  22320. //
  22321. // err := req.Send()
  22322. // if err == nil { // resp is now filled
  22323. // fmt.Println(resp)
  22324. // }
  22325. //
  22326. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstances
  22327. func (c *EC2) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstancesInput) (req *request.Request, output *PurchaseScheduledInstancesOutput) {
  22328. op := &request.Operation{
  22329. Name: opPurchaseScheduledInstances,
  22330. HTTPMethod: "POST",
  22331. HTTPPath: "/",
  22332. }
  22333. if input == nil {
  22334. input = &PurchaseScheduledInstancesInput{}
  22335. }
  22336. output = &PurchaseScheduledInstancesOutput{}
  22337. req = c.newRequest(op, input, output)
  22338. return
  22339. }
  22340. // PurchaseScheduledInstances API operation for Amazon Elastic Compute Cloud.
  22341. //
  22342. // Purchases one or more Scheduled Instances with the specified schedule.
  22343. //
  22344. // Scheduled Instances enable you to purchase Amazon EC2 compute capacity by
  22345. // the hour for a one-year term. Before you can purchase a Scheduled Instance,
  22346. // you must call DescribeScheduledInstanceAvailability to check for available
  22347. // schedules and obtain a purchase token. After you purchase a Scheduled Instance,
  22348. // you must call RunScheduledInstances during each scheduled time period.
  22349. //
  22350. // After you purchase a Scheduled Instance, you can't cancel, modify, or resell
  22351. // your purchase.
  22352. //
  22353. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22354. // with awserr.Error's Code and Message methods to get detailed information about
  22355. // the error.
  22356. //
  22357. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22358. // API operation PurchaseScheduledInstances for usage and error information.
  22359. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstances
  22360. func (c *EC2) PurchaseScheduledInstances(input *PurchaseScheduledInstancesInput) (*PurchaseScheduledInstancesOutput, error) {
  22361. req, out := c.PurchaseScheduledInstancesRequest(input)
  22362. return out, req.Send()
  22363. }
  22364. // PurchaseScheduledInstancesWithContext is the same as PurchaseScheduledInstances with the addition of
  22365. // the ability to pass a context and additional request options.
  22366. //
  22367. // See PurchaseScheduledInstances for details on how to use this API operation.
  22368. //
  22369. // The context must be non-nil and will be used for request cancellation. If
  22370. // the context is nil a panic will occur. In the future the SDK may create
  22371. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22372. // for more information on using Contexts.
  22373. func (c *EC2) PurchaseScheduledInstancesWithContext(ctx aws.Context, input *PurchaseScheduledInstancesInput, opts ...request.Option) (*PurchaseScheduledInstancesOutput, error) {
  22374. req, out := c.PurchaseScheduledInstancesRequest(input)
  22375. req.SetContext(ctx)
  22376. req.ApplyOptions(opts...)
  22377. return out, req.Send()
  22378. }
  22379. const opRebootInstances = "RebootInstances"
  22380. // RebootInstancesRequest generates a "aws/request.Request" representing the
  22381. // client's request for the RebootInstances operation. The "output" return
  22382. // value will be populated with the request's response once the request completes
  22383. // successfully.
  22384. //
  22385. // Use "Send" method on the returned Request to send the API call to the service.
  22386. // the "output" return value is not valid until after Send returns without error.
  22387. //
  22388. // See RebootInstances for more information on using the RebootInstances
  22389. // API call, and error handling.
  22390. //
  22391. // This method is useful when you want to inject custom logic or configuration
  22392. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22393. //
  22394. //
  22395. // // Example sending a request using the RebootInstancesRequest method.
  22396. // req, resp := client.RebootInstancesRequest(params)
  22397. //
  22398. // err := req.Send()
  22399. // if err == nil { // resp is now filled
  22400. // fmt.Println(resp)
  22401. // }
  22402. //
  22403. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstances
  22404. func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request.Request, output *RebootInstancesOutput) {
  22405. op := &request.Operation{
  22406. Name: opRebootInstances,
  22407. HTTPMethod: "POST",
  22408. HTTPPath: "/",
  22409. }
  22410. if input == nil {
  22411. input = &RebootInstancesInput{}
  22412. }
  22413. output = &RebootInstancesOutput{}
  22414. req = c.newRequest(op, input, output)
  22415. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  22416. return
  22417. }
  22418. // RebootInstances API operation for Amazon Elastic Compute Cloud.
  22419. //
  22420. // Requests a reboot of one or more instances. This operation is asynchronous;
  22421. // it only queues a request to reboot the specified instances. The operation
  22422. // succeeds if the instances are valid and belong to you. Requests to reboot
  22423. // terminated instances are ignored.
  22424. //
  22425. // If an instance does not cleanly shut down within four minutes, Amazon EC2
  22426. // performs a hard reboot.
  22427. //
  22428. // For more information about troubleshooting, see Getting Console Output and
  22429. // Rebooting Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html)
  22430. // in the Amazon Elastic Compute Cloud User Guide.
  22431. //
  22432. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22433. // with awserr.Error's Code and Message methods to get detailed information about
  22434. // the error.
  22435. //
  22436. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22437. // API operation RebootInstances for usage and error information.
  22438. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstances
  22439. func (c *EC2) RebootInstances(input *RebootInstancesInput) (*RebootInstancesOutput, error) {
  22440. req, out := c.RebootInstancesRequest(input)
  22441. return out, req.Send()
  22442. }
  22443. // RebootInstancesWithContext is the same as RebootInstances with the addition of
  22444. // the ability to pass a context and additional request options.
  22445. //
  22446. // See RebootInstances for details on how to use this API operation.
  22447. //
  22448. // The context must be non-nil and will be used for request cancellation. If
  22449. // the context is nil a panic will occur. In the future the SDK may create
  22450. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22451. // for more information on using Contexts.
  22452. func (c *EC2) RebootInstancesWithContext(ctx aws.Context, input *RebootInstancesInput, opts ...request.Option) (*RebootInstancesOutput, error) {
  22453. req, out := c.RebootInstancesRequest(input)
  22454. req.SetContext(ctx)
  22455. req.ApplyOptions(opts...)
  22456. return out, req.Send()
  22457. }
  22458. const opRegisterImage = "RegisterImage"
  22459. // RegisterImageRequest generates a "aws/request.Request" representing the
  22460. // client's request for the RegisterImage operation. The "output" return
  22461. // value will be populated with the request's response once the request completes
  22462. // successfully.
  22463. //
  22464. // Use "Send" method on the returned Request to send the API call to the service.
  22465. // the "output" return value is not valid until after Send returns without error.
  22466. //
  22467. // See RegisterImage for more information on using the RegisterImage
  22468. // API call, and error handling.
  22469. //
  22470. // This method is useful when you want to inject custom logic or configuration
  22471. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22472. //
  22473. //
  22474. // // Example sending a request using the RegisterImageRequest method.
  22475. // req, resp := client.RegisterImageRequest(params)
  22476. //
  22477. // err := req.Send()
  22478. // if err == nil { // resp is now filled
  22479. // fmt.Println(resp)
  22480. // }
  22481. //
  22482. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImage
  22483. func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Request, output *RegisterImageOutput) {
  22484. op := &request.Operation{
  22485. Name: opRegisterImage,
  22486. HTTPMethod: "POST",
  22487. HTTPPath: "/",
  22488. }
  22489. if input == nil {
  22490. input = &RegisterImageInput{}
  22491. }
  22492. output = &RegisterImageOutput{}
  22493. req = c.newRequest(op, input, output)
  22494. return
  22495. }
  22496. // RegisterImage API operation for Amazon Elastic Compute Cloud.
  22497. //
  22498. // Registers an AMI. When you're creating an AMI, this is the final step you
  22499. // must complete before you can launch an instance from the AMI. For more information
  22500. // about creating AMIs, see Creating Your Own AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html)
  22501. // in the Amazon Elastic Compute Cloud User Guide.
  22502. //
  22503. // For Amazon EBS-backed instances, CreateImage creates and registers the AMI
  22504. // in a single request, so you don't have to register the AMI yourself.
  22505. //
  22506. // You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from
  22507. // a snapshot of a root device volume. You specify the snapshot using the block
  22508. // device mapping. For more information, see Launching a Linux Instance from
  22509. // a Backup (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-launch-snapshot.html)
  22510. // in the Amazon Elastic Compute Cloud User Guide.
  22511. //
  22512. // You can't register an image where a secondary (non-root) snapshot has AWS
  22513. // Marketplace product codes.
  22514. //
  22515. // Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE
  22516. // Linux Enterprise Server (SLES), use the EC2 billing product code associated
  22517. // with an AMI to verify the subscription status for package updates. Creating
  22518. // an AMI from an EBS snapshot does not maintain this billing code, and instances
  22519. // launched from such an AMI are not able to connect to package update infrastructure.
  22520. // If you purchase a Reserved Instance offering for one of these Linux distributions
  22521. // and launch instances using an AMI that does not contain the required billing
  22522. // code, your Reserved Instance is not applied to these instances.
  22523. //
  22524. // To create an AMI for operating systems that require a billing code, see CreateImage.
  22525. //
  22526. // If needed, you can deregister an AMI at any time. Any modifications you make
  22527. // to an AMI backed by an instance store volume invalidates its registration.
  22528. // If you make changes to an image, deregister the previous image and register
  22529. // the new image.
  22530. //
  22531. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22532. // with awserr.Error's Code and Message methods to get detailed information about
  22533. // the error.
  22534. //
  22535. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22536. // API operation RegisterImage for usage and error information.
  22537. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImage
  22538. func (c *EC2) RegisterImage(input *RegisterImageInput) (*RegisterImageOutput, error) {
  22539. req, out := c.RegisterImageRequest(input)
  22540. return out, req.Send()
  22541. }
  22542. // RegisterImageWithContext is the same as RegisterImage with the addition of
  22543. // the ability to pass a context and additional request options.
  22544. //
  22545. // See RegisterImage for details on how to use this API operation.
  22546. //
  22547. // The context must be non-nil and will be used for request cancellation. If
  22548. // the context is nil a panic will occur. In the future the SDK may create
  22549. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22550. // for more information on using Contexts.
  22551. func (c *EC2) RegisterImageWithContext(ctx aws.Context, input *RegisterImageInput, opts ...request.Option) (*RegisterImageOutput, error) {
  22552. req, out := c.RegisterImageRequest(input)
  22553. req.SetContext(ctx)
  22554. req.ApplyOptions(opts...)
  22555. return out, req.Send()
  22556. }
  22557. const opRejectTransitGatewayVpcAttachment = "RejectTransitGatewayVpcAttachment"
  22558. // RejectTransitGatewayVpcAttachmentRequest generates a "aws/request.Request" representing the
  22559. // client's request for the RejectTransitGatewayVpcAttachment operation. The "output" return
  22560. // value will be populated with the request's response once the request completes
  22561. // successfully.
  22562. //
  22563. // Use "Send" method on the returned Request to send the API call to the service.
  22564. // the "output" return value is not valid until after Send returns without error.
  22565. //
  22566. // See RejectTransitGatewayVpcAttachment for more information on using the RejectTransitGatewayVpcAttachment
  22567. // API call, and error handling.
  22568. //
  22569. // This method is useful when you want to inject custom logic or configuration
  22570. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22571. //
  22572. //
  22573. // // Example sending a request using the RejectTransitGatewayVpcAttachmentRequest method.
  22574. // req, resp := client.RejectTransitGatewayVpcAttachmentRequest(params)
  22575. //
  22576. // err := req.Send()
  22577. // if err == nil { // resp is now filled
  22578. // fmt.Println(resp)
  22579. // }
  22580. //
  22581. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectTransitGatewayVpcAttachment
  22582. func (c *EC2) RejectTransitGatewayVpcAttachmentRequest(input *RejectTransitGatewayVpcAttachmentInput) (req *request.Request, output *RejectTransitGatewayVpcAttachmentOutput) {
  22583. op := &request.Operation{
  22584. Name: opRejectTransitGatewayVpcAttachment,
  22585. HTTPMethod: "POST",
  22586. HTTPPath: "/",
  22587. }
  22588. if input == nil {
  22589. input = &RejectTransitGatewayVpcAttachmentInput{}
  22590. }
  22591. output = &RejectTransitGatewayVpcAttachmentOutput{}
  22592. req = c.newRequest(op, input, output)
  22593. return
  22594. }
  22595. // RejectTransitGatewayVpcAttachment API operation for Amazon Elastic Compute Cloud.
  22596. //
  22597. // Rejects a request to attach a VPC to a transit gateway.
  22598. //
  22599. // The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments
  22600. // to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment
  22601. // to accept a VPC attachment request.
  22602. //
  22603. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22604. // with awserr.Error's Code and Message methods to get detailed information about
  22605. // the error.
  22606. //
  22607. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22608. // API operation RejectTransitGatewayVpcAttachment for usage and error information.
  22609. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectTransitGatewayVpcAttachment
  22610. func (c *EC2) RejectTransitGatewayVpcAttachment(input *RejectTransitGatewayVpcAttachmentInput) (*RejectTransitGatewayVpcAttachmentOutput, error) {
  22611. req, out := c.RejectTransitGatewayVpcAttachmentRequest(input)
  22612. return out, req.Send()
  22613. }
  22614. // RejectTransitGatewayVpcAttachmentWithContext is the same as RejectTransitGatewayVpcAttachment with the addition of
  22615. // the ability to pass a context and additional request options.
  22616. //
  22617. // See RejectTransitGatewayVpcAttachment for details on how to use this API operation.
  22618. //
  22619. // The context must be non-nil and will be used for request cancellation. If
  22620. // the context is nil a panic will occur. In the future the SDK may create
  22621. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22622. // for more information on using Contexts.
  22623. func (c *EC2) RejectTransitGatewayVpcAttachmentWithContext(ctx aws.Context, input *RejectTransitGatewayVpcAttachmentInput, opts ...request.Option) (*RejectTransitGatewayVpcAttachmentOutput, error) {
  22624. req, out := c.RejectTransitGatewayVpcAttachmentRequest(input)
  22625. req.SetContext(ctx)
  22626. req.ApplyOptions(opts...)
  22627. return out, req.Send()
  22628. }
  22629. const opRejectVpcEndpointConnections = "RejectVpcEndpointConnections"
  22630. // RejectVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the
  22631. // client's request for the RejectVpcEndpointConnections operation. The "output" return
  22632. // value will be populated with the request's response once the request completes
  22633. // successfully.
  22634. //
  22635. // Use "Send" method on the returned Request to send the API call to the service.
  22636. // the "output" return value is not valid until after Send returns without error.
  22637. //
  22638. // See RejectVpcEndpointConnections for more information on using the RejectVpcEndpointConnections
  22639. // API call, and error handling.
  22640. //
  22641. // This method is useful when you want to inject custom logic or configuration
  22642. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22643. //
  22644. //
  22645. // // Example sending a request using the RejectVpcEndpointConnectionsRequest method.
  22646. // req, resp := client.RejectVpcEndpointConnectionsRequest(params)
  22647. //
  22648. // err := req.Send()
  22649. // if err == nil { // resp is now filled
  22650. // fmt.Println(resp)
  22651. // }
  22652. //
  22653. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnections
  22654. func (c *EC2) RejectVpcEndpointConnectionsRequest(input *RejectVpcEndpointConnectionsInput) (req *request.Request, output *RejectVpcEndpointConnectionsOutput) {
  22655. op := &request.Operation{
  22656. Name: opRejectVpcEndpointConnections,
  22657. HTTPMethod: "POST",
  22658. HTTPPath: "/",
  22659. }
  22660. if input == nil {
  22661. input = &RejectVpcEndpointConnectionsInput{}
  22662. }
  22663. output = &RejectVpcEndpointConnectionsOutput{}
  22664. req = c.newRequest(op, input, output)
  22665. return
  22666. }
  22667. // RejectVpcEndpointConnections API operation for Amazon Elastic Compute Cloud.
  22668. //
  22669. // Rejects one or more VPC endpoint connection requests to your VPC endpoint
  22670. // service.
  22671. //
  22672. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22673. // with awserr.Error's Code and Message methods to get detailed information about
  22674. // the error.
  22675. //
  22676. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22677. // API operation RejectVpcEndpointConnections for usage and error information.
  22678. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnections
  22679. func (c *EC2) RejectVpcEndpointConnections(input *RejectVpcEndpointConnectionsInput) (*RejectVpcEndpointConnectionsOutput, error) {
  22680. req, out := c.RejectVpcEndpointConnectionsRequest(input)
  22681. return out, req.Send()
  22682. }
  22683. // RejectVpcEndpointConnectionsWithContext is the same as RejectVpcEndpointConnections with the addition of
  22684. // the ability to pass a context and additional request options.
  22685. //
  22686. // See RejectVpcEndpointConnections for details on how to use this API operation.
  22687. //
  22688. // The context must be non-nil and will be used for request cancellation. If
  22689. // the context is nil a panic will occur. In the future the SDK may create
  22690. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22691. // for more information on using Contexts.
  22692. func (c *EC2) RejectVpcEndpointConnectionsWithContext(ctx aws.Context, input *RejectVpcEndpointConnectionsInput, opts ...request.Option) (*RejectVpcEndpointConnectionsOutput, error) {
  22693. req, out := c.RejectVpcEndpointConnectionsRequest(input)
  22694. req.SetContext(ctx)
  22695. req.ApplyOptions(opts...)
  22696. return out, req.Send()
  22697. }
  22698. const opRejectVpcPeeringConnection = "RejectVpcPeeringConnection"
  22699. // RejectVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  22700. // client's request for the RejectVpcPeeringConnection operation. The "output" return
  22701. // value will be populated with the request's response once the request completes
  22702. // successfully.
  22703. //
  22704. // Use "Send" method on the returned Request to send the API call to the service.
  22705. // the "output" return value is not valid until after Send returns without error.
  22706. //
  22707. // See RejectVpcPeeringConnection for more information on using the RejectVpcPeeringConnection
  22708. // API call, and error handling.
  22709. //
  22710. // This method is useful when you want to inject custom logic or configuration
  22711. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22712. //
  22713. //
  22714. // // Example sending a request using the RejectVpcPeeringConnectionRequest method.
  22715. // req, resp := client.RejectVpcPeeringConnectionRequest(params)
  22716. //
  22717. // err := req.Send()
  22718. // if err == nil { // resp is now filled
  22719. // fmt.Println(resp)
  22720. // }
  22721. //
  22722. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnection
  22723. func (c *EC2) RejectVpcPeeringConnectionRequest(input *RejectVpcPeeringConnectionInput) (req *request.Request, output *RejectVpcPeeringConnectionOutput) {
  22724. op := &request.Operation{
  22725. Name: opRejectVpcPeeringConnection,
  22726. HTTPMethod: "POST",
  22727. HTTPPath: "/",
  22728. }
  22729. if input == nil {
  22730. input = &RejectVpcPeeringConnectionInput{}
  22731. }
  22732. output = &RejectVpcPeeringConnectionOutput{}
  22733. req = c.newRequest(op, input, output)
  22734. return
  22735. }
  22736. // RejectVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  22737. //
  22738. // Rejects a VPC peering connection request. The VPC peering connection must
  22739. // be in the pending-acceptance state. Use the DescribeVpcPeeringConnections
  22740. // request to view your outstanding VPC peering connection requests. To delete
  22741. // an active VPC peering connection, or to delete a VPC peering connection request
  22742. // that you initiated, use DeleteVpcPeeringConnection.
  22743. //
  22744. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22745. // with awserr.Error's Code and Message methods to get detailed information about
  22746. // the error.
  22747. //
  22748. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22749. // API operation RejectVpcPeeringConnection for usage and error information.
  22750. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnection
  22751. func (c *EC2) RejectVpcPeeringConnection(input *RejectVpcPeeringConnectionInput) (*RejectVpcPeeringConnectionOutput, error) {
  22752. req, out := c.RejectVpcPeeringConnectionRequest(input)
  22753. return out, req.Send()
  22754. }
  22755. // RejectVpcPeeringConnectionWithContext is the same as RejectVpcPeeringConnection with the addition of
  22756. // the ability to pass a context and additional request options.
  22757. //
  22758. // See RejectVpcPeeringConnection for details on how to use this API operation.
  22759. //
  22760. // The context must be non-nil and will be used for request cancellation. If
  22761. // the context is nil a panic will occur. In the future the SDK may create
  22762. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22763. // for more information on using Contexts.
  22764. func (c *EC2) RejectVpcPeeringConnectionWithContext(ctx aws.Context, input *RejectVpcPeeringConnectionInput, opts ...request.Option) (*RejectVpcPeeringConnectionOutput, error) {
  22765. req, out := c.RejectVpcPeeringConnectionRequest(input)
  22766. req.SetContext(ctx)
  22767. req.ApplyOptions(opts...)
  22768. return out, req.Send()
  22769. }
  22770. const opReleaseAddress = "ReleaseAddress"
  22771. // ReleaseAddressRequest generates a "aws/request.Request" representing the
  22772. // client's request for the ReleaseAddress operation. The "output" return
  22773. // value will be populated with the request's response once the request completes
  22774. // successfully.
  22775. //
  22776. // Use "Send" method on the returned Request to send the API call to the service.
  22777. // the "output" return value is not valid until after Send returns without error.
  22778. //
  22779. // See ReleaseAddress for more information on using the ReleaseAddress
  22780. // API call, and error handling.
  22781. //
  22782. // This method is useful when you want to inject custom logic or configuration
  22783. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22784. //
  22785. //
  22786. // // Example sending a request using the ReleaseAddressRequest method.
  22787. // req, resp := client.ReleaseAddressRequest(params)
  22788. //
  22789. // err := req.Send()
  22790. // if err == nil { // resp is now filled
  22791. // fmt.Println(resp)
  22792. // }
  22793. //
  22794. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddress
  22795. func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Request, output *ReleaseAddressOutput) {
  22796. op := &request.Operation{
  22797. Name: opReleaseAddress,
  22798. HTTPMethod: "POST",
  22799. HTTPPath: "/",
  22800. }
  22801. if input == nil {
  22802. input = &ReleaseAddressInput{}
  22803. }
  22804. output = &ReleaseAddressOutput{}
  22805. req = c.newRequest(op, input, output)
  22806. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  22807. return
  22808. }
  22809. // ReleaseAddress API operation for Amazon Elastic Compute Cloud.
  22810. //
  22811. // Releases the specified Elastic IP address.
  22812. //
  22813. // [EC2-Classic, default VPC] Releasing an Elastic IP address automatically
  22814. // disassociates it from any instance that it's associated with. To disassociate
  22815. // an Elastic IP address without releasing it, use DisassociateAddress.
  22816. //
  22817. // [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic
  22818. // IP address before you can release it. Otherwise, Amazon EC2 returns an error
  22819. // (InvalidIPAddress.InUse).
  22820. //
  22821. // After releasing an Elastic IP address, it is released to the IP address pool.
  22822. // Be sure to update your DNS records and any servers or devices that communicate
  22823. // with the address. If you attempt to release an Elastic IP address that you
  22824. // already released, you'll get an AuthFailure error if the address is already
  22825. // allocated to another AWS account.
  22826. //
  22827. // [EC2-VPC] After you release an Elastic IP address for use in a VPC, you might
  22828. // be able to recover it. For more information, see AllocateAddress.
  22829. //
  22830. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22831. // with awserr.Error's Code and Message methods to get detailed information about
  22832. // the error.
  22833. //
  22834. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22835. // API operation ReleaseAddress for usage and error information.
  22836. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddress
  22837. func (c *EC2) ReleaseAddress(input *ReleaseAddressInput) (*ReleaseAddressOutput, error) {
  22838. req, out := c.ReleaseAddressRequest(input)
  22839. return out, req.Send()
  22840. }
  22841. // ReleaseAddressWithContext is the same as ReleaseAddress with the addition of
  22842. // the ability to pass a context and additional request options.
  22843. //
  22844. // See ReleaseAddress for details on how to use this API operation.
  22845. //
  22846. // The context must be non-nil and will be used for request cancellation. If
  22847. // the context is nil a panic will occur. In the future the SDK may create
  22848. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22849. // for more information on using Contexts.
  22850. func (c *EC2) ReleaseAddressWithContext(ctx aws.Context, input *ReleaseAddressInput, opts ...request.Option) (*ReleaseAddressOutput, error) {
  22851. req, out := c.ReleaseAddressRequest(input)
  22852. req.SetContext(ctx)
  22853. req.ApplyOptions(opts...)
  22854. return out, req.Send()
  22855. }
  22856. const opReleaseHosts = "ReleaseHosts"
  22857. // ReleaseHostsRequest generates a "aws/request.Request" representing the
  22858. // client's request for the ReleaseHosts operation. The "output" return
  22859. // value will be populated with the request's response once the request completes
  22860. // successfully.
  22861. //
  22862. // Use "Send" method on the returned Request to send the API call to the service.
  22863. // the "output" return value is not valid until after Send returns without error.
  22864. //
  22865. // See ReleaseHosts for more information on using the ReleaseHosts
  22866. // API call, and error handling.
  22867. //
  22868. // This method is useful when you want to inject custom logic or configuration
  22869. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22870. //
  22871. //
  22872. // // Example sending a request using the ReleaseHostsRequest method.
  22873. // req, resp := client.ReleaseHostsRequest(params)
  22874. //
  22875. // err := req.Send()
  22876. // if err == nil { // resp is now filled
  22877. // fmt.Println(resp)
  22878. // }
  22879. //
  22880. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHosts
  22881. func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Request, output *ReleaseHostsOutput) {
  22882. op := &request.Operation{
  22883. Name: opReleaseHosts,
  22884. HTTPMethod: "POST",
  22885. HTTPPath: "/",
  22886. }
  22887. if input == nil {
  22888. input = &ReleaseHostsInput{}
  22889. }
  22890. output = &ReleaseHostsOutput{}
  22891. req = c.newRequest(op, input, output)
  22892. return
  22893. }
  22894. // ReleaseHosts API operation for Amazon Elastic Compute Cloud.
  22895. //
  22896. // When you no longer want to use an On-Demand Dedicated Host it can be released.
  22897. // On-Demand billing is stopped and the host goes into released state. The host
  22898. // ID of Dedicated Hosts that have been released can no longer be specified
  22899. // in another request, for example, to modify the host. You must stop or terminate
  22900. // all instances on a host before it can be released.
  22901. //
  22902. // When Dedicated Hosts are released, it may take some time for them to stop
  22903. // counting toward your limit and you may receive capacity errors when trying
  22904. // to allocate new Dedicated Hosts. Wait a few minutes and then try again.
  22905. //
  22906. // Released hosts still appear in a DescribeHosts response.
  22907. //
  22908. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22909. // with awserr.Error's Code and Message methods to get detailed information about
  22910. // the error.
  22911. //
  22912. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22913. // API operation ReleaseHosts for usage and error information.
  22914. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHosts
  22915. func (c *EC2) ReleaseHosts(input *ReleaseHostsInput) (*ReleaseHostsOutput, error) {
  22916. req, out := c.ReleaseHostsRequest(input)
  22917. return out, req.Send()
  22918. }
  22919. // ReleaseHostsWithContext is the same as ReleaseHosts with the addition of
  22920. // the ability to pass a context and additional request options.
  22921. //
  22922. // See ReleaseHosts for details on how to use this API operation.
  22923. //
  22924. // The context must be non-nil and will be used for request cancellation. If
  22925. // the context is nil a panic will occur. In the future the SDK may create
  22926. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22927. // for more information on using Contexts.
  22928. func (c *EC2) ReleaseHostsWithContext(ctx aws.Context, input *ReleaseHostsInput, opts ...request.Option) (*ReleaseHostsOutput, error) {
  22929. req, out := c.ReleaseHostsRequest(input)
  22930. req.SetContext(ctx)
  22931. req.ApplyOptions(opts...)
  22932. return out, req.Send()
  22933. }
  22934. const opReplaceIamInstanceProfileAssociation = "ReplaceIamInstanceProfileAssociation"
  22935. // ReplaceIamInstanceProfileAssociationRequest generates a "aws/request.Request" representing the
  22936. // client's request for the ReplaceIamInstanceProfileAssociation operation. The "output" return
  22937. // value will be populated with the request's response once the request completes
  22938. // successfully.
  22939. //
  22940. // Use "Send" method on the returned Request to send the API call to the service.
  22941. // the "output" return value is not valid until after Send returns without error.
  22942. //
  22943. // See ReplaceIamInstanceProfileAssociation for more information on using the ReplaceIamInstanceProfileAssociation
  22944. // API call, and error handling.
  22945. //
  22946. // This method is useful when you want to inject custom logic or configuration
  22947. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22948. //
  22949. //
  22950. // // Example sending a request using the ReplaceIamInstanceProfileAssociationRequest method.
  22951. // req, resp := client.ReplaceIamInstanceProfileAssociationRequest(params)
  22952. //
  22953. // err := req.Send()
  22954. // if err == nil { // resp is now filled
  22955. // fmt.Println(resp)
  22956. // }
  22957. //
  22958. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociation
  22959. func (c *EC2) ReplaceIamInstanceProfileAssociationRequest(input *ReplaceIamInstanceProfileAssociationInput) (req *request.Request, output *ReplaceIamInstanceProfileAssociationOutput) {
  22960. op := &request.Operation{
  22961. Name: opReplaceIamInstanceProfileAssociation,
  22962. HTTPMethod: "POST",
  22963. HTTPPath: "/",
  22964. }
  22965. if input == nil {
  22966. input = &ReplaceIamInstanceProfileAssociationInput{}
  22967. }
  22968. output = &ReplaceIamInstanceProfileAssociationOutput{}
  22969. req = c.newRequest(op, input, output)
  22970. return
  22971. }
  22972. // ReplaceIamInstanceProfileAssociation API operation for Amazon Elastic Compute Cloud.
  22973. //
  22974. // Replaces an IAM instance profile for the specified running instance. You
  22975. // can use this action to change the IAM instance profile that's associated
  22976. // with an instance without having to disassociate the existing IAM instance
  22977. // profile first.
  22978. //
  22979. // Use DescribeIamInstanceProfileAssociations to get the association ID.
  22980. //
  22981. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22982. // with awserr.Error's Code and Message methods to get detailed information about
  22983. // the error.
  22984. //
  22985. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22986. // API operation ReplaceIamInstanceProfileAssociation for usage and error information.
  22987. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociation
  22988. func (c *EC2) ReplaceIamInstanceProfileAssociation(input *ReplaceIamInstanceProfileAssociationInput) (*ReplaceIamInstanceProfileAssociationOutput, error) {
  22989. req, out := c.ReplaceIamInstanceProfileAssociationRequest(input)
  22990. return out, req.Send()
  22991. }
  22992. // ReplaceIamInstanceProfileAssociationWithContext is the same as ReplaceIamInstanceProfileAssociation with the addition of
  22993. // the ability to pass a context and additional request options.
  22994. //
  22995. // See ReplaceIamInstanceProfileAssociation for details on how to use this API operation.
  22996. //
  22997. // The context must be non-nil and will be used for request cancellation. If
  22998. // the context is nil a panic will occur. In the future the SDK may create
  22999. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23000. // for more information on using Contexts.
  23001. func (c *EC2) ReplaceIamInstanceProfileAssociationWithContext(ctx aws.Context, input *ReplaceIamInstanceProfileAssociationInput, opts ...request.Option) (*ReplaceIamInstanceProfileAssociationOutput, error) {
  23002. req, out := c.ReplaceIamInstanceProfileAssociationRequest(input)
  23003. req.SetContext(ctx)
  23004. req.ApplyOptions(opts...)
  23005. return out, req.Send()
  23006. }
  23007. const opReplaceNetworkAclAssociation = "ReplaceNetworkAclAssociation"
  23008. // ReplaceNetworkAclAssociationRequest generates a "aws/request.Request" representing the
  23009. // client's request for the ReplaceNetworkAclAssociation operation. The "output" return
  23010. // value will be populated with the request's response once the request completes
  23011. // successfully.
  23012. //
  23013. // Use "Send" method on the returned Request to send the API call to the service.
  23014. // the "output" return value is not valid until after Send returns without error.
  23015. //
  23016. // See ReplaceNetworkAclAssociation for more information on using the ReplaceNetworkAclAssociation
  23017. // API call, and error handling.
  23018. //
  23019. // This method is useful when you want to inject custom logic or configuration
  23020. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23021. //
  23022. //
  23023. // // Example sending a request using the ReplaceNetworkAclAssociationRequest method.
  23024. // req, resp := client.ReplaceNetworkAclAssociationRequest(params)
  23025. //
  23026. // err := req.Send()
  23027. // if err == nil { // resp is now filled
  23028. // fmt.Println(resp)
  23029. // }
  23030. //
  23031. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociation
  23032. func (c *EC2) ReplaceNetworkAclAssociationRequest(input *ReplaceNetworkAclAssociationInput) (req *request.Request, output *ReplaceNetworkAclAssociationOutput) {
  23033. op := &request.Operation{
  23034. Name: opReplaceNetworkAclAssociation,
  23035. HTTPMethod: "POST",
  23036. HTTPPath: "/",
  23037. }
  23038. if input == nil {
  23039. input = &ReplaceNetworkAclAssociationInput{}
  23040. }
  23041. output = &ReplaceNetworkAclAssociationOutput{}
  23042. req = c.newRequest(op, input, output)
  23043. return
  23044. }
  23045. // ReplaceNetworkAclAssociation API operation for Amazon Elastic Compute Cloud.
  23046. //
  23047. // Changes which network ACL a subnet is associated with. By default when you
  23048. // create a subnet, it's automatically associated with the default network ACL.
  23049. // For more information, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  23050. // in the Amazon Virtual Private Cloud User Guide.
  23051. //
  23052. // This is an idempotent operation.
  23053. //
  23054. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23055. // with awserr.Error's Code and Message methods to get detailed information about
  23056. // the error.
  23057. //
  23058. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23059. // API operation ReplaceNetworkAclAssociation for usage and error information.
  23060. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociation
  23061. func (c *EC2) ReplaceNetworkAclAssociation(input *ReplaceNetworkAclAssociationInput) (*ReplaceNetworkAclAssociationOutput, error) {
  23062. req, out := c.ReplaceNetworkAclAssociationRequest(input)
  23063. return out, req.Send()
  23064. }
  23065. // ReplaceNetworkAclAssociationWithContext is the same as ReplaceNetworkAclAssociation with the addition of
  23066. // the ability to pass a context and additional request options.
  23067. //
  23068. // See ReplaceNetworkAclAssociation for details on how to use this API operation.
  23069. //
  23070. // The context must be non-nil and will be used for request cancellation. If
  23071. // the context is nil a panic will occur. In the future the SDK may create
  23072. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23073. // for more information on using Contexts.
  23074. func (c *EC2) ReplaceNetworkAclAssociationWithContext(ctx aws.Context, input *ReplaceNetworkAclAssociationInput, opts ...request.Option) (*ReplaceNetworkAclAssociationOutput, error) {
  23075. req, out := c.ReplaceNetworkAclAssociationRequest(input)
  23076. req.SetContext(ctx)
  23077. req.ApplyOptions(opts...)
  23078. return out, req.Send()
  23079. }
  23080. const opReplaceNetworkAclEntry = "ReplaceNetworkAclEntry"
  23081. // ReplaceNetworkAclEntryRequest generates a "aws/request.Request" representing the
  23082. // client's request for the ReplaceNetworkAclEntry operation. The "output" return
  23083. // value will be populated with the request's response once the request completes
  23084. // successfully.
  23085. //
  23086. // Use "Send" method on the returned Request to send the API call to the service.
  23087. // the "output" return value is not valid until after Send returns without error.
  23088. //
  23089. // See ReplaceNetworkAclEntry for more information on using the ReplaceNetworkAclEntry
  23090. // API call, and error handling.
  23091. //
  23092. // This method is useful when you want to inject custom logic or configuration
  23093. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23094. //
  23095. //
  23096. // // Example sending a request using the ReplaceNetworkAclEntryRequest method.
  23097. // req, resp := client.ReplaceNetworkAclEntryRequest(params)
  23098. //
  23099. // err := req.Send()
  23100. // if err == nil { // resp is now filled
  23101. // fmt.Println(resp)
  23102. // }
  23103. //
  23104. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntry
  23105. func (c *EC2) ReplaceNetworkAclEntryRequest(input *ReplaceNetworkAclEntryInput) (req *request.Request, output *ReplaceNetworkAclEntryOutput) {
  23106. op := &request.Operation{
  23107. Name: opReplaceNetworkAclEntry,
  23108. HTTPMethod: "POST",
  23109. HTTPPath: "/",
  23110. }
  23111. if input == nil {
  23112. input = &ReplaceNetworkAclEntryInput{}
  23113. }
  23114. output = &ReplaceNetworkAclEntryOutput{}
  23115. req = c.newRequest(op, input, output)
  23116. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23117. return
  23118. }
  23119. // ReplaceNetworkAclEntry API operation for Amazon Elastic Compute Cloud.
  23120. //
  23121. // Replaces an entry (rule) in a network ACL. For more information, see Network
  23122. // ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  23123. // in the Amazon Virtual Private Cloud User Guide.
  23124. //
  23125. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23126. // with awserr.Error's Code and Message methods to get detailed information about
  23127. // the error.
  23128. //
  23129. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23130. // API operation ReplaceNetworkAclEntry for usage and error information.
  23131. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntry
  23132. func (c *EC2) ReplaceNetworkAclEntry(input *ReplaceNetworkAclEntryInput) (*ReplaceNetworkAclEntryOutput, error) {
  23133. req, out := c.ReplaceNetworkAclEntryRequest(input)
  23134. return out, req.Send()
  23135. }
  23136. // ReplaceNetworkAclEntryWithContext is the same as ReplaceNetworkAclEntry with the addition of
  23137. // the ability to pass a context and additional request options.
  23138. //
  23139. // See ReplaceNetworkAclEntry for details on how to use this API operation.
  23140. //
  23141. // The context must be non-nil and will be used for request cancellation. If
  23142. // the context is nil a panic will occur. In the future the SDK may create
  23143. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23144. // for more information on using Contexts.
  23145. func (c *EC2) ReplaceNetworkAclEntryWithContext(ctx aws.Context, input *ReplaceNetworkAclEntryInput, opts ...request.Option) (*ReplaceNetworkAclEntryOutput, error) {
  23146. req, out := c.ReplaceNetworkAclEntryRequest(input)
  23147. req.SetContext(ctx)
  23148. req.ApplyOptions(opts...)
  23149. return out, req.Send()
  23150. }
  23151. const opReplaceRoute = "ReplaceRoute"
  23152. // ReplaceRouteRequest generates a "aws/request.Request" representing the
  23153. // client's request for the ReplaceRoute operation. The "output" return
  23154. // value will be populated with the request's response once the request completes
  23155. // successfully.
  23156. //
  23157. // Use "Send" method on the returned Request to send the API call to the service.
  23158. // the "output" return value is not valid until after Send returns without error.
  23159. //
  23160. // See ReplaceRoute for more information on using the ReplaceRoute
  23161. // API call, and error handling.
  23162. //
  23163. // This method is useful when you want to inject custom logic or configuration
  23164. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23165. //
  23166. //
  23167. // // Example sending a request using the ReplaceRouteRequest method.
  23168. // req, resp := client.ReplaceRouteRequest(params)
  23169. //
  23170. // err := req.Send()
  23171. // if err == nil { // resp is now filled
  23172. // fmt.Println(resp)
  23173. // }
  23174. //
  23175. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute
  23176. func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Request, output *ReplaceRouteOutput) {
  23177. op := &request.Operation{
  23178. Name: opReplaceRoute,
  23179. HTTPMethod: "POST",
  23180. HTTPPath: "/",
  23181. }
  23182. if input == nil {
  23183. input = &ReplaceRouteInput{}
  23184. }
  23185. output = &ReplaceRouteOutput{}
  23186. req = c.newRequest(op, input, output)
  23187. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23188. return
  23189. }
  23190. // ReplaceRoute API operation for Amazon Elastic Compute Cloud.
  23191. //
  23192. // Replaces an existing route within a route table in a VPC. You must provide
  23193. // only one of the following: internet gateway or virtual private gateway, NAT
  23194. // instance, NAT gateway, VPC peering connection, network interface, or egress-only
  23195. // internet gateway.
  23196. //
  23197. // For more information, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  23198. // in the Amazon Virtual Private Cloud User Guide.
  23199. //
  23200. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23201. // with awserr.Error's Code and Message methods to get detailed information about
  23202. // the error.
  23203. //
  23204. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23205. // API operation ReplaceRoute for usage and error information.
  23206. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute
  23207. func (c *EC2) ReplaceRoute(input *ReplaceRouteInput) (*ReplaceRouteOutput, error) {
  23208. req, out := c.ReplaceRouteRequest(input)
  23209. return out, req.Send()
  23210. }
  23211. // ReplaceRouteWithContext is the same as ReplaceRoute with the addition of
  23212. // the ability to pass a context and additional request options.
  23213. //
  23214. // See ReplaceRoute for details on how to use this API operation.
  23215. //
  23216. // The context must be non-nil and will be used for request cancellation. If
  23217. // the context is nil a panic will occur. In the future the SDK may create
  23218. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23219. // for more information on using Contexts.
  23220. func (c *EC2) ReplaceRouteWithContext(ctx aws.Context, input *ReplaceRouteInput, opts ...request.Option) (*ReplaceRouteOutput, error) {
  23221. req, out := c.ReplaceRouteRequest(input)
  23222. req.SetContext(ctx)
  23223. req.ApplyOptions(opts...)
  23224. return out, req.Send()
  23225. }
  23226. const opReplaceRouteTableAssociation = "ReplaceRouteTableAssociation"
  23227. // ReplaceRouteTableAssociationRequest generates a "aws/request.Request" representing the
  23228. // client's request for the ReplaceRouteTableAssociation operation. The "output" return
  23229. // value will be populated with the request's response once the request completes
  23230. // successfully.
  23231. //
  23232. // Use "Send" method on the returned Request to send the API call to the service.
  23233. // the "output" return value is not valid until after Send returns without error.
  23234. //
  23235. // See ReplaceRouteTableAssociation for more information on using the ReplaceRouteTableAssociation
  23236. // API call, and error handling.
  23237. //
  23238. // This method is useful when you want to inject custom logic or configuration
  23239. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23240. //
  23241. //
  23242. // // Example sending a request using the ReplaceRouteTableAssociationRequest method.
  23243. // req, resp := client.ReplaceRouteTableAssociationRequest(params)
  23244. //
  23245. // err := req.Send()
  23246. // if err == nil { // resp is now filled
  23247. // fmt.Println(resp)
  23248. // }
  23249. //
  23250. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociation
  23251. func (c *EC2) ReplaceRouteTableAssociationRequest(input *ReplaceRouteTableAssociationInput) (req *request.Request, output *ReplaceRouteTableAssociationOutput) {
  23252. op := &request.Operation{
  23253. Name: opReplaceRouteTableAssociation,
  23254. HTTPMethod: "POST",
  23255. HTTPPath: "/",
  23256. }
  23257. if input == nil {
  23258. input = &ReplaceRouteTableAssociationInput{}
  23259. }
  23260. output = &ReplaceRouteTableAssociationOutput{}
  23261. req = c.newRequest(op, input, output)
  23262. return
  23263. }
  23264. // ReplaceRouteTableAssociation API operation for Amazon Elastic Compute Cloud.
  23265. //
  23266. // Changes the route table associated with a given subnet in a VPC. After the
  23267. // operation completes, the subnet uses the routes in the new route table it's
  23268. // associated with. For more information about route tables, see Route Tables
  23269. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  23270. // in the Amazon Virtual Private Cloud User Guide.
  23271. //
  23272. // You can also use ReplaceRouteTableAssociation to change which table is the
  23273. // main route table in the VPC. You just specify the main route table's association
  23274. // ID and the route table to be the new main route table.
  23275. //
  23276. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23277. // with awserr.Error's Code and Message methods to get detailed information about
  23278. // the error.
  23279. //
  23280. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23281. // API operation ReplaceRouteTableAssociation for usage and error information.
  23282. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociation
  23283. func (c *EC2) ReplaceRouteTableAssociation(input *ReplaceRouteTableAssociationInput) (*ReplaceRouteTableAssociationOutput, error) {
  23284. req, out := c.ReplaceRouteTableAssociationRequest(input)
  23285. return out, req.Send()
  23286. }
  23287. // ReplaceRouteTableAssociationWithContext is the same as ReplaceRouteTableAssociation with the addition of
  23288. // the ability to pass a context and additional request options.
  23289. //
  23290. // See ReplaceRouteTableAssociation for details on how to use this API operation.
  23291. //
  23292. // The context must be non-nil and will be used for request cancellation. If
  23293. // the context is nil a panic will occur. In the future the SDK may create
  23294. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23295. // for more information on using Contexts.
  23296. func (c *EC2) ReplaceRouteTableAssociationWithContext(ctx aws.Context, input *ReplaceRouteTableAssociationInput, opts ...request.Option) (*ReplaceRouteTableAssociationOutput, error) {
  23297. req, out := c.ReplaceRouteTableAssociationRequest(input)
  23298. req.SetContext(ctx)
  23299. req.ApplyOptions(opts...)
  23300. return out, req.Send()
  23301. }
  23302. const opReplaceTransitGatewayRoute = "ReplaceTransitGatewayRoute"
  23303. // ReplaceTransitGatewayRouteRequest generates a "aws/request.Request" representing the
  23304. // client's request for the ReplaceTransitGatewayRoute operation. The "output" return
  23305. // value will be populated with the request's response once the request completes
  23306. // successfully.
  23307. //
  23308. // Use "Send" method on the returned Request to send the API call to the service.
  23309. // the "output" return value is not valid until after Send returns without error.
  23310. //
  23311. // See ReplaceTransitGatewayRoute for more information on using the ReplaceTransitGatewayRoute
  23312. // API call, and error handling.
  23313. //
  23314. // This method is useful when you want to inject custom logic or configuration
  23315. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23316. //
  23317. //
  23318. // // Example sending a request using the ReplaceTransitGatewayRouteRequest method.
  23319. // req, resp := client.ReplaceTransitGatewayRouteRequest(params)
  23320. //
  23321. // err := req.Send()
  23322. // if err == nil { // resp is now filled
  23323. // fmt.Println(resp)
  23324. // }
  23325. //
  23326. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceTransitGatewayRoute
  23327. func (c *EC2) ReplaceTransitGatewayRouteRequest(input *ReplaceTransitGatewayRouteInput) (req *request.Request, output *ReplaceTransitGatewayRouteOutput) {
  23328. op := &request.Operation{
  23329. Name: opReplaceTransitGatewayRoute,
  23330. HTTPMethod: "POST",
  23331. HTTPPath: "/",
  23332. }
  23333. if input == nil {
  23334. input = &ReplaceTransitGatewayRouteInput{}
  23335. }
  23336. output = &ReplaceTransitGatewayRouteOutput{}
  23337. req = c.newRequest(op, input, output)
  23338. return
  23339. }
  23340. // ReplaceTransitGatewayRoute API operation for Amazon Elastic Compute Cloud.
  23341. //
  23342. // Replaces the specified route in the specified transit gateway route table.
  23343. //
  23344. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23345. // with awserr.Error's Code and Message methods to get detailed information about
  23346. // the error.
  23347. //
  23348. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23349. // API operation ReplaceTransitGatewayRoute for usage and error information.
  23350. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceTransitGatewayRoute
  23351. func (c *EC2) ReplaceTransitGatewayRoute(input *ReplaceTransitGatewayRouteInput) (*ReplaceTransitGatewayRouteOutput, error) {
  23352. req, out := c.ReplaceTransitGatewayRouteRequest(input)
  23353. return out, req.Send()
  23354. }
  23355. // ReplaceTransitGatewayRouteWithContext is the same as ReplaceTransitGatewayRoute with the addition of
  23356. // the ability to pass a context and additional request options.
  23357. //
  23358. // See ReplaceTransitGatewayRoute for details on how to use this API operation.
  23359. //
  23360. // The context must be non-nil and will be used for request cancellation. If
  23361. // the context is nil a panic will occur. In the future the SDK may create
  23362. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23363. // for more information on using Contexts.
  23364. func (c *EC2) ReplaceTransitGatewayRouteWithContext(ctx aws.Context, input *ReplaceTransitGatewayRouteInput, opts ...request.Option) (*ReplaceTransitGatewayRouteOutput, error) {
  23365. req, out := c.ReplaceTransitGatewayRouteRequest(input)
  23366. req.SetContext(ctx)
  23367. req.ApplyOptions(opts...)
  23368. return out, req.Send()
  23369. }
  23370. const opReportInstanceStatus = "ReportInstanceStatus"
  23371. // ReportInstanceStatusRequest generates a "aws/request.Request" representing the
  23372. // client's request for the ReportInstanceStatus operation. The "output" return
  23373. // value will be populated with the request's response once the request completes
  23374. // successfully.
  23375. //
  23376. // Use "Send" method on the returned Request to send the API call to the service.
  23377. // the "output" return value is not valid until after Send returns without error.
  23378. //
  23379. // See ReportInstanceStatus for more information on using the ReportInstanceStatus
  23380. // API call, and error handling.
  23381. //
  23382. // This method is useful when you want to inject custom logic or configuration
  23383. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23384. //
  23385. //
  23386. // // Example sending a request using the ReportInstanceStatusRequest method.
  23387. // req, resp := client.ReportInstanceStatusRequest(params)
  23388. //
  23389. // err := req.Send()
  23390. // if err == nil { // resp is now filled
  23391. // fmt.Println(resp)
  23392. // }
  23393. //
  23394. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatus
  23395. func (c *EC2) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) (req *request.Request, output *ReportInstanceStatusOutput) {
  23396. op := &request.Operation{
  23397. Name: opReportInstanceStatus,
  23398. HTTPMethod: "POST",
  23399. HTTPPath: "/",
  23400. }
  23401. if input == nil {
  23402. input = &ReportInstanceStatusInput{}
  23403. }
  23404. output = &ReportInstanceStatusOutput{}
  23405. req = c.newRequest(op, input, output)
  23406. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23407. return
  23408. }
  23409. // ReportInstanceStatus API operation for Amazon Elastic Compute Cloud.
  23410. //
  23411. // Submits feedback about the status of an instance. The instance must be in
  23412. // the running state. If your experience with the instance differs from the
  23413. // instance status returned by DescribeInstanceStatus, use ReportInstanceStatus
  23414. // to report your experience with the instance. Amazon EC2 collects this information
  23415. // to improve the accuracy of status checks.
  23416. //
  23417. // Use of this action does not change the value returned by DescribeInstanceStatus.
  23418. //
  23419. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23420. // with awserr.Error's Code and Message methods to get detailed information about
  23421. // the error.
  23422. //
  23423. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23424. // API operation ReportInstanceStatus for usage and error information.
  23425. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatus
  23426. func (c *EC2) ReportInstanceStatus(input *ReportInstanceStatusInput) (*ReportInstanceStatusOutput, error) {
  23427. req, out := c.ReportInstanceStatusRequest(input)
  23428. return out, req.Send()
  23429. }
  23430. // ReportInstanceStatusWithContext is the same as ReportInstanceStatus with the addition of
  23431. // the ability to pass a context and additional request options.
  23432. //
  23433. // See ReportInstanceStatus for details on how to use this API operation.
  23434. //
  23435. // The context must be non-nil and will be used for request cancellation. If
  23436. // the context is nil a panic will occur. In the future the SDK may create
  23437. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23438. // for more information on using Contexts.
  23439. func (c *EC2) ReportInstanceStatusWithContext(ctx aws.Context, input *ReportInstanceStatusInput, opts ...request.Option) (*ReportInstanceStatusOutput, error) {
  23440. req, out := c.ReportInstanceStatusRequest(input)
  23441. req.SetContext(ctx)
  23442. req.ApplyOptions(opts...)
  23443. return out, req.Send()
  23444. }
  23445. const opRequestSpotFleet = "RequestSpotFleet"
  23446. // RequestSpotFleetRequest generates a "aws/request.Request" representing the
  23447. // client's request for the RequestSpotFleet operation. The "output" return
  23448. // value will be populated with the request's response once the request completes
  23449. // successfully.
  23450. //
  23451. // Use "Send" method on the returned Request to send the API call to the service.
  23452. // the "output" return value is not valid until after Send returns without error.
  23453. //
  23454. // See RequestSpotFleet for more information on using the RequestSpotFleet
  23455. // API call, and error handling.
  23456. //
  23457. // This method is useful when you want to inject custom logic or configuration
  23458. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23459. //
  23460. //
  23461. // // Example sending a request using the RequestSpotFleetRequest method.
  23462. // req, resp := client.RequestSpotFleetRequest(params)
  23463. //
  23464. // err := req.Send()
  23465. // if err == nil { // resp is now filled
  23466. // fmt.Println(resp)
  23467. // }
  23468. //
  23469. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleet
  23470. func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *request.Request, output *RequestSpotFleetOutput) {
  23471. op := &request.Operation{
  23472. Name: opRequestSpotFleet,
  23473. HTTPMethod: "POST",
  23474. HTTPPath: "/",
  23475. }
  23476. if input == nil {
  23477. input = &RequestSpotFleetInput{}
  23478. }
  23479. output = &RequestSpotFleetOutput{}
  23480. req = c.newRequest(op, input, output)
  23481. return
  23482. }
  23483. // RequestSpotFleet API operation for Amazon Elastic Compute Cloud.
  23484. //
  23485. // Creates a Spot Fleet request.
  23486. //
  23487. // The Spot Fleet request specifies the total target capacity and the On-Demand
  23488. // target capacity. Amazon EC2 calculates the difference between the total capacity
  23489. // and On-Demand capacity, and launches the difference as Spot capacity.
  23490. //
  23491. // You can submit a single request that includes multiple launch specifications
  23492. // that vary by instance type, AMI, Availability Zone, or subnet.
  23493. //
  23494. // By default, the Spot Fleet requests Spot Instances in the Spot pool where
  23495. // the price per unit is the lowest. Each launch specification can include its
  23496. // own instance weighting that reflects the value of the instance type to your
  23497. // application workload.
  23498. //
  23499. // Alternatively, you can specify that the Spot Fleet distribute the target
  23500. // capacity across the Spot pools included in its launch specifications. By
  23501. // ensuring that the Spot Instances in your Spot Fleet are in different Spot
  23502. // pools, you can improve the availability of your fleet.
  23503. //
  23504. // You can specify tags for the Spot Instances. You cannot tag other resource
  23505. // types in a Spot Fleet request because only the instance resource type is
  23506. // supported.
  23507. //
  23508. // For more information, see Spot Fleet Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html)
  23509. // in the Amazon EC2 User Guide for Linux Instances.
  23510. //
  23511. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23512. // with awserr.Error's Code and Message methods to get detailed information about
  23513. // the error.
  23514. //
  23515. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23516. // API operation RequestSpotFleet for usage and error information.
  23517. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleet
  23518. func (c *EC2) RequestSpotFleet(input *RequestSpotFleetInput) (*RequestSpotFleetOutput, error) {
  23519. req, out := c.RequestSpotFleetRequest(input)
  23520. return out, req.Send()
  23521. }
  23522. // RequestSpotFleetWithContext is the same as RequestSpotFleet with the addition of
  23523. // the ability to pass a context and additional request options.
  23524. //
  23525. // See RequestSpotFleet for details on how to use this API operation.
  23526. //
  23527. // The context must be non-nil and will be used for request cancellation. If
  23528. // the context is nil a panic will occur. In the future the SDK may create
  23529. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23530. // for more information on using Contexts.
  23531. func (c *EC2) RequestSpotFleetWithContext(ctx aws.Context, input *RequestSpotFleetInput, opts ...request.Option) (*RequestSpotFleetOutput, error) {
  23532. req, out := c.RequestSpotFleetRequest(input)
  23533. req.SetContext(ctx)
  23534. req.ApplyOptions(opts...)
  23535. return out, req.Send()
  23536. }
  23537. const opRequestSpotInstances = "RequestSpotInstances"
  23538. // RequestSpotInstancesRequest generates a "aws/request.Request" representing the
  23539. // client's request for the RequestSpotInstances operation. The "output" return
  23540. // value will be populated with the request's response once the request completes
  23541. // successfully.
  23542. //
  23543. // Use "Send" method on the returned Request to send the API call to the service.
  23544. // the "output" return value is not valid until after Send returns without error.
  23545. //
  23546. // See RequestSpotInstances for more information on using the RequestSpotInstances
  23547. // API call, and error handling.
  23548. //
  23549. // This method is useful when you want to inject custom logic or configuration
  23550. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23551. //
  23552. //
  23553. // // Example sending a request using the RequestSpotInstancesRequest method.
  23554. // req, resp := client.RequestSpotInstancesRequest(params)
  23555. //
  23556. // err := req.Send()
  23557. // if err == nil { // resp is now filled
  23558. // fmt.Println(resp)
  23559. // }
  23560. //
  23561. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstances
  23562. func (c *EC2) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) (req *request.Request, output *RequestSpotInstancesOutput) {
  23563. op := &request.Operation{
  23564. Name: opRequestSpotInstances,
  23565. HTTPMethod: "POST",
  23566. HTTPPath: "/",
  23567. }
  23568. if input == nil {
  23569. input = &RequestSpotInstancesInput{}
  23570. }
  23571. output = &RequestSpotInstancesOutput{}
  23572. req = c.newRequest(op, input, output)
  23573. return
  23574. }
  23575. // RequestSpotInstances API operation for Amazon Elastic Compute Cloud.
  23576. //
  23577. // Creates a Spot Instance request.
  23578. //
  23579. // For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html)
  23580. // in the Amazon EC2 User Guide for Linux Instances.
  23581. //
  23582. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23583. // with awserr.Error's Code and Message methods to get detailed information about
  23584. // the error.
  23585. //
  23586. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23587. // API operation RequestSpotInstances for usage and error information.
  23588. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstances
  23589. func (c *EC2) RequestSpotInstances(input *RequestSpotInstancesInput) (*RequestSpotInstancesOutput, error) {
  23590. req, out := c.RequestSpotInstancesRequest(input)
  23591. return out, req.Send()
  23592. }
  23593. // RequestSpotInstancesWithContext is the same as RequestSpotInstances with the addition of
  23594. // the ability to pass a context and additional request options.
  23595. //
  23596. // See RequestSpotInstances for details on how to use this API operation.
  23597. //
  23598. // The context must be non-nil and will be used for request cancellation. If
  23599. // the context is nil a panic will occur. In the future the SDK may create
  23600. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23601. // for more information on using Contexts.
  23602. func (c *EC2) RequestSpotInstancesWithContext(ctx aws.Context, input *RequestSpotInstancesInput, opts ...request.Option) (*RequestSpotInstancesOutput, error) {
  23603. req, out := c.RequestSpotInstancesRequest(input)
  23604. req.SetContext(ctx)
  23605. req.ApplyOptions(opts...)
  23606. return out, req.Send()
  23607. }
  23608. const opResetFpgaImageAttribute = "ResetFpgaImageAttribute"
  23609. // ResetFpgaImageAttributeRequest generates a "aws/request.Request" representing the
  23610. // client's request for the ResetFpgaImageAttribute operation. The "output" return
  23611. // value will be populated with the request's response once the request completes
  23612. // successfully.
  23613. //
  23614. // Use "Send" method on the returned Request to send the API call to the service.
  23615. // the "output" return value is not valid until after Send returns without error.
  23616. //
  23617. // See ResetFpgaImageAttribute for more information on using the ResetFpgaImageAttribute
  23618. // API call, and error handling.
  23619. //
  23620. // This method is useful when you want to inject custom logic or configuration
  23621. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23622. //
  23623. //
  23624. // // Example sending a request using the ResetFpgaImageAttributeRequest method.
  23625. // req, resp := client.ResetFpgaImageAttributeRequest(params)
  23626. //
  23627. // err := req.Send()
  23628. // if err == nil { // resp is now filled
  23629. // fmt.Println(resp)
  23630. // }
  23631. //
  23632. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetFpgaImageAttribute
  23633. func (c *EC2) ResetFpgaImageAttributeRequest(input *ResetFpgaImageAttributeInput) (req *request.Request, output *ResetFpgaImageAttributeOutput) {
  23634. op := &request.Operation{
  23635. Name: opResetFpgaImageAttribute,
  23636. HTTPMethod: "POST",
  23637. HTTPPath: "/",
  23638. }
  23639. if input == nil {
  23640. input = &ResetFpgaImageAttributeInput{}
  23641. }
  23642. output = &ResetFpgaImageAttributeOutput{}
  23643. req = c.newRequest(op, input, output)
  23644. return
  23645. }
  23646. // ResetFpgaImageAttribute API operation for Amazon Elastic Compute Cloud.
  23647. //
  23648. // Resets the specified attribute of the specified Amazon FPGA Image (AFI) to
  23649. // its default value. You can only reset the load permission attribute.
  23650. //
  23651. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23652. // with awserr.Error's Code and Message methods to get detailed information about
  23653. // the error.
  23654. //
  23655. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23656. // API operation ResetFpgaImageAttribute for usage and error information.
  23657. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetFpgaImageAttribute
  23658. func (c *EC2) ResetFpgaImageAttribute(input *ResetFpgaImageAttributeInput) (*ResetFpgaImageAttributeOutput, error) {
  23659. req, out := c.ResetFpgaImageAttributeRequest(input)
  23660. return out, req.Send()
  23661. }
  23662. // ResetFpgaImageAttributeWithContext is the same as ResetFpgaImageAttribute with the addition of
  23663. // the ability to pass a context and additional request options.
  23664. //
  23665. // See ResetFpgaImageAttribute for details on how to use this API operation.
  23666. //
  23667. // The context must be non-nil and will be used for request cancellation. If
  23668. // the context is nil a panic will occur. In the future the SDK may create
  23669. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23670. // for more information on using Contexts.
  23671. func (c *EC2) ResetFpgaImageAttributeWithContext(ctx aws.Context, input *ResetFpgaImageAttributeInput, opts ...request.Option) (*ResetFpgaImageAttributeOutput, error) {
  23672. req, out := c.ResetFpgaImageAttributeRequest(input)
  23673. req.SetContext(ctx)
  23674. req.ApplyOptions(opts...)
  23675. return out, req.Send()
  23676. }
  23677. const opResetImageAttribute = "ResetImageAttribute"
  23678. // ResetImageAttributeRequest generates a "aws/request.Request" representing the
  23679. // client's request for the ResetImageAttribute operation. The "output" return
  23680. // value will be populated with the request's response once the request completes
  23681. // successfully.
  23682. //
  23683. // Use "Send" method on the returned Request to send the API call to the service.
  23684. // the "output" return value is not valid until after Send returns without error.
  23685. //
  23686. // See ResetImageAttribute for more information on using the ResetImageAttribute
  23687. // API call, and error handling.
  23688. //
  23689. // This method is useful when you want to inject custom logic or configuration
  23690. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23691. //
  23692. //
  23693. // // Example sending a request using the ResetImageAttributeRequest method.
  23694. // req, resp := client.ResetImageAttributeRequest(params)
  23695. //
  23696. // err := req.Send()
  23697. // if err == nil { // resp is now filled
  23698. // fmt.Println(resp)
  23699. // }
  23700. //
  23701. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttribute
  23702. func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req *request.Request, output *ResetImageAttributeOutput) {
  23703. op := &request.Operation{
  23704. Name: opResetImageAttribute,
  23705. HTTPMethod: "POST",
  23706. HTTPPath: "/",
  23707. }
  23708. if input == nil {
  23709. input = &ResetImageAttributeInput{}
  23710. }
  23711. output = &ResetImageAttributeOutput{}
  23712. req = c.newRequest(op, input, output)
  23713. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23714. return
  23715. }
  23716. // ResetImageAttribute API operation for Amazon Elastic Compute Cloud.
  23717. //
  23718. // Resets an attribute of an AMI to its default value.
  23719. //
  23720. // The productCodes attribute can't be reset.
  23721. //
  23722. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23723. // with awserr.Error's Code and Message methods to get detailed information about
  23724. // the error.
  23725. //
  23726. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23727. // API operation ResetImageAttribute for usage and error information.
  23728. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttribute
  23729. func (c *EC2) ResetImageAttribute(input *ResetImageAttributeInput) (*ResetImageAttributeOutput, error) {
  23730. req, out := c.ResetImageAttributeRequest(input)
  23731. return out, req.Send()
  23732. }
  23733. // ResetImageAttributeWithContext is the same as ResetImageAttribute with the addition of
  23734. // the ability to pass a context and additional request options.
  23735. //
  23736. // See ResetImageAttribute for details on how to use this API operation.
  23737. //
  23738. // The context must be non-nil and will be used for request cancellation. If
  23739. // the context is nil a panic will occur. In the future the SDK may create
  23740. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23741. // for more information on using Contexts.
  23742. func (c *EC2) ResetImageAttributeWithContext(ctx aws.Context, input *ResetImageAttributeInput, opts ...request.Option) (*ResetImageAttributeOutput, error) {
  23743. req, out := c.ResetImageAttributeRequest(input)
  23744. req.SetContext(ctx)
  23745. req.ApplyOptions(opts...)
  23746. return out, req.Send()
  23747. }
  23748. const opResetInstanceAttribute = "ResetInstanceAttribute"
  23749. // ResetInstanceAttributeRequest generates a "aws/request.Request" representing the
  23750. // client's request for the ResetInstanceAttribute operation. The "output" return
  23751. // value will be populated with the request's response once the request completes
  23752. // successfully.
  23753. //
  23754. // Use "Send" method on the returned Request to send the API call to the service.
  23755. // the "output" return value is not valid until after Send returns without error.
  23756. //
  23757. // See ResetInstanceAttribute for more information on using the ResetInstanceAttribute
  23758. // API call, and error handling.
  23759. //
  23760. // This method is useful when you want to inject custom logic or configuration
  23761. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23762. //
  23763. //
  23764. // // Example sending a request using the ResetInstanceAttributeRequest method.
  23765. // req, resp := client.ResetInstanceAttributeRequest(params)
  23766. //
  23767. // err := req.Send()
  23768. // if err == nil { // resp is now filled
  23769. // fmt.Println(resp)
  23770. // }
  23771. //
  23772. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttribute
  23773. func (c *EC2) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput) (req *request.Request, output *ResetInstanceAttributeOutput) {
  23774. op := &request.Operation{
  23775. Name: opResetInstanceAttribute,
  23776. HTTPMethod: "POST",
  23777. HTTPPath: "/",
  23778. }
  23779. if input == nil {
  23780. input = &ResetInstanceAttributeInput{}
  23781. }
  23782. output = &ResetInstanceAttributeOutput{}
  23783. req = c.newRequest(op, input, output)
  23784. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23785. return
  23786. }
  23787. // ResetInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  23788. //
  23789. // Resets an attribute of an instance to its default value. To reset the kernel
  23790. // or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck,
  23791. // the instance can be either running or stopped.
  23792. //
  23793. // The sourceDestCheck attribute controls whether source/destination checking
  23794. // is enabled. The default value is true, which means checking is enabled. This
  23795. // value must be false for a NAT instance to perform NAT. For more information,
  23796. // see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  23797. // in the Amazon Virtual Private Cloud User Guide.
  23798. //
  23799. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23800. // with awserr.Error's Code and Message methods to get detailed information about
  23801. // the error.
  23802. //
  23803. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23804. // API operation ResetInstanceAttribute for usage and error information.
  23805. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttribute
  23806. func (c *EC2) ResetInstanceAttribute(input *ResetInstanceAttributeInput) (*ResetInstanceAttributeOutput, error) {
  23807. req, out := c.ResetInstanceAttributeRequest(input)
  23808. return out, req.Send()
  23809. }
  23810. // ResetInstanceAttributeWithContext is the same as ResetInstanceAttribute with the addition of
  23811. // the ability to pass a context and additional request options.
  23812. //
  23813. // See ResetInstanceAttribute for details on how to use this API operation.
  23814. //
  23815. // The context must be non-nil and will be used for request cancellation. If
  23816. // the context is nil a panic will occur. In the future the SDK may create
  23817. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23818. // for more information on using Contexts.
  23819. func (c *EC2) ResetInstanceAttributeWithContext(ctx aws.Context, input *ResetInstanceAttributeInput, opts ...request.Option) (*ResetInstanceAttributeOutput, error) {
  23820. req, out := c.ResetInstanceAttributeRequest(input)
  23821. req.SetContext(ctx)
  23822. req.ApplyOptions(opts...)
  23823. return out, req.Send()
  23824. }
  23825. const opResetNetworkInterfaceAttribute = "ResetNetworkInterfaceAttribute"
  23826. // ResetNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  23827. // client's request for the ResetNetworkInterfaceAttribute operation. The "output" return
  23828. // value will be populated with the request's response once the request completes
  23829. // successfully.
  23830. //
  23831. // Use "Send" method on the returned Request to send the API call to the service.
  23832. // the "output" return value is not valid until after Send returns without error.
  23833. //
  23834. // See ResetNetworkInterfaceAttribute for more information on using the ResetNetworkInterfaceAttribute
  23835. // API call, and error handling.
  23836. //
  23837. // This method is useful when you want to inject custom logic or configuration
  23838. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23839. //
  23840. //
  23841. // // Example sending a request using the ResetNetworkInterfaceAttributeRequest method.
  23842. // req, resp := client.ResetNetworkInterfaceAttributeRequest(params)
  23843. //
  23844. // err := req.Send()
  23845. // if err == nil { // resp is now filled
  23846. // fmt.Println(resp)
  23847. // }
  23848. //
  23849. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttribute
  23850. func (c *EC2) ResetNetworkInterfaceAttributeRequest(input *ResetNetworkInterfaceAttributeInput) (req *request.Request, output *ResetNetworkInterfaceAttributeOutput) {
  23851. op := &request.Operation{
  23852. Name: opResetNetworkInterfaceAttribute,
  23853. HTTPMethod: "POST",
  23854. HTTPPath: "/",
  23855. }
  23856. if input == nil {
  23857. input = &ResetNetworkInterfaceAttributeInput{}
  23858. }
  23859. output = &ResetNetworkInterfaceAttributeOutput{}
  23860. req = c.newRequest(op, input, output)
  23861. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23862. return
  23863. }
  23864. // ResetNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  23865. //
  23866. // Resets a network interface attribute. You can specify only one attribute
  23867. // at a time.
  23868. //
  23869. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23870. // with awserr.Error's Code and Message methods to get detailed information about
  23871. // the error.
  23872. //
  23873. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23874. // API operation ResetNetworkInterfaceAttribute for usage and error information.
  23875. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttribute
  23876. func (c *EC2) ResetNetworkInterfaceAttribute(input *ResetNetworkInterfaceAttributeInput) (*ResetNetworkInterfaceAttributeOutput, error) {
  23877. req, out := c.ResetNetworkInterfaceAttributeRequest(input)
  23878. return out, req.Send()
  23879. }
  23880. // ResetNetworkInterfaceAttributeWithContext is the same as ResetNetworkInterfaceAttribute with the addition of
  23881. // the ability to pass a context and additional request options.
  23882. //
  23883. // See ResetNetworkInterfaceAttribute for details on how to use this API operation.
  23884. //
  23885. // The context must be non-nil and will be used for request cancellation. If
  23886. // the context is nil a panic will occur. In the future the SDK may create
  23887. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23888. // for more information on using Contexts.
  23889. func (c *EC2) ResetNetworkInterfaceAttributeWithContext(ctx aws.Context, input *ResetNetworkInterfaceAttributeInput, opts ...request.Option) (*ResetNetworkInterfaceAttributeOutput, error) {
  23890. req, out := c.ResetNetworkInterfaceAttributeRequest(input)
  23891. req.SetContext(ctx)
  23892. req.ApplyOptions(opts...)
  23893. return out, req.Send()
  23894. }
  23895. const opResetSnapshotAttribute = "ResetSnapshotAttribute"
  23896. // ResetSnapshotAttributeRequest generates a "aws/request.Request" representing the
  23897. // client's request for the ResetSnapshotAttribute operation. The "output" return
  23898. // value will be populated with the request's response once the request completes
  23899. // successfully.
  23900. //
  23901. // Use "Send" method on the returned Request to send the API call to the service.
  23902. // the "output" return value is not valid until after Send returns without error.
  23903. //
  23904. // See ResetSnapshotAttribute for more information on using the ResetSnapshotAttribute
  23905. // API call, and error handling.
  23906. //
  23907. // This method is useful when you want to inject custom logic or configuration
  23908. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23909. //
  23910. //
  23911. // // Example sending a request using the ResetSnapshotAttributeRequest method.
  23912. // req, resp := client.ResetSnapshotAttributeRequest(params)
  23913. //
  23914. // err := req.Send()
  23915. // if err == nil { // resp is now filled
  23916. // fmt.Println(resp)
  23917. // }
  23918. //
  23919. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttribute
  23920. func (c *EC2) ResetSnapshotAttributeRequest(input *ResetSnapshotAttributeInput) (req *request.Request, output *ResetSnapshotAttributeOutput) {
  23921. op := &request.Operation{
  23922. Name: opResetSnapshotAttribute,
  23923. HTTPMethod: "POST",
  23924. HTTPPath: "/",
  23925. }
  23926. if input == nil {
  23927. input = &ResetSnapshotAttributeInput{}
  23928. }
  23929. output = &ResetSnapshotAttributeOutput{}
  23930. req = c.newRequest(op, input, output)
  23931. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23932. return
  23933. }
  23934. // ResetSnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  23935. //
  23936. // Resets permission settings for the specified snapshot.
  23937. //
  23938. // For more information about modifying snapshot permissions, see Sharing Snapshots
  23939. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html)
  23940. // in the Amazon Elastic Compute Cloud User Guide.
  23941. //
  23942. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23943. // with awserr.Error's Code and Message methods to get detailed information about
  23944. // the error.
  23945. //
  23946. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23947. // API operation ResetSnapshotAttribute for usage and error information.
  23948. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttribute
  23949. func (c *EC2) ResetSnapshotAttribute(input *ResetSnapshotAttributeInput) (*ResetSnapshotAttributeOutput, error) {
  23950. req, out := c.ResetSnapshotAttributeRequest(input)
  23951. return out, req.Send()
  23952. }
  23953. // ResetSnapshotAttributeWithContext is the same as ResetSnapshotAttribute with the addition of
  23954. // the ability to pass a context and additional request options.
  23955. //
  23956. // See ResetSnapshotAttribute for details on how to use this API operation.
  23957. //
  23958. // The context must be non-nil and will be used for request cancellation. If
  23959. // the context is nil a panic will occur. In the future the SDK may create
  23960. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23961. // for more information on using Contexts.
  23962. func (c *EC2) ResetSnapshotAttributeWithContext(ctx aws.Context, input *ResetSnapshotAttributeInput, opts ...request.Option) (*ResetSnapshotAttributeOutput, error) {
  23963. req, out := c.ResetSnapshotAttributeRequest(input)
  23964. req.SetContext(ctx)
  23965. req.ApplyOptions(opts...)
  23966. return out, req.Send()
  23967. }
  23968. const opRestoreAddressToClassic = "RestoreAddressToClassic"
  23969. // RestoreAddressToClassicRequest generates a "aws/request.Request" representing the
  23970. // client's request for the RestoreAddressToClassic operation. The "output" return
  23971. // value will be populated with the request's response once the request completes
  23972. // successfully.
  23973. //
  23974. // Use "Send" method on the returned Request to send the API call to the service.
  23975. // the "output" return value is not valid until after Send returns without error.
  23976. //
  23977. // See RestoreAddressToClassic for more information on using the RestoreAddressToClassic
  23978. // API call, and error handling.
  23979. //
  23980. // This method is useful when you want to inject custom logic or configuration
  23981. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23982. //
  23983. //
  23984. // // Example sending a request using the RestoreAddressToClassicRequest method.
  23985. // req, resp := client.RestoreAddressToClassicRequest(params)
  23986. //
  23987. // err := req.Send()
  23988. // if err == nil { // resp is now filled
  23989. // fmt.Println(resp)
  23990. // }
  23991. //
  23992. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic
  23993. func (c *EC2) RestoreAddressToClassicRequest(input *RestoreAddressToClassicInput) (req *request.Request, output *RestoreAddressToClassicOutput) {
  23994. op := &request.Operation{
  23995. Name: opRestoreAddressToClassic,
  23996. HTTPMethod: "POST",
  23997. HTTPPath: "/",
  23998. }
  23999. if input == nil {
  24000. input = &RestoreAddressToClassicInput{}
  24001. }
  24002. output = &RestoreAddressToClassicOutput{}
  24003. req = c.newRequest(op, input, output)
  24004. return
  24005. }
  24006. // RestoreAddressToClassic API operation for Amazon Elastic Compute Cloud.
  24007. //
  24008. // Restores an Elastic IP address that was previously moved to the EC2-VPC platform
  24009. // back to the EC2-Classic platform. You cannot move an Elastic IP address that
  24010. // was originally allocated for use in EC2-VPC. The Elastic IP address must
  24011. // not be associated with an instance or network interface.
  24012. //
  24013. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24014. // with awserr.Error's Code and Message methods to get detailed information about
  24015. // the error.
  24016. //
  24017. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24018. // API operation RestoreAddressToClassic for usage and error information.
  24019. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic
  24020. func (c *EC2) RestoreAddressToClassic(input *RestoreAddressToClassicInput) (*RestoreAddressToClassicOutput, error) {
  24021. req, out := c.RestoreAddressToClassicRequest(input)
  24022. return out, req.Send()
  24023. }
  24024. // RestoreAddressToClassicWithContext is the same as RestoreAddressToClassic with the addition of
  24025. // the ability to pass a context and additional request options.
  24026. //
  24027. // See RestoreAddressToClassic for details on how to use this API operation.
  24028. //
  24029. // The context must be non-nil and will be used for request cancellation. If
  24030. // the context is nil a panic will occur. In the future the SDK may create
  24031. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24032. // for more information on using Contexts.
  24033. func (c *EC2) RestoreAddressToClassicWithContext(ctx aws.Context, input *RestoreAddressToClassicInput, opts ...request.Option) (*RestoreAddressToClassicOutput, error) {
  24034. req, out := c.RestoreAddressToClassicRequest(input)
  24035. req.SetContext(ctx)
  24036. req.ApplyOptions(opts...)
  24037. return out, req.Send()
  24038. }
  24039. const opRevokeClientVpnIngress = "RevokeClientVpnIngress"
  24040. // RevokeClientVpnIngressRequest generates a "aws/request.Request" representing the
  24041. // client's request for the RevokeClientVpnIngress operation. The "output" return
  24042. // value will be populated with the request's response once the request completes
  24043. // successfully.
  24044. //
  24045. // Use "Send" method on the returned Request to send the API call to the service.
  24046. // the "output" return value is not valid until after Send returns without error.
  24047. //
  24048. // See RevokeClientVpnIngress for more information on using the RevokeClientVpnIngress
  24049. // API call, and error handling.
  24050. //
  24051. // This method is useful when you want to inject custom logic or configuration
  24052. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24053. //
  24054. //
  24055. // // Example sending a request using the RevokeClientVpnIngressRequest method.
  24056. // req, resp := client.RevokeClientVpnIngressRequest(params)
  24057. //
  24058. // err := req.Send()
  24059. // if err == nil { // resp is now filled
  24060. // fmt.Println(resp)
  24061. // }
  24062. //
  24063. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeClientVpnIngress
  24064. func (c *EC2) RevokeClientVpnIngressRequest(input *RevokeClientVpnIngressInput) (req *request.Request, output *RevokeClientVpnIngressOutput) {
  24065. op := &request.Operation{
  24066. Name: opRevokeClientVpnIngress,
  24067. HTTPMethod: "POST",
  24068. HTTPPath: "/",
  24069. }
  24070. if input == nil {
  24071. input = &RevokeClientVpnIngressInput{}
  24072. }
  24073. output = &RevokeClientVpnIngressOutput{}
  24074. req = c.newRequest(op, input, output)
  24075. return
  24076. }
  24077. // RevokeClientVpnIngress API operation for Amazon Elastic Compute Cloud.
  24078. //
  24079. // Removes an ingress authorization rule from a Client VPN endpoint.
  24080. //
  24081. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24082. // with awserr.Error's Code and Message methods to get detailed information about
  24083. // the error.
  24084. //
  24085. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24086. // API operation RevokeClientVpnIngress for usage and error information.
  24087. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeClientVpnIngress
  24088. func (c *EC2) RevokeClientVpnIngress(input *RevokeClientVpnIngressInput) (*RevokeClientVpnIngressOutput, error) {
  24089. req, out := c.RevokeClientVpnIngressRequest(input)
  24090. return out, req.Send()
  24091. }
  24092. // RevokeClientVpnIngressWithContext is the same as RevokeClientVpnIngress with the addition of
  24093. // the ability to pass a context and additional request options.
  24094. //
  24095. // See RevokeClientVpnIngress for details on how to use this API operation.
  24096. //
  24097. // The context must be non-nil and will be used for request cancellation. If
  24098. // the context is nil a panic will occur. In the future the SDK may create
  24099. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24100. // for more information on using Contexts.
  24101. func (c *EC2) RevokeClientVpnIngressWithContext(ctx aws.Context, input *RevokeClientVpnIngressInput, opts ...request.Option) (*RevokeClientVpnIngressOutput, error) {
  24102. req, out := c.RevokeClientVpnIngressRequest(input)
  24103. req.SetContext(ctx)
  24104. req.ApplyOptions(opts...)
  24105. return out, req.Send()
  24106. }
  24107. const opRevokeSecurityGroupEgress = "RevokeSecurityGroupEgress"
  24108. // RevokeSecurityGroupEgressRequest generates a "aws/request.Request" representing the
  24109. // client's request for the RevokeSecurityGroupEgress operation. The "output" return
  24110. // value will be populated with the request's response once the request completes
  24111. // successfully.
  24112. //
  24113. // Use "Send" method on the returned Request to send the API call to the service.
  24114. // the "output" return value is not valid until after Send returns without error.
  24115. //
  24116. // See RevokeSecurityGroupEgress for more information on using the RevokeSecurityGroupEgress
  24117. // API call, and error handling.
  24118. //
  24119. // This method is useful when you want to inject custom logic or configuration
  24120. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24121. //
  24122. //
  24123. // // Example sending a request using the RevokeSecurityGroupEgressRequest method.
  24124. // req, resp := client.RevokeSecurityGroupEgressRequest(params)
  24125. //
  24126. // err := req.Send()
  24127. // if err == nil { // resp is now filled
  24128. // fmt.Println(resp)
  24129. // }
  24130. //
  24131. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgress
  24132. func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressInput) (req *request.Request, output *RevokeSecurityGroupEgressOutput) {
  24133. op := &request.Operation{
  24134. Name: opRevokeSecurityGroupEgress,
  24135. HTTPMethod: "POST",
  24136. HTTPPath: "/",
  24137. }
  24138. if input == nil {
  24139. input = &RevokeSecurityGroupEgressInput{}
  24140. }
  24141. output = &RevokeSecurityGroupEgressOutput{}
  24142. req = c.newRequest(op, input, output)
  24143. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  24144. return
  24145. }
  24146. // RevokeSecurityGroupEgress API operation for Amazon Elastic Compute Cloud.
  24147. //
  24148. // [EC2-VPC only] Removes one or more egress rules from a security group for
  24149. // EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic.
  24150. // To remove a rule, the values that you specify (for example, ports) must match
  24151. // the existing rule's values exactly.
  24152. //
  24153. // Each rule consists of the protocol and the IPv4 or IPv6 CIDR range or source
  24154. // security group. For the TCP and UDP protocols, you must also specify the
  24155. // destination port or range of ports. For the ICMP protocol, you must also
  24156. // specify the ICMP type and code. If the security group rule has a description,
  24157. // you do not have to specify the description to revoke the rule.
  24158. //
  24159. // Rule changes are propagated to instances within the security group as quickly
  24160. // as possible. However, a small delay might occur.
  24161. //
  24162. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24163. // with awserr.Error's Code and Message methods to get detailed information about
  24164. // the error.
  24165. //
  24166. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24167. // API operation RevokeSecurityGroupEgress for usage and error information.
  24168. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgress
  24169. func (c *EC2) RevokeSecurityGroupEgress(input *RevokeSecurityGroupEgressInput) (*RevokeSecurityGroupEgressOutput, error) {
  24170. req, out := c.RevokeSecurityGroupEgressRequest(input)
  24171. return out, req.Send()
  24172. }
  24173. // RevokeSecurityGroupEgressWithContext is the same as RevokeSecurityGroupEgress with the addition of
  24174. // the ability to pass a context and additional request options.
  24175. //
  24176. // See RevokeSecurityGroupEgress for details on how to use this API operation.
  24177. //
  24178. // The context must be non-nil and will be used for request cancellation. If
  24179. // the context is nil a panic will occur. In the future the SDK may create
  24180. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24181. // for more information on using Contexts.
  24182. func (c *EC2) RevokeSecurityGroupEgressWithContext(ctx aws.Context, input *RevokeSecurityGroupEgressInput, opts ...request.Option) (*RevokeSecurityGroupEgressOutput, error) {
  24183. req, out := c.RevokeSecurityGroupEgressRequest(input)
  24184. req.SetContext(ctx)
  24185. req.ApplyOptions(opts...)
  24186. return out, req.Send()
  24187. }
  24188. const opRevokeSecurityGroupIngress = "RevokeSecurityGroupIngress"
  24189. // RevokeSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  24190. // client's request for the RevokeSecurityGroupIngress operation. The "output" return
  24191. // value will be populated with the request's response once the request completes
  24192. // successfully.
  24193. //
  24194. // Use "Send" method on the returned Request to send the API call to the service.
  24195. // the "output" return value is not valid until after Send returns without error.
  24196. //
  24197. // See RevokeSecurityGroupIngress for more information on using the RevokeSecurityGroupIngress
  24198. // API call, and error handling.
  24199. //
  24200. // This method is useful when you want to inject custom logic or configuration
  24201. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24202. //
  24203. //
  24204. // // Example sending a request using the RevokeSecurityGroupIngressRequest method.
  24205. // req, resp := client.RevokeSecurityGroupIngressRequest(params)
  24206. //
  24207. // err := req.Send()
  24208. // if err == nil { // resp is now filled
  24209. // fmt.Println(resp)
  24210. // }
  24211. //
  24212. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngress
  24213. func (c *EC2) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngressInput) (req *request.Request, output *RevokeSecurityGroupIngressOutput) {
  24214. op := &request.Operation{
  24215. Name: opRevokeSecurityGroupIngress,
  24216. HTTPMethod: "POST",
  24217. HTTPPath: "/",
  24218. }
  24219. if input == nil {
  24220. input = &RevokeSecurityGroupIngressInput{}
  24221. }
  24222. output = &RevokeSecurityGroupIngressOutput{}
  24223. req = c.newRequest(op, input, output)
  24224. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  24225. return
  24226. }
  24227. // RevokeSecurityGroupIngress API operation for Amazon Elastic Compute Cloud.
  24228. //
  24229. // Removes one or more ingress rules from a security group. To remove a rule,
  24230. // the values that you specify (for example, ports) must match the existing
  24231. // rule's values exactly.
  24232. //
  24233. // [EC2-Classic security groups only] If the values you specify do not match
  24234. // the existing rule's values, no error is returned. Use DescribeSecurityGroups
  24235. // to verify that the rule has been removed.
  24236. //
  24237. // Each rule consists of the protocol and the CIDR range or source security
  24238. // group. For the TCP and UDP protocols, you must also specify the destination
  24239. // port or range of ports. For the ICMP protocol, you must also specify the
  24240. // ICMP type and code. If the security group rule has a description, you do
  24241. // not have to specify the description to revoke the rule.
  24242. //
  24243. // Rule changes are propagated to instances within the security group as quickly
  24244. // as possible. However, a small delay might occur.
  24245. //
  24246. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24247. // with awserr.Error's Code and Message methods to get detailed information about
  24248. // the error.
  24249. //
  24250. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24251. // API operation RevokeSecurityGroupIngress for usage and error information.
  24252. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngress
  24253. func (c *EC2) RevokeSecurityGroupIngress(input *RevokeSecurityGroupIngressInput) (*RevokeSecurityGroupIngressOutput, error) {
  24254. req, out := c.RevokeSecurityGroupIngressRequest(input)
  24255. return out, req.Send()
  24256. }
  24257. // RevokeSecurityGroupIngressWithContext is the same as RevokeSecurityGroupIngress with the addition of
  24258. // the ability to pass a context and additional request options.
  24259. //
  24260. // See RevokeSecurityGroupIngress for details on how to use this API operation.
  24261. //
  24262. // The context must be non-nil and will be used for request cancellation. If
  24263. // the context is nil a panic will occur. In the future the SDK may create
  24264. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24265. // for more information on using Contexts.
  24266. func (c *EC2) RevokeSecurityGroupIngressWithContext(ctx aws.Context, input *RevokeSecurityGroupIngressInput, opts ...request.Option) (*RevokeSecurityGroupIngressOutput, error) {
  24267. req, out := c.RevokeSecurityGroupIngressRequest(input)
  24268. req.SetContext(ctx)
  24269. req.ApplyOptions(opts...)
  24270. return out, req.Send()
  24271. }
  24272. const opRunInstances = "RunInstances"
  24273. // RunInstancesRequest generates a "aws/request.Request" representing the
  24274. // client's request for the RunInstances operation. The "output" return
  24275. // value will be populated with the request's response once the request completes
  24276. // successfully.
  24277. //
  24278. // Use "Send" method on the returned Request to send the API call to the service.
  24279. // the "output" return value is not valid until after Send returns without error.
  24280. //
  24281. // See RunInstances for more information on using the RunInstances
  24282. // API call, and error handling.
  24283. //
  24284. // This method is useful when you want to inject custom logic or configuration
  24285. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24286. //
  24287. //
  24288. // // Example sending a request using the RunInstancesRequest method.
  24289. // req, resp := client.RunInstancesRequest(params)
  24290. //
  24291. // err := req.Send()
  24292. // if err == nil { // resp is now filled
  24293. // fmt.Println(resp)
  24294. // }
  24295. //
  24296. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstances
  24297. func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Request, output *Reservation) {
  24298. op := &request.Operation{
  24299. Name: opRunInstances,
  24300. HTTPMethod: "POST",
  24301. HTTPPath: "/",
  24302. }
  24303. if input == nil {
  24304. input = &RunInstancesInput{}
  24305. }
  24306. output = &Reservation{}
  24307. req = c.newRequest(op, input, output)
  24308. return
  24309. }
  24310. // RunInstances API operation for Amazon Elastic Compute Cloud.
  24311. //
  24312. // Launches the specified number of instances using an AMI for which you have
  24313. // permissions.
  24314. //
  24315. // You can specify a number of options, or leave the default options. The following
  24316. // rules apply:
  24317. //
  24318. // * [EC2-VPC] If you don't specify a subnet ID, we choose a default subnet
  24319. // from your default VPC for you. If you don't have a default VPC, you must
  24320. // specify a subnet ID in the request.
  24321. //
  24322. // * [EC2-Classic] If don't specify an Availability Zone, we choose one for
  24323. // you.
  24324. //
  24325. // * Some instance types must be launched into a VPC. If you do not have
  24326. // a default VPC, or if you do not specify a subnet ID, the request fails.
  24327. // 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).
  24328. //
  24329. // * [EC2-VPC] All instances have a network interface with a primary private
  24330. // IPv4 address. If you don't specify this address, we choose one from the
  24331. // IPv4 range of your subnet.
  24332. //
  24333. // * Not all instance types support IPv6 addresses. For more information,
  24334. // see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  24335. //
  24336. // * If you don't specify a security group ID, we use the default security
  24337. // group. For more information, see Security Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html).
  24338. //
  24339. // * If any of the AMIs have a product code attached for which the user has
  24340. // not subscribed, the request fails.
  24341. //
  24342. // You can create a launch template (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html),
  24343. // which is a resource that contains the parameters to launch an instance. When
  24344. // you launch an instance using RunInstances, you can specify the launch template
  24345. // instead of specifying the launch parameters.
  24346. //
  24347. // To ensure faster instance launches, break up large requests into smaller
  24348. // batches. For example, create five separate launch requests for 100 instances
  24349. // each instead of one launch request for 500 instances.
  24350. //
  24351. // An instance is ready for you to use when it's in the running state. You can
  24352. // check the state of your instance using DescribeInstances. You can tag instances
  24353. // and EBS volumes during launch, after launch, or both. For more information,
  24354. // see CreateTags and Tagging Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html).
  24355. //
  24356. // Linux instances have access to the public key of the key pair at boot. You
  24357. // can use this key to provide secure access to the instance. Amazon EC2 public
  24358. // images use this feature to provide secure access without passwords. For more
  24359. // information, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  24360. // in the Amazon Elastic Compute Cloud User Guide.
  24361. //
  24362. // For troubleshooting, see What To Do If An Instance Immediately Terminates
  24363. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html),
  24364. // and Troubleshooting Connecting to Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html)
  24365. // in the Amazon Elastic Compute Cloud User Guide.
  24366. //
  24367. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24368. // with awserr.Error's Code and Message methods to get detailed information about
  24369. // the error.
  24370. //
  24371. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24372. // API operation RunInstances for usage and error information.
  24373. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstances
  24374. func (c *EC2) RunInstances(input *RunInstancesInput) (*Reservation, error) {
  24375. req, out := c.RunInstancesRequest(input)
  24376. return out, req.Send()
  24377. }
  24378. // RunInstancesWithContext is the same as RunInstances with the addition of
  24379. // the ability to pass a context and additional request options.
  24380. //
  24381. // See RunInstances for details on how to use this API operation.
  24382. //
  24383. // The context must be non-nil and will be used for request cancellation. If
  24384. // the context is nil a panic will occur. In the future the SDK may create
  24385. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24386. // for more information on using Contexts.
  24387. func (c *EC2) RunInstancesWithContext(ctx aws.Context, input *RunInstancesInput, opts ...request.Option) (*Reservation, error) {
  24388. req, out := c.RunInstancesRequest(input)
  24389. req.SetContext(ctx)
  24390. req.ApplyOptions(opts...)
  24391. return out, req.Send()
  24392. }
  24393. const opRunScheduledInstances = "RunScheduledInstances"
  24394. // RunScheduledInstancesRequest generates a "aws/request.Request" representing the
  24395. // client's request for the RunScheduledInstances operation. The "output" return
  24396. // value will be populated with the request's response once the request completes
  24397. // successfully.
  24398. //
  24399. // Use "Send" method on the returned Request to send the API call to the service.
  24400. // the "output" return value is not valid until after Send returns without error.
  24401. //
  24402. // See RunScheduledInstances for more information on using the RunScheduledInstances
  24403. // API call, and error handling.
  24404. //
  24405. // This method is useful when you want to inject custom logic or configuration
  24406. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24407. //
  24408. //
  24409. // // Example sending a request using the RunScheduledInstancesRequest method.
  24410. // req, resp := client.RunScheduledInstancesRequest(params)
  24411. //
  24412. // err := req.Send()
  24413. // if err == nil { // resp is now filled
  24414. // fmt.Println(resp)
  24415. // }
  24416. //
  24417. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstances
  24418. func (c *EC2) RunScheduledInstancesRequest(input *RunScheduledInstancesInput) (req *request.Request, output *RunScheduledInstancesOutput) {
  24419. op := &request.Operation{
  24420. Name: opRunScheduledInstances,
  24421. HTTPMethod: "POST",
  24422. HTTPPath: "/",
  24423. }
  24424. if input == nil {
  24425. input = &RunScheduledInstancesInput{}
  24426. }
  24427. output = &RunScheduledInstancesOutput{}
  24428. req = c.newRequest(op, input, output)
  24429. return
  24430. }
  24431. // RunScheduledInstances API operation for Amazon Elastic Compute Cloud.
  24432. //
  24433. // Launches the specified Scheduled Instances.
  24434. //
  24435. // Before you can launch a Scheduled Instance, you must purchase it and obtain
  24436. // an identifier using PurchaseScheduledInstances.
  24437. //
  24438. // You must launch a Scheduled Instance during its scheduled time period. You
  24439. // can't stop or reboot a Scheduled Instance, but you can terminate it as needed.
  24440. // If you terminate a Scheduled Instance before the current scheduled time period
  24441. // ends, you can launch it again after a few minutes. For more information,
  24442. // see Scheduled Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-scheduled-instances.html)
  24443. // in the Amazon Elastic Compute Cloud User Guide.
  24444. //
  24445. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24446. // with awserr.Error's Code and Message methods to get detailed information about
  24447. // the error.
  24448. //
  24449. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24450. // API operation RunScheduledInstances for usage and error information.
  24451. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstances
  24452. func (c *EC2) RunScheduledInstances(input *RunScheduledInstancesInput) (*RunScheduledInstancesOutput, error) {
  24453. req, out := c.RunScheduledInstancesRequest(input)
  24454. return out, req.Send()
  24455. }
  24456. // RunScheduledInstancesWithContext is the same as RunScheduledInstances with the addition of
  24457. // the ability to pass a context and additional request options.
  24458. //
  24459. // See RunScheduledInstances for details on how to use this API operation.
  24460. //
  24461. // The context must be non-nil and will be used for request cancellation. If
  24462. // the context is nil a panic will occur. In the future the SDK may create
  24463. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24464. // for more information on using Contexts.
  24465. func (c *EC2) RunScheduledInstancesWithContext(ctx aws.Context, input *RunScheduledInstancesInput, opts ...request.Option) (*RunScheduledInstancesOutput, error) {
  24466. req, out := c.RunScheduledInstancesRequest(input)
  24467. req.SetContext(ctx)
  24468. req.ApplyOptions(opts...)
  24469. return out, req.Send()
  24470. }
  24471. const opSearchTransitGatewayRoutes = "SearchTransitGatewayRoutes"
  24472. // SearchTransitGatewayRoutesRequest generates a "aws/request.Request" representing the
  24473. // client's request for the SearchTransitGatewayRoutes operation. The "output" return
  24474. // value will be populated with the request's response once the request completes
  24475. // successfully.
  24476. //
  24477. // Use "Send" method on the returned Request to send the API call to the service.
  24478. // the "output" return value is not valid until after Send returns without error.
  24479. //
  24480. // See SearchTransitGatewayRoutes for more information on using the SearchTransitGatewayRoutes
  24481. // API call, and error handling.
  24482. //
  24483. // This method is useful when you want to inject custom logic or configuration
  24484. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24485. //
  24486. //
  24487. // // Example sending a request using the SearchTransitGatewayRoutesRequest method.
  24488. // req, resp := client.SearchTransitGatewayRoutesRequest(params)
  24489. //
  24490. // err := req.Send()
  24491. // if err == nil { // resp is now filled
  24492. // fmt.Println(resp)
  24493. // }
  24494. //
  24495. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SearchTransitGatewayRoutes
  24496. func (c *EC2) SearchTransitGatewayRoutesRequest(input *SearchTransitGatewayRoutesInput) (req *request.Request, output *SearchTransitGatewayRoutesOutput) {
  24497. op := &request.Operation{
  24498. Name: opSearchTransitGatewayRoutes,
  24499. HTTPMethod: "POST",
  24500. HTTPPath: "/",
  24501. }
  24502. if input == nil {
  24503. input = &SearchTransitGatewayRoutesInput{}
  24504. }
  24505. output = &SearchTransitGatewayRoutesOutput{}
  24506. req = c.newRequest(op, input, output)
  24507. return
  24508. }
  24509. // SearchTransitGatewayRoutes API operation for Amazon Elastic Compute Cloud.
  24510. //
  24511. // Searches for routes in the specified transit gateway route table.
  24512. //
  24513. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24514. // with awserr.Error's Code and Message methods to get detailed information about
  24515. // the error.
  24516. //
  24517. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24518. // API operation SearchTransitGatewayRoutes for usage and error information.
  24519. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SearchTransitGatewayRoutes
  24520. func (c *EC2) SearchTransitGatewayRoutes(input *SearchTransitGatewayRoutesInput) (*SearchTransitGatewayRoutesOutput, error) {
  24521. req, out := c.SearchTransitGatewayRoutesRequest(input)
  24522. return out, req.Send()
  24523. }
  24524. // SearchTransitGatewayRoutesWithContext is the same as SearchTransitGatewayRoutes with the addition of
  24525. // the ability to pass a context and additional request options.
  24526. //
  24527. // See SearchTransitGatewayRoutes for details on how to use this API operation.
  24528. //
  24529. // The context must be non-nil and will be used for request cancellation. If
  24530. // the context is nil a panic will occur. In the future the SDK may create
  24531. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24532. // for more information on using Contexts.
  24533. func (c *EC2) SearchTransitGatewayRoutesWithContext(ctx aws.Context, input *SearchTransitGatewayRoutesInput, opts ...request.Option) (*SearchTransitGatewayRoutesOutput, error) {
  24534. req, out := c.SearchTransitGatewayRoutesRequest(input)
  24535. req.SetContext(ctx)
  24536. req.ApplyOptions(opts...)
  24537. return out, req.Send()
  24538. }
  24539. const opStartInstances = "StartInstances"
  24540. // StartInstancesRequest generates a "aws/request.Request" representing the
  24541. // client's request for the StartInstances operation. The "output" return
  24542. // value will be populated with the request's response once the request completes
  24543. // successfully.
  24544. //
  24545. // Use "Send" method on the returned Request to send the API call to the service.
  24546. // the "output" return value is not valid until after Send returns without error.
  24547. //
  24548. // See StartInstances for more information on using the StartInstances
  24549. // API call, and error handling.
  24550. //
  24551. // This method is useful when you want to inject custom logic or configuration
  24552. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24553. //
  24554. //
  24555. // // Example sending a request using the StartInstancesRequest method.
  24556. // req, resp := client.StartInstancesRequest(params)
  24557. //
  24558. // err := req.Send()
  24559. // if err == nil { // resp is now filled
  24560. // fmt.Println(resp)
  24561. // }
  24562. //
  24563. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstances
  24564. func (c *EC2) StartInstancesRequest(input *StartInstancesInput) (req *request.Request, output *StartInstancesOutput) {
  24565. op := &request.Operation{
  24566. Name: opStartInstances,
  24567. HTTPMethod: "POST",
  24568. HTTPPath: "/",
  24569. }
  24570. if input == nil {
  24571. input = &StartInstancesInput{}
  24572. }
  24573. output = &StartInstancesOutput{}
  24574. req = c.newRequest(op, input, output)
  24575. return
  24576. }
  24577. // StartInstances API operation for Amazon Elastic Compute Cloud.
  24578. //
  24579. // Starts an Amazon EBS-backed instance that you've previously stopped.
  24580. //
  24581. // Instances that use Amazon EBS volumes as their root devices can be quickly
  24582. // stopped and started. When an instance is stopped, the compute resources are
  24583. // released and you are not billed for instance usage. However, your root partition
  24584. // Amazon EBS volume remains and continues to persist your data, and you are
  24585. // charged for Amazon EBS volume usage. You can restart your instance at any
  24586. // time. Every time you start your Windows instance, Amazon EC2 charges you
  24587. // for a full instance hour. If you stop and restart your Windows instance,
  24588. // a new instance hour begins and Amazon EC2 charges you for another full instance
  24589. // hour even if you are still within the same 60-minute period when it was stopped.
  24590. // Every time you start your Linux instance, Amazon EC2 charges a one-minute
  24591. // minimum for instance usage, and thereafter charges per second for instance
  24592. // usage.
  24593. //
  24594. // Before stopping an instance, make sure it is in a state from which it can
  24595. // be restarted. Stopping an instance does not preserve data stored in RAM.
  24596. //
  24597. // Performing this operation on an instance that uses an instance store as its
  24598. // root device returns an error.
  24599. //
  24600. // For more information, see Stopping Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html)
  24601. // in the Amazon Elastic Compute Cloud User Guide.
  24602. //
  24603. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24604. // with awserr.Error's Code and Message methods to get detailed information about
  24605. // the error.
  24606. //
  24607. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24608. // API operation StartInstances for usage and error information.
  24609. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstances
  24610. func (c *EC2) StartInstances(input *StartInstancesInput) (*StartInstancesOutput, error) {
  24611. req, out := c.StartInstancesRequest(input)
  24612. return out, req.Send()
  24613. }
  24614. // StartInstancesWithContext is the same as StartInstances with the addition of
  24615. // the ability to pass a context and additional request options.
  24616. //
  24617. // See StartInstances for details on how to use this API operation.
  24618. //
  24619. // The context must be non-nil and will be used for request cancellation. If
  24620. // the context is nil a panic will occur. In the future the SDK may create
  24621. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24622. // for more information on using Contexts.
  24623. func (c *EC2) StartInstancesWithContext(ctx aws.Context, input *StartInstancesInput, opts ...request.Option) (*StartInstancesOutput, error) {
  24624. req, out := c.StartInstancesRequest(input)
  24625. req.SetContext(ctx)
  24626. req.ApplyOptions(opts...)
  24627. return out, req.Send()
  24628. }
  24629. const opStopInstances = "StopInstances"
  24630. // StopInstancesRequest generates a "aws/request.Request" representing the
  24631. // client's request for the StopInstances operation. The "output" return
  24632. // value will be populated with the request's response once the request completes
  24633. // successfully.
  24634. //
  24635. // Use "Send" method on the returned Request to send the API call to the service.
  24636. // the "output" return value is not valid until after Send returns without error.
  24637. //
  24638. // See StopInstances for more information on using the StopInstances
  24639. // API call, and error handling.
  24640. //
  24641. // This method is useful when you want to inject custom logic or configuration
  24642. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24643. //
  24644. //
  24645. // // Example sending a request using the StopInstancesRequest method.
  24646. // req, resp := client.StopInstancesRequest(params)
  24647. //
  24648. // err := req.Send()
  24649. // if err == nil { // resp is now filled
  24650. // fmt.Println(resp)
  24651. // }
  24652. //
  24653. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstances
  24654. func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Request, output *StopInstancesOutput) {
  24655. op := &request.Operation{
  24656. Name: opStopInstances,
  24657. HTTPMethod: "POST",
  24658. HTTPPath: "/",
  24659. }
  24660. if input == nil {
  24661. input = &StopInstancesInput{}
  24662. }
  24663. output = &StopInstancesOutput{}
  24664. req = c.newRequest(op, input, output)
  24665. return
  24666. }
  24667. // StopInstances API operation for Amazon Elastic Compute Cloud.
  24668. //
  24669. // Stops an Amazon EBS-backed instance.
  24670. //
  24671. // You can use the Stop action to hibernate an instance if the instance is enabled
  24672. // for hibernation (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#enabling-hibernation)
  24673. // and it meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites).
  24674. // For more information, see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  24675. // in the Amazon Elastic Compute Cloud User Guide.
  24676. //
  24677. // We don't charge usage for a stopped instance, or data transfer fees; however,
  24678. // your root partition Amazon EBS volume remains and continues to persist your
  24679. // data, and you are charged for Amazon EBS volume usage. Every time you start
  24680. // your Windows instance, Amazon EC2 charges you for a full instance hour. If
  24681. // you stop and restart your Windows instance, a new instance hour begins and
  24682. // Amazon EC2 charges you for another full instance hour even if you are still
  24683. // within the same 60-minute period when it was stopped. Every time you start
  24684. // your Linux instance, Amazon EC2 charges a one-minute minimum for instance
  24685. // usage, and thereafter charges per second for instance usage.
  24686. //
  24687. // You can't start, stop, or hibernate Spot Instances, and you can't stop or
  24688. // hibernate instance store-backed instances. For information about using hibernation
  24689. // for Spot Instances, see Hibernating Interrupted Spot Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html#hibernate-spot-instances)
  24690. // in the Amazon Elastic Compute Cloud User Guide.
  24691. //
  24692. // When you stop or hibernate an instance, we shut it down. You can restart
  24693. // your instance at any time. Before stopping or hibernating an instance, make
  24694. // sure it is in a state from which it can be restarted. Stopping an instance
  24695. // does not preserve data stored in RAM, but hibernating an instance does preserve
  24696. // data stored in RAM. If an instance cannot hibernate successfully, a normal
  24697. // shutdown occurs.
  24698. //
  24699. // Stopping and hibernating an instance is different to rebooting or terminating
  24700. // it. For example, when you stop or hibernate an instance, the root device
  24701. // and any other devices attached to the instance persist. When you terminate
  24702. // an instance, the root device and any other devices attached during the instance
  24703. // launch are automatically deleted. For more information about the differences
  24704. // between rebooting, stopping, hibernating, and terminating instances, see
  24705. // Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  24706. // in the Amazon Elastic Compute Cloud User Guide.
  24707. //
  24708. // When you stop an instance, we attempt to shut it down forcibly after a short
  24709. // while. If your instance appears stuck in the stopping state after a period
  24710. // of time, there may be an issue with the underlying host computer. For more
  24711. // information, see Troubleshooting Stopping Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html)
  24712. // in the Amazon Elastic Compute Cloud User Guide.
  24713. //
  24714. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24715. // with awserr.Error's Code and Message methods to get detailed information about
  24716. // the error.
  24717. //
  24718. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24719. // API operation StopInstances for usage and error information.
  24720. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstances
  24721. func (c *EC2) StopInstances(input *StopInstancesInput) (*StopInstancesOutput, error) {
  24722. req, out := c.StopInstancesRequest(input)
  24723. return out, req.Send()
  24724. }
  24725. // StopInstancesWithContext is the same as StopInstances with the addition of
  24726. // the ability to pass a context and additional request options.
  24727. //
  24728. // See StopInstances for details on how to use this API operation.
  24729. //
  24730. // The context must be non-nil and will be used for request cancellation. If
  24731. // the context is nil a panic will occur. In the future the SDK may create
  24732. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24733. // for more information on using Contexts.
  24734. func (c *EC2) StopInstancesWithContext(ctx aws.Context, input *StopInstancesInput, opts ...request.Option) (*StopInstancesOutput, error) {
  24735. req, out := c.StopInstancesRequest(input)
  24736. req.SetContext(ctx)
  24737. req.ApplyOptions(opts...)
  24738. return out, req.Send()
  24739. }
  24740. const opTerminateClientVpnConnections = "TerminateClientVpnConnections"
  24741. // TerminateClientVpnConnectionsRequest generates a "aws/request.Request" representing the
  24742. // client's request for the TerminateClientVpnConnections operation. The "output" return
  24743. // value will be populated with the request's response once the request completes
  24744. // successfully.
  24745. //
  24746. // Use "Send" method on the returned Request to send the API call to the service.
  24747. // the "output" return value is not valid until after Send returns without error.
  24748. //
  24749. // See TerminateClientVpnConnections for more information on using the TerminateClientVpnConnections
  24750. // API call, and error handling.
  24751. //
  24752. // This method is useful when you want to inject custom logic or configuration
  24753. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24754. //
  24755. //
  24756. // // Example sending a request using the TerminateClientVpnConnectionsRequest method.
  24757. // req, resp := client.TerminateClientVpnConnectionsRequest(params)
  24758. //
  24759. // err := req.Send()
  24760. // if err == nil { // resp is now filled
  24761. // fmt.Println(resp)
  24762. // }
  24763. //
  24764. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateClientVpnConnections
  24765. func (c *EC2) TerminateClientVpnConnectionsRequest(input *TerminateClientVpnConnectionsInput) (req *request.Request, output *TerminateClientVpnConnectionsOutput) {
  24766. op := &request.Operation{
  24767. Name: opTerminateClientVpnConnections,
  24768. HTTPMethod: "POST",
  24769. HTTPPath: "/",
  24770. }
  24771. if input == nil {
  24772. input = &TerminateClientVpnConnectionsInput{}
  24773. }
  24774. output = &TerminateClientVpnConnectionsOutput{}
  24775. req = c.newRequest(op, input, output)
  24776. return
  24777. }
  24778. // TerminateClientVpnConnections API operation for Amazon Elastic Compute Cloud.
  24779. //
  24780. // Terminates active Client VPN endpoint connections. This action can be used
  24781. // to terminate a specific client connection, or up to five connections established
  24782. // by a specific user.
  24783. //
  24784. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24785. // with awserr.Error's Code and Message methods to get detailed information about
  24786. // the error.
  24787. //
  24788. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24789. // API operation TerminateClientVpnConnections for usage and error information.
  24790. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateClientVpnConnections
  24791. func (c *EC2) TerminateClientVpnConnections(input *TerminateClientVpnConnectionsInput) (*TerminateClientVpnConnectionsOutput, error) {
  24792. req, out := c.TerminateClientVpnConnectionsRequest(input)
  24793. return out, req.Send()
  24794. }
  24795. // TerminateClientVpnConnectionsWithContext is the same as TerminateClientVpnConnections with the addition of
  24796. // the ability to pass a context and additional request options.
  24797. //
  24798. // See TerminateClientVpnConnections for details on how to use this API operation.
  24799. //
  24800. // The context must be non-nil and will be used for request cancellation. If
  24801. // the context is nil a panic will occur. In the future the SDK may create
  24802. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24803. // for more information on using Contexts.
  24804. func (c *EC2) TerminateClientVpnConnectionsWithContext(ctx aws.Context, input *TerminateClientVpnConnectionsInput, opts ...request.Option) (*TerminateClientVpnConnectionsOutput, error) {
  24805. req, out := c.TerminateClientVpnConnectionsRequest(input)
  24806. req.SetContext(ctx)
  24807. req.ApplyOptions(opts...)
  24808. return out, req.Send()
  24809. }
  24810. const opTerminateInstances = "TerminateInstances"
  24811. // TerminateInstancesRequest generates a "aws/request.Request" representing the
  24812. // client's request for the TerminateInstances operation. The "output" return
  24813. // value will be populated with the request's response once the request completes
  24814. // successfully.
  24815. //
  24816. // Use "Send" method on the returned Request to send the API call to the service.
  24817. // the "output" return value is not valid until after Send returns without error.
  24818. //
  24819. // See TerminateInstances for more information on using the TerminateInstances
  24820. // API call, and error handling.
  24821. //
  24822. // This method is useful when you want to inject custom logic or configuration
  24823. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24824. //
  24825. //
  24826. // // Example sending a request using the TerminateInstancesRequest method.
  24827. // req, resp := client.TerminateInstancesRequest(params)
  24828. //
  24829. // err := req.Send()
  24830. // if err == nil { // resp is now filled
  24831. // fmt.Println(resp)
  24832. // }
  24833. //
  24834. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstances
  24835. func (c *EC2) TerminateInstancesRequest(input *TerminateInstancesInput) (req *request.Request, output *TerminateInstancesOutput) {
  24836. op := &request.Operation{
  24837. Name: opTerminateInstances,
  24838. HTTPMethod: "POST",
  24839. HTTPPath: "/",
  24840. }
  24841. if input == nil {
  24842. input = &TerminateInstancesInput{}
  24843. }
  24844. output = &TerminateInstancesOutput{}
  24845. req = c.newRequest(op, input, output)
  24846. return
  24847. }
  24848. // TerminateInstances API operation for Amazon Elastic Compute Cloud.
  24849. //
  24850. // Shuts down one or more instances. This operation is idempotent; if you terminate
  24851. // an instance more than once, each call succeeds.
  24852. //
  24853. // If you specify multiple instances and the request fails (for example, because
  24854. // of a single incorrect instance ID), none of the instances are terminated.
  24855. //
  24856. // Terminated instances remain visible after termination (for approximately
  24857. // one hour).
  24858. //
  24859. // By default, Amazon EC2 deletes all EBS volumes that were attached when the
  24860. // instance launched. Volumes attached after instance launch continue running.
  24861. //
  24862. // You can stop, start, and terminate EBS-backed instances. You can only terminate
  24863. // instance store-backed instances. What happens to an instance differs if you
  24864. // stop it or terminate it. For example, when you stop an instance, the root
  24865. // device and any other devices attached to the instance persist. When you terminate
  24866. // an instance, any attached EBS volumes with the DeleteOnTermination block
  24867. // device mapping parameter set to true are automatically deleted. For more
  24868. // information about the differences between stopping and terminating instances,
  24869. // see Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  24870. // in the Amazon Elastic Compute Cloud User Guide.
  24871. //
  24872. // For more information about troubleshooting, see Troubleshooting Terminating
  24873. // Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesShuttingDown.html)
  24874. // in the Amazon Elastic Compute Cloud User Guide.
  24875. //
  24876. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24877. // with awserr.Error's Code and Message methods to get detailed information about
  24878. // the error.
  24879. //
  24880. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24881. // API operation TerminateInstances for usage and error information.
  24882. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstances
  24883. func (c *EC2) TerminateInstances(input *TerminateInstancesInput) (*TerminateInstancesOutput, error) {
  24884. req, out := c.TerminateInstancesRequest(input)
  24885. return out, req.Send()
  24886. }
  24887. // TerminateInstancesWithContext is the same as TerminateInstances with the addition of
  24888. // the ability to pass a context and additional request options.
  24889. //
  24890. // See TerminateInstances for details on how to use this API operation.
  24891. //
  24892. // The context must be non-nil and will be used for request cancellation. If
  24893. // the context is nil a panic will occur. In the future the SDK may create
  24894. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24895. // for more information on using Contexts.
  24896. func (c *EC2) TerminateInstancesWithContext(ctx aws.Context, input *TerminateInstancesInput, opts ...request.Option) (*TerminateInstancesOutput, error) {
  24897. req, out := c.TerminateInstancesRequest(input)
  24898. req.SetContext(ctx)
  24899. req.ApplyOptions(opts...)
  24900. return out, req.Send()
  24901. }
  24902. const opUnassignIpv6Addresses = "UnassignIpv6Addresses"
  24903. // UnassignIpv6AddressesRequest generates a "aws/request.Request" representing the
  24904. // client's request for the UnassignIpv6Addresses operation. The "output" return
  24905. // value will be populated with the request's response once the request completes
  24906. // successfully.
  24907. //
  24908. // Use "Send" method on the returned Request to send the API call to the service.
  24909. // the "output" return value is not valid until after Send returns without error.
  24910. //
  24911. // See UnassignIpv6Addresses for more information on using the UnassignIpv6Addresses
  24912. // API call, and error handling.
  24913. //
  24914. // This method is useful when you want to inject custom logic or configuration
  24915. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24916. //
  24917. //
  24918. // // Example sending a request using the UnassignIpv6AddressesRequest method.
  24919. // req, resp := client.UnassignIpv6AddressesRequest(params)
  24920. //
  24921. // err := req.Send()
  24922. // if err == nil { // resp is now filled
  24923. // fmt.Println(resp)
  24924. // }
  24925. //
  24926. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6Addresses
  24927. func (c *EC2) UnassignIpv6AddressesRequest(input *UnassignIpv6AddressesInput) (req *request.Request, output *UnassignIpv6AddressesOutput) {
  24928. op := &request.Operation{
  24929. Name: opUnassignIpv6Addresses,
  24930. HTTPMethod: "POST",
  24931. HTTPPath: "/",
  24932. }
  24933. if input == nil {
  24934. input = &UnassignIpv6AddressesInput{}
  24935. }
  24936. output = &UnassignIpv6AddressesOutput{}
  24937. req = c.newRequest(op, input, output)
  24938. return
  24939. }
  24940. // UnassignIpv6Addresses API operation for Amazon Elastic Compute Cloud.
  24941. //
  24942. // Unassigns one or more IPv6 addresses from a network interface.
  24943. //
  24944. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24945. // with awserr.Error's Code and Message methods to get detailed information about
  24946. // the error.
  24947. //
  24948. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24949. // API operation UnassignIpv6Addresses for usage and error information.
  24950. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6Addresses
  24951. func (c *EC2) UnassignIpv6Addresses(input *UnassignIpv6AddressesInput) (*UnassignIpv6AddressesOutput, error) {
  24952. req, out := c.UnassignIpv6AddressesRequest(input)
  24953. return out, req.Send()
  24954. }
  24955. // UnassignIpv6AddressesWithContext is the same as UnassignIpv6Addresses with the addition of
  24956. // the ability to pass a context and additional request options.
  24957. //
  24958. // See UnassignIpv6Addresses for details on how to use this API operation.
  24959. //
  24960. // The context must be non-nil and will be used for request cancellation. If
  24961. // the context is nil a panic will occur. In the future the SDK may create
  24962. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24963. // for more information on using Contexts.
  24964. func (c *EC2) UnassignIpv6AddressesWithContext(ctx aws.Context, input *UnassignIpv6AddressesInput, opts ...request.Option) (*UnassignIpv6AddressesOutput, error) {
  24965. req, out := c.UnassignIpv6AddressesRequest(input)
  24966. req.SetContext(ctx)
  24967. req.ApplyOptions(opts...)
  24968. return out, req.Send()
  24969. }
  24970. const opUnassignPrivateIpAddresses = "UnassignPrivateIpAddresses"
  24971. // UnassignPrivateIpAddressesRequest generates a "aws/request.Request" representing the
  24972. // client's request for the UnassignPrivateIpAddresses operation. The "output" return
  24973. // value will be populated with the request's response once the request completes
  24974. // successfully.
  24975. //
  24976. // Use "Send" method on the returned Request to send the API call to the service.
  24977. // the "output" return value is not valid until after Send returns without error.
  24978. //
  24979. // See UnassignPrivateIpAddresses for more information on using the UnassignPrivateIpAddresses
  24980. // API call, and error handling.
  24981. //
  24982. // This method is useful when you want to inject custom logic or configuration
  24983. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24984. //
  24985. //
  24986. // // Example sending a request using the UnassignPrivateIpAddressesRequest method.
  24987. // req, resp := client.UnassignPrivateIpAddressesRequest(params)
  24988. //
  24989. // err := req.Send()
  24990. // if err == nil { // resp is now filled
  24991. // fmt.Println(resp)
  24992. // }
  24993. //
  24994. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddresses
  24995. func (c *EC2) UnassignPrivateIpAddressesRequest(input *UnassignPrivateIpAddressesInput) (req *request.Request, output *UnassignPrivateIpAddressesOutput) {
  24996. op := &request.Operation{
  24997. Name: opUnassignPrivateIpAddresses,
  24998. HTTPMethod: "POST",
  24999. HTTPPath: "/",
  25000. }
  25001. if input == nil {
  25002. input = &UnassignPrivateIpAddressesInput{}
  25003. }
  25004. output = &UnassignPrivateIpAddressesOutput{}
  25005. req = c.newRequest(op, input, output)
  25006. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  25007. return
  25008. }
  25009. // UnassignPrivateIpAddresses API operation for Amazon Elastic Compute Cloud.
  25010. //
  25011. // Unassigns one or more secondary private IP addresses from a network interface.
  25012. //
  25013. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  25014. // with awserr.Error's Code and Message methods to get detailed information about
  25015. // the error.
  25016. //
  25017. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  25018. // API operation UnassignPrivateIpAddresses for usage and error information.
  25019. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddresses
  25020. func (c *EC2) UnassignPrivateIpAddresses(input *UnassignPrivateIpAddressesInput) (*UnassignPrivateIpAddressesOutput, error) {
  25021. req, out := c.UnassignPrivateIpAddressesRequest(input)
  25022. return out, req.Send()
  25023. }
  25024. // UnassignPrivateIpAddressesWithContext is the same as UnassignPrivateIpAddresses with the addition of
  25025. // the ability to pass a context and additional request options.
  25026. //
  25027. // See UnassignPrivateIpAddresses for details on how to use this API operation.
  25028. //
  25029. // The context must be non-nil and will be used for request cancellation. If
  25030. // the context is nil a panic will occur. In the future the SDK may create
  25031. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  25032. // for more information on using Contexts.
  25033. func (c *EC2) UnassignPrivateIpAddressesWithContext(ctx aws.Context, input *UnassignPrivateIpAddressesInput, opts ...request.Option) (*UnassignPrivateIpAddressesOutput, error) {
  25034. req, out := c.UnassignPrivateIpAddressesRequest(input)
  25035. req.SetContext(ctx)
  25036. req.ApplyOptions(opts...)
  25037. return out, req.Send()
  25038. }
  25039. const opUnmonitorInstances = "UnmonitorInstances"
  25040. // UnmonitorInstancesRequest generates a "aws/request.Request" representing the
  25041. // client's request for the UnmonitorInstances operation. The "output" return
  25042. // value will be populated with the request's response once the request completes
  25043. // successfully.
  25044. //
  25045. // Use "Send" method on the returned Request to send the API call to the service.
  25046. // the "output" return value is not valid until after Send returns without error.
  25047. //
  25048. // See UnmonitorInstances for more information on using the UnmonitorInstances
  25049. // API call, and error handling.
  25050. //
  25051. // This method is useful when you want to inject custom logic or configuration
  25052. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  25053. //
  25054. //
  25055. // // Example sending a request using the UnmonitorInstancesRequest method.
  25056. // req, resp := client.UnmonitorInstancesRequest(params)
  25057. //
  25058. // err := req.Send()
  25059. // if err == nil { // resp is now filled
  25060. // fmt.Println(resp)
  25061. // }
  25062. //
  25063. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstances
  25064. func (c *EC2) UnmonitorInstancesRequest(input *UnmonitorInstancesInput) (req *request.Request, output *UnmonitorInstancesOutput) {
  25065. op := &request.Operation{
  25066. Name: opUnmonitorInstances,
  25067. HTTPMethod: "POST",
  25068. HTTPPath: "/",
  25069. }
  25070. if input == nil {
  25071. input = &UnmonitorInstancesInput{}
  25072. }
  25073. output = &UnmonitorInstancesOutput{}
  25074. req = c.newRequest(op, input, output)
  25075. return
  25076. }
  25077. // UnmonitorInstances API operation for Amazon Elastic Compute Cloud.
  25078. //
  25079. // Disables detailed monitoring for a running instance. For more information,
  25080. // see Monitoring Your Instances and Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html)
  25081. // in the Amazon Elastic Compute Cloud User Guide.
  25082. //
  25083. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  25084. // with awserr.Error's Code and Message methods to get detailed information about
  25085. // the error.
  25086. //
  25087. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  25088. // API operation UnmonitorInstances for usage and error information.
  25089. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstances
  25090. func (c *EC2) UnmonitorInstances(input *UnmonitorInstancesInput) (*UnmonitorInstancesOutput, error) {
  25091. req, out := c.UnmonitorInstancesRequest(input)
  25092. return out, req.Send()
  25093. }
  25094. // UnmonitorInstancesWithContext is the same as UnmonitorInstances with the addition of
  25095. // the ability to pass a context and additional request options.
  25096. //
  25097. // See UnmonitorInstances for details on how to use this API operation.
  25098. //
  25099. // The context must be non-nil and will be used for request cancellation. If
  25100. // the context is nil a panic will occur. In the future the SDK may create
  25101. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  25102. // for more information on using Contexts.
  25103. func (c *EC2) UnmonitorInstancesWithContext(ctx aws.Context, input *UnmonitorInstancesInput, opts ...request.Option) (*UnmonitorInstancesOutput, error) {
  25104. req, out := c.UnmonitorInstancesRequest(input)
  25105. req.SetContext(ctx)
  25106. req.ApplyOptions(opts...)
  25107. return out, req.Send()
  25108. }
  25109. const opUpdateSecurityGroupRuleDescriptionsEgress = "UpdateSecurityGroupRuleDescriptionsEgress"
  25110. // UpdateSecurityGroupRuleDescriptionsEgressRequest generates a "aws/request.Request" representing the
  25111. // client's request for the UpdateSecurityGroupRuleDescriptionsEgress operation. The "output" return
  25112. // value will be populated with the request's response once the request completes
  25113. // successfully.
  25114. //
  25115. // Use "Send" method on the returned Request to send the API call to the service.
  25116. // the "output" return value is not valid until after Send returns without error.
  25117. //
  25118. // See UpdateSecurityGroupRuleDescriptionsEgress for more information on using the UpdateSecurityGroupRuleDescriptionsEgress
  25119. // API call, and error handling.
  25120. //
  25121. // This method is useful when you want to inject custom logic or configuration
  25122. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  25123. //
  25124. //
  25125. // // Example sending a request using the UpdateSecurityGroupRuleDescriptionsEgressRequest method.
  25126. // req, resp := client.UpdateSecurityGroupRuleDescriptionsEgressRequest(params)
  25127. //
  25128. // err := req.Send()
  25129. // if err == nil { // resp is now filled
  25130. // fmt.Println(resp)
  25131. // }
  25132. //
  25133. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsEgress
  25134. func (c *EC2) UpdateSecurityGroupRuleDescriptionsEgressRequest(input *UpdateSecurityGroupRuleDescriptionsEgressInput) (req *request.Request, output *UpdateSecurityGroupRuleDescriptionsEgressOutput) {
  25135. op := &request.Operation{
  25136. Name: opUpdateSecurityGroupRuleDescriptionsEgress,
  25137. HTTPMethod: "POST",
  25138. HTTPPath: "/",
  25139. }
  25140. if input == nil {
  25141. input = &UpdateSecurityGroupRuleDescriptionsEgressInput{}
  25142. }
  25143. output = &UpdateSecurityGroupRuleDescriptionsEgressOutput{}
  25144. req = c.newRequest(op, input, output)
  25145. return
  25146. }
  25147. // UpdateSecurityGroupRuleDescriptionsEgress API operation for Amazon Elastic Compute Cloud.
  25148. //
  25149. // [EC2-VPC only] Updates the description of an egress (outbound) security group
  25150. // rule. You can replace an existing description, or add a description to a
  25151. // rule that did not have one previously.
  25152. //
  25153. // You specify the description as part of the IP permissions structure. You
  25154. // can remove a description for a security group rule by omitting the description
  25155. // parameter in the request.
  25156. //
  25157. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  25158. // with awserr.Error's Code and Message methods to get detailed information about
  25159. // the error.
  25160. //
  25161. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  25162. // API operation UpdateSecurityGroupRuleDescriptionsEgress for usage and error information.
  25163. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsEgress
  25164. func (c *EC2) UpdateSecurityGroupRuleDescriptionsEgress(input *UpdateSecurityGroupRuleDescriptionsEgressInput) (*UpdateSecurityGroupRuleDescriptionsEgressOutput, error) {
  25165. req, out := c.UpdateSecurityGroupRuleDescriptionsEgressRequest(input)
  25166. return out, req.Send()
  25167. }
  25168. // UpdateSecurityGroupRuleDescriptionsEgressWithContext is the same as UpdateSecurityGroupRuleDescriptionsEgress with the addition of
  25169. // the ability to pass a context and additional request options.
  25170. //
  25171. // See UpdateSecurityGroupRuleDescriptionsEgress for details on how to use this API operation.
  25172. //
  25173. // The context must be non-nil and will be used for request cancellation. If
  25174. // the context is nil a panic will occur. In the future the SDK may create
  25175. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  25176. // for more information on using Contexts.
  25177. func (c *EC2) UpdateSecurityGroupRuleDescriptionsEgressWithContext(ctx aws.Context, input *UpdateSecurityGroupRuleDescriptionsEgressInput, opts ...request.Option) (*UpdateSecurityGroupRuleDescriptionsEgressOutput, error) {
  25178. req, out := c.UpdateSecurityGroupRuleDescriptionsEgressRequest(input)
  25179. req.SetContext(ctx)
  25180. req.ApplyOptions(opts...)
  25181. return out, req.Send()
  25182. }
  25183. const opUpdateSecurityGroupRuleDescriptionsIngress = "UpdateSecurityGroupRuleDescriptionsIngress"
  25184. // UpdateSecurityGroupRuleDescriptionsIngressRequest generates a "aws/request.Request" representing the
  25185. // client's request for the UpdateSecurityGroupRuleDescriptionsIngress operation. The "output" return
  25186. // value will be populated with the request's response once the request completes
  25187. // successfully.
  25188. //
  25189. // Use "Send" method on the returned Request to send the API call to the service.
  25190. // the "output" return value is not valid until after Send returns without error.
  25191. //
  25192. // See UpdateSecurityGroupRuleDescriptionsIngress for more information on using the UpdateSecurityGroupRuleDescriptionsIngress
  25193. // API call, and error handling.
  25194. //
  25195. // This method is useful when you want to inject custom logic or configuration
  25196. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  25197. //
  25198. //
  25199. // // Example sending a request using the UpdateSecurityGroupRuleDescriptionsIngressRequest method.
  25200. // req, resp := client.UpdateSecurityGroupRuleDescriptionsIngressRequest(params)
  25201. //
  25202. // err := req.Send()
  25203. // if err == nil { // resp is now filled
  25204. // fmt.Println(resp)
  25205. // }
  25206. //
  25207. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsIngress
  25208. func (c *EC2) UpdateSecurityGroupRuleDescriptionsIngressRequest(input *UpdateSecurityGroupRuleDescriptionsIngressInput) (req *request.Request, output *UpdateSecurityGroupRuleDescriptionsIngressOutput) {
  25209. op := &request.Operation{
  25210. Name: opUpdateSecurityGroupRuleDescriptionsIngress,
  25211. HTTPMethod: "POST",
  25212. HTTPPath: "/",
  25213. }
  25214. if input == nil {
  25215. input = &UpdateSecurityGroupRuleDescriptionsIngressInput{}
  25216. }
  25217. output = &UpdateSecurityGroupRuleDescriptionsIngressOutput{}
  25218. req = c.newRequest(op, input, output)
  25219. return
  25220. }
  25221. // UpdateSecurityGroupRuleDescriptionsIngress API operation for Amazon Elastic Compute Cloud.
  25222. //
  25223. // Updates the description of an ingress (inbound) security group rule. You
  25224. // can replace an existing description, or add a description to a rule that
  25225. // did not have one previously.
  25226. //
  25227. // You specify the description as part of the IP permissions structure. You
  25228. // can remove a description for a security group rule by omitting the description
  25229. // parameter in the request.
  25230. //
  25231. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  25232. // with awserr.Error's Code and Message methods to get detailed information about
  25233. // the error.
  25234. //
  25235. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  25236. // API operation UpdateSecurityGroupRuleDescriptionsIngress for usage and error information.
  25237. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsIngress
  25238. func (c *EC2) UpdateSecurityGroupRuleDescriptionsIngress(input *UpdateSecurityGroupRuleDescriptionsIngressInput) (*UpdateSecurityGroupRuleDescriptionsIngressOutput, error) {
  25239. req, out := c.UpdateSecurityGroupRuleDescriptionsIngressRequest(input)
  25240. return out, req.Send()
  25241. }
  25242. // UpdateSecurityGroupRuleDescriptionsIngressWithContext is the same as UpdateSecurityGroupRuleDescriptionsIngress with the addition of
  25243. // the ability to pass a context and additional request options.
  25244. //
  25245. // See UpdateSecurityGroupRuleDescriptionsIngress for details on how to use this API operation.
  25246. //
  25247. // The context must be non-nil and will be used for request cancellation. If
  25248. // the context is nil a panic will occur. In the future the SDK may create
  25249. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  25250. // for more information on using Contexts.
  25251. func (c *EC2) UpdateSecurityGroupRuleDescriptionsIngressWithContext(ctx aws.Context, input *UpdateSecurityGroupRuleDescriptionsIngressInput, opts ...request.Option) (*UpdateSecurityGroupRuleDescriptionsIngressOutput, error) {
  25252. req, out := c.UpdateSecurityGroupRuleDescriptionsIngressRequest(input)
  25253. req.SetContext(ctx)
  25254. req.ApplyOptions(opts...)
  25255. return out, req.Send()
  25256. }
  25257. const opWithdrawByoipCidr = "WithdrawByoipCidr"
  25258. // WithdrawByoipCidrRequest generates a "aws/request.Request" representing the
  25259. // client's request for the WithdrawByoipCidr operation. The "output" return
  25260. // value will be populated with the request's response once the request completes
  25261. // successfully.
  25262. //
  25263. // Use "Send" method on the returned Request to send the API call to the service.
  25264. // the "output" return value is not valid until after Send returns without error.
  25265. //
  25266. // See WithdrawByoipCidr for more information on using the WithdrawByoipCidr
  25267. // API call, and error handling.
  25268. //
  25269. // This method is useful when you want to inject custom logic or configuration
  25270. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  25271. //
  25272. //
  25273. // // Example sending a request using the WithdrawByoipCidrRequest method.
  25274. // req, resp := client.WithdrawByoipCidrRequest(params)
  25275. //
  25276. // err := req.Send()
  25277. // if err == nil { // resp is now filled
  25278. // fmt.Println(resp)
  25279. // }
  25280. //
  25281. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/WithdrawByoipCidr
  25282. func (c *EC2) WithdrawByoipCidrRequest(input *WithdrawByoipCidrInput) (req *request.Request, output *WithdrawByoipCidrOutput) {
  25283. op := &request.Operation{
  25284. Name: opWithdrawByoipCidr,
  25285. HTTPMethod: "POST",
  25286. HTTPPath: "/",
  25287. }
  25288. if input == nil {
  25289. input = &WithdrawByoipCidrInput{}
  25290. }
  25291. output = &WithdrawByoipCidrOutput{}
  25292. req = c.newRequest(op, input, output)
  25293. return
  25294. }
  25295. // WithdrawByoipCidr API operation for Amazon Elastic Compute Cloud.
  25296. //
  25297. // Stops advertising an IPv4 address range that is provisioned as an address
  25298. // pool.
  25299. //
  25300. // You can perform this operation at most once every 10 seconds, even if you
  25301. // specify different address ranges each time.
  25302. //
  25303. // It can take a few minutes before traffic to the specified addresses stops
  25304. // routing to AWS because of BGP propagation delays.
  25305. //
  25306. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  25307. // with awserr.Error's Code and Message methods to get detailed information about
  25308. // the error.
  25309. //
  25310. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  25311. // API operation WithdrawByoipCidr for usage and error information.
  25312. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/WithdrawByoipCidr
  25313. func (c *EC2) WithdrawByoipCidr(input *WithdrawByoipCidrInput) (*WithdrawByoipCidrOutput, error) {
  25314. req, out := c.WithdrawByoipCidrRequest(input)
  25315. return out, req.Send()
  25316. }
  25317. // WithdrawByoipCidrWithContext is the same as WithdrawByoipCidr with the addition of
  25318. // the ability to pass a context and additional request options.
  25319. //
  25320. // See WithdrawByoipCidr for details on how to use this API operation.
  25321. //
  25322. // The context must be non-nil and will be used for request cancellation. If
  25323. // the context is nil a panic will occur. In the future the SDK may create
  25324. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  25325. // for more information on using Contexts.
  25326. func (c *EC2) WithdrawByoipCidrWithContext(ctx aws.Context, input *WithdrawByoipCidrInput, opts ...request.Option) (*WithdrawByoipCidrOutput, error) {
  25327. req, out := c.WithdrawByoipCidrRequest(input)
  25328. req.SetContext(ctx)
  25329. req.ApplyOptions(opts...)
  25330. return out, req.Send()
  25331. }
  25332. // Contains the parameters for accepting the quote.
  25333. type AcceptReservedInstancesExchangeQuoteInput struct {
  25334. _ struct{} `type:"structure"`
  25335. // Checks whether you have the required permissions for the action, without
  25336. // actually making the request, and provides an error response. If you have
  25337. // the required permissions, the error response is DryRunOperation. Otherwise,
  25338. // it is UnauthorizedOperation.
  25339. DryRun *bool `type:"boolean"`
  25340. // The IDs of the Convertible Reserved Instances to exchange for another Convertible
  25341. // Reserved Instance of the same or higher value.
  25342. //
  25343. // ReservedInstanceIds is a required field
  25344. ReservedInstanceIds []*string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"`
  25345. // The configuration of the target Convertible Reserved Instance to exchange
  25346. // for your current Convertible Reserved Instances.
  25347. TargetConfigurations []*TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"`
  25348. }
  25349. // String returns the string representation
  25350. func (s AcceptReservedInstancesExchangeQuoteInput) String() string {
  25351. return awsutil.Prettify(s)
  25352. }
  25353. // GoString returns the string representation
  25354. func (s AcceptReservedInstancesExchangeQuoteInput) GoString() string {
  25355. return s.String()
  25356. }
  25357. // Validate inspects the fields of the type to determine if they are valid.
  25358. func (s *AcceptReservedInstancesExchangeQuoteInput) Validate() error {
  25359. invalidParams := request.ErrInvalidParams{Context: "AcceptReservedInstancesExchangeQuoteInput"}
  25360. if s.ReservedInstanceIds == nil {
  25361. invalidParams.Add(request.NewErrParamRequired("ReservedInstanceIds"))
  25362. }
  25363. if s.TargetConfigurations != nil {
  25364. for i, v := range s.TargetConfigurations {
  25365. if v == nil {
  25366. continue
  25367. }
  25368. if err := v.Validate(); err != nil {
  25369. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetConfigurations", i), err.(request.ErrInvalidParams))
  25370. }
  25371. }
  25372. }
  25373. if invalidParams.Len() > 0 {
  25374. return invalidParams
  25375. }
  25376. return nil
  25377. }
  25378. // SetDryRun sets the DryRun field's value.
  25379. func (s *AcceptReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *AcceptReservedInstancesExchangeQuoteInput {
  25380. s.DryRun = &v
  25381. return s
  25382. }
  25383. // SetReservedInstanceIds sets the ReservedInstanceIds field's value.
  25384. func (s *AcceptReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *AcceptReservedInstancesExchangeQuoteInput {
  25385. s.ReservedInstanceIds = v
  25386. return s
  25387. }
  25388. // SetTargetConfigurations sets the TargetConfigurations field's value.
  25389. func (s *AcceptReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *AcceptReservedInstancesExchangeQuoteInput {
  25390. s.TargetConfigurations = v
  25391. return s
  25392. }
  25393. // The result of the exchange and whether it was successful.
  25394. type AcceptReservedInstancesExchangeQuoteOutput struct {
  25395. _ struct{} `type:"structure"`
  25396. // The ID of the successful exchange.
  25397. ExchangeId *string `locationName:"exchangeId" type:"string"`
  25398. }
  25399. // String returns the string representation
  25400. func (s AcceptReservedInstancesExchangeQuoteOutput) String() string {
  25401. return awsutil.Prettify(s)
  25402. }
  25403. // GoString returns the string representation
  25404. func (s AcceptReservedInstancesExchangeQuoteOutput) GoString() string {
  25405. return s.String()
  25406. }
  25407. // SetExchangeId sets the ExchangeId field's value.
  25408. func (s *AcceptReservedInstancesExchangeQuoteOutput) SetExchangeId(v string) *AcceptReservedInstancesExchangeQuoteOutput {
  25409. s.ExchangeId = &v
  25410. return s
  25411. }
  25412. type AcceptTransitGatewayVpcAttachmentInput struct {
  25413. _ struct{} `type:"structure"`
  25414. // Checks whether you have the required permissions for the action, without
  25415. // actually making the request, and provides an error response. If you have
  25416. // the required permissions, the error response is DryRunOperation. Otherwise,
  25417. // it is UnauthorizedOperation.
  25418. DryRun *bool `type:"boolean"`
  25419. // The ID of the attachment.
  25420. //
  25421. // TransitGatewayAttachmentId is a required field
  25422. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  25423. }
  25424. // String returns the string representation
  25425. func (s AcceptTransitGatewayVpcAttachmentInput) String() string {
  25426. return awsutil.Prettify(s)
  25427. }
  25428. // GoString returns the string representation
  25429. func (s AcceptTransitGatewayVpcAttachmentInput) GoString() string {
  25430. return s.String()
  25431. }
  25432. // Validate inspects the fields of the type to determine if they are valid.
  25433. func (s *AcceptTransitGatewayVpcAttachmentInput) Validate() error {
  25434. invalidParams := request.ErrInvalidParams{Context: "AcceptTransitGatewayVpcAttachmentInput"}
  25435. if s.TransitGatewayAttachmentId == nil {
  25436. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  25437. }
  25438. if invalidParams.Len() > 0 {
  25439. return invalidParams
  25440. }
  25441. return nil
  25442. }
  25443. // SetDryRun sets the DryRun field's value.
  25444. func (s *AcceptTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *AcceptTransitGatewayVpcAttachmentInput {
  25445. s.DryRun = &v
  25446. return s
  25447. }
  25448. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  25449. func (s *AcceptTransitGatewayVpcAttachmentInput) SetTransitGatewayAttachmentId(v string) *AcceptTransitGatewayVpcAttachmentInput {
  25450. s.TransitGatewayAttachmentId = &v
  25451. return s
  25452. }
  25453. type AcceptTransitGatewayVpcAttachmentOutput struct {
  25454. _ struct{} `type:"structure"`
  25455. // The VPC attachment.
  25456. TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
  25457. }
  25458. // String returns the string representation
  25459. func (s AcceptTransitGatewayVpcAttachmentOutput) String() string {
  25460. return awsutil.Prettify(s)
  25461. }
  25462. // GoString returns the string representation
  25463. func (s AcceptTransitGatewayVpcAttachmentOutput) GoString() string {
  25464. return s.String()
  25465. }
  25466. // SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value.
  25467. func (s *AcceptTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *AcceptTransitGatewayVpcAttachmentOutput {
  25468. s.TransitGatewayVpcAttachment = v
  25469. return s
  25470. }
  25471. type AcceptVpcEndpointConnectionsInput struct {
  25472. _ struct{} `type:"structure"`
  25473. // Checks whether you have the required permissions for the action, without
  25474. // actually making the request, and provides an error response. If you have
  25475. // the required permissions, the error response is DryRunOperation. Otherwise,
  25476. // it is UnauthorizedOperation.
  25477. DryRun *bool `type:"boolean"`
  25478. // The ID of the endpoint service.
  25479. //
  25480. // ServiceId is a required field
  25481. ServiceId *string `type:"string" required:"true"`
  25482. // The IDs of one or more interface VPC endpoints.
  25483. //
  25484. // VpcEndpointIds is a required field
  25485. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  25486. }
  25487. // String returns the string representation
  25488. func (s AcceptVpcEndpointConnectionsInput) String() string {
  25489. return awsutil.Prettify(s)
  25490. }
  25491. // GoString returns the string representation
  25492. func (s AcceptVpcEndpointConnectionsInput) GoString() string {
  25493. return s.String()
  25494. }
  25495. // Validate inspects the fields of the type to determine if they are valid.
  25496. func (s *AcceptVpcEndpointConnectionsInput) Validate() error {
  25497. invalidParams := request.ErrInvalidParams{Context: "AcceptVpcEndpointConnectionsInput"}
  25498. if s.ServiceId == nil {
  25499. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  25500. }
  25501. if s.VpcEndpointIds == nil {
  25502. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  25503. }
  25504. if invalidParams.Len() > 0 {
  25505. return invalidParams
  25506. }
  25507. return nil
  25508. }
  25509. // SetDryRun sets the DryRun field's value.
  25510. func (s *AcceptVpcEndpointConnectionsInput) SetDryRun(v bool) *AcceptVpcEndpointConnectionsInput {
  25511. s.DryRun = &v
  25512. return s
  25513. }
  25514. // SetServiceId sets the ServiceId field's value.
  25515. func (s *AcceptVpcEndpointConnectionsInput) SetServiceId(v string) *AcceptVpcEndpointConnectionsInput {
  25516. s.ServiceId = &v
  25517. return s
  25518. }
  25519. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  25520. func (s *AcceptVpcEndpointConnectionsInput) SetVpcEndpointIds(v []*string) *AcceptVpcEndpointConnectionsInput {
  25521. s.VpcEndpointIds = v
  25522. return s
  25523. }
  25524. type AcceptVpcEndpointConnectionsOutput struct {
  25525. _ struct{} `type:"structure"`
  25526. // Information about the interface endpoints that were not accepted, if applicable.
  25527. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  25528. }
  25529. // String returns the string representation
  25530. func (s AcceptVpcEndpointConnectionsOutput) String() string {
  25531. return awsutil.Prettify(s)
  25532. }
  25533. // GoString returns the string representation
  25534. func (s AcceptVpcEndpointConnectionsOutput) GoString() string {
  25535. return s.String()
  25536. }
  25537. // SetUnsuccessful sets the Unsuccessful field's value.
  25538. func (s *AcceptVpcEndpointConnectionsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *AcceptVpcEndpointConnectionsOutput {
  25539. s.Unsuccessful = v
  25540. return s
  25541. }
  25542. type AcceptVpcPeeringConnectionInput struct {
  25543. _ struct{} `type:"structure"`
  25544. // Checks whether you have the required permissions for the action, without
  25545. // actually making the request, and provides an error response. If you have
  25546. // the required permissions, the error response is DryRunOperation. Otherwise,
  25547. // it is UnauthorizedOperation.
  25548. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25549. // The ID of the VPC peering connection. You must specify this parameter in
  25550. // the request.
  25551. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  25552. }
  25553. // String returns the string representation
  25554. func (s AcceptVpcPeeringConnectionInput) String() string {
  25555. return awsutil.Prettify(s)
  25556. }
  25557. // GoString returns the string representation
  25558. func (s AcceptVpcPeeringConnectionInput) GoString() string {
  25559. return s.String()
  25560. }
  25561. // SetDryRun sets the DryRun field's value.
  25562. func (s *AcceptVpcPeeringConnectionInput) SetDryRun(v bool) *AcceptVpcPeeringConnectionInput {
  25563. s.DryRun = &v
  25564. return s
  25565. }
  25566. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  25567. func (s *AcceptVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *AcceptVpcPeeringConnectionInput {
  25568. s.VpcPeeringConnectionId = &v
  25569. return s
  25570. }
  25571. type AcceptVpcPeeringConnectionOutput struct {
  25572. _ struct{} `type:"structure"`
  25573. // Information about the VPC peering connection.
  25574. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
  25575. }
  25576. // String returns the string representation
  25577. func (s AcceptVpcPeeringConnectionOutput) String() string {
  25578. return awsutil.Prettify(s)
  25579. }
  25580. // GoString returns the string representation
  25581. func (s AcceptVpcPeeringConnectionOutput) GoString() string {
  25582. return s.String()
  25583. }
  25584. // SetVpcPeeringConnection sets the VpcPeeringConnection field's value.
  25585. func (s *AcceptVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *AcceptVpcPeeringConnectionOutput {
  25586. s.VpcPeeringConnection = v
  25587. return s
  25588. }
  25589. // Describes an account attribute.
  25590. type AccountAttribute struct {
  25591. _ struct{} `type:"structure"`
  25592. // The name of the account attribute.
  25593. AttributeName *string `locationName:"attributeName" type:"string"`
  25594. // One or more values for the account attribute.
  25595. AttributeValues []*AccountAttributeValue `locationName:"attributeValueSet" locationNameList:"item" type:"list"`
  25596. }
  25597. // String returns the string representation
  25598. func (s AccountAttribute) String() string {
  25599. return awsutil.Prettify(s)
  25600. }
  25601. // GoString returns the string representation
  25602. func (s AccountAttribute) GoString() string {
  25603. return s.String()
  25604. }
  25605. // SetAttributeName sets the AttributeName field's value.
  25606. func (s *AccountAttribute) SetAttributeName(v string) *AccountAttribute {
  25607. s.AttributeName = &v
  25608. return s
  25609. }
  25610. // SetAttributeValues sets the AttributeValues field's value.
  25611. func (s *AccountAttribute) SetAttributeValues(v []*AccountAttributeValue) *AccountAttribute {
  25612. s.AttributeValues = v
  25613. return s
  25614. }
  25615. // Describes a value of an account attribute.
  25616. type AccountAttributeValue struct {
  25617. _ struct{} `type:"structure"`
  25618. // The value of the attribute.
  25619. AttributeValue *string `locationName:"attributeValue" type:"string"`
  25620. }
  25621. // String returns the string representation
  25622. func (s AccountAttributeValue) String() string {
  25623. return awsutil.Prettify(s)
  25624. }
  25625. // GoString returns the string representation
  25626. func (s AccountAttributeValue) GoString() string {
  25627. return s.String()
  25628. }
  25629. // SetAttributeValue sets the AttributeValue field's value.
  25630. func (s *AccountAttributeValue) SetAttributeValue(v string) *AccountAttributeValue {
  25631. s.AttributeValue = &v
  25632. return s
  25633. }
  25634. // Describes a running instance in a Spot Fleet.
  25635. type ActiveInstance struct {
  25636. _ struct{} `type:"structure"`
  25637. // The health status of the instance. If the status of either the instance status
  25638. // check or the system status check is impaired, the health status of the instance
  25639. // is unhealthy. Otherwise, the health status is healthy.
  25640. InstanceHealth *string `locationName:"instanceHealth" type:"string" enum:"InstanceHealthStatus"`
  25641. // The ID of the instance.
  25642. InstanceId *string `locationName:"instanceId" type:"string"`
  25643. // The instance type.
  25644. InstanceType *string `locationName:"instanceType" type:"string"`
  25645. // The ID of the Spot Instance request.
  25646. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  25647. }
  25648. // String returns the string representation
  25649. func (s ActiveInstance) String() string {
  25650. return awsutil.Prettify(s)
  25651. }
  25652. // GoString returns the string representation
  25653. func (s ActiveInstance) GoString() string {
  25654. return s.String()
  25655. }
  25656. // SetInstanceHealth sets the InstanceHealth field's value.
  25657. func (s *ActiveInstance) SetInstanceHealth(v string) *ActiveInstance {
  25658. s.InstanceHealth = &v
  25659. return s
  25660. }
  25661. // SetInstanceId sets the InstanceId field's value.
  25662. func (s *ActiveInstance) SetInstanceId(v string) *ActiveInstance {
  25663. s.InstanceId = &v
  25664. return s
  25665. }
  25666. // SetInstanceType sets the InstanceType field's value.
  25667. func (s *ActiveInstance) SetInstanceType(v string) *ActiveInstance {
  25668. s.InstanceType = &v
  25669. return s
  25670. }
  25671. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  25672. func (s *ActiveInstance) SetSpotInstanceRequestId(v string) *ActiveInstance {
  25673. s.SpotInstanceRequestId = &v
  25674. return s
  25675. }
  25676. // Describes an Elastic IP address.
  25677. type Address struct {
  25678. _ struct{} `type:"structure"`
  25679. // The ID representing the allocation of the address for use with EC2-VPC.
  25680. AllocationId *string `locationName:"allocationId" type:"string"`
  25681. // The ID representing the association of the address with an instance in a
  25682. // VPC.
  25683. AssociationId *string `locationName:"associationId" type:"string"`
  25684. // Indicates whether this Elastic IP address is for use with instances in EC2-Classic
  25685. // (standard) or instances in a VPC (vpc).
  25686. Domain *string `locationName:"domain" type:"string" enum:"DomainType"`
  25687. // The ID of the instance that the address is associated with (if any).
  25688. InstanceId *string `locationName:"instanceId" type:"string"`
  25689. // The ID of the network interface.
  25690. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  25691. // The ID of the AWS account that owns the network interface.
  25692. NetworkInterfaceOwnerId *string `locationName:"networkInterfaceOwnerId" type:"string"`
  25693. // The private IP address associated with the Elastic IP address.
  25694. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  25695. // The Elastic IP address.
  25696. PublicIp *string `locationName:"publicIp" type:"string"`
  25697. // The ID of an address pool.
  25698. PublicIpv4Pool *string `locationName:"publicIpv4Pool" type:"string"`
  25699. // Any tags assigned to the Elastic IP address.
  25700. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  25701. }
  25702. // String returns the string representation
  25703. func (s Address) String() string {
  25704. return awsutil.Prettify(s)
  25705. }
  25706. // GoString returns the string representation
  25707. func (s Address) GoString() string {
  25708. return s.String()
  25709. }
  25710. // SetAllocationId sets the AllocationId field's value.
  25711. func (s *Address) SetAllocationId(v string) *Address {
  25712. s.AllocationId = &v
  25713. return s
  25714. }
  25715. // SetAssociationId sets the AssociationId field's value.
  25716. func (s *Address) SetAssociationId(v string) *Address {
  25717. s.AssociationId = &v
  25718. return s
  25719. }
  25720. // SetDomain sets the Domain field's value.
  25721. func (s *Address) SetDomain(v string) *Address {
  25722. s.Domain = &v
  25723. return s
  25724. }
  25725. // SetInstanceId sets the InstanceId field's value.
  25726. func (s *Address) SetInstanceId(v string) *Address {
  25727. s.InstanceId = &v
  25728. return s
  25729. }
  25730. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  25731. func (s *Address) SetNetworkInterfaceId(v string) *Address {
  25732. s.NetworkInterfaceId = &v
  25733. return s
  25734. }
  25735. // SetNetworkInterfaceOwnerId sets the NetworkInterfaceOwnerId field's value.
  25736. func (s *Address) SetNetworkInterfaceOwnerId(v string) *Address {
  25737. s.NetworkInterfaceOwnerId = &v
  25738. return s
  25739. }
  25740. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  25741. func (s *Address) SetPrivateIpAddress(v string) *Address {
  25742. s.PrivateIpAddress = &v
  25743. return s
  25744. }
  25745. // SetPublicIp sets the PublicIp field's value.
  25746. func (s *Address) SetPublicIp(v string) *Address {
  25747. s.PublicIp = &v
  25748. return s
  25749. }
  25750. // SetPublicIpv4Pool sets the PublicIpv4Pool field's value.
  25751. func (s *Address) SetPublicIpv4Pool(v string) *Address {
  25752. s.PublicIpv4Pool = &v
  25753. return s
  25754. }
  25755. // SetTags sets the Tags field's value.
  25756. func (s *Address) SetTags(v []*Tag) *Address {
  25757. s.Tags = v
  25758. return s
  25759. }
  25760. type AdvertiseByoipCidrInput struct {
  25761. _ struct{} `type:"structure"`
  25762. // The IPv4 address range, in CIDR notation.
  25763. //
  25764. // Cidr is a required field
  25765. Cidr *string `type:"string" required:"true"`
  25766. // Checks whether you have the required permissions for the action, without
  25767. // actually making the request, and provides an error response. If you have
  25768. // the required permissions, the error response is DryRunOperation. Otherwise,
  25769. // it is UnauthorizedOperation.
  25770. DryRun *bool `type:"boolean"`
  25771. }
  25772. // String returns the string representation
  25773. func (s AdvertiseByoipCidrInput) String() string {
  25774. return awsutil.Prettify(s)
  25775. }
  25776. // GoString returns the string representation
  25777. func (s AdvertiseByoipCidrInput) GoString() string {
  25778. return s.String()
  25779. }
  25780. // Validate inspects the fields of the type to determine if they are valid.
  25781. func (s *AdvertiseByoipCidrInput) Validate() error {
  25782. invalidParams := request.ErrInvalidParams{Context: "AdvertiseByoipCidrInput"}
  25783. if s.Cidr == nil {
  25784. invalidParams.Add(request.NewErrParamRequired("Cidr"))
  25785. }
  25786. if invalidParams.Len() > 0 {
  25787. return invalidParams
  25788. }
  25789. return nil
  25790. }
  25791. // SetCidr sets the Cidr field's value.
  25792. func (s *AdvertiseByoipCidrInput) SetCidr(v string) *AdvertiseByoipCidrInput {
  25793. s.Cidr = &v
  25794. return s
  25795. }
  25796. // SetDryRun sets the DryRun field's value.
  25797. func (s *AdvertiseByoipCidrInput) SetDryRun(v bool) *AdvertiseByoipCidrInput {
  25798. s.DryRun = &v
  25799. return s
  25800. }
  25801. type AdvertiseByoipCidrOutput struct {
  25802. _ struct{} `type:"structure"`
  25803. // Information about the address range.
  25804. ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"`
  25805. }
  25806. // String returns the string representation
  25807. func (s AdvertiseByoipCidrOutput) String() string {
  25808. return awsutil.Prettify(s)
  25809. }
  25810. // GoString returns the string representation
  25811. func (s AdvertiseByoipCidrOutput) GoString() string {
  25812. return s.String()
  25813. }
  25814. // SetByoipCidr sets the ByoipCidr field's value.
  25815. func (s *AdvertiseByoipCidrOutput) SetByoipCidr(v *ByoipCidr) *AdvertiseByoipCidrOutput {
  25816. s.ByoipCidr = v
  25817. return s
  25818. }
  25819. type AllocateAddressInput struct {
  25820. _ struct{} `type:"structure"`
  25821. // [EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address
  25822. // pool.
  25823. Address *string `type:"string"`
  25824. // Set to vpc to allocate the address for use with instances in a VPC.
  25825. //
  25826. // Default: The address is for use with instances in EC2-Classic.
  25827. Domain *string `type:"string" enum:"DomainType"`
  25828. // Checks whether you have the required permissions for the action, without
  25829. // actually making the request, and provides an error response. If you have
  25830. // the required permissions, the error response is DryRunOperation. Otherwise,
  25831. // it is UnauthorizedOperation.
  25832. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25833. // The ID of an address pool that you own. Use this parameter to let Amazon
  25834. // EC2 select an address from the address pool. To specify a specific address
  25835. // from the address pool, use the Address parameter instead.
  25836. PublicIpv4Pool *string `type:"string"`
  25837. }
  25838. // String returns the string representation
  25839. func (s AllocateAddressInput) String() string {
  25840. return awsutil.Prettify(s)
  25841. }
  25842. // GoString returns the string representation
  25843. func (s AllocateAddressInput) GoString() string {
  25844. return s.String()
  25845. }
  25846. // SetAddress sets the Address field's value.
  25847. func (s *AllocateAddressInput) SetAddress(v string) *AllocateAddressInput {
  25848. s.Address = &v
  25849. return s
  25850. }
  25851. // SetDomain sets the Domain field's value.
  25852. func (s *AllocateAddressInput) SetDomain(v string) *AllocateAddressInput {
  25853. s.Domain = &v
  25854. return s
  25855. }
  25856. // SetDryRun sets the DryRun field's value.
  25857. func (s *AllocateAddressInput) SetDryRun(v bool) *AllocateAddressInput {
  25858. s.DryRun = &v
  25859. return s
  25860. }
  25861. // SetPublicIpv4Pool sets the PublicIpv4Pool field's value.
  25862. func (s *AllocateAddressInput) SetPublicIpv4Pool(v string) *AllocateAddressInput {
  25863. s.PublicIpv4Pool = &v
  25864. return s
  25865. }
  25866. type AllocateAddressOutput struct {
  25867. _ struct{} `type:"structure"`
  25868. // [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic
  25869. // IP address for use with instances in a VPC.
  25870. AllocationId *string `locationName:"allocationId" type:"string"`
  25871. // Indicates whether this Elastic IP address is for use with instances in EC2-Classic
  25872. // (standard) or instances in a VPC (vpc).
  25873. Domain *string `locationName:"domain" type:"string" enum:"DomainType"`
  25874. // The Elastic IP address.
  25875. PublicIp *string `locationName:"publicIp" type:"string"`
  25876. // The ID of an address pool.
  25877. PublicIpv4Pool *string `locationName:"publicIpv4Pool" type:"string"`
  25878. }
  25879. // String returns the string representation
  25880. func (s AllocateAddressOutput) String() string {
  25881. return awsutil.Prettify(s)
  25882. }
  25883. // GoString returns the string representation
  25884. func (s AllocateAddressOutput) GoString() string {
  25885. return s.String()
  25886. }
  25887. // SetAllocationId sets the AllocationId field's value.
  25888. func (s *AllocateAddressOutput) SetAllocationId(v string) *AllocateAddressOutput {
  25889. s.AllocationId = &v
  25890. return s
  25891. }
  25892. // SetDomain sets the Domain field's value.
  25893. func (s *AllocateAddressOutput) SetDomain(v string) *AllocateAddressOutput {
  25894. s.Domain = &v
  25895. return s
  25896. }
  25897. // SetPublicIp sets the PublicIp field's value.
  25898. func (s *AllocateAddressOutput) SetPublicIp(v string) *AllocateAddressOutput {
  25899. s.PublicIp = &v
  25900. return s
  25901. }
  25902. // SetPublicIpv4Pool sets the PublicIpv4Pool field's value.
  25903. func (s *AllocateAddressOutput) SetPublicIpv4Pool(v string) *AllocateAddressOutput {
  25904. s.PublicIpv4Pool = &v
  25905. return s
  25906. }
  25907. type AllocateHostsInput struct {
  25908. _ struct{} `type:"structure"`
  25909. // This is enabled by default. This property allows instances to be automatically
  25910. // placed onto available Dedicated Hosts, when you are launching instances without
  25911. // specifying a host ID.
  25912. //
  25913. // Default: Enabled
  25914. AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"`
  25915. // The Availability Zone for the Dedicated Hosts.
  25916. //
  25917. // AvailabilityZone is a required field
  25918. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  25919. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  25920. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  25921. // in the Amazon Elastic Compute Cloud User Guide.
  25922. ClientToken *string `locationName:"clientToken" type:"string"`
  25923. // Specify the instance type for which to configure your Dedicated Hosts. When
  25924. // you specify the instance type, that is the only instance type that you can
  25925. // launch onto that host.
  25926. //
  25927. // InstanceType is a required field
  25928. InstanceType *string `locationName:"instanceType" type:"string" required:"true"`
  25929. // The number of Dedicated Hosts to allocate to your account with these parameters.
  25930. //
  25931. // Quantity is a required field
  25932. Quantity *int64 `locationName:"quantity" type:"integer" required:"true"`
  25933. // The tags to apply to the Dedicated Host during creation.
  25934. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  25935. }
  25936. // String returns the string representation
  25937. func (s AllocateHostsInput) String() string {
  25938. return awsutil.Prettify(s)
  25939. }
  25940. // GoString returns the string representation
  25941. func (s AllocateHostsInput) GoString() string {
  25942. return s.String()
  25943. }
  25944. // Validate inspects the fields of the type to determine if they are valid.
  25945. func (s *AllocateHostsInput) Validate() error {
  25946. invalidParams := request.ErrInvalidParams{Context: "AllocateHostsInput"}
  25947. if s.AvailabilityZone == nil {
  25948. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  25949. }
  25950. if s.InstanceType == nil {
  25951. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  25952. }
  25953. if s.Quantity == nil {
  25954. invalidParams.Add(request.NewErrParamRequired("Quantity"))
  25955. }
  25956. if invalidParams.Len() > 0 {
  25957. return invalidParams
  25958. }
  25959. return nil
  25960. }
  25961. // SetAutoPlacement sets the AutoPlacement field's value.
  25962. func (s *AllocateHostsInput) SetAutoPlacement(v string) *AllocateHostsInput {
  25963. s.AutoPlacement = &v
  25964. return s
  25965. }
  25966. // SetAvailabilityZone sets the AvailabilityZone field's value.
  25967. func (s *AllocateHostsInput) SetAvailabilityZone(v string) *AllocateHostsInput {
  25968. s.AvailabilityZone = &v
  25969. return s
  25970. }
  25971. // SetClientToken sets the ClientToken field's value.
  25972. func (s *AllocateHostsInput) SetClientToken(v string) *AllocateHostsInput {
  25973. s.ClientToken = &v
  25974. return s
  25975. }
  25976. // SetInstanceType sets the InstanceType field's value.
  25977. func (s *AllocateHostsInput) SetInstanceType(v string) *AllocateHostsInput {
  25978. s.InstanceType = &v
  25979. return s
  25980. }
  25981. // SetQuantity sets the Quantity field's value.
  25982. func (s *AllocateHostsInput) SetQuantity(v int64) *AllocateHostsInput {
  25983. s.Quantity = &v
  25984. return s
  25985. }
  25986. // SetTagSpecifications sets the TagSpecifications field's value.
  25987. func (s *AllocateHostsInput) SetTagSpecifications(v []*TagSpecification) *AllocateHostsInput {
  25988. s.TagSpecifications = v
  25989. return s
  25990. }
  25991. // Contains the output of AllocateHosts.
  25992. type AllocateHostsOutput struct {
  25993. _ struct{} `type:"structure"`
  25994. // The ID of the allocated Dedicated Host. This is used to launch an instance
  25995. // onto a specific host.
  25996. HostIds []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  25997. }
  25998. // String returns the string representation
  25999. func (s AllocateHostsOutput) String() string {
  26000. return awsutil.Prettify(s)
  26001. }
  26002. // GoString returns the string representation
  26003. func (s AllocateHostsOutput) GoString() string {
  26004. return s.String()
  26005. }
  26006. // SetHostIds sets the HostIds field's value.
  26007. func (s *AllocateHostsOutput) SetHostIds(v []*string) *AllocateHostsOutput {
  26008. s.HostIds = v
  26009. return s
  26010. }
  26011. // Describes a principal.
  26012. type AllowedPrincipal struct {
  26013. _ struct{} `type:"structure"`
  26014. // The Amazon Resource Name (ARN) of the principal.
  26015. Principal *string `locationName:"principal" type:"string"`
  26016. // The type of principal.
  26017. PrincipalType *string `locationName:"principalType" type:"string" enum:"PrincipalType"`
  26018. }
  26019. // String returns the string representation
  26020. func (s AllowedPrincipal) String() string {
  26021. return awsutil.Prettify(s)
  26022. }
  26023. // GoString returns the string representation
  26024. func (s AllowedPrincipal) GoString() string {
  26025. return s.String()
  26026. }
  26027. // SetPrincipal sets the Principal field's value.
  26028. func (s *AllowedPrincipal) SetPrincipal(v string) *AllowedPrincipal {
  26029. s.Principal = &v
  26030. return s
  26031. }
  26032. // SetPrincipalType sets the PrincipalType field's value.
  26033. func (s *AllowedPrincipal) SetPrincipalType(v string) *AllowedPrincipal {
  26034. s.PrincipalType = &v
  26035. return s
  26036. }
  26037. type ApplySecurityGroupsToClientVpnTargetNetworkInput struct {
  26038. _ struct{} `type:"structure"`
  26039. // The ID of the Client VPN endpoint.
  26040. //
  26041. // ClientVpnEndpointId is a required field
  26042. ClientVpnEndpointId *string `type:"string" required:"true"`
  26043. // Checks whether you have the required permissions for the action, without
  26044. // actually making the request, and provides an error response. If you have
  26045. // the required permissions, the error response is DryRunOperation. Otherwise,
  26046. // it is UnauthorizedOperation.
  26047. DryRun *bool `type:"boolean"`
  26048. // The IDs of the security groups to apply to the associated target network.
  26049. // Up to 5 security groups can be applied to an associated target network.
  26050. //
  26051. // SecurityGroupIds is a required field
  26052. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list" required:"true"`
  26053. // The ID of the VPC in which the associated target network is located.
  26054. //
  26055. // VpcId is a required field
  26056. VpcId *string `type:"string" required:"true"`
  26057. }
  26058. // String returns the string representation
  26059. func (s ApplySecurityGroupsToClientVpnTargetNetworkInput) String() string {
  26060. return awsutil.Prettify(s)
  26061. }
  26062. // GoString returns the string representation
  26063. func (s ApplySecurityGroupsToClientVpnTargetNetworkInput) GoString() string {
  26064. return s.String()
  26065. }
  26066. // Validate inspects the fields of the type to determine if they are valid.
  26067. func (s *ApplySecurityGroupsToClientVpnTargetNetworkInput) Validate() error {
  26068. invalidParams := request.ErrInvalidParams{Context: "ApplySecurityGroupsToClientVpnTargetNetworkInput"}
  26069. if s.ClientVpnEndpointId == nil {
  26070. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  26071. }
  26072. if s.SecurityGroupIds == nil {
  26073. invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds"))
  26074. }
  26075. if s.VpcId == nil {
  26076. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  26077. }
  26078. if invalidParams.Len() > 0 {
  26079. return invalidParams
  26080. }
  26081. return nil
  26082. }
  26083. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  26084. func (s *ApplySecurityGroupsToClientVpnTargetNetworkInput) SetClientVpnEndpointId(v string) *ApplySecurityGroupsToClientVpnTargetNetworkInput {
  26085. s.ClientVpnEndpointId = &v
  26086. return s
  26087. }
  26088. // SetDryRun sets the DryRun field's value.
  26089. func (s *ApplySecurityGroupsToClientVpnTargetNetworkInput) SetDryRun(v bool) *ApplySecurityGroupsToClientVpnTargetNetworkInput {
  26090. s.DryRun = &v
  26091. return s
  26092. }
  26093. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  26094. func (s *ApplySecurityGroupsToClientVpnTargetNetworkInput) SetSecurityGroupIds(v []*string) *ApplySecurityGroupsToClientVpnTargetNetworkInput {
  26095. s.SecurityGroupIds = v
  26096. return s
  26097. }
  26098. // SetVpcId sets the VpcId field's value.
  26099. func (s *ApplySecurityGroupsToClientVpnTargetNetworkInput) SetVpcId(v string) *ApplySecurityGroupsToClientVpnTargetNetworkInput {
  26100. s.VpcId = &v
  26101. return s
  26102. }
  26103. type ApplySecurityGroupsToClientVpnTargetNetworkOutput struct {
  26104. _ struct{} `type:"structure"`
  26105. // The IDs of the applied security groups.
  26106. SecurityGroupIds []*string `locationName:"securityGroupIds" locationNameList:"item" type:"list"`
  26107. }
  26108. // String returns the string representation
  26109. func (s ApplySecurityGroupsToClientVpnTargetNetworkOutput) String() string {
  26110. return awsutil.Prettify(s)
  26111. }
  26112. // GoString returns the string representation
  26113. func (s ApplySecurityGroupsToClientVpnTargetNetworkOutput) GoString() string {
  26114. return s.String()
  26115. }
  26116. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  26117. func (s *ApplySecurityGroupsToClientVpnTargetNetworkOutput) SetSecurityGroupIds(v []*string) *ApplySecurityGroupsToClientVpnTargetNetworkOutput {
  26118. s.SecurityGroupIds = v
  26119. return s
  26120. }
  26121. type AssignIpv6AddressesInput struct {
  26122. _ struct{} `type:"structure"`
  26123. // The number of IPv6 addresses to assign to the network interface. Amazon EC2
  26124. // automatically selects the IPv6 addresses from the subnet range. You can't
  26125. // use this option if specifying specific IPv6 addresses.
  26126. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  26127. // One or more specific IPv6 addresses to be assigned to the network interface.
  26128. // You can't use this option if you're specifying a number of IPv6 addresses.
  26129. Ipv6Addresses []*string `locationName:"ipv6Addresses" locationNameList:"item" type:"list"`
  26130. // The ID of the network interface.
  26131. //
  26132. // NetworkInterfaceId is a required field
  26133. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  26134. }
  26135. // String returns the string representation
  26136. func (s AssignIpv6AddressesInput) String() string {
  26137. return awsutil.Prettify(s)
  26138. }
  26139. // GoString returns the string representation
  26140. func (s AssignIpv6AddressesInput) GoString() string {
  26141. return s.String()
  26142. }
  26143. // Validate inspects the fields of the type to determine if they are valid.
  26144. func (s *AssignIpv6AddressesInput) Validate() error {
  26145. invalidParams := request.ErrInvalidParams{Context: "AssignIpv6AddressesInput"}
  26146. if s.NetworkInterfaceId == nil {
  26147. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  26148. }
  26149. if invalidParams.Len() > 0 {
  26150. return invalidParams
  26151. }
  26152. return nil
  26153. }
  26154. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  26155. func (s *AssignIpv6AddressesInput) SetIpv6AddressCount(v int64) *AssignIpv6AddressesInput {
  26156. s.Ipv6AddressCount = &v
  26157. return s
  26158. }
  26159. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  26160. func (s *AssignIpv6AddressesInput) SetIpv6Addresses(v []*string) *AssignIpv6AddressesInput {
  26161. s.Ipv6Addresses = v
  26162. return s
  26163. }
  26164. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  26165. func (s *AssignIpv6AddressesInput) SetNetworkInterfaceId(v string) *AssignIpv6AddressesInput {
  26166. s.NetworkInterfaceId = &v
  26167. return s
  26168. }
  26169. type AssignIpv6AddressesOutput struct {
  26170. _ struct{} `type:"structure"`
  26171. // The IPv6 addresses assigned to the network interface.
  26172. AssignedIpv6Addresses []*string `locationName:"assignedIpv6Addresses" locationNameList:"item" type:"list"`
  26173. // The ID of the network interface.
  26174. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  26175. }
  26176. // String returns the string representation
  26177. func (s AssignIpv6AddressesOutput) String() string {
  26178. return awsutil.Prettify(s)
  26179. }
  26180. // GoString returns the string representation
  26181. func (s AssignIpv6AddressesOutput) GoString() string {
  26182. return s.String()
  26183. }
  26184. // SetAssignedIpv6Addresses sets the AssignedIpv6Addresses field's value.
  26185. func (s *AssignIpv6AddressesOutput) SetAssignedIpv6Addresses(v []*string) *AssignIpv6AddressesOutput {
  26186. s.AssignedIpv6Addresses = v
  26187. return s
  26188. }
  26189. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  26190. func (s *AssignIpv6AddressesOutput) SetNetworkInterfaceId(v string) *AssignIpv6AddressesOutput {
  26191. s.NetworkInterfaceId = &v
  26192. return s
  26193. }
  26194. // Contains the parameters for AssignPrivateIpAddresses.
  26195. type AssignPrivateIpAddressesInput struct {
  26196. _ struct{} `type:"structure"`
  26197. // Indicates whether to allow an IP address that is already assigned to another
  26198. // network interface or instance to be reassigned to the specified network interface.
  26199. AllowReassignment *bool `locationName:"allowReassignment" type:"boolean"`
  26200. // The ID of the network interface.
  26201. //
  26202. // NetworkInterfaceId is a required field
  26203. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  26204. // One or more IP addresses to be assigned as a secondary private IP address
  26205. // to the network interface. You can't specify this parameter when also specifying
  26206. // a number of secondary IP addresses.
  26207. //
  26208. // If you don't specify an IP address, Amazon EC2 automatically selects an IP
  26209. // address within the subnet range.
  26210. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list"`
  26211. // The number of secondary IP addresses to assign to the network interface.
  26212. // You can't specify this parameter when also specifying private IP addresses.
  26213. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  26214. }
  26215. // String returns the string representation
  26216. func (s AssignPrivateIpAddressesInput) String() string {
  26217. return awsutil.Prettify(s)
  26218. }
  26219. // GoString returns the string representation
  26220. func (s AssignPrivateIpAddressesInput) GoString() string {
  26221. return s.String()
  26222. }
  26223. // Validate inspects the fields of the type to determine if they are valid.
  26224. func (s *AssignPrivateIpAddressesInput) Validate() error {
  26225. invalidParams := request.ErrInvalidParams{Context: "AssignPrivateIpAddressesInput"}
  26226. if s.NetworkInterfaceId == nil {
  26227. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  26228. }
  26229. if invalidParams.Len() > 0 {
  26230. return invalidParams
  26231. }
  26232. return nil
  26233. }
  26234. // SetAllowReassignment sets the AllowReassignment field's value.
  26235. func (s *AssignPrivateIpAddressesInput) SetAllowReassignment(v bool) *AssignPrivateIpAddressesInput {
  26236. s.AllowReassignment = &v
  26237. return s
  26238. }
  26239. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  26240. func (s *AssignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *AssignPrivateIpAddressesInput {
  26241. s.NetworkInterfaceId = &v
  26242. return s
  26243. }
  26244. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  26245. func (s *AssignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *AssignPrivateIpAddressesInput {
  26246. s.PrivateIpAddresses = v
  26247. return s
  26248. }
  26249. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  26250. func (s *AssignPrivateIpAddressesInput) SetSecondaryPrivateIpAddressCount(v int64) *AssignPrivateIpAddressesInput {
  26251. s.SecondaryPrivateIpAddressCount = &v
  26252. return s
  26253. }
  26254. type AssignPrivateIpAddressesOutput struct {
  26255. _ struct{} `type:"structure"`
  26256. }
  26257. // String returns the string representation
  26258. func (s AssignPrivateIpAddressesOutput) String() string {
  26259. return awsutil.Prettify(s)
  26260. }
  26261. // GoString returns the string representation
  26262. func (s AssignPrivateIpAddressesOutput) GoString() string {
  26263. return s.String()
  26264. }
  26265. type AssociateAddressInput struct {
  26266. _ struct{} `type:"structure"`
  26267. // [EC2-VPC] The allocation ID. This is required for EC2-VPC.
  26268. AllocationId *string `type:"string"`
  26269. // [EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic
  26270. // IP address that is already associated with an instance or network interface
  26271. // to be reassociated with the specified instance or network interface. Otherwise,
  26272. // the operation fails. In a VPC in an EC2-VPC-only account, reassociation is
  26273. // automatic, therefore you can specify false to ensure the operation fails
  26274. // if the Elastic IP address is already associated with another resource.
  26275. AllowReassociation *bool `locationName:"allowReassociation" type:"boolean"`
  26276. // Checks whether you have the required permissions for the action, without
  26277. // actually making the request, and provides an error response. If you have
  26278. // the required permissions, the error response is DryRunOperation. Otherwise,
  26279. // it is UnauthorizedOperation.
  26280. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26281. // The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you
  26282. // can specify either the instance ID or the network interface ID, but not both.
  26283. // The operation fails if you specify an instance ID unless exactly one network
  26284. // interface is attached.
  26285. InstanceId *string `type:"string"`
  26286. // [EC2-VPC] The ID of the network interface. If the instance has more than
  26287. // one network interface, you must specify a network interface ID.
  26288. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  26289. // [EC2-VPC] The primary or secondary private IP address to associate with the
  26290. // Elastic IP address. If no private IP address is specified, the Elastic IP
  26291. // address is associated with the primary private IP address.
  26292. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  26293. // The Elastic IP address. This is required for EC2-Classic.
  26294. PublicIp *string `type:"string"`
  26295. }
  26296. // String returns the string representation
  26297. func (s AssociateAddressInput) String() string {
  26298. return awsutil.Prettify(s)
  26299. }
  26300. // GoString returns the string representation
  26301. func (s AssociateAddressInput) GoString() string {
  26302. return s.String()
  26303. }
  26304. // SetAllocationId sets the AllocationId field's value.
  26305. func (s *AssociateAddressInput) SetAllocationId(v string) *AssociateAddressInput {
  26306. s.AllocationId = &v
  26307. return s
  26308. }
  26309. // SetAllowReassociation sets the AllowReassociation field's value.
  26310. func (s *AssociateAddressInput) SetAllowReassociation(v bool) *AssociateAddressInput {
  26311. s.AllowReassociation = &v
  26312. return s
  26313. }
  26314. // SetDryRun sets the DryRun field's value.
  26315. func (s *AssociateAddressInput) SetDryRun(v bool) *AssociateAddressInput {
  26316. s.DryRun = &v
  26317. return s
  26318. }
  26319. // SetInstanceId sets the InstanceId field's value.
  26320. func (s *AssociateAddressInput) SetInstanceId(v string) *AssociateAddressInput {
  26321. s.InstanceId = &v
  26322. return s
  26323. }
  26324. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  26325. func (s *AssociateAddressInput) SetNetworkInterfaceId(v string) *AssociateAddressInput {
  26326. s.NetworkInterfaceId = &v
  26327. return s
  26328. }
  26329. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  26330. func (s *AssociateAddressInput) SetPrivateIpAddress(v string) *AssociateAddressInput {
  26331. s.PrivateIpAddress = &v
  26332. return s
  26333. }
  26334. // SetPublicIp sets the PublicIp field's value.
  26335. func (s *AssociateAddressInput) SetPublicIp(v string) *AssociateAddressInput {
  26336. s.PublicIp = &v
  26337. return s
  26338. }
  26339. type AssociateAddressOutput struct {
  26340. _ struct{} `type:"structure"`
  26341. // [EC2-VPC] The ID that represents the association of the Elastic IP address
  26342. // with an instance.
  26343. AssociationId *string `locationName:"associationId" type:"string"`
  26344. }
  26345. // String returns the string representation
  26346. func (s AssociateAddressOutput) String() string {
  26347. return awsutil.Prettify(s)
  26348. }
  26349. // GoString returns the string representation
  26350. func (s AssociateAddressOutput) GoString() string {
  26351. return s.String()
  26352. }
  26353. // SetAssociationId sets the AssociationId field's value.
  26354. func (s *AssociateAddressOutput) SetAssociationId(v string) *AssociateAddressOutput {
  26355. s.AssociationId = &v
  26356. return s
  26357. }
  26358. type AssociateClientVpnTargetNetworkInput struct {
  26359. _ struct{} `type:"structure"`
  26360. // The ID of the Client VPN endpoint.
  26361. //
  26362. // ClientVpnEndpointId is a required field
  26363. ClientVpnEndpointId *string `type:"string" required:"true"`
  26364. // Checks whether you have the required permissions for the action, without
  26365. // actually making the request, and provides an error response. If you have
  26366. // the required permissions, the error response is DryRunOperation. Otherwise,
  26367. // it is UnauthorizedOperation.
  26368. DryRun *bool `type:"boolean"`
  26369. // The ID of the subnet to associate with the Client VPN endpoint.
  26370. //
  26371. // SubnetId is a required field
  26372. SubnetId *string `type:"string" required:"true"`
  26373. }
  26374. // String returns the string representation
  26375. func (s AssociateClientVpnTargetNetworkInput) String() string {
  26376. return awsutil.Prettify(s)
  26377. }
  26378. // GoString returns the string representation
  26379. func (s AssociateClientVpnTargetNetworkInput) GoString() string {
  26380. return s.String()
  26381. }
  26382. // Validate inspects the fields of the type to determine if they are valid.
  26383. func (s *AssociateClientVpnTargetNetworkInput) Validate() error {
  26384. invalidParams := request.ErrInvalidParams{Context: "AssociateClientVpnTargetNetworkInput"}
  26385. if s.ClientVpnEndpointId == nil {
  26386. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  26387. }
  26388. if s.SubnetId == nil {
  26389. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  26390. }
  26391. if invalidParams.Len() > 0 {
  26392. return invalidParams
  26393. }
  26394. return nil
  26395. }
  26396. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  26397. func (s *AssociateClientVpnTargetNetworkInput) SetClientVpnEndpointId(v string) *AssociateClientVpnTargetNetworkInput {
  26398. s.ClientVpnEndpointId = &v
  26399. return s
  26400. }
  26401. // SetDryRun sets the DryRun field's value.
  26402. func (s *AssociateClientVpnTargetNetworkInput) SetDryRun(v bool) *AssociateClientVpnTargetNetworkInput {
  26403. s.DryRun = &v
  26404. return s
  26405. }
  26406. // SetSubnetId sets the SubnetId field's value.
  26407. func (s *AssociateClientVpnTargetNetworkInput) SetSubnetId(v string) *AssociateClientVpnTargetNetworkInput {
  26408. s.SubnetId = &v
  26409. return s
  26410. }
  26411. type AssociateClientVpnTargetNetworkOutput struct {
  26412. _ struct{} `type:"structure"`
  26413. // The unique ID of the target network association.
  26414. AssociationId *string `locationName:"associationId" type:"string"`
  26415. // The current state of the target network association.
  26416. Status *AssociationStatus `locationName:"status" type:"structure"`
  26417. }
  26418. // String returns the string representation
  26419. func (s AssociateClientVpnTargetNetworkOutput) String() string {
  26420. return awsutil.Prettify(s)
  26421. }
  26422. // GoString returns the string representation
  26423. func (s AssociateClientVpnTargetNetworkOutput) GoString() string {
  26424. return s.String()
  26425. }
  26426. // SetAssociationId sets the AssociationId field's value.
  26427. func (s *AssociateClientVpnTargetNetworkOutput) SetAssociationId(v string) *AssociateClientVpnTargetNetworkOutput {
  26428. s.AssociationId = &v
  26429. return s
  26430. }
  26431. // SetStatus sets the Status field's value.
  26432. func (s *AssociateClientVpnTargetNetworkOutput) SetStatus(v *AssociationStatus) *AssociateClientVpnTargetNetworkOutput {
  26433. s.Status = v
  26434. return s
  26435. }
  26436. type AssociateDhcpOptionsInput struct {
  26437. _ struct{} `type:"structure"`
  26438. // The ID of the DHCP options set, or default to associate no DHCP options with
  26439. // the VPC.
  26440. //
  26441. // DhcpOptionsId is a required field
  26442. DhcpOptionsId *string `type:"string" required:"true"`
  26443. // Checks whether you have the required permissions for the action, without
  26444. // actually making the request, and provides an error response. If you have
  26445. // the required permissions, the error response is DryRunOperation. Otherwise,
  26446. // it is UnauthorizedOperation.
  26447. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26448. // The ID of the VPC.
  26449. //
  26450. // VpcId is a required field
  26451. VpcId *string `type:"string" required:"true"`
  26452. }
  26453. // String returns the string representation
  26454. func (s AssociateDhcpOptionsInput) String() string {
  26455. return awsutil.Prettify(s)
  26456. }
  26457. // GoString returns the string representation
  26458. func (s AssociateDhcpOptionsInput) GoString() string {
  26459. return s.String()
  26460. }
  26461. // Validate inspects the fields of the type to determine if they are valid.
  26462. func (s *AssociateDhcpOptionsInput) Validate() error {
  26463. invalidParams := request.ErrInvalidParams{Context: "AssociateDhcpOptionsInput"}
  26464. if s.DhcpOptionsId == nil {
  26465. invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId"))
  26466. }
  26467. if s.VpcId == nil {
  26468. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  26469. }
  26470. if invalidParams.Len() > 0 {
  26471. return invalidParams
  26472. }
  26473. return nil
  26474. }
  26475. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  26476. func (s *AssociateDhcpOptionsInput) SetDhcpOptionsId(v string) *AssociateDhcpOptionsInput {
  26477. s.DhcpOptionsId = &v
  26478. return s
  26479. }
  26480. // SetDryRun sets the DryRun field's value.
  26481. func (s *AssociateDhcpOptionsInput) SetDryRun(v bool) *AssociateDhcpOptionsInput {
  26482. s.DryRun = &v
  26483. return s
  26484. }
  26485. // SetVpcId sets the VpcId field's value.
  26486. func (s *AssociateDhcpOptionsInput) SetVpcId(v string) *AssociateDhcpOptionsInput {
  26487. s.VpcId = &v
  26488. return s
  26489. }
  26490. type AssociateDhcpOptionsOutput struct {
  26491. _ struct{} `type:"structure"`
  26492. }
  26493. // String returns the string representation
  26494. func (s AssociateDhcpOptionsOutput) String() string {
  26495. return awsutil.Prettify(s)
  26496. }
  26497. // GoString returns the string representation
  26498. func (s AssociateDhcpOptionsOutput) GoString() string {
  26499. return s.String()
  26500. }
  26501. type AssociateIamInstanceProfileInput struct {
  26502. _ struct{} `type:"structure"`
  26503. // The IAM instance profile.
  26504. //
  26505. // IamInstanceProfile is a required field
  26506. IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"`
  26507. // The ID of the instance.
  26508. //
  26509. // InstanceId is a required field
  26510. InstanceId *string `type:"string" required:"true"`
  26511. }
  26512. // String returns the string representation
  26513. func (s AssociateIamInstanceProfileInput) String() string {
  26514. return awsutil.Prettify(s)
  26515. }
  26516. // GoString returns the string representation
  26517. func (s AssociateIamInstanceProfileInput) GoString() string {
  26518. return s.String()
  26519. }
  26520. // Validate inspects the fields of the type to determine if they are valid.
  26521. func (s *AssociateIamInstanceProfileInput) Validate() error {
  26522. invalidParams := request.ErrInvalidParams{Context: "AssociateIamInstanceProfileInput"}
  26523. if s.IamInstanceProfile == nil {
  26524. invalidParams.Add(request.NewErrParamRequired("IamInstanceProfile"))
  26525. }
  26526. if s.InstanceId == nil {
  26527. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  26528. }
  26529. if invalidParams.Len() > 0 {
  26530. return invalidParams
  26531. }
  26532. return nil
  26533. }
  26534. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  26535. func (s *AssociateIamInstanceProfileInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *AssociateIamInstanceProfileInput {
  26536. s.IamInstanceProfile = v
  26537. return s
  26538. }
  26539. // SetInstanceId sets the InstanceId field's value.
  26540. func (s *AssociateIamInstanceProfileInput) SetInstanceId(v string) *AssociateIamInstanceProfileInput {
  26541. s.InstanceId = &v
  26542. return s
  26543. }
  26544. type AssociateIamInstanceProfileOutput struct {
  26545. _ struct{} `type:"structure"`
  26546. // Information about the IAM instance profile association.
  26547. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  26548. }
  26549. // String returns the string representation
  26550. func (s AssociateIamInstanceProfileOutput) String() string {
  26551. return awsutil.Prettify(s)
  26552. }
  26553. // GoString returns the string representation
  26554. func (s AssociateIamInstanceProfileOutput) GoString() string {
  26555. return s.String()
  26556. }
  26557. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  26558. func (s *AssociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *AssociateIamInstanceProfileOutput {
  26559. s.IamInstanceProfileAssociation = v
  26560. return s
  26561. }
  26562. type AssociateRouteTableInput struct {
  26563. _ struct{} `type:"structure"`
  26564. // Checks whether you have the required permissions for the action, without
  26565. // actually making the request, and provides an error response. If you have
  26566. // the required permissions, the error response is DryRunOperation. Otherwise,
  26567. // it is UnauthorizedOperation.
  26568. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26569. // The ID of the route table.
  26570. //
  26571. // RouteTableId is a required field
  26572. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  26573. // The ID of the subnet.
  26574. //
  26575. // SubnetId is a required field
  26576. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  26577. }
  26578. // String returns the string representation
  26579. func (s AssociateRouteTableInput) String() string {
  26580. return awsutil.Prettify(s)
  26581. }
  26582. // GoString returns the string representation
  26583. func (s AssociateRouteTableInput) GoString() string {
  26584. return s.String()
  26585. }
  26586. // Validate inspects the fields of the type to determine if they are valid.
  26587. func (s *AssociateRouteTableInput) Validate() error {
  26588. invalidParams := request.ErrInvalidParams{Context: "AssociateRouteTableInput"}
  26589. if s.RouteTableId == nil {
  26590. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  26591. }
  26592. if s.SubnetId == nil {
  26593. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  26594. }
  26595. if invalidParams.Len() > 0 {
  26596. return invalidParams
  26597. }
  26598. return nil
  26599. }
  26600. // SetDryRun sets the DryRun field's value.
  26601. func (s *AssociateRouteTableInput) SetDryRun(v bool) *AssociateRouteTableInput {
  26602. s.DryRun = &v
  26603. return s
  26604. }
  26605. // SetRouteTableId sets the RouteTableId field's value.
  26606. func (s *AssociateRouteTableInput) SetRouteTableId(v string) *AssociateRouteTableInput {
  26607. s.RouteTableId = &v
  26608. return s
  26609. }
  26610. // SetSubnetId sets the SubnetId field's value.
  26611. func (s *AssociateRouteTableInput) SetSubnetId(v string) *AssociateRouteTableInput {
  26612. s.SubnetId = &v
  26613. return s
  26614. }
  26615. type AssociateRouteTableOutput struct {
  26616. _ struct{} `type:"structure"`
  26617. // The route table association ID. This ID is required for disassociating the
  26618. // route table.
  26619. AssociationId *string `locationName:"associationId" type:"string"`
  26620. }
  26621. // String returns the string representation
  26622. func (s AssociateRouteTableOutput) String() string {
  26623. return awsutil.Prettify(s)
  26624. }
  26625. // GoString returns the string representation
  26626. func (s AssociateRouteTableOutput) GoString() string {
  26627. return s.String()
  26628. }
  26629. // SetAssociationId sets the AssociationId field's value.
  26630. func (s *AssociateRouteTableOutput) SetAssociationId(v string) *AssociateRouteTableOutput {
  26631. s.AssociationId = &v
  26632. return s
  26633. }
  26634. type AssociateSubnetCidrBlockInput struct {
  26635. _ struct{} `type:"structure"`
  26636. // The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix length.
  26637. //
  26638. // Ipv6CidrBlock is a required field
  26639. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string" required:"true"`
  26640. // The ID of your subnet.
  26641. //
  26642. // SubnetId is a required field
  26643. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  26644. }
  26645. // String returns the string representation
  26646. func (s AssociateSubnetCidrBlockInput) String() string {
  26647. return awsutil.Prettify(s)
  26648. }
  26649. // GoString returns the string representation
  26650. func (s AssociateSubnetCidrBlockInput) GoString() string {
  26651. return s.String()
  26652. }
  26653. // Validate inspects the fields of the type to determine if they are valid.
  26654. func (s *AssociateSubnetCidrBlockInput) Validate() error {
  26655. invalidParams := request.ErrInvalidParams{Context: "AssociateSubnetCidrBlockInput"}
  26656. if s.Ipv6CidrBlock == nil {
  26657. invalidParams.Add(request.NewErrParamRequired("Ipv6CidrBlock"))
  26658. }
  26659. if s.SubnetId == nil {
  26660. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  26661. }
  26662. if invalidParams.Len() > 0 {
  26663. return invalidParams
  26664. }
  26665. return nil
  26666. }
  26667. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  26668. func (s *AssociateSubnetCidrBlockInput) SetIpv6CidrBlock(v string) *AssociateSubnetCidrBlockInput {
  26669. s.Ipv6CidrBlock = &v
  26670. return s
  26671. }
  26672. // SetSubnetId sets the SubnetId field's value.
  26673. func (s *AssociateSubnetCidrBlockInput) SetSubnetId(v string) *AssociateSubnetCidrBlockInput {
  26674. s.SubnetId = &v
  26675. return s
  26676. }
  26677. type AssociateSubnetCidrBlockOutput struct {
  26678. _ struct{} `type:"structure"`
  26679. // Information about the IPv6 CIDR block association.
  26680. Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  26681. // The ID of the subnet.
  26682. SubnetId *string `locationName:"subnetId" type:"string"`
  26683. }
  26684. // String returns the string representation
  26685. func (s AssociateSubnetCidrBlockOutput) String() string {
  26686. return awsutil.Prettify(s)
  26687. }
  26688. // GoString returns the string representation
  26689. func (s AssociateSubnetCidrBlockOutput) GoString() string {
  26690. return s.String()
  26691. }
  26692. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  26693. func (s *AssociateSubnetCidrBlockOutput) SetIpv6CidrBlockAssociation(v *SubnetIpv6CidrBlockAssociation) *AssociateSubnetCidrBlockOutput {
  26694. s.Ipv6CidrBlockAssociation = v
  26695. return s
  26696. }
  26697. // SetSubnetId sets the SubnetId field's value.
  26698. func (s *AssociateSubnetCidrBlockOutput) SetSubnetId(v string) *AssociateSubnetCidrBlockOutput {
  26699. s.SubnetId = &v
  26700. return s
  26701. }
  26702. type AssociateTransitGatewayRouteTableInput struct {
  26703. _ struct{} `type:"structure"`
  26704. // Checks whether you have the required permissions for the action, without
  26705. // actually making the request, and provides an error response. If you have
  26706. // the required permissions, the error response is DryRunOperation. Otherwise,
  26707. // it is UnauthorizedOperation.
  26708. DryRun *bool `type:"boolean"`
  26709. // The ID of the attachment.
  26710. //
  26711. // TransitGatewayAttachmentId is a required field
  26712. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  26713. // The ID of the transit gateway route table.
  26714. //
  26715. // TransitGatewayRouteTableId is a required field
  26716. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  26717. }
  26718. // String returns the string representation
  26719. func (s AssociateTransitGatewayRouteTableInput) String() string {
  26720. return awsutil.Prettify(s)
  26721. }
  26722. // GoString returns the string representation
  26723. func (s AssociateTransitGatewayRouteTableInput) GoString() string {
  26724. return s.String()
  26725. }
  26726. // Validate inspects the fields of the type to determine if they are valid.
  26727. func (s *AssociateTransitGatewayRouteTableInput) Validate() error {
  26728. invalidParams := request.ErrInvalidParams{Context: "AssociateTransitGatewayRouteTableInput"}
  26729. if s.TransitGatewayAttachmentId == nil {
  26730. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  26731. }
  26732. if s.TransitGatewayRouteTableId == nil {
  26733. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  26734. }
  26735. if invalidParams.Len() > 0 {
  26736. return invalidParams
  26737. }
  26738. return nil
  26739. }
  26740. // SetDryRun sets the DryRun field's value.
  26741. func (s *AssociateTransitGatewayRouteTableInput) SetDryRun(v bool) *AssociateTransitGatewayRouteTableInput {
  26742. s.DryRun = &v
  26743. return s
  26744. }
  26745. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  26746. func (s *AssociateTransitGatewayRouteTableInput) SetTransitGatewayAttachmentId(v string) *AssociateTransitGatewayRouteTableInput {
  26747. s.TransitGatewayAttachmentId = &v
  26748. return s
  26749. }
  26750. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  26751. func (s *AssociateTransitGatewayRouteTableInput) SetTransitGatewayRouteTableId(v string) *AssociateTransitGatewayRouteTableInput {
  26752. s.TransitGatewayRouteTableId = &v
  26753. return s
  26754. }
  26755. type AssociateTransitGatewayRouteTableOutput struct {
  26756. _ struct{} `type:"structure"`
  26757. // The ID of the association.
  26758. Association *TransitGatewayAssociation `locationName:"association" type:"structure"`
  26759. }
  26760. // String returns the string representation
  26761. func (s AssociateTransitGatewayRouteTableOutput) String() string {
  26762. return awsutil.Prettify(s)
  26763. }
  26764. // GoString returns the string representation
  26765. func (s AssociateTransitGatewayRouteTableOutput) GoString() string {
  26766. return s.String()
  26767. }
  26768. // SetAssociation sets the Association field's value.
  26769. func (s *AssociateTransitGatewayRouteTableOutput) SetAssociation(v *TransitGatewayAssociation) *AssociateTransitGatewayRouteTableOutput {
  26770. s.Association = v
  26771. return s
  26772. }
  26773. type AssociateVpcCidrBlockInput struct {
  26774. _ struct{} `type:"structure"`
  26775. // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for
  26776. // the VPC. You cannot specify the range of IPv6 addresses, or the size of the
  26777. // CIDR block.
  26778. AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"`
  26779. // An IPv4 CIDR block to associate with the VPC.
  26780. CidrBlock *string `type:"string"`
  26781. // The ID of the VPC.
  26782. //
  26783. // VpcId is a required field
  26784. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  26785. }
  26786. // String returns the string representation
  26787. func (s AssociateVpcCidrBlockInput) String() string {
  26788. return awsutil.Prettify(s)
  26789. }
  26790. // GoString returns the string representation
  26791. func (s AssociateVpcCidrBlockInput) GoString() string {
  26792. return s.String()
  26793. }
  26794. // Validate inspects the fields of the type to determine if they are valid.
  26795. func (s *AssociateVpcCidrBlockInput) Validate() error {
  26796. invalidParams := request.ErrInvalidParams{Context: "AssociateVpcCidrBlockInput"}
  26797. if s.VpcId == nil {
  26798. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  26799. }
  26800. if invalidParams.Len() > 0 {
  26801. return invalidParams
  26802. }
  26803. return nil
  26804. }
  26805. // SetAmazonProvidedIpv6CidrBlock sets the AmazonProvidedIpv6CidrBlock field's value.
  26806. func (s *AssociateVpcCidrBlockInput) SetAmazonProvidedIpv6CidrBlock(v bool) *AssociateVpcCidrBlockInput {
  26807. s.AmazonProvidedIpv6CidrBlock = &v
  26808. return s
  26809. }
  26810. // SetCidrBlock sets the CidrBlock field's value.
  26811. func (s *AssociateVpcCidrBlockInput) SetCidrBlock(v string) *AssociateVpcCidrBlockInput {
  26812. s.CidrBlock = &v
  26813. return s
  26814. }
  26815. // SetVpcId sets the VpcId field's value.
  26816. func (s *AssociateVpcCidrBlockInput) SetVpcId(v string) *AssociateVpcCidrBlockInput {
  26817. s.VpcId = &v
  26818. return s
  26819. }
  26820. type AssociateVpcCidrBlockOutput struct {
  26821. _ struct{} `type:"structure"`
  26822. // Information about the IPv4 CIDR block association.
  26823. CidrBlockAssociation *VpcCidrBlockAssociation `locationName:"cidrBlockAssociation" type:"structure"`
  26824. // Information about the IPv6 CIDR block association.
  26825. Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  26826. // The ID of the VPC.
  26827. VpcId *string `locationName:"vpcId" type:"string"`
  26828. }
  26829. // String returns the string representation
  26830. func (s AssociateVpcCidrBlockOutput) String() string {
  26831. return awsutil.Prettify(s)
  26832. }
  26833. // GoString returns the string representation
  26834. func (s AssociateVpcCidrBlockOutput) GoString() string {
  26835. return s.String()
  26836. }
  26837. // SetCidrBlockAssociation sets the CidrBlockAssociation field's value.
  26838. func (s *AssociateVpcCidrBlockOutput) SetCidrBlockAssociation(v *VpcCidrBlockAssociation) *AssociateVpcCidrBlockOutput {
  26839. s.CidrBlockAssociation = v
  26840. return s
  26841. }
  26842. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  26843. func (s *AssociateVpcCidrBlockOutput) SetIpv6CidrBlockAssociation(v *VpcIpv6CidrBlockAssociation) *AssociateVpcCidrBlockOutput {
  26844. s.Ipv6CidrBlockAssociation = v
  26845. return s
  26846. }
  26847. // SetVpcId sets the VpcId field's value.
  26848. func (s *AssociateVpcCidrBlockOutput) SetVpcId(v string) *AssociateVpcCidrBlockOutput {
  26849. s.VpcId = &v
  26850. return s
  26851. }
  26852. // Describes a target network that is associated with a Client VPN endpoint.
  26853. // A target network is a subnet in a VPC.
  26854. type AssociatedTargetNetwork struct {
  26855. _ struct{} `type:"structure"`
  26856. // The ID of the subnet.
  26857. NetworkId *string `locationName:"networkId" type:"string"`
  26858. // The target network type.
  26859. NetworkType *string `locationName:"networkType" type:"string" enum:"AssociatedNetworkType"`
  26860. }
  26861. // String returns the string representation
  26862. func (s AssociatedTargetNetwork) String() string {
  26863. return awsutil.Prettify(s)
  26864. }
  26865. // GoString returns the string representation
  26866. func (s AssociatedTargetNetwork) GoString() string {
  26867. return s.String()
  26868. }
  26869. // SetNetworkId sets the NetworkId field's value.
  26870. func (s *AssociatedTargetNetwork) SetNetworkId(v string) *AssociatedTargetNetwork {
  26871. s.NetworkId = &v
  26872. return s
  26873. }
  26874. // SetNetworkType sets the NetworkType field's value.
  26875. func (s *AssociatedTargetNetwork) SetNetworkType(v string) *AssociatedTargetNetwork {
  26876. s.NetworkType = &v
  26877. return s
  26878. }
  26879. // Describes the state of a target network association.
  26880. type AssociationStatus struct {
  26881. _ struct{} `type:"structure"`
  26882. // The state of the target network association.
  26883. Code *string `locationName:"code" type:"string" enum:"AssociationStatusCode"`
  26884. // A message about the status of the target network association, if applicable.
  26885. Message *string `locationName:"message" type:"string"`
  26886. }
  26887. // String returns the string representation
  26888. func (s AssociationStatus) String() string {
  26889. return awsutil.Prettify(s)
  26890. }
  26891. // GoString returns the string representation
  26892. func (s AssociationStatus) GoString() string {
  26893. return s.String()
  26894. }
  26895. // SetCode sets the Code field's value.
  26896. func (s *AssociationStatus) SetCode(v string) *AssociationStatus {
  26897. s.Code = &v
  26898. return s
  26899. }
  26900. // SetMessage sets the Message field's value.
  26901. func (s *AssociationStatus) SetMessage(v string) *AssociationStatus {
  26902. s.Message = &v
  26903. return s
  26904. }
  26905. type AttachClassicLinkVpcInput struct {
  26906. _ struct{} `type:"structure"`
  26907. // Checks whether you have the required permissions for the action, without
  26908. // actually making the request, and provides an error response. If you have
  26909. // the required permissions, the error response is DryRunOperation. Otherwise,
  26910. // it is UnauthorizedOperation.
  26911. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26912. // The ID of one or more of the VPC's security groups. You cannot specify security
  26913. // groups from a different VPC.
  26914. //
  26915. // Groups is a required field
  26916. Groups []*string `locationName:"SecurityGroupId" locationNameList:"groupId" type:"list" required:"true"`
  26917. // The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
  26918. //
  26919. // InstanceId is a required field
  26920. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  26921. // The ID of a ClassicLink-enabled VPC.
  26922. //
  26923. // VpcId is a required field
  26924. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  26925. }
  26926. // String returns the string representation
  26927. func (s AttachClassicLinkVpcInput) String() string {
  26928. return awsutil.Prettify(s)
  26929. }
  26930. // GoString returns the string representation
  26931. func (s AttachClassicLinkVpcInput) GoString() string {
  26932. return s.String()
  26933. }
  26934. // Validate inspects the fields of the type to determine if they are valid.
  26935. func (s *AttachClassicLinkVpcInput) Validate() error {
  26936. invalidParams := request.ErrInvalidParams{Context: "AttachClassicLinkVpcInput"}
  26937. if s.Groups == nil {
  26938. invalidParams.Add(request.NewErrParamRequired("Groups"))
  26939. }
  26940. if s.InstanceId == nil {
  26941. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  26942. }
  26943. if s.VpcId == nil {
  26944. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  26945. }
  26946. if invalidParams.Len() > 0 {
  26947. return invalidParams
  26948. }
  26949. return nil
  26950. }
  26951. // SetDryRun sets the DryRun field's value.
  26952. func (s *AttachClassicLinkVpcInput) SetDryRun(v bool) *AttachClassicLinkVpcInput {
  26953. s.DryRun = &v
  26954. return s
  26955. }
  26956. // SetGroups sets the Groups field's value.
  26957. func (s *AttachClassicLinkVpcInput) SetGroups(v []*string) *AttachClassicLinkVpcInput {
  26958. s.Groups = v
  26959. return s
  26960. }
  26961. // SetInstanceId sets the InstanceId field's value.
  26962. func (s *AttachClassicLinkVpcInput) SetInstanceId(v string) *AttachClassicLinkVpcInput {
  26963. s.InstanceId = &v
  26964. return s
  26965. }
  26966. // SetVpcId sets the VpcId field's value.
  26967. func (s *AttachClassicLinkVpcInput) SetVpcId(v string) *AttachClassicLinkVpcInput {
  26968. s.VpcId = &v
  26969. return s
  26970. }
  26971. type AttachClassicLinkVpcOutput struct {
  26972. _ struct{} `type:"structure"`
  26973. // Returns true if the request succeeds; otherwise, it returns an error.
  26974. Return *bool `locationName:"return" type:"boolean"`
  26975. }
  26976. // String returns the string representation
  26977. func (s AttachClassicLinkVpcOutput) String() string {
  26978. return awsutil.Prettify(s)
  26979. }
  26980. // GoString returns the string representation
  26981. func (s AttachClassicLinkVpcOutput) GoString() string {
  26982. return s.String()
  26983. }
  26984. // SetReturn sets the Return field's value.
  26985. func (s *AttachClassicLinkVpcOutput) SetReturn(v bool) *AttachClassicLinkVpcOutput {
  26986. s.Return = &v
  26987. return s
  26988. }
  26989. type AttachInternetGatewayInput struct {
  26990. _ struct{} `type:"structure"`
  26991. // Checks whether you have the required permissions for the action, without
  26992. // actually making the request, and provides an error response. If you have
  26993. // the required permissions, the error response is DryRunOperation. Otherwise,
  26994. // it is UnauthorizedOperation.
  26995. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26996. // The ID of the internet gateway.
  26997. //
  26998. // InternetGatewayId is a required field
  26999. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  27000. // The ID of the VPC.
  27001. //
  27002. // VpcId is a required field
  27003. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  27004. }
  27005. // String returns the string representation
  27006. func (s AttachInternetGatewayInput) String() string {
  27007. return awsutil.Prettify(s)
  27008. }
  27009. // GoString returns the string representation
  27010. func (s AttachInternetGatewayInput) GoString() string {
  27011. return s.String()
  27012. }
  27013. // Validate inspects the fields of the type to determine if they are valid.
  27014. func (s *AttachInternetGatewayInput) Validate() error {
  27015. invalidParams := request.ErrInvalidParams{Context: "AttachInternetGatewayInput"}
  27016. if s.InternetGatewayId == nil {
  27017. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  27018. }
  27019. if s.VpcId == nil {
  27020. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  27021. }
  27022. if invalidParams.Len() > 0 {
  27023. return invalidParams
  27024. }
  27025. return nil
  27026. }
  27027. // SetDryRun sets the DryRun field's value.
  27028. func (s *AttachInternetGatewayInput) SetDryRun(v bool) *AttachInternetGatewayInput {
  27029. s.DryRun = &v
  27030. return s
  27031. }
  27032. // SetInternetGatewayId sets the InternetGatewayId field's value.
  27033. func (s *AttachInternetGatewayInput) SetInternetGatewayId(v string) *AttachInternetGatewayInput {
  27034. s.InternetGatewayId = &v
  27035. return s
  27036. }
  27037. // SetVpcId sets the VpcId field's value.
  27038. func (s *AttachInternetGatewayInput) SetVpcId(v string) *AttachInternetGatewayInput {
  27039. s.VpcId = &v
  27040. return s
  27041. }
  27042. type AttachInternetGatewayOutput struct {
  27043. _ struct{} `type:"structure"`
  27044. }
  27045. // String returns the string representation
  27046. func (s AttachInternetGatewayOutput) String() string {
  27047. return awsutil.Prettify(s)
  27048. }
  27049. // GoString returns the string representation
  27050. func (s AttachInternetGatewayOutput) GoString() string {
  27051. return s.String()
  27052. }
  27053. // Contains the parameters for AttachNetworkInterface.
  27054. type AttachNetworkInterfaceInput struct {
  27055. _ struct{} `type:"structure"`
  27056. // The index of the device for the network interface attachment.
  27057. //
  27058. // DeviceIndex is a required field
  27059. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer" required:"true"`
  27060. // Checks whether you have the required permissions for the action, without
  27061. // actually making the request, and provides an error response. If you have
  27062. // the required permissions, the error response is DryRunOperation. Otherwise,
  27063. // it is UnauthorizedOperation.
  27064. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27065. // The ID of the instance.
  27066. //
  27067. // InstanceId is a required field
  27068. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  27069. // The ID of the network interface.
  27070. //
  27071. // NetworkInterfaceId is a required field
  27072. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  27073. }
  27074. // String returns the string representation
  27075. func (s AttachNetworkInterfaceInput) String() string {
  27076. return awsutil.Prettify(s)
  27077. }
  27078. // GoString returns the string representation
  27079. func (s AttachNetworkInterfaceInput) GoString() string {
  27080. return s.String()
  27081. }
  27082. // Validate inspects the fields of the type to determine if they are valid.
  27083. func (s *AttachNetworkInterfaceInput) Validate() error {
  27084. invalidParams := request.ErrInvalidParams{Context: "AttachNetworkInterfaceInput"}
  27085. if s.DeviceIndex == nil {
  27086. invalidParams.Add(request.NewErrParamRequired("DeviceIndex"))
  27087. }
  27088. if s.InstanceId == nil {
  27089. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  27090. }
  27091. if s.NetworkInterfaceId == nil {
  27092. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  27093. }
  27094. if invalidParams.Len() > 0 {
  27095. return invalidParams
  27096. }
  27097. return nil
  27098. }
  27099. // SetDeviceIndex sets the DeviceIndex field's value.
  27100. func (s *AttachNetworkInterfaceInput) SetDeviceIndex(v int64) *AttachNetworkInterfaceInput {
  27101. s.DeviceIndex = &v
  27102. return s
  27103. }
  27104. // SetDryRun sets the DryRun field's value.
  27105. func (s *AttachNetworkInterfaceInput) SetDryRun(v bool) *AttachNetworkInterfaceInput {
  27106. s.DryRun = &v
  27107. return s
  27108. }
  27109. // SetInstanceId sets the InstanceId field's value.
  27110. func (s *AttachNetworkInterfaceInput) SetInstanceId(v string) *AttachNetworkInterfaceInput {
  27111. s.InstanceId = &v
  27112. return s
  27113. }
  27114. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  27115. func (s *AttachNetworkInterfaceInput) SetNetworkInterfaceId(v string) *AttachNetworkInterfaceInput {
  27116. s.NetworkInterfaceId = &v
  27117. return s
  27118. }
  27119. // Contains the output of AttachNetworkInterface.
  27120. type AttachNetworkInterfaceOutput struct {
  27121. _ struct{} `type:"structure"`
  27122. // The ID of the network interface attachment.
  27123. AttachmentId *string `locationName:"attachmentId" type:"string"`
  27124. }
  27125. // String returns the string representation
  27126. func (s AttachNetworkInterfaceOutput) String() string {
  27127. return awsutil.Prettify(s)
  27128. }
  27129. // GoString returns the string representation
  27130. func (s AttachNetworkInterfaceOutput) GoString() string {
  27131. return s.String()
  27132. }
  27133. // SetAttachmentId sets the AttachmentId field's value.
  27134. func (s *AttachNetworkInterfaceOutput) SetAttachmentId(v string) *AttachNetworkInterfaceOutput {
  27135. s.AttachmentId = &v
  27136. return s
  27137. }
  27138. // Contains the parameters for AttachVolume.
  27139. type AttachVolumeInput struct {
  27140. _ struct{} `type:"structure"`
  27141. // The device name (for example, /dev/sdh or xvdh).
  27142. //
  27143. // Device is a required field
  27144. Device *string `type:"string" required:"true"`
  27145. // Checks whether you have the required permissions for the action, without
  27146. // actually making the request, and provides an error response. If you have
  27147. // the required permissions, the error response is DryRunOperation. Otherwise,
  27148. // it is UnauthorizedOperation.
  27149. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27150. // The ID of the instance.
  27151. //
  27152. // InstanceId is a required field
  27153. InstanceId *string `type:"string" required:"true"`
  27154. // The ID of the EBS volume. The volume and instance must be within the same
  27155. // Availability Zone.
  27156. //
  27157. // VolumeId is a required field
  27158. VolumeId *string `type:"string" required:"true"`
  27159. }
  27160. // String returns the string representation
  27161. func (s AttachVolumeInput) String() string {
  27162. return awsutil.Prettify(s)
  27163. }
  27164. // GoString returns the string representation
  27165. func (s AttachVolumeInput) GoString() string {
  27166. return s.String()
  27167. }
  27168. // Validate inspects the fields of the type to determine if they are valid.
  27169. func (s *AttachVolumeInput) Validate() error {
  27170. invalidParams := request.ErrInvalidParams{Context: "AttachVolumeInput"}
  27171. if s.Device == nil {
  27172. invalidParams.Add(request.NewErrParamRequired("Device"))
  27173. }
  27174. if s.InstanceId == nil {
  27175. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  27176. }
  27177. if s.VolumeId == nil {
  27178. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  27179. }
  27180. if invalidParams.Len() > 0 {
  27181. return invalidParams
  27182. }
  27183. return nil
  27184. }
  27185. // SetDevice sets the Device field's value.
  27186. func (s *AttachVolumeInput) SetDevice(v string) *AttachVolumeInput {
  27187. s.Device = &v
  27188. return s
  27189. }
  27190. // SetDryRun sets the DryRun field's value.
  27191. func (s *AttachVolumeInput) SetDryRun(v bool) *AttachVolumeInput {
  27192. s.DryRun = &v
  27193. return s
  27194. }
  27195. // SetInstanceId sets the InstanceId field's value.
  27196. func (s *AttachVolumeInput) SetInstanceId(v string) *AttachVolumeInput {
  27197. s.InstanceId = &v
  27198. return s
  27199. }
  27200. // SetVolumeId sets the VolumeId field's value.
  27201. func (s *AttachVolumeInput) SetVolumeId(v string) *AttachVolumeInput {
  27202. s.VolumeId = &v
  27203. return s
  27204. }
  27205. // Contains the parameters for AttachVpnGateway.
  27206. type AttachVpnGatewayInput struct {
  27207. _ struct{} `type:"structure"`
  27208. // Checks whether you have the required permissions for the action, without
  27209. // actually making the request, and provides an error response. If you have
  27210. // the required permissions, the error response is DryRunOperation. Otherwise,
  27211. // it is UnauthorizedOperation.
  27212. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27213. // The ID of the VPC.
  27214. //
  27215. // VpcId is a required field
  27216. VpcId *string `type:"string" required:"true"`
  27217. // The ID of the virtual private gateway.
  27218. //
  27219. // VpnGatewayId is a required field
  27220. VpnGatewayId *string `type:"string" required:"true"`
  27221. }
  27222. // String returns the string representation
  27223. func (s AttachVpnGatewayInput) String() string {
  27224. return awsutil.Prettify(s)
  27225. }
  27226. // GoString returns the string representation
  27227. func (s AttachVpnGatewayInput) GoString() string {
  27228. return s.String()
  27229. }
  27230. // Validate inspects the fields of the type to determine if they are valid.
  27231. func (s *AttachVpnGatewayInput) Validate() error {
  27232. invalidParams := request.ErrInvalidParams{Context: "AttachVpnGatewayInput"}
  27233. if s.VpcId == nil {
  27234. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  27235. }
  27236. if s.VpnGatewayId == nil {
  27237. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  27238. }
  27239. if invalidParams.Len() > 0 {
  27240. return invalidParams
  27241. }
  27242. return nil
  27243. }
  27244. // SetDryRun sets the DryRun field's value.
  27245. func (s *AttachVpnGatewayInput) SetDryRun(v bool) *AttachVpnGatewayInput {
  27246. s.DryRun = &v
  27247. return s
  27248. }
  27249. // SetVpcId sets the VpcId field's value.
  27250. func (s *AttachVpnGatewayInput) SetVpcId(v string) *AttachVpnGatewayInput {
  27251. s.VpcId = &v
  27252. return s
  27253. }
  27254. // SetVpnGatewayId sets the VpnGatewayId field's value.
  27255. func (s *AttachVpnGatewayInput) SetVpnGatewayId(v string) *AttachVpnGatewayInput {
  27256. s.VpnGatewayId = &v
  27257. return s
  27258. }
  27259. // Contains the output of AttachVpnGateway.
  27260. type AttachVpnGatewayOutput struct {
  27261. _ struct{} `type:"structure"`
  27262. // Information about the attachment.
  27263. VpcAttachment *VpcAttachment `locationName:"attachment" type:"structure"`
  27264. }
  27265. // String returns the string representation
  27266. func (s AttachVpnGatewayOutput) String() string {
  27267. return awsutil.Prettify(s)
  27268. }
  27269. // GoString returns the string representation
  27270. func (s AttachVpnGatewayOutput) GoString() string {
  27271. return s.String()
  27272. }
  27273. // SetVpcAttachment sets the VpcAttachment field's value.
  27274. func (s *AttachVpnGatewayOutput) SetVpcAttachment(v *VpcAttachment) *AttachVpnGatewayOutput {
  27275. s.VpcAttachment = v
  27276. return s
  27277. }
  27278. // Describes a value for a resource attribute that is a Boolean value.
  27279. type AttributeBooleanValue struct {
  27280. _ struct{} `type:"structure"`
  27281. // The attribute value. The valid values are true or false.
  27282. Value *bool `locationName:"value" type:"boolean"`
  27283. }
  27284. // String returns the string representation
  27285. func (s AttributeBooleanValue) String() string {
  27286. return awsutil.Prettify(s)
  27287. }
  27288. // GoString returns the string representation
  27289. func (s AttributeBooleanValue) GoString() string {
  27290. return s.String()
  27291. }
  27292. // SetValue sets the Value field's value.
  27293. func (s *AttributeBooleanValue) SetValue(v bool) *AttributeBooleanValue {
  27294. s.Value = &v
  27295. return s
  27296. }
  27297. // Describes a value for a resource attribute that is a String.
  27298. type AttributeValue struct {
  27299. _ struct{} `type:"structure"`
  27300. // The attribute value. The value is case-sensitive.
  27301. Value *string `locationName:"value" type:"string"`
  27302. }
  27303. // String returns the string representation
  27304. func (s AttributeValue) String() string {
  27305. return awsutil.Prettify(s)
  27306. }
  27307. // GoString returns the string representation
  27308. func (s AttributeValue) GoString() string {
  27309. return s.String()
  27310. }
  27311. // SetValue sets the Value field's value.
  27312. func (s *AttributeValue) SetValue(v string) *AttributeValue {
  27313. s.Value = &v
  27314. return s
  27315. }
  27316. // Information about an authorization rule.
  27317. type AuthorizationRule struct {
  27318. _ struct{} `type:"structure"`
  27319. // Indicates whether the authorization rule grants access to all clients.
  27320. AccessAll *bool `locationName:"accessAll" type:"boolean"`
  27321. // The ID of the Client VPN endpoint with which the authorization rule is associated.
  27322. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  27323. // A brief description of the authorization rule.
  27324. Description *string `locationName:"description" type:"string"`
  27325. // The IPv4 address range, in CIDR notation, of the network to which the authorization
  27326. // rule applies.
  27327. DestinationCidr *string `locationName:"destinationCidr" type:"string"`
  27328. // The ID of the Active Directory group to which the authorization rule grants
  27329. // access.
  27330. GroupId *string `locationName:"groupId" type:"string"`
  27331. // The current state of the authorization rule.
  27332. Status *ClientVpnAuthorizationRuleStatus `locationName:"status" type:"structure"`
  27333. }
  27334. // String returns the string representation
  27335. func (s AuthorizationRule) String() string {
  27336. return awsutil.Prettify(s)
  27337. }
  27338. // GoString returns the string representation
  27339. func (s AuthorizationRule) GoString() string {
  27340. return s.String()
  27341. }
  27342. // SetAccessAll sets the AccessAll field's value.
  27343. func (s *AuthorizationRule) SetAccessAll(v bool) *AuthorizationRule {
  27344. s.AccessAll = &v
  27345. return s
  27346. }
  27347. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  27348. func (s *AuthorizationRule) SetClientVpnEndpointId(v string) *AuthorizationRule {
  27349. s.ClientVpnEndpointId = &v
  27350. return s
  27351. }
  27352. // SetDescription sets the Description field's value.
  27353. func (s *AuthorizationRule) SetDescription(v string) *AuthorizationRule {
  27354. s.Description = &v
  27355. return s
  27356. }
  27357. // SetDestinationCidr sets the DestinationCidr field's value.
  27358. func (s *AuthorizationRule) SetDestinationCidr(v string) *AuthorizationRule {
  27359. s.DestinationCidr = &v
  27360. return s
  27361. }
  27362. // SetGroupId sets the GroupId field's value.
  27363. func (s *AuthorizationRule) SetGroupId(v string) *AuthorizationRule {
  27364. s.GroupId = &v
  27365. return s
  27366. }
  27367. // SetStatus sets the Status field's value.
  27368. func (s *AuthorizationRule) SetStatus(v *ClientVpnAuthorizationRuleStatus) *AuthorizationRule {
  27369. s.Status = v
  27370. return s
  27371. }
  27372. type AuthorizeClientVpnIngressInput struct {
  27373. _ struct{} `type:"structure"`
  27374. // The ID of the Active Directory group to grant access.
  27375. AccessGroupId *string `type:"string"`
  27376. // Indicates whether to grant access to all clients. Use true to grant all clients
  27377. // who successfully establish a VPN connection access to the network.
  27378. AuthorizeAllGroups *bool `type:"boolean"`
  27379. // The ID of the Client VPN endpoint.
  27380. //
  27381. // ClientVpnEndpointId is a required field
  27382. ClientVpnEndpointId *string `type:"string" required:"true"`
  27383. // A brief description of the authorization rule.
  27384. Description *string `type:"string"`
  27385. // Checks whether you have the required permissions for the action, without
  27386. // actually making the request, and provides an error response. If you have
  27387. // the required permissions, the error response is DryRunOperation. Otherwise,
  27388. // it is UnauthorizedOperation.
  27389. DryRun *bool `type:"boolean"`
  27390. // The IPv4 address range, in CIDR notation, of the network for which access
  27391. // is being authorized.
  27392. //
  27393. // TargetNetworkCidr is a required field
  27394. TargetNetworkCidr *string `type:"string" required:"true"`
  27395. }
  27396. // String returns the string representation
  27397. func (s AuthorizeClientVpnIngressInput) String() string {
  27398. return awsutil.Prettify(s)
  27399. }
  27400. // GoString returns the string representation
  27401. func (s AuthorizeClientVpnIngressInput) GoString() string {
  27402. return s.String()
  27403. }
  27404. // Validate inspects the fields of the type to determine if they are valid.
  27405. func (s *AuthorizeClientVpnIngressInput) Validate() error {
  27406. invalidParams := request.ErrInvalidParams{Context: "AuthorizeClientVpnIngressInput"}
  27407. if s.ClientVpnEndpointId == nil {
  27408. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  27409. }
  27410. if s.TargetNetworkCidr == nil {
  27411. invalidParams.Add(request.NewErrParamRequired("TargetNetworkCidr"))
  27412. }
  27413. if invalidParams.Len() > 0 {
  27414. return invalidParams
  27415. }
  27416. return nil
  27417. }
  27418. // SetAccessGroupId sets the AccessGroupId field's value.
  27419. func (s *AuthorizeClientVpnIngressInput) SetAccessGroupId(v string) *AuthorizeClientVpnIngressInput {
  27420. s.AccessGroupId = &v
  27421. return s
  27422. }
  27423. // SetAuthorizeAllGroups sets the AuthorizeAllGroups field's value.
  27424. func (s *AuthorizeClientVpnIngressInput) SetAuthorizeAllGroups(v bool) *AuthorizeClientVpnIngressInput {
  27425. s.AuthorizeAllGroups = &v
  27426. return s
  27427. }
  27428. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  27429. func (s *AuthorizeClientVpnIngressInput) SetClientVpnEndpointId(v string) *AuthorizeClientVpnIngressInput {
  27430. s.ClientVpnEndpointId = &v
  27431. return s
  27432. }
  27433. // SetDescription sets the Description field's value.
  27434. func (s *AuthorizeClientVpnIngressInput) SetDescription(v string) *AuthorizeClientVpnIngressInput {
  27435. s.Description = &v
  27436. return s
  27437. }
  27438. // SetDryRun sets the DryRun field's value.
  27439. func (s *AuthorizeClientVpnIngressInput) SetDryRun(v bool) *AuthorizeClientVpnIngressInput {
  27440. s.DryRun = &v
  27441. return s
  27442. }
  27443. // SetTargetNetworkCidr sets the TargetNetworkCidr field's value.
  27444. func (s *AuthorizeClientVpnIngressInput) SetTargetNetworkCidr(v string) *AuthorizeClientVpnIngressInput {
  27445. s.TargetNetworkCidr = &v
  27446. return s
  27447. }
  27448. type AuthorizeClientVpnIngressOutput struct {
  27449. _ struct{} `type:"structure"`
  27450. // The current state of the authorization rule.
  27451. Status *ClientVpnAuthorizationRuleStatus `locationName:"status" type:"structure"`
  27452. }
  27453. // String returns the string representation
  27454. func (s AuthorizeClientVpnIngressOutput) String() string {
  27455. return awsutil.Prettify(s)
  27456. }
  27457. // GoString returns the string representation
  27458. func (s AuthorizeClientVpnIngressOutput) GoString() string {
  27459. return s.String()
  27460. }
  27461. // SetStatus sets the Status field's value.
  27462. func (s *AuthorizeClientVpnIngressOutput) SetStatus(v *ClientVpnAuthorizationRuleStatus) *AuthorizeClientVpnIngressOutput {
  27463. s.Status = v
  27464. return s
  27465. }
  27466. type AuthorizeSecurityGroupEgressInput struct {
  27467. _ struct{} `type:"structure"`
  27468. // Not supported. Use a set of IP permissions to specify the CIDR.
  27469. CidrIp *string `locationName:"cidrIp" type:"string"`
  27470. // Checks whether you have the required permissions for the action, without
  27471. // actually making the request, and provides an error response. If you have
  27472. // the required permissions, the error response is DryRunOperation. Otherwise,
  27473. // it is UnauthorizedOperation.
  27474. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27475. // Not supported. Use a set of IP permissions to specify the port.
  27476. FromPort *int64 `locationName:"fromPort" type:"integer"`
  27477. // The ID of the security group.
  27478. //
  27479. // GroupId is a required field
  27480. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  27481. // One or more sets of IP permissions. You can't specify a destination security
  27482. // group and a CIDR IP address range in the same set of permissions.
  27483. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  27484. // Not supported. Use a set of IP permissions to specify the protocol name or
  27485. // number.
  27486. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  27487. // Not supported. Use a set of IP permissions to specify a destination security
  27488. // group.
  27489. SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`
  27490. // Not supported. Use a set of IP permissions to specify a destination security
  27491. // group.
  27492. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`
  27493. // Not supported. Use a set of IP permissions to specify the port.
  27494. ToPort *int64 `locationName:"toPort" type:"integer"`
  27495. }
  27496. // String returns the string representation
  27497. func (s AuthorizeSecurityGroupEgressInput) String() string {
  27498. return awsutil.Prettify(s)
  27499. }
  27500. // GoString returns the string representation
  27501. func (s AuthorizeSecurityGroupEgressInput) GoString() string {
  27502. return s.String()
  27503. }
  27504. // Validate inspects the fields of the type to determine if they are valid.
  27505. func (s *AuthorizeSecurityGroupEgressInput) Validate() error {
  27506. invalidParams := request.ErrInvalidParams{Context: "AuthorizeSecurityGroupEgressInput"}
  27507. if s.GroupId == nil {
  27508. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  27509. }
  27510. if invalidParams.Len() > 0 {
  27511. return invalidParams
  27512. }
  27513. return nil
  27514. }
  27515. // SetCidrIp sets the CidrIp field's value.
  27516. func (s *AuthorizeSecurityGroupEgressInput) SetCidrIp(v string) *AuthorizeSecurityGroupEgressInput {
  27517. s.CidrIp = &v
  27518. return s
  27519. }
  27520. // SetDryRun sets the DryRun field's value.
  27521. func (s *AuthorizeSecurityGroupEgressInput) SetDryRun(v bool) *AuthorizeSecurityGroupEgressInput {
  27522. s.DryRun = &v
  27523. return s
  27524. }
  27525. // SetFromPort sets the FromPort field's value.
  27526. func (s *AuthorizeSecurityGroupEgressInput) SetFromPort(v int64) *AuthorizeSecurityGroupEgressInput {
  27527. s.FromPort = &v
  27528. return s
  27529. }
  27530. // SetGroupId sets the GroupId field's value.
  27531. func (s *AuthorizeSecurityGroupEgressInput) SetGroupId(v string) *AuthorizeSecurityGroupEgressInput {
  27532. s.GroupId = &v
  27533. return s
  27534. }
  27535. // SetIpPermissions sets the IpPermissions field's value.
  27536. func (s *AuthorizeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupEgressInput {
  27537. s.IpPermissions = v
  27538. return s
  27539. }
  27540. // SetIpProtocol sets the IpProtocol field's value.
  27541. func (s *AuthorizeSecurityGroupEgressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupEgressInput {
  27542. s.IpProtocol = &v
  27543. return s
  27544. }
  27545. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  27546. func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupEgressInput {
  27547. s.SourceSecurityGroupName = &v
  27548. return s
  27549. }
  27550. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  27551. func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupEgressInput {
  27552. s.SourceSecurityGroupOwnerId = &v
  27553. return s
  27554. }
  27555. // SetToPort sets the ToPort field's value.
  27556. func (s *AuthorizeSecurityGroupEgressInput) SetToPort(v int64) *AuthorizeSecurityGroupEgressInput {
  27557. s.ToPort = &v
  27558. return s
  27559. }
  27560. type AuthorizeSecurityGroupEgressOutput struct {
  27561. _ struct{} `type:"structure"`
  27562. }
  27563. // String returns the string representation
  27564. func (s AuthorizeSecurityGroupEgressOutput) String() string {
  27565. return awsutil.Prettify(s)
  27566. }
  27567. // GoString returns the string representation
  27568. func (s AuthorizeSecurityGroupEgressOutput) GoString() string {
  27569. return s.String()
  27570. }
  27571. type AuthorizeSecurityGroupIngressInput struct {
  27572. _ struct{} `type:"structure"`
  27573. // The CIDR IPv4 address range. You can't specify this parameter when specifying
  27574. // a source security group.
  27575. CidrIp *string `type:"string"`
  27576. // Checks whether you have the required permissions for the action, without
  27577. // actually making the request, and provides an error response. If you have
  27578. // the required permissions, the error response is DryRunOperation. Otherwise,
  27579. // it is UnauthorizedOperation.
  27580. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27581. // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
  27582. // type number. For the ICMP/ICMPv6 type number, use -1 to specify all types.
  27583. // If you specify all ICMP/ICMPv6 types, you must specify all codes.
  27584. FromPort *int64 `type:"integer"`
  27585. // The ID of the security group. You must specify either the security group
  27586. // ID or the security group name in the request. For security groups in a nondefault
  27587. // VPC, you must specify the security group ID.
  27588. GroupId *string `type:"string"`
  27589. // [EC2-Classic, default VPC] The name of the security group. You must specify
  27590. // either the security group ID or the security group name in the request.
  27591. GroupName *string `type:"string"`
  27592. // One or more sets of IP permissions. Can be used to specify multiple rules
  27593. // in a single command.
  27594. IpPermissions []*IpPermission `locationNameList:"item" type:"list"`
  27595. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  27596. // (VPC only) Use -1 to specify all protocols. If you specify -1, or a protocol
  27597. // number other than tcp, udp, icmp, or 58 (ICMPv6), traffic on all ports is
  27598. // allowed, regardless of any ports you specify. For tcp, udp, and icmp, you
  27599. // must specify a port range. For protocol 58 (ICMPv6), you can optionally specify
  27600. // a port range; if you don't, traffic for all types and codes is allowed.
  27601. IpProtocol *string `type:"string"`
  27602. // [EC2-Classic, default VPC] The name of the source security group. You can't
  27603. // specify this parameter in combination with the following parameters: the
  27604. // CIDR IP address range, the start of the port range, the IP protocol, and
  27605. // the end of the port range. Creates rules that grant full ICMP, UDP, and TCP
  27606. // access. To create a rule with a specific IP protocol and port range, use
  27607. // a set of IP permissions instead. For EC2-VPC, the source security group must
  27608. // be in the same VPC.
  27609. SourceSecurityGroupName *string `type:"string"`
  27610. // [EC2-Classic] The AWS account ID for the source security group, if the source
  27611. // security group is in a different account. You can't specify this parameter
  27612. // in combination with the following parameters: the CIDR IP address range,
  27613. // the IP protocol, the start of the port range, and the end of the port range.
  27614. // Creates rules that grant full ICMP, UDP, and TCP access. To create a rule
  27615. // with a specific IP protocol and port range, use a set of IP permissions instead.
  27616. SourceSecurityGroupOwnerId *string `type:"string"`
  27617. // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code
  27618. // number. For the ICMP/ICMPv6 code number, use -1 to specify all codes. If
  27619. // you specify all ICMP/ICMPv6 types, you must specify all codes.
  27620. ToPort *int64 `type:"integer"`
  27621. }
  27622. // String returns the string representation
  27623. func (s AuthorizeSecurityGroupIngressInput) String() string {
  27624. return awsutil.Prettify(s)
  27625. }
  27626. // GoString returns the string representation
  27627. func (s AuthorizeSecurityGroupIngressInput) GoString() string {
  27628. return s.String()
  27629. }
  27630. // SetCidrIp sets the CidrIp field's value.
  27631. func (s *AuthorizeSecurityGroupIngressInput) SetCidrIp(v string) *AuthorizeSecurityGroupIngressInput {
  27632. s.CidrIp = &v
  27633. return s
  27634. }
  27635. // SetDryRun sets the DryRun field's value.
  27636. func (s *AuthorizeSecurityGroupIngressInput) SetDryRun(v bool) *AuthorizeSecurityGroupIngressInput {
  27637. s.DryRun = &v
  27638. return s
  27639. }
  27640. // SetFromPort sets the FromPort field's value.
  27641. func (s *AuthorizeSecurityGroupIngressInput) SetFromPort(v int64) *AuthorizeSecurityGroupIngressInput {
  27642. s.FromPort = &v
  27643. return s
  27644. }
  27645. // SetGroupId sets the GroupId field's value.
  27646. func (s *AuthorizeSecurityGroupIngressInput) SetGroupId(v string) *AuthorizeSecurityGroupIngressInput {
  27647. s.GroupId = &v
  27648. return s
  27649. }
  27650. // SetGroupName sets the GroupName field's value.
  27651. func (s *AuthorizeSecurityGroupIngressInput) SetGroupName(v string) *AuthorizeSecurityGroupIngressInput {
  27652. s.GroupName = &v
  27653. return s
  27654. }
  27655. // SetIpPermissions sets the IpPermissions field's value.
  27656. func (s *AuthorizeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupIngressInput {
  27657. s.IpPermissions = v
  27658. return s
  27659. }
  27660. // SetIpProtocol sets the IpProtocol field's value.
  27661. func (s *AuthorizeSecurityGroupIngressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupIngressInput {
  27662. s.IpProtocol = &v
  27663. return s
  27664. }
  27665. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  27666. func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupIngressInput {
  27667. s.SourceSecurityGroupName = &v
  27668. return s
  27669. }
  27670. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  27671. func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupIngressInput {
  27672. s.SourceSecurityGroupOwnerId = &v
  27673. return s
  27674. }
  27675. // SetToPort sets the ToPort field's value.
  27676. func (s *AuthorizeSecurityGroupIngressInput) SetToPort(v int64) *AuthorizeSecurityGroupIngressInput {
  27677. s.ToPort = &v
  27678. return s
  27679. }
  27680. type AuthorizeSecurityGroupIngressOutput struct {
  27681. _ struct{} `type:"structure"`
  27682. }
  27683. // String returns the string representation
  27684. func (s AuthorizeSecurityGroupIngressOutput) String() string {
  27685. return awsutil.Prettify(s)
  27686. }
  27687. // GoString returns the string representation
  27688. func (s AuthorizeSecurityGroupIngressOutput) GoString() string {
  27689. return s.String()
  27690. }
  27691. // Describes an Availability Zone.
  27692. type AvailabilityZone struct {
  27693. _ struct{} `type:"structure"`
  27694. // Any messages about the Availability Zone.
  27695. Messages []*AvailabilityZoneMessage `locationName:"messageSet" locationNameList:"item" type:"list"`
  27696. // The name of the region.
  27697. RegionName *string `locationName:"regionName" type:"string"`
  27698. // The state of the Availability Zone.
  27699. State *string `locationName:"zoneState" type:"string" enum:"AvailabilityZoneState"`
  27700. // The ID of the Availability Zone.
  27701. ZoneId *string `locationName:"zoneId" type:"string"`
  27702. // The name of the Availability Zone.
  27703. ZoneName *string `locationName:"zoneName" type:"string"`
  27704. }
  27705. // String returns the string representation
  27706. func (s AvailabilityZone) String() string {
  27707. return awsutil.Prettify(s)
  27708. }
  27709. // GoString returns the string representation
  27710. func (s AvailabilityZone) GoString() string {
  27711. return s.String()
  27712. }
  27713. // SetMessages sets the Messages field's value.
  27714. func (s *AvailabilityZone) SetMessages(v []*AvailabilityZoneMessage) *AvailabilityZone {
  27715. s.Messages = v
  27716. return s
  27717. }
  27718. // SetRegionName sets the RegionName field's value.
  27719. func (s *AvailabilityZone) SetRegionName(v string) *AvailabilityZone {
  27720. s.RegionName = &v
  27721. return s
  27722. }
  27723. // SetState sets the State field's value.
  27724. func (s *AvailabilityZone) SetState(v string) *AvailabilityZone {
  27725. s.State = &v
  27726. return s
  27727. }
  27728. // SetZoneId sets the ZoneId field's value.
  27729. func (s *AvailabilityZone) SetZoneId(v string) *AvailabilityZone {
  27730. s.ZoneId = &v
  27731. return s
  27732. }
  27733. // SetZoneName sets the ZoneName field's value.
  27734. func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone {
  27735. s.ZoneName = &v
  27736. return s
  27737. }
  27738. // Describes a message about an Availability Zone.
  27739. type AvailabilityZoneMessage struct {
  27740. _ struct{} `type:"structure"`
  27741. // The message about the Availability Zone.
  27742. Message *string `locationName:"message" type:"string"`
  27743. }
  27744. // String returns the string representation
  27745. func (s AvailabilityZoneMessage) String() string {
  27746. return awsutil.Prettify(s)
  27747. }
  27748. // GoString returns the string representation
  27749. func (s AvailabilityZoneMessage) GoString() string {
  27750. return s.String()
  27751. }
  27752. // SetMessage sets the Message field's value.
  27753. func (s *AvailabilityZoneMessage) SetMessage(v string) *AvailabilityZoneMessage {
  27754. s.Message = &v
  27755. return s
  27756. }
  27757. // The capacity information for instances launched onto the Dedicated Host.
  27758. type AvailableCapacity struct {
  27759. _ struct{} `type:"structure"`
  27760. // The total number of instances supported by the Dedicated Host.
  27761. AvailableInstanceCapacity []*InstanceCapacity `locationName:"availableInstanceCapacity" locationNameList:"item" type:"list"`
  27762. // The number of vCPUs available on the Dedicated Host.
  27763. AvailableVCpus *int64 `locationName:"availableVCpus" type:"integer"`
  27764. }
  27765. // String returns the string representation
  27766. func (s AvailableCapacity) String() string {
  27767. return awsutil.Prettify(s)
  27768. }
  27769. // GoString returns the string representation
  27770. func (s AvailableCapacity) GoString() string {
  27771. return s.String()
  27772. }
  27773. // SetAvailableInstanceCapacity sets the AvailableInstanceCapacity field's value.
  27774. func (s *AvailableCapacity) SetAvailableInstanceCapacity(v []*InstanceCapacity) *AvailableCapacity {
  27775. s.AvailableInstanceCapacity = v
  27776. return s
  27777. }
  27778. // SetAvailableVCpus sets the AvailableVCpus field's value.
  27779. func (s *AvailableCapacity) SetAvailableVCpus(v int64) *AvailableCapacity {
  27780. s.AvailableVCpus = &v
  27781. return s
  27782. }
  27783. type BlobAttributeValue struct {
  27784. _ struct{} `type:"structure"`
  27785. // Value is automatically base64 encoded/decoded by the SDK.
  27786. Value []byte `locationName:"value" type:"blob"`
  27787. }
  27788. // String returns the string representation
  27789. func (s BlobAttributeValue) String() string {
  27790. return awsutil.Prettify(s)
  27791. }
  27792. // GoString returns the string representation
  27793. func (s BlobAttributeValue) GoString() string {
  27794. return s.String()
  27795. }
  27796. // SetValue sets the Value field's value.
  27797. func (s *BlobAttributeValue) SetValue(v []byte) *BlobAttributeValue {
  27798. s.Value = v
  27799. return s
  27800. }
  27801. // Describes a block device mapping.
  27802. type BlockDeviceMapping struct {
  27803. _ struct{} `type:"structure"`
  27804. // The device name (for example, /dev/sdh or xvdh).
  27805. DeviceName *string `locationName:"deviceName" type:"string"`
  27806. // Parameters used to automatically set up EBS volumes when the instance is
  27807. // launched.
  27808. Ebs *EbsBlockDevice `locationName:"ebs" type:"structure"`
  27809. // Suppresses the specified device included in the block device mapping of the
  27810. // AMI.
  27811. NoDevice *string `locationName:"noDevice" type:"string"`
  27812. // The virtual device name (ephemeralN). Instance store volumes are numbered
  27813. // starting from 0. An instance type with 2 available instance store volumes
  27814. // can specify mappings for ephemeral0 and ephemeral1. The number of available
  27815. // instance store volumes depends on the instance type. After you connect to
  27816. // the instance, you must mount the volume.
  27817. //
  27818. // NVMe instance store volumes are automatically enumerated and assigned a device
  27819. // name. Including them in your block device mapping has no effect.
  27820. //
  27821. // Constraints: For M3 instances, you must specify instance store volumes in
  27822. // the block device mapping for the instance. When you launch an M3 instance,
  27823. // we ignore any instance store volumes specified in the block device mapping
  27824. // for the AMI.
  27825. VirtualName *string `locationName:"virtualName" type:"string"`
  27826. }
  27827. // String returns the string representation
  27828. func (s BlockDeviceMapping) String() string {
  27829. return awsutil.Prettify(s)
  27830. }
  27831. // GoString returns the string representation
  27832. func (s BlockDeviceMapping) GoString() string {
  27833. return s.String()
  27834. }
  27835. // SetDeviceName sets the DeviceName field's value.
  27836. func (s *BlockDeviceMapping) SetDeviceName(v string) *BlockDeviceMapping {
  27837. s.DeviceName = &v
  27838. return s
  27839. }
  27840. // SetEbs sets the Ebs field's value.
  27841. func (s *BlockDeviceMapping) SetEbs(v *EbsBlockDevice) *BlockDeviceMapping {
  27842. s.Ebs = v
  27843. return s
  27844. }
  27845. // SetNoDevice sets the NoDevice field's value.
  27846. func (s *BlockDeviceMapping) SetNoDevice(v string) *BlockDeviceMapping {
  27847. s.NoDevice = &v
  27848. return s
  27849. }
  27850. // SetVirtualName sets the VirtualName field's value.
  27851. func (s *BlockDeviceMapping) SetVirtualName(v string) *BlockDeviceMapping {
  27852. s.VirtualName = &v
  27853. return s
  27854. }
  27855. // Contains the parameters for BundleInstance.
  27856. type BundleInstanceInput struct {
  27857. _ struct{} `type:"structure"`
  27858. // Checks whether you have the required permissions for the action, without
  27859. // actually making the request, and provides an error response. If you have
  27860. // the required permissions, the error response is DryRunOperation. Otherwise,
  27861. // it is UnauthorizedOperation.
  27862. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27863. // The ID of the instance to bundle.
  27864. //
  27865. // Type: String
  27866. //
  27867. // Default: None
  27868. //
  27869. // Required: Yes
  27870. //
  27871. // InstanceId is a required field
  27872. InstanceId *string `type:"string" required:"true"`
  27873. // The bucket in which to store the AMI. You can specify a bucket that you already
  27874. // own or a new bucket that Amazon EC2 creates on your behalf. If you specify
  27875. // a bucket that belongs to someone else, Amazon EC2 returns an error.
  27876. //
  27877. // Storage is a required field
  27878. Storage *Storage `type:"structure" required:"true"`
  27879. }
  27880. // String returns the string representation
  27881. func (s BundleInstanceInput) String() string {
  27882. return awsutil.Prettify(s)
  27883. }
  27884. // GoString returns the string representation
  27885. func (s BundleInstanceInput) GoString() string {
  27886. return s.String()
  27887. }
  27888. // Validate inspects the fields of the type to determine if they are valid.
  27889. func (s *BundleInstanceInput) Validate() error {
  27890. invalidParams := request.ErrInvalidParams{Context: "BundleInstanceInput"}
  27891. if s.InstanceId == nil {
  27892. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  27893. }
  27894. if s.Storage == nil {
  27895. invalidParams.Add(request.NewErrParamRequired("Storage"))
  27896. }
  27897. if invalidParams.Len() > 0 {
  27898. return invalidParams
  27899. }
  27900. return nil
  27901. }
  27902. // SetDryRun sets the DryRun field's value.
  27903. func (s *BundleInstanceInput) SetDryRun(v bool) *BundleInstanceInput {
  27904. s.DryRun = &v
  27905. return s
  27906. }
  27907. // SetInstanceId sets the InstanceId field's value.
  27908. func (s *BundleInstanceInput) SetInstanceId(v string) *BundleInstanceInput {
  27909. s.InstanceId = &v
  27910. return s
  27911. }
  27912. // SetStorage sets the Storage field's value.
  27913. func (s *BundleInstanceInput) SetStorage(v *Storage) *BundleInstanceInput {
  27914. s.Storage = v
  27915. return s
  27916. }
  27917. // Contains the output of BundleInstance.
  27918. type BundleInstanceOutput struct {
  27919. _ struct{} `type:"structure"`
  27920. // Information about the bundle task.
  27921. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
  27922. }
  27923. // String returns the string representation
  27924. func (s BundleInstanceOutput) String() string {
  27925. return awsutil.Prettify(s)
  27926. }
  27927. // GoString returns the string representation
  27928. func (s BundleInstanceOutput) GoString() string {
  27929. return s.String()
  27930. }
  27931. // SetBundleTask sets the BundleTask field's value.
  27932. func (s *BundleInstanceOutput) SetBundleTask(v *BundleTask) *BundleInstanceOutput {
  27933. s.BundleTask = v
  27934. return s
  27935. }
  27936. // Describes a bundle task.
  27937. type BundleTask struct {
  27938. _ struct{} `type:"structure"`
  27939. // The ID of the bundle task.
  27940. BundleId *string `locationName:"bundleId" type:"string"`
  27941. // If the task fails, a description of the error.
  27942. BundleTaskError *BundleTaskError `locationName:"error" type:"structure"`
  27943. // The ID of the instance associated with this bundle task.
  27944. InstanceId *string `locationName:"instanceId" type:"string"`
  27945. // The level of task completion, as a percent (for example, 20%).
  27946. Progress *string `locationName:"progress" type:"string"`
  27947. // The time this task started.
  27948. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  27949. // The state of the task.
  27950. State *string `locationName:"state" type:"string" enum:"BundleTaskState"`
  27951. // The Amazon S3 storage locations.
  27952. Storage *Storage `locationName:"storage" type:"structure"`
  27953. // The time of the most recent update for the task.
  27954. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp"`
  27955. }
  27956. // String returns the string representation
  27957. func (s BundleTask) String() string {
  27958. return awsutil.Prettify(s)
  27959. }
  27960. // GoString returns the string representation
  27961. func (s BundleTask) GoString() string {
  27962. return s.String()
  27963. }
  27964. // SetBundleId sets the BundleId field's value.
  27965. func (s *BundleTask) SetBundleId(v string) *BundleTask {
  27966. s.BundleId = &v
  27967. return s
  27968. }
  27969. // SetBundleTaskError sets the BundleTaskError field's value.
  27970. func (s *BundleTask) SetBundleTaskError(v *BundleTaskError) *BundleTask {
  27971. s.BundleTaskError = v
  27972. return s
  27973. }
  27974. // SetInstanceId sets the InstanceId field's value.
  27975. func (s *BundleTask) SetInstanceId(v string) *BundleTask {
  27976. s.InstanceId = &v
  27977. return s
  27978. }
  27979. // SetProgress sets the Progress field's value.
  27980. func (s *BundleTask) SetProgress(v string) *BundleTask {
  27981. s.Progress = &v
  27982. return s
  27983. }
  27984. // SetStartTime sets the StartTime field's value.
  27985. func (s *BundleTask) SetStartTime(v time.Time) *BundleTask {
  27986. s.StartTime = &v
  27987. return s
  27988. }
  27989. // SetState sets the State field's value.
  27990. func (s *BundleTask) SetState(v string) *BundleTask {
  27991. s.State = &v
  27992. return s
  27993. }
  27994. // SetStorage sets the Storage field's value.
  27995. func (s *BundleTask) SetStorage(v *Storage) *BundleTask {
  27996. s.Storage = v
  27997. return s
  27998. }
  27999. // SetUpdateTime sets the UpdateTime field's value.
  28000. func (s *BundleTask) SetUpdateTime(v time.Time) *BundleTask {
  28001. s.UpdateTime = &v
  28002. return s
  28003. }
  28004. // Describes an error for BundleInstance.
  28005. type BundleTaskError struct {
  28006. _ struct{} `type:"structure"`
  28007. // The error code.
  28008. Code *string `locationName:"code" type:"string"`
  28009. // The error message.
  28010. Message *string `locationName:"message" type:"string"`
  28011. }
  28012. // String returns the string representation
  28013. func (s BundleTaskError) String() string {
  28014. return awsutil.Prettify(s)
  28015. }
  28016. // GoString returns the string representation
  28017. func (s BundleTaskError) GoString() string {
  28018. return s.String()
  28019. }
  28020. // SetCode sets the Code field's value.
  28021. func (s *BundleTaskError) SetCode(v string) *BundleTaskError {
  28022. s.Code = &v
  28023. return s
  28024. }
  28025. // SetMessage sets the Message field's value.
  28026. func (s *BundleTaskError) SetMessage(v string) *BundleTaskError {
  28027. s.Message = &v
  28028. return s
  28029. }
  28030. // Information about an address range that is provisioned for use with your
  28031. // AWS resources through bring your own IP addresses (BYOIP).
  28032. type ByoipCidr struct {
  28033. _ struct{} `type:"structure"`
  28034. // The public IPv4 address range, in CIDR notation.
  28035. Cidr *string `locationName:"cidr" type:"string"`
  28036. // The description of the address range.
  28037. Description *string `locationName:"description" type:"string"`
  28038. // The state of the address pool.
  28039. State *string `locationName:"state" type:"string" enum:"ByoipCidrState"`
  28040. // Upon success, contains the ID of the address pool. Otherwise, contains an
  28041. // error message.
  28042. StatusMessage *string `locationName:"statusMessage" type:"string"`
  28043. }
  28044. // String returns the string representation
  28045. func (s ByoipCidr) String() string {
  28046. return awsutil.Prettify(s)
  28047. }
  28048. // GoString returns the string representation
  28049. func (s ByoipCidr) GoString() string {
  28050. return s.String()
  28051. }
  28052. // SetCidr sets the Cidr field's value.
  28053. func (s *ByoipCidr) SetCidr(v string) *ByoipCidr {
  28054. s.Cidr = &v
  28055. return s
  28056. }
  28057. // SetDescription sets the Description field's value.
  28058. func (s *ByoipCidr) SetDescription(v string) *ByoipCidr {
  28059. s.Description = &v
  28060. return s
  28061. }
  28062. // SetState sets the State field's value.
  28063. func (s *ByoipCidr) SetState(v string) *ByoipCidr {
  28064. s.State = &v
  28065. return s
  28066. }
  28067. // SetStatusMessage sets the StatusMessage field's value.
  28068. func (s *ByoipCidr) SetStatusMessage(v string) *ByoipCidr {
  28069. s.StatusMessage = &v
  28070. return s
  28071. }
  28072. // Contains the parameters for CancelBundleTask.
  28073. type CancelBundleTaskInput struct {
  28074. _ struct{} `type:"structure"`
  28075. // The ID of the bundle task.
  28076. //
  28077. // BundleId is a required field
  28078. BundleId *string `type:"string" required:"true"`
  28079. // Checks whether you have the required permissions for the action, without
  28080. // actually making the request, and provides an error response. If you have
  28081. // the required permissions, the error response is DryRunOperation. Otherwise,
  28082. // it is UnauthorizedOperation.
  28083. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28084. }
  28085. // String returns the string representation
  28086. func (s CancelBundleTaskInput) String() string {
  28087. return awsutil.Prettify(s)
  28088. }
  28089. // GoString returns the string representation
  28090. func (s CancelBundleTaskInput) GoString() string {
  28091. return s.String()
  28092. }
  28093. // Validate inspects the fields of the type to determine if they are valid.
  28094. func (s *CancelBundleTaskInput) Validate() error {
  28095. invalidParams := request.ErrInvalidParams{Context: "CancelBundleTaskInput"}
  28096. if s.BundleId == nil {
  28097. invalidParams.Add(request.NewErrParamRequired("BundleId"))
  28098. }
  28099. if invalidParams.Len() > 0 {
  28100. return invalidParams
  28101. }
  28102. return nil
  28103. }
  28104. // SetBundleId sets the BundleId field's value.
  28105. func (s *CancelBundleTaskInput) SetBundleId(v string) *CancelBundleTaskInput {
  28106. s.BundleId = &v
  28107. return s
  28108. }
  28109. // SetDryRun sets the DryRun field's value.
  28110. func (s *CancelBundleTaskInput) SetDryRun(v bool) *CancelBundleTaskInput {
  28111. s.DryRun = &v
  28112. return s
  28113. }
  28114. // Contains the output of CancelBundleTask.
  28115. type CancelBundleTaskOutput struct {
  28116. _ struct{} `type:"structure"`
  28117. // Information about the bundle task.
  28118. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
  28119. }
  28120. // String returns the string representation
  28121. func (s CancelBundleTaskOutput) String() string {
  28122. return awsutil.Prettify(s)
  28123. }
  28124. // GoString returns the string representation
  28125. func (s CancelBundleTaskOutput) GoString() string {
  28126. return s.String()
  28127. }
  28128. // SetBundleTask sets the BundleTask field's value.
  28129. func (s *CancelBundleTaskOutput) SetBundleTask(v *BundleTask) *CancelBundleTaskOutput {
  28130. s.BundleTask = v
  28131. return s
  28132. }
  28133. type CancelCapacityReservationInput struct {
  28134. _ struct{} `type:"structure"`
  28135. // The ID of the Capacity Reservation to be cancelled.
  28136. //
  28137. // CapacityReservationId is a required field
  28138. CapacityReservationId *string `type:"string" required:"true"`
  28139. // Checks whether you have the required permissions for the action, without
  28140. // actually making the request, and provides an error response. If you have
  28141. // the required permissions, the error response is DryRunOperation. Otherwise,
  28142. // it is UnauthorizedOperation.
  28143. DryRun *bool `type:"boolean"`
  28144. }
  28145. // String returns the string representation
  28146. func (s CancelCapacityReservationInput) String() string {
  28147. return awsutil.Prettify(s)
  28148. }
  28149. // GoString returns the string representation
  28150. func (s CancelCapacityReservationInput) GoString() string {
  28151. return s.String()
  28152. }
  28153. // Validate inspects the fields of the type to determine if they are valid.
  28154. func (s *CancelCapacityReservationInput) Validate() error {
  28155. invalidParams := request.ErrInvalidParams{Context: "CancelCapacityReservationInput"}
  28156. if s.CapacityReservationId == nil {
  28157. invalidParams.Add(request.NewErrParamRequired("CapacityReservationId"))
  28158. }
  28159. if invalidParams.Len() > 0 {
  28160. return invalidParams
  28161. }
  28162. return nil
  28163. }
  28164. // SetCapacityReservationId sets the CapacityReservationId field's value.
  28165. func (s *CancelCapacityReservationInput) SetCapacityReservationId(v string) *CancelCapacityReservationInput {
  28166. s.CapacityReservationId = &v
  28167. return s
  28168. }
  28169. // SetDryRun sets the DryRun field's value.
  28170. func (s *CancelCapacityReservationInput) SetDryRun(v bool) *CancelCapacityReservationInput {
  28171. s.DryRun = &v
  28172. return s
  28173. }
  28174. type CancelCapacityReservationOutput struct {
  28175. _ struct{} `type:"structure"`
  28176. // Returns true if the request succeeds; otherwise, it returns an error.
  28177. Return *bool `locationName:"return" type:"boolean"`
  28178. }
  28179. // String returns the string representation
  28180. func (s CancelCapacityReservationOutput) String() string {
  28181. return awsutil.Prettify(s)
  28182. }
  28183. // GoString returns the string representation
  28184. func (s CancelCapacityReservationOutput) GoString() string {
  28185. return s.String()
  28186. }
  28187. // SetReturn sets the Return field's value.
  28188. func (s *CancelCapacityReservationOutput) SetReturn(v bool) *CancelCapacityReservationOutput {
  28189. s.Return = &v
  28190. return s
  28191. }
  28192. // Contains the parameters for CancelConversionTask.
  28193. type CancelConversionTaskInput struct {
  28194. _ struct{} `type:"structure"`
  28195. // The ID of the conversion task.
  28196. //
  28197. // ConversionTaskId is a required field
  28198. ConversionTaskId *string `locationName:"conversionTaskId" type:"string" required:"true"`
  28199. // Checks whether you have the required permissions for the action, without
  28200. // actually making the request, and provides an error response. If you have
  28201. // the required permissions, the error response is DryRunOperation. Otherwise,
  28202. // it is UnauthorizedOperation.
  28203. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28204. // The reason for canceling the conversion task.
  28205. ReasonMessage *string `locationName:"reasonMessage" type:"string"`
  28206. }
  28207. // String returns the string representation
  28208. func (s CancelConversionTaskInput) String() string {
  28209. return awsutil.Prettify(s)
  28210. }
  28211. // GoString returns the string representation
  28212. func (s CancelConversionTaskInput) GoString() string {
  28213. return s.String()
  28214. }
  28215. // Validate inspects the fields of the type to determine if they are valid.
  28216. func (s *CancelConversionTaskInput) Validate() error {
  28217. invalidParams := request.ErrInvalidParams{Context: "CancelConversionTaskInput"}
  28218. if s.ConversionTaskId == nil {
  28219. invalidParams.Add(request.NewErrParamRequired("ConversionTaskId"))
  28220. }
  28221. if invalidParams.Len() > 0 {
  28222. return invalidParams
  28223. }
  28224. return nil
  28225. }
  28226. // SetConversionTaskId sets the ConversionTaskId field's value.
  28227. func (s *CancelConversionTaskInput) SetConversionTaskId(v string) *CancelConversionTaskInput {
  28228. s.ConversionTaskId = &v
  28229. return s
  28230. }
  28231. // SetDryRun sets the DryRun field's value.
  28232. func (s *CancelConversionTaskInput) SetDryRun(v bool) *CancelConversionTaskInput {
  28233. s.DryRun = &v
  28234. return s
  28235. }
  28236. // SetReasonMessage sets the ReasonMessage field's value.
  28237. func (s *CancelConversionTaskInput) SetReasonMessage(v string) *CancelConversionTaskInput {
  28238. s.ReasonMessage = &v
  28239. return s
  28240. }
  28241. type CancelConversionTaskOutput struct {
  28242. _ struct{} `type:"structure"`
  28243. }
  28244. // String returns the string representation
  28245. func (s CancelConversionTaskOutput) String() string {
  28246. return awsutil.Prettify(s)
  28247. }
  28248. // GoString returns the string representation
  28249. func (s CancelConversionTaskOutput) GoString() string {
  28250. return s.String()
  28251. }
  28252. // Contains the parameters for CancelExportTask.
  28253. type CancelExportTaskInput struct {
  28254. _ struct{} `type:"structure"`
  28255. // The ID of the export task. This is the ID returned by CreateInstanceExportTask.
  28256. //
  28257. // ExportTaskId is a required field
  28258. ExportTaskId *string `locationName:"exportTaskId" type:"string" required:"true"`
  28259. }
  28260. // String returns the string representation
  28261. func (s CancelExportTaskInput) String() string {
  28262. return awsutil.Prettify(s)
  28263. }
  28264. // GoString returns the string representation
  28265. func (s CancelExportTaskInput) GoString() string {
  28266. return s.String()
  28267. }
  28268. // Validate inspects the fields of the type to determine if they are valid.
  28269. func (s *CancelExportTaskInput) Validate() error {
  28270. invalidParams := request.ErrInvalidParams{Context: "CancelExportTaskInput"}
  28271. if s.ExportTaskId == nil {
  28272. invalidParams.Add(request.NewErrParamRequired("ExportTaskId"))
  28273. }
  28274. if invalidParams.Len() > 0 {
  28275. return invalidParams
  28276. }
  28277. return nil
  28278. }
  28279. // SetExportTaskId sets the ExportTaskId field's value.
  28280. func (s *CancelExportTaskInput) SetExportTaskId(v string) *CancelExportTaskInput {
  28281. s.ExportTaskId = &v
  28282. return s
  28283. }
  28284. type CancelExportTaskOutput struct {
  28285. _ struct{} `type:"structure"`
  28286. }
  28287. // String returns the string representation
  28288. func (s CancelExportTaskOutput) String() string {
  28289. return awsutil.Prettify(s)
  28290. }
  28291. // GoString returns the string representation
  28292. func (s CancelExportTaskOutput) GoString() string {
  28293. return s.String()
  28294. }
  28295. // Contains the parameters for CancelImportTask.
  28296. type CancelImportTaskInput struct {
  28297. _ struct{} `type:"structure"`
  28298. // The reason for canceling the task.
  28299. CancelReason *string `type:"string"`
  28300. // Checks whether you have the required permissions for the action, without
  28301. // actually making the request, and provides an error response. If you have
  28302. // the required permissions, the error response is DryRunOperation. Otherwise,
  28303. // it is UnauthorizedOperation.
  28304. DryRun *bool `type:"boolean"`
  28305. // The ID of the import image or import snapshot task to be canceled.
  28306. ImportTaskId *string `type:"string"`
  28307. }
  28308. // String returns the string representation
  28309. func (s CancelImportTaskInput) String() string {
  28310. return awsutil.Prettify(s)
  28311. }
  28312. // GoString returns the string representation
  28313. func (s CancelImportTaskInput) GoString() string {
  28314. return s.String()
  28315. }
  28316. // SetCancelReason sets the CancelReason field's value.
  28317. func (s *CancelImportTaskInput) SetCancelReason(v string) *CancelImportTaskInput {
  28318. s.CancelReason = &v
  28319. return s
  28320. }
  28321. // SetDryRun sets the DryRun field's value.
  28322. func (s *CancelImportTaskInput) SetDryRun(v bool) *CancelImportTaskInput {
  28323. s.DryRun = &v
  28324. return s
  28325. }
  28326. // SetImportTaskId sets the ImportTaskId field's value.
  28327. func (s *CancelImportTaskInput) SetImportTaskId(v string) *CancelImportTaskInput {
  28328. s.ImportTaskId = &v
  28329. return s
  28330. }
  28331. // Contains the output for CancelImportTask.
  28332. type CancelImportTaskOutput struct {
  28333. _ struct{} `type:"structure"`
  28334. // The ID of the task being canceled.
  28335. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  28336. // The current state of the task being canceled.
  28337. PreviousState *string `locationName:"previousState" type:"string"`
  28338. // The current state of the task being canceled.
  28339. State *string `locationName:"state" type:"string"`
  28340. }
  28341. // String returns the string representation
  28342. func (s CancelImportTaskOutput) String() string {
  28343. return awsutil.Prettify(s)
  28344. }
  28345. // GoString returns the string representation
  28346. func (s CancelImportTaskOutput) GoString() string {
  28347. return s.String()
  28348. }
  28349. // SetImportTaskId sets the ImportTaskId field's value.
  28350. func (s *CancelImportTaskOutput) SetImportTaskId(v string) *CancelImportTaskOutput {
  28351. s.ImportTaskId = &v
  28352. return s
  28353. }
  28354. // SetPreviousState sets the PreviousState field's value.
  28355. func (s *CancelImportTaskOutput) SetPreviousState(v string) *CancelImportTaskOutput {
  28356. s.PreviousState = &v
  28357. return s
  28358. }
  28359. // SetState sets the State field's value.
  28360. func (s *CancelImportTaskOutput) SetState(v string) *CancelImportTaskOutput {
  28361. s.State = &v
  28362. return s
  28363. }
  28364. // Contains the parameters for CancelReservedInstancesListing.
  28365. type CancelReservedInstancesListingInput struct {
  28366. _ struct{} `type:"structure"`
  28367. // The ID of the Reserved Instance listing.
  28368. //
  28369. // ReservedInstancesListingId is a required field
  28370. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string" required:"true"`
  28371. }
  28372. // String returns the string representation
  28373. func (s CancelReservedInstancesListingInput) String() string {
  28374. return awsutil.Prettify(s)
  28375. }
  28376. // GoString returns the string representation
  28377. func (s CancelReservedInstancesListingInput) GoString() string {
  28378. return s.String()
  28379. }
  28380. // Validate inspects the fields of the type to determine if they are valid.
  28381. func (s *CancelReservedInstancesListingInput) Validate() error {
  28382. invalidParams := request.ErrInvalidParams{Context: "CancelReservedInstancesListingInput"}
  28383. if s.ReservedInstancesListingId == nil {
  28384. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesListingId"))
  28385. }
  28386. if invalidParams.Len() > 0 {
  28387. return invalidParams
  28388. }
  28389. return nil
  28390. }
  28391. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  28392. func (s *CancelReservedInstancesListingInput) SetReservedInstancesListingId(v string) *CancelReservedInstancesListingInput {
  28393. s.ReservedInstancesListingId = &v
  28394. return s
  28395. }
  28396. // Contains the output of CancelReservedInstancesListing.
  28397. type CancelReservedInstancesListingOutput struct {
  28398. _ struct{} `type:"structure"`
  28399. // The Reserved Instance listing.
  28400. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  28401. }
  28402. // String returns the string representation
  28403. func (s CancelReservedInstancesListingOutput) String() string {
  28404. return awsutil.Prettify(s)
  28405. }
  28406. // GoString returns the string representation
  28407. func (s CancelReservedInstancesListingOutput) GoString() string {
  28408. return s.String()
  28409. }
  28410. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  28411. func (s *CancelReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CancelReservedInstancesListingOutput {
  28412. s.ReservedInstancesListings = v
  28413. return s
  28414. }
  28415. // Describes a Spot Fleet error.
  28416. type CancelSpotFleetRequestsError struct {
  28417. _ struct{} `type:"structure"`
  28418. // The error code.
  28419. Code *string `locationName:"code" type:"string" enum:"CancelBatchErrorCode"`
  28420. // The description for the error code.
  28421. Message *string `locationName:"message" type:"string"`
  28422. }
  28423. // String returns the string representation
  28424. func (s CancelSpotFleetRequestsError) String() string {
  28425. return awsutil.Prettify(s)
  28426. }
  28427. // GoString returns the string representation
  28428. func (s CancelSpotFleetRequestsError) GoString() string {
  28429. return s.String()
  28430. }
  28431. // SetCode sets the Code field's value.
  28432. func (s *CancelSpotFleetRequestsError) SetCode(v string) *CancelSpotFleetRequestsError {
  28433. s.Code = &v
  28434. return s
  28435. }
  28436. // SetMessage sets the Message field's value.
  28437. func (s *CancelSpotFleetRequestsError) SetMessage(v string) *CancelSpotFleetRequestsError {
  28438. s.Message = &v
  28439. return s
  28440. }
  28441. // Describes a Spot Fleet request that was not successfully canceled.
  28442. type CancelSpotFleetRequestsErrorItem struct {
  28443. _ struct{} `type:"structure"`
  28444. // The error.
  28445. Error *CancelSpotFleetRequestsError `locationName:"error" type:"structure"`
  28446. // The ID of the Spot Fleet request.
  28447. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
  28448. }
  28449. // String returns the string representation
  28450. func (s CancelSpotFleetRequestsErrorItem) String() string {
  28451. return awsutil.Prettify(s)
  28452. }
  28453. // GoString returns the string representation
  28454. func (s CancelSpotFleetRequestsErrorItem) GoString() string {
  28455. return s.String()
  28456. }
  28457. // SetError sets the Error field's value.
  28458. func (s *CancelSpotFleetRequestsErrorItem) SetError(v *CancelSpotFleetRequestsError) *CancelSpotFleetRequestsErrorItem {
  28459. s.Error = v
  28460. return s
  28461. }
  28462. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  28463. func (s *CancelSpotFleetRequestsErrorItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsErrorItem {
  28464. s.SpotFleetRequestId = &v
  28465. return s
  28466. }
  28467. // Contains the parameters for CancelSpotFleetRequests.
  28468. type CancelSpotFleetRequestsInput struct {
  28469. _ struct{} `type:"structure"`
  28470. // Checks whether you have the required permissions for the action, without
  28471. // actually making the request, and provides an error response. If you have
  28472. // the required permissions, the error response is DryRunOperation. Otherwise,
  28473. // it is UnauthorizedOperation.
  28474. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28475. // The IDs of the Spot Fleet requests.
  28476. //
  28477. // SpotFleetRequestIds is a required field
  28478. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list" required:"true"`
  28479. // Indicates whether to terminate instances for a Spot Fleet request if it is
  28480. // canceled successfully.
  28481. //
  28482. // TerminateInstances is a required field
  28483. TerminateInstances *bool `locationName:"terminateInstances" type:"boolean" required:"true"`
  28484. }
  28485. // String returns the string representation
  28486. func (s CancelSpotFleetRequestsInput) String() string {
  28487. return awsutil.Prettify(s)
  28488. }
  28489. // GoString returns the string representation
  28490. func (s CancelSpotFleetRequestsInput) GoString() string {
  28491. return s.String()
  28492. }
  28493. // Validate inspects the fields of the type to determine if they are valid.
  28494. func (s *CancelSpotFleetRequestsInput) Validate() error {
  28495. invalidParams := request.ErrInvalidParams{Context: "CancelSpotFleetRequestsInput"}
  28496. if s.SpotFleetRequestIds == nil {
  28497. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestIds"))
  28498. }
  28499. if s.TerminateInstances == nil {
  28500. invalidParams.Add(request.NewErrParamRequired("TerminateInstances"))
  28501. }
  28502. if invalidParams.Len() > 0 {
  28503. return invalidParams
  28504. }
  28505. return nil
  28506. }
  28507. // SetDryRun sets the DryRun field's value.
  28508. func (s *CancelSpotFleetRequestsInput) SetDryRun(v bool) *CancelSpotFleetRequestsInput {
  28509. s.DryRun = &v
  28510. return s
  28511. }
  28512. // SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value.
  28513. func (s *CancelSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *CancelSpotFleetRequestsInput {
  28514. s.SpotFleetRequestIds = v
  28515. return s
  28516. }
  28517. // SetTerminateInstances sets the TerminateInstances field's value.
  28518. func (s *CancelSpotFleetRequestsInput) SetTerminateInstances(v bool) *CancelSpotFleetRequestsInput {
  28519. s.TerminateInstances = &v
  28520. return s
  28521. }
  28522. // Contains the output of CancelSpotFleetRequests.
  28523. type CancelSpotFleetRequestsOutput struct {
  28524. _ struct{} `type:"structure"`
  28525. // Information about the Spot Fleet requests that are successfully canceled.
  28526. SuccessfulFleetRequests []*CancelSpotFleetRequestsSuccessItem `locationName:"successfulFleetRequestSet" locationNameList:"item" type:"list"`
  28527. // Information about the Spot Fleet requests that are not successfully canceled.
  28528. UnsuccessfulFleetRequests []*CancelSpotFleetRequestsErrorItem `locationName:"unsuccessfulFleetRequestSet" locationNameList:"item" type:"list"`
  28529. }
  28530. // String returns the string representation
  28531. func (s CancelSpotFleetRequestsOutput) String() string {
  28532. return awsutil.Prettify(s)
  28533. }
  28534. // GoString returns the string representation
  28535. func (s CancelSpotFleetRequestsOutput) GoString() string {
  28536. return s.String()
  28537. }
  28538. // SetSuccessfulFleetRequests sets the SuccessfulFleetRequests field's value.
  28539. func (s *CancelSpotFleetRequestsOutput) SetSuccessfulFleetRequests(v []*CancelSpotFleetRequestsSuccessItem) *CancelSpotFleetRequestsOutput {
  28540. s.SuccessfulFleetRequests = v
  28541. return s
  28542. }
  28543. // SetUnsuccessfulFleetRequests sets the UnsuccessfulFleetRequests field's value.
  28544. func (s *CancelSpotFleetRequestsOutput) SetUnsuccessfulFleetRequests(v []*CancelSpotFleetRequestsErrorItem) *CancelSpotFleetRequestsOutput {
  28545. s.UnsuccessfulFleetRequests = v
  28546. return s
  28547. }
  28548. // Describes a Spot Fleet request that was successfully canceled.
  28549. type CancelSpotFleetRequestsSuccessItem struct {
  28550. _ struct{} `type:"structure"`
  28551. // The current state of the Spot Fleet request.
  28552. CurrentSpotFleetRequestState *string `locationName:"currentSpotFleetRequestState" type:"string" enum:"BatchState"`
  28553. // The previous state of the Spot Fleet request.
  28554. PreviousSpotFleetRequestState *string `locationName:"previousSpotFleetRequestState" type:"string" enum:"BatchState"`
  28555. // The ID of the Spot Fleet request.
  28556. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
  28557. }
  28558. // String returns the string representation
  28559. func (s CancelSpotFleetRequestsSuccessItem) String() string {
  28560. return awsutil.Prettify(s)
  28561. }
  28562. // GoString returns the string representation
  28563. func (s CancelSpotFleetRequestsSuccessItem) GoString() string {
  28564. return s.String()
  28565. }
  28566. // SetCurrentSpotFleetRequestState sets the CurrentSpotFleetRequestState field's value.
  28567. func (s *CancelSpotFleetRequestsSuccessItem) SetCurrentSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem {
  28568. s.CurrentSpotFleetRequestState = &v
  28569. return s
  28570. }
  28571. // SetPreviousSpotFleetRequestState sets the PreviousSpotFleetRequestState field's value.
  28572. func (s *CancelSpotFleetRequestsSuccessItem) SetPreviousSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem {
  28573. s.PreviousSpotFleetRequestState = &v
  28574. return s
  28575. }
  28576. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  28577. func (s *CancelSpotFleetRequestsSuccessItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsSuccessItem {
  28578. s.SpotFleetRequestId = &v
  28579. return s
  28580. }
  28581. // Contains the parameters for CancelSpotInstanceRequests.
  28582. type CancelSpotInstanceRequestsInput struct {
  28583. _ struct{} `type:"structure"`
  28584. // Checks whether you have the required permissions for the action, without
  28585. // actually making the request, and provides an error response. If you have
  28586. // the required permissions, the error response is DryRunOperation. Otherwise,
  28587. // it is UnauthorizedOperation.
  28588. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28589. // One or more Spot Instance request IDs.
  28590. //
  28591. // SpotInstanceRequestIds is a required field
  28592. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list" required:"true"`
  28593. }
  28594. // String returns the string representation
  28595. func (s CancelSpotInstanceRequestsInput) String() string {
  28596. return awsutil.Prettify(s)
  28597. }
  28598. // GoString returns the string representation
  28599. func (s CancelSpotInstanceRequestsInput) GoString() string {
  28600. return s.String()
  28601. }
  28602. // Validate inspects the fields of the type to determine if they are valid.
  28603. func (s *CancelSpotInstanceRequestsInput) Validate() error {
  28604. invalidParams := request.ErrInvalidParams{Context: "CancelSpotInstanceRequestsInput"}
  28605. if s.SpotInstanceRequestIds == nil {
  28606. invalidParams.Add(request.NewErrParamRequired("SpotInstanceRequestIds"))
  28607. }
  28608. if invalidParams.Len() > 0 {
  28609. return invalidParams
  28610. }
  28611. return nil
  28612. }
  28613. // SetDryRun sets the DryRun field's value.
  28614. func (s *CancelSpotInstanceRequestsInput) SetDryRun(v bool) *CancelSpotInstanceRequestsInput {
  28615. s.DryRun = &v
  28616. return s
  28617. }
  28618. // SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value.
  28619. func (s *CancelSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *CancelSpotInstanceRequestsInput {
  28620. s.SpotInstanceRequestIds = v
  28621. return s
  28622. }
  28623. // Contains the output of CancelSpotInstanceRequests.
  28624. type CancelSpotInstanceRequestsOutput struct {
  28625. _ struct{} `type:"structure"`
  28626. // One or more Spot Instance requests.
  28627. CancelledSpotInstanceRequests []*CancelledSpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  28628. }
  28629. // String returns the string representation
  28630. func (s CancelSpotInstanceRequestsOutput) String() string {
  28631. return awsutil.Prettify(s)
  28632. }
  28633. // GoString returns the string representation
  28634. func (s CancelSpotInstanceRequestsOutput) GoString() string {
  28635. return s.String()
  28636. }
  28637. // SetCancelledSpotInstanceRequests sets the CancelledSpotInstanceRequests field's value.
  28638. func (s *CancelSpotInstanceRequestsOutput) SetCancelledSpotInstanceRequests(v []*CancelledSpotInstanceRequest) *CancelSpotInstanceRequestsOutput {
  28639. s.CancelledSpotInstanceRequests = v
  28640. return s
  28641. }
  28642. // Describes a request to cancel a Spot Instance.
  28643. type CancelledSpotInstanceRequest struct {
  28644. _ struct{} `type:"structure"`
  28645. // The ID of the Spot Instance request.
  28646. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  28647. // The state of the Spot Instance request.
  28648. State *string `locationName:"state" type:"string" enum:"CancelSpotInstanceRequestState"`
  28649. }
  28650. // String returns the string representation
  28651. func (s CancelledSpotInstanceRequest) String() string {
  28652. return awsutil.Prettify(s)
  28653. }
  28654. // GoString returns the string representation
  28655. func (s CancelledSpotInstanceRequest) GoString() string {
  28656. return s.String()
  28657. }
  28658. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  28659. func (s *CancelledSpotInstanceRequest) SetSpotInstanceRequestId(v string) *CancelledSpotInstanceRequest {
  28660. s.SpotInstanceRequestId = &v
  28661. return s
  28662. }
  28663. // SetState sets the State field's value.
  28664. func (s *CancelledSpotInstanceRequest) SetState(v string) *CancelledSpotInstanceRequest {
  28665. s.State = &v
  28666. return s
  28667. }
  28668. // Describes a Capacity Reservation.
  28669. type CapacityReservation struct {
  28670. _ struct{} `type:"structure"`
  28671. // The Availability Zone in which the capacity is reserved.
  28672. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  28673. // The remaining capacity. Indicates the number of instances that can be launched
  28674. // in the Capacity Reservation.
  28675. AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"`
  28676. // The ID of the Capacity Reservation.
  28677. CapacityReservationId *string `locationName:"capacityReservationId" type:"string"`
  28678. // The date and time at which the Capacity Reservation was created.
  28679. CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
  28680. // Indicates whether the Capacity Reservation supports EBS-optimized instances.
  28681. // This optimization provides dedicated throughput to Amazon EBS and an optimized
  28682. // configuration stack to provide optimal I/O performance. This optimization
  28683. // isn't available with all instance types. Additional usage charges apply when
  28684. // using an EBS- optimized instance.
  28685. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  28686. // The date and time at which the Capacity Reservation expires. When a Capacity
  28687. // Reservation expires, the reserved capacity is released and you can no longer
  28688. // launch instances into it. The Capacity Reservation's state changes to expired
  28689. // when it reaches its end date and time.
  28690. EndDate *time.Time `locationName:"endDate" type:"timestamp"`
  28691. // Indicates the way in which the Capacity Reservation ends. A Capacity Reservation
  28692. // can have one of the following end types:
  28693. //
  28694. // * unlimited - The Capacity Reservation remains active until you explicitly
  28695. // cancel it.
  28696. //
  28697. // * limited - The Capacity Reservation expires automatically at a specified
  28698. // date and time.
  28699. EndDateType *string `locationName:"endDateType" type:"string" enum:"EndDateType"`
  28700. // Indicates whether the Capacity Reservation supports instances with temporary,
  28701. // block-level storage.
  28702. EphemeralStorage *bool `locationName:"ephemeralStorage" type:"boolean"`
  28703. // Indicates the type of instance launches that the Capacity Reservation accepts.
  28704. // The options include:
  28705. //
  28706. // * open - The Capacity Reservation accepts all instances that have matching
  28707. // attributes (instance type, platform, and Availability Zone). Instances
  28708. // that have matching attributes launch into the Capacity Reservation automatically
  28709. // without specifying any additional parameters.
  28710. //
  28711. // * targeted - The Capacity Reservation only accepts instances that have
  28712. // matching attributes (instance type, platform, and Availability Zone),
  28713. // and explicitly target the Capacity Reservation. This ensures that only
  28714. // permitted instances can use the reserved capacity.
  28715. InstanceMatchCriteria *string `locationName:"instanceMatchCriteria" type:"string" enum:"InstanceMatchCriteria"`
  28716. // The type of operating system for which the Capacity Reservation reserves
  28717. // capacity.
  28718. InstancePlatform *string `locationName:"instancePlatform" type:"string" enum:"CapacityReservationInstancePlatform"`
  28719. // The type of instance for which the Capacity Reservation reserves capacity.
  28720. InstanceType *string `locationName:"instanceType" type:"string"`
  28721. // The current state of the Capacity Reservation. A Capacity Reservation can
  28722. // be in one of the following states:
  28723. //
  28724. // * active - The Capacity Reservation is active and the capacity is available
  28725. // for your use.
  28726. //
  28727. // * cancelled - The Capacity Reservation expired automatically at the date
  28728. // and time specified in your request. The reserved capacity is no longer
  28729. // available for your use.
  28730. //
  28731. // * expired - The Capacity Reservation was manually cancelled. The reserved
  28732. // capacity is no longer available for your use.
  28733. //
  28734. // * pending - The Capacity Reservation request was successful but the capacity
  28735. // provisioning is still pending.
  28736. //
  28737. // * failed - The Capacity Reservation request has failed. A request might
  28738. // fail due to invalid request parameters, capacity constraints, or instance
  28739. // limit constraints. Failed requests are retained for 60 minutes.
  28740. State *string `locationName:"state" type:"string" enum:"CapacityReservationState"`
  28741. // Any tags assigned to the Capacity Reservation.
  28742. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  28743. // Indicates the tenancy of the Capacity Reservation. A Capacity Reservation
  28744. // can have one of the following tenancy settings:
  28745. //
  28746. // * default - The Capacity Reservation is created on hardware that is shared
  28747. // with other AWS accounts.
  28748. //
  28749. // * dedicated - The Capacity Reservation is created on single-tenant hardware
  28750. // that is dedicated to a single AWS account.
  28751. Tenancy *string `locationName:"tenancy" type:"string" enum:"CapacityReservationTenancy"`
  28752. // The number of instances for which the Capacity Reservation reserves capacity.
  28753. TotalInstanceCount *int64 `locationName:"totalInstanceCount" type:"integer"`
  28754. }
  28755. // String returns the string representation
  28756. func (s CapacityReservation) String() string {
  28757. return awsutil.Prettify(s)
  28758. }
  28759. // GoString returns the string representation
  28760. func (s CapacityReservation) GoString() string {
  28761. return s.String()
  28762. }
  28763. // SetAvailabilityZone sets the AvailabilityZone field's value.
  28764. func (s *CapacityReservation) SetAvailabilityZone(v string) *CapacityReservation {
  28765. s.AvailabilityZone = &v
  28766. return s
  28767. }
  28768. // SetAvailableInstanceCount sets the AvailableInstanceCount field's value.
  28769. func (s *CapacityReservation) SetAvailableInstanceCount(v int64) *CapacityReservation {
  28770. s.AvailableInstanceCount = &v
  28771. return s
  28772. }
  28773. // SetCapacityReservationId sets the CapacityReservationId field's value.
  28774. func (s *CapacityReservation) SetCapacityReservationId(v string) *CapacityReservation {
  28775. s.CapacityReservationId = &v
  28776. return s
  28777. }
  28778. // SetCreateDate sets the CreateDate field's value.
  28779. func (s *CapacityReservation) SetCreateDate(v time.Time) *CapacityReservation {
  28780. s.CreateDate = &v
  28781. return s
  28782. }
  28783. // SetEbsOptimized sets the EbsOptimized field's value.
  28784. func (s *CapacityReservation) SetEbsOptimized(v bool) *CapacityReservation {
  28785. s.EbsOptimized = &v
  28786. return s
  28787. }
  28788. // SetEndDate sets the EndDate field's value.
  28789. func (s *CapacityReservation) SetEndDate(v time.Time) *CapacityReservation {
  28790. s.EndDate = &v
  28791. return s
  28792. }
  28793. // SetEndDateType sets the EndDateType field's value.
  28794. func (s *CapacityReservation) SetEndDateType(v string) *CapacityReservation {
  28795. s.EndDateType = &v
  28796. return s
  28797. }
  28798. // SetEphemeralStorage sets the EphemeralStorage field's value.
  28799. func (s *CapacityReservation) SetEphemeralStorage(v bool) *CapacityReservation {
  28800. s.EphemeralStorage = &v
  28801. return s
  28802. }
  28803. // SetInstanceMatchCriteria sets the InstanceMatchCriteria field's value.
  28804. func (s *CapacityReservation) SetInstanceMatchCriteria(v string) *CapacityReservation {
  28805. s.InstanceMatchCriteria = &v
  28806. return s
  28807. }
  28808. // SetInstancePlatform sets the InstancePlatform field's value.
  28809. func (s *CapacityReservation) SetInstancePlatform(v string) *CapacityReservation {
  28810. s.InstancePlatform = &v
  28811. return s
  28812. }
  28813. // SetInstanceType sets the InstanceType field's value.
  28814. func (s *CapacityReservation) SetInstanceType(v string) *CapacityReservation {
  28815. s.InstanceType = &v
  28816. return s
  28817. }
  28818. // SetState sets the State field's value.
  28819. func (s *CapacityReservation) SetState(v string) *CapacityReservation {
  28820. s.State = &v
  28821. return s
  28822. }
  28823. // SetTags sets the Tags field's value.
  28824. func (s *CapacityReservation) SetTags(v []*Tag) *CapacityReservation {
  28825. s.Tags = v
  28826. return s
  28827. }
  28828. // SetTenancy sets the Tenancy field's value.
  28829. func (s *CapacityReservation) SetTenancy(v string) *CapacityReservation {
  28830. s.Tenancy = &v
  28831. return s
  28832. }
  28833. // SetTotalInstanceCount sets the TotalInstanceCount field's value.
  28834. func (s *CapacityReservation) SetTotalInstanceCount(v int64) *CapacityReservation {
  28835. s.TotalInstanceCount = &v
  28836. return s
  28837. }
  28838. // Describes an instance's Capacity Reservation targeting option. You can specify
  28839. // only one option at a time. Use the CapacityReservationPreference parameter
  28840. // to configure the instance to run as an On-Demand Instance or to run in any
  28841. // open Capacity Reservation that has matching attributes (instance type, platform,
  28842. // Availability Zone). Use the CapacityReservationTarget parameter to explicitly
  28843. // target a specific Capacity Reservation.
  28844. type CapacityReservationSpecification struct {
  28845. _ struct{} `type:"structure"`
  28846. // Indicates the instance's Capacity Reservation preferences. Possible preferences
  28847. // include:
  28848. //
  28849. // * open - The instance can run in any open Capacity Reservation that has
  28850. // matching attributes (instance type, platform, Availability Zone).
  28851. //
  28852. // * none - The instance avoids running in a Capacity Reservation even if
  28853. // one is available. The instance runs as an On-Demand Instance.
  28854. CapacityReservationPreference *string `type:"string" enum:"CapacityReservationPreference"`
  28855. // Information about the target Capacity Reservation.
  28856. CapacityReservationTarget *CapacityReservationTarget `type:"structure"`
  28857. }
  28858. // String returns the string representation
  28859. func (s CapacityReservationSpecification) String() string {
  28860. return awsutil.Prettify(s)
  28861. }
  28862. // GoString returns the string representation
  28863. func (s CapacityReservationSpecification) GoString() string {
  28864. return s.String()
  28865. }
  28866. // SetCapacityReservationPreference sets the CapacityReservationPreference field's value.
  28867. func (s *CapacityReservationSpecification) SetCapacityReservationPreference(v string) *CapacityReservationSpecification {
  28868. s.CapacityReservationPreference = &v
  28869. return s
  28870. }
  28871. // SetCapacityReservationTarget sets the CapacityReservationTarget field's value.
  28872. func (s *CapacityReservationSpecification) SetCapacityReservationTarget(v *CapacityReservationTarget) *CapacityReservationSpecification {
  28873. s.CapacityReservationTarget = v
  28874. return s
  28875. }
  28876. // Describes the instance's Capacity Reservation targeting preferences. The
  28877. // action returns the capacityReservationPreference response element if the
  28878. // instance is configured to run in On-Demand capacity, or if it is configured
  28879. // in run in any open Capacity Reservation that has matching attributes (instance
  28880. // type, platform, Availability Zone). The action returns the capacityReservationTarget
  28881. // response element if the instance explicily targets a specific Capacity Reservation.
  28882. type CapacityReservationSpecificationResponse struct {
  28883. _ struct{} `type:"structure"`
  28884. // Describes the instance's Capacity Reservation preferences. Possible preferences
  28885. // include:
  28886. //
  28887. // * open - The instance can run in any open Capacity Reservation that has
  28888. // matching attributes (instance type, platform, Availability Zone).
  28889. //
  28890. // * none - The instance avoids running in a Capacity Reservation even if
  28891. // one is available. The instance runs in On-Demand capacity.
  28892. CapacityReservationPreference *string `locationName:"capacityReservationPreference" type:"string" enum:"CapacityReservationPreference"`
  28893. // Information about the targeted Capacity Reservation.
  28894. CapacityReservationTarget *CapacityReservationTargetResponse `locationName:"capacityReservationTarget" type:"structure"`
  28895. }
  28896. // String returns the string representation
  28897. func (s CapacityReservationSpecificationResponse) String() string {
  28898. return awsutil.Prettify(s)
  28899. }
  28900. // GoString returns the string representation
  28901. func (s CapacityReservationSpecificationResponse) GoString() string {
  28902. return s.String()
  28903. }
  28904. // SetCapacityReservationPreference sets the CapacityReservationPreference field's value.
  28905. func (s *CapacityReservationSpecificationResponse) SetCapacityReservationPreference(v string) *CapacityReservationSpecificationResponse {
  28906. s.CapacityReservationPreference = &v
  28907. return s
  28908. }
  28909. // SetCapacityReservationTarget sets the CapacityReservationTarget field's value.
  28910. func (s *CapacityReservationSpecificationResponse) SetCapacityReservationTarget(v *CapacityReservationTargetResponse) *CapacityReservationSpecificationResponse {
  28911. s.CapacityReservationTarget = v
  28912. return s
  28913. }
  28914. // Describes a target Capacity Reservation.
  28915. type CapacityReservationTarget struct {
  28916. _ struct{} `type:"structure"`
  28917. // The ID of the Capacity Reservation.
  28918. CapacityReservationId *string `type:"string"`
  28919. }
  28920. // String returns the string representation
  28921. func (s CapacityReservationTarget) String() string {
  28922. return awsutil.Prettify(s)
  28923. }
  28924. // GoString returns the string representation
  28925. func (s CapacityReservationTarget) GoString() string {
  28926. return s.String()
  28927. }
  28928. // SetCapacityReservationId sets the CapacityReservationId field's value.
  28929. func (s *CapacityReservationTarget) SetCapacityReservationId(v string) *CapacityReservationTarget {
  28930. s.CapacityReservationId = &v
  28931. return s
  28932. }
  28933. // Describes a target Capacity Reservation.
  28934. type CapacityReservationTargetResponse struct {
  28935. _ struct{} `type:"structure"`
  28936. // The ID of the Capacity Reservation.
  28937. CapacityReservationId *string `locationName:"capacityReservationId" type:"string"`
  28938. }
  28939. // String returns the string representation
  28940. func (s CapacityReservationTargetResponse) String() string {
  28941. return awsutil.Prettify(s)
  28942. }
  28943. // GoString returns the string representation
  28944. func (s CapacityReservationTargetResponse) GoString() string {
  28945. return s.String()
  28946. }
  28947. // SetCapacityReservationId sets the CapacityReservationId field's value.
  28948. func (s *CapacityReservationTargetResponse) SetCapacityReservationId(v string) *CapacityReservationTargetResponse {
  28949. s.CapacityReservationId = &v
  28950. return s
  28951. }
  28952. // Information about the client certificate used for authentication.
  28953. type CertificateAuthentication struct {
  28954. _ struct{} `type:"structure"`
  28955. // The ARN of the client certificate.
  28956. ClientRootCertificateChain *string `locationName:"clientRootCertificateChain" type:"string"`
  28957. }
  28958. // String returns the string representation
  28959. func (s CertificateAuthentication) String() string {
  28960. return awsutil.Prettify(s)
  28961. }
  28962. // GoString returns the string representation
  28963. func (s CertificateAuthentication) GoString() string {
  28964. return s.String()
  28965. }
  28966. // SetClientRootCertificateChain sets the ClientRootCertificateChain field's value.
  28967. func (s *CertificateAuthentication) SetClientRootCertificateChain(v string) *CertificateAuthentication {
  28968. s.ClientRootCertificateChain = &v
  28969. return s
  28970. }
  28971. // Information about the client certificate to be used for authentication.
  28972. type CertificateAuthenticationRequest struct {
  28973. _ struct{} `type:"structure"`
  28974. // The ARN of the client certificate. The certificate must be signed by a certificate
  28975. // authority (CA) and it must be provisioned in AWS Certificate Manager (ACM).
  28976. ClientRootCertificateChainArn *string `type:"string"`
  28977. }
  28978. // String returns the string representation
  28979. func (s CertificateAuthenticationRequest) String() string {
  28980. return awsutil.Prettify(s)
  28981. }
  28982. // GoString returns the string representation
  28983. func (s CertificateAuthenticationRequest) GoString() string {
  28984. return s.String()
  28985. }
  28986. // SetClientRootCertificateChainArn sets the ClientRootCertificateChainArn field's value.
  28987. func (s *CertificateAuthenticationRequest) SetClientRootCertificateChainArn(v string) *CertificateAuthenticationRequest {
  28988. s.ClientRootCertificateChainArn = &v
  28989. return s
  28990. }
  28991. // Provides authorization for Amazon to bring a specific IP address range to
  28992. // a specific AWS account using bring your own IP addresses (BYOIP).
  28993. type CidrAuthorizationContext struct {
  28994. _ struct{} `type:"structure"`
  28995. // The plain-text authorization message for the prefix and account.
  28996. //
  28997. // Message is a required field
  28998. Message *string `type:"string" required:"true"`
  28999. // The signed authorization message for the prefix and account.
  29000. //
  29001. // Signature is a required field
  29002. Signature *string `type:"string" required:"true"`
  29003. }
  29004. // String returns the string representation
  29005. func (s CidrAuthorizationContext) String() string {
  29006. return awsutil.Prettify(s)
  29007. }
  29008. // GoString returns the string representation
  29009. func (s CidrAuthorizationContext) GoString() string {
  29010. return s.String()
  29011. }
  29012. // Validate inspects the fields of the type to determine if they are valid.
  29013. func (s *CidrAuthorizationContext) Validate() error {
  29014. invalidParams := request.ErrInvalidParams{Context: "CidrAuthorizationContext"}
  29015. if s.Message == nil {
  29016. invalidParams.Add(request.NewErrParamRequired("Message"))
  29017. }
  29018. if s.Signature == nil {
  29019. invalidParams.Add(request.NewErrParamRequired("Signature"))
  29020. }
  29021. if invalidParams.Len() > 0 {
  29022. return invalidParams
  29023. }
  29024. return nil
  29025. }
  29026. // SetMessage sets the Message field's value.
  29027. func (s *CidrAuthorizationContext) SetMessage(v string) *CidrAuthorizationContext {
  29028. s.Message = &v
  29029. return s
  29030. }
  29031. // SetSignature sets the Signature field's value.
  29032. func (s *CidrAuthorizationContext) SetSignature(v string) *CidrAuthorizationContext {
  29033. s.Signature = &v
  29034. return s
  29035. }
  29036. // Describes an IPv4 CIDR block.
  29037. type CidrBlock struct {
  29038. _ struct{} `type:"structure"`
  29039. // The IPv4 CIDR block.
  29040. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  29041. }
  29042. // String returns the string representation
  29043. func (s CidrBlock) String() string {
  29044. return awsutil.Prettify(s)
  29045. }
  29046. // GoString returns the string representation
  29047. func (s CidrBlock) GoString() string {
  29048. return s.String()
  29049. }
  29050. // SetCidrBlock sets the CidrBlock field's value.
  29051. func (s *CidrBlock) SetCidrBlock(v string) *CidrBlock {
  29052. s.CidrBlock = &v
  29053. return s
  29054. }
  29055. // Describes the ClassicLink DNS support status of a VPC.
  29056. type ClassicLinkDnsSupport struct {
  29057. _ struct{} `type:"structure"`
  29058. // Indicates whether ClassicLink DNS support is enabled for the VPC.
  29059. ClassicLinkDnsSupported *bool `locationName:"classicLinkDnsSupported" type:"boolean"`
  29060. // The ID of the VPC.
  29061. VpcId *string `locationName:"vpcId" type:"string"`
  29062. }
  29063. // String returns the string representation
  29064. func (s ClassicLinkDnsSupport) String() string {
  29065. return awsutil.Prettify(s)
  29066. }
  29067. // GoString returns the string representation
  29068. func (s ClassicLinkDnsSupport) GoString() string {
  29069. return s.String()
  29070. }
  29071. // SetClassicLinkDnsSupported sets the ClassicLinkDnsSupported field's value.
  29072. func (s *ClassicLinkDnsSupport) SetClassicLinkDnsSupported(v bool) *ClassicLinkDnsSupport {
  29073. s.ClassicLinkDnsSupported = &v
  29074. return s
  29075. }
  29076. // SetVpcId sets the VpcId field's value.
  29077. func (s *ClassicLinkDnsSupport) SetVpcId(v string) *ClassicLinkDnsSupport {
  29078. s.VpcId = &v
  29079. return s
  29080. }
  29081. // Describes a linked EC2-Classic instance.
  29082. type ClassicLinkInstance struct {
  29083. _ struct{} `type:"structure"`
  29084. // A list of security groups.
  29085. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  29086. // The ID of the instance.
  29087. InstanceId *string `locationName:"instanceId" type:"string"`
  29088. // Any tags assigned to the instance.
  29089. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  29090. // The ID of the VPC.
  29091. VpcId *string `locationName:"vpcId" type:"string"`
  29092. }
  29093. // String returns the string representation
  29094. func (s ClassicLinkInstance) String() string {
  29095. return awsutil.Prettify(s)
  29096. }
  29097. // GoString returns the string representation
  29098. func (s ClassicLinkInstance) GoString() string {
  29099. return s.String()
  29100. }
  29101. // SetGroups sets the Groups field's value.
  29102. func (s *ClassicLinkInstance) SetGroups(v []*GroupIdentifier) *ClassicLinkInstance {
  29103. s.Groups = v
  29104. return s
  29105. }
  29106. // SetInstanceId sets the InstanceId field's value.
  29107. func (s *ClassicLinkInstance) SetInstanceId(v string) *ClassicLinkInstance {
  29108. s.InstanceId = &v
  29109. return s
  29110. }
  29111. // SetTags sets the Tags field's value.
  29112. func (s *ClassicLinkInstance) SetTags(v []*Tag) *ClassicLinkInstance {
  29113. s.Tags = v
  29114. return s
  29115. }
  29116. // SetVpcId sets the VpcId field's value.
  29117. func (s *ClassicLinkInstance) SetVpcId(v string) *ClassicLinkInstance {
  29118. s.VpcId = &v
  29119. return s
  29120. }
  29121. // Describes a Classic Load Balancer.
  29122. type ClassicLoadBalancer struct {
  29123. _ struct{} `type:"structure"`
  29124. // The name of the load balancer.
  29125. Name *string `locationName:"name" type:"string"`
  29126. }
  29127. // String returns the string representation
  29128. func (s ClassicLoadBalancer) String() string {
  29129. return awsutil.Prettify(s)
  29130. }
  29131. // GoString returns the string representation
  29132. func (s ClassicLoadBalancer) GoString() string {
  29133. return s.String()
  29134. }
  29135. // SetName sets the Name field's value.
  29136. func (s *ClassicLoadBalancer) SetName(v string) *ClassicLoadBalancer {
  29137. s.Name = &v
  29138. return s
  29139. }
  29140. // Describes the Classic Load Balancers to attach to a Spot Fleet. Spot Fleet
  29141. // registers the running Spot Instances with these Classic Load Balancers.
  29142. type ClassicLoadBalancersConfig struct {
  29143. _ struct{} `type:"structure"`
  29144. // One or more Classic Load Balancers.
  29145. ClassicLoadBalancers []*ClassicLoadBalancer `locationName:"classicLoadBalancers" locationNameList:"item" min:"1" type:"list"`
  29146. }
  29147. // String returns the string representation
  29148. func (s ClassicLoadBalancersConfig) String() string {
  29149. return awsutil.Prettify(s)
  29150. }
  29151. // GoString returns the string representation
  29152. func (s ClassicLoadBalancersConfig) GoString() string {
  29153. return s.String()
  29154. }
  29155. // Validate inspects the fields of the type to determine if they are valid.
  29156. func (s *ClassicLoadBalancersConfig) Validate() error {
  29157. invalidParams := request.ErrInvalidParams{Context: "ClassicLoadBalancersConfig"}
  29158. if s.ClassicLoadBalancers != nil && len(s.ClassicLoadBalancers) < 1 {
  29159. invalidParams.Add(request.NewErrParamMinLen("ClassicLoadBalancers", 1))
  29160. }
  29161. if invalidParams.Len() > 0 {
  29162. return invalidParams
  29163. }
  29164. return nil
  29165. }
  29166. // SetClassicLoadBalancers sets the ClassicLoadBalancers field's value.
  29167. func (s *ClassicLoadBalancersConfig) SetClassicLoadBalancers(v []*ClassicLoadBalancer) *ClassicLoadBalancersConfig {
  29168. s.ClassicLoadBalancers = v
  29169. return s
  29170. }
  29171. // Describes the state of a client certificate revocation list.
  29172. type ClientCertificateRevocationListStatus struct {
  29173. _ struct{} `type:"structure"`
  29174. // The state of the client certificate revocation list.
  29175. Code *string `locationName:"code" type:"string" enum:"ClientCertificateRevocationListStatusCode"`
  29176. // A message about the status of the client certificate revocation list, if
  29177. // applicable.
  29178. Message *string `locationName:"message" type:"string"`
  29179. }
  29180. // String returns the string representation
  29181. func (s ClientCertificateRevocationListStatus) String() string {
  29182. return awsutil.Prettify(s)
  29183. }
  29184. // GoString returns the string representation
  29185. func (s ClientCertificateRevocationListStatus) GoString() string {
  29186. return s.String()
  29187. }
  29188. // SetCode sets the Code field's value.
  29189. func (s *ClientCertificateRevocationListStatus) SetCode(v string) *ClientCertificateRevocationListStatus {
  29190. s.Code = &v
  29191. return s
  29192. }
  29193. // SetMessage sets the Message field's value.
  29194. func (s *ClientCertificateRevocationListStatus) SetMessage(v string) *ClientCertificateRevocationListStatus {
  29195. s.Message = &v
  29196. return s
  29197. }
  29198. // Describes the client-specific data.
  29199. type ClientData struct {
  29200. _ struct{} `type:"structure"`
  29201. // A user-defined comment about the disk upload.
  29202. Comment *string `type:"string"`
  29203. // The time that the disk upload ends.
  29204. UploadEnd *time.Time `type:"timestamp"`
  29205. // The size of the uploaded disk image, in GiB.
  29206. UploadSize *float64 `type:"double"`
  29207. // The time that the disk upload starts.
  29208. UploadStart *time.Time `type:"timestamp"`
  29209. }
  29210. // String returns the string representation
  29211. func (s ClientData) String() string {
  29212. return awsutil.Prettify(s)
  29213. }
  29214. // GoString returns the string representation
  29215. func (s ClientData) GoString() string {
  29216. return s.String()
  29217. }
  29218. // SetComment sets the Comment field's value.
  29219. func (s *ClientData) SetComment(v string) *ClientData {
  29220. s.Comment = &v
  29221. return s
  29222. }
  29223. // SetUploadEnd sets the UploadEnd field's value.
  29224. func (s *ClientData) SetUploadEnd(v time.Time) *ClientData {
  29225. s.UploadEnd = &v
  29226. return s
  29227. }
  29228. // SetUploadSize sets the UploadSize field's value.
  29229. func (s *ClientData) SetUploadSize(v float64) *ClientData {
  29230. s.UploadSize = &v
  29231. return s
  29232. }
  29233. // SetUploadStart sets the UploadStart field's value.
  29234. func (s *ClientData) SetUploadStart(v time.Time) *ClientData {
  29235. s.UploadStart = &v
  29236. return s
  29237. }
  29238. // Describes the authentication methods used by a Client VPN endpoint. Client
  29239. // VPN supports Active Directory and mutual authentication. For more information,
  29240. // see Authentication (vpn/latest/clientvpn-admin/authentication-authrization.html#client-authentication)
  29241. // in the AWS Client VPN Admin Guide.
  29242. type ClientVpnAuthentication struct {
  29243. _ struct{} `type:"structure"`
  29244. // Information about the Active Directory, if applicable.
  29245. ActiveDirectory *DirectoryServiceAuthentication `locationName:"activeDirectory" type:"structure"`
  29246. // Information about the authentication certificates, if applicable.
  29247. MutualAuthentication *CertificateAuthentication `locationName:"mutualAuthentication" type:"structure"`
  29248. // The authentication type used.
  29249. Type *string `locationName:"type" type:"string" enum:"ClientVpnAuthenticationType"`
  29250. }
  29251. // String returns the string representation
  29252. func (s ClientVpnAuthentication) String() string {
  29253. return awsutil.Prettify(s)
  29254. }
  29255. // GoString returns the string representation
  29256. func (s ClientVpnAuthentication) GoString() string {
  29257. return s.String()
  29258. }
  29259. // SetActiveDirectory sets the ActiveDirectory field's value.
  29260. func (s *ClientVpnAuthentication) SetActiveDirectory(v *DirectoryServiceAuthentication) *ClientVpnAuthentication {
  29261. s.ActiveDirectory = v
  29262. return s
  29263. }
  29264. // SetMutualAuthentication sets the MutualAuthentication field's value.
  29265. func (s *ClientVpnAuthentication) SetMutualAuthentication(v *CertificateAuthentication) *ClientVpnAuthentication {
  29266. s.MutualAuthentication = v
  29267. return s
  29268. }
  29269. // SetType sets the Type field's value.
  29270. func (s *ClientVpnAuthentication) SetType(v string) *ClientVpnAuthentication {
  29271. s.Type = &v
  29272. return s
  29273. }
  29274. // Describes the authentication method to be used by a Client VPN endpoint.
  29275. // Client VPN supports Active Directory and mutual authentication. For more
  29276. // information, see Authentication (vpn/latest/clientvpn-admin/authentication-authrization.html#client-authentication)
  29277. // in the AWS Client VPN Admin Guide.
  29278. type ClientVpnAuthenticationRequest struct {
  29279. _ struct{} `type:"structure"`
  29280. // Information about the Active Directory to be used, if applicable. You must
  29281. // provide this information if Type is directory-service-authentication.
  29282. ActiveDirectory *DirectoryServiceAuthenticationRequest `type:"structure"`
  29283. // Information about the authentication certificates to be used, if applicable.
  29284. // You must provide this information if Type is certificate-authentication.
  29285. MutualAuthentication *CertificateAuthenticationRequest `type:"structure"`
  29286. // The type of client authentication to be used. Specify certificate-authentication
  29287. // to use certificate-based authentication, or directory-service-authentication
  29288. // to use Active Directory authentication.
  29289. Type *string `type:"string" enum:"ClientVpnAuthenticationType"`
  29290. }
  29291. // String returns the string representation
  29292. func (s ClientVpnAuthenticationRequest) String() string {
  29293. return awsutil.Prettify(s)
  29294. }
  29295. // GoString returns the string representation
  29296. func (s ClientVpnAuthenticationRequest) GoString() string {
  29297. return s.String()
  29298. }
  29299. // SetActiveDirectory sets the ActiveDirectory field's value.
  29300. func (s *ClientVpnAuthenticationRequest) SetActiveDirectory(v *DirectoryServiceAuthenticationRequest) *ClientVpnAuthenticationRequest {
  29301. s.ActiveDirectory = v
  29302. return s
  29303. }
  29304. // SetMutualAuthentication sets the MutualAuthentication field's value.
  29305. func (s *ClientVpnAuthenticationRequest) SetMutualAuthentication(v *CertificateAuthenticationRequest) *ClientVpnAuthenticationRequest {
  29306. s.MutualAuthentication = v
  29307. return s
  29308. }
  29309. // SetType sets the Type field's value.
  29310. func (s *ClientVpnAuthenticationRequest) SetType(v string) *ClientVpnAuthenticationRequest {
  29311. s.Type = &v
  29312. return s
  29313. }
  29314. // Describes the state of an authorization rule.
  29315. type ClientVpnAuthorizationRuleStatus struct {
  29316. _ struct{} `type:"structure"`
  29317. // The state of the authorization rule.
  29318. Code *string `locationName:"code" type:"string" enum:"ClientVpnAuthorizationRuleStatusCode"`
  29319. // A message about the status of the authorization rule, if applicable.
  29320. Message *string `locationName:"message" type:"string"`
  29321. }
  29322. // String returns the string representation
  29323. func (s ClientVpnAuthorizationRuleStatus) String() string {
  29324. return awsutil.Prettify(s)
  29325. }
  29326. // GoString returns the string representation
  29327. func (s ClientVpnAuthorizationRuleStatus) GoString() string {
  29328. return s.String()
  29329. }
  29330. // SetCode sets the Code field's value.
  29331. func (s *ClientVpnAuthorizationRuleStatus) SetCode(v string) *ClientVpnAuthorizationRuleStatus {
  29332. s.Code = &v
  29333. return s
  29334. }
  29335. // SetMessage sets the Message field's value.
  29336. func (s *ClientVpnAuthorizationRuleStatus) SetMessage(v string) *ClientVpnAuthorizationRuleStatus {
  29337. s.Message = &v
  29338. return s
  29339. }
  29340. // Describes a client connection.
  29341. type ClientVpnConnection struct {
  29342. _ struct{} `type:"structure"`
  29343. // The IP address of the client.
  29344. ClientIp *string `locationName:"clientIp" type:"string"`
  29345. // The ID of the Client VPN endpoint to which the client is connected.
  29346. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  29347. // The common name associated with the client. This is either the name of the
  29348. // client certificate, or the Active Directory user name.
  29349. CommonName *string `locationName:"commonName" type:"string"`
  29350. // The date and time the client connection was terminated.
  29351. ConnectionEndTime *string `locationName:"connectionEndTime" type:"string"`
  29352. // The date and time the client connection was established.
  29353. ConnectionEstablishedTime *string `locationName:"connectionEstablishedTime" type:"string"`
  29354. // The ID of the client connection.
  29355. ConnectionId *string `locationName:"connectionId" type:"string"`
  29356. // The number of bytes received by the client.
  29357. EgressBytes *string `locationName:"egressBytes" type:"string"`
  29358. // The number of packets received by the client.
  29359. EgressPackets *string `locationName:"egressPackets" type:"string"`
  29360. // The number of bytes sent by the client.
  29361. IngressBytes *string `locationName:"ingressBytes" type:"string"`
  29362. // The number of packets sent by the client.
  29363. IngressPackets *string `locationName:"ingressPackets" type:"string"`
  29364. // The current state of the client connection.
  29365. Status *ClientVpnConnectionStatus `locationName:"status" type:"structure"`
  29366. // The current date and time.
  29367. Timestamp *string `locationName:"timestamp" type:"string"`
  29368. // The username of the client who established the client connection. This information
  29369. // is only provided if Active Directory client authentication is used.
  29370. Username *string `locationName:"username" type:"string"`
  29371. }
  29372. // String returns the string representation
  29373. func (s ClientVpnConnection) String() string {
  29374. return awsutil.Prettify(s)
  29375. }
  29376. // GoString returns the string representation
  29377. func (s ClientVpnConnection) GoString() string {
  29378. return s.String()
  29379. }
  29380. // SetClientIp sets the ClientIp field's value.
  29381. func (s *ClientVpnConnection) SetClientIp(v string) *ClientVpnConnection {
  29382. s.ClientIp = &v
  29383. return s
  29384. }
  29385. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  29386. func (s *ClientVpnConnection) SetClientVpnEndpointId(v string) *ClientVpnConnection {
  29387. s.ClientVpnEndpointId = &v
  29388. return s
  29389. }
  29390. // SetCommonName sets the CommonName field's value.
  29391. func (s *ClientVpnConnection) SetCommonName(v string) *ClientVpnConnection {
  29392. s.CommonName = &v
  29393. return s
  29394. }
  29395. // SetConnectionEndTime sets the ConnectionEndTime field's value.
  29396. func (s *ClientVpnConnection) SetConnectionEndTime(v string) *ClientVpnConnection {
  29397. s.ConnectionEndTime = &v
  29398. return s
  29399. }
  29400. // SetConnectionEstablishedTime sets the ConnectionEstablishedTime field's value.
  29401. func (s *ClientVpnConnection) SetConnectionEstablishedTime(v string) *ClientVpnConnection {
  29402. s.ConnectionEstablishedTime = &v
  29403. return s
  29404. }
  29405. // SetConnectionId sets the ConnectionId field's value.
  29406. func (s *ClientVpnConnection) SetConnectionId(v string) *ClientVpnConnection {
  29407. s.ConnectionId = &v
  29408. return s
  29409. }
  29410. // SetEgressBytes sets the EgressBytes field's value.
  29411. func (s *ClientVpnConnection) SetEgressBytes(v string) *ClientVpnConnection {
  29412. s.EgressBytes = &v
  29413. return s
  29414. }
  29415. // SetEgressPackets sets the EgressPackets field's value.
  29416. func (s *ClientVpnConnection) SetEgressPackets(v string) *ClientVpnConnection {
  29417. s.EgressPackets = &v
  29418. return s
  29419. }
  29420. // SetIngressBytes sets the IngressBytes field's value.
  29421. func (s *ClientVpnConnection) SetIngressBytes(v string) *ClientVpnConnection {
  29422. s.IngressBytes = &v
  29423. return s
  29424. }
  29425. // SetIngressPackets sets the IngressPackets field's value.
  29426. func (s *ClientVpnConnection) SetIngressPackets(v string) *ClientVpnConnection {
  29427. s.IngressPackets = &v
  29428. return s
  29429. }
  29430. // SetStatus sets the Status field's value.
  29431. func (s *ClientVpnConnection) SetStatus(v *ClientVpnConnectionStatus) *ClientVpnConnection {
  29432. s.Status = v
  29433. return s
  29434. }
  29435. // SetTimestamp sets the Timestamp field's value.
  29436. func (s *ClientVpnConnection) SetTimestamp(v string) *ClientVpnConnection {
  29437. s.Timestamp = &v
  29438. return s
  29439. }
  29440. // SetUsername sets the Username field's value.
  29441. func (s *ClientVpnConnection) SetUsername(v string) *ClientVpnConnection {
  29442. s.Username = &v
  29443. return s
  29444. }
  29445. // Describes the status of a client connection.
  29446. type ClientVpnConnectionStatus struct {
  29447. _ struct{} `type:"structure"`
  29448. // The state of the client connection.
  29449. Code *string `locationName:"code" type:"string" enum:"ClientVpnConnectionStatusCode"`
  29450. // A message about the status of the client connection, if applicable.
  29451. Message *string `locationName:"message" type:"string"`
  29452. }
  29453. // String returns the string representation
  29454. func (s ClientVpnConnectionStatus) String() string {
  29455. return awsutil.Prettify(s)
  29456. }
  29457. // GoString returns the string representation
  29458. func (s ClientVpnConnectionStatus) GoString() string {
  29459. return s.String()
  29460. }
  29461. // SetCode sets the Code field's value.
  29462. func (s *ClientVpnConnectionStatus) SetCode(v string) *ClientVpnConnectionStatus {
  29463. s.Code = &v
  29464. return s
  29465. }
  29466. // SetMessage sets the Message field's value.
  29467. func (s *ClientVpnConnectionStatus) SetMessage(v string) *ClientVpnConnectionStatus {
  29468. s.Message = &v
  29469. return s
  29470. }
  29471. // Describes a Client VPN endpoint.
  29472. type ClientVpnEndpoint struct {
  29473. _ struct{} `type:"structure"`
  29474. // Information about the associated target networks. A target network is a subnet
  29475. // in a VPC.
  29476. AssociatedTargetNetworks []*AssociatedTargetNetwork `locationName:"associatedTargetNetwork" locationNameList:"item" type:"list"`
  29477. // Information about the authentication method used by the Client VPN endpoint.
  29478. AuthenticationOptions []*ClientVpnAuthentication `locationName:"authenticationOptions" locationNameList:"item" type:"list"`
  29479. // The IPv4 address range, in CIDR notation, from which client IP addresses
  29480. // are assigned.
  29481. ClientCidrBlock *string `locationName:"clientCidrBlock" type:"string"`
  29482. // The ID of the Client VPN endpoint.
  29483. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  29484. // Information about the client connection logging options for the Client VPN
  29485. // endpoint.
  29486. ConnectionLogOptions *ConnectionLogResponseOptions `locationName:"connectionLogOptions" type:"structure"`
  29487. // The date and time the Client VPN endpoint was created.
  29488. CreationTime *string `locationName:"creationTime" type:"string"`
  29489. // The date and time the Client VPN endpoint was deleted, if applicable. Information
  29490. // about deleted Client VPN endpoints is retained for 24 hours, unless a new
  29491. // Client VPN is created with the same name.
  29492. DeletionTime *string `locationName:"deletionTime" type:"string"`
  29493. // A brief description of the endpoint.
  29494. Description *string `locationName:"description" type:"string"`
  29495. // The DNS name to be used by clients when establishing a connection.
  29496. DnsName *string `locationName:"dnsName" type:"string"`
  29497. // The ARN of the server certificate.
  29498. ServerCertificateArn *string `locationName:"serverCertificateArn" type:"string"`
  29499. // Indicates whether VPN split tunneling is supported.
  29500. SplitTunnel *bool `locationName:"splitTunnel" type:"boolean"`
  29501. // The current state of the Client VPN endpoint.
  29502. Status *ClientVpnEndpointStatus `locationName:"status" type:"structure"`
  29503. // The transport protocol used by the Client VPN endpoint.
  29504. TransportProtocol *string `locationName:"transportProtocol" type:"string" enum:"TransportProtocol"`
  29505. // The protocol used by the VPN session.
  29506. VpnProtocol *string `locationName:"vpnProtocol" type:"string" enum:"VpnProtocol"`
  29507. }
  29508. // String returns the string representation
  29509. func (s ClientVpnEndpoint) String() string {
  29510. return awsutil.Prettify(s)
  29511. }
  29512. // GoString returns the string representation
  29513. func (s ClientVpnEndpoint) GoString() string {
  29514. return s.String()
  29515. }
  29516. // SetAssociatedTargetNetworks sets the AssociatedTargetNetworks field's value.
  29517. func (s *ClientVpnEndpoint) SetAssociatedTargetNetworks(v []*AssociatedTargetNetwork) *ClientVpnEndpoint {
  29518. s.AssociatedTargetNetworks = v
  29519. return s
  29520. }
  29521. // SetAuthenticationOptions sets the AuthenticationOptions field's value.
  29522. func (s *ClientVpnEndpoint) SetAuthenticationOptions(v []*ClientVpnAuthentication) *ClientVpnEndpoint {
  29523. s.AuthenticationOptions = v
  29524. return s
  29525. }
  29526. // SetClientCidrBlock sets the ClientCidrBlock field's value.
  29527. func (s *ClientVpnEndpoint) SetClientCidrBlock(v string) *ClientVpnEndpoint {
  29528. s.ClientCidrBlock = &v
  29529. return s
  29530. }
  29531. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  29532. func (s *ClientVpnEndpoint) SetClientVpnEndpointId(v string) *ClientVpnEndpoint {
  29533. s.ClientVpnEndpointId = &v
  29534. return s
  29535. }
  29536. // SetConnectionLogOptions sets the ConnectionLogOptions field's value.
  29537. func (s *ClientVpnEndpoint) SetConnectionLogOptions(v *ConnectionLogResponseOptions) *ClientVpnEndpoint {
  29538. s.ConnectionLogOptions = v
  29539. return s
  29540. }
  29541. // SetCreationTime sets the CreationTime field's value.
  29542. func (s *ClientVpnEndpoint) SetCreationTime(v string) *ClientVpnEndpoint {
  29543. s.CreationTime = &v
  29544. return s
  29545. }
  29546. // SetDeletionTime sets the DeletionTime field's value.
  29547. func (s *ClientVpnEndpoint) SetDeletionTime(v string) *ClientVpnEndpoint {
  29548. s.DeletionTime = &v
  29549. return s
  29550. }
  29551. // SetDescription sets the Description field's value.
  29552. func (s *ClientVpnEndpoint) SetDescription(v string) *ClientVpnEndpoint {
  29553. s.Description = &v
  29554. return s
  29555. }
  29556. // SetDnsName sets the DnsName field's value.
  29557. func (s *ClientVpnEndpoint) SetDnsName(v string) *ClientVpnEndpoint {
  29558. s.DnsName = &v
  29559. return s
  29560. }
  29561. // SetServerCertificateArn sets the ServerCertificateArn field's value.
  29562. func (s *ClientVpnEndpoint) SetServerCertificateArn(v string) *ClientVpnEndpoint {
  29563. s.ServerCertificateArn = &v
  29564. return s
  29565. }
  29566. // SetSplitTunnel sets the SplitTunnel field's value.
  29567. func (s *ClientVpnEndpoint) SetSplitTunnel(v bool) *ClientVpnEndpoint {
  29568. s.SplitTunnel = &v
  29569. return s
  29570. }
  29571. // SetStatus sets the Status field's value.
  29572. func (s *ClientVpnEndpoint) SetStatus(v *ClientVpnEndpointStatus) *ClientVpnEndpoint {
  29573. s.Status = v
  29574. return s
  29575. }
  29576. // SetTransportProtocol sets the TransportProtocol field's value.
  29577. func (s *ClientVpnEndpoint) SetTransportProtocol(v string) *ClientVpnEndpoint {
  29578. s.TransportProtocol = &v
  29579. return s
  29580. }
  29581. // SetVpnProtocol sets the VpnProtocol field's value.
  29582. func (s *ClientVpnEndpoint) SetVpnProtocol(v string) *ClientVpnEndpoint {
  29583. s.VpnProtocol = &v
  29584. return s
  29585. }
  29586. // Describes the state of a Client VPN endpoint.
  29587. type ClientVpnEndpointStatus struct {
  29588. _ struct{} `type:"structure"`
  29589. // The state of the Client VPN endpoint. Possible states include:
  29590. //
  29591. // * pending-associate - The Client VPN endpoint has been created but no
  29592. // target networks have been associated. The Client VPN endpoint cannot accept
  29593. // connections.
  29594. //
  29595. // * available - The Client VPN endpoint has been created and a target network
  29596. // has been associated. The Client VPN endpoint can accept connections.
  29597. //
  29598. // * deleting - The Client VPN endpoint is being deleted. The Client VPN
  29599. // endpoint cannot accept connections.
  29600. //
  29601. // * deleted - The Client VPN endpoint has been deleted. The Client VPN endpoint
  29602. // cannot accept connections.
  29603. Code *string `locationName:"code" type:"string" enum:"ClientVpnEndpointStatusCode"`
  29604. // A message about the status of the Client VPN endpoint.
  29605. Message *string `locationName:"message" type:"string"`
  29606. }
  29607. // String returns the string representation
  29608. func (s ClientVpnEndpointStatus) String() string {
  29609. return awsutil.Prettify(s)
  29610. }
  29611. // GoString returns the string representation
  29612. func (s ClientVpnEndpointStatus) GoString() string {
  29613. return s.String()
  29614. }
  29615. // SetCode sets the Code field's value.
  29616. func (s *ClientVpnEndpointStatus) SetCode(v string) *ClientVpnEndpointStatus {
  29617. s.Code = &v
  29618. return s
  29619. }
  29620. // SetMessage sets the Message field's value.
  29621. func (s *ClientVpnEndpointStatus) SetMessage(v string) *ClientVpnEndpointStatus {
  29622. s.Message = &v
  29623. return s
  29624. }
  29625. // Information about a Client VPN endpoint route.
  29626. type ClientVpnRoute struct {
  29627. _ struct{} `type:"structure"`
  29628. // The ID of the Client VPN endpoint with which the route is associated.
  29629. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  29630. // A brief description of the route.
  29631. Description *string `locationName:"description" type:"string"`
  29632. // The IPv4 address range, in CIDR notation, of the route destination.
  29633. DestinationCidr *string `locationName:"destinationCidr" type:"string"`
  29634. // Indicates how the route was associated with the Client VPN endpoint. associate
  29635. // indicates that the route was automatically added when the target network
  29636. // was associated with the Client VPN endpoint. add-route indicates that the
  29637. // route was manually added using the CreateClientVpnRoute action.
  29638. Origin *string `locationName:"origin" type:"string"`
  29639. // The current state of the route.
  29640. Status *ClientVpnRouteStatus `locationName:"status" type:"structure"`
  29641. // The ID of the subnet through which traffic is routed.
  29642. TargetSubnet *string `locationName:"targetSubnet" type:"string"`
  29643. // The route type.
  29644. Type *string `locationName:"type" type:"string"`
  29645. }
  29646. // String returns the string representation
  29647. func (s ClientVpnRoute) String() string {
  29648. return awsutil.Prettify(s)
  29649. }
  29650. // GoString returns the string representation
  29651. func (s ClientVpnRoute) GoString() string {
  29652. return s.String()
  29653. }
  29654. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  29655. func (s *ClientVpnRoute) SetClientVpnEndpointId(v string) *ClientVpnRoute {
  29656. s.ClientVpnEndpointId = &v
  29657. return s
  29658. }
  29659. // SetDescription sets the Description field's value.
  29660. func (s *ClientVpnRoute) SetDescription(v string) *ClientVpnRoute {
  29661. s.Description = &v
  29662. return s
  29663. }
  29664. // SetDestinationCidr sets the DestinationCidr field's value.
  29665. func (s *ClientVpnRoute) SetDestinationCidr(v string) *ClientVpnRoute {
  29666. s.DestinationCidr = &v
  29667. return s
  29668. }
  29669. // SetOrigin sets the Origin field's value.
  29670. func (s *ClientVpnRoute) SetOrigin(v string) *ClientVpnRoute {
  29671. s.Origin = &v
  29672. return s
  29673. }
  29674. // SetStatus sets the Status field's value.
  29675. func (s *ClientVpnRoute) SetStatus(v *ClientVpnRouteStatus) *ClientVpnRoute {
  29676. s.Status = v
  29677. return s
  29678. }
  29679. // SetTargetSubnet sets the TargetSubnet field's value.
  29680. func (s *ClientVpnRoute) SetTargetSubnet(v string) *ClientVpnRoute {
  29681. s.TargetSubnet = &v
  29682. return s
  29683. }
  29684. // SetType sets the Type field's value.
  29685. func (s *ClientVpnRoute) SetType(v string) *ClientVpnRoute {
  29686. s.Type = &v
  29687. return s
  29688. }
  29689. // Describes the state of a Client VPN endpoint route.
  29690. type ClientVpnRouteStatus struct {
  29691. _ struct{} `type:"structure"`
  29692. // The state of the Client VPN endpoint route.
  29693. Code *string `locationName:"code" type:"string" enum:"ClientVpnRouteStatusCode"`
  29694. // A message about the status of the Client VPN endpoint route, if applicable.
  29695. Message *string `locationName:"message" type:"string"`
  29696. }
  29697. // String returns the string representation
  29698. func (s ClientVpnRouteStatus) String() string {
  29699. return awsutil.Prettify(s)
  29700. }
  29701. // GoString returns the string representation
  29702. func (s ClientVpnRouteStatus) GoString() string {
  29703. return s.String()
  29704. }
  29705. // SetCode sets the Code field's value.
  29706. func (s *ClientVpnRouteStatus) SetCode(v string) *ClientVpnRouteStatus {
  29707. s.Code = &v
  29708. return s
  29709. }
  29710. // SetMessage sets the Message field's value.
  29711. func (s *ClientVpnRouteStatus) SetMessage(v string) *ClientVpnRouteStatus {
  29712. s.Message = &v
  29713. return s
  29714. }
  29715. type ConfirmProductInstanceInput struct {
  29716. _ struct{} `type:"structure"`
  29717. // Checks whether you have the required permissions for the action, without
  29718. // actually making the request, and provides an error response. If you have
  29719. // the required permissions, the error response is DryRunOperation. Otherwise,
  29720. // it is UnauthorizedOperation.
  29721. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29722. // The ID of the instance.
  29723. //
  29724. // InstanceId is a required field
  29725. InstanceId *string `type:"string" required:"true"`
  29726. // The product code. This must be a product code that you own.
  29727. //
  29728. // ProductCode is a required field
  29729. ProductCode *string `type:"string" required:"true"`
  29730. }
  29731. // String returns the string representation
  29732. func (s ConfirmProductInstanceInput) String() string {
  29733. return awsutil.Prettify(s)
  29734. }
  29735. // GoString returns the string representation
  29736. func (s ConfirmProductInstanceInput) GoString() string {
  29737. return s.String()
  29738. }
  29739. // Validate inspects the fields of the type to determine if they are valid.
  29740. func (s *ConfirmProductInstanceInput) Validate() error {
  29741. invalidParams := request.ErrInvalidParams{Context: "ConfirmProductInstanceInput"}
  29742. if s.InstanceId == nil {
  29743. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  29744. }
  29745. if s.ProductCode == nil {
  29746. invalidParams.Add(request.NewErrParamRequired("ProductCode"))
  29747. }
  29748. if invalidParams.Len() > 0 {
  29749. return invalidParams
  29750. }
  29751. return nil
  29752. }
  29753. // SetDryRun sets the DryRun field's value.
  29754. func (s *ConfirmProductInstanceInput) SetDryRun(v bool) *ConfirmProductInstanceInput {
  29755. s.DryRun = &v
  29756. return s
  29757. }
  29758. // SetInstanceId sets the InstanceId field's value.
  29759. func (s *ConfirmProductInstanceInput) SetInstanceId(v string) *ConfirmProductInstanceInput {
  29760. s.InstanceId = &v
  29761. return s
  29762. }
  29763. // SetProductCode sets the ProductCode field's value.
  29764. func (s *ConfirmProductInstanceInput) SetProductCode(v string) *ConfirmProductInstanceInput {
  29765. s.ProductCode = &v
  29766. return s
  29767. }
  29768. type ConfirmProductInstanceOutput struct {
  29769. _ struct{} `type:"structure"`
  29770. // The AWS account ID of the instance owner. This is only present if the product
  29771. // code is attached to the instance.
  29772. OwnerId *string `locationName:"ownerId" type:"string"`
  29773. // The return value of the request. Returns true if the specified product code
  29774. // is owned by the requester and associated with the specified instance.
  29775. Return *bool `locationName:"return" type:"boolean"`
  29776. }
  29777. // String returns the string representation
  29778. func (s ConfirmProductInstanceOutput) String() string {
  29779. return awsutil.Prettify(s)
  29780. }
  29781. // GoString returns the string representation
  29782. func (s ConfirmProductInstanceOutput) GoString() string {
  29783. return s.String()
  29784. }
  29785. // SetOwnerId sets the OwnerId field's value.
  29786. func (s *ConfirmProductInstanceOutput) SetOwnerId(v string) *ConfirmProductInstanceOutput {
  29787. s.OwnerId = &v
  29788. return s
  29789. }
  29790. // SetReturn sets the Return field's value.
  29791. func (s *ConfirmProductInstanceOutput) SetReturn(v bool) *ConfirmProductInstanceOutput {
  29792. s.Return = &v
  29793. return s
  29794. }
  29795. // Describes the client connection logging options for the Client VPN endpoint.
  29796. type ConnectionLogOptions struct {
  29797. _ struct{} `type:"structure"`
  29798. // The name of the CloudWatch Logs log group.
  29799. CloudwatchLogGroup *string `type:"string"`
  29800. // The name of the CloudWatch Logs log stream to which the connection data is
  29801. // published.
  29802. CloudwatchLogStream *string `type:"string"`
  29803. // Indicates whether connection logging is enabled.
  29804. Enabled *bool `type:"boolean"`
  29805. }
  29806. // String returns the string representation
  29807. func (s ConnectionLogOptions) String() string {
  29808. return awsutil.Prettify(s)
  29809. }
  29810. // GoString returns the string representation
  29811. func (s ConnectionLogOptions) GoString() string {
  29812. return s.String()
  29813. }
  29814. // SetCloudwatchLogGroup sets the CloudwatchLogGroup field's value.
  29815. func (s *ConnectionLogOptions) SetCloudwatchLogGroup(v string) *ConnectionLogOptions {
  29816. s.CloudwatchLogGroup = &v
  29817. return s
  29818. }
  29819. // SetCloudwatchLogStream sets the CloudwatchLogStream field's value.
  29820. func (s *ConnectionLogOptions) SetCloudwatchLogStream(v string) *ConnectionLogOptions {
  29821. s.CloudwatchLogStream = &v
  29822. return s
  29823. }
  29824. // SetEnabled sets the Enabled field's value.
  29825. func (s *ConnectionLogOptions) SetEnabled(v bool) *ConnectionLogOptions {
  29826. s.Enabled = &v
  29827. return s
  29828. }
  29829. // Information about the client connection logging options for a Client VPN
  29830. // endpoint.
  29831. type ConnectionLogResponseOptions struct {
  29832. _ struct{} `type:"structure"`
  29833. // The name of the Amazon CloudWatch Logs log group to which connection logging
  29834. // data is published.
  29835. CloudwatchLogGroup *string `type:"string"`
  29836. // The name of the Amazon CloudWatch Logs log stream to which connection logging
  29837. // data is published.
  29838. CloudwatchLogStream *string `type:"string"`
  29839. // Indicates whether client connection logging is enabled for the Client VPN
  29840. // endpoint.
  29841. Enabled *bool `type:"boolean"`
  29842. }
  29843. // String returns the string representation
  29844. func (s ConnectionLogResponseOptions) String() string {
  29845. return awsutil.Prettify(s)
  29846. }
  29847. // GoString returns the string representation
  29848. func (s ConnectionLogResponseOptions) GoString() string {
  29849. return s.String()
  29850. }
  29851. // SetCloudwatchLogGroup sets the CloudwatchLogGroup field's value.
  29852. func (s *ConnectionLogResponseOptions) SetCloudwatchLogGroup(v string) *ConnectionLogResponseOptions {
  29853. s.CloudwatchLogGroup = &v
  29854. return s
  29855. }
  29856. // SetCloudwatchLogStream sets the CloudwatchLogStream field's value.
  29857. func (s *ConnectionLogResponseOptions) SetCloudwatchLogStream(v string) *ConnectionLogResponseOptions {
  29858. s.CloudwatchLogStream = &v
  29859. return s
  29860. }
  29861. // SetEnabled sets the Enabled field's value.
  29862. func (s *ConnectionLogResponseOptions) SetEnabled(v bool) *ConnectionLogResponseOptions {
  29863. s.Enabled = &v
  29864. return s
  29865. }
  29866. // Describes a connection notification for a VPC endpoint or VPC endpoint service.
  29867. type ConnectionNotification struct {
  29868. _ struct{} `type:"structure"`
  29869. // The events for the notification. Valid values are Accept, Connect, Delete,
  29870. // and Reject.
  29871. ConnectionEvents []*string `locationName:"connectionEvents" locationNameList:"item" type:"list"`
  29872. // The ARN of the SNS topic for the notification.
  29873. ConnectionNotificationArn *string `locationName:"connectionNotificationArn" type:"string"`
  29874. // The ID of the notification.
  29875. ConnectionNotificationId *string `locationName:"connectionNotificationId" type:"string"`
  29876. // The state of the notification.
  29877. ConnectionNotificationState *string `locationName:"connectionNotificationState" type:"string" enum:"ConnectionNotificationState"`
  29878. // The type of notification.
  29879. ConnectionNotificationType *string `locationName:"connectionNotificationType" type:"string" enum:"ConnectionNotificationType"`
  29880. // The ID of the endpoint service.
  29881. ServiceId *string `locationName:"serviceId" type:"string"`
  29882. // The ID of the VPC endpoint.
  29883. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  29884. }
  29885. // String returns the string representation
  29886. func (s ConnectionNotification) String() string {
  29887. return awsutil.Prettify(s)
  29888. }
  29889. // GoString returns the string representation
  29890. func (s ConnectionNotification) GoString() string {
  29891. return s.String()
  29892. }
  29893. // SetConnectionEvents sets the ConnectionEvents field's value.
  29894. func (s *ConnectionNotification) SetConnectionEvents(v []*string) *ConnectionNotification {
  29895. s.ConnectionEvents = v
  29896. return s
  29897. }
  29898. // SetConnectionNotificationArn sets the ConnectionNotificationArn field's value.
  29899. func (s *ConnectionNotification) SetConnectionNotificationArn(v string) *ConnectionNotification {
  29900. s.ConnectionNotificationArn = &v
  29901. return s
  29902. }
  29903. // SetConnectionNotificationId sets the ConnectionNotificationId field's value.
  29904. func (s *ConnectionNotification) SetConnectionNotificationId(v string) *ConnectionNotification {
  29905. s.ConnectionNotificationId = &v
  29906. return s
  29907. }
  29908. // SetConnectionNotificationState sets the ConnectionNotificationState field's value.
  29909. func (s *ConnectionNotification) SetConnectionNotificationState(v string) *ConnectionNotification {
  29910. s.ConnectionNotificationState = &v
  29911. return s
  29912. }
  29913. // SetConnectionNotificationType sets the ConnectionNotificationType field's value.
  29914. func (s *ConnectionNotification) SetConnectionNotificationType(v string) *ConnectionNotification {
  29915. s.ConnectionNotificationType = &v
  29916. return s
  29917. }
  29918. // SetServiceId sets the ServiceId field's value.
  29919. func (s *ConnectionNotification) SetServiceId(v string) *ConnectionNotification {
  29920. s.ServiceId = &v
  29921. return s
  29922. }
  29923. // SetVpcEndpointId sets the VpcEndpointId field's value.
  29924. func (s *ConnectionNotification) SetVpcEndpointId(v string) *ConnectionNotification {
  29925. s.VpcEndpointId = &v
  29926. return s
  29927. }
  29928. // Describes a conversion task.
  29929. type ConversionTask struct {
  29930. _ struct{} `type:"structure"`
  29931. // The ID of the conversion task.
  29932. ConversionTaskId *string `locationName:"conversionTaskId" type:"string"`
  29933. // The time when the task expires. If the upload isn't complete before the expiration
  29934. // time, we automatically cancel the task.
  29935. ExpirationTime *string `locationName:"expirationTime" type:"string"`
  29936. // If the task is for importing an instance, this contains information about
  29937. // the import instance task.
  29938. ImportInstance *ImportInstanceTaskDetails `locationName:"importInstance" type:"structure"`
  29939. // If the task is for importing a volume, this contains information about the
  29940. // import volume task.
  29941. ImportVolume *ImportVolumeTaskDetails `locationName:"importVolume" type:"structure"`
  29942. // The state of the conversion task.
  29943. State *string `locationName:"state" type:"string" enum:"ConversionTaskState"`
  29944. // The status message related to the conversion task.
  29945. StatusMessage *string `locationName:"statusMessage" type:"string"`
  29946. // Any tags assigned to the task.
  29947. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  29948. }
  29949. // String returns the string representation
  29950. func (s ConversionTask) String() string {
  29951. return awsutil.Prettify(s)
  29952. }
  29953. // GoString returns the string representation
  29954. func (s ConversionTask) GoString() string {
  29955. return s.String()
  29956. }
  29957. // SetConversionTaskId sets the ConversionTaskId field's value.
  29958. func (s *ConversionTask) SetConversionTaskId(v string) *ConversionTask {
  29959. s.ConversionTaskId = &v
  29960. return s
  29961. }
  29962. // SetExpirationTime sets the ExpirationTime field's value.
  29963. func (s *ConversionTask) SetExpirationTime(v string) *ConversionTask {
  29964. s.ExpirationTime = &v
  29965. return s
  29966. }
  29967. // SetImportInstance sets the ImportInstance field's value.
  29968. func (s *ConversionTask) SetImportInstance(v *ImportInstanceTaskDetails) *ConversionTask {
  29969. s.ImportInstance = v
  29970. return s
  29971. }
  29972. // SetImportVolume sets the ImportVolume field's value.
  29973. func (s *ConversionTask) SetImportVolume(v *ImportVolumeTaskDetails) *ConversionTask {
  29974. s.ImportVolume = v
  29975. return s
  29976. }
  29977. // SetState sets the State field's value.
  29978. func (s *ConversionTask) SetState(v string) *ConversionTask {
  29979. s.State = &v
  29980. return s
  29981. }
  29982. // SetStatusMessage sets the StatusMessage field's value.
  29983. func (s *ConversionTask) SetStatusMessage(v string) *ConversionTask {
  29984. s.StatusMessage = &v
  29985. return s
  29986. }
  29987. // SetTags sets the Tags field's value.
  29988. func (s *ConversionTask) SetTags(v []*Tag) *ConversionTask {
  29989. s.Tags = v
  29990. return s
  29991. }
  29992. type CopyFpgaImageInput struct {
  29993. _ struct{} `type:"structure"`
  29994. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  29995. // of the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  29996. ClientToken *string `type:"string"`
  29997. // The description for the new AFI.
  29998. Description *string `type:"string"`
  29999. // Checks whether you have the required permissions for the action, without
  30000. // actually making the request, and provides an error response. If you have
  30001. // the required permissions, the error response is DryRunOperation. Otherwise,
  30002. // it is UnauthorizedOperation.
  30003. DryRun *bool `type:"boolean"`
  30004. // The name for the new AFI. The default is the name of the source AFI.
  30005. Name *string `type:"string"`
  30006. // The ID of the source AFI.
  30007. //
  30008. // SourceFpgaImageId is a required field
  30009. SourceFpgaImageId *string `type:"string" required:"true"`
  30010. // The region that contains the source AFI.
  30011. //
  30012. // SourceRegion is a required field
  30013. SourceRegion *string `type:"string" required:"true"`
  30014. }
  30015. // String returns the string representation
  30016. func (s CopyFpgaImageInput) String() string {
  30017. return awsutil.Prettify(s)
  30018. }
  30019. // GoString returns the string representation
  30020. func (s CopyFpgaImageInput) GoString() string {
  30021. return s.String()
  30022. }
  30023. // Validate inspects the fields of the type to determine if they are valid.
  30024. func (s *CopyFpgaImageInput) Validate() error {
  30025. invalidParams := request.ErrInvalidParams{Context: "CopyFpgaImageInput"}
  30026. if s.SourceFpgaImageId == nil {
  30027. invalidParams.Add(request.NewErrParamRequired("SourceFpgaImageId"))
  30028. }
  30029. if s.SourceRegion == nil {
  30030. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  30031. }
  30032. if invalidParams.Len() > 0 {
  30033. return invalidParams
  30034. }
  30035. return nil
  30036. }
  30037. // SetClientToken sets the ClientToken field's value.
  30038. func (s *CopyFpgaImageInput) SetClientToken(v string) *CopyFpgaImageInput {
  30039. s.ClientToken = &v
  30040. return s
  30041. }
  30042. // SetDescription sets the Description field's value.
  30043. func (s *CopyFpgaImageInput) SetDescription(v string) *CopyFpgaImageInput {
  30044. s.Description = &v
  30045. return s
  30046. }
  30047. // SetDryRun sets the DryRun field's value.
  30048. func (s *CopyFpgaImageInput) SetDryRun(v bool) *CopyFpgaImageInput {
  30049. s.DryRun = &v
  30050. return s
  30051. }
  30052. // SetName sets the Name field's value.
  30053. func (s *CopyFpgaImageInput) SetName(v string) *CopyFpgaImageInput {
  30054. s.Name = &v
  30055. return s
  30056. }
  30057. // SetSourceFpgaImageId sets the SourceFpgaImageId field's value.
  30058. func (s *CopyFpgaImageInput) SetSourceFpgaImageId(v string) *CopyFpgaImageInput {
  30059. s.SourceFpgaImageId = &v
  30060. return s
  30061. }
  30062. // SetSourceRegion sets the SourceRegion field's value.
  30063. func (s *CopyFpgaImageInput) SetSourceRegion(v string) *CopyFpgaImageInput {
  30064. s.SourceRegion = &v
  30065. return s
  30066. }
  30067. type CopyFpgaImageOutput struct {
  30068. _ struct{} `type:"structure"`
  30069. // The ID of the new AFI.
  30070. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  30071. }
  30072. // String returns the string representation
  30073. func (s CopyFpgaImageOutput) String() string {
  30074. return awsutil.Prettify(s)
  30075. }
  30076. // GoString returns the string representation
  30077. func (s CopyFpgaImageOutput) GoString() string {
  30078. return s.String()
  30079. }
  30080. // SetFpgaImageId sets the FpgaImageId field's value.
  30081. func (s *CopyFpgaImageOutput) SetFpgaImageId(v string) *CopyFpgaImageOutput {
  30082. s.FpgaImageId = &v
  30083. return s
  30084. }
  30085. // Contains the parameters for CopyImage.
  30086. type CopyImageInput struct {
  30087. _ struct{} `type:"structure"`
  30088. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  30089. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  30090. // in the Amazon Elastic Compute Cloud User Guide.
  30091. ClientToken *string `type:"string"`
  30092. // A description for the new AMI in the destination region.
  30093. Description *string `type:"string"`
  30094. // Checks whether you have the required permissions for the action, without
  30095. // actually making the request, and provides an error response. If you have
  30096. // the required permissions, the error response is DryRunOperation. Otherwise,
  30097. // it is UnauthorizedOperation.
  30098. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30099. // Specifies whether the destination snapshots of the copied image should be
  30100. // encrypted. You can encrypt a copy of an unencrypted snapshot, but you cannot
  30101. // create an unencrypted copy of an encrypted snapshot. The default CMK for
  30102. // EBS is used unless you specify a non-default AWS Key Management Service (AWS
  30103. // KMS) CMK using KmsKeyId. For more information, see Amazon EBS Encryption
  30104. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in
  30105. // the Amazon Elastic Compute Cloud User Guide.
  30106. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  30107. // An identifier for the AWS Key Management Service (AWS KMS) customer master
  30108. // key (CMK) to use when creating the encrypted volume. This parameter is only
  30109. // required if you want to use a non-default CMK; if this parameter is not specified,
  30110. // the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted
  30111. // flag must also be set.
  30112. //
  30113. // The CMK identifier may be provided in any of the following formats:
  30114. //
  30115. // * Key ID
  30116. //
  30117. // * Key alias, in the form alias/ExampleAlias
  30118. //
  30119. // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
  30120. // by the region of the CMK, the AWS account ID of the CMK owner, the key
  30121. // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  30122. //
  30123. //
  30124. // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
  30125. // followed by the region of the CMK, the AWS account ID of the CMK owner,
  30126. // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
  30127. //
  30128. //
  30129. // AWS parses KmsKeyId asynchronously, meaning that the action you call may
  30130. // appear to complete even though you provided an invalid identifier. This action
  30131. // will eventually report failure.
  30132. //
  30133. // The specified CMK must exist in the region that the snapshot is being copied
  30134. // to.
  30135. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  30136. // The name of the new AMI in the destination region.
  30137. //
  30138. // Name is a required field
  30139. Name *string `type:"string" required:"true"`
  30140. // The ID of the AMI to copy.
  30141. //
  30142. // SourceImageId is a required field
  30143. SourceImageId *string `type:"string" required:"true"`
  30144. // The name of the region that contains the AMI to copy.
  30145. //
  30146. // SourceRegion is a required field
  30147. SourceRegion *string `type:"string" required:"true"`
  30148. }
  30149. // String returns the string representation
  30150. func (s CopyImageInput) String() string {
  30151. return awsutil.Prettify(s)
  30152. }
  30153. // GoString returns the string representation
  30154. func (s CopyImageInput) GoString() string {
  30155. return s.String()
  30156. }
  30157. // Validate inspects the fields of the type to determine if they are valid.
  30158. func (s *CopyImageInput) Validate() error {
  30159. invalidParams := request.ErrInvalidParams{Context: "CopyImageInput"}
  30160. if s.Name == nil {
  30161. invalidParams.Add(request.NewErrParamRequired("Name"))
  30162. }
  30163. if s.SourceImageId == nil {
  30164. invalidParams.Add(request.NewErrParamRequired("SourceImageId"))
  30165. }
  30166. if s.SourceRegion == nil {
  30167. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  30168. }
  30169. if invalidParams.Len() > 0 {
  30170. return invalidParams
  30171. }
  30172. return nil
  30173. }
  30174. // SetClientToken sets the ClientToken field's value.
  30175. func (s *CopyImageInput) SetClientToken(v string) *CopyImageInput {
  30176. s.ClientToken = &v
  30177. return s
  30178. }
  30179. // SetDescription sets the Description field's value.
  30180. func (s *CopyImageInput) SetDescription(v string) *CopyImageInput {
  30181. s.Description = &v
  30182. return s
  30183. }
  30184. // SetDryRun sets the DryRun field's value.
  30185. func (s *CopyImageInput) SetDryRun(v bool) *CopyImageInput {
  30186. s.DryRun = &v
  30187. return s
  30188. }
  30189. // SetEncrypted sets the Encrypted field's value.
  30190. func (s *CopyImageInput) SetEncrypted(v bool) *CopyImageInput {
  30191. s.Encrypted = &v
  30192. return s
  30193. }
  30194. // SetKmsKeyId sets the KmsKeyId field's value.
  30195. func (s *CopyImageInput) SetKmsKeyId(v string) *CopyImageInput {
  30196. s.KmsKeyId = &v
  30197. return s
  30198. }
  30199. // SetName sets the Name field's value.
  30200. func (s *CopyImageInput) SetName(v string) *CopyImageInput {
  30201. s.Name = &v
  30202. return s
  30203. }
  30204. // SetSourceImageId sets the SourceImageId field's value.
  30205. func (s *CopyImageInput) SetSourceImageId(v string) *CopyImageInput {
  30206. s.SourceImageId = &v
  30207. return s
  30208. }
  30209. // SetSourceRegion sets the SourceRegion field's value.
  30210. func (s *CopyImageInput) SetSourceRegion(v string) *CopyImageInput {
  30211. s.SourceRegion = &v
  30212. return s
  30213. }
  30214. // Contains the output of CopyImage.
  30215. type CopyImageOutput struct {
  30216. _ struct{} `type:"structure"`
  30217. // The ID of the new AMI.
  30218. ImageId *string `locationName:"imageId" type:"string"`
  30219. }
  30220. // String returns the string representation
  30221. func (s CopyImageOutput) String() string {
  30222. return awsutil.Prettify(s)
  30223. }
  30224. // GoString returns the string representation
  30225. func (s CopyImageOutput) GoString() string {
  30226. return s.String()
  30227. }
  30228. // SetImageId sets the ImageId field's value.
  30229. func (s *CopyImageOutput) SetImageId(v string) *CopyImageOutput {
  30230. s.ImageId = &v
  30231. return s
  30232. }
  30233. // Contains the parameters for CopySnapshot.
  30234. type CopySnapshotInput struct {
  30235. _ struct{} `type:"structure"`
  30236. // A description for the EBS snapshot.
  30237. Description *string `type:"string"`
  30238. // The destination region to use in the PresignedUrl parameter of a snapshot
  30239. // copy operation. This parameter is only valid for specifying the destination
  30240. // region in a PresignedUrl parameter, where it is required.
  30241. //
  30242. // The snapshot copy is sent to the regional endpoint that you sent the HTTP
  30243. // request to (for example, ec2.us-east-1.amazonaws.com). With the AWS CLI,
  30244. // this is specified using the --region parameter or the default region in your
  30245. // AWS configuration file.
  30246. DestinationRegion *string `locationName:"destinationRegion" type:"string"`
  30247. // Checks whether you have the required permissions for the action, without
  30248. // actually making the request, and provides an error response. If you have
  30249. // the required permissions, the error response is DryRunOperation. Otherwise,
  30250. // it is UnauthorizedOperation.
  30251. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30252. // Specifies whether the destination snapshot should be encrypted. You can encrypt
  30253. // a copy of an unencrypted snapshot, but you cannot use it to create an unencrypted
  30254. // copy of an encrypted snapshot. Your default CMK for EBS is used unless you
  30255. // specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId.
  30256. // For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  30257. // in the Amazon Elastic Compute Cloud User Guide.
  30258. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  30259. // An identifier for the AWS Key Management Service (AWS KMS) customer master
  30260. // key (CMK) to use when creating the encrypted volume. This parameter is only
  30261. // required if you want to use a non-default CMK; if this parameter is not specified,
  30262. // the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted
  30263. // flag must also be set.
  30264. //
  30265. // The CMK identifier may be provided in any of the following formats:
  30266. //
  30267. // * Key ID
  30268. //
  30269. // * Key alias
  30270. //
  30271. // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
  30272. // by the region of the CMK, the AWS account ID of the CMK owner, the key
  30273. // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  30274. //
  30275. //
  30276. // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
  30277. // followed by the region of the CMK, the AWS account ID of the CMK owner,
  30278. // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
  30279. //
  30280. //
  30281. // AWS parses KmsKeyId asynchronously, meaning that the action you call may
  30282. // appear to complete even though you provided an invalid identifier. The action
  30283. // will eventually fail.
  30284. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  30285. // When you copy an encrypted source snapshot using the Amazon EC2 Query API,
  30286. // you must supply a pre-signed URL. This parameter is optional for unencrypted
  30287. // snapshots. For more information, see Query Requests (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html).
  30288. //
  30289. // The PresignedUrl should use the snapshot source endpoint, the CopySnapshot
  30290. // action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion
  30291. // parameters. The PresignedUrl must be signed using AWS Signature Version 4.
  30292. // Because EBS snapshots are stored in Amazon S3, the signing algorithm for
  30293. // this parameter uses the same logic that is described in Authenticating Requests
  30294. // by Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html)
  30295. // in the Amazon Simple Storage Service API Reference. An invalid or improperly
  30296. // signed PresignedUrl will cause the copy operation to fail asynchronously,
  30297. // and the snapshot will move to an error state.
  30298. PresignedUrl *string `locationName:"presignedUrl" type:"string"`
  30299. // The ID of the region that contains the snapshot to be copied.
  30300. //
  30301. // SourceRegion is a required field
  30302. SourceRegion *string `type:"string" required:"true"`
  30303. // The ID of the EBS snapshot to copy.
  30304. //
  30305. // SourceSnapshotId is a required field
  30306. SourceSnapshotId *string `type:"string" required:"true"`
  30307. }
  30308. // String returns the string representation
  30309. func (s CopySnapshotInput) String() string {
  30310. return awsutil.Prettify(s)
  30311. }
  30312. // GoString returns the string representation
  30313. func (s CopySnapshotInput) GoString() string {
  30314. return s.String()
  30315. }
  30316. // Validate inspects the fields of the type to determine if they are valid.
  30317. func (s *CopySnapshotInput) Validate() error {
  30318. invalidParams := request.ErrInvalidParams{Context: "CopySnapshotInput"}
  30319. if s.SourceRegion == nil {
  30320. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  30321. }
  30322. if s.SourceSnapshotId == nil {
  30323. invalidParams.Add(request.NewErrParamRequired("SourceSnapshotId"))
  30324. }
  30325. if invalidParams.Len() > 0 {
  30326. return invalidParams
  30327. }
  30328. return nil
  30329. }
  30330. // SetDescription sets the Description field's value.
  30331. func (s *CopySnapshotInput) SetDescription(v string) *CopySnapshotInput {
  30332. s.Description = &v
  30333. return s
  30334. }
  30335. // SetDestinationRegion sets the DestinationRegion field's value.
  30336. func (s *CopySnapshotInput) SetDestinationRegion(v string) *CopySnapshotInput {
  30337. s.DestinationRegion = &v
  30338. return s
  30339. }
  30340. // SetDryRun sets the DryRun field's value.
  30341. func (s *CopySnapshotInput) SetDryRun(v bool) *CopySnapshotInput {
  30342. s.DryRun = &v
  30343. return s
  30344. }
  30345. // SetEncrypted sets the Encrypted field's value.
  30346. func (s *CopySnapshotInput) SetEncrypted(v bool) *CopySnapshotInput {
  30347. s.Encrypted = &v
  30348. return s
  30349. }
  30350. // SetKmsKeyId sets the KmsKeyId field's value.
  30351. func (s *CopySnapshotInput) SetKmsKeyId(v string) *CopySnapshotInput {
  30352. s.KmsKeyId = &v
  30353. return s
  30354. }
  30355. // SetPresignedUrl sets the PresignedUrl field's value.
  30356. func (s *CopySnapshotInput) SetPresignedUrl(v string) *CopySnapshotInput {
  30357. s.PresignedUrl = &v
  30358. return s
  30359. }
  30360. // SetSourceRegion sets the SourceRegion field's value.
  30361. func (s *CopySnapshotInput) SetSourceRegion(v string) *CopySnapshotInput {
  30362. s.SourceRegion = &v
  30363. return s
  30364. }
  30365. // SetSourceSnapshotId sets the SourceSnapshotId field's value.
  30366. func (s *CopySnapshotInput) SetSourceSnapshotId(v string) *CopySnapshotInput {
  30367. s.SourceSnapshotId = &v
  30368. return s
  30369. }
  30370. // Contains the output of CopySnapshot.
  30371. type CopySnapshotOutput struct {
  30372. _ struct{} `type:"structure"`
  30373. // The ID of the new snapshot.
  30374. SnapshotId *string `locationName:"snapshotId" type:"string"`
  30375. }
  30376. // String returns the string representation
  30377. func (s CopySnapshotOutput) String() string {
  30378. return awsutil.Prettify(s)
  30379. }
  30380. // GoString returns the string representation
  30381. func (s CopySnapshotOutput) GoString() string {
  30382. return s.String()
  30383. }
  30384. // SetSnapshotId sets the SnapshotId field's value.
  30385. func (s *CopySnapshotOutput) SetSnapshotId(v string) *CopySnapshotOutput {
  30386. s.SnapshotId = &v
  30387. return s
  30388. }
  30389. // The CPU options for the instance.
  30390. type CpuOptions struct {
  30391. _ struct{} `type:"structure"`
  30392. // The number of CPU cores for the instance.
  30393. CoreCount *int64 `locationName:"coreCount" type:"integer"`
  30394. // The number of threads per CPU core.
  30395. ThreadsPerCore *int64 `locationName:"threadsPerCore" type:"integer"`
  30396. }
  30397. // String returns the string representation
  30398. func (s CpuOptions) String() string {
  30399. return awsutil.Prettify(s)
  30400. }
  30401. // GoString returns the string representation
  30402. func (s CpuOptions) GoString() string {
  30403. return s.String()
  30404. }
  30405. // SetCoreCount sets the CoreCount field's value.
  30406. func (s *CpuOptions) SetCoreCount(v int64) *CpuOptions {
  30407. s.CoreCount = &v
  30408. return s
  30409. }
  30410. // SetThreadsPerCore sets the ThreadsPerCore field's value.
  30411. func (s *CpuOptions) SetThreadsPerCore(v int64) *CpuOptions {
  30412. s.ThreadsPerCore = &v
  30413. return s
  30414. }
  30415. // The CPU options for the instance. Both the core count and threads per core
  30416. // must be specified in the request.
  30417. type CpuOptionsRequest struct {
  30418. _ struct{} `type:"structure"`
  30419. // The number of CPU cores for the instance.
  30420. CoreCount *int64 `type:"integer"`
  30421. // The number of threads per CPU core. To disable Intel Hyper-Threading Technology
  30422. // for the instance, specify a value of 1. Otherwise, specify the default value
  30423. // of 2.
  30424. ThreadsPerCore *int64 `type:"integer"`
  30425. }
  30426. // String returns the string representation
  30427. func (s CpuOptionsRequest) String() string {
  30428. return awsutil.Prettify(s)
  30429. }
  30430. // GoString returns the string representation
  30431. func (s CpuOptionsRequest) GoString() string {
  30432. return s.String()
  30433. }
  30434. // SetCoreCount sets the CoreCount field's value.
  30435. func (s *CpuOptionsRequest) SetCoreCount(v int64) *CpuOptionsRequest {
  30436. s.CoreCount = &v
  30437. return s
  30438. }
  30439. // SetThreadsPerCore sets the ThreadsPerCore field's value.
  30440. func (s *CpuOptionsRequest) SetThreadsPerCore(v int64) *CpuOptionsRequest {
  30441. s.ThreadsPerCore = &v
  30442. return s
  30443. }
  30444. type CreateCapacityReservationInput struct {
  30445. _ struct{} `type:"structure"`
  30446. // The Availability Zone in which to create the Capacity Reservation.
  30447. //
  30448. // AvailabilityZone is a required field
  30449. AvailabilityZone *string `type:"string" required:"true"`
  30450. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  30451. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  30452. //
  30453. // Constraint: Maximum 64 ASCII characters.
  30454. ClientToken *string `type:"string"`
  30455. // Checks whether you have the required permissions for the action, without
  30456. // actually making the request, and provides an error response. If you have
  30457. // the required permissions, the error response is DryRunOperation. Otherwise,
  30458. // it is UnauthorizedOperation.
  30459. DryRun *bool `type:"boolean"`
  30460. // Indicates whether the Capacity Reservation supports EBS-optimized instances.
  30461. // This optimization provides dedicated throughput to Amazon EBS and an optimized
  30462. // configuration stack to provide optimal I/O performance. This optimization
  30463. // isn't available with all instance types. Additional usage charges apply when
  30464. // using an EBS- optimized instance.
  30465. EbsOptimized *bool `type:"boolean"`
  30466. // The date and time at which the Capacity Reservation expires. When a Capacity
  30467. // Reservation expires, the reserved capacity is released and you can no longer
  30468. // launch instances into it. The Capacity Reservation's state changes to expired
  30469. // when it reaches its end date and time.
  30470. //
  30471. // You must provide an EndDate value if EndDateType is limited. Omit EndDate
  30472. // if EndDateType is unlimited.
  30473. //
  30474. // If the EndDateType is limited, the Capacity Reservation is cancelled within
  30475. // an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55,
  30476. // the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55
  30477. // on 5/31/2019.
  30478. EndDate *time.Time `type:"timestamp"`
  30479. // Indicates the way in which the Capacity Reservation ends. A Capacity Reservation
  30480. // can have one of the following end types:
  30481. //
  30482. // * unlimited - The Capacity Reservation remains active until you explicitly
  30483. // cancel it. Do not provide an EndDate if the EndDateType is unlimited.
  30484. //
  30485. // * limited - The Capacity Reservation expires automatically at a specified
  30486. // date and time. You must provide an EndDate value if the EndDateType value
  30487. // is limited.
  30488. EndDateType *string `type:"string" enum:"EndDateType"`
  30489. // Indicates whether the Capacity Reservation supports instances with temporary,
  30490. // block-level storage.
  30491. EphemeralStorage *bool `type:"boolean"`
  30492. // The number of instances for which to reserve capacity.
  30493. //
  30494. // InstanceCount is a required field
  30495. InstanceCount *int64 `type:"integer" required:"true"`
  30496. // Indicates the type of instance launches that the Capacity Reservation accepts.
  30497. // The options include:
  30498. //
  30499. // * open - The Capacity Reservation automatically matches all instances
  30500. // that have matching attributes (instance type, platform, and Availability
  30501. // Zone). Instances that have matching attributes run in the Capacity Reservation
  30502. // automatically without specifying any additional parameters.
  30503. //
  30504. // * targeted - The Capacity Reservation only accepts instances that have
  30505. // matching attributes (instance type, platform, and Availability Zone),
  30506. // and explicitly target the Capacity Reservation. This ensures that only
  30507. // permitted instances can use the reserved capacity.
  30508. //
  30509. // Default: open
  30510. InstanceMatchCriteria *string `type:"string" enum:"InstanceMatchCriteria"`
  30511. // The type of operating system for which to reserve capacity.
  30512. //
  30513. // InstancePlatform is a required field
  30514. InstancePlatform *string `type:"string" required:"true" enum:"CapacityReservationInstancePlatform"`
  30515. // The instance type for which to reserve capacity. For more information, see
  30516. // Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  30517. // in the Amazon Elastic Compute Cloud User Guide.
  30518. //
  30519. // InstanceType is a required field
  30520. InstanceType *string `type:"string" required:"true"`
  30521. // The tags to apply to the Capacity Reservation during launch.
  30522. TagSpecifications []*TagSpecification `locationNameList:"item" type:"list"`
  30523. // Indicates the tenancy of the Capacity Reservation. A Capacity Reservation
  30524. // can have one of the following tenancy settings:
  30525. //
  30526. // * default - The Capacity Reservation is created on hardware that is shared
  30527. // with other AWS accounts.
  30528. //
  30529. // * dedicated - The Capacity Reservation is created on single-tenant hardware
  30530. // that is dedicated to a single AWS account.
  30531. Tenancy *string `type:"string" enum:"CapacityReservationTenancy"`
  30532. }
  30533. // String returns the string representation
  30534. func (s CreateCapacityReservationInput) String() string {
  30535. return awsutil.Prettify(s)
  30536. }
  30537. // GoString returns the string representation
  30538. func (s CreateCapacityReservationInput) GoString() string {
  30539. return s.String()
  30540. }
  30541. // Validate inspects the fields of the type to determine if they are valid.
  30542. func (s *CreateCapacityReservationInput) Validate() error {
  30543. invalidParams := request.ErrInvalidParams{Context: "CreateCapacityReservationInput"}
  30544. if s.AvailabilityZone == nil {
  30545. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  30546. }
  30547. if s.InstanceCount == nil {
  30548. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  30549. }
  30550. if s.InstancePlatform == nil {
  30551. invalidParams.Add(request.NewErrParamRequired("InstancePlatform"))
  30552. }
  30553. if s.InstanceType == nil {
  30554. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  30555. }
  30556. if invalidParams.Len() > 0 {
  30557. return invalidParams
  30558. }
  30559. return nil
  30560. }
  30561. // SetAvailabilityZone sets the AvailabilityZone field's value.
  30562. func (s *CreateCapacityReservationInput) SetAvailabilityZone(v string) *CreateCapacityReservationInput {
  30563. s.AvailabilityZone = &v
  30564. return s
  30565. }
  30566. // SetClientToken sets the ClientToken field's value.
  30567. func (s *CreateCapacityReservationInput) SetClientToken(v string) *CreateCapacityReservationInput {
  30568. s.ClientToken = &v
  30569. return s
  30570. }
  30571. // SetDryRun sets the DryRun field's value.
  30572. func (s *CreateCapacityReservationInput) SetDryRun(v bool) *CreateCapacityReservationInput {
  30573. s.DryRun = &v
  30574. return s
  30575. }
  30576. // SetEbsOptimized sets the EbsOptimized field's value.
  30577. func (s *CreateCapacityReservationInput) SetEbsOptimized(v bool) *CreateCapacityReservationInput {
  30578. s.EbsOptimized = &v
  30579. return s
  30580. }
  30581. // SetEndDate sets the EndDate field's value.
  30582. func (s *CreateCapacityReservationInput) SetEndDate(v time.Time) *CreateCapacityReservationInput {
  30583. s.EndDate = &v
  30584. return s
  30585. }
  30586. // SetEndDateType sets the EndDateType field's value.
  30587. func (s *CreateCapacityReservationInput) SetEndDateType(v string) *CreateCapacityReservationInput {
  30588. s.EndDateType = &v
  30589. return s
  30590. }
  30591. // SetEphemeralStorage sets the EphemeralStorage field's value.
  30592. func (s *CreateCapacityReservationInput) SetEphemeralStorage(v bool) *CreateCapacityReservationInput {
  30593. s.EphemeralStorage = &v
  30594. return s
  30595. }
  30596. // SetInstanceCount sets the InstanceCount field's value.
  30597. func (s *CreateCapacityReservationInput) SetInstanceCount(v int64) *CreateCapacityReservationInput {
  30598. s.InstanceCount = &v
  30599. return s
  30600. }
  30601. // SetInstanceMatchCriteria sets the InstanceMatchCriteria field's value.
  30602. func (s *CreateCapacityReservationInput) SetInstanceMatchCriteria(v string) *CreateCapacityReservationInput {
  30603. s.InstanceMatchCriteria = &v
  30604. return s
  30605. }
  30606. // SetInstancePlatform sets the InstancePlatform field's value.
  30607. func (s *CreateCapacityReservationInput) SetInstancePlatform(v string) *CreateCapacityReservationInput {
  30608. s.InstancePlatform = &v
  30609. return s
  30610. }
  30611. // SetInstanceType sets the InstanceType field's value.
  30612. func (s *CreateCapacityReservationInput) SetInstanceType(v string) *CreateCapacityReservationInput {
  30613. s.InstanceType = &v
  30614. return s
  30615. }
  30616. // SetTagSpecifications sets the TagSpecifications field's value.
  30617. func (s *CreateCapacityReservationInput) SetTagSpecifications(v []*TagSpecification) *CreateCapacityReservationInput {
  30618. s.TagSpecifications = v
  30619. return s
  30620. }
  30621. // SetTenancy sets the Tenancy field's value.
  30622. func (s *CreateCapacityReservationInput) SetTenancy(v string) *CreateCapacityReservationInput {
  30623. s.Tenancy = &v
  30624. return s
  30625. }
  30626. type CreateCapacityReservationOutput struct {
  30627. _ struct{} `type:"structure"`
  30628. // Information about the Capacity Reservation.
  30629. CapacityReservation *CapacityReservation `locationName:"capacityReservation" type:"structure"`
  30630. }
  30631. // String returns the string representation
  30632. func (s CreateCapacityReservationOutput) String() string {
  30633. return awsutil.Prettify(s)
  30634. }
  30635. // GoString returns the string representation
  30636. func (s CreateCapacityReservationOutput) GoString() string {
  30637. return s.String()
  30638. }
  30639. // SetCapacityReservation sets the CapacityReservation field's value.
  30640. func (s *CreateCapacityReservationOutput) SetCapacityReservation(v *CapacityReservation) *CreateCapacityReservationOutput {
  30641. s.CapacityReservation = v
  30642. return s
  30643. }
  30644. type CreateClientVpnEndpointInput struct {
  30645. _ struct{} `type:"structure"`
  30646. // Information about the authentication method to be used to authenticate clients.
  30647. //
  30648. // AuthenticationOptions is a required field
  30649. AuthenticationOptions []*ClientVpnAuthenticationRequest `locationName:"Authentication" type:"list" required:"true"`
  30650. // The IPv4 address range, in CIDR notation, from which to assign client IP
  30651. // addresses. The address range cannot overlap with the local CIDR of the VPC
  30652. // in which the associated subnet is located, or the routes that you add manually.
  30653. // The address range cannot be changed after the Client VPN endpoint has been
  30654. // created. The CIDR block should be /22 or greater.
  30655. //
  30656. // ClientCidrBlock is a required field
  30657. ClientCidrBlock *string `type:"string" required:"true"`
  30658. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  30659. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  30660. ClientToken *string `type:"string" idempotencyToken:"true"`
  30661. // Information about the client connection logging options.
  30662. //
  30663. // If you enable client connection logging, data about client connections is
  30664. // sent to a Cloudwatch Logs log stream. The following information is logged:
  30665. //
  30666. // * Client connection requests
  30667. //
  30668. // * Client connection results (successful and unsuccessful)
  30669. //
  30670. // * Reasons for unsuccessful client connection requests
  30671. //
  30672. // * Client connection termination time
  30673. //
  30674. // ConnectionLogOptions is a required field
  30675. ConnectionLogOptions *ConnectionLogOptions `type:"structure" required:"true"`
  30676. // A brief description of the Client VPN endpoint.
  30677. Description *string `type:"string"`
  30678. // Information about the DNS servers to be used for DNS resolution. A Client
  30679. // VPN endpoint can have up to two DNS servers. If no DNS server is specified,
  30680. // the DNS address of the VPC that is to be associated with Client VPN endpoint
  30681. // is used as the DNS server.
  30682. DnsServers []*string `locationNameList:"item" type:"list"`
  30683. // Checks whether you have the required permissions for the action, without
  30684. // actually making the request, and provides an error response. If you have
  30685. // the required permissions, the error response is DryRunOperation. Otherwise,
  30686. // it is UnauthorizedOperation.
  30687. DryRun *bool `type:"boolean"`
  30688. // The ARN of the server certificate. For more information, see the AWS Certificate
  30689. // Manager User Guide (acm/latest/userguide/acm-overview.html) .
  30690. //
  30691. // ServerCertificateArn is a required field
  30692. ServerCertificateArn *string `type:"string" required:"true"`
  30693. // The transport protocol to be used by the VPN session.
  30694. //
  30695. // Default value: udp
  30696. TransportProtocol *string `type:"string" enum:"TransportProtocol"`
  30697. }
  30698. // String returns the string representation
  30699. func (s CreateClientVpnEndpointInput) String() string {
  30700. return awsutil.Prettify(s)
  30701. }
  30702. // GoString returns the string representation
  30703. func (s CreateClientVpnEndpointInput) GoString() string {
  30704. return s.String()
  30705. }
  30706. // Validate inspects the fields of the type to determine if they are valid.
  30707. func (s *CreateClientVpnEndpointInput) Validate() error {
  30708. invalidParams := request.ErrInvalidParams{Context: "CreateClientVpnEndpointInput"}
  30709. if s.AuthenticationOptions == nil {
  30710. invalidParams.Add(request.NewErrParamRequired("AuthenticationOptions"))
  30711. }
  30712. if s.ClientCidrBlock == nil {
  30713. invalidParams.Add(request.NewErrParamRequired("ClientCidrBlock"))
  30714. }
  30715. if s.ConnectionLogOptions == nil {
  30716. invalidParams.Add(request.NewErrParamRequired("ConnectionLogOptions"))
  30717. }
  30718. if s.ServerCertificateArn == nil {
  30719. invalidParams.Add(request.NewErrParamRequired("ServerCertificateArn"))
  30720. }
  30721. if invalidParams.Len() > 0 {
  30722. return invalidParams
  30723. }
  30724. return nil
  30725. }
  30726. // SetAuthenticationOptions sets the AuthenticationOptions field's value.
  30727. func (s *CreateClientVpnEndpointInput) SetAuthenticationOptions(v []*ClientVpnAuthenticationRequest) *CreateClientVpnEndpointInput {
  30728. s.AuthenticationOptions = v
  30729. return s
  30730. }
  30731. // SetClientCidrBlock sets the ClientCidrBlock field's value.
  30732. func (s *CreateClientVpnEndpointInput) SetClientCidrBlock(v string) *CreateClientVpnEndpointInput {
  30733. s.ClientCidrBlock = &v
  30734. return s
  30735. }
  30736. // SetClientToken sets the ClientToken field's value.
  30737. func (s *CreateClientVpnEndpointInput) SetClientToken(v string) *CreateClientVpnEndpointInput {
  30738. s.ClientToken = &v
  30739. return s
  30740. }
  30741. // SetConnectionLogOptions sets the ConnectionLogOptions field's value.
  30742. func (s *CreateClientVpnEndpointInput) SetConnectionLogOptions(v *ConnectionLogOptions) *CreateClientVpnEndpointInput {
  30743. s.ConnectionLogOptions = v
  30744. return s
  30745. }
  30746. // SetDescription sets the Description field's value.
  30747. func (s *CreateClientVpnEndpointInput) SetDescription(v string) *CreateClientVpnEndpointInput {
  30748. s.Description = &v
  30749. return s
  30750. }
  30751. // SetDnsServers sets the DnsServers field's value.
  30752. func (s *CreateClientVpnEndpointInput) SetDnsServers(v []*string) *CreateClientVpnEndpointInput {
  30753. s.DnsServers = v
  30754. return s
  30755. }
  30756. // SetDryRun sets the DryRun field's value.
  30757. func (s *CreateClientVpnEndpointInput) SetDryRun(v bool) *CreateClientVpnEndpointInput {
  30758. s.DryRun = &v
  30759. return s
  30760. }
  30761. // SetServerCertificateArn sets the ServerCertificateArn field's value.
  30762. func (s *CreateClientVpnEndpointInput) SetServerCertificateArn(v string) *CreateClientVpnEndpointInput {
  30763. s.ServerCertificateArn = &v
  30764. return s
  30765. }
  30766. // SetTransportProtocol sets the TransportProtocol field's value.
  30767. func (s *CreateClientVpnEndpointInput) SetTransportProtocol(v string) *CreateClientVpnEndpointInput {
  30768. s.TransportProtocol = &v
  30769. return s
  30770. }
  30771. type CreateClientVpnEndpointOutput struct {
  30772. _ struct{} `type:"structure"`
  30773. // The ID of the Client VPN endpoint.
  30774. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  30775. // The DNS name to be used by clients when establishing their VPN session.
  30776. DnsName *string `locationName:"dnsName" type:"string"`
  30777. // The current state of the Client VPN endpoint.
  30778. Status *ClientVpnEndpointStatus `locationName:"status" type:"structure"`
  30779. }
  30780. // String returns the string representation
  30781. func (s CreateClientVpnEndpointOutput) String() string {
  30782. return awsutil.Prettify(s)
  30783. }
  30784. // GoString returns the string representation
  30785. func (s CreateClientVpnEndpointOutput) GoString() string {
  30786. return s.String()
  30787. }
  30788. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  30789. func (s *CreateClientVpnEndpointOutput) SetClientVpnEndpointId(v string) *CreateClientVpnEndpointOutput {
  30790. s.ClientVpnEndpointId = &v
  30791. return s
  30792. }
  30793. // SetDnsName sets the DnsName field's value.
  30794. func (s *CreateClientVpnEndpointOutput) SetDnsName(v string) *CreateClientVpnEndpointOutput {
  30795. s.DnsName = &v
  30796. return s
  30797. }
  30798. // SetStatus sets the Status field's value.
  30799. func (s *CreateClientVpnEndpointOutput) SetStatus(v *ClientVpnEndpointStatus) *CreateClientVpnEndpointOutput {
  30800. s.Status = v
  30801. return s
  30802. }
  30803. type CreateClientVpnRouteInput struct {
  30804. _ struct{} `type:"structure"`
  30805. // The ID of the Client VPN endpoint to which to add the route.
  30806. //
  30807. // ClientVpnEndpointId is a required field
  30808. ClientVpnEndpointId *string `type:"string" required:"true"`
  30809. // A brief description of the route.
  30810. Description *string `type:"string"`
  30811. // The IPv4 address range, in CIDR notation, of the route destination. For example:
  30812. //
  30813. // * To add a route for Internet access, enter 0.0.0.0/0
  30814. //
  30815. // * To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range
  30816. //
  30817. // * To add a route for an on-premises network, enter the AWS Site-to-Site
  30818. // VPN connection's IPv4 CIDR range
  30819. //
  30820. // Route address ranges cannot overlap with the CIDR range specified for client
  30821. // allocation.
  30822. //
  30823. // DestinationCidrBlock is a required field
  30824. DestinationCidrBlock *string `type:"string" required:"true"`
  30825. // Checks whether you have the required permissions for the action, without
  30826. // actually making the request, and provides an error response. If you have
  30827. // the required permissions, the error response is DryRunOperation. Otherwise,
  30828. // it is UnauthorizedOperation.
  30829. DryRun *bool `type:"boolean"`
  30830. // The ID of the subnet through which you want to route traffic. The specified
  30831. // subnet must be an existing target network of the Client VPN endpoint.
  30832. //
  30833. // TargetVpcSubnetId is a required field
  30834. TargetVpcSubnetId *string `type:"string" required:"true"`
  30835. }
  30836. // String returns the string representation
  30837. func (s CreateClientVpnRouteInput) String() string {
  30838. return awsutil.Prettify(s)
  30839. }
  30840. // GoString returns the string representation
  30841. func (s CreateClientVpnRouteInput) GoString() string {
  30842. return s.String()
  30843. }
  30844. // Validate inspects the fields of the type to determine if they are valid.
  30845. func (s *CreateClientVpnRouteInput) Validate() error {
  30846. invalidParams := request.ErrInvalidParams{Context: "CreateClientVpnRouteInput"}
  30847. if s.ClientVpnEndpointId == nil {
  30848. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  30849. }
  30850. if s.DestinationCidrBlock == nil {
  30851. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  30852. }
  30853. if s.TargetVpcSubnetId == nil {
  30854. invalidParams.Add(request.NewErrParamRequired("TargetVpcSubnetId"))
  30855. }
  30856. if invalidParams.Len() > 0 {
  30857. return invalidParams
  30858. }
  30859. return nil
  30860. }
  30861. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  30862. func (s *CreateClientVpnRouteInput) SetClientVpnEndpointId(v string) *CreateClientVpnRouteInput {
  30863. s.ClientVpnEndpointId = &v
  30864. return s
  30865. }
  30866. // SetDescription sets the Description field's value.
  30867. func (s *CreateClientVpnRouteInput) SetDescription(v string) *CreateClientVpnRouteInput {
  30868. s.Description = &v
  30869. return s
  30870. }
  30871. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  30872. func (s *CreateClientVpnRouteInput) SetDestinationCidrBlock(v string) *CreateClientVpnRouteInput {
  30873. s.DestinationCidrBlock = &v
  30874. return s
  30875. }
  30876. // SetDryRun sets the DryRun field's value.
  30877. func (s *CreateClientVpnRouteInput) SetDryRun(v bool) *CreateClientVpnRouteInput {
  30878. s.DryRun = &v
  30879. return s
  30880. }
  30881. // SetTargetVpcSubnetId sets the TargetVpcSubnetId field's value.
  30882. func (s *CreateClientVpnRouteInput) SetTargetVpcSubnetId(v string) *CreateClientVpnRouteInput {
  30883. s.TargetVpcSubnetId = &v
  30884. return s
  30885. }
  30886. type CreateClientVpnRouteOutput struct {
  30887. _ struct{} `type:"structure"`
  30888. // The current state of the route.
  30889. Status *ClientVpnRouteStatus `locationName:"status" type:"structure"`
  30890. }
  30891. // String returns the string representation
  30892. func (s CreateClientVpnRouteOutput) String() string {
  30893. return awsutil.Prettify(s)
  30894. }
  30895. // GoString returns the string representation
  30896. func (s CreateClientVpnRouteOutput) GoString() string {
  30897. return s.String()
  30898. }
  30899. // SetStatus sets the Status field's value.
  30900. func (s *CreateClientVpnRouteOutput) SetStatus(v *ClientVpnRouteStatus) *CreateClientVpnRouteOutput {
  30901. s.Status = v
  30902. return s
  30903. }
  30904. // Contains the parameters for CreateCustomerGateway.
  30905. type CreateCustomerGatewayInput struct {
  30906. _ struct{} `type:"structure"`
  30907. // For devices that support BGP, the customer gateway's BGP ASN.
  30908. //
  30909. // Default: 65000
  30910. //
  30911. // BgpAsn is a required field
  30912. BgpAsn *int64 `type:"integer" required:"true"`
  30913. // Checks whether you have the required permissions for the action, without
  30914. // actually making the request, and provides an error response. If you have
  30915. // the required permissions, the error response is DryRunOperation. Otherwise,
  30916. // it is UnauthorizedOperation.
  30917. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30918. // The Internet-routable IP address for the customer gateway's outside interface.
  30919. // The address must be static.
  30920. //
  30921. // PublicIp is a required field
  30922. PublicIp *string `locationName:"IpAddress" type:"string" required:"true"`
  30923. // The type of VPN connection that this customer gateway supports (ipsec.1).
  30924. //
  30925. // Type is a required field
  30926. Type *string `type:"string" required:"true" enum:"GatewayType"`
  30927. }
  30928. // String returns the string representation
  30929. func (s CreateCustomerGatewayInput) String() string {
  30930. return awsutil.Prettify(s)
  30931. }
  30932. // GoString returns the string representation
  30933. func (s CreateCustomerGatewayInput) GoString() string {
  30934. return s.String()
  30935. }
  30936. // Validate inspects the fields of the type to determine if they are valid.
  30937. func (s *CreateCustomerGatewayInput) Validate() error {
  30938. invalidParams := request.ErrInvalidParams{Context: "CreateCustomerGatewayInput"}
  30939. if s.BgpAsn == nil {
  30940. invalidParams.Add(request.NewErrParamRequired("BgpAsn"))
  30941. }
  30942. if s.PublicIp == nil {
  30943. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  30944. }
  30945. if s.Type == nil {
  30946. invalidParams.Add(request.NewErrParamRequired("Type"))
  30947. }
  30948. if invalidParams.Len() > 0 {
  30949. return invalidParams
  30950. }
  30951. return nil
  30952. }
  30953. // SetBgpAsn sets the BgpAsn field's value.
  30954. func (s *CreateCustomerGatewayInput) SetBgpAsn(v int64) *CreateCustomerGatewayInput {
  30955. s.BgpAsn = &v
  30956. return s
  30957. }
  30958. // SetDryRun sets the DryRun field's value.
  30959. func (s *CreateCustomerGatewayInput) SetDryRun(v bool) *CreateCustomerGatewayInput {
  30960. s.DryRun = &v
  30961. return s
  30962. }
  30963. // SetPublicIp sets the PublicIp field's value.
  30964. func (s *CreateCustomerGatewayInput) SetPublicIp(v string) *CreateCustomerGatewayInput {
  30965. s.PublicIp = &v
  30966. return s
  30967. }
  30968. // SetType sets the Type field's value.
  30969. func (s *CreateCustomerGatewayInput) SetType(v string) *CreateCustomerGatewayInput {
  30970. s.Type = &v
  30971. return s
  30972. }
  30973. // Contains the output of CreateCustomerGateway.
  30974. type CreateCustomerGatewayOutput struct {
  30975. _ struct{} `type:"structure"`
  30976. // Information about the customer gateway.
  30977. CustomerGateway *CustomerGateway `locationName:"customerGateway" type:"structure"`
  30978. }
  30979. // String returns the string representation
  30980. func (s CreateCustomerGatewayOutput) String() string {
  30981. return awsutil.Prettify(s)
  30982. }
  30983. // GoString returns the string representation
  30984. func (s CreateCustomerGatewayOutput) GoString() string {
  30985. return s.String()
  30986. }
  30987. // SetCustomerGateway sets the CustomerGateway field's value.
  30988. func (s *CreateCustomerGatewayOutput) SetCustomerGateway(v *CustomerGateway) *CreateCustomerGatewayOutput {
  30989. s.CustomerGateway = v
  30990. return s
  30991. }
  30992. type CreateDefaultSubnetInput struct {
  30993. _ struct{} `type:"structure"`
  30994. // The Availability Zone in which to create the default subnet.
  30995. //
  30996. // AvailabilityZone is a required field
  30997. AvailabilityZone *string `type:"string" required:"true"`
  30998. // Checks whether you have the required permissions for the action, without
  30999. // actually making the request, and provides an error response. If you have
  31000. // the required permissions, the error response is DryRunOperation. Otherwise,
  31001. // it is UnauthorizedOperation.
  31002. DryRun *bool `type:"boolean"`
  31003. }
  31004. // String returns the string representation
  31005. func (s CreateDefaultSubnetInput) String() string {
  31006. return awsutil.Prettify(s)
  31007. }
  31008. // GoString returns the string representation
  31009. func (s CreateDefaultSubnetInput) GoString() string {
  31010. return s.String()
  31011. }
  31012. // Validate inspects the fields of the type to determine if they are valid.
  31013. func (s *CreateDefaultSubnetInput) Validate() error {
  31014. invalidParams := request.ErrInvalidParams{Context: "CreateDefaultSubnetInput"}
  31015. if s.AvailabilityZone == nil {
  31016. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  31017. }
  31018. if invalidParams.Len() > 0 {
  31019. return invalidParams
  31020. }
  31021. return nil
  31022. }
  31023. // SetAvailabilityZone sets the AvailabilityZone field's value.
  31024. func (s *CreateDefaultSubnetInput) SetAvailabilityZone(v string) *CreateDefaultSubnetInput {
  31025. s.AvailabilityZone = &v
  31026. return s
  31027. }
  31028. // SetDryRun sets the DryRun field's value.
  31029. func (s *CreateDefaultSubnetInput) SetDryRun(v bool) *CreateDefaultSubnetInput {
  31030. s.DryRun = &v
  31031. return s
  31032. }
  31033. type CreateDefaultSubnetOutput struct {
  31034. _ struct{} `type:"structure"`
  31035. // Information about the subnet.
  31036. Subnet *Subnet `locationName:"subnet" type:"structure"`
  31037. }
  31038. // String returns the string representation
  31039. func (s CreateDefaultSubnetOutput) String() string {
  31040. return awsutil.Prettify(s)
  31041. }
  31042. // GoString returns the string representation
  31043. func (s CreateDefaultSubnetOutput) GoString() string {
  31044. return s.String()
  31045. }
  31046. // SetSubnet sets the Subnet field's value.
  31047. func (s *CreateDefaultSubnetOutput) SetSubnet(v *Subnet) *CreateDefaultSubnetOutput {
  31048. s.Subnet = v
  31049. return s
  31050. }
  31051. type CreateDefaultVpcInput struct {
  31052. _ struct{} `type:"structure"`
  31053. // Checks whether you have the required permissions for the action, without
  31054. // actually making the request, and provides an error response. If you have
  31055. // the required permissions, the error response is DryRunOperation. Otherwise,
  31056. // it is UnauthorizedOperation.
  31057. DryRun *bool `type:"boolean"`
  31058. }
  31059. // String returns the string representation
  31060. func (s CreateDefaultVpcInput) String() string {
  31061. return awsutil.Prettify(s)
  31062. }
  31063. // GoString returns the string representation
  31064. func (s CreateDefaultVpcInput) GoString() string {
  31065. return s.String()
  31066. }
  31067. // SetDryRun sets the DryRun field's value.
  31068. func (s *CreateDefaultVpcInput) SetDryRun(v bool) *CreateDefaultVpcInput {
  31069. s.DryRun = &v
  31070. return s
  31071. }
  31072. type CreateDefaultVpcOutput struct {
  31073. _ struct{} `type:"structure"`
  31074. // Information about the VPC.
  31075. Vpc *Vpc `locationName:"vpc" type:"structure"`
  31076. }
  31077. // String returns the string representation
  31078. func (s CreateDefaultVpcOutput) String() string {
  31079. return awsutil.Prettify(s)
  31080. }
  31081. // GoString returns the string representation
  31082. func (s CreateDefaultVpcOutput) GoString() string {
  31083. return s.String()
  31084. }
  31085. // SetVpc sets the Vpc field's value.
  31086. func (s *CreateDefaultVpcOutput) SetVpc(v *Vpc) *CreateDefaultVpcOutput {
  31087. s.Vpc = v
  31088. return s
  31089. }
  31090. type CreateDhcpOptionsInput struct {
  31091. _ struct{} `type:"structure"`
  31092. // A DHCP configuration option.
  31093. //
  31094. // DhcpConfigurations is a required field
  31095. DhcpConfigurations []*NewDhcpConfiguration `locationName:"dhcpConfiguration" locationNameList:"item" type:"list" required:"true"`
  31096. // Checks whether you have the required permissions for the action, without
  31097. // actually making the request, and provides an error response. If you have
  31098. // the required permissions, the error response is DryRunOperation. Otherwise,
  31099. // it is UnauthorizedOperation.
  31100. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31101. }
  31102. // String returns the string representation
  31103. func (s CreateDhcpOptionsInput) String() string {
  31104. return awsutil.Prettify(s)
  31105. }
  31106. // GoString returns the string representation
  31107. func (s CreateDhcpOptionsInput) GoString() string {
  31108. return s.String()
  31109. }
  31110. // Validate inspects the fields of the type to determine if they are valid.
  31111. func (s *CreateDhcpOptionsInput) Validate() error {
  31112. invalidParams := request.ErrInvalidParams{Context: "CreateDhcpOptionsInput"}
  31113. if s.DhcpConfigurations == nil {
  31114. invalidParams.Add(request.NewErrParamRequired("DhcpConfigurations"))
  31115. }
  31116. if invalidParams.Len() > 0 {
  31117. return invalidParams
  31118. }
  31119. return nil
  31120. }
  31121. // SetDhcpConfigurations sets the DhcpConfigurations field's value.
  31122. func (s *CreateDhcpOptionsInput) SetDhcpConfigurations(v []*NewDhcpConfiguration) *CreateDhcpOptionsInput {
  31123. s.DhcpConfigurations = v
  31124. return s
  31125. }
  31126. // SetDryRun sets the DryRun field's value.
  31127. func (s *CreateDhcpOptionsInput) SetDryRun(v bool) *CreateDhcpOptionsInput {
  31128. s.DryRun = &v
  31129. return s
  31130. }
  31131. type CreateDhcpOptionsOutput struct {
  31132. _ struct{} `type:"structure"`
  31133. // A set of DHCP options.
  31134. DhcpOptions *DhcpOptions `locationName:"dhcpOptions" type:"structure"`
  31135. }
  31136. // String returns the string representation
  31137. func (s CreateDhcpOptionsOutput) String() string {
  31138. return awsutil.Prettify(s)
  31139. }
  31140. // GoString returns the string representation
  31141. func (s CreateDhcpOptionsOutput) GoString() string {
  31142. return s.String()
  31143. }
  31144. // SetDhcpOptions sets the DhcpOptions field's value.
  31145. func (s *CreateDhcpOptionsOutput) SetDhcpOptions(v *DhcpOptions) *CreateDhcpOptionsOutput {
  31146. s.DhcpOptions = v
  31147. return s
  31148. }
  31149. type CreateEgressOnlyInternetGatewayInput struct {
  31150. _ struct{} `type:"structure"`
  31151. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  31152. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  31153. ClientToken *string `type:"string"`
  31154. // Checks whether you have the required permissions for the action, without
  31155. // actually making the request, and provides an error response. If you have
  31156. // the required permissions, the error response is DryRunOperation. Otherwise,
  31157. // it is UnauthorizedOperation.
  31158. DryRun *bool `type:"boolean"`
  31159. // The ID of the VPC for which to create the egress-only internet gateway.
  31160. //
  31161. // VpcId is a required field
  31162. VpcId *string `type:"string" required:"true"`
  31163. }
  31164. // String returns the string representation
  31165. func (s CreateEgressOnlyInternetGatewayInput) String() string {
  31166. return awsutil.Prettify(s)
  31167. }
  31168. // GoString returns the string representation
  31169. func (s CreateEgressOnlyInternetGatewayInput) GoString() string {
  31170. return s.String()
  31171. }
  31172. // Validate inspects the fields of the type to determine if they are valid.
  31173. func (s *CreateEgressOnlyInternetGatewayInput) Validate() error {
  31174. invalidParams := request.ErrInvalidParams{Context: "CreateEgressOnlyInternetGatewayInput"}
  31175. if s.VpcId == nil {
  31176. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  31177. }
  31178. if invalidParams.Len() > 0 {
  31179. return invalidParams
  31180. }
  31181. return nil
  31182. }
  31183. // SetClientToken sets the ClientToken field's value.
  31184. func (s *CreateEgressOnlyInternetGatewayInput) SetClientToken(v string) *CreateEgressOnlyInternetGatewayInput {
  31185. s.ClientToken = &v
  31186. return s
  31187. }
  31188. // SetDryRun sets the DryRun field's value.
  31189. func (s *CreateEgressOnlyInternetGatewayInput) SetDryRun(v bool) *CreateEgressOnlyInternetGatewayInput {
  31190. s.DryRun = &v
  31191. return s
  31192. }
  31193. // SetVpcId sets the VpcId field's value.
  31194. func (s *CreateEgressOnlyInternetGatewayInput) SetVpcId(v string) *CreateEgressOnlyInternetGatewayInput {
  31195. s.VpcId = &v
  31196. return s
  31197. }
  31198. type CreateEgressOnlyInternetGatewayOutput struct {
  31199. _ struct{} `type:"structure"`
  31200. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  31201. // of the request.
  31202. ClientToken *string `locationName:"clientToken" type:"string"`
  31203. // Information about the egress-only internet gateway.
  31204. EgressOnlyInternetGateway *EgressOnlyInternetGateway `locationName:"egressOnlyInternetGateway" type:"structure"`
  31205. }
  31206. // String returns the string representation
  31207. func (s CreateEgressOnlyInternetGatewayOutput) String() string {
  31208. return awsutil.Prettify(s)
  31209. }
  31210. // GoString returns the string representation
  31211. func (s CreateEgressOnlyInternetGatewayOutput) GoString() string {
  31212. return s.String()
  31213. }
  31214. // SetClientToken sets the ClientToken field's value.
  31215. func (s *CreateEgressOnlyInternetGatewayOutput) SetClientToken(v string) *CreateEgressOnlyInternetGatewayOutput {
  31216. s.ClientToken = &v
  31217. return s
  31218. }
  31219. // SetEgressOnlyInternetGateway sets the EgressOnlyInternetGateway field's value.
  31220. func (s *CreateEgressOnlyInternetGatewayOutput) SetEgressOnlyInternetGateway(v *EgressOnlyInternetGateway) *CreateEgressOnlyInternetGatewayOutput {
  31221. s.EgressOnlyInternetGateway = v
  31222. return s
  31223. }
  31224. // Describes the instances that could not be launched by the fleet.
  31225. type CreateFleetError struct {
  31226. _ struct{} `type:"structure"`
  31227. // The error code that indicates why the instance could not be launched. For
  31228. // more information about error codes, see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
  31229. ErrorCode *string `locationName:"errorCode" type:"string"`
  31230. // The error message that describes why the instance could not be launched.
  31231. // For more information about error messages, see ee Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
  31232. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  31233. // The launch templates and overrides that were used for launching the instances.
  31234. // Any parameters that you specify in the Overrides override the same parameters
  31235. // in the launch template.
  31236. LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"`
  31237. // Indicates if the instance that could not be launched was a Spot Instance
  31238. // or On-Demand Instance.
  31239. Lifecycle *string `locationName:"lifecycle" type:"string" enum:"InstanceLifecycle"`
  31240. }
  31241. // String returns the string representation
  31242. func (s CreateFleetError) String() string {
  31243. return awsutil.Prettify(s)
  31244. }
  31245. // GoString returns the string representation
  31246. func (s CreateFleetError) GoString() string {
  31247. return s.String()
  31248. }
  31249. // SetErrorCode sets the ErrorCode field's value.
  31250. func (s *CreateFleetError) SetErrorCode(v string) *CreateFleetError {
  31251. s.ErrorCode = &v
  31252. return s
  31253. }
  31254. // SetErrorMessage sets the ErrorMessage field's value.
  31255. func (s *CreateFleetError) SetErrorMessage(v string) *CreateFleetError {
  31256. s.ErrorMessage = &v
  31257. return s
  31258. }
  31259. // SetLaunchTemplateAndOverrides sets the LaunchTemplateAndOverrides field's value.
  31260. func (s *CreateFleetError) SetLaunchTemplateAndOverrides(v *LaunchTemplateAndOverridesResponse) *CreateFleetError {
  31261. s.LaunchTemplateAndOverrides = v
  31262. return s
  31263. }
  31264. // SetLifecycle sets the Lifecycle field's value.
  31265. func (s *CreateFleetError) SetLifecycle(v string) *CreateFleetError {
  31266. s.Lifecycle = &v
  31267. return s
  31268. }
  31269. type CreateFleetInput struct {
  31270. _ struct{} `type:"structure"`
  31271. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  31272. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  31273. ClientToken *string `type:"string"`
  31274. // Checks whether you have the required permissions for the action, without
  31275. // actually making the request, and provides an error response. If you have
  31276. // the required permissions, the error response is DryRunOperation. Otherwise,
  31277. // it is UnauthorizedOperation.
  31278. DryRun *bool `type:"boolean"`
  31279. // Indicates whether running instances should be terminated if the total target
  31280. // capacity of the EC2 Fleet is decreased below the current size of the EC2
  31281. // Fleet.
  31282. ExcessCapacityTerminationPolicy *string `type:"string" enum:"FleetExcessCapacityTerminationPolicy"`
  31283. // The configuration for the EC2 Fleet.
  31284. //
  31285. // LaunchTemplateConfigs is a required field
  31286. LaunchTemplateConfigs []*FleetLaunchTemplateConfigRequest `locationNameList:"item" type:"list" required:"true"`
  31287. // The allocation strategy of On-Demand Instances in an EC2 Fleet.
  31288. OnDemandOptions *OnDemandOptionsRequest `type:"structure"`
  31289. // Indicates whether EC2 Fleet should replace unhealthy instances.
  31290. ReplaceUnhealthyInstances *bool `type:"boolean"`
  31291. // Describes the configuration of Spot Instances in an EC2 Fleet.
  31292. SpotOptions *SpotOptionsRequest `type:"structure"`
  31293. // The key-value pair for tagging the EC2 Fleet request on creation. The value
  31294. // for ResourceType must be fleet, otherwise the fleet request fails. To tag
  31295. // instances at launch, specify the tags in the launch template (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template).
  31296. // For information about tagging after launch, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources).
  31297. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  31298. // The TotalTargetCapacity, OnDemandTargetCapacity, SpotTargetCapacity, and
  31299. // DefaultCapacityType structure.
  31300. //
  31301. // TargetCapacitySpecification is a required field
  31302. TargetCapacitySpecification *TargetCapacitySpecificationRequest `type:"structure" required:"true"`
  31303. // Indicates whether running instances should be terminated when the EC2 Fleet
  31304. // expires.
  31305. TerminateInstancesWithExpiration *bool `type:"boolean"`
  31306. // The type of the request. By default, the EC2 Fleet places an asynchronous
  31307. // request for your desired capacity, and maintains it by replenishing interrupted
  31308. // Spot Instances (maintain). A value of instant places a synchronous one-time
  31309. // request, and returns errors for any instances that could not be launched.
  31310. // A value of request places an asynchronous one-time request without maintaining
  31311. // capacity or submitting requests in alternative capacity pools if capacity
  31312. // is unavailable. For more information, see EC2 Fleet Request Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-configuration-strategies.html#ec2-fleet-request-type)
  31313. // in the Amazon Elastic Compute Cloud User Guide.
  31314. Type *string `type:"string" enum:"FleetType"`
  31315. // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  31316. // The default is to start fulfilling the request immediately.
  31317. ValidFrom *time.Time `type:"timestamp"`
  31318. // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  31319. // At this point, no new EC2 Fleet requests are placed or able to fulfill the
  31320. // request. The default end date is 7 days from the current date.
  31321. ValidUntil *time.Time `type:"timestamp"`
  31322. }
  31323. // String returns the string representation
  31324. func (s CreateFleetInput) String() string {
  31325. return awsutil.Prettify(s)
  31326. }
  31327. // GoString returns the string representation
  31328. func (s CreateFleetInput) GoString() string {
  31329. return s.String()
  31330. }
  31331. // Validate inspects the fields of the type to determine if they are valid.
  31332. func (s *CreateFleetInput) Validate() error {
  31333. invalidParams := request.ErrInvalidParams{Context: "CreateFleetInput"}
  31334. if s.LaunchTemplateConfigs == nil {
  31335. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateConfigs"))
  31336. }
  31337. if s.TargetCapacitySpecification == nil {
  31338. invalidParams.Add(request.NewErrParamRequired("TargetCapacitySpecification"))
  31339. }
  31340. if s.LaunchTemplateConfigs != nil {
  31341. for i, v := range s.LaunchTemplateConfigs {
  31342. if v == nil {
  31343. continue
  31344. }
  31345. if err := v.Validate(); err != nil {
  31346. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LaunchTemplateConfigs", i), err.(request.ErrInvalidParams))
  31347. }
  31348. }
  31349. }
  31350. if s.TargetCapacitySpecification != nil {
  31351. if err := s.TargetCapacitySpecification.Validate(); err != nil {
  31352. invalidParams.AddNested("TargetCapacitySpecification", err.(request.ErrInvalidParams))
  31353. }
  31354. }
  31355. if invalidParams.Len() > 0 {
  31356. return invalidParams
  31357. }
  31358. return nil
  31359. }
  31360. // SetClientToken sets the ClientToken field's value.
  31361. func (s *CreateFleetInput) SetClientToken(v string) *CreateFleetInput {
  31362. s.ClientToken = &v
  31363. return s
  31364. }
  31365. // SetDryRun sets the DryRun field's value.
  31366. func (s *CreateFleetInput) SetDryRun(v bool) *CreateFleetInput {
  31367. s.DryRun = &v
  31368. return s
  31369. }
  31370. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  31371. func (s *CreateFleetInput) SetExcessCapacityTerminationPolicy(v string) *CreateFleetInput {
  31372. s.ExcessCapacityTerminationPolicy = &v
  31373. return s
  31374. }
  31375. // SetLaunchTemplateConfigs sets the LaunchTemplateConfigs field's value.
  31376. func (s *CreateFleetInput) SetLaunchTemplateConfigs(v []*FleetLaunchTemplateConfigRequest) *CreateFleetInput {
  31377. s.LaunchTemplateConfigs = v
  31378. return s
  31379. }
  31380. // SetOnDemandOptions sets the OnDemandOptions field's value.
  31381. func (s *CreateFleetInput) SetOnDemandOptions(v *OnDemandOptionsRequest) *CreateFleetInput {
  31382. s.OnDemandOptions = v
  31383. return s
  31384. }
  31385. // SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value.
  31386. func (s *CreateFleetInput) SetReplaceUnhealthyInstances(v bool) *CreateFleetInput {
  31387. s.ReplaceUnhealthyInstances = &v
  31388. return s
  31389. }
  31390. // SetSpotOptions sets the SpotOptions field's value.
  31391. func (s *CreateFleetInput) SetSpotOptions(v *SpotOptionsRequest) *CreateFleetInput {
  31392. s.SpotOptions = v
  31393. return s
  31394. }
  31395. // SetTagSpecifications sets the TagSpecifications field's value.
  31396. func (s *CreateFleetInput) SetTagSpecifications(v []*TagSpecification) *CreateFleetInput {
  31397. s.TagSpecifications = v
  31398. return s
  31399. }
  31400. // SetTargetCapacitySpecification sets the TargetCapacitySpecification field's value.
  31401. func (s *CreateFleetInput) SetTargetCapacitySpecification(v *TargetCapacitySpecificationRequest) *CreateFleetInput {
  31402. s.TargetCapacitySpecification = v
  31403. return s
  31404. }
  31405. // SetTerminateInstancesWithExpiration sets the TerminateInstancesWithExpiration field's value.
  31406. func (s *CreateFleetInput) SetTerminateInstancesWithExpiration(v bool) *CreateFleetInput {
  31407. s.TerminateInstancesWithExpiration = &v
  31408. return s
  31409. }
  31410. // SetType sets the Type field's value.
  31411. func (s *CreateFleetInput) SetType(v string) *CreateFleetInput {
  31412. s.Type = &v
  31413. return s
  31414. }
  31415. // SetValidFrom sets the ValidFrom field's value.
  31416. func (s *CreateFleetInput) SetValidFrom(v time.Time) *CreateFleetInput {
  31417. s.ValidFrom = &v
  31418. return s
  31419. }
  31420. // SetValidUntil sets the ValidUntil field's value.
  31421. func (s *CreateFleetInput) SetValidUntil(v time.Time) *CreateFleetInput {
  31422. s.ValidUntil = &v
  31423. return s
  31424. }
  31425. // Describes the instances that were launched by the fleet.
  31426. type CreateFleetInstance struct {
  31427. _ struct{} `type:"structure"`
  31428. // The IDs of the instances.
  31429. InstanceIds []*string `locationName:"instanceIds" locationNameList:"item" type:"list"`
  31430. // The instance type.
  31431. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  31432. // The launch templates and overrides that were used for launching the instances.
  31433. // Any parameters that you specify in the Overrides override the same parameters
  31434. // in the launch template.
  31435. LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"`
  31436. // Indicates if the instance that was launched is a Spot Instance or On-Demand
  31437. // Instance.
  31438. Lifecycle *string `locationName:"lifecycle" type:"string" enum:"InstanceLifecycle"`
  31439. // The value is Windows for Windows instances; otherwise blank.
  31440. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  31441. }
  31442. // String returns the string representation
  31443. func (s CreateFleetInstance) String() string {
  31444. return awsutil.Prettify(s)
  31445. }
  31446. // GoString returns the string representation
  31447. func (s CreateFleetInstance) GoString() string {
  31448. return s.String()
  31449. }
  31450. // SetInstanceIds sets the InstanceIds field's value.
  31451. func (s *CreateFleetInstance) SetInstanceIds(v []*string) *CreateFleetInstance {
  31452. s.InstanceIds = v
  31453. return s
  31454. }
  31455. // SetInstanceType sets the InstanceType field's value.
  31456. func (s *CreateFleetInstance) SetInstanceType(v string) *CreateFleetInstance {
  31457. s.InstanceType = &v
  31458. return s
  31459. }
  31460. // SetLaunchTemplateAndOverrides sets the LaunchTemplateAndOverrides field's value.
  31461. func (s *CreateFleetInstance) SetLaunchTemplateAndOverrides(v *LaunchTemplateAndOverridesResponse) *CreateFleetInstance {
  31462. s.LaunchTemplateAndOverrides = v
  31463. return s
  31464. }
  31465. // SetLifecycle sets the Lifecycle field's value.
  31466. func (s *CreateFleetInstance) SetLifecycle(v string) *CreateFleetInstance {
  31467. s.Lifecycle = &v
  31468. return s
  31469. }
  31470. // SetPlatform sets the Platform field's value.
  31471. func (s *CreateFleetInstance) SetPlatform(v string) *CreateFleetInstance {
  31472. s.Platform = &v
  31473. return s
  31474. }
  31475. type CreateFleetOutput struct {
  31476. _ struct{} `type:"structure"`
  31477. // Information about the instances that could not be launched by the fleet.
  31478. // Valid only when Type is set to instant.
  31479. Errors []*CreateFleetError `locationName:"errorSet" locationNameList:"item" type:"list"`
  31480. // The ID of the EC2 Fleet.
  31481. FleetId *string `locationName:"fleetId" type:"string"`
  31482. // Information about the instances that were launched by the fleet. Valid only
  31483. // when Type is set to instant.
  31484. Instances []*CreateFleetInstance `locationName:"fleetInstanceSet" locationNameList:"item" type:"list"`
  31485. }
  31486. // String returns the string representation
  31487. func (s CreateFleetOutput) String() string {
  31488. return awsutil.Prettify(s)
  31489. }
  31490. // GoString returns the string representation
  31491. func (s CreateFleetOutput) GoString() string {
  31492. return s.String()
  31493. }
  31494. // SetErrors sets the Errors field's value.
  31495. func (s *CreateFleetOutput) SetErrors(v []*CreateFleetError) *CreateFleetOutput {
  31496. s.Errors = v
  31497. return s
  31498. }
  31499. // SetFleetId sets the FleetId field's value.
  31500. func (s *CreateFleetOutput) SetFleetId(v string) *CreateFleetOutput {
  31501. s.FleetId = &v
  31502. return s
  31503. }
  31504. // SetInstances sets the Instances field's value.
  31505. func (s *CreateFleetOutput) SetInstances(v []*CreateFleetInstance) *CreateFleetOutput {
  31506. s.Instances = v
  31507. return s
  31508. }
  31509. type CreateFlowLogsInput struct {
  31510. _ struct{} `type:"structure"`
  31511. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  31512. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  31513. ClientToken *string `type:"string"`
  31514. // The ARN for the IAM role that's used to post flow logs to a log group.
  31515. DeliverLogsPermissionArn *string `type:"string"`
  31516. // Checks whether you have the required permissions for the action, without
  31517. // actually making the request, and provides an error response. If you have
  31518. // the required permissions, the error response is DryRunOperation. Otherwise,
  31519. // it is UnauthorizedOperation.
  31520. DryRun *bool `type:"boolean"`
  31521. // Specifies the destination to which the flow log data is to be published.
  31522. // Flow log data can be published to an CloudWatch Logs log group or an Amazon
  31523. // S3 bucket. The value specified for this parameter depends on the value specified
  31524. // for LogDestinationType.
  31525. //
  31526. // If LogDestinationType is not specified or cloud-watch-logs, specify the Amazon
  31527. // Resource Name (ARN) of the CloudWatch Logs log group.
  31528. //
  31529. // If LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. You
  31530. // can also specify a subfolder in the bucket. To specify a subfolder in the
  31531. // bucket, use the following ARN format: bucket_ARN/subfolder_name/. For example,
  31532. // to specify a subfolder named my-logs in a bucket named my-bucket, use the
  31533. // following ARN: arn:aws:s3:::my-bucket/my-logs/. You cannot use AWSLogs as
  31534. // a subfolder name. This is a reserved term.
  31535. LogDestination *string `type:"string"`
  31536. // Specifies the type of destination to which the flow log data is to be published.
  31537. // Flow log data can be published to CloudWatch Logs or Amazon S3. To publish
  31538. // flow log data to CloudWatch Logs, specify cloud-watch-logs. To publish flow
  31539. // log data to Amazon S3, specify s3.
  31540. //
  31541. // Default: cloud-watch-logs
  31542. LogDestinationType *string `type:"string" enum:"LogDestinationType"`
  31543. // The name of the log group.
  31544. LogGroupName *string `type:"string"`
  31545. // One or more subnet, network interface, or VPC IDs.
  31546. //
  31547. // Constraints: Maximum of 1000 resources
  31548. //
  31549. // ResourceIds is a required field
  31550. ResourceIds []*string `locationName:"ResourceId" locationNameList:"item" type:"list" required:"true"`
  31551. // The type of resource on which to create the flow log.
  31552. //
  31553. // ResourceType is a required field
  31554. ResourceType *string `type:"string" required:"true" enum:"FlowLogsResourceType"`
  31555. // The type of traffic to log.
  31556. //
  31557. // TrafficType is a required field
  31558. TrafficType *string `type:"string" required:"true" enum:"TrafficType"`
  31559. }
  31560. // String returns the string representation
  31561. func (s CreateFlowLogsInput) String() string {
  31562. return awsutil.Prettify(s)
  31563. }
  31564. // GoString returns the string representation
  31565. func (s CreateFlowLogsInput) GoString() string {
  31566. return s.String()
  31567. }
  31568. // Validate inspects the fields of the type to determine if they are valid.
  31569. func (s *CreateFlowLogsInput) Validate() error {
  31570. invalidParams := request.ErrInvalidParams{Context: "CreateFlowLogsInput"}
  31571. if s.ResourceIds == nil {
  31572. invalidParams.Add(request.NewErrParamRequired("ResourceIds"))
  31573. }
  31574. if s.ResourceType == nil {
  31575. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  31576. }
  31577. if s.TrafficType == nil {
  31578. invalidParams.Add(request.NewErrParamRequired("TrafficType"))
  31579. }
  31580. if invalidParams.Len() > 0 {
  31581. return invalidParams
  31582. }
  31583. return nil
  31584. }
  31585. // SetClientToken sets the ClientToken field's value.
  31586. func (s *CreateFlowLogsInput) SetClientToken(v string) *CreateFlowLogsInput {
  31587. s.ClientToken = &v
  31588. return s
  31589. }
  31590. // SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value.
  31591. func (s *CreateFlowLogsInput) SetDeliverLogsPermissionArn(v string) *CreateFlowLogsInput {
  31592. s.DeliverLogsPermissionArn = &v
  31593. return s
  31594. }
  31595. // SetDryRun sets the DryRun field's value.
  31596. func (s *CreateFlowLogsInput) SetDryRun(v bool) *CreateFlowLogsInput {
  31597. s.DryRun = &v
  31598. return s
  31599. }
  31600. // SetLogDestination sets the LogDestination field's value.
  31601. func (s *CreateFlowLogsInput) SetLogDestination(v string) *CreateFlowLogsInput {
  31602. s.LogDestination = &v
  31603. return s
  31604. }
  31605. // SetLogDestinationType sets the LogDestinationType field's value.
  31606. func (s *CreateFlowLogsInput) SetLogDestinationType(v string) *CreateFlowLogsInput {
  31607. s.LogDestinationType = &v
  31608. return s
  31609. }
  31610. // SetLogGroupName sets the LogGroupName field's value.
  31611. func (s *CreateFlowLogsInput) SetLogGroupName(v string) *CreateFlowLogsInput {
  31612. s.LogGroupName = &v
  31613. return s
  31614. }
  31615. // SetResourceIds sets the ResourceIds field's value.
  31616. func (s *CreateFlowLogsInput) SetResourceIds(v []*string) *CreateFlowLogsInput {
  31617. s.ResourceIds = v
  31618. return s
  31619. }
  31620. // SetResourceType sets the ResourceType field's value.
  31621. func (s *CreateFlowLogsInput) SetResourceType(v string) *CreateFlowLogsInput {
  31622. s.ResourceType = &v
  31623. return s
  31624. }
  31625. // SetTrafficType sets the TrafficType field's value.
  31626. func (s *CreateFlowLogsInput) SetTrafficType(v string) *CreateFlowLogsInput {
  31627. s.TrafficType = &v
  31628. return s
  31629. }
  31630. type CreateFlowLogsOutput struct {
  31631. _ struct{} `type:"structure"`
  31632. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  31633. // of the request.
  31634. ClientToken *string `locationName:"clientToken" type:"string"`
  31635. // The IDs of the flow logs.
  31636. FlowLogIds []*string `locationName:"flowLogIdSet" locationNameList:"item" type:"list"`
  31637. // Information about the flow logs that could not be created successfully.
  31638. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  31639. }
  31640. // String returns the string representation
  31641. func (s CreateFlowLogsOutput) String() string {
  31642. return awsutil.Prettify(s)
  31643. }
  31644. // GoString returns the string representation
  31645. func (s CreateFlowLogsOutput) GoString() string {
  31646. return s.String()
  31647. }
  31648. // SetClientToken sets the ClientToken field's value.
  31649. func (s *CreateFlowLogsOutput) SetClientToken(v string) *CreateFlowLogsOutput {
  31650. s.ClientToken = &v
  31651. return s
  31652. }
  31653. // SetFlowLogIds sets the FlowLogIds field's value.
  31654. func (s *CreateFlowLogsOutput) SetFlowLogIds(v []*string) *CreateFlowLogsOutput {
  31655. s.FlowLogIds = v
  31656. return s
  31657. }
  31658. // SetUnsuccessful sets the Unsuccessful field's value.
  31659. func (s *CreateFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *CreateFlowLogsOutput {
  31660. s.Unsuccessful = v
  31661. return s
  31662. }
  31663. type CreateFpgaImageInput struct {
  31664. _ struct{} `type:"structure"`
  31665. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  31666. // of the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  31667. ClientToken *string `type:"string"`
  31668. // A description for the AFI.
  31669. Description *string `type:"string"`
  31670. // Checks whether you have the required permissions for the action, without
  31671. // actually making the request, and provides an error response. If you have
  31672. // the required permissions, the error response is DryRunOperation. Otherwise,
  31673. // it is UnauthorizedOperation.
  31674. DryRun *bool `type:"boolean"`
  31675. // The location of the encrypted design checkpoint in Amazon S3. The input must
  31676. // be a tarball.
  31677. //
  31678. // InputStorageLocation is a required field
  31679. InputStorageLocation *StorageLocation `type:"structure" required:"true"`
  31680. // The location in Amazon S3 for the output logs.
  31681. LogsStorageLocation *StorageLocation `type:"structure"`
  31682. // A name for the AFI.
  31683. Name *string `type:"string"`
  31684. }
  31685. // String returns the string representation
  31686. func (s CreateFpgaImageInput) String() string {
  31687. return awsutil.Prettify(s)
  31688. }
  31689. // GoString returns the string representation
  31690. func (s CreateFpgaImageInput) GoString() string {
  31691. return s.String()
  31692. }
  31693. // Validate inspects the fields of the type to determine if they are valid.
  31694. func (s *CreateFpgaImageInput) Validate() error {
  31695. invalidParams := request.ErrInvalidParams{Context: "CreateFpgaImageInput"}
  31696. if s.InputStorageLocation == nil {
  31697. invalidParams.Add(request.NewErrParamRequired("InputStorageLocation"))
  31698. }
  31699. if invalidParams.Len() > 0 {
  31700. return invalidParams
  31701. }
  31702. return nil
  31703. }
  31704. // SetClientToken sets the ClientToken field's value.
  31705. func (s *CreateFpgaImageInput) SetClientToken(v string) *CreateFpgaImageInput {
  31706. s.ClientToken = &v
  31707. return s
  31708. }
  31709. // SetDescription sets the Description field's value.
  31710. func (s *CreateFpgaImageInput) SetDescription(v string) *CreateFpgaImageInput {
  31711. s.Description = &v
  31712. return s
  31713. }
  31714. // SetDryRun sets the DryRun field's value.
  31715. func (s *CreateFpgaImageInput) SetDryRun(v bool) *CreateFpgaImageInput {
  31716. s.DryRun = &v
  31717. return s
  31718. }
  31719. // SetInputStorageLocation sets the InputStorageLocation field's value.
  31720. func (s *CreateFpgaImageInput) SetInputStorageLocation(v *StorageLocation) *CreateFpgaImageInput {
  31721. s.InputStorageLocation = v
  31722. return s
  31723. }
  31724. // SetLogsStorageLocation sets the LogsStorageLocation field's value.
  31725. func (s *CreateFpgaImageInput) SetLogsStorageLocation(v *StorageLocation) *CreateFpgaImageInput {
  31726. s.LogsStorageLocation = v
  31727. return s
  31728. }
  31729. // SetName sets the Name field's value.
  31730. func (s *CreateFpgaImageInput) SetName(v string) *CreateFpgaImageInput {
  31731. s.Name = &v
  31732. return s
  31733. }
  31734. type CreateFpgaImageOutput struct {
  31735. _ struct{} `type:"structure"`
  31736. // The global FPGA image identifier (AGFI ID).
  31737. FpgaImageGlobalId *string `locationName:"fpgaImageGlobalId" type:"string"`
  31738. // The FPGA image identifier (AFI ID).
  31739. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  31740. }
  31741. // String returns the string representation
  31742. func (s CreateFpgaImageOutput) String() string {
  31743. return awsutil.Prettify(s)
  31744. }
  31745. // GoString returns the string representation
  31746. func (s CreateFpgaImageOutput) GoString() string {
  31747. return s.String()
  31748. }
  31749. // SetFpgaImageGlobalId sets the FpgaImageGlobalId field's value.
  31750. func (s *CreateFpgaImageOutput) SetFpgaImageGlobalId(v string) *CreateFpgaImageOutput {
  31751. s.FpgaImageGlobalId = &v
  31752. return s
  31753. }
  31754. // SetFpgaImageId sets the FpgaImageId field's value.
  31755. func (s *CreateFpgaImageOutput) SetFpgaImageId(v string) *CreateFpgaImageOutput {
  31756. s.FpgaImageId = &v
  31757. return s
  31758. }
  31759. // Contains the parameters for CreateImage.
  31760. type CreateImageInput struct {
  31761. _ struct{} `type:"structure"`
  31762. // Information about one or more block device mappings. This parameter cannot
  31763. // be used to modify the encryption status of existing volumes or snapshots.
  31764. // To create an AMI with encrypted snapshots, use the CopyImage action.
  31765. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  31766. // A description for the new image.
  31767. Description *string `locationName:"description" type:"string"`
  31768. // Checks whether you have the required permissions for the action, without
  31769. // actually making the request, and provides an error response. If you have
  31770. // the required permissions, the error response is DryRunOperation. Otherwise,
  31771. // it is UnauthorizedOperation.
  31772. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31773. // The ID of the instance.
  31774. //
  31775. // InstanceId is a required field
  31776. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  31777. // A name for the new image.
  31778. //
  31779. // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
  31780. // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
  31781. // at-signs (@), or underscores(_)
  31782. //
  31783. // Name is a required field
  31784. Name *string `locationName:"name" type:"string" required:"true"`
  31785. // By default, Amazon EC2 attempts to shut down and reboot the instance before
  31786. // creating the image. If the 'No Reboot' option is set, Amazon EC2 doesn't
  31787. // shut down the instance before creating the image. When this option is used,
  31788. // file system integrity on the created image can't be guaranteed.
  31789. NoReboot *bool `locationName:"noReboot" type:"boolean"`
  31790. }
  31791. // String returns the string representation
  31792. func (s CreateImageInput) String() string {
  31793. return awsutil.Prettify(s)
  31794. }
  31795. // GoString returns the string representation
  31796. func (s CreateImageInput) GoString() string {
  31797. return s.String()
  31798. }
  31799. // Validate inspects the fields of the type to determine if they are valid.
  31800. func (s *CreateImageInput) Validate() error {
  31801. invalidParams := request.ErrInvalidParams{Context: "CreateImageInput"}
  31802. if s.InstanceId == nil {
  31803. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  31804. }
  31805. if s.Name == nil {
  31806. invalidParams.Add(request.NewErrParamRequired("Name"))
  31807. }
  31808. if invalidParams.Len() > 0 {
  31809. return invalidParams
  31810. }
  31811. return nil
  31812. }
  31813. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  31814. func (s *CreateImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *CreateImageInput {
  31815. s.BlockDeviceMappings = v
  31816. return s
  31817. }
  31818. // SetDescription sets the Description field's value.
  31819. func (s *CreateImageInput) SetDescription(v string) *CreateImageInput {
  31820. s.Description = &v
  31821. return s
  31822. }
  31823. // SetDryRun sets the DryRun field's value.
  31824. func (s *CreateImageInput) SetDryRun(v bool) *CreateImageInput {
  31825. s.DryRun = &v
  31826. return s
  31827. }
  31828. // SetInstanceId sets the InstanceId field's value.
  31829. func (s *CreateImageInput) SetInstanceId(v string) *CreateImageInput {
  31830. s.InstanceId = &v
  31831. return s
  31832. }
  31833. // SetName sets the Name field's value.
  31834. func (s *CreateImageInput) SetName(v string) *CreateImageInput {
  31835. s.Name = &v
  31836. return s
  31837. }
  31838. // SetNoReboot sets the NoReboot field's value.
  31839. func (s *CreateImageInput) SetNoReboot(v bool) *CreateImageInput {
  31840. s.NoReboot = &v
  31841. return s
  31842. }
  31843. // Contains the output of CreateImage.
  31844. type CreateImageOutput struct {
  31845. _ struct{} `type:"structure"`
  31846. // The ID of the new AMI.
  31847. ImageId *string `locationName:"imageId" type:"string"`
  31848. }
  31849. // String returns the string representation
  31850. func (s CreateImageOutput) String() string {
  31851. return awsutil.Prettify(s)
  31852. }
  31853. // GoString returns the string representation
  31854. func (s CreateImageOutput) GoString() string {
  31855. return s.String()
  31856. }
  31857. // SetImageId sets the ImageId field's value.
  31858. func (s *CreateImageOutput) SetImageId(v string) *CreateImageOutput {
  31859. s.ImageId = &v
  31860. return s
  31861. }
  31862. // Contains the parameters for CreateInstanceExportTask.
  31863. type CreateInstanceExportTaskInput struct {
  31864. _ struct{} `type:"structure"`
  31865. // A description for the conversion task or the resource being exported. The
  31866. // maximum length is 255 bytes.
  31867. Description *string `locationName:"description" type:"string"`
  31868. // The format and location for an instance export task.
  31869. ExportToS3Task *ExportToS3TaskSpecification `locationName:"exportToS3" type:"structure"`
  31870. // The ID of the instance.
  31871. //
  31872. // InstanceId is a required field
  31873. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  31874. // The target virtualization environment.
  31875. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"`
  31876. }
  31877. // String returns the string representation
  31878. func (s CreateInstanceExportTaskInput) String() string {
  31879. return awsutil.Prettify(s)
  31880. }
  31881. // GoString returns the string representation
  31882. func (s CreateInstanceExportTaskInput) GoString() string {
  31883. return s.String()
  31884. }
  31885. // Validate inspects the fields of the type to determine if they are valid.
  31886. func (s *CreateInstanceExportTaskInput) Validate() error {
  31887. invalidParams := request.ErrInvalidParams{Context: "CreateInstanceExportTaskInput"}
  31888. if s.InstanceId == nil {
  31889. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  31890. }
  31891. if invalidParams.Len() > 0 {
  31892. return invalidParams
  31893. }
  31894. return nil
  31895. }
  31896. // SetDescription sets the Description field's value.
  31897. func (s *CreateInstanceExportTaskInput) SetDescription(v string) *CreateInstanceExportTaskInput {
  31898. s.Description = &v
  31899. return s
  31900. }
  31901. // SetExportToS3Task sets the ExportToS3Task field's value.
  31902. func (s *CreateInstanceExportTaskInput) SetExportToS3Task(v *ExportToS3TaskSpecification) *CreateInstanceExportTaskInput {
  31903. s.ExportToS3Task = v
  31904. return s
  31905. }
  31906. // SetInstanceId sets the InstanceId field's value.
  31907. func (s *CreateInstanceExportTaskInput) SetInstanceId(v string) *CreateInstanceExportTaskInput {
  31908. s.InstanceId = &v
  31909. return s
  31910. }
  31911. // SetTargetEnvironment sets the TargetEnvironment field's value.
  31912. func (s *CreateInstanceExportTaskInput) SetTargetEnvironment(v string) *CreateInstanceExportTaskInput {
  31913. s.TargetEnvironment = &v
  31914. return s
  31915. }
  31916. // Contains the output for CreateInstanceExportTask.
  31917. type CreateInstanceExportTaskOutput struct {
  31918. _ struct{} `type:"structure"`
  31919. // Information about the instance export task.
  31920. ExportTask *ExportTask `locationName:"exportTask" type:"structure"`
  31921. }
  31922. // String returns the string representation
  31923. func (s CreateInstanceExportTaskOutput) String() string {
  31924. return awsutil.Prettify(s)
  31925. }
  31926. // GoString returns the string representation
  31927. func (s CreateInstanceExportTaskOutput) GoString() string {
  31928. return s.String()
  31929. }
  31930. // SetExportTask sets the ExportTask field's value.
  31931. func (s *CreateInstanceExportTaskOutput) SetExportTask(v *ExportTask) *CreateInstanceExportTaskOutput {
  31932. s.ExportTask = v
  31933. return s
  31934. }
  31935. type CreateInternetGatewayInput struct {
  31936. _ struct{} `type:"structure"`
  31937. // Checks whether you have the required permissions for the action, without
  31938. // actually making the request, and provides an error response. If you have
  31939. // the required permissions, the error response is DryRunOperation. Otherwise,
  31940. // it is UnauthorizedOperation.
  31941. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31942. }
  31943. // String returns the string representation
  31944. func (s CreateInternetGatewayInput) String() string {
  31945. return awsutil.Prettify(s)
  31946. }
  31947. // GoString returns the string representation
  31948. func (s CreateInternetGatewayInput) GoString() string {
  31949. return s.String()
  31950. }
  31951. // SetDryRun sets the DryRun field's value.
  31952. func (s *CreateInternetGatewayInput) SetDryRun(v bool) *CreateInternetGatewayInput {
  31953. s.DryRun = &v
  31954. return s
  31955. }
  31956. type CreateInternetGatewayOutput struct {
  31957. _ struct{} `type:"structure"`
  31958. // Information about the internet gateway.
  31959. InternetGateway *InternetGateway `locationName:"internetGateway" type:"structure"`
  31960. }
  31961. // String returns the string representation
  31962. func (s CreateInternetGatewayOutput) String() string {
  31963. return awsutil.Prettify(s)
  31964. }
  31965. // GoString returns the string representation
  31966. func (s CreateInternetGatewayOutput) GoString() string {
  31967. return s.String()
  31968. }
  31969. // SetInternetGateway sets the InternetGateway field's value.
  31970. func (s *CreateInternetGatewayOutput) SetInternetGateway(v *InternetGateway) *CreateInternetGatewayOutput {
  31971. s.InternetGateway = v
  31972. return s
  31973. }
  31974. type CreateKeyPairInput struct {
  31975. _ struct{} `type:"structure"`
  31976. // Checks whether you have the required permissions for the action, without
  31977. // actually making the request, and provides an error response. If you have
  31978. // the required permissions, the error response is DryRunOperation. Otherwise,
  31979. // it is UnauthorizedOperation.
  31980. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31981. // A unique name for the key pair.
  31982. //
  31983. // Constraints: Up to 255 ASCII characters
  31984. //
  31985. // KeyName is a required field
  31986. KeyName *string `type:"string" required:"true"`
  31987. }
  31988. // String returns the string representation
  31989. func (s CreateKeyPairInput) String() string {
  31990. return awsutil.Prettify(s)
  31991. }
  31992. // GoString returns the string representation
  31993. func (s CreateKeyPairInput) GoString() string {
  31994. return s.String()
  31995. }
  31996. // Validate inspects the fields of the type to determine if they are valid.
  31997. func (s *CreateKeyPairInput) Validate() error {
  31998. invalidParams := request.ErrInvalidParams{Context: "CreateKeyPairInput"}
  31999. if s.KeyName == nil {
  32000. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  32001. }
  32002. if invalidParams.Len() > 0 {
  32003. return invalidParams
  32004. }
  32005. return nil
  32006. }
  32007. // SetDryRun sets the DryRun field's value.
  32008. func (s *CreateKeyPairInput) SetDryRun(v bool) *CreateKeyPairInput {
  32009. s.DryRun = &v
  32010. return s
  32011. }
  32012. // SetKeyName sets the KeyName field's value.
  32013. func (s *CreateKeyPairInput) SetKeyName(v string) *CreateKeyPairInput {
  32014. s.KeyName = &v
  32015. return s
  32016. }
  32017. // Describes a key pair.
  32018. type CreateKeyPairOutput struct {
  32019. _ struct{} `type:"structure"`
  32020. // The SHA-1 digest of the DER encoded private key.
  32021. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  32022. // An unencrypted PEM encoded RSA private key.
  32023. KeyMaterial *string `locationName:"keyMaterial" type:"string"`
  32024. // The name of the key pair.
  32025. KeyName *string `locationName:"keyName" type:"string"`
  32026. }
  32027. // String returns the string representation
  32028. func (s CreateKeyPairOutput) String() string {
  32029. return awsutil.Prettify(s)
  32030. }
  32031. // GoString returns the string representation
  32032. func (s CreateKeyPairOutput) GoString() string {
  32033. return s.String()
  32034. }
  32035. // SetKeyFingerprint sets the KeyFingerprint field's value.
  32036. func (s *CreateKeyPairOutput) SetKeyFingerprint(v string) *CreateKeyPairOutput {
  32037. s.KeyFingerprint = &v
  32038. return s
  32039. }
  32040. // SetKeyMaterial sets the KeyMaterial field's value.
  32041. func (s *CreateKeyPairOutput) SetKeyMaterial(v string) *CreateKeyPairOutput {
  32042. s.KeyMaterial = &v
  32043. return s
  32044. }
  32045. // SetKeyName sets the KeyName field's value.
  32046. func (s *CreateKeyPairOutput) SetKeyName(v string) *CreateKeyPairOutput {
  32047. s.KeyName = &v
  32048. return s
  32049. }
  32050. type CreateLaunchTemplateInput struct {
  32051. _ struct{} `type:"structure"`
  32052. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  32053. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  32054. ClientToken *string `type:"string"`
  32055. // Checks whether you have the required permissions for the action, without
  32056. // actually making the request, and provides an error response. If you have
  32057. // the required permissions, the error response is DryRunOperation. Otherwise,
  32058. // it is UnauthorizedOperation.
  32059. DryRun *bool `type:"boolean"`
  32060. // The information for the launch template.
  32061. //
  32062. // LaunchTemplateData is a required field
  32063. LaunchTemplateData *RequestLaunchTemplateData `type:"structure" required:"true"`
  32064. // A name for the launch template.
  32065. //
  32066. // LaunchTemplateName is a required field
  32067. LaunchTemplateName *string `min:"3" type:"string" required:"true"`
  32068. // A description for the first version of the launch template.
  32069. VersionDescription *string `type:"string"`
  32070. }
  32071. // String returns the string representation
  32072. func (s CreateLaunchTemplateInput) String() string {
  32073. return awsutil.Prettify(s)
  32074. }
  32075. // GoString returns the string representation
  32076. func (s CreateLaunchTemplateInput) GoString() string {
  32077. return s.String()
  32078. }
  32079. // Validate inspects the fields of the type to determine if they are valid.
  32080. func (s *CreateLaunchTemplateInput) Validate() error {
  32081. invalidParams := request.ErrInvalidParams{Context: "CreateLaunchTemplateInput"}
  32082. if s.LaunchTemplateData == nil {
  32083. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateData"))
  32084. }
  32085. if s.LaunchTemplateName == nil {
  32086. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateName"))
  32087. }
  32088. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  32089. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  32090. }
  32091. if s.LaunchTemplateData != nil {
  32092. if err := s.LaunchTemplateData.Validate(); err != nil {
  32093. invalidParams.AddNested("LaunchTemplateData", err.(request.ErrInvalidParams))
  32094. }
  32095. }
  32096. if invalidParams.Len() > 0 {
  32097. return invalidParams
  32098. }
  32099. return nil
  32100. }
  32101. // SetClientToken sets the ClientToken field's value.
  32102. func (s *CreateLaunchTemplateInput) SetClientToken(v string) *CreateLaunchTemplateInput {
  32103. s.ClientToken = &v
  32104. return s
  32105. }
  32106. // SetDryRun sets the DryRun field's value.
  32107. func (s *CreateLaunchTemplateInput) SetDryRun(v bool) *CreateLaunchTemplateInput {
  32108. s.DryRun = &v
  32109. return s
  32110. }
  32111. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  32112. func (s *CreateLaunchTemplateInput) SetLaunchTemplateData(v *RequestLaunchTemplateData) *CreateLaunchTemplateInput {
  32113. s.LaunchTemplateData = v
  32114. return s
  32115. }
  32116. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  32117. func (s *CreateLaunchTemplateInput) SetLaunchTemplateName(v string) *CreateLaunchTemplateInput {
  32118. s.LaunchTemplateName = &v
  32119. return s
  32120. }
  32121. // SetVersionDescription sets the VersionDescription field's value.
  32122. func (s *CreateLaunchTemplateInput) SetVersionDescription(v string) *CreateLaunchTemplateInput {
  32123. s.VersionDescription = &v
  32124. return s
  32125. }
  32126. type CreateLaunchTemplateOutput struct {
  32127. _ struct{} `type:"structure"`
  32128. // Information about the launch template.
  32129. LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
  32130. }
  32131. // String returns the string representation
  32132. func (s CreateLaunchTemplateOutput) String() string {
  32133. return awsutil.Prettify(s)
  32134. }
  32135. // GoString returns the string representation
  32136. func (s CreateLaunchTemplateOutput) GoString() string {
  32137. return s.String()
  32138. }
  32139. // SetLaunchTemplate sets the LaunchTemplate field's value.
  32140. func (s *CreateLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *CreateLaunchTemplateOutput {
  32141. s.LaunchTemplate = v
  32142. return s
  32143. }
  32144. type CreateLaunchTemplateVersionInput struct {
  32145. _ struct{} `type:"structure"`
  32146. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  32147. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  32148. ClientToken *string `type:"string"`
  32149. // Checks whether you have the required permissions for the action, without
  32150. // actually making the request, and provides an error response. If you have
  32151. // the required permissions, the error response is DryRunOperation. Otherwise,
  32152. // it is UnauthorizedOperation.
  32153. DryRun *bool `type:"boolean"`
  32154. // The information for the launch template.
  32155. //
  32156. // LaunchTemplateData is a required field
  32157. LaunchTemplateData *RequestLaunchTemplateData `type:"structure" required:"true"`
  32158. // The ID of the launch template. You must specify either the launch template
  32159. // ID or launch template name in the request.
  32160. LaunchTemplateId *string `type:"string"`
  32161. // The name of the launch template. You must specify either the launch template
  32162. // ID or launch template name in the request.
  32163. LaunchTemplateName *string `min:"3" type:"string"`
  32164. // The version number of the launch template version on which to base the new
  32165. // version. The new version inherits the same launch parameters as the source
  32166. // version, except for parameters that you specify in LaunchTemplateData.
  32167. SourceVersion *string `type:"string"`
  32168. // A description for the version of the launch template.
  32169. VersionDescription *string `type:"string"`
  32170. }
  32171. // String returns the string representation
  32172. func (s CreateLaunchTemplateVersionInput) String() string {
  32173. return awsutil.Prettify(s)
  32174. }
  32175. // GoString returns the string representation
  32176. func (s CreateLaunchTemplateVersionInput) GoString() string {
  32177. return s.String()
  32178. }
  32179. // Validate inspects the fields of the type to determine if they are valid.
  32180. func (s *CreateLaunchTemplateVersionInput) Validate() error {
  32181. invalidParams := request.ErrInvalidParams{Context: "CreateLaunchTemplateVersionInput"}
  32182. if s.LaunchTemplateData == nil {
  32183. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateData"))
  32184. }
  32185. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  32186. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  32187. }
  32188. if s.LaunchTemplateData != nil {
  32189. if err := s.LaunchTemplateData.Validate(); err != nil {
  32190. invalidParams.AddNested("LaunchTemplateData", err.(request.ErrInvalidParams))
  32191. }
  32192. }
  32193. if invalidParams.Len() > 0 {
  32194. return invalidParams
  32195. }
  32196. return nil
  32197. }
  32198. // SetClientToken sets the ClientToken field's value.
  32199. func (s *CreateLaunchTemplateVersionInput) SetClientToken(v string) *CreateLaunchTemplateVersionInput {
  32200. s.ClientToken = &v
  32201. return s
  32202. }
  32203. // SetDryRun sets the DryRun field's value.
  32204. func (s *CreateLaunchTemplateVersionInput) SetDryRun(v bool) *CreateLaunchTemplateVersionInput {
  32205. s.DryRun = &v
  32206. return s
  32207. }
  32208. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  32209. func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateData(v *RequestLaunchTemplateData) *CreateLaunchTemplateVersionInput {
  32210. s.LaunchTemplateData = v
  32211. return s
  32212. }
  32213. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  32214. func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateId(v string) *CreateLaunchTemplateVersionInput {
  32215. s.LaunchTemplateId = &v
  32216. return s
  32217. }
  32218. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  32219. func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateName(v string) *CreateLaunchTemplateVersionInput {
  32220. s.LaunchTemplateName = &v
  32221. return s
  32222. }
  32223. // SetSourceVersion sets the SourceVersion field's value.
  32224. func (s *CreateLaunchTemplateVersionInput) SetSourceVersion(v string) *CreateLaunchTemplateVersionInput {
  32225. s.SourceVersion = &v
  32226. return s
  32227. }
  32228. // SetVersionDescription sets the VersionDescription field's value.
  32229. func (s *CreateLaunchTemplateVersionInput) SetVersionDescription(v string) *CreateLaunchTemplateVersionInput {
  32230. s.VersionDescription = &v
  32231. return s
  32232. }
  32233. type CreateLaunchTemplateVersionOutput struct {
  32234. _ struct{} `type:"structure"`
  32235. // Information about the launch template version.
  32236. LaunchTemplateVersion *LaunchTemplateVersion `locationName:"launchTemplateVersion" type:"structure"`
  32237. }
  32238. // String returns the string representation
  32239. func (s CreateLaunchTemplateVersionOutput) String() string {
  32240. return awsutil.Prettify(s)
  32241. }
  32242. // GoString returns the string representation
  32243. func (s CreateLaunchTemplateVersionOutput) GoString() string {
  32244. return s.String()
  32245. }
  32246. // SetLaunchTemplateVersion sets the LaunchTemplateVersion field's value.
  32247. func (s *CreateLaunchTemplateVersionOutput) SetLaunchTemplateVersion(v *LaunchTemplateVersion) *CreateLaunchTemplateVersionOutput {
  32248. s.LaunchTemplateVersion = v
  32249. return s
  32250. }
  32251. type CreateNatGatewayInput struct {
  32252. _ struct{} `type:"structure"`
  32253. // The allocation ID of an Elastic IP address to associate with the NAT gateway.
  32254. // If the Elastic IP address is associated with another resource, you must first
  32255. // disassociate it.
  32256. //
  32257. // AllocationId is a required field
  32258. AllocationId *string `type:"string" required:"true"`
  32259. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  32260. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  32261. //
  32262. // Constraint: Maximum 64 ASCII characters.
  32263. ClientToken *string `type:"string"`
  32264. // The subnet in which to create the NAT gateway.
  32265. //
  32266. // SubnetId is a required field
  32267. SubnetId *string `type:"string" required:"true"`
  32268. }
  32269. // String returns the string representation
  32270. func (s CreateNatGatewayInput) String() string {
  32271. return awsutil.Prettify(s)
  32272. }
  32273. // GoString returns the string representation
  32274. func (s CreateNatGatewayInput) GoString() string {
  32275. return s.String()
  32276. }
  32277. // Validate inspects the fields of the type to determine if they are valid.
  32278. func (s *CreateNatGatewayInput) Validate() error {
  32279. invalidParams := request.ErrInvalidParams{Context: "CreateNatGatewayInput"}
  32280. if s.AllocationId == nil {
  32281. invalidParams.Add(request.NewErrParamRequired("AllocationId"))
  32282. }
  32283. if s.SubnetId == nil {
  32284. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  32285. }
  32286. if invalidParams.Len() > 0 {
  32287. return invalidParams
  32288. }
  32289. return nil
  32290. }
  32291. // SetAllocationId sets the AllocationId field's value.
  32292. func (s *CreateNatGatewayInput) SetAllocationId(v string) *CreateNatGatewayInput {
  32293. s.AllocationId = &v
  32294. return s
  32295. }
  32296. // SetClientToken sets the ClientToken field's value.
  32297. func (s *CreateNatGatewayInput) SetClientToken(v string) *CreateNatGatewayInput {
  32298. s.ClientToken = &v
  32299. return s
  32300. }
  32301. // SetSubnetId sets the SubnetId field's value.
  32302. func (s *CreateNatGatewayInput) SetSubnetId(v string) *CreateNatGatewayInput {
  32303. s.SubnetId = &v
  32304. return s
  32305. }
  32306. type CreateNatGatewayOutput struct {
  32307. _ struct{} `type:"structure"`
  32308. // Unique, case-sensitive identifier to ensure the idempotency of the request.
  32309. // Only returned if a client token was provided in the request.
  32310. ClientToken *string `locationName:"clientToken" type:"string"`
  32311. // Information about the NAT gateway.
  32312. NatGateway *NatGateway `locationName:"natGateway" type:"structure"`
  32313. }
  32314. // String returns the string representation
  32315. func (s CreateNatGatewayOutput) String() string {
  32316. return awsutil.Prettify(s)
  32317. }
  32318. // GoString returns the string representation
  32319. func (s CreateNatGatewayOutput) GoString() string {
  32320. return s.String()
  32321. }
  32322. // SetClientToken sets the ClientToken field's value.
  32323. func (s *CreateNatGatewayOutput) SetClientToken(v string) *CreateNatGatewayOutput {
  32324. s.ClientToken = &v
  32325. return s
  32326. }
  32327. // SetNatGateway sets the NatGateway field's value.
  32328. func (s *CreateNatGatewayOutput) SetNatGateway(v *NatGateway) *CreateNatGatewayOutput {
  32329. s.NatGateway = v
  32330. return s
  32331. }
  32332. type CreateNetworkAclEntryInput struct {
  32333. _ struct{} `type:"structure"`
  32334. // The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
  32335. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  32336. // Checks whether you have the required permissions for the action, without
  32337. // actually making the request, and provides an error response. If you have
  32338. // the required permissions, the error response is DryRunOperation. Otherwise,
  32339. // it is UnauthorizedOperation.
  32340. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32341. // Indicates whether this is an egress rule (rule is applied to traffic leaving
  32342. // the subnet).
  32343. //
  32344. // Egress is a required field
  32345. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  32346. // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol
  32347. // 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block.
  32348. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`
  32349. // The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64).
  32350. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  32351. // The ID of the network ACL.
  32352. //
  32353. // NetworkAclId is a required field
  32354. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  32355. // TCP or UDP protocols: The range of ports the rule applies to. Required if
  32356. // specifying protocol 6 (TCP) or 17 (UDP).
  32357. PortRange *PortRange `locationName:"portRange" type:"structure"`
  32358. // The protocol number. A value of "-1" means all protocols. If you specify
  32359. // "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP),
  32360. // traffic on all ports is allowed, regardless of any ports or ICMP types or
  32361. // codes that you specify. If you specify protocol "58" (ICMPv6) and specify
  32362. // an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless
  32363. // of any that you specify. If you specify protocol "58" (ICMPv6) and specify
  32364. // an IPv6 CIDR block, you must specify an ICMP type and code.
  32365. //
  32366. // Protocol is a required field
  32367. Protocol *string `locationName:"protocol" type:"string" required:"true"`
  32368. // Indicates whether to allow or deny the traffic that matches the rule.
  32369. //
  32370. // RuleAction is a required field
  32371. RuleAction *string `locationName:"ruleAction" type:"string" required:"true" enum:"RuleAction"`
  32372. // The rule number for the entry (for example, 100). ACL entries are processed
  32373. // in ascending order by rule number.
  32374. //
  32375. // Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is
  32376. // reserved for internal use.
  32377. //
  32378. // RuleNumber is a required field
  32379. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  32380. }
  32381. // String returns the string representation
  32382. func (s CreateNetworkAclEntryInput) String() string {
  32383. return awsutil.Prettify(s)
  32384. }
  32385. // GoString returns the string representation
  32386. func (s CreateNetworkAclEntryInput) GoString() string {
  32387. return s.String()
  32388. }
  32389. // Validate inspects the fields of the type to determine if they are valid.
  32390. func (s *CreateNetworkAclEntryInput) Validate() error {
  32391. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclEntryInput"}
  32392. if s.Egress == nil {
  32393. invalidParams.Add(request.NewErrParamRequired("Egress"))
  32394. }
  32395. if s.NetworkAclId == nil {
  32396. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  32397. }
  32398. if s.Protocol == nil {
  32399. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  32400. }
  32401. if s.RuleAction == nil {
  32402. invalidParams.Add(request.NewErrParamRequired("RuleAction"))
  32403. }
  32404. if s.RuleNumber == nil {
  32405. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  32406. }
  32407. if invalidParams.Len() > 0 {
  32408. return invalidParams
  32409. }
  32410. return nil
  32411. }
  32412. // SetCidrBlock sets the CidrBlock field's value.
  32413. func (s *CreateNetworkAclEntryInput) SetCidrBlock(v string) *CreateNetworkAclEntryInput {
  32414. s.CidrBlock = &v
  32415. return s
  32416. }
  32417. // SetDryRun sets the DryRun field's value.
  32418. func (s *CreateNetworkAclEntryInput) SetDryRun(v bool) *CreateNetworkAclEntryInput {
  32419. s.DryRun = &v
  32420. return s
  32421. }
  32422. // SetEgress sets the Egress field's value.
  32423. func (s *CreateNetworkAclEntryInput) SetEgress(v bool) *CreateNetworkAclEntryInput {
  32424. s.Egress = &v
  32425. return s
  32426. }
  32427. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  32428. func (s *CreateNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *CreateNetworkAclEntryInput {
  32429. s.IcmpTypeCode = v
  32430. return s
  32431. }
  32432. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  32433. func (s *CreateNetworkAclEntryInput) SetIpv6CidrBlock(v string) *CreateNetworkAclEntryInput {
  32434. s.Ipv6CidrBlock = &v
  32435. return s
  32436. }
  32437. // SetNetworkAclId sets the NetworkAclId field's value.
  32438. func (s *CreateNetworkAclEntryInput) SetNetworkAclId(v string) *CreateNetworkAclEntryInput {
  32439. s.NetworkAclId = &v
  32440. return s
  32441. }
  32442. // SetPortRange sets the PortRange field's value.
  32443. func (s *CreateNetworkAclEntryInput) SetPortRange(v *PortRange) *CreateNetworkAclEntryInput {
  32444. s.PortRange = v
  32445. return s
  32446. }
  32447. // SetProtocol sets the Protocol field's value.
  32448. func (s *CreateNetworkAclEntryInput) SetProtocol(v string) *CreateNetworkAclEntryInput {
  32449. s.Protocol = &v
  32450. return s
  32451. }
  32452. // SetRuleAction sets the RuleAction field's value.
  32453. func (s *CreateNetworkAclEntryInput) SetRuleAction(v string) *CreateNetworkAclEntryInput {
  32454. s.RuleAction = &v
  32455. return s
  32456. }
  32457. // SetRuleNumber sets the RuleNumber field's value.
  32458. func (s *CreateNetworkAclEntryInput) SetRuleNumber(v int64) *CreateNetworkAclEntryInput {
  32459. s.RuleNumber = &v
  32460. return s
  32461. }
  32462. type CreateNetworkAclEntryOutput struct {
  32463. _ struct{} `type:"structure"`
  32464. }
  32465. // String returns the string representation
  32466. func (s CreateNetworkAclEntryOutput) String() string {
  32467. return awsutil.Prettify(s)
  32468. }
  32469. // GoString returns the string representation
  32470. func (s CreateNetworkAclEntryOutput) GoString() string {
  32471. return s.String()
  32472. }
  32473. type CreateNetworkAclInput struct {
  32474. _ struct{} `type:"structure"`
  32475. // Checks whether you have the required permissions for the action, without
  32476. // actually making the request, and provides an error response. If you have
  32477. // the required permissions, the error response is DryRunOperation. Otherwise,
  32478. // it is UnauthorizedOperation.
  32479. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32480. // The ID of the VPC.
  32481. //
  32482. // VpcId is a required field
  32483. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  32484. }
  32485. // String returns the string representation
  32486. func (s CreateNetworkAclInput) String() string {
  32487. return awsutil.Prettify(s)
  32488. }
  32489. // GoString returns the string representation
  32490. func (s CreateNetworkAclInput) GoString() string {
  32491. return s.String()
  32492. }
  32493. // Validate inspects the fields of the type to determine if they are valid.
  32494. func (s *CreateNetworkAclInput) Validate() error {
  32495. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclInput"}
  32496. if s.VpcId == nil {
  32497. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  32498. }
  32499. if invalidParams.Len() > 0 {
  32500. return invalidParams
  32501. }
  32502. return nil
  32503. }
  32504. // SetDryRun sets the DryRun field's value.
  32505. func (s *CreateNetworkAclInput) SetDryRun(v bool) *CreateNetworkAclInput {
  32506. s.DryRun = &v
  32507. return s
  32508. }
  32509. // SetVpcId sets the VpcId field's value.
  32510. func (s *CreateNetworkAclInput) SetVpcId(v string) *CreateNetworkAclInput {
  32511. s.VpcId = &v
  32512. return s
  32513. }
  32514. type CreateNetworkAclOutput struct {
  32515. _ struct{} `type:"structure"`
  32516. // Information about the network ACL.
  32517. NetworkAcl *NetworkAcl `locationName:"networkAcl" type:"structure"`
  32518. }
  32519. // String returns the string representation
  32520. func (s CreateNetworkAclOutput) String() string {
  32521. return awsutil.Prettify(s)
  32522. }
  32523. // GoString returns the string representation
  32524. func (s CreateNetworkAclOutput) GoString() string {
  32525. return s.String()
  32526. }
  32527. // SetNetworkAcl sets the NetworkAcl field's value.
  32528. func (s *CreateNetworkAclOutput) SetNetworkAcl(v *NetworkAcl) *CreateNetworkAclOutput {
  32529. s.NetworkAcl = v
  32530. return s
  32531. }
  32532. // Contains the parameters for CreateNetworkInterface.
  32533. type CreateNetworkInterfaceInput struct {
  32534. _ struct{} `type:"structure"`
  32535. // A description for the network interface.
  32536. Description *string `locationName:"description" type:"string"`
  32537. // Checks whether you have the required permissions for the action, without
  32538. // actually making the request, and provides an error response. If you have
  32539. // the required permissions, the error response is DryRunOperation. Otherwise,
  32540. // it is UnauthorizedOperation.
  32541. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32542. // The IDs of one or more security groups.
  32543. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  32544. // The number of IPv6 addresses to assign to a network interface. Amazon EC2
  32545. // automatically selects the IPv6 addresses from the subnet range. You can't
  32546. // use this option if specifying specific IPv6 addresses. If your subnet has
  32547. // the AssignIpv6AddressOnCreation attribute set to true, you can specify 0
  32548. // to override this setting.
  32549. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  32550. // One or more specific IPv6 addresses from the IPv6 CIDR block range of your
  32551. // subnet. You can't use this option if you're specifying a number of IPv6 addresses.
  32552. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6Addresses" locationNameList:"item" type:"list"`
  32553. // The primary private IPv4 address of the network interface. If you don't specify
  32554. // an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR
  32555. // range. If you specify an IP address, you cannot indicate any IP addresses
  32556. // specified in privateIpAddresses as primary (only one IP address can be designated
  32557. // as primary).
  32558. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  32559. // One or more private IPv4 addresses.
  32560. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddresses" locationNameList:"item" type:"list"`
  32561. // The number of secondary private IPv4 addresses to assign to a network interface.
  32562. // When you specify a number of secondary IPv4 addresses, Amazon EC2 selects
  32563. // these IP addresses within the subnet's IPv4 CIDR range. You can't specify
  32564. // this option and specify more than one private IP address using privateIpAddresses.
  32565. //
  32566. // The number of IP addresses you can assign to a network interface varies by
  32567. // instance type. For more information, see IP Addresses Per ENI Per Instance
  32568. // Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI)
  32569. // in the Amazon Virtual Private Cloud User Guide.
  32570. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  32571. // The ID of the subnet to associate with the network interface.
  32572. //
  32573. // SubnetId is a required field
  32574. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  32575. }
  32576. // String returns the string representation
  32577. func (s CreateNetworkInterfaceInput) String() string {
  32578. return awsutil.Prettify(s)
  32579. }
  32580. // GoString returns the string representation
  32581. func (s CreateNetworkInterfaceInput) GoString() string {
  32582. return s.String()
  32583. }
  32584. // Validate inspects the fields of the type to determine if they are valid.
  32585. func (s *CreateNetworkInterfaceInput) Validate() error {
  32586. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkInterfaceInput"}
  32587. if s.SubnetId == nil {
  32588. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  32589. }
  32590. if invalidParams.Len() > 0 {
  32591. return invalidParams
  32592. }
  32593. return nil
  32594. }
  32595. // SetDescription sets the Description field's value.
  32596. func (s *CreateNetworkInterfaceInput) SetDescription(v string) *CreateNetworkInterfaceInput {
  32597. s.Description = &v
  32598. return s
  32599. }
  32600. // SetDryRun sets the DryRun field's value.
  32601. func (s *CreateNetworkInterfaceInput) SetDryRun(v bool) *CreateNetworkInterfaceInput {
  32602. s.DryRun = &v
  32603. return s
  32604. }
  32605. // SetGroups sets the Groups field's value.
  32606. func (s *CreateNetworkInterfaceInput) SetGroups(v []*string) *CreateNetworkInterfaceInput {
  32607. s.Groups = v
  32608. return s
  32609. }
  32610. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  32611. func (s *CreateNetworkInterfaceInput) SetIpv6AddressCount(v int64) *CreateNetworkInterfaceInput {
  32612. s.Ipv6AddressCount = &v
  32613. return s
  32614. }
  32615. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  32616. func (s *CreateNetworkInterfaceInput) SetIpv6Addresses(v []*InstanceIpv6Address) *CreateNetworkInterfaceInput {
  32617. s.Ipv6Addresses = v
  32618. return s
  32619. }
  32620. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  32621. func (s *CreateNetworkInterfaceInput) SetPrivateIpAddress(v string) *CreateNetworkInterfaceInput {
  32622. s.PrivateIpAddress = &v
  32623. return s
  32624. }
  32625. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  32626. func (s *CreateNetworkInterfaceInput) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *CreateNetworkInterfaceInput {
  32627. s.PrivateIpAddresses = v
  32628. return s
  32629. }
  32630. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  32631. func (s *CreateNetworkInterfaceInput) SetSecondaryPrivateIpAddressCount(v int64) *CreateNetworkInterfaceInput {
  32632. s.SecondaryPrivateIpAddressCount = &v
  32633. return s
  32634. }
  32635. // SetSubnetId sets the SubnetId field's value.
  32636. func (s *CreateNetworkInterfaceInput) SetSubnetId(v string) *CreateNetworkInterfaceInput {
  32637. s.SubnetId = &v
  32638. return s
  32639. }
  32640. // Contains the output of CreateNetworkInterface.
  32641. type CreateNetworkInterfaceOutput struct {
  32642. _ struct{} `type:"structure"`
  32643. // Information about the network interface.
  32644. NetworkInterface *NetworkInterface `locationName:"networkInterface" type:"structure"`
  32645. }
  32646. // String returns the string representation
  32647. func (s CreateNetworkInterfaceOutput) String() string {
  32648. return awsutil.Prettify(s)
  32649. }
  32650. // GoString returns the string representation
  32651. func (s CreateNetworkInterfaceOutput) GoString() string {
  32652. return s.String()
  32653. }
  32654. // SetNetworkInterface sets the NetworkInterface field's value.
  32655. func (s *CreateNetworkInterfaceOutput) SetNetworkInterface(v *NetworkInterface) *CreateNetworkInterfaceOutput {
  32656. s.NetworkInterface = v
  32657. return s
  32658. }
  32659. // Contains the parameters for CreateNetworkInterfacePermission.
  32660. type CreateNetworkInterfacePermissionInput struct {
  32661. _ struct{} `type:"structure"`
  32662. // The AWS account ID.
  32663. AwsAccountId *string `type:"string"`
  32664. // The AWS service. Currently not supported.
  32665. AwsService *string `type:"string"`
  32666. // Checks whether you have the required permissions for the action, without
  32667. // actually making the request, and provides an error response. If you have
  32668. // the required permissions, the error response is DryRunOperation. Otherwise,
  32669. // it is UnauthorizedOperation.
  32670. DryRun *bool `type:"boolean"`
  32671. // The ID of the network interface.
  32672. //
  32673. // NetworkInterfaceId is a required field
  32674. NetworkInterfaceId *string `type:"string" required:"true"`
  32675. // The type of permission to grant.
  32676. //
  32677. // Permission is a required field
  32678. Permission *string `type:"string" required:"true" enum:"InterfacePermissionType"`
  32679. }
  32680. // String returns the string representation
  32681. func (s CreateNetworkInterfacePermissionInput) String() string {
  32682. return awsutil.Prettify(s)
  32683. }
  32684. // GoString returns the string representation
  32685. func (s CreateNetworkInterfacePermissionInput) GoString() string {
  32686. return s.String()
  32687. }
  32688. // Validate inspects the fields of the type to determine if they are valid.
  32689. func (s *CreateNetworkInterfacePermissionInput) Validate() error {
  32690. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkInterfacePermissionInput"}
  32691. if s.NetworkInterfaceId == nil {
  32692. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  32693. }
  32694. if s.Permission == nil {
  32695. invalidParams.Add(request.NewErrParamRequired("Permission"))
  32696. }
  32697. if invalidParams.Len() > 0 {
  32698. return invalidParams
  32699. }
  32700. return nil
  32701. }
  32702. // SetAwsAccountId sets the AwsAccountId field's value.
  32703. func (s *CreateNetworkInterfacePermissionInput) SetAwsAccountId(v string) *CreateNetworkInterfacePermissionInput {
  32704. s.AwsAccountId = &v
  32705. return s
  32706. }
  32707. // SetAwsService sets the AwsService field's value.
  32708. func (s *CreateNetworkInterfacePermissionInput) SetAwsService(v string) *CreateNetworkInterfacePermissionInput {
  32709. s.AwsService = &v
  32710. return s
  32711. }
  32712. // SetDryRun sets the DryRun field's value.
  32713. func (s *CreateNetworkInterfacePermissionInput) SetDryRun(v bool) *CreateNetworkInterfacePermissionInput {
  32714. s.DryRun = &v
  32715. return s
  32716. }
  32717. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  32718. func (s *CreateNetworkInterfacePermissionInput) SetNetworkInterfaceId(v string) *CreateNetworkInterfacePermissionInput {
  32719. s.NetworkInterfaceId = &v
  32720. return s
  32721. }
  32722. // SetPermission sets the Permission field's value.
  32723. func (s *CreateNetworkInterfacePermissionInput) SetPermission(v string) *CreateNetworkInterfacePermissionInput {
  32724. s.Permission = &v
  32725. return s
  32726. }
  32727. // Contains the output of CreateNetworkInterfacePermission.
  32728. type CreateNetworkInterfacePermissionOutput struct {
  32729. _ struct{} `type:"structure"`
  32730. // Information about the permission for the network interface.
  32731. InterfacePermission *NetworkInterfacePermission `locationName:"interfacePermission" type:"structure"`
  32732. }
  32733. // String returns the string representation
  32734. func (s CreateNetworkInterfacePermissionOutput) String() string {
  32735. return awsutil.Prettify(s)
  32736. }
  32737. // GoString returns the string representation
  32738. func (s CreateNetworkInterfacePermissionOutput) GoString() string {
  32739. return s.String()
  32740. }
  32741. // SetInterfacePermission sets the InterfacePermission field's value.
  32742. func (s *CreateNetworkInterfacePermissionOutput) SetInterfacePermission(v *NetworkInterfacePermission) *CreateNetworkInterfacePermissionOutput {
  32743. s.InterfacePermission = v
  32744. return s
  32745. }
  32746. type CreatePlacementGroupInput struct {
  32747. _ struct{} `type:"structure"`
  32748. // Checks whether you have the required permissions for the action, without
  32749. // actually making the request, and provides an error response. If you have
  32750. // the required permissions, the error response is DryRunOperation. Otherwise,
  32751. // it is UnauthorizedOperation.
  32752. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32753. // A name for the placement group. Must be unique within the scope of your account
  32754. // for the Region.
  32755. //
  32756. // Constraints: Up to 255 ASCII characters
  32757. GroupName *string `locationName:"groupName" type:"string"`
  32758. // The number of partitions. Valid only when Strategy is set to partition.
  32759. PartitionCount *int64 `type:"integer"`
  32760. // The placement strategy.
  32761. Strategy *string `locationName:"strategy" type:"string" enum:"PlacementStrategy"`
  32762. }
  32763. // String returns the string representation
  32764. func (s CreatePlacementGroupInput) String() string {
  32765. return awsutil.Prettify(s)
  32766. }
  32767. // GoString returns the string representation
  32768. func (s CreatePlacementGroupInput) GoString() string {
  32769. return s.String()
  32770. }
  32771. // SetDryRun sets the DryRun field's value.
  32772. func (s *CreatePlacementGroupInput) SetDryRun(v bool) *CreatePlacementGroupInput {
  32773. s.DryRun = &v
  32774. return s
  32775. }
  32776. // SetGroupName sets the GroupName field's value.
  32777. func (s *CreatePlacementGroupInput) SetGroupName(v string) *CreatePlacementGroupInput {
  32778. s.GroupName = &v
  32779. return s
  32780. }
  32781. // SetPartitionCount sets the PartitionCount field's value.
  32782. func (s *CreatePlacementGroupInput) SetPartitionCount(v int64) *CreatePlacementGroupInput {
  32783. s.PartitionCount = &v
  32784. return s
  32785. }
  32786. // SetStrategy sets the Strategy field's value.
  32787. func (s *CreatePlacementGroupInput) SetStrategy(v string) *CreatePlacementGroupInput {
  32788. s.Strategy = &v
  32789. return s
  32790. }
  32791. type CreatePlacementGroupOutput struct {
  32792. _ struct{} `type:"structure"`
  32793. }
  32794. // String returns the string representation
  32795. func (s CreatePlacementGroupOutput) String() string {
  32796. return awsutil.Prettify(s)
  32797. }
  32798. // GoString returns the string representation
  32799. func (s CreatePlacementGroupOutput) GoString() string {
  32800. return s.String()
  32801. }
  32802. // Contains the parameters for CreateReservedInstancesListing.
  32803. type CreateReservedInstancesListingInput struct {
  32804. _ struct{} `type:"structure"`
  32805. // Unique, case-sensitive identifier you provide to ensure idempotency of your
  32806. // listings. This helps avoid duplicate listings. For more information, see
  32807. // Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  32808. //
  32809. // ClientToken is a required field
  32810. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  32811. // The number of instances that are a part of a Reserved Instance account to
  32812. // be listed in the Reserved Instance Marketplace. This number should be less
  32813. // than or equal to the instance count associated with the Reserved Instance
  32814. // ID specified in this call.
  32815. //
  32816. // InstanceCount is a required field
  32817. InstanceCount *int64 `locationName:"instanceCount" type:"integer" required:"true"`
  32818. // A list specifying the price of the Standard Reserved Instance for each month
  32819. // remaining in the Reserved Instance term.
  32820. //
  32821. // PriceSchedules is a required field
  32822. PriceSchedules []*PriceScheduleSpecification `locationName:"priceSchedules" locationNameList:"item" type:"list" required:"true"`
  32823. // The ID of the active Standard Reserved Instance.
  32824. //
  32825. // ReservedInstancesId is a required field
  32826. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string" required:"true"`
  32827. }
  32828. // String returns the string representation
  32829. func (s CreateReservedInstancesListingInput) String() string {
  32830. return awsutil.Prettify(s)
  32831. }
  32832. // GoString returns the string representation
  32833. func (s CreateReservedInstancesListingInput) GoString() string {
  32834. return s.String()
  32835. }
  32836. // Validate inspects the fields of the type to determine if they are valid.
  32837. func (s *CreateReservedInstancesListingInput) Validate() error {
  32838. invalidParams := request.ErrInvalidParams{Context: "CreateReservedInstancesListingInput"}
  32839. if s.ClientToken == nil {
  32840. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  32841. }
  32842. if s.InstanceCount == nil {
  32843. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  32844. }
  32845. if s.PriceSchedules == nil {
  32846. invalidParams.Add(request.NewErrParamRequired("PriceSchedules"))
  32847. }
  32848. if s.ReservedInstancesId == nil {
  32849. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesId"))
  32850. }
  32851. if invalidParams.Len() > 0 {
  32852. return invalidParams
  32853. }
  32854. return nil
  32855. }
  32856. // SetClientToken sets the ClientToken field's value.
  32857. func (s *CreateReservedInstancesListingInput) SetClientToken(v string) *CreateReservedInstancesListingInput {
  32858. s.ClientToken = &v
  32859. return s
  32860. }
  32861. // SetInstanceCount sets the InstanceCount field's value.
  32862. func (s *CreateReservedInstancesListingInput) SetInstanceCount(v int64) *CreateReservedInstancesListingInput {
  32863. s.InstanceCount = &v
  32864. return s
  32865. }
  32866. // SetPriceSchedules sets the PriceSchedules field's value.
  32867. func (s *CreateReservedInstancesListingInput) SetPriceSchedules(v []*PriceScheduleSpecification) *CreateReservedInstancesListingInput {
  32868. s.PriceSchedules = v
  32869. return s
  32870. }
  32871. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  32872. func (s *CreateReservedInstancesListingInput) SetReservedInstancesId(v string) *CreateReservedInstancesListingInput {
  32873. s.ReservedInstancesId = &v
  32874. return s
  32875. }
  32876. // Contains the output of CreateReservedInstancesListing.
  32877. type CreateReservedInstancesListingOutput struct {
  32878. _ struct{} `type:"structure"`
  32879. // Information about the Standard Reserved Instance listing.
  32880. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  32881. }
  32882. // String returns the string representation
  32883. func (s CreateReservedInstancesListingOutput) String() string {
  32884. return awsutil.Prettify(s)
  32885. }
  32886. // GoString returns the string representation
  32887. func (s CreateReservedInstancesListingOutput) GoString() string {
  32888. return s.String()
  32889. }
  32890. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  32891. func (s *CreateReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CreateReservedInstancesListingOutput {
  32892. s.ReservedInstancesListings = v
  32893. return s
  32894. }
  32895. type CreateRouteInput struct {
  32896. _ struct{} `type:"structure"`
  32897. // The IPv4 CIDR address block used for the destination match. Routing decisions
  32898. // are based on the most specific match.
  32899. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  32900. // The IPv6 CIDR block used for the destination match. Routing decisions are
  32901. // based on the most specific match.
  32902. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  32903. // Checks whether you have the required permissions for the action, without
  32904. // actually making the request, and provides an error response. If you have
  32905. // the required permissions, the error response is DryRunOperation. Otherwise,
  32906. // it is UnauthorizedOperation.
  32907. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32908. // [IPv6 traffic only] The ID of an egress-only internet gateway.
  32909. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  32910. // The ID of an internet gateway or virtual private gateway attached to your
  32911. // VPC.
  32912. GatewayId *string `locationName:"gatewayId" type:"string"`
  32913. // The ID of a NAT instance in your VPC. The operation fails if you specify
  32914. // an instance ID unless exactly one network interface is attached.
  32915. InstanceId *string `locationName:"instanceId" type:"string"`
  32916. // [IPv4 traffic only] The ID of a NAT gateway.
  32917. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  32918. // The ID of a network interface.
  32919. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  32920. // The ID of the route table for the route.
  32921. //
  32922. // RouteTableId is a required field
  32923. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  32924. // The ID of a transit gateway.
  32925. TransitGatewayId *string `type:"string"`
  32926. // The ID of a VPC peering connection.
  32927. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  32928. }
  32929. // String returns the string representation
  32930. func (s CreateRouteInput) String() string {
  32931. return awsutil.Prettify(s)
  32932. }
  32933. // GoString returns the string representation
  32934. func (s CreateRouteInput) GoString() string {
  32935. return s.String()
  32936. }
  32937. // Validate inspects the fields of the type to determine if they are valid.
  32938. func (s *CreateRouteInput) Validate() error {
  32939. invalidParams := request.ErrInvalidParams{Context: "CreateRouteInput"}
  32940. if s.RouteTableId == nil {
  32941. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  32942. }
  32943. if invalidParams.Len() > 0 {
  32944. return invalidParams
  32945. }
  32946. return nil
  32947. }
  32948. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  32949. func (s *CreateRouteInput) SetDestinationCidrBlock(v string) *CreateRouteInput {
  32950. s.DestinationCidrBlock = &v
  32951. return s
  32952. }
  32953. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  32954. func (s *CreateRouteInput) SetDestinationIpv6CidrBlock(v string) *CreateRouteInput {
  32955. s.DestinationIpv6CidrBlock = &v
  32956. return s
  32957. }
  32958. // SetDryRun sets the DryRun field's value.
  32959. func (s *CreateRouteInput) SetDryRun(v bool) *CreateRouteInput {
  32960. s.DryRun = &v
  32961. return s
  32962. }
  32963. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  32964. func (s *CreateRouteInput) SetEgressOnlyInternetGatewayId(v string) *CreateRouteInput {
  32965. s.EgressOnlyInternetGatewayId = &v
  32966. return s
  32967. }
  32968. // SetGatewayId sets the GatewayId field's value.
  32969. func (s *CreateRouteInput) SetGatewayId(v string) *CreateRouteInput {
  32970. s.GatewayId = &v
  32971. return s
  32972. }
  32973. // SetInstanceId sets the InstanceId field's value.
  32974. func (s *CreateRouteInput) SetInstanceId(v string) *CreateRouteInput {
  32975. s.InstanceId = &v
  32976. return s
  32977. }
  32978. // SetNatGatewayId sets the NatGatewayId field's value.
  32979. func (s *CreateRouteInput) SetNatGatewayId(v string) *CreateRouteInput {
  32980. s.NatGatewayId = &v
  32981. return s
  32982. }
  32983. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  32984. func (s *CreateRouteInput) SetNetworkInterfaceId(v string) *CreateRouteInput {
  32985. s.NetworkInterfaceId = &v
  32986. return s
  32987. }
  32988. // SetRouteTableId sets the RouteTableId field's value.
  32989. func (s *CreateRouteInput) SetRouteTableId(v string) *CreateRouteInput {
  32990. s.RouteTableId = &v
  32991. return s
  32992. }
  32993. // SetTransitGatewayId sets the TransitGatewayId field's value.
  32994. func (s *CreateRouteInput) SetTransitGatewayId(v string) *CreateRouteInput {
  32995. s.TransitGatewayId = &v
  32996. return s
  32997. }
  32998. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  32999. func (s *CreateRouteInput) SetVpcPeeringConnectionId(v string) *CreateRouteInput {
  33000. s.VpcPeeringConnectionId = &v
  33001. return s
  33002. }
  33003. type CreateRouteOutput struct {
  33004. _ struct{} `type:"structure"`
  33005. // Returns true if the request succeeds; otherwise, it returns an error.
  33006. Return *bool `locationName:"return" type:"boolean"`
  33007. }
  33008. // String returns the string representation
  33009. func (s CreateRouteOutput) String() string {
  33010. return awsutil.Prettify(s)
  33011. }
  33012. // GoString returns the string representation
  33013. func (s CreateRouteOutput) GoString() string {
  33014. return s.String()
  33015. }
  33016. // SetReturn sets the Return field's value.
  33017. func (s *CreateRouteOutput) SetReturn(v bool) *CreateRouteOutput {
  33018. s.Return = &v
  33019. return s
  33020. }
  33021. type CreateRouteTableInput struct {
  33022. _ struct{} `type:"structure"`
  33023. // Checks whether you have the required permissions for the action, without
  33024. // actually making the request, and provides an error response. If you have
  33025. // the required permissions, the error response is DryRunOperation. Otherwise,
  33026. // it is UnauthorizedOperation.
  33027. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33028. // The ID of the VPC.
  33029. //
  33030. // VpcId is a required field
  33031. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  33032. }
  33033. // String returns the string representation
  33034. func (s CreateRouteTableInput) String() string {
  33035. return awsutil.Prettify(s)
  33036. }
  33037. // GoString returns the string representation
  33038. func (s CreateRouteTableInput) GoString() string {
  33039. return s.String()
  33040. }
  33041. // Validate inspects the fields of the type to determine if they are valid.
  33042. func (s *CreateRouteTableInput) Validate() error {
  33043. invalidParams := request.ErrInvalidParams{Context: "CreateRouteTableInput"}
  33044. if s.VpcId == nil {
  33045. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  33046. }
  33047. if invalidParams.Len() > 0 {
  33048. return invalidParams
  33049. }
  33050. return nil
  33051. }
  33052. // SetDryRun sets the DryRun field's value.
  33053. func (s *CreateRouteTableInput) SetDryRun(v bool) *CreateRouteTableInput {
  33054. s.DryRun = &v
  33055. return s
  33056. }
  33057. // SetVpcId sets the VpcId field's value.
  33058. func (s *CreateRouteTableInput) SetVpcId(v string) *CreateRouteTableInput {
  33059. s.VpcId = &v
  33060. return s
  33061. }
  33062. type CreateRouteTableOutput struct {
  33063. _ struct{} `type:"structure"`
  33064. // Information about the route table.
  33065. RouteTable *RouteTable `locationName:"routeTable" type:"structure"`
  33066. }
  33067. // String returns the string representation
  33068. func (s CreateRouteTableOutput) String() string {
  33069. return awsutil.Prettify(s)
  33070. }
  33071. // GoString returns the string representation
  33072. func (s CreateRouteTableOutput) GoString() string {
  33073. return s.String()
  33074. }
  33075. // SetRouteTable sets the RouteTable field's value.
  33076. func (s *CreateRouteTableOutput) SetRouteTable(v *RouteTable) *CreateRouteTableOutput {
  33077. s.RouteTable = v
  33078. return s
  33079. }
  33080. type CreateSecurityGroupInput struct {
  33081. _ struct{} `type:"structure"`
  33082. // A description for the security group. This is informational only.
  33083. //
  33084. // Constraints: Up to 255 characters in length
  33085. //
  33086. // Constraints for EC2-Classic: ASCII characters
  33087. //
  33088. // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
  33089. //
  33090. // Description is a required field
  33091. Description *string `locationName:"GroupDescription" type:"string" required:"true"`
  33092. // Checks whether you have the required permissions for the action, without
  33093. // actually making the request, and provides an error response. If you have
  33094. // the required permissions, the error response is DryRunOperation. Otherwise,
  33095. // it is UnauthorizedOperation.
  33096. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33097. // The name of the security group.
  33098. //
  33099. // Constraints: Up to 255 characters in length. Cannot start with sg-.
  33100. //
  33101. // Constraints for EC2-Classic: ASCII characters
  33102. //
  33103. // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
  33104. //
  33105. // GroupName is a required field
  33106. GroupName *string `type:"string" required:"true"`
  33107. // [EC2-VPC] The ID of the VPC. Required for EC2-VPC.
  33108. VpcId *string `type:"string"`
  33109. }
  33110. // String returns the string representation
  33111. func (s CreateSecurityGroupInput) String() string {
  33112. return awsutil.Prettify(s)
  33113. }
  33114. // GoString returns the string representation
  33115. func (s CreateSecurityGroupInput) GoString() string {
  33116. return s.String()
  33117. }
  33118. // Validate inspects the fields of the type to determine if they are valid.
  33119. func (s *CreateSecurityGroupInput) Validate() error {
  33120. invalidParams := request.ErrInvalidParams{Context: "CreateSecurityGroupInput"}
  33121. if s.Description == nil {
  33122. invalidParams.Add(request.NewErrParamRequired("Description"))
  33123. }
  33124. if s.GroupName == nil {
  33125. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  33126. }
  33127. if invalidParams.Len() > 0 {
  33128. return invalidParams
  33129. }
  33130. return nil
  33131. }
  33132. // SetDescription sets the Description field's value.
  33133. func (s *CreateSecurityGroupInput) SetDescription(v string) *CreateSecurityGroupInput {
  33134. s.Description = &v
  33135. return s
  33136. }
  33137. // SetDryRun sets the DryRun field's value.
  33138. func (s *CreateSecurityGroupInput) SetDryRun(v bool) *CreateSecurityGroupInput {
  33139. s.DryRun = &v
  33140. return s
  33141. }
  33142. // SetGroupName sets the GroupName field's value.
  33143. func (s *CreateSecurityGroupInput) SetGroupName(v string) *CreateSecurityGroupInput {
  33144. s.GroupName = &v
  33145. return s
  33146. }
  33147. // SetVpcId sets the VpcId field's value.
  33148. func (s *CreateSecurityGroupInput) SetVpcId(v string) *CreateSecurityGroupInput {
  33149. s.VpcId = &v
  33150. return s
  33151. }
  33152. type CreateSecurityGroupOutput struct {
  33153. _ struct{} `type:"structure"`
  33154. // The ID of the security group.
  33155. GroupId *string `locationName:"groupId" type:"string"`
  33156. }
  33157. // String returns the string representation
  33158. func (s CreateSecurityGroupOutput) String() string {
  33159. return awsutil.Prettify(s)
  33160. }
  33161. // GoString returns the string representation
  33162. func (s CreateSecurityGroupOutput) GoString() string {
  33163. return s.String()
  33164. }
  33165. // SetGroupId sets the GroupId field's value.
  33166. func (s *CreateSecurityGroupOutput) SetGroupId(v string) *CreateSecurityGroupOutput {
  33167. s.GroupId = &v
  33168. return s
  33169. }
  33170. // Contains the parameters for CreateSnapshot.
  33171. type CreateSnapshotInput struct {
  33172. _ struct{} `type:"structure"`
  33173. // A description for the snapshot.
  33174. Description *string `type:"string"`
  33175. // Checks whether you have the required permissions for the action, without
  33176. // actually making the request, and provides an error response. If you have
  33177. // the required permissions, the error response is DryRunOperation. Otherwise,
  33178. // it is UnauthorizedOperation.
  33179. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33180. // The tags to apply to the snapshot during creation.
  33181. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  33182. // The ID of the EBS volume.
  33183. //
  33184. // VolumeId is a required field
  33185. VolumeId *string `type:"string" required:"true"`
  33186. }
  33187. // String returns the string representation
  33188. func (s CreateSnapshotInput) String() string {
  33189. return awsutil.Prettify(s)
  33190. }
  33191. // GoString returns the string representation
  33192. func (s CreateSnapshotInput) GoString() string {
  33193. return s.String()
  33194. }
  33195. // Validate inspects the fields of the type to determine if they are valid.
  33196. func (s *CreateSnapshotInput) Validate() error {
  33197. invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"}
  33198. if s.VolumeId == nil {
  33199. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  33200. }
  33201. if invalidParams.Len() > 0 {
  33202. return invalidParams
  33203. }
  33204. return nil
  33205. }
  33206. // SetDescription sets the Description field's value.
  33207. func (s *CreateSnapshotInput) SetDescription(v string) *CreateSnapshotInput {
  33208. s.Description = &v
  33209. return s
  33210. }
  33211. // SetDryRun sets the DryRun field's value.
  33212. func (s *CreateSnapshotInput) SetDryRun(v bool) *CreateSnapshotInput {
  33213. s.DryRun = &v
  33214. return s
  33215. }
  33216. // SetTagSpecifications sets the TagSpecifications field's value.
  33217. func (s *CreateSnapshotInput) SetTagSpecifications(v []*TagSpecification) *CreateSnapshotInput {
  33218. s.TagSpecifications = v
  33219. return s
  33220. }
  33221. // SetVolumeId sets the VolumeId field's value.
  33222. func (s *CreateSnapshotInput) SetVolumeId(v string) *CreateSnapshotInput {
  33223. s.VolumeId = &v
  33224. return s
  33225. }
  33226. // Contains the parameters for CreateSpotDatafeedSubscription.
  33227. type CreateSpotDatafeedSubscriptionInput struct {
  33228. _ struct{} `type:"structure"`
  33229. // The Amazon S3 bucket in which to store the Spot Instance data feed.
  33230. //
  33231. // Bucket is a required field
  33232. Bucket *string `locationName:"bucket" type:"string" required:"true"`
  33233. // Checks whether you have the required permissions for the action, without
  33234. // actually making the request, and provides an error response. If you have
  33235. // the required permissions, the error response is DryRunOperation. Otherwise,
  33236. // it is UnauthorizedOperation.
  33237. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33238. // A prefix for the data feed file names.
  33239. Prefix *string `locationName:"prefix" type:"string"`
  33240. }
  33241. // String returns the string representation
  33242. func (s CreateSpotDatafeedSubscriptionInput) String() string {
  33243. return awsutil.Prettify(s)
  33244. }
  33245. // GoString returns the string representation
  33246. func (s CreateSpotDatafeedSubscriptionInput) GoString() string {
  33247. return s.String()
  33248. }
  33249. // Validate inspects the fields of the type to determine if they are valid.
  33250. func (s *CreateSpotDatafeedSubscriptionInput) Validate() error {
  33251. invalidParams := request.ErrInvalidParams{Context: "CreateSpotDatafeedSubscriptionInput"}
  33252. if s.Bucket == nil {
  33253. invalidParams.Add(request.NewErrParamRequired("Bucket"))
  33254. }
  33255. if invalidParams.Len() > 0 {
  33256. return invalidParams
  33257. }
  33258. return nil
  33259. }
  33260. // SetBucket sets the Bucket field's value.
  33261. func (s *CreateSpotDatafeedSubscriptionInput) SetBucket(v string) *CreateSpotDatafeedSubscriptionInput {
  33262. s.Bucket = &v
  33263. return s
  33264. }
  33265. // SetDryRun sets the DryRun field's value.
  33266. func (s *CreateSpotDatafeedSubscriptionInput) SetDryRun(v bool) *CreateSpotDatafeedSubscriptionInput {
  33267. s.DryRun = &v
  33268. return s
  33269. }
  33270. // SetPrefix sets the Prefix field's value.
  33271. func (s *CreateSpotDatafeedSubscriptionInput) SetPrefix(v string) *CreateSpotDatafeedSubscriptionInput {
  33272. s.Prefix = &v
  33273. return s
  33274. }
  33275. // Contains the output of CreateSpotDatafeedSubscription.
  33276. type CreateSpotDatafeedSubscriptionOutput struct {
  33277. _ struct{} `type:"structure"`
  33278. // The Spot Instance data feed subscription.
  33279. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
  33280. }
  33281. // String returns the string representation
  33282. func (s CreateSpotDatafeedSubscriptionOutput) String() string {
  33283. return awsutil.Prettify(s)
  33284. }
  33285. // GoString returns the string representation
  33286. func (s CreateSpotDatafeedSubscriptionOutput) GoString() string {
  33287. return s.String()
  33288. }
  33289. // SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value.
  33290. func (s *CreateSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *CreateSpotDatafeedSubscriptionOutput {
  33291. s.SpotDatafeedSubscription = v
  33292. return s
  33293. }
  33294. type CreateSubnetInput struct {
  33295. _ struct{} `type:"structure"`
  33296. // The Availability Zone for the subnet.
  33297. //
  33298. // Default: AWS selects one for you. If you create more than one subnet in your
  33299. // VPC, we may not necessarily select a different zone for each subnet.
  33300. AvailabilityZone *string `type:"string"`
  33301. // The AZ ID of the subnet.
  33302. AvailabilityZoneId *string `type:"string"`
  33303. // The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.
  33304. //
  33305. // CidrBlock is a required field
  33306. CidrBlock *string `type:"string" required:"true"`
  33307. // Checks whether you have the required permissions for the action, without
  33308. // actually making the request, and provides an error response. If you have
  33309. // the required permissions, the error response is DryRunOperation. Otherwise,
  33310. // it is UnauthorizedOperation.
  33311. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33312. // The IPv6 network range for the subnet, in CIDR notation. The subnet size
  33313. // must use a /64 prefix length.
  33314. Ipv6CidrBlock *string `type:"string"`
  33315. // The ID of the VPC.
  33316. //
  33317. // VpcId is a required field
  33318. VpcId *string `type:"string" required:"true"`
  33319. }
  33320. // String returns the string representation
  33321. func (s CreateSubnetInput) String() string {
  33322. return awsutil.Prettify(s)
  33323. }
  33324. // GoString returns the string representation
  33325. func (s CreateSubnetInput) GoString() string {
  33326. return s.String()
  33327. }
  33328. // Validate inspects the fields of the type to determine if they are valid.
  33329. func (s *CreateSubnetInput) Validate() error {
  33330. invalidParams := request.ErrInvalidParams{Context: "CreateSubnetInput"}
  33331. if s.CidrBlock == nil {
  33332. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  33333. }
  33334. if s.VpcId == nil {
  33335. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  33336. }
  33337. if invalidParams.Len() > 0 {
  33338. return invalidParams
  33339. }
  33340. return nil
  33341. }
  33342. // SetAvailabilityZone sets the AvailabilityZone field's value.
  33343. func (s *CreateSubnetInput) SetAvailabilityZone(v string) *CreateSubnetInput {
  33344. s.AvailabilityZone = &v
  33345. return s
  33346. }
  33347. // SetAvailabilityZoneId sets the AvailabilityZoneId field's value.
  33348. func (s *CreateSubnetInput) SetAvailabilityZoneId(v string) *CreateSubnetInput {
  33349. s.AvailabilityZoneId = &v
  33350. return s
  33351. }
  33352. // SetCidrBlock sets the CidrBlock field's value.
  33353. func (s *CreateSubnetInput) SetCidrBlock(v string) *CreateSubnetInput {
  33354. s.CidrBlock = &v
  33355. return s
  33356. }
  33357. // SetDryRun sets the DryRun field's value.
  33358. func (s *CreateSubnetInput) SetDryRun(v bool) *CreateSubnetInput {
  33359. s.DryRun = &v
  33360. return s
  33361. }
  33362. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  33363. func (s *CreateSubnetInput) SetIpv6CidrBlock(v string) *CreateSubnetInput {
  33364. s.Ipv6CidrBlock = &v
  33365. return s
  33366. }
  33367. // SetVpcId sets the VpcId field's value.
  33368. func (s *CreateSubnetInput) SetVpcId(v string) *CreateSubnetInput {
  33369. s.VpcId = &v
  33370. return s
  33371. }
  33372. type CreateSubnetOutput struct {
  33373. _ struct{} `type:"structure"`
  33374. // Information about the subnet.
  33375. Subnet *Subnet `locationName:"subnet" type:"structure"`
  33376. }
  33377. // String returns the string representation
  33378. func (s CreateSubnetOutput) String() string {
  33379. return awsutil.Prettify(s)
  33380. }
  33381. // GoString returns the string representation
  33382. func (s CreateSubnetOutput) GoString() string {
  33383. return s.String()
  33384. }
  33385. // SetSubnet sets the Subnet field's value.
  33386. func (s *CreateSubnetOutput) SetSubnet(v *Subnet) *CreateSubnetOutput {
  33387. s.Subnet = v
  33388. return s
  33389. }
  33390. type CreateTagsInput struct {
  33391. _ struct{} `type:"structure"`
  33392. // Checks whether you have the required permissions for the action, without
  33393. // actually making the request, and provides an error response. If you have
  33394. // the required permissions, the error response is DryRunOperation. Otherwise,
  33395. // it is UnauthorizedOperation.
  33396. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33397. // The IDs of one or more resources, separated by spaces.
  33398. //
  33399. // Constraints: Up to 1000 resource IDs. We recommend breaking up this request
  33400. // into smaller batches.
  33401. //
  33402. // Resources is a required field
  33403. Resources []*string `locationName:"ResourceId" type:"list" required:"true"`
  33404. // One or more tags. The value parameter is required, but if you don't want
  33405. // the tag to have a value, specify the parameter with no value, and we set
  33406. // the value to an empty string.
  33407. //
  33408. // Tags is a required field
  33409. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list" required:"true"`
  33410. }
  33411. // String returns the string representation
  33412. func (s CreateTagsInput) String() string {
  33413. return awsutil.Prettify(s)
  33414. }
  33415. // GoString returns the string representation
  33416. func (s CreateTagsInput) GoString() string {
  33417. return s.String()
  33418. }
  33419. // Validate inspects the fields of the type to determine if they are valid.
  33420. func (s *CreateTagsInput) Validate() error {
  33421. invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"}
  33422. if s.Resources == nil {
  33423. invalidParams.Add(request.NewErrParamRequired("Resources"))
  33424. }
  33425. if s.Tags == nil {
  33426. invalidParams.Add(request.NewErrParamRequired("Tags"))
  33427. }
  33428. if invalidParams.Len() > 0 {
  33429. return invalidParams
  33430. }
  33431. return nil
  33432. }
  33433. // SetDryRun sets the DryRun field's value.
  33434. func (s *CreateTagsInput) SetDryRun(v bool) *CreateTagsInput {
  33435. s.DryRun = &v
  33436. return s
  33437. }
  33438. // SetResources sets the Resources field's value.
  33439. func (s *CreateTagsInput) SetResources(v []*string) *CreateTagsInput {
  33440. s.Resources = v
  33441. return s
  33442. }
  33443. // SetTags sets the Tags field's value.
  33444. func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput {
  33445. s.Tags = v
  33446. return s
  33447. }
  33448. type CreateTagsOutput struct {
  33449. _ struct{} `type:"structure"`
  33450. }
  33451. // String returns the string representation
  33452. func (s CreateTagsOutput) String() string {
  33453. return awsutil.Prettify(s)
  33454. }
  33455. // GoString returns the string representation
  33456. func (s CreateTagsOutput) GoString() string {
  33457. return s.String()
  33458. }
  33459. type CreateTransitGatewayInput struct {
  33460. _ struct{} `type:"structure"`
  33461. // A description of the transit gateway.
  33462. Description *string `type:"string"`
  33463. // Checks whether you have the required permissions for the action, without
  33464. // actually making the request, and provides an error response. If you have
  33465. // the required permissions, the error response is DryRunOperation. Otherwise,
  33466. // it is UnauthorizedOperation.
  33467. DryRun *bool `type:"boolean"`
  33468. // The transit gateway options.
  33469. Options *TransitGatewayRequestOptions `type:"structure"`
  33470. // The tags to apply to the transit gateway.
  33471. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  33472. }
  33473. // String returns the string representation
  33474. func (s CreateTransitGatewayInput) String() string {
  33475. return awsutil.Prettify(s)
  33476. }
  33477. // GoString returns the string representation
  33478. func (s CreateTransitGatewayInput) GoString() string {
  33479. return s.String()
  33480. }
  33481. // SetDescription sets the Description field's value.
  33482. func (s *CreateTransitGatewayInput) SetDescription(v string) *CreateTransitGatewayInput {
  33483. s.Description = &v
  33484. return s
  33485. }
  33486. // SetDryRun sets the DryRun field's value.
  33487. func (s *CreateTransitGatewayInput) SetDryRun(v bool) *CreateTransitGatewayInput {
  33488. s.DryRun = &v
  33489. return s
  33490. }
  33491. // SetOptions sets the Options field's value.
  33492. func (s *CreateTransitGatewayInput) SetOptions(v *TransitGatewayRequestOptions) *CreateTransitGatewayInput {
  33493. s.Options = v
  33494. return s
  33495. }
  33496. // SetTagSpecifications sets the TagSpecifications field's value.
  33497. func (s *CreateTransitGatewayInput) SetTagSpecifications(v []*TagSpecification) *CreateTransitGatewayInput {
  33498. s.TagSpecifications = v
  33499. return s
  33500. }
  33501. type CreateTransitGatewayOutput struct {
  33502. _ struct{} `type:"structure"`
  33503. // Information about the transit gateway.
  33504. TransitGateway *TransitGateway `locationName:"transitGateway" type:"structure"`
  33505. }
  33506. // String returns the string representation
  33507. func (s CreateTransitGatewayOutput) String() string {
  33508. return awsutil.Prettify(s)
  33509. }
  33510. // GoString returns the string representation
  33511. func (s CreateTransitGatewayOutput) GoString() string {
  33512. return s.String()
  33513. }
  33514. // SetTransitGateway sets the TransitGateway field's value.
  33515. func (s *CreateTransitGatewayOutput) SetTransitGateway(v *TransitGateway) *CreateTransitGatewayOutput {
  33516. s.TransitGateway = v
  33517. return s
  33518. }
  33519. type CreateTransitGatewayRouteInput struct {
  33520. _ struct{} `type:"structure"`
  33521. // Indicates whether traffic matching this route is to be dropped.
  33522. Blackhole *bool `type:"boolean"`
  33523. // The CIDR range used for destination matches. Routing decisions are based
  33524. // on the most specific match.
  33525. //
  33526. // DestinationCidrBlock is a required field
  33527. DestinationCidrBlock *string `type:"string" required:"true"`
  33528. // Checks whether you have the required permissions for the action, without
  33529. // actually making the request, and provides an error response. If you have
  33530. // the required permissions, the error response is DryRunOperation. Otherwise,
  33531. // it is UnauthorizedOperation.
  33532. DryRun *bool `type:"boolean"`
  33533. // The ID of the attachment.
  33534. TransitGatewayAttachmentId *string `type:"string"`
  33535. // The ID of the transit gateway route table.
  33536. //
  33537. // TransitGatewayRouteTableId is a required field
  33538. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  33539. }
  33540. // String returns the string representation
  33541. func (s CreateTransitGatewayRouteInput) String() string {
  33542. return awsutil.Prettify(s)
  33543. }
  33544. // GoString returns the string representation
  33545. func (s CreateTransitGatewayRouteInput) GoString() string {
  33546. return s.String()
  33547. }
  33548. // Validate inspects the fields of the type to determine if they are valid.
  33549. func (s *CreateTransitGatewayRouteInput) Validate() error {
  33550. invalidParams := request.ErrInvalidParams{Context: "CreateTransitGatewayRouteInput"}
  33551. if s.DestinationCidrBlock == nil {
  33552. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  33553. }
  33554. if s.TransitGatewayRouteTableId == nil {
  33555. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  33556. }
  33557. if invalidParams.Len() > 0 {
  33558. return invalidParams
  33559. }
  33560. return nil
  33561. }
  33562. // SetBlackhole sets the Blackhole field's value.
  33563. func (s *CreateTransitGatewayRouteInput) SetBlackhole(v bool) *CreateTransitGatewayRouteInput {
  33564. s.Blackhole = &v
  33565. return s
  33566. }
  33567. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  33568. func (s *CreateTransitGatewayRouteInput) SetDestinationCidrBlock(v string) *CreateTransitGatewayRouteInput {
  33569. s.DestinationCidrBlock = &v
  33570. return s
  33571. }
  33572. // SetDryRun sets the DryRun field's value.
  33573. func (s *CreateTransitGatewayRouteInput) SetDryRun(v bool) *CreateTransitGatewayRouteInput {
  33574. s.DryRun = &v
  33575. return s
  33576. }
  33577. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  33578. func (s *CreateTransitGatewayRouteInput) SetTransitGatewayAttachmentId(v string) *CreateTransitGatewayRouteInput {
  33579. s.TransitGatewayAttachmentId = &v
  33580. return s
  33581. }
  33582. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  33583. func (s *CreateTransitGatewayRouteInput) SetTransitGatewayRouteTableId(v string) *CreateTransitGatewayRouteInput {
  33584. s.TransitGatewayRouteTableId = &v
  33585. return s
  33586. }
  33587. type CreateTransitGatewayRouteOutput struct {
  33588. _ struct{} `type:"structure"`
  33589. // Information about the route.
  33590. Route *TransitGatewayRoute `locationName:"route" type:"structure"`
  33591. }
  33592. // String returns the string representation
  33593. func (s CreateTransitGatewayRouteOutput) String() string {
  33594. return awsutil.Prettify(s)
  33595. }
  33596. // GoString returns the string representation
  33597. func (s CreateTransitGatewayRouteOutput) GoString() string {
  33598. return s.String()
  33599. }
  33600. // SetRoute sets the Route field's value.
  33601. func (s *CreateTransitGatewayRouteOutput) SetRoute(v *TransitGatewayRoute) *CreateTransitGatewayRouteOutput {
  33602. s.Route = v
  33603. return s
  33604. }
  33605. type CreateTransitGatewayRouteTableInput struct {
  33606. _ struct{} `type:"structure"`
  33607. // Checks whether you have the required permissions for the action, without
  33608. // actually making the request, and provides an error response. If you have
  33609. // the required permissions, the error response is DryRunOperation. Otherwise,
  33610. // it is UnauthorizedOperation.
  33611. DryRun *bool `type:"boolean"`
  33612. // The tags to apply to the transit gateway route table.
  33613. TagSpecifications []*TagSpecification `locationNameList:"item" type:"list"`
  33614. // The ID of the transit gateway.
  33615. //
  33616. // TransitGatewayId is a required field
  33617. TransitGatewayId *string `type:"string" required:"true"`
  33618. }
  33619. // String returns the string representation
  33620. func (s CreateTransitGatewayRouteTableInput) String() string {
  33621. return awsutil.Prettify(s)
  33622. }
  33623. // GoString returns the string representation
  33624. func (s CreateTransitGatewayRouteTableInput) GoString() string {
  33625. return s.String()
  33626. }
  33627. // Validate inspects the fields of the type to determine if they are valid.
  33628. func (s *CreateTransitGatewayRouteTableInput) Validate() error {
  33629. invalidParams := request.ErrInvalidParams{Context: "CreateTransitGatewayRouteTableInput"}
  33630. if s.TransitGatewayId == nil {
  33631. invalidParams.Add(request.NewErrParamRequired("TransitGatewayId"))
  33632. }
  33633. if invalidParams.Len() > 0 {
  33634. return invalidParams
  33635. }
  33636. return nil
  33637. }
  33638. // SetDryRun sets the DryRun field's value.
  33639. func (s *CreateTransitGatewayRouteTableInput) SetDryRun(v bool) *CreateTransitGatewayRouteTableInput {
  33640. s.DryRun = &v
  33641. return s
  33642. }
  33643. // SetTagSpecifications sets the TagSpecifications field's value.
  33644. func (s *CreateTransitGatewayRouteTableInput) SetTagSpecifications(v []*TagSpecification) *CreateTransitGatewayRouteTableInput {
  33645. s.TagSpecifications = v
  33646. return s
  33647. }
  33648. // SetTransitGatewayId sets the TransitGatewayId field's value.
  33649. func (s *CreateTransitGatewayRouteTableInput) SetTransitGatewayId(v string) *CreateTransitGatewayRouteTableInput {
  33650. s.TransitGatewayId = &v
  33651. return s
  33652. }
  33653. type CreateTransitGatewayRouteTableOutput struct {
  33654. _ struct{} `type:"structure"`
  33655. // Information about the transit gateway route table.
  33656. TransitGatewayRouteTable *TransitGatewayRouteTable `locationName:"transitGatewayRouteTable" type:"structure"`
  33657. }
  33658. // String returns the string representation
  33659. func (s CreateTransitGatewayRouteTableOutput) String() string {
  33660. return awsutil.Prettify(s)
  33661. }
  33662. // GoString returns the string representation
  33663. func (s CreateTransitGatewayRouteTableOutput) GoString() string {
  33664. return s.String()
  33665. }
  33666. // SetTransitGatewayRouteTable sets the TransitGatewayRouteTable field's value.
  33667. func (s *CreateTransitGatewayRouteTableOutput) SetTransitGatewayRouteTable(v *TransitGatewayRouteTable) *CreateTransitGatewayRouteTableOutput {
  33668. s.TransitGatewayRouteTable = v
  33669. return s
  33670. }
  33671. type CreateTransitGatewayVpcAttachmentInput struct {
  33672. _ struct{} `type:"structure"`
  33673. // Checks whether you have the required permissions for the action, without
  33674. // actually making the request, and provides an error response. If you have
  33675. // the required permissions, the error response is DryRunOperation. Otherwise,
  33676. // it is UnauthorizedOperation.
  33677. DryRun *bool `type:"boolean"`
  33678. // The VPC attachment options.
  33679. Options *CreateTransitGatewayVpcAttachmentRequestOptions `type:"structure"`
  33680. // The IDs of one or more subnets. You can specify only one subnet per Availability
  33681. // Zone. You must specify at least one subnet, but we recommend that you specify
  33682. // two subnets for better availability. The transit gateway uses one IP address
  33683. // from each specified subnet.
  33684. //
  33685. // SubnetIds is a required field
  33686. SubnetIds []*string `locationNameList:"item" type:"list" required:"true"`
  33687. // The tags to apply to the VPC attachment.
  33688. TagSpecifications []*TagSpecification `locationNameList:"item" type:"list"`
  33689. // The ID of the transit gateway.
  33690. //
  33691. // TransitGatewayId is a required field
  33692. TransitGatewayId *string `type:"string" required:"true"`
  33693. // The ID of the VPC.
  33694. //
  33695. // VpcId is a required field
  33696. VpcId *string `type:"string" required:"true"`
  33697. }
  33698. // String returns the string representation
  33699. func (s CreateTransitGatewayVpcAttachmentInput) String() string {
  33700. return awsutil.Prettify(s)
  33701. }
  33702. // GoString returns the string representation
  33703. func (s CreateTransitGatewayVpcAttachmentInput) GoString() string {
  33704. return s.String()
  33705. }
  33706. // Validate inspects the fields of the type to determine if they are valid.
  33707. func (s *CreateTransitGatewayVpcAttachmentInput) Validate() error {
  33708. invalidParams := request.ErrInvalidParams{Context: "CreateTransitGatewayVpcAttachmentInput"}
  33709. if s.SubnetIds == nil {
  33710. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  33711. }
  33712. if s.TransitGatewayId == nil {
  33713. invalidParams.Add(request.NewErrParamRequired("TransitGatewayId"))
  33714. }
  33715. if s.VpcId == nil {
  33716. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  33717. }
  33718. if invalidParams.Len() > 0 {
  33719. return invalidParams
  33720. }
  33721. return nil
  33722. }
  33723. // SetDryRun sets the DryRun field's value.
  33724. func (s *CreateTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *CreateTransitGatewayVpcAttachmentInput {
  33725. s.DryRun = &v
  33726. return s
  33727. }
  33728. // SetOptions sets the Options field's value.
  33729. func (s *CreateTransitGatewayVpcAttachmentInput) SetOptions(v *CreateTransitGatewayVpcAttachmentRequestOptions) *CreateTransitGatewayVpcAttachmentInput {
  33730. s.Options = v
  33731. return s
  33732. }
  33733. // SetSubnetIds sets the SubnetIds field's value.
  33734. func (s *CreateTransitGatewayVpcAttachmentInput) SetSubnetIds(v []*string) *CreateTransitGatewayVpcAttachmentInput {
  33735. s.SubnetIds = v
  33736. return s
  33737. }
  33738. // SetTagSpecifications sets the TagSpecifications field's value.
  33739. func (s *CreateTransitGatewayVpcAttachmentInput) SetTagSpecifications(v []*TagSpecification) *CreateTransitGatewayVpcAttachmentInput {
  33740. s.TagSpecifications = v
  33741. return s
  33742. }
  33743. // SetTransitGatewayId sets the TransitGatewayId field's value.
  33744. func (s *CreateTransitGatewayVpcAttachmentInput) SetTransitGatewayId(v string) *CreateTransitGatewayVpcAttachmentInput {
  33745. s.TransitGatewayId = &v
  33746. return s
  33747. }
  33748. // SetVpcId sets the VpcId field's value.
  33749. func (s *CreateTransitGatewayVpcAttachmentInput) SetVpcId(v string) *CreateTransitGatewayVpcAttachmentInput {
  33750. s.VpcId = &v
  33751. return s
  33752. }
  33753. type CreateTransitGatewayVpcAttachmentOutput struct {
  33754. _ struct{} `type:"structure"`
  33755. // Information about the VPC attachment.
  33756. TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
  33757. }
  33758. // String returns the string representation
  33759. func (s CreateTransitGatewayVpcAttachmentOutput) String() string {
  33760. return awsutil.Prettify(s)
  33761. }
  33762. // GoString returns the string representation
  33763. func (s CreateTransitGatewayVpcAttachmentOutput) GoString() string {
  33764. return s.String()
  33765. }
  33766. // SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value.
  33767. func (s *CreateTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *CreateTransitGatewayVpcAttachmentOutput {
  33768. s.TransitGatewayVpcAttachment = v
  33769. return s
  33770. }
  33771. // Describes the options for a VPC attachment.
  33772. type CreateTransitGatewayVpcAttachmentRequestOptions struct {
  33773. _ struct{} `type:"structure"`
  33774. // Enable or disable DNS support. The default is enable.
  33775. DnsSupport *string `type:"string" enum:"DnsSupportValue"`
  33776. // Enable or disable IPv6 support. The default is enable.
  33777. Ipv6Support *string `type:"string" enum:"Ipv6SupportValue"`
  33778. }
  33779. // String returns the string representation
  33780. func (s CreateTransitGatewayVpcAttachmentRequestOptions) String() string {
  33781. return awsutil.Prettify(s)
  33782. }
  33783. // GoString returns the string representation
  33784. func (s CreateTransitGatewayVpcAttachmentRequestOptions) GoString() string {
  33785. return s.String()
  33786. }
  33787. // SetDnsSupport sets the DnsSupport field's value.
  33788. func (s *CreateTransitGatewayVpcAttachmentRequestOptions) SetDnsSupport(v string) *CreateTransitGatewayVpcAttachmentRequestOptions {
  33789. s.DnsSupport = &v
  33790. return s
  33791. }
  33792. // SetIpv6Support sets the Ipv6Support field's value.
  33793. func (s *CreateTransitGatewayVpcAttachmentRequestOptions) SetIpv6Support(v string) *CreateTransitGatewayVpcAttachmentRequestOptions {
  33794. s.Ipv6Support = &v
  33795. return s
  33796. }
  33797. // Contains the parameters for CreateVolume.
  33798. type CreateVolumeInput struct {
  33799. _ struct{} `type:"structure"`
  33800. // The Availability Zone in which to create the volume. Use DescribeAvailabilityZones
  33801. // to list the Availability Zones that are currently available to you.
  33802. //
  33803. // AvailabilityZone is a required field
  33804. AvailabilityZone *string `type:"string" required:"true"`
  33805. // Checks whether you have the required permissions for the action, without
  33806. // actually making the request, and provides an error response. If you have
  33807. // the required permissions, the error response is DryRunOperation. Otherwise,
  33808. // it is UnauthorizedOperation.
  33809. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33810. // Specifies whether the volume should be encrypted. Encrypted Amazon EBS volumes
  33811. // may only be attached to instances that support Amazon EBS encryption. Volumes
  33812. // that are created from encrypted snapshots are automatically encrypted. There
  33813. // is no way to create an encrypted volume from an unencrypted snapshot or vice
  33814. // versa. If your AMI uses encrypted volumes, you can only launch it on supported
  33815. // instance types. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  33816. // in the Amazon Elastic Compute Cloud User Guide.
  33817. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  33818. // The number of I/O operations per second (IOPS) to provision for the volume,
  33819. // with a maximum ratio of 50 IOPS/GiB. Range is 100 to 64,000 IOPS for volumes
  33820. // in most regions. Maximum IOPS of 64,000 is guaranteed only on Nitro-based
  33821. // instances (AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances).
  33822. // Other instance families guarantee performance up to 32,000 IOPS. For more
  33823. // information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  33824. // in the Amazon Elastic Compute Cloud User Guide.
  33825. //
  33826. // This parameter is valid only for Provisioned IOPS SSD (io1) volumes.
  33827. Iops *int64 `type:"integer"`
  33828. // An identifier for the AWS Key Management Service (AWS KMS) customer master
  33829. // key (CMK) to use when creating the encrypted volume. This parameter is only
  33830. // required if you want to use a non-default CMK; if this parameter is not specified,
  33831. // the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted
  33832. // flag must also be set.
  33833. //
  33834. // The CMK identifier may be provided in any of the following formats:
  33835. //
  33836. // * Key ID
  33837. //
  33838. // * Key alias
  33839. //
  33840. // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
  33841. // by the region of the CMK, the AWS account ID of the CMK owner, the key
  33842. // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  33843. //
  33844. //
  33845. // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
  33846. // followed by the region of the CMK, the AWS account ID of the CMK owner,
  33847. // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
  33848. //
  33849. //
  33850. // AWS parses KmsKeyId asynchronously, meaning that the action you call may
  33851. // appear to complete even though you provided an invalid identifier. The action
  33852. // will eventually fail.
  33853. KmsKeyId *string `type:"string"`
  33854. // The size of the volume, in GiBs.
  33855. //
  33856. // Constraints: 1-16,384 for gp2, 4-16,384 for io1, 500-16,384 for st1, 500-16,384
  33857. // for sc1, and 1-1,024 for standard. If you specify a snapshot, the volume
  33858. // size must be equal to or larger than the snapshot size.
  33859. //
  33860. // Default: If you're creating the volume from a snapshot and don't specify
  33861. // a volume size, the default is the snapshot size.
  33862. Size *int64 `type:"integer"`
  33863. // The snapshot from which to create the volume.
  33864. SnapshotId *string `type:"string"`
  33865. // The tags to apply to the volume during creation.
  33866. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  33867. // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
  33868. // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
  33869. // for Magnetic volumes.
  33870. //
  33871. // Defaults: If no volume type is specified, the default is standard in us-east-1,
  33872. // eu-west-1, eu-central-1, us-west-2, us-west-1, sa-east-1, ap-northeast-1,
  33873. // ap-northeast-2, ap-southeast-1, ap-southeast-2, ap-south-1, us-gov-west-1,
  33874. // and cn-north-1. In all other regions, EBS defaults to gp2.
  33875. VolumeType *string `type:"string" enum:"VolumeType"`
  33876. }
  33877. // String returns the string representation
  33878. func (s CreateVolumeInput) String() string {
  33879. return awsutil.Prettify(s)
  33880. }
  33881. // GoString returns the string representation
  33882. func (s CreateVolumeInput) GoString() string {
  33883. return s.String()
  33884. }
  33885. // Validate inspects the fields of the type to determine if they are valid.
  33886. func (s *CreateVolumeInput) Validate() error {
  33887. invalidParams := request.ErrInvalidParams{Context: "CreateVolumeInput"}
  33888. if s.AvailabilityZone == nil {
  33889. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  33890. }
  33891. if invalidParams.Len() > 0 {
  33892. return invalidParams
  33893. }
  33894. return nil
  33895. }
  33896. // SetAvailabilityZone sets the AvailabilityZone field's value.
  33897. func (s *CreateVolumeInput) SetAvailabilityZone(v string) *CreateVolumeInput {
  33898. s.AvailabilityZone = &v
  33899. return s
  33900. }
  33901. // SetDryRun sets the DryRun field's value.
  33902. func (s *CreateVolumeInput) SetDryRun(v bool) *CreateVolumeInput {
  33903. s.DryRun = &v
  33904. return s
  33905. }
  33906. // SetEncrypted sets the Encrypted field's value.
  33907. func (s *CreateVolumeInput) SetEncrypted(v bool) *CreateVolumeInput {
  33908. s.Encrypted = &v
  33909. return s
  33910. }
  33911. // SetIops sets the Iops field's value.
  33912. func (s *CreateVolumeInput) SetIops(v int64) *CreateVolumeInput {
  33913. s.Iops = &v
  33914. return s
  33915. }
  33916. // SetKmsKeyId sets the KmsKeyId field's value.
  33917. func (s *CreateVolumeInput) SetKmsKeyId(v string) *CreateVolumeInput {
  33918. s.KmsKeyId = &v
  33919. return s
  33920. }
  33921. // SetSize sets the Size field's value.
  33922. func (s *CreateVolumeInput) SetSize(v int64) *CreateVolumeInput {
  33923. s.Size = &v
  33924. return s
  33925. }
  33926. // SetSnapshotId sets the SnapshotId field's value.
  33927. func (s *CreateVolumeInput) SetSnapshotId(v string) *CreateVolumeInput {
  33928. s.SnapshotId = &v
  33929. return s
  33930. }
  33931. // SetTagSpecifications sets the TagSpecifications field's value.
  33932. func (s *CreateVolumeInput) SetTagSpecifications(v []*TagSpecification) *CreateVolumeInput {
  33933. s.TagSpecifications = v
  33934. return s
  33935. }
  33936. // SetVolumeType sets the VolumeType field's value.
  33937. func (s *CreateVolumeInput) SetVolumeType(v string) *CreateVolumeInput {
  33938. s.VolumeType = &v
  33939. return s
  33940. }
  33941. // Describes the user or group to be added or removed from the permissions for
  33942. // a volume.
  33943. type CreateVolumePermission struct {
  33944. _ struct{} `type:"structure"`
  33945. // The specific group that is to be added or removed from a volume's list of
  33946. // create volume permissions.
  33947. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  33948. // The specific AWS account ID that is to be added or removed from a volume's
  33949. // list of create volume permissions.
  33950. UserId *string `locationName:"userId" type:"string"`
  33951. }
  33952. // String returns the string representation
  33953. func (s CreateVolumePermission) String() string {
  33954. return awsutil.Prettify(s)
  33955. }
  33956. // GoString returns the string representation
  33957. func (s CreateVolumePermission) GoString() string {
  33958. return s.String()
  33959. }
  33960. // SetGroup sets the Group field's value.
  33961. func (s *CreateVolumePermission) SetGroup(v string) *CreateVolumePermission {
  33962. s.Group = &v
  33963. return s
  33964. }
  33965. // SetUserId sets the UserId field's value.
  33966. func (s *CreateVolumePermission) SetUserId(v string) *CreateVolumePermission {
  33967. s.UserId = &v
  33968. return s
  33969. }
  33970. // Describes modifications to the permissions for a volume.
  33971. type CreateVolumePermissionModifications struct {
  33972. _ struct{} `type:"structure"`
  33973. // Adds a specific AWS account ID or group to a volume's list of create volume
  33974. // permissions.
  33975. Add []*CreateVolumePermission `locationNameList:"item" type:"list"`
  33976. // Removes a specific AWS account ID or group from a volume's list of create
  33977. // volume permissions.
  33978. Remove []*CreateVolumePermission `locationNameList:"item" type:"list"`
  33979. }
  33980. // String returns the string representation
  33981. func (s CreateVolumePermissionModifications) String() string {
  33982. return awsutil.Prettify(s)
  33983. }
  33984. // GoString returns the string representation
  33985. func (s CreateVolumePermissionModifications) GoString() string {
  33986. return s.String()
  33987. }
  33988. // SetAdd sets the Add field's value.
  33989. func (s *CreateVolumePermissionModifications) SetAdd(v []*CreateVolumePermission) *CreateVolumePermissionModifications {
  33990. s.Add = v
  33991. return s
  33992. }
  33993. // SetRemove sets the Remove field's value.
  33994. func (s *CreateVolumePermissionModifications) SetRemove(v []*CreateVolumePermission) *CreateVolumePermissionModifications {
  33995. s.Remove = v
  33996. return s
  33997. }
  33998. type CreateVpcEndpointConnectionNotificationInput struct {
  33999. _ struct{} `type:"structure"`
  34000. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  34001. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  34002. ClientToken *string `type:"string"`
  34003. // One or more endpoint events for which to receive notifications. Valid values
  34004. // are Accept, Connect, Delete, and Reject.
  34005. //
  34006. // ConnectionEvents is a required field
  34007. ConnectionEvents []*string `locationNameList:"item" type:"list" required:"true"`
  34008. // The ARN of the SNS topic for the notifications.
  34009. //
  34010. // ConnectionNotificationArn is a required field
  34011. ConnectionNotificationArn *string `type:"string" required:"true"`
  34012. // Checks whether you have the required permissions for the action, without
  34013. // actually making the request, and provides an error response. If you have
  34014. // the required permissions, the error response is DryRunOperation. Otherwise,
  34015. // it is UnauthorizedOperation.
  34016. DryRun *bool `type:"boolean"`
  34017. // The ID of the endpoint service.
  34018. ServiceId *string `type:"string"`
  34019. // The ID of the endpoint.
  34020. VpcEndpointId *string `type:"string"`
  34021. }
  34022. // String returns the string representation
  34023. func (s CreateVpcEndpointConnectionNotificationInput) String() string {
  34024. return awsutil.Prettify(s)
  34025. }
  34026. // GoString returns the string representation
  34027. func (s CreateVpcEndpointConnectionNotificationInput) GoString() string {
  34028. return s.String()
  34029. }
  34030. // Validate inspects the fields of the type to determine if they are valid.
  34031. func (s *CreateVpcEndpointConnectionNotificationInput) Validate() error {
  34032. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointConnectionNotificationInput"}
  34033. if s.ConnectionEvents == nil {
  34034. invalidParams.Add(request.NewErrParamRequired("ConnectionEvents"))
  34035. }
  34036. if s.ConnectionNotificationArn == nil {
  34037. invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationArn"))
  34038. }
  34039. if invalidParams.Len() > 0 {
  34040. return invalidParams
  34041. }
  34042. return nil
  34043. }
  34044. // SetClientToken sets the ClientToken field's value.
  34045. func (s *CreateVpcEndpointConnectionNotificationInput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationInput {
  34046. s.ClientToken = &v
  34047. return s
  34048. }
  34049. // SetConnectionEvents sets the ConnectionEvents field's value.
  34050. func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionEvents(v []*string) *CreateVpcEndpointConnectionNotificationInput {
  34051. s.ConnectionEvents = v
  34052. return s
  34053. }
  34054. // SetConnectionNotificationArn sets the ConnectionNotificationArn field's value.
  34055. func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionNotificationArn(v string) *CreateVpcEndpointConnectionNotificationInput {
  34056. s.ConnectionNotificationArn = &v
  34057. return s
  34058. }
  34059. // SetDryRun sets the DryRun field's value.
  34060. func (s *CreateVpcEndpointConnectionNotificationInput) SetDryRun(v bool) *CreateVpcEndpointConnectionNotificationInput {
  34061. s.DryRun = &v
  34062. return s
  34063. }
  34064. // SetServiceId sets the ServiceId field's value.
  34065. func (s *CreateVpcEndpointConnectionNotificationInput) SetServiceId(v string) *CreateVpcEndpointConnectionNotificationInput {
  34066. s.ServiceId = &v
  34067. return s
  34068. }
  34069. // SetVpcEndpointId sets the VpcEndpointId field's value.
  34070. func (s *CreateVpcEndpointConnectionNotificationInput) SetVpcEndpointId(v string) *CreateVpcEndpointConnectionNotificationInput {
  34071. s.VpcEndpointId = &v
  34072. return s
  34073. }
  34074. type CreateVpcEndpointConnectionNotificationOutput struct {
  34075. _ struct{} `type:"structure"`
  34076. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  34077. // the request.
  34078. ClientToken *string `locationName:"clientToken" type:"string"`
  34079. // Information about the notification.
  34080. ConnectionNotification *ConnectionNotification `locationName:"connectionNotification" type:"structure"`
  34081. }
  34082. // String returns the string representation
  34083. func (s CreateVpcEndpointConnectionNotificationOutput) String() string {
  34084. return awsutil.Prettify(s)
  34085. }
  34086. // GoString returns the string representation
  34087. func (s CreateVpcEndpointConnectionNotificationOutput) GoString() string {
  34088. return s.String()
  34089. }
  34090. // SetClientToken sets the ClientToken field's value.
  34091. func (s *CreateVpcEndpointConnectionNotificationOutput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationOutput {
  34092. s.ClientToken = &v
  34093. return s
  34094. }
  34095. // SetConnectionNotification sets the ConnectionNotification field's value.
  34096. func (s *CreateVpcEndpointConnectionNotificationOutput) SetConnectionNotification(v *ConnectionNotification) *CreateVpcEndpointConnectionNotificationOutput {
  34097. s.ConnectionNotification = v
  34098. return s
  34099. }
  34100. // Contains the parameters for CreateVpcEndpoint.
  34101. type CreateVpcEndpointInput struct {
  34102. _ struct{} `type:"structure"`
  34103. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  34104. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  34105. ClientToken *string `type:"string"`
  34106. // Checks whether you have the required permissions for the action, without
  34107. // actually making the request, and provides an error response. If you have
  34108. // the required permissions, the error response is DryRunOperation. Otherwise,
  34109. // it is UnauthorizedOperation.
  34110. DryRun *bool `type:"boolean"`
  34111. // (Gateway endpoint) A policy to attach to the endpoint that controls access
  34112. // to the service. The policy must be in valid JSON format. If this parameter
  34113. // is not specified, we attach a default policy that allows full access to the
  34114. // service.
  34115. PolicyDocument *string `type:"string"`
  34116. // (Interface endpoint) Indicate whether to associate a private hosted zone
  34117. // with the specified VPC. The private hosted zone contains a record set for
  34118. // the default public DNS name for the service for the region (for example,
  34119. // kinesis.us-east-1.amazonaws.com) which resolves to the private IP addresses
  34120. // of the endpoint network interfaces in the VPC. This enables you to make requests
  34121. // to the default public DNS name for the service instead of the public DNS
  34122. // names that are automatically generated by the VPC endpoint service.
  34123. //
  34124. // To use a private hosted zone, you must set the following VPC attributes to
  34125. // true: enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to
  34126. // set the VPC attributes.
  34127. //
  34128. // Default: false
  34129. PrivateDnsEnabled *bool `type:"boolean"`
  34130. // (Gateway endpoint) One or more route table IDs.
  34131. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"`
  34132. // (Interface endpoint) The ID of one or more security groups to associate with
  34133. // the endpoint network interface.
  34134. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`
  34135. // The service name. To get a list of available services, use the DescribeVpcEndpointServices
  34136. // request, or get the name from the service provider.
  34137. //
  34138. // ServiceName is a required field
  34139. ServiceName *string `type:"string" required:"true"`
  34140. // (Interface endpoint) The ID of one or more subnets in which to create an
  34141. // endpoint network interface.
  34142. SubnetIds []*string `locationName:"SubnetId" locationNameList:"item" type:"list"`
  34143. // The type of endpoint.
  34144. //
  34145. // Default: Gateway
  34146. VpcEndpointType *string `type:"string" enum:"VpcEndpointType"`
  34147. // The ID of the VPC in which the endpoint will be used.
  34148. //
  34149. // VpcId is a required field
  34150. VpcId *string `type:"string" required:"true"`
  34151. }
  34152. // String returns the string representation
  34153. func (s CreateVpcEndpointInput) String() string {
  34154. return awsutil.Prettify(s)
  34155. }
  34156. // GoString returns the string representation
  34157. func (s CreateVpcEndpointInput) GoString() string {
  34158. return s.String()
  34159. }
  34160. // Validate inspects the fields of the type to determine if they are valid.
  34161. func (s *CreateVpcEndpointInput) Validate() error {
  34162. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointInput"}
  34163. if s.ServiceName == nil {
  34164. invalidParams.Add(request.NewErrParamRequired("ServiceName"))
  34165. }
  34166. if s.VpcId == nil {
  34167. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  34168. }
  34169. if invalidParams.Len() > 0 {
  34170. return invalidParams
  34171. }
  34172. return nil
  34173. }
  34174. // SetClientToken sets the ClientToken field's value.
  34175. func (s *CreateVpcEndpointInput) SetClientToken(v string) *CreateVpcEndpointInput {
  34176. s.ClientToken = &v
  34177. return s
  34178. }
  34179. // SetDryRun sets the DryRun field's value.
  34180. func (s *CreateVpcEndpointInput) SetDryRun(v bool) *CreateVpcEndpointInput {
  34181. s.DryRun = &v
  34182. return s
  34183. }
  34184. // SetPolicyDocument sets the PolicyDocument field's value.
  34185. func (s *CreateVpcEndpointInput) SetPolicyDocument(v string) *CreateVpcEndpointInput {
  34186. s.PolicyDocument = &v
  34187. return s
  34188. }
  34189. // SetPrivateDnsEnabled sets the PrivateDnsEnabled field's value.
  34190. func (s *CreateVpcEndpointInput) SetPrivateDnsEnabled(v bool) *CreateVpcEndpointInput {
  34191. s.PrivateDnsEnabled = &v
  34192. return s
  34193. }
  34194. // SetRouteTableIds sets the RouteTableIds field's value.
  34195. func (s *CreateVpcEndpointInput) SetRouteTableIds(v []*string) *CreateVpcEndpointInput {
  34196. s.RouteTableIds = v
  34197. return s
  34198. }
  34199. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  34200. func (s *CreateVpcEndpointInput) SetSecurityGroupIds(v []*string) *CreateVpcEndpointInput {
  34201. s.SecurityGroupIds = v
  34202. return s
  34203. }
  34204. // SetServiceName sets the ServiceName field's value.
  34205. func (s *CreateVpcEndpointInput) SetServiceName(v string) *CreateVpcEndpointInput {
  34206. s.ServiceName = &v
  34207. return s
  34208. }
  34209. // SetSubnetIds sets the SubnetIds field's value.
  34210. func (s *CreateVpcEndpointInput) SetSubnetIds(v []*string) *CreateVpcEndpointInput {
  34211. s.SubnetIds = v
  34212. return s
  34213. }
  34214. // SetVpcEndpointType sets the VpcEndpointType field's value.
  34215. func (s *CreateVpcEndpointInput) SetVpcEndpointType(v string) *CreateVpcEndpointInput {
  34216. s.VpcEndpointType = &v
  34217. return s
  34218. }
  34219. // SetVpcId sets the VpcId field's value.
  34220. func (s *CreateVpcEndpointInput) SetVpcId(v string) *CreateVpcEndpointInput {
  34221. s.VpcId = &v
  34222. return s
  34223. }
  34224. // Contains the output of CreateVpcEndpoint.
  34225. type CreateVpcEndpointOutput struct {
  34226. _ struct{} `type:"structure"`
  34227. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  34228. // the request.
  34229. ClientToken *string `locationName:"clientToken" type:"string"`
  34230. // Information about the endpoint.
  34231. VpcEndpoint *VpcEndpoint `locationName:"vpcEndpoint" type:"structure"`
  34232. }
  34233. // String returns the string representation
  34234. func (s CreateVpcEndpointOutput) String() string {
  34235. return awsutil.Prettify(s)
  34236. }
  34237. // GoString returns the string representation
  34238. func (s CreateVpcEndpointOutput) GoString() string {
  34239. return s.String()
  34240. }
  34241. // SetClientToken sets the ClientToken field's value.
  34242. func (s *CreateVpcEndpointOutput) SetClientToken(v string) *CreateVpcEndpointOutput {
  34243. s.ClientToken = &v
  34244. return s
  34245. }
  34246. // SetVpcEndpoint sets the VpcEndpoint field's value.
  34247. func (s *CreateVpcEndpointOutput) SetVpcEndpoint(v *VpcEndpoint) *CreateVpcEndpointOutput {
  34248. s.VpcEndpoint = v
  34249. return s
  34250. }
  34251. type CreateVpcEndpointServiceConfigurationInput struct {
  34252. _ struct{} `type:"structure"`
  34253. // Indicate whether requests from service consumers to create an endpoint to
  34254. // your service must be accepted. To accept a request, use AcceptVpcEndpointConnections.
  34255. AcceptanceRequired *bool `type:"boolean"`
  34256. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  34257. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  34258. ClientToken *string `type:"string"`
  34259. // Checks whether you have the required permissions for the action, without
  34260. // actually making the request, and provides an error response. If you have
  34261. // the required permissions, the error response is DryRunOperation. Otherwise,
  34262. // it is UnauthorizedOperation.
  34263. DryRun *bool `type:"boolean"`
  34264. // The Amazon Resource Names (ARNs) of one or more Network Load Balancers for
  34265. // your service.
  34266. //
  34267. // NetworkLoadBalancerArns is a required field
  34268. NetworkLoadBalancerArns []*string `locationName:"NetworkLoadBalancerArn" locationNameList:"item" type:"list" required:"true"`
  34269. }
  34270. // String returns the string representation
  34271. func (s CreateVpcEndpointServiceConfigurationInput) String() string {
  34272. return awsutil.Prettify(s)
  34273. }
  34274. // GoString returns the string representation
  34275. func (s CreateVpcEndpointServiceConfigurationInput) GoString() string {
  34276. return s.String()
  34277. }
  34278. // Validate inspects the fields of the type to determine if they are valid.
  34279. func (s *CreateVpcEndpointServiceConfigurationInput) Validate() error {
  34280. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointServiceConfigurationInput"}
  34281. if s.NetworkLoadBalancerArns == nil {
  34282. invalidParams.Add(request.NewErrParamRequired("NetworkLoadBalancerArns"))
  34283. }
  34284. if invalidParams.Len() > 0 {
  34285. return invalidParams
  34286. }
  34287. return nil
  34288. }
  34289. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  34290. func (s *CreateVpcEndpointServiceConfigurationInput) SetAcceptanceRequired(v bool) *CreateVpcEndpointServiceConfigurationInput {
  34291. s.AcceptanceRequired = &v
  34292. return s
  34293. }
  34294. // SetClientToken sets the ClientToken field's value.
  34295. func (s *CreateVpcEndpointServiceConfigurationInput) SetClientToken(v string) *CreateVpcEndpointServiceConfigurationInput {
  34296. s.ClientToken = &v
  34297. return s
  34298. }
  34299. // SetDryRun sets the DryRun field's value.
  34300. func (s *CreateVpcEndpointServiceConfigurationInput) SetDryRun(v bool) *CreateVpcEndpointServiceConfigurationInput {
  34301. s.DryRun = &v
  34302. return s
  34303. }
  34304. // SetNetworkLoadBalancerArns sets the NetworkLoadBalancerArns field's value.
  34305. func (s *CreateVpcEndpointServiceConfigurationInput) SetNetworkLoadBalancerArns(v []*string) *CreateVpcEndpointServiceConfigurationInput {
  34306. s.NetworkLoadBalancerArns = v
  34307. return s
  34308. }
  34309. type CreateVpcEndpointServiceConfigurationOutput struct {
  34310. _ struct{} `type:"structure"`
  34311. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  34312. // the request.
  34313. ClientToken *string `locationName:"clientToken" type:"string"`
  34314. // Information about the service configuration.
  34315. ServiceConfiguration *ServiceConfiguration `locationName:"serviceConfiguration" type:"structure"`
  34316. }
  34317. // String returns the string representation
  34318. func (s CreateVpcEndpointServiceConfigurationOutput) String() string {
  34319. return awsutil.Prettify(s)
  34320. }
  34321. // GoString returns the string representation
  34322. func (s CreateVpcEndpointServiceConfigurationOutput) GoString() string {
  34323. return s.String()
  34324. }
  34325. // SetClientToken sets the ClientToken field's value.
  34326. func (s *CreateVpcEndpointServiceConfigurationOutput) SetClientToken(v string) *CreateVpcEndpointServiceConfigurationOutput {
  34327. s.ClientToken = &v
  34328. return s
  34329. }
  34330. // SetServiceConfiguration sets the ServiceConfiguration field's value.
  34331. func (s *CreateVpcEndpointServiceConfigurationOutput) SetServiceConfiguration(v *ServiceConfiguration) *CreateVpcEndpointServiceConfigurationOutput {
  34332. s.ServiceConfiguration = v
  34333. return s
  34334. }
  34335. type CreateVpcInput struct {
  34336. _ struct{} `type:"structure"`
  34337. // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for
  34338. // the VPC. You cannot specify the range of IP addresses, or the size of the
  34339. // CIDR block.
  34340. AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"`
  34341. // The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
  34342. //
  34343. // CidrBlock is a required field
  34344. CidrBlock *string `type:"string" required:"true"`
  34345. // Checks whether you have the required permissions for the action, without
  34346. // actually making the request, and provides an error response. If you have
  34347. // the required permissions, the error response is DryRunOperation. Otherwise,
  34348. // it is UnauthorizedOperation.
  34349. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34350. // The tenancy options for instances launched into the VPC. For default, instances
  34351. // are launched with shared tenancy by default. You can launch instances with
  34352. // any tenancy into a shared tenancy VPC. For dedicated, instances are launched
  34353. // as dedicated tenancy instances by default. You can only launch instances
  34354. // with a tenancy of dedicated or host into a dedicated tenancy VPC.
  34355. //
  34356. // Important: The host value cannot be used with this parameter. Use the default
  34357. // or dedicated values only.
  34358. //
  34359. // Default: default
  34360. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  34361. }
  34362. // String returns the string representation
  34363. func (s CreateVpcInput) String() string {
  34364. return awsutil.Prettify(s)
  34365. }
  34366. // GoString returns the string representation
  34367. func (s CreateVpcInput) GoString() string {
  34368. return s.String()
  34369. }
  34370. // Validate inspects the fields of the type to determine if they are valid.
  34371. func (s *CreateVpcInput) Validate() error {
  34372. invalidParams := request.ErrInvalidParams{Context: "CreateVpcInput"}
  34373. if s.CidrBlock == nil {
  34374. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  34375. }
  34376. if invalidParams.Len() > 0 {
  34377. return invalidParams
  34378. }
  34379. return nil
  34380. }
  34381. // SetAmazonProvidedIpv6CidrBlock sets the AmazonProvidedIpv6CidrBlock field's value.
  34382. func (s *CreateVpcInput) SetAmazonProvidedIpv6CidrBlock(v bool) *CreateVpcInput {
  34383. s.AmazonProvidedIpv6CidrBlock = &v
  34384. return s
  34385. }
  34386. // SetCidrBlock sets the CidrBlock field's value.
  34387. func (s *CreateVpcInput) SetCidrBlock(v string) *CreateVpcInput {
  34388. s.CidrBlock = &v
  34389. return s
  34390. }
  34391. // SetDryRun sets the DryRun field's value.
  34392. func (s *CreateVpcInput) SetDryRun(v bool) *CreateVpcInput {
  34393. s.DryRun = &v
  34394. return s
  34395. }
  34396. // SetInstanceTenancy sets the InstanceTenancy field's value.
  34397. func (s *CreateVpcInput) SetInstanceTenancy(v string) *CreateVpcInput {
  34398. s.InstanceTenancy = &v
  34399. return s
  34400. }
  34401. type CreateVpcOutput struct {
  34402. _ struct{} `type:"structure"`
  34403. // Information about the VPC.
  34404. Vpc *Vpc `locationName:"vpc" type:"structure"`
  34405. }
  34406. // String returns the string representation
  34407. func (s CreateVpcOutput) String() string {
  34408. return awsutil.Prettify(s)
  34409. }
  34410. // GoString returns the string representation
  34411. func (s CreateVpcOutput) GoString() string {
  34412. return s.String()
  34413. }
  34414. // SetVpc sets the Vpc field's value.
  34415. func (s *CreateVpcOutput) SetVpc(v *Vpc) *CreateVpcOutput {
  34416. s.Vpc = v
  34417. return s
  34418. }
  34419. type CreateVpcPeeringConnectionInput struct {
  34420. _ struct{} `type:"structure"`
  34421. // Checks whether you have the required permissions for the action, without
  34422. // actually making the request, and provides an error response. If you have
  34423. // the required permissions, the error response is DryRunOperation. Otherwise,
  34424. // it is UnauthorizedOperation.
  34425. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34426. // The AWS account ID of the owner of the accepter VPC.
  34427. //
  34428. // Default: Your AWS account ID
  34429. PeerOwnerId *string `locationName:"peerOwnerId" type:"string"`
  34430. // The region code for the accepter VPC, if the accepter VPC is located in a
  34431. // region other than the region in which you make the request.
  34432. //
  34433. // Default: The region in which you make the request.
  34434. PeerRegion *string `type:"string"`
  34435. // The ID of the VPC with which you are creating the VPC peering connection.
  34436. // You must specify this parameter in the request.
  34437. PeerVpcId *string `locationName:"peerVpcId" type:"string"`
  34438. // The ID of the requester VPC. You must specify this parameter in the request.
  34439. VpcId *string `locationName:"vpcId" type:"string"`
  34440. }
  34441. // String returns the string representation
  34442. func (s CreateVpcPeeringConnectionInput) String() string {
  34443. return awsutil.Prettify(s)
  34444. }
  34445. // GoString returns the string representation
  34446. func (s CreateVpcPeeringConnectionInput) GoString() string {
  34447. return s.String()
  34448. }
  34449. // SetDryRun sets the DryRun field's value.
  34450. func (s *CreateVpcPeeringConnectionInput) SetDryRun(v bool) *CreateVpcPeeringConnectionInput {
  34451. s.DryRun = &v
  34452. return s
  34453. }
  34454. // SetPeerOwnerId sets the PeerOwnerId field's value.
  34455. func (s *CreateVpcPeeringConnectionInput) SetPeerOwnerId(v string) *CreateVpcPeeringConnectionInput {
  34456. s.PeerOwnerId = &v
  34457. return s
  34458. }
  34459. // SetPeerRegion sets the PeerRegion field's value.
  34460. func (s *CreateVpcPeeringConnectionInput) SetPeerRegion(v string) *CreateVpcPeeringConnectionInput {
  34461. s.PeerRegion = &v
  34462. return s
  34463. }
  34464. // SetPeerVpcId sets the PeerVpcId field's value.
  34465. func (s *CreateVpcPeeringConnectionInput) SetPeerVpcId(v string) *CreateVpcPeeringConnectionInput {
  34466. s.PeerVpcId = &v
  34467. return s
  34468. }
  34469. // SetVpcId sets the VpcId field's value.
  34470. func (s *CreateVpcPeeringConnectionInput) SetVpcId(v string) *CreateVpcPeeringConnectionInput {
  34471. s.VpcId = &v
  34472. return s
  34473. }
  34474. type CreateVpcPeeringConnectionOutput struct {
  34475. _ struct{} `type:"structure"`
  34476. // Information about the VPC peering connection.
  34477. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
  34478. }
  34479. // String returns the string representation
  34480. func (s CreateVpcPeeringConnectionOutput) String() string {
  34481. return awsutil.Prettify(s)
  34482. }
  34483. // GoString returns the string representation
  34484. func (s CreateVpcPeeringConnectionOutput) GoString() string {
  34485. return s.String()
  34486. }
  34487. // SetVpcPeeringConnection sets the VpcPeeringConnection field's value.
  34488. func (s *CreateVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *CreateVpcPeeringConnectionOutput {
  34489. s.VpcPeeringConnection = v
  34490. return s
  34491. }
  34492. // Contains the parameters for CreateVpnConnection.
  34493. type CreateVpnConnectionInput struct {
  34494. _ struct{} `type:"structure"`
  34495. // The ID of the customer gateway.
  34496. //
  34497. // CustomerGatewayId is a required field
  34498. CustomerGatewayId *string `type:"string" required:"true"`
  34499. // Checks whether you have the required permissions for the action, without
  34500. // actually making the request, and provides an error response. If you have
  34501. // the required permissions, the error response is DryRunOperation. Otherwise,
  34502. // it is UnauthorizedOperation.
  34503. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34504. // The options for the VPN connection.
  34505. Options *VpnConnectionOptionsSpecification `locationName:"options" type:"structure"`
  34506. // The ID of the transit gateway. If you specify a transit gateway, you cannot
  34507. // specify a virtual private gateway.
  34508. TransitGatewayId *string `type:"string"`
  34509. // The type of VPN connection (ipsec.1).
  34510. //
  34511. // Type is a required field
  34512. Type *string `type:"string" required:"true"`
  34513. // The ID of the virtual private gateway. If you specify a virtual private gateway,
  34514. // you cannot specify a transit gateway.
  34515. VpnGatewayId *string `type:"string"`
  34516. }
  34517. // String returns the string representation
  34518. func (s CreateVpnConnectionInput) String() string {
  34519. return awsutil.Prettify(s)
  34520. }
  34521. // GoString returns the string representation
  34522. func (s CreateVpnConnectionInput) GoString() string {
  34523. return s.String()
  34524. }
  34525. // Validate inspects the fields of the type to determine if they are valid.
  34526. func (s *CreateVpnConnectionInput) Validate() error {
  34527. invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionInput"}
  34528. if s.CustomerGatewayId == nil {
  34529. invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId"))
  34530. }
  34531. if s.Type == nil {
  34532. invalidParams.Add(request.NewErrParamRequired("Type"))
  34533. }
  34534. if invalidParams.Len() > 0 {
  34535. return invalidParams
  34536. }
  34537. return nil
  34538. }
  34539. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  34540. func (s *CreateVpnConnectionInput) SetCustomerGatewayId(v string) *CreateVpnConnectionInput {
  34541. s.CustomerGatewayId = &v
  34542. return s
  34543. }
  34544. // SetDryRun sets the DryRun field's value.
  34545. func (s *CreateVpnConnectionInput) SetDryRun(v bool) *CreateVpnConnectionInput {
  34546. s.DryRun = &v
  34547. return s
  34548. }
  34549. // SetOptions sets the Options field's value.
  34550. func (s *CreateVpnConnectionInput) SetOptions(v *VpnConnectionOptionsSpecification) *CreateVpnConnectionInput {
  34551. s.Options = v
  34552. return s
  34553. }
  34554. // SetTransitGatewayId sets the TransitGatewayId field's value.
  34555. func (s *CreateVpnConnectionInput) SetTransitGatewayId(v string) *CreateVpnConnectionInput {
  34556. s.TransitGatewayId = &v
  34557. return s
  34558. }
  34559. // SetType sets the Type field's value.
  34560. func (s *CreateVpnConnectionInput) SetType(v string) *CreateVpnConnectionInput {
  34561. s.Type = &v
  34562. return s
  34563. }
  34564. // SetVpnGatewayId sets the VpnGatewayId field's value.
  34565. func (s *CreateVpnConnectionInput) SetVpnGatewayId(v string) *CreateVpnConnectionInput {
  34566. s.VpnGatewayId = &v
  34567. return s
  34568. }
  34569. // Contains the output of CreateVpnConnection.
  34570. type CreateVpnConnectionOutput struct {
  34571. _ struct{} `type:"structure"`
  34572. // Information about the VPN connection.
  34573. VpnConnection *VpnConnection `locationName:"vpnConnection" type:"structure"`
  34574. }
  34575. // String returns the string representation
  34576. func (s CreateVpnConnectionOutput) String() string {
  34577. return awsutil.Prettify(s)
  34578. }
  34579. // GoString returns the string representation
  34580. func (s CreateVpnConnectionOutput) GoString() string {
  34581. return s.String()
  34582. }
  34583. // SetVpnConnection sets the VpnConnection field's value.
  34584. func (s *CreateVpnConnectionOutput) SetVpnConnection(v *VpnConnection) *CreateVpnConnectionOutput {
  34585. s.VpnConnection = v
  34586. return s
  34587. }
  34588. // Contains the parameters for CreateVpnConnectionRoute.
  34589. type CreateVpnConnectionRouteInput struct {
  34590. _ struct{} `type:"structure"`
  34591. // The CIDR block associated with the local subnet of the customer network.
  34592. //
  34593. // DestinationCidrBlock is a required field
  34594. DestinationCidrBlock *string `type:"string" required:"true"`
  34595. // The ID of the VPN connection.
  34596. //
  34597. // VpnConnectionId is a required field
  34598. VpnConnectionId *string `type:"string" required:"true"`
  34599. }
  34600. // String returns the string representation
  34601. func (s CreateVpnConnectionRouteInput) String() string {
  34602. return awsutil.Prettify(s)
  34603. }
  34604. // GoString returns the string representation
  34605. func (s CreateVpnConnectionRouteInput) GoString() string {
  34606. return s.String()
  34607. }
  34608. // Validate inspects the fields of the type to determine if they are valid.
  34609. func (s *CreateVpnConnectionRouteInput) Validate() error {
  34610. invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionRouteInput"}
  34611. if s.DestinationCidrBlock == nil {
  34612. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  34613. }
  34614. if s.VpnConnectionId == nil {
  34615. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  34616. }
  34617. if invalidParams.Len() > 0 {
  34618. return invalidParams
  34619. }
  34620. return nil
  34621. }
  34622. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  34623. func (s *CreateVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *CreateVpnConnectionRouteInput {
  34624. s.DestinationCidrBlock = &v
  34625. return s
  34626. }
  34627. // SetVpnConnectionId sets the VpnConnectionId field's value.
  34628. func (s *CreateVpnConnectionRouteInput) SetVpnConnectionId(v string) *CreateVpnConnectionRouteInput {
  34629. s.VpnConnectionId = &v
  34630. return s
  34631. }
  34632. type CreateVpnConnectionRouteOutput struct {
  34633. _ struct{} `type:"structure"`
  34634. }
  34635. // String returns the string representation
  34636. func (s CreateVpnConnectionRouteOutput) String() string {
  34637. return awsutil.Prettify(s)
  34638. }
  34639. // GoString returns the string representation
  34640. func (s CreateVpnConnectionRouteOutput) GoString() string {
  34641. return s.String()
  34642. }
  34643. // Contains the parameters for CreateVpnGateway.
  34644. type CreateVpnGatewayInput struct {
  34645. _ struct{} `type:"structure"`
  34646. // A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
  34647. // If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If
  34648. // you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.
  34649. //
  34650. // Default: 64512
  34651. AmazonSideAsn *int64 `type:"long"`
  34652. // The Availability Zone for the virtual private gateway.
  34653. AvailabilityZone *string `type:"string"`
  34654. // Checks whether you have the required permissions for the action, without
  34655. // actually making the request, and provides an error response. If you have
  34656. // the required permissions, the error response is DryRunOperation. Otherwise,
  34657. // it is UnauthorizedOperation.
  34658. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34659. // The type of VPN connection this virtual private gateway supports.
  34660. //
  34661. // Type is a required field
  34662. Type *string `type:"string" required:"true" enum:"GatewayType"`
  34663. }
  34664. // String returns the string representation
  34665. func (s CreateVpnGatewayInput) String() string {
  34666. return awsutil.Prettify(s)
  34667. }
  34668. // GoString returns the string representation
  34669. func (s CreateVpnGatewayInput) GoString() string {
  34670. return s.String()
  34671. }
  34672. // Validate inspects the fields of the type to determine if they are valid.
  34673. func (s *CreateVpnGatewayInput) Validate() error {
  34674. invalidParams := request.ErrInvalidParams{Context: "CreateVpnGatewayInput"}
  34675. if s.Type == nil {
  34676. invalidParams.Add(request.NewErrParamRequired("Type"))
  34677. }
  34678. if invalidParams.Len() > 0 {
  34679. return invalidParams
  34680. }
  34681. return nil
  34682. }
  34683. // SetAmazonSideAsn sets the AmazonSideAsn field's value.
  34684. func (s *CreateVpnGatewayInput) SetAmazonSideAsn(v int64) *CreateVpnGatewayInput {
  34685. s.AmazonSideAsn = &v
  34686. return s
  34687. }
  34688. // SetAvailabilityZone sets the AvailabilityZone field's value.
  34689. func (s *CreateVpnGatewayInput) SetAvailabilityZone(v string) *CreateVpnGatewayInput {
  34690. s.AvailabilityZone = &v
  34691. return s
  34692. }
  34693. // SetDryRun sets the DryRun field's value.
  34694. func (s *CreateVpnGatewayInput) SetDryRun(v bool) *CreateVpnGatewayInput {
  34695. s.DryRun = &v
  34696. return s
  34697. }
  34698. // SetType sets the Type field's value.
  34699. func (s *CreateVpnGatewayInput) SetType(v string) *CreateVpnGatewayInput {
  34700. s.Type = &v
  34701. return s
  34702. }
  34703. // Contains the output of CreateVpnGateway.
  34704. type CreateVpnGatewayOutput struct {
  34705. _ struct{} `type:"structure"`
  34706. // Information about the virtual private gateway.
  34707. VpnGateway *VpnGateway `locationName:"vpnGateway" type:"structure"`
  34708. }
  34709. // String returns the string representation
  34710. func (s CreateVpnGatewayOutput) String() string {
  34711. return awsutil.Prettify(s)
  34712. }
  34713. // GoString returns the string representation
  34714. func (s CreateVpnGatewayOutput) GoString() string {
  34715. return s.String()
  34716. }
  34717. // SetVpnGateway sets the VpnGateway field's value.
  34718. func (s *CreateVpnGatewayOutput) SetVpnGateway(v *VpnGateway) *CreateVpnGatewayOutput {
  34719. s.VpnGateway = v
  34720. return s
  34721. }
  34722. // Describes the credit option for CPU usage of a T2 or T3 instance.
  34723. type CreditSpecification struct {
  34724. _ struct{} `type:"structure"`
  34725. // The credit option for CPU usage of a T2 or T3 instance. Valid values are
  34726. // standard and unlimited.
  34727. CpuCredits *string `locationName:"cpuCredits" type:"string"`
  34728. }
  34729. // String returns the string representation
  34730. func (s CreditSpecification) String() string {
  34731. return awsutil.Prettify(s)
  34732. }
  34733. // GoString returns the string representation
  34734. func (s CreditSpecification) GoString() string {
  34735. return s.String()
  34736. }
  34737. // SetCpuCredits sets the CpuCredits field's value.
  34738. func (s *CreditSpecification) SetCpuCredits(v string) *CreditSpecification {
  34739. s.CpuCredits = &v
  34740. return s
  34741. }
  34742. // The credit option for CPU usage of a T2 or T3 instance.
  34743. type CreditSpecificationRequest struct {
  34744. _ struct{} `type:"structure"`
  34745. // The credit option for CPU usage of a T2 or T3 instance. Valid values are
  34746. // standard and unlimited.
  34747. //
  34748. // CpuCredits is a required field
  34749. CpuCredits *string `type:"string" required:"true"`
  34750. }
  34751. // String returns the string representation
  34752. func (s CreditSpecificationRequest) String() string {
  34753. return awsutil.Prettify(s)
  34754. }
  34755. // GoString returns the string representation
  34756. func (s CreditSpecificationRequest) GoString() string {
  34757. return s.String()
  34758. }
  34759. // Validate inspects the fields of the type to determine if they are valid.
  34760. func (s *CreditSpecificationRequest) Validate() error {
  34761. invalidParams := request.ErrInvalidParams{Context: "CreditSpecificationRequest"}
  34762. if s.CpuCredits == nil {
  34763. invalidParams.Add(request.NewErrParamRequired("CpuCredits"))
  34764. }
  34765. if invalidParams.Len() > 0 {
  34766. return invalidParams
  34767. }
  34768. return nil
  34769. }
  34770. // SetCpuCredits sets the CpuCredits field's value.
  34771. func (s *CreditSpecificationRequest) SetCpuCredits(v string) *CreditSpecificationRequest {
  34772. s.CpuCredits = &v
  34773. return s
  34774. }
  34775. // Describes a customer gateway.
  34776. type CustomerGateway struct {
  34777. _ struct{} `type:"structure"`
  34778. // The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number
  34779. // (ASN).
  34780. BgpAsn *string `locationName:"bgpAsn" type:"string"`
  34781. // The ID of the customer gateway.
  34782. CustomerGatewayId *string `locationName:"customerGatewayId" type:"string"`
  34783. // The Internet-routable IP address of the customer gateway's outside interface.
  34784. IpAddress *string `locationName:"ipAddress" type:"string"`
  34785. // The current state of the customer gateway (pending | available | deleting
  34786. // | deleted).
  34787. State *string `locationName:"state" type:"string"`
  34788. // Any tags assigned to the customer gateway.
  34789. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  34790. // The type of VPN connection the customer gateway supports (ipsec.1).
  34791. Type *string `locationName:"type" type:"string"`
  34792. }
  34793. // String returns the string representation
  34794. func (s CustomerGateway) String() string {
  34795. return awsutil.Prettify(s)
  34796. }
  34797. // GoString returns the string representation
  34798. func (s CustomerGateway) GoString() string {
  34799. return s.String()
  34800. }
  34801. // SetBgpAsn sets the BgpAsn field's value.
  34802. func (s *CustomerGateway) SetBgpAsn(v string) *CustomerGateway {
  34803. s.BgpAsn = &v
  34804. return s
  34805. }
  34806. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  34807. func (s *CustomerGateway) SetCustomerGatewayId(v string) *CustomerGateway {
  34808. s.CustomerGatewayId = &v
  34809. return s
  34810. }
  34811. // SetIpAddress sets the IpAddress field's value.
  34812. func (s *CustomerGateway) SetIpAddress(v string) *CustomerGateway {
  34813. s.IpAddress = &v
  34814. return s
  34815. }
  34816. // SetState sets the State field's value.
  34817. func (s *CustomerGateway) SetState(v string) *CustomerGateway {
  34818. s.State = &v
  34819. return s
  34820. }
  34821. // SetTags sets the Tags field's value.
  34822. func (s *CustomerGateway) SetTags(v []*Tag) *CustomerGateway {
  34823. s.Tags = v
  34824. return s
  34825. }
  34826. // SetType sets the Type field's value.
  34827. func (s *CustomerGateway) SetType(v string) *CustomerGateway {
  34828. s.Type = &v
  34829. return s
  34830. }
  34831. type DeleteClientVpnEndpointInput struct {
  34832. _ struct{} `type:"structure"`
  34833. // The ID of the Client VPN to be deleted.
  34834. //
  34835. // ClientVpnEndpointId is a required field
  34836. ClientVpnEndpointId *string `type:"string" required:"true"`
  34837. // Checks whether you have the required permissions for the action, without
  34838. // actually making the request, and provides an error response. If you have
  34839. // the required permissions, the error response is DryRunOperation. Otherwise,
  34840. // it is UnauthorizedOperation.
  34841. DryRun *bool `type:"boolean"`
  34842. }
  34843. // String returns the string representation
  34844. func (s DeleteClientVpnEndpointInput) String() string {
  34845. return awsutil.Prettify(s)
  34846. }
  34847. // GoString returns the string representation
  34848. func (s DeleteClientVpnEndpointInput) GoString() string {
  34849. return s.String()
  34850. }
  34851. // Validate inspects the fields of the type to determine if they are valid.
  34852. func (s *DeleteClientVpnEndpointInput) Validate() error {
  34853. invalidParams := request.ErrInvalidParams{Context: "DeleteClientVpnEndpointInput"}
  34854. if s.ClientVpnEndpointId == nil {
  34855. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  34856. }
  34857. if invalidParams.Len() > 0 {
  34858. return invalidParams
  34859. }
  34860. return nil
  34861. }
  34862. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  34863. func (s *DeleteClientVpnEndpointInput) SetClientVpnEndpointId(v string) *DeleteClientVpnEndpointInput {
  34864. s.ClientVpnEndpointId = &v
  34865. return s
  34866. }
  34867. // SetDryRun sets the DryRun field's value.
  34868. func (s *DeleteClientVpnEndpointInput) SetDryRun(v bool) *DeleteClientVpnEndpointInput {
  34869. s.DryRun = &v
  34870. return s
  34871. }
  34872. type DeleteClientVpnEndpointOutput struct {
  34873. _ struct{} `type:"structure"`
  34874. // The current state of the Client VPN endpoint.
  34875. Status *ClientVpnEndpointStatus `locationName:"status" type:"structure"`
  34876. }
  34877. // String returns the string representation
  34878. func (s DeleteClientVpnEndpointOutput) String() string {
  34879. return awsutil.Prettify(s)
  34880. }
  34881. // GoString returns the string representation
  34882. func (s DeleteClientVpnEndpointOutput) GoString() string {
  34883. return s.String()
  34884. }
  34885. // SetStatus sets the Status field's value.
  34886. func (s *DeleteClientVpnEndpointOutput) SetStatus(v *ClientVpnEndpointStatus) *DeleteClientVpnEndpointOutput {
  34887. s.Status = v
  34888. return s
  34889. }
  34890. type DeleteClientVpnRouteInput struct {
  34891. _ struct{} `type:"structure"`
  34892. // The ID of the Client VPN endpoint from which the route is to be deleted.
  34893. //
  34894. // ClientVpnEndpointId is a required field
  34895. ClientVpnEndpointId *string `type:"string" required:"true"`
  34896. // The IPv4 address range, in CIDR notation, of the route to be deleted.
  34897. //
  34898. // DestinationCidrBlock is a required field
  34899. DestinationCidrBlock *string `type:"string" required:"true"`
  34900. // Checks whether you have the required permissions for the action, without
  34901. // actually making the request, and provides an error response. If you have
  34902. // the required permissions, the error response is DryRunOperation. Otherwise,
  34903. // it is UnauthorizedOperation.
  34904. DryRun *bool `type:"boolean"`
  34905. // The ID of the target subnet used by the route.
  34906. TargetVpcSubnetId *string `type:"string"`
  34907. }
  34908. // String returns the string representation
  34909. func (s DeleteClientVpnRouteInput) String() string {
  34910. return awsutil.Prettify(s)
  34911. }
  34912. // GoString returns the string representation
  34913. func (s DeleteClientVpnRouteInput) GoString() string {
  34914. return s.String()
  34915. }
  34916. // Validate inspects the fields of the type to determine if they are valid.
  34917. func (s *DeleteClientVpnRouteInput) Validate() error {
  34918. invalidParams := request.ErrInvalidParams{Context: "DeleteClientVpnRouteInput"}
  34919. if s.ClientVpnEndpointId == nil {
  34920. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  34921. }
  34922. if s.DestinationCidrBlock == nil {
  34923. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  34924. }
  34925. if invalidParams.Len() > 0 {
  34926. return invalidParams
  34927. }
  34928. return nil
  34929. }
  34930. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  34931. func (s *DeleteClientVpnRouteInput) SetClientVpnEndpointId(v string) *DeleteClientVpnRouteInput {
  34932. s.ClientVpnEndpointId = &v
  34933. return s
  34934. }
  34935. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  34936. func (s *DeleteClientVpnRouteInput) SetDestinationCidrBlock(v string) *DeleteClientVpnRouteInput {
  34937. s.DestinationCidrBlock = &v
  34938. return s
  34939. }
  34940. // SetDryRun sets the DryRun field's value.
  34941. func (s *DeleteClientVpnRouteInput) SetDryRun(v bool) *DeleteClientVpnRouteInput {
  34942. s.DryRun = &v
  34943. return s
  34944. }
  34945. // SetTargetVpcSubnetId sets the TargetVpcSubnetId field's value.
  34946. func (s *DeleteClientVpnRouteInput) SetTargetVpcSubnetId(v string) *DeleteClientVpnRouteInput {
  34947. s.TargetVpcSubnetId = &v
  34948. return s
  34949. }
  34950. type DeleteClientVpnRouteOutput struct {
  34951. _ struct{} `type:"structure"`
  34952. // The current state of the route.
  34953. Status *ClientVpnRouteStatus `locationName:"status" type:"structure"`
  34954. }
  34955. // String returns the string representation
  34956. func (s DeleteClientVpnRouteOutput) String() string {
  34957. return awsutil.Prettify(s)
  34958. }
  34959. // GoString returns the string representation
  34960. func (s DeleteClientVpnRouteOutput) GoString() string {
  34961. return s.String()
  34962. }
  34963. // SetStatus sets the Status field's value.
  34964. func (s *DeleteClientVpnRouteOutput) SetStatus(v *ClientVpnRouteStatus) *DeleteClientVpnRouteOutput {
  34965. s.Status = v
  34966. return s
  34967. }
  34968. // Contains the parameters for DeleteCustomerGateway.
  34969. type DeleteCustomerGatewayInput struct {
  34970. _ struct{} `type:"structure"`
  34971. // The ID of the customer gateway.
  34972. //
  34973. // CustomerGatewayId is a required field
  34974. CustomerGatewayId *string `type:"string" required:"true"`
  34975. // Checks whether you have the required permissions for the action, without
  34976. // actually making the request, and provides an error response. If you have
  34977. // the required permissions, the error response is DryRunOperation. Otherwise,
  34978. // it is UnauthorizedOperation.
  34979. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34980. }
  34981. // String returns the string representation
  34982. func (s DeleteCustomerGatewayInput) String() string {
  34983. return awsutil.Prettify(s)
  34984. }
  34985. // GoString returns the string representation
  34986. func (s DeleteCustomerGatewayInput) GoString() string {
  34987. return s.String()
  34988. }
  34989. // Validate inspects the fields of the type to determine if they are valid.
  34990. func (s *DeleteCustomerGatewayInput) Validate() error {
  34991. invalidParams := request.ErrInvalidParams{Context: "DeleteCustomerGatewayInput"}
  34992. if s.CustomerGatewayId == nil {
  34993. invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId"))
  34994. }
  34995. if invalidParams.Len() > 0 {
  34996. return invalidParams
  34997. }
  34998. return nil
  34999. }
  35000. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  35001. func (s *DeleteCustomerGatewayInput) SetCustomerGatewayId(v string) *DeleteCustomerGatewayInput {
  35002. s.CustomerGatewayId = &v
  35003. return s
  35004. }
  35005. // SetDryRun sets the DryRun field's value.
  35006. func (s *DeleteCustomerGatewayInput) SetDryRun(v bool) *DeleteCustomerGatewayInput {
  35007. s.DryRun = &v
  35008. return s
  35009. }
  35010. type DeleteCustomerGatewayOutput struct {
  35011. _ struct{} `type:"structure"`
  35012. }
  35013. // String returns the string representation
  35014. func (s DeleteCustomerGatewayOutput) String() string {
  35015. return awsutil.Prettify(s)
  35016. }
  35017. // GoString returns the string representation
  35018. func (s DeleteCustomerGatewayOutput) GoString() string {
  35019. return s.String()
  35020. }
  35021. type DeleteDhcpOptionsInput struct {
  35022. _ struct{} `type:"structure"`
  35023. // The ID of the DHCP options set.
  35024. //
  35025. // DhcpOptionsId is a required field
  35026. DhcpOptionsId *string `type:"string" required:"true"`
  35027. // Checks whether you have the required permissions for the action, without
  35028. // actually making the request, and provides an error response. If you have
  35029. // the required permissions, the error response is DryRunOperation. Otherwise,
  35030. // it is UnauthorizedOperation.
  35031. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35032. }
  35033. // String returns the string representation
  35034. func (s DeleteDhcpOptionsInput) String() string {
  35035. return awsutil.Prettify(s)
  35036. }
  35037. // GoString returns the string representation
  35038. func (s DeleteDhcpOptionsInput) GoString() string {
  35039. return s.String()
  35040. }
  35041. // Validate inspects the fields of the type to determine if they are valid.
  35042. func (s *DeleteDhcpOptionsInput) Validate() error {
  35043. invalidParams := request.ErrInvalidParams{Context: "DeleteDhcpOptionsInput"}
  35044. if s.DhcpOptionsId == nil {
  35045. invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId"))
  35046. }
  35047. if invalidParams.Len() > 0 {
  35048. return invalidParams
  35049. }
  35050. return nil
  35051. }
  35052. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  35053. func (s *DeleteDhcpOptionsInput) SetDhcpOptionsId(v string) *DeleteDhcpOptionsInput {
  35054. s.DhcpOptionsId = &v
  35055. return s
  35056. }
  35057. // SetDryRun sets the DryRun field's value.
  35058. func (s *DeleteDhcpOptionsInput) SetDryRun(v bool) *DeleteDhcpOptionsInput {
  35059. s.DryRun = &v
  35060. return s
  35061. }
  35062. type DeleteDhcpOptionsOutput struct {
  35063. _ struct{} `type:"structure"`
  35064. }
  35065. // String returns the string representation
  35066. func (s DeleteDhcpOptionsOutput) String() string {
  35067. return awsutil.Prettify(s)
  35068. }
  35069. // GoString returns the string representation
  35070. func (s DeleteDhcpOptionsOutput) GoString() string {
  35071. return s.String()
  35072. }
  35073. type DeleteEgressOnlyInternetGatewayInput struct {
  35074. _ struct{} `type:"structure"`
  35075. // Checks whether you have the required permissions for the action, without
  35076. // actually making the request, and provides an error response. If you have
  35077. // the required permissions, the error response is DryRunOperation. Otherwise,
  35078. // it is UnauthorizedOperation.
  35079. DryRun *bool `type:"boolean"`
  35080. // The ID of the egress-only internet gateway.
  35081. //
  35082. // EgressOnlyInternetGatewayId is a required field
  35083. EgressOnlyInternetGatewayId *string `type:"string" required:"true"`
  35084. }
  35085. // String returns the string representation
  35086. func (s DeleteEgressOnlyInternetGatewayInput) String() string {
  35087. return awsutil.Prettify(s)
  35088. }
  35089. // GoString returns the string representation
  35090. func (s DeleteEgressOnlyInternetGatewayInput) GoString() string {
  35091. return s.String()
  35092. }
  35093. // Validate inspects the fields of the type to determine if they are valid.
  35094. func (s *DeleteEgressOnlyInternetGatewayInput) Validate() error {
  35095. invalidParams := request.ErrInvalidParams{Context: "DeleteEgressOnlyInternetGatewayInput"}
  35096. if s.EgressOnlyInternetGatewayId == nil {
  35097. invalidParams.Add(request.NewErrParamRequired("EgressOnlyInternetGatewayId"))
  35098. }
  35099. if invalidParams.Len() > 0 {
  35100. return invalidParams
  35101. }
  35102. return nil
  35103. }
  35104. // SetDryRun sets the DryRun field's value.
  35105. func (s *DeleteEgressOnlyInternetGatewayInput) SetDryRun(v bool) *DeleteEgressOnlyInternetGatewayInput {
  35106. s.DryRun = &v
  35107. return s
  35108. }
  35109. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  35110. func (s *DeleteEgressOnlyInternetGatewayInput) SetEgressOnlyInternetGatewayId(v string) *DeleteEgressOnlyInternetGatewayInput {
  35111. s.EgressOnlyInternetGatewayId = &v
  35112. return s
  35113. }
  35114. type DeleteEgressOnlyInternetGatewayOutput struct {
  35115. _ struct{} `type:"structure"`
  35116. // Returns true if the request succeeds; otherwise, it returns an error.
  35117. ReturnCode *bool `locationName:"returnCode" type:"boolean"`
  35118. }
  35119. // String returns the string representation
  35120. func (s DeleteEgressOnlyInternetGatewayOutput) String() string {
  35121. return awsutil.Prettify(s)
  35122. }
  35123. // GoString returns the string representation
  35124. func (s DeleteEgressOnlyInternetGatewayOutput) GoString() string {
  35125. return s.String()
  35126. }
  35127. // SetReturnCode sets the ReturnCode field's value.
  35128. func (s *DeleteEgressOnlyInternetGatewayOutput) SetReturnCode(v bool) *DeleteEgressOnlyInternetGatewayOutput {
  35129. s.ReturnCode = &v
  35130. return s
  35131. }
  35132. // Describes an EC2 Fleet error.
  35133. type DeleteFleetError struct {
  35134. _ struct{} `type:"structure"`
  35135. // The error code.
  35136. Code *string `locationName:"code" type:"string" enum:"DeleteFleetErrorCode"`
  35137. // The description for the error code.
  35138. Message *string `locationName:"message" type:"string"`
  35139. }
  35140. // String returns the string representation
  35141. func (s DeleteFleetError) String() string {
  35142. return awsutil.Prettify(s)
  35143. }
  35144. // GoString returns the string representation
  35145. func (s DeleteFleetError) GoString() string {
  35146. return s.String()
  35147. }
  35148. // SetCode sets the Code field's value.
  35149. func (s *DeleteFleetError) SetCode(v string) *DeleteFleetError {
  35150. s.Code = &v
  35151. return s
  35152. }
  35153. // SetMessage sets the Message field's value.
  35154. func (s *DeleteFleetError) SetMessage(v string) *DeleteFleetError {
  35155. s.Message = &v
  35156. return s
  35157. }
  35158. // Describes an EC2 Fleet that was not successfully deleted.
  35159. type DeleteFleetErrorItem struct {
  35160. _ struct{} `type:"structure"`
  35161. // The error.
  35162. Error *DeleteFleetError `locationName:"error" type:"structure"`
  35163. // The ID of the EC2 Fleet.
  35164. FleetId *string `locationName:"fleetId" type:"string"`
  35165. }
  35166. // String returns the string representation
  35167. func (s DeleteFleetErrorItem) String() string {
  35168. return awsutil.Prettify(s)
  35169. }
  35170. // GoString returns the string representation
  35171. func (s DeleteFleetErrorItem) GoString() string {
  35172. return s.String()
  35173. }
  35174. // SetError sets the Error field's value.
  35175. func (s *DeleteFleetErrorItem) SetError(v *DeleteFleetError) *DeleteFleetErrorItem {
  35176. s.Error = v
  35177. return s
  35178. }
  35179. // SetFleetId sets the FleetId field's value.
  35180. func (s *DeleteFleetErrorItem) SetFleetId(v string) *DeleteFleetErrorItem {
  35181. s.FleetId = &v
  35182. return s
  35183. }
  35184. // Describes an EC2 Fleet that was successfully deleted.
  35185. type DeleteFleetSuccessItem struct {
  35186. _ struct{} `type:"structure"`
  35187. // The current state of the EC2 Fleet.
  35188. CurrentFleetState *string `locationName:"currentFleetState" type:"string" enum:"FleetStateCode"`
  35189. // The ID of the EC2 Fleet.
  35190. FleetId *string `locationName:"fleetId" type:"string"`
  35191. // The previous state of the EC2 Fleet.
  35192. PreviousFleetState *string `locationName:"previousFleetState" type:"string" enum:"FleetStateCode"`
  35193. }
  35194. // String returns the string representation
  35195. func (s DeleteFleetSuccessItem) String() string {
  35196. return awsutil.Prettify(s)
  35197. }
  35198. // GoString returns the string representation
  35199. func (s DeleteFleetSuccessItem) GoString() string {
  35200. return s.String()
  35201. }
  35202. // SetCurrentFleetState sets the CurrentFleetState field's value.
  35203. func (s *DeleteFleetSuccessItem) SetCurrentFleetState(v string) *DeleteFleetSuccessItem {
  35204. s.CurrentFleetState = &v
  35205. return s
  35206. }
  35207. // SetFleetId sets the FleetId field's value.
  35208. func (s *DeleteFleetSuccessItem) SetFleetId(v string) *DeleteFleetSuccessItem {
  35209. s.FleetId = &v
  35210. return s
  35211. }
  35212. // SetPreviousFleetState sets the PreviousFleetState field's value.
  35213. func (s *DeleteFleetSuccessItem) SetPreviousFleetState(v string) *DeleteFleetSuccessItem {
  35214. s.PreviousFleetState = &v
  35215. return s
  35216. }
  35217. type DeleteFleetsInput struct {
  35218. _ struct{} `type:"structure"`
  35219. // Checks whether you have the required permissions for the action, without
  35220. // actually making the request, and provides an error response. If you have
  35221. // the required permissions, the error response is DryRunOperation. Otherwise,
  35222. // it is UnauthorizedOperation.
  35223. DryRun *bool `type:"boolean"`
  35224. // The IDs of the EC2 Fleets.
  35225. //
  35226. // FleetIds is a required field
  35227. FleetIds []*string `locationName:"FleetId" type:"list" required:"true"`
  35228. // Indicates whether to terminate instances for an EC2 Fleet if it is deleted
  35229. // successfully.
  35230. //
  35231. // TerminateInstances is a required field
  35232. TerminateInstances *bool `type:"boolean" required:"true"`
  35233. }
  35234. // String returns the string representation
  35235. func (s DeleteFleetsInput) String() string {
  35236. return awsutil.Prettify(s)
  35237. }
  35238. // GoString returns the string representation
  35239. func (s DeleteFleetsInput) GoString() string {
  35240. return s.String()
  35241. }
  35242. // Validate inspects the fields of the type to determine if they are valid.
  35243. func (s *DeleteFleetsInput) Validate() error {
  35244. invalidParams := request.ErrInvalidParams{Context: "DeleteFleetsInput"}
  35245. if s.FleetIds == nil {
  35246. invalidParams.Add(request.NewErrParamRequired("FleetIds"))
  35247. }
  35248. if s.TerminateInstances == nil {
  35249. invalidParams.Add(request.NewErrParamRequired("TerminateInstances"))
  35250. }
  35251. if invalidParams.Len() > 0 {
  35252. return invalidParams
  35253. }
  35254. return nil
  35255. }
  35256. // SetDryRun sets the DryRun field's value.
  35257. func (s *DeleteFleetsInput) SetDryRun(v bool) *DeleteFleetsInput {
  35258. s.DryRun = &v
  35259. return s
  35260. }
  35261. // SetFleetIds sets the FleetIds field's value.
  35262. func (s *DeleteFleetsInput) SetFleetIds(v []*string) *DeleteFleetsInput {
  35263. s.FleetIds = v
  35264. return s
  35265. }
  35266. // SetTerminateInstances sets the TerminateInstances field's value.
  35267. func (s *DeleteFleetsInput) SetTerminateInstances(v bool) *DeleteFleetsInput {
  35268. s.TerminateInstances = &v
  35269. return s
  35270. }
  35271. type DeleteFleetsOutput struct {
  35272. _ struct{} `type:"structure"`
  35273. // Information about the EC2 Fleets that are successfully deleted.
  35274. SuccessfulFleetDeletions []*DeleteFleetSuccessItem `locationName:"successfulFleetDeletionSet" locationNameList:"item" type:"list"`
  35275. // Information about the EC2 Fleets that are not successfully deleted.
  35276. UnsuccessfulFleetDeletions []*DeleteFleetErrorItem `locationName:"unsuccessfulFleetDeletionSet" locationNameList:"item" type:"list"`
  35277. }
  35278. // String returns the string representation
  35279. func (s DeleteFleetsOutput) String() string {
  35280. return awsutil.Prettify(s)
  35281. }
  35282. // GoString returns the string representation
  35283. func (s DeleteFleetsOutput) GoString() string {
  35284. return s.String()
  35285. }
  35286. // SetSuccessfulFleetDeletions sets the SuccessfulFleetDeletions field's value.
  35287. func (s *DeleteFleetsOutput) SetSuccessfulFleetDeletions(v []*DeleteFleetSuccessItem) *DeleteFleetsOutput {
  35288. s.SuccessfulFleetDeletions = v
  35289. return s
  35290. }
  35291. // SetUnsuccessfulFleetDeletions sets the UnsuccessfulFleetDeletions field's value.
  35292. func (s *DeleteFleetsOutput) SetUnsuccessfulFleetDeletions(v []*DeleteFleetErrorItem) *DeleteFleetsOutput {
  35293. s.UnsuccessfulFleetDeletions = v
  35294. return s
  35295. }
  35296. type DeleteFlowLogsInput struct {
  35297. _ struct{} `type:"structure"`
  35298. // Checks whether you have the required permissions for the action, without
  35299. // actually making the request, and provides an error response. If you have
  35300. // the required permissions, the error response is DryRunOperation. Otherwise,
  35301. // it is UnauthorizedOperation.
  35302. DryRun *bool `type:"boolean"`
  35303. // One or more flow log IDs.
  35304. //
  35305. // FlowLogIds is a required field
  35306. FlowLogIds []*string `locationName:"FlowLogId" locationNameList:"item" type:"list" required:"true"`
  35307. }
  35308. // String returns the string representation
  35309. func (s DeleteFlowLogsInput) String() string {
  35310. return awsutil.Prettify(s)
  35311. }
  35312. // GoString returns the string representation
  35313. func (s DeleteFlowLogsInput) GoString() string {
  35314. return s.String()
  35315. }
  35316. // Validate inspects the fields of the type to determine if they are valid.
  35317. func (s *DeleteFlowLogsInput) Validate() error {
  35318. invalidParams := request.ErrInvalidParams{Context: "DeleteFlowLogsInput"}
  35319. if s.FlowLogIds == nil {
  35320. invalidParams.Add(request.NewErrParamRequired("FlowLogIds"))
  35321. }
  35322. if invalidParams.Len() > 0 {
  35323. return invalidParams
  35324. }
  35325. return nil
  35326. }
  35327. // SetDryRun sets the DryRun field's value.
  35328. func (s *DeleteFlowLogsInput) SetDryRun(v bool) *DeleteFlowLogsInput {
  35329. s.DryRun = &v
  35330. return s
  35331. }
  35332. // SetFlowLogIds sets the FlowLogIds field's value.
  35333. func (s *DeleteFlowLogsInput) SetFlowLogIds(v []*string) *DeleteFlowLogsInput {
  35334. s.FlowLogIds = v
  35335. return s
  35336. }
  35337. type DeleteFlowLogsOutput struct {
  35338. _ struct{} `type:"structure"`
  35339. // Information about the flow logs that could not be deleted successfully.
  35340. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  35341. }
  35342. // String returns the string representation
  35343. func (s DeleteFlowLogsOutput) String() string {
  35344. return awsutil.Prettify(s)
  35345. }
  35346. // GoString returns the string representation
  35347. func (s DeleteFlowLogsOutput) GoString() string {
  35348. return s.String()
  35349. }
  35350. // SetUnsuccessful sets the Unsuccessful field's value.
  35351. func (s *DeleteFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteFlowLogsOutput {
  35352. s.Unsuccessful = v
  35353. return s
  35354. }
  35355. type DeleteFpgaImageInput struct {
  35356. _ struct{} `type:"structure"`
  35357. // Checks whether you have the required permissions for the action, without
  35358. // actually making the request, and provides an error response. If you have
  35359. // the required permissions, the error response is DryRunOperation. Otherwise,
  35360. // it is UnauthorizedOperation.
  35361. DryRun *bool `type:"boolean"`
  35362. // The ID of the AFI.
  35363. //
  35364. // FpgaImageId is a required field
  35365. FpgaImageId *string `type:"string" required:"true"`
  35366. }
  35367. // String returns the string representation
  35368. func (s DeleteFpgaImageInput) String() string {
  35369. return awsutil.Prettify(s)
  35370. }
  35371. // GoString returns the string representation
  35372. func (s DeleteFpgaImageInput) GoString() string {
  35373. return s.String()
  35374. }
  35375. // Validate inspects the fields of the type to determine if they are valid.
  35376. func (s *DeleteFpgaImageInput) Validate() error {
  35377. invalidParams := request.ErrInvalidParams{Context: "DeleteFpgaImageInput"}
  35378. if s.FpgaImageId == nil {
  35379. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  35380. }
  35381. if invalidParams.Len() > 0 {
  35382. return invalidParams
  35383. }
  35384. return nil
  35385. }
  35386. // SetDryRun sets the DryRun field's value.
  35387. func (s *DeleteFpgaImageInput) SetDryRun(v bool) *DeleteFpgaImageInput {
  35388. s.DryRun = &v
  35389. return s
  35390. }
  35391. // SetFpgaImageId sets the FpgaImageId field's value.
  35392. func (s *DeleteFpgaImageInput) SetFpgaImageId(v string) *DeleteFpgaImageInput {
  35393. s.FpgaImageId = &v
  35394. return s
  35395. }
  35396. type DeleteFpgaImageOutput struct {
  35397. _ struct{} `type:"structure"`
  35398. // Is true if the request succeeds, and an error otherwise.
  35399. Return *bool `locationName:"return" type:"boolean"`
  35400. }
  35401. // String returns the string representation
  35402. func (s DeleteFpgaImageOutput) String() string {
  35403. return awsutil.Prettify(s)
  35404. }
  35405. // GoString returns the string representation
  35406. func (s DeleteFpgaImageOutput) GoString() string {
  35407. return s.String()
  35408. }
  35409. // SetReturn sets the Return field's value.
  35410. func (s *DeleteFpgaImageOutput) SetReturn(v bool) *DeleteFpgaImageOutput {
  35411. s.Return = &v
  35412. return s
  35413. }
  35414. type DeleteInternetGatewayInput struct {
  35415. _ struct{} `type:"structure"`
  35416. // Checks whether you have the required permissions for the action, without
  35417. // actually making the request, and provides an error response. If you have
  35418. // the required permissions, the error response is DryRunOperation. Otherwise,
  35419. // it is UnauthorizedOperation.
  35420. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35421. // The ID of the internet gateway.
  35422. //
  35423. // InternetGatewayId is a required field
  35424. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  35425. }
  35426. // String returns the string representation
  35427. func (s DeleteInternetGatewayInput) String() string {
  35428. return awsutil.Prettify(s)
  35429. }
  35430. // GoString returns the string representation
  35431. func (s DeleteInternetGatewayInput) GoString() string {
  35432. return s.String()
  35433. }
  35434. // Validate inspects the fields of the type to determine if they are valid.
  35435. func (s *DeleteInternetGatewayInput) Validate() error {
  35436. invalidParams := request.ErrInvalidParams{Context: "DeleteInternetGatewayInput"}
  35437. if s.InternetGatewayId == nil {
  35438. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  35439. }
  35440. if invalidParams.Len() > 0 {
  35441. return invalidParams
  35442. }
  35443. return nil
  35444. }
  35445. // SetDryRun sets the DryRun field's value.
  35446. func (s *DeleteInternetGatewayInput) SetDryRun(v bool) *DeleteInternetGatewayInput {
  35447. s.DryRun = &v
  35448. return s
  35449. }
  35450. // SetInternetGatewayId sets the InternetGatewayId field's value.
  35451. func (s *DeleteInternetGatewayInput) SetInternetGatewayId(v string) *DeleteInternetGatewayInput {
  35452. s.InternetGatewayId = &v
  35453. return s
  35454. }
  35455. type DeleteInternetGatewayOutput struct {
  35456. _ struct{} `type:"structure"`
  35457. }
  35458. // String returns the string representation
  35459. func (s DeleteInternetGatewayOutput) String() string {
  35460. return awsutil.Prettify(s)
  35461. }
  35462. // GoString returns the string representation
  35463. func (s DeleteInternetGatewayOutput) GoString() string {
  35464. return s.String()
  35465. }
  35466. type DeleteKeyPairInput struct {
  35467. _ struct{} `type:"structure"`
  35468. // Checks whether you have the required permissions for the action, without
  35469. // actually making the request, and provides an error response. If you have
  35470. // the required permissions, the error response is DryRunOperation. Otherwise,
  35471. // it is UnauthorizedOperation.
  35472. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35473. // The name of the key pair.
  35474. //
  35475. // KeyName is a required field
  35476. KeyName *string `type:"string" required:"true"`
  35477. }
  35478. // String returns the string representation
  35479. func (s DeleteKeyPairInput) String() string {
  35480. return awsutil.Prettify(s)
  35481. }
  35482. // GoString returns the string representation
  35483. func (s DeleteKeyPairInput) GoString() string {
  35484. return s.String()
  35485. }
  35486. // Validate inspects the fields of the type to determine if they are valid.
  35487. func (s *DeleteKeyPairInput) Validate() error {
  35488. invalidParams := request.ErrInvalidParams{Context: "DeleteKeyPairInput"}
  35489. if s.KeyName == nil {
  35490. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  35491. }
  35492. if invalidParams.Len() > 0 {
  35493. return invalidParams
  35494. }
  35495. return nil
  35496. }
  35497. // SetDryRun sets the DryRun field's value.
  35498. func (s *DeleteKeyPairInput) SetDryRun(v bool) *DeleteKeyPairInput {
  35499. s.DryRun = &v
  35500. return s
  35501. }
  35502. // SetKeyName sets the KeyName field's value.
  35503. func (s *DeleteKeyPairInput) SetKeyName(v string) *DeleteKeyPairInput {
  35504. s.KeyName = &v
  35505. return s
  35506. }
  35507. type DeleteKeyPairOutput struct {
  35508. _ struct{} `type:"structure"`
  35509. }
  35510. // String returns the string representation
  35511. func (s DeleteKeyPairOutput) String() string {
  35512. return awsutil.Prettify(s)
  35513. }
  35514. // GoString returns the string representation
  35515. func (s DeleteKeyPairOutput) GoString() string {
  35516. return s.String()
  35517. }
  35518. type DeleteLaunchTemplateInput struct {
  35519. _ struct{} `type:"structure"`
  35520. // Checks whether you have the required permissions for the action, without
  35521. // actually making the request, and provides an error response. If you have
  35522. // the required permissions, the error response is DryRunOperation. Otherwise,
  35523. // it is UnauthorizedOperation.
  35524. DryRun *bool `type:"boolean"`
  35525. // The ID of the launch template. You must specify either the launch template
  35526. // ID or launch template name in the request.
  35527. LaunchTemplateId *string `type:"string"`
  35528. // The name of the launch template. You must specify either the launch template
  35529. // ID or launch template name in the request.
  35530. LaunchTemplateName *string `min:"3" type:"string"`
  35531. }
  35532. // String returns the string representation
  35533. func (s DeleteLaunchTemplateInput) String() string {
  35534. return awsutil.Prettify(s)
  35535. }
  35536. // GoString returns the string representation
  35537. func (s DeleteLaunchTemplateInput) GoString() string {
  35538. return s.String()
  35539. }
  35540. // Validate inspects the fields of the type to determine if they are valid.
  35541. func (s *DeleteLaunchTemplateInput) Validate() error {
  35542. invalidParams := request.ErrInvalidParams{Context: "DeleteLaunchTemplateInput"}
  35543. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  35544. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  35545. }
  35546. if invalidParams.Len() > 0 {
  35547. return invalidParams
  35548. }
  35549. return nil
  35550. }
  35551. // SetDryRun sets the DryRun field's value.
  35552. func (s *DeleteLaunchTemplateInput) SetDryRun(v bool) *DeleteLaunchTemplateInput {
  35553. s.DryRun = &v
  35554. return s
  35555. }
  35556. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  35557. func (s *DeleteLaunchTemplateInput) SetLaunchTemplateId(v string) *DeleteLaunchTemplateInput {
  35558. s.LaunchTemplateId = &v
  35559. return s
  35560. }
  35561. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  35562. func (s *DeleteLaunchTemplateInput) SetLaunchTemplateName(v string) *DeleteLaunchTemplateInput {
  35563. s.LaunchTemplateName = &v
  35564. return s
  35565. }
  35566. type DeleteLaunchTemplateOutput struct {
  35567. _ struct{} `type:"structure"`
  35568. // Information about the launch template.
  35569. LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
  35570. }
  35571. // String returns the string representation
  35572. func (s DeleteLaunchTemplateOutput) String() string {
  35573. return awsutil.Prettify(s)
  35574. }
  35575. // GoString returns the string representation
  35576. func (s DeleteLaunchTemplateOutput) GoString() string {
  35577. return s.String()
  35578. }
  35579. // SetLaunchTemplate sets the LaunchTemplate field's value.
  35580. func (s *DeleteLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *DeleteLaunchTemplateOutput {
  35581. s.LaunchTemplate = v
  35582. return s
  35583. }
  35584. type DeleteLaunchTemplateVersionsInput struct {
  35585. _ struct{} `type:"structure"`
  35586. // Checks whether you have the required permissions for the action, without
  35587. // actually making the request, and provides an error response. If you have
  35588. // the required permissions, the error response is DryRunOperation. Otherwise,
  35589. // it is UnauthorizedOperation.
  35590. DryRun *bool `type:"boolean"`
  35591. // The ID of the launch template. You must specify either the launch template
  35592. // ID or launch template name in the request.
  35593. LaunchTemplateId *string `type:"string"`
  35594. // The name of the launch template. You must specify either the launch template
  35595. // ID or launch template name in the request.
  35596. LaunchTemplateName *string `min:"3" type:"string"`
  35597. // The version numbers of one or more launch template versions to delete.
  35598. //
  35599. // Versions is a required field
  35600. Versions []*string `locationName:"LaunchTemplateVersion" locationNameList:"item" type:"list" required:"true"`
  35601. }
  35602. // String returns the string representation
  35603. func (s DeleteLaunchTemplateVersionsInput) String() string {
  35604. return awsutil.Prettify(s)
  35605. }
  35606. // GoString returns the string representation
  35607. func (s DeleteLaunchTemplateVersionsInput) GoString() string {
  35608. return s.String()
  35609. }
  35610. // Validate inspects the fields of the type to determine if they are valid.
  35611. func (s *DeleteLaunchTemplateVersionsInput) Validate() error {
  35612. invalidParams := request.ErrInvalidParams{Context: "DeleteLaunchTemplateVersionsInput"}
  35613. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  35614. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  35615. }
  35616. if s.Versions == nil {
  35617. invalidParams.Add(request.NewErrParamRequired("Versions"))
  35618. }
  35619. if invalidParams.Len() > 0 {
  35620. return invalidParams
  35621. }
  35622. return nil
  35623. }
  35624. // SetDryRun sets the DryRun field's value.
  35625. func (s *DeleteLaunchTemplateVersionsInput) SetDryRun(v bool) *DeleteLaunchTemplateVersionsInput {
  35626. s.DryRun = &v
  35627. return s
  35628. }
  35629. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  35630. func (s *DeleteLaunchTemplateVersionsInput) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsInput {
  35631. s.LaunchTemplateId = &v
  35632. return s
  35633. }
  35634. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  35635. func (s *DeleteLaunchTemplateVersionsInput) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsInput {
  35636. s.LaunchTemplateName = &v
  35637. return s
  35638. }
  35639. // SetVersions sets the Versions field's value.
  35640. func (s *DeleteLaunchTemplateVersionsInput) SetVersions(v []*string) *DeleteLaunchTemplateVersionsInput {
  35641. s.Versions = v
  35642. return s
  35643. }
  35644. type DeleteLaunchTemplateVersionsOutput struct {
  35645. _ struct{} `type:"structure"`
  35646. // Information about the launch template versions that were successfully deleted.
  35647. SuccessfullyDeletedLaunchTemplateVersions []*DeleteLaunchTemplateVersionsResponseSuccessItem `locationName:"successfullyDeletedLaunchTemplateVersionSet" locationNameList:"item" type:"list"`
  35648. // Information about the launch template versions that could not be deleted.
  35649. UnsuccessfullyDeletedLaunchTemplateVersions []*DeleteLaunchTemplateVersionsResponseErrorItem `locationName:"unsuccessfullyDeletedLaunchTemplateVersionSet" locationNameList:"item" type:"list"`
  35650. }
  35651. // String returns the string representation
  35652. func (s DeleteLaunchTemplateVersionsOutput) String() string {
  35653. return awsutil.Prettify(s)
  35654. }
  35655. // GoString returns the string representation
  35656. func (s DeleteLaunchTemplateVersionsOutput) GoString() string {
  35657. return s.String()
  35658. }
  35659. // SetSuccessfullyDeletedLaunchTemplateVersions sets the SuccessfullyDeletedLaunchTemplateVersions field's value.
  35660. func (s *DeleteLaunchTemplateVersionsOutput) SetSuccessfullyDeletedLaunchTemplateVersions(v []*DeleteLaunchTemplateVersionsResponseSuccessItem) *DeleteLaunchTemplateVersionsOutput {
  35661. s.SuccessfullyDeletedLaunchTemplateVersions = v
  35662. return s
  35663. }
  35664. // SetUnsuccessfullyDeletedLaunchTemplateVersions sets the UnsuccessfullyDeletedLaunchTemplateVersions field's value.
  35665. func (s *DeleteLaunchTemplateVersionsOutput) SetUnsuccessfullyDeletedLaunchTemplateVersions(v []*DeleteLaunchTemplateVersionsResponseErrorItem) *DeleteLaunchTemplateVersionsOutput {
  35666. s.UnsuccessfullyDeletedLaunchTemplateVersions = v
  35667. return s
  35668. }
  35669. // Describes a launch template version that could not be deleted.
  35670. type DeleteLaunchTemplateVersionsResponseErrorItem struct {
  35671. _ struct{} `type:"structure"`
  35672. // The ID of the launch template.
  35673. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  35674. // The name of the launch template.
  35675. LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"`
  35676. // Information about the error.
  35677. ResponseError *ResponseError `locationName:"responseError" type:"structure"`
  35678. // The version number of the launch template.
  35679. VersionNumber *int64 `locationName:"versionNumber" type:"long"`
  35680. }
  35681. // String returns the string representation
  35682. func (s DeleteLaunchTemplateVersionsResponseErrorItem) String() string {
  35683. return awsutil.Prettify(s)
  35684. }
  35685. // GoString returns the string representation
  35686. func (s DeleteLaunchTemplateVersionsResponseErrorItem) GoString() string {
  35687. return s.String()
  35688. }
  35689. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  35690. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsResponseErrorItem {
  35691. s.LaunchTemplateId = &v
  35692. return s
  35693. }
  35694. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  35695. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsResponseErrorItem {
  35696. s.LaunchTemplateName = &v
  35697. return s
  35698. }
  35699. // SetResponseError sets the ResponseError field's value.
  35700. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetResponseError(v *ResponseError) *DeleteLaunchTemplateVersionsResponseErrorItem {
  35701. s.ResponseError = v
  35702. return s
  35703. }
  35704. // SetVersionNumber sets the VersionNumber field's value.
  35705. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetVersionNumber(v int64) *DeleteLaunchTemplateVersionsResponseErrorItem {
  35706. s.VersionNumber = &v
  35707. return s
  35708. }
  35709. // Describes a launch template version that was successfully deleted.
  35710. type DeleteLaunchTemplateVersionsResponseSuccessItem struct {
  35711. _ struct{} `type:"structure"`
  35712. // The ID of the launch template.
  35713. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  35714. // The name of the launch template.
  35715. LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"`
  35716. // The version number of the launch template.
  35717. VersionNumber *int64 `locationName:"versionNumber" type:"long"`
  35718. }
  35719. // String returns the string representation
  35720. func (s DeleteLaunchTemplateVersionsResponseSuccessItem) String() string {
  35721. return awsutil.Prettify(s)
  35722. }
  35723. // GoString returns the string representation
  35724. func (s DeleteLaunchTemplateVersionsResponseSuccessItem) GoString() string {
  35725. return s.String()
  35726. }
  35727. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  35728. func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsResponseSuccessItem {
  35729. s.LaunchTemplateId = &v
  35730. return s
  35731. }
  35732. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  35733. func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsResponseSuccessItem {
  35734. s.LaunchTemplateName = &v
  35735. return s
  35736. }
  35737. // SetVersionNumber sets the VersionNumber field's value.
  35738. func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetVersionNumber(v int64) *DeleteLaunchTemplateVersionsResponseSuccessItem {
  35739. s.VersionNumber = &v
  35740. return s
  35741. }
  35742. type DeleteNatGatewayInput struct {
  35743. _ struct{} `type:"structure"`
  35744. // The ID of the NAT gateway.
  35745. //
  35746. // NatGatewayId is a required field
  35747. NatGatewayId *string `type:"string" required:"true"`
  35748. }
  35749. // String returns the string representation
  35750. func (s DeleteNatGatewayInput) String() string {
  35751. return awsutil.Prettify(s)
  35752. }
  35753. // GoString returns the string representation
  35754. func (s DeleteNatGatewayInput) GoString() string {
  35755. return s.String()
  35756. }
  35757. // Validate inspects the fields of the type to determine if they are valid.
  35758. func (s *DeleteNatGatewayInput) Validate() error {
  35759. invalidParams := request.ErrInvalidParams{Context: "DeleteNatGatewayInput"}
  35760. if s.NatGatewayId == nil {
  35761. invalidParams.Add(request.NewErrParamRequired("NatGatewayId"))
  35762. }
  35763. if invalidParams.Len() > 0 {
  35764. return invalidParams
  35765. }
  35766. return nil
  35767. }
  35768. // SetNatGatewayId sets the NatGatewayId field's value.
  35769. func (s *DeleteNatGatewayInput) SetNatGatewayId(v string) *DeleteNatGatewayInput {
  35770. s.NatGatewayId = &v
  35771. return s
  35772. }
  35773. type DeleteNatGatewayOutput struct {
  35774. _ struct{} `type:"structure"`
  35775. // The ID of the NAT gateway.
  35776. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  35777. }
  35778. // String returns the string representation
  35779. func (s DeleteNatGatewayOutput) String() string {
  35780. return awsutil.Prettify(s)
  35781. }
  35782. // GoString returns the string representation
  35783. func (s DeleteNatGatewayOutput) GoString() string {
  35784. return s.String()
  35785. }
  35786. // SetNatGatewayId sets the NatGatewayId field's value.
  35787. func (s *DeleteNatGatewayOutput) SetNatGatewayId(v string) *DeleteNatGatewayOutput {
  35788. s.NatGatewayId = &v
  35789. return s
  35790. }
  35791. type DeleteNetworkAclEntryInput struct {
  35792. _ struct{} `type:"structure"`
  35793. // Checks whether you have the required permissions for the action, without
  35794. // actually making the request, and provides an error response. If you have
  35795. // the required permissions, the error response is DryRunOperation. Otherwise,
  35796. // it is UnauthorizedOperation.
  35797. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35798. // Indicates whether the rule is an egress rule.
  35799. //
  35800. // Egress is a required field
  35801. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  35802. // The ID of the network ACL.
  35803. //
  35804. // NetworkAclId is a required field
  35805. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  35806. // The rule number of the entry to delete.
  35807. //
  35808. // RuleNumber is a required field
  35809. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  35810. }
  35811. // String returns the string representation
  35812. func (s DeleteNetworkAclEntryInput) String() string {
  35813. return awsutil.Prettify(s)
  35814. }
  35815. // GoString returns the string representation
  35816. func (s DeleteNetworkAclEntryInput) GoString() string {
  35817. return s.String()
  35818. }
  35819. // Validate inspects the fields of the type to determine if they are valid.
  35820. func (s *DeleteNetworkAclEntryInput) Validate() error {
  35821. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclEntryInput"}
  35822. if s.Egress == nil {
  35823. invalidParams.Add(request.NewErrParamRequired("Egress"))
  35824. }
  35825. if s.NetworkAclId == nil {
  35826. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  35827. }
  35828. if s.RuleNumber == nil {
  35829. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  35830. }
  35831. if invalidParams.Len() > 0 {
  35832. return invalidParams
  35833. }
  35834. return nil
  35835. }
  35836. // SetDryRun sets the DryRun field's value.
  35837. func (s *DeleteNetworkAclEntryInput) SetDryRun(v bool) *DeleteNetworkAclEntryInput {
  35838. s.DryRun = &v
  35839. return s
  35840. }
  35841. // SetEgress sets the Egress field's value.
  35842. func (s *DeleteNetworkAclEntryInput) SetEgress(v bool) *DeleteNetworkAclEntryInput {
  35843. s.Egress = &v
  35844. return s
  35845. }
  35846. // SetNetworkAclId sets the NetworkAclId field's value.
  35847. func (s *DeleteNetworkAclEntryInput) SetNetworkAclId(v string) *DeleteNetworkAclEntryInput {
  35848. s.NetworkAclId = &v
  35849. return s
  35850. }
  35851. // SetRuleNumber sets the RuleNumber field's value.
  35852. func (s *DeleteNetworkAclEntryInput) SetRuleNumber(v int64) *DeleteNetworkAclEntryInput {
  35853. s.RuleNumber = &v
  35854. return s
  35855. }
  35856. type DeleteNetworkAclEntryOutput struct {
  35857. _ struct{} `type:"structure"`
  35858. }
  35859. // String returns the string representation
  35860. func (s DeleteNetworkAclEntryOutput) String() string {
  35861. return awsutil.Prettify(s)
  35862. }
  35863. // GoString returns the string representation
  35864. func (s DeleteNetworkAclEntryOutput) GoString() string {
  35865. return s.String()
  35866. }
  35867. type DeleteNetworkAclInput struct {
  35868. _ struct{} `type:"structure"`
  35869. // Checks whether you have the required permissions for the action, without
  35870. // actually making the request, and provides an error response. If you have
  35871. // the required permissions, the error response is DryRunOperation. Otherwise,
  35872. // it is UnauthorizedOperation.
  35873. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35874. // The ID of the network ACL.
  35875. //
  35876. // NetworkAclId is a required field
  35877. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  35878. }
  35879. // String returns the string representation
  35880. func (s DeleteNetworkAclInput) String() string {
  35881. return awsutil.Prettify(s)
  35882. }
  35883. // GoString returns the string representation
  35884. func (s DeleteNetworkAclInput) GoString() string {
  35885. return s.String()
  35886. }
  35887. // Validate inspects the fields of the type to determine if they are valid.
  35888. func (s *DeleteNetworkAclInput) Validate() error {
  35889. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclInput"}
  35890. if s.NetworkAclId == nil {
  35891. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  35892. }
  35893. if invalidParams.Len() > 0 {
  35894. return invalidParams
  35895. }
  35896. return nil
  35897. }
  35898. // SetDryRun sets the DryRun field's value.
  35899. func (s *DeleteNetworkAclInput) SetDryRun(v bool) *DeleteNetworkAclInput {
  35900. s.DryRun = &v
  35901. return s
  35902. }
  35903. // SetNetworkAclId sets the NetworkAclId field's value.
  35904. func (s *DeleteNetworkAclInput) SetNetworkAclId(v string) *DeleteNetworkAclInput {
  35905. s.NetworkAclId = &v
  35906. return s
  35907. }
  35908. type DeleteNetworkAclOutput struct {
  35909. _ struct{} `type:"structure"`
  35910. }
  35911. // String returns the string representation
  35912. func (s DeleteNetworkAclOutput) String() string {
  35913. return awsutil.Prettify(s)
  35914. }
  35915. // GoString returns the string representation
  35916. func (s DeleteNetworkAclOutput) GoString() string {
  35917. return s.String()
  35918. }
  35919. // Contains the parameters for DeleteNetworkInterface.
  35920. type DeleteNetworkInterfaceInput struct {
  35921. _ struct{} `type:"structure"`
  35922. // Checks whether you have the required permissions for the action, without
  35923. // actually making the request, and provides an error response. If you have
  35924. // the required permissions, the error response is DryRunOperation. Otherwise,
  35925. // it is UnauthorizedOperation.
  35926. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35927. // The ID of the network interface.
  35928. //
  35929. // NetworkInterfaceId is a required field
  35930. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  35931. }
  35932. // String returns the string representation
  35933. func (s DeleteNetworkInterfaceInput) String() string {
  35934. return awsutil.Prettify(s)
  35935. }
  35936. // GoString returns the string representation
  35937. func (s DeleteNetworkInterfaceInput) GoString() string {
  35938. return s.String()
  35939. }
  35940. // Validate inspects the fields of the type to determine if they are valid.
  35941. func (s *DeleteNetworkInterfaceInput) Validate() error {
  35942. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkInterfaceInput"}
  35943. if s.NetworkInterfaceId == nil {
  35944. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  35945. }
  35946. if invalidParams.Len() > 0 {
  35947. return invalidParams
  35948. }
  35949. return nil
  35950. }
  35951. // SetDryRun sets the DryRun field's value.
  35952. func (s *DeleteNetworkInterfaceInput) SetDryRun(v bool) *DeleteNetworkInterfaceInput {
  35953. s.DryRun = &v
  35954. return s
  35955. }
  35956. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  35957. func (s *DeleteNetworkInterfaceInput) SetNetworkInterfaceId(v string) *DeleteNetworkInterfaceInput {
  35958. s.NetworkInterfaceId = &v
  35959. return s
  35960. }
  35961. type DeleteNetworkInterfaceOutput struct {
  35962. _ struct{} `type:"structure"`
  35963. }
  35964. // String returns the string representation
  35965. func (s DeleteNetworkInterfaceOutput) String() string {
  35966. return awsutil.Prettify(s)
  35967. }
  35968. // GoString returns the string representation
  35969. func (s DeleteNetworkInterfaceOutput) GoString() string {
  35970. return s.String()
  35971. }
  35972. // Contains the parameters for DeleteNetworkInterfacePermission.
  35973. type DeleteNetworkInterfacePermissionInput struct {
  35974. _ struct{} `type:"structure"`
  35975. // Checks whether you have the required permissions for the action, without
  35976. // actually making the request, and provides an error response. If you have
  35977. // the required permissions, the error response is DryRunOperation. Otherwise,
  35978. // it is UnauthorizedOperation.
  35979. DryRun *bool `type:"boolean"`
  35980. // Specify true to remove the permission even if the network interface is attached
  35981. // to an instance.
  35982. Force *bool `type:"boolean"`
  35983. // The ID of the network interface permission.
  35984. //
  35985. // NetworkInterfacePermissionId is a required field
  35986. NetworkInterfacePermissionId *string `type:"string" required:"true"`
  35987. }
  35988. // String returns the string representation
  35989. func (s DeleteNetworkInterfacePermissionInput) String() string {
  35990. return awsutil.Prettify(s)
  35991. }
  35992. // GoString returns the string representation
  35993. func (s DeleteNetworkInterfacePermissionInput) GoString() string {
  35994. return s.String()
  35995. }
  35996. // Validate inspects the fields of the type to determine if they are valid.
  35997. func (s *DeleteNetworkInterfacePermissionInput) Validate() error {
  35998. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkInterfacePermissionInput"}
  35999. if s.NetworkInterfacePermissionId == nil {
  36000. invalidParams.Add(request.NewErrParamRequired("NetworkInterfacePermissionId"))
  36001. }
  36002. if invalidParams.Len() > 0 {
  36003. return invalidParams
  36004. }
  36005. return nil
  36006. }
  36007. // SetDryRun sets the DryRun field's value.
  36008. func (s *DeleteNetworkInterfacePermissionInput) SetDryRun(v bool) *DeleteNetworkInterfacePermissionInput {
  36009. s.DryRun = &v
  36010. return s
  36011. }
  36012. // SetForce sets the Force field's value.
  36013. func (s *DeleteNetworkInterfacePermissionInput) SetForce(v bool) *DeleteNetworkInterfacePermissionInput {
  36014. s.Force = &v
  36015. return s
  36016. }
  36017. // SetNetworkInterfacePermissionId sets the NetworkInterfacePermissionId field's value.
  36018. func (s *DeleteNetworkInterfacePermissionInput) SetNetworkInterfacePermissionId(v string) *DeleteNetworkInterfacePermissionInput {
  36019. s.NetworkInterfacePermissionId = &v
  36020. return s
  36021. }
  36022. // Contains the output for DeleteNetworkInterfacePermission.
  36023. type DeleteNetworkInterfacePermissionOutput struct {
  36024. _ struct{} `type:"structure"`
  36025. // Returns true if the request succeeds, otherwise returns an error.
  36026. Return *bool `locationName:"return" type:"boolean"`
  36027. }
  36028. // String returns the string representation
  36029. func (s DeleteNetworkInterfacePermissionOutput) String() string {
  36030. return awsutil.Prettify(s)
  36031. }
  36032. // GoString returns the string representation
  36033. func (s DeleteNetworkInterfacePermissionOutput) GoString() string {
  36034. return s.String()
  36035. }
  36036. // SetReturn sets the Return field's value.
  36037. func (s *DeleteNetworkInterfacePermissionOutput) SetReturn(v bool) *DeleteNetworkInterfacePermissionOutput {
  36038. s.Return = &v
  36039. return s
  36040. }
  36041. type DeletePlacementGroupInput struct {
  36042. _ struct{} `type:"structure"`
  36043. // Checks whether you have the required permissions for the action, without
  36044. // actually making the request, and provides an error response. If you have
  36045. // the required permissions, the error response is DryRunOperation. Otherwise,
  36046. // it is UnauthorizedOperation.
  36047. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36048. // The name of the placement group.
  36049. //
  36050. // GroupName is a required field
  36051. GroupName *string `locationName:"groupName" type:"string" required:"true"`
  36052. }
  36053. // String returns the string representation
  36054. func (s DeletePlacementGroupInput) String() string {
  36055. return awsutil.Prettify(s)
  36056. }
  36057. // GoString returns the string representation
  36058. func (s DeletePlacementGroupInput) GoString() string {
  36059. return s.String()
  36060. }
  36061. // Validate inspects the fields of the type to determine if they are valid.
  36062. func (s *DeletePlacementGroupInput) Validate() error {
  36063. invalidParams := request.ErrInvalidParams{Context: "DeletePlacementGroupInput"}
  36064. if s.GroupName == nil {
  36065. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  36066. }
  36067. if invalidParams.Len() > 0 {
  36068. return invalidParams
  36069. }
  36070. return nil
  36071. }
  36072. // SetDryRun sets the DryRun field's value.
  36073. func (s *DeletePlacementGroupInput) SetDryRun(v bool) *DeletePlacementGroupInput {
  36074. s.DryRun = &v
  36075. return s
  36076. }
  36077. // SetGroupName sets the GroupName field's value.
  36078. func (s *DeletePlacementGroupInput) SetGroupName(v string) *DeletePlacementGroupInput {
  36079. s.GroupName = &v
  36080. return s
  36081. }
  36082. type DeletePlacementGroupOutput struct {
  36083. _ struct{} `type:"structure"`
  36084. }
  36085. // String returns the string representation
  36086. func (s DeletePlacementGroupOutput) String() string {
  36087. return awsutil.Prettify(s)
  36088. }
  36089. // GoString returns the string representation
  36090. func (s DeletePlacementGroupOutput) GoString() string {
  36091. return s.String()
  36092. }
  36093. type DeleteRouteInput struct {
  36094. _ struct{} `type:"structure"`
  36095. // The IPv4 CIDR range for the route. The value you specify must match the CIDR
  36096. // for the route exactly.
  36097. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  36098. // The IPv6 CIDR range for the route. The value you specify must match the CIDR
  36099. // for the route exactly.
  36100. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  36101. // Checks whether you have the required permissions for the action, without
  36102. // actually making the request, and provides an error response. If you have
  36103. // the required permissions, the error response is DryRunOperation. Otherwise,
  36104. // it is UnauthorizedOperation.
  36105. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36106. // The ID of the route table.
  36107. //
  36108. // RouteTableId is a required field
  36109. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  36110. }
  36111. // String returns the string representation
  36112. func (s DeleteRouteInput) String() string {
  36113. return awsutil.Prettify(s)
  36114. }
  36115. // GoString returns the string representation
  36116. func (s DeleteRouteInput) GoString() string {
  36117. return s.String()
  36118. }
  36119. // Validate inspects the fields of the type to determine if they are valid.
  36120. func (s *DeleteRouteInput) Validate() error {
  36121. invalidParams := request.ErrInvalidParams{Context: "DeleteRouteInput"}
  36122. if s.RouteTableId == nil {
  36123. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  36124. }
  36125. if invalidParams.Len() > 0 {
  36126. return invalidParams
  36127. }
  36128. return nil
  36129. }
  36130. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  36131. func (s *DeleteRouteInput) SetDestinationCidrBlock(v string) *DeleteRouteInput {
  36132. s.DestinationCidrBlock = &v
  36133. return s
  36134. }
  36135. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  36136. func (s *DeleteRouteInput) SetDestinationIpv6CidrBlock(v string) *DeleteRouteInput {
  36137. s.DestinationIpv6CidrBlock = &v
  36138. return s
  36139. }
  36140. // SetDryRun sets the DryRun field's value.
  36141. func (s *DeleteRouteInput) SetDryRun(v bool) *DeleteRouteInput {
  36142. s.DryRun = &v
  36143. return s
  36144. }
  36145. // SetRouteTableId sets the RouteTableId field's value.
  36146. func (s *DeleteRouteInput) SetRouteTableId(v string) *DeleteRouteInput {
  36147. s.RouteTableId = &v
  36148. return s
  36149. }
  36150. type DeleteRouteOutput struct {
  36151. _ struct{} `type:"structure"`
  36152. }
  36153. // String returns the string representation
  36154. func (s DeleteRouteOutput) String() string {
  36155. return awsutil.Prettify(s)
  36156. }
  36157. // GoString returns the string representation
  36158. func (s DeleteRouteOutput) GoString() string {
  36159. return s.String()
  36160. }
  36161. type DeleteRouteTableInput struct {
  36162. _ struct{} `type:"structure"`
  36163. // Checks whether you have the required permissions for the action, without
  36164. // actually making the request, and provides an error response. If you have
  36165. // the required permissions, the error response is DryRunOperation. Otherwise,
  36166. // it is UnauthorizedOperation.
  36167. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36168. // The ID of the route table.
  36169. //
  36170. // RouteTableId is a required field
  36171. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  36172. }
  36173. // String returns the string representation
  36174. func (s DeleteRouteTableInput) String() string {
  36175. return awsutil.Prettify(s)
  36176. }
  36177. // GoString returns the string representation
  36178. func (s DeleteRouteTableInput) GoString() string {
  36179. return s.String()
  36180. }
  36181. // Validate inspects the fields of the type to determine if they are valid.
  36182. func (s *DeleteRouteTableInput) Validate() error {
  36183. invalidParams := request.ErrInvalidParams{Context: "DeleteRouteTableInput"}
  36184. if s.RouteTableId == nil {
  36185. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  36186. }
  36187. if invalidParams.Len() > 0 {
  36188. return invalidParams
  36189. }
  36190. return nil
  36191. }
  36192. // SetDryRun sets the DryRun field's value.
  36193. func (s *DeleteRouteTableInput) SetDryRun(v bool) *DeleteRouteTableInput {
  36194. s.DryRun = &v
  36195. return s
  36196. }
  36197. // SetRouteTableId sets the RouteTableId field's value.
  36198. func (s *DeleteRouteTableInput) SetRouteTableId(v string) *DeleteRouteTableInput {
  36199. s.RouteTableId = &v
  36200. return s
  36201. }
  36202. type DeleteRouteTableOutput struct {
  36203. _ struct{} `type:"structure"`
  36204. }
  36205. // String returns the string representation
  36206. func (s DeleteRouteTableOutput) String() string {
  36207. return awsutil.Prettify(s)
  36208. }
  36209. // GoString returns the string representation
  36210. func (s DeleteRouteTableOutput) GoString() string {
  36211. return s.String()
  36212. }
  36213. type DeleteSecurityGroupInput struct {
  36214. _ struct{} `type:"structure"`
  36215. // Checks whether you have the required permissions for the action, without
  36216. // actually making the request, and provides an error response. If you have
  36217. // the required permissions, the error response is DryRunOperation. Otherwise,
  36218. // it is UnauthorizedOperation.
  36219. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36220. // The ID of the security group. Required for a nondefault VPC.
  36221. GroupId *string `type:"string"`
  36222. // [EC2-Classic, default VPC] The name of the security group. You can specify
  36223. // either the security group name or the security group ID.
  36224. GroupName *string `type:"string"`
  36225. }
  36226. // String returns the string representation
  36227. func (s DeleteSecurityGroupInput) String() string {
  36228. return awsutil.Prettify(s)
  36229. }
  36230. // GoString returns the string representation
  36231. func (s DeleteSecurityGroupInput) GoString() string {
  36232. return s.String()
  36233. }
  36234. // SetDryRun sets the DryRun field's value.
  36235. func (s *DeleteSecurityGroupInput) SetDryRun(v bool) *DeleteSecurityGroupInput {
  36236. s.DryRun = &v
  36237. return s
  36238. }
  36239. // SetGroupId sets the GroupId field's value.
  36240. func (s *DeleteSecurityGroupInput) SetGroupId(v string) *DeleteSecurityGroupInput {
  36241. s.GroupId = &v
  36242. return s
  36243. }
  36244. // SetGroupName sets the GroupName field's value.
  36245. func (s *DeleteSecurityGroupInput) SetGroupName(v string) *DeleteSecurityGroupInput {
  36246. s.GroupName = &v
  36247. return s
  36248. }
  36249. type DeleteSecurityGroupOutput struct {
  36250. _ struct{} `type:"structure"`
  36251. }
  36252. // String returns the string representation
  36253. func (s DeleteSecurityGroupOutput) String() string {
  36254. return awsutil.Prettify(s)
  36255. }
  36256. // GoString returns the string representation
  36257. func (s DeleteSecurityGroupOutput) GoString() string {
  36258. return s.String()
  36259. }
  36260. // Contains the parameters for DeleteSnapshot.
  36261. type DeleteSnapshotInput struct {
  36262. _ struct{} `type:"structure"`
  36263. // Checks whether you have the required permissions for the action, without
  36264. // actually making the request, and provides an error response. If you have
  36265. // the required permissions, the error response is DryRunOperation. Otherwise,
  36266. // it is UnauthorizedOperation.
  36267. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36268. // The ID of the EBS snapshot.
  36269. //
  36270. // SnapshotId is a required field
  36271. SnapshotId *string `type:"string" required:"true"`
  36272. }
  36273. // String returns the string representation
  36274. func (s DeleteSnapshotInput) String() string {
  36275. return awsutil.Prettify(s)
  36276. }
  36277. // GoString returns the string representation
  36278. func (s DeleteSnapshotInput) GoString() string {
  36279. return s.String()
  36280. }
  36281. // Validate inspects the fields of the type to determine if they are valid.
  36282. func (s *DeleteSnapshotInput) Validate() error {
  36283. invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotInput"}
  36284. if s.SnapshotId == nil {
  36285. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  36286. }
  36287. if invalidParams.Len() > 0 {
  36288. return invalidParams
  36289. }
  36290. return nil
  36291. }
  36292. // SetDryRun sets the DryRun field's value.
  36293. func (s *DeleteSnapshotInput) SetDryRun(v bool) *DeleteSnapshotInput {
  36294. s.DryRun = &v
  36295. return s
  36296. }
  36297. // SetSnapshotId sets the SnapshotId field's value.
  36298. func (s *DeleteSnapshotInput) SetSnapshotId(v string) *DeleteSnapshotInput {
  36299. s.SnapshotId = &v
  36300. return s
  36301. }
  36302. type DeleteSnapshotOutput struct {
  36303. _ struct{} `type:"structure"`
  36304. }
  36305. // String returns the string representation
  36306. func (s DeleteSnapshotOutput) String() string {
  36307. return awsutil.Prettify(s)
  36308. }
  36309. // GoString returns the string representation
  36310. func (s DeleteSnapshotOutput) GoString() string {
  36311. return s.String()
  36312. }
  36313. // Contains the parameters for DeleteSpotDatafeedSubscription.
  36314. type DeleteSpotDatafeedSubscriptionInput struct {
  36315. _ struct{} `type:"structure"`
  36316. // Checks whether you have the required permissions for the action, without
  36317. // actually making the request, and provides an error response. If you have
  36318. // the required permissions, the error response is DryRunOperation. Otherwise,
  36319. // it is UnauthorizedOperation.
  36320. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36321. }
  36322. // String returns the string representation
  36323. func (s DeleteSpotDatafeedSubscriptionInput) String() string {
  36324. return awsutil.Prettify(s)
  36325. }
  36326. // GoString returns the string representation
  36327. func (s DeleteSpotDatafeedSubscriptionInput) GoString() string {
  36328. return s.String()
  36329. }
  36330. // SetDryRun sets the DryRun field's value.
  36331. func (s *DeleteSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DeleteSpotDatafeedSubscriptionInput {
  36332. s.DryRun = &v
  36333. return s
  36334. }
  36335. type DeleteSpotDatafeedSubscriptionOutput struct {
  36336. _ struct{} `type:"structure"`
  36337. }
  36338. // String returns the string representation
  36339. func (s DeleteSpotDatafeedSubscriptionOutput) String() string {
  36340. return awsutil.Prettify(s)
  36341. }
  36342. // GoString returns the string representation
  36343. func (s DeleteSpotDatafeedSubscriptionOutput) GoString() string {
  36344. return s.String()
  36345. }
  36346. type DeleteSubnetInput struct {
  36347. _ struct{} `type:"structure"`
  36348. // Checks whether you have the required permissions for the action, without
  36349. // actually making the request, and provides an error response. If you have
  36350. // the required permissions, the error response is DryRunOperation. Otherwise,
  36351. // it is UnauthorizedOperation.
  36352. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36353. // The ID of the subnet.
  36354. //
  36355. // SubnetId is a required field
  36356. SubnetId *string `type:"string" required:"true"`
  36357. }
  36358. // String returns the string representation
  36359. func (s DeleteSubnetInput) String() string {
  36360. return awsutil.Prettify(s)
  36361. }
  36362. // GoString returns the string representation
  36363. func (s DeleteSubnetInput) GoString() string {
  36364. return s.String()
  36365. }
  36366. // Validate inspects the fields of the type to determine if they are valid.
  36367. func (s *DeleteSubnetInput) Validate() error {
  36368. invalidParams := request.ErrInvalidParams{Context: "DeleteSubnetInput"}
  36369. if s.SubnetId == nil {
  36370. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  36371. }
  36372. if invalidParams.Len() > 0 {
  36373. return invalidParams
  36374. }
  36375. return nil
  36376. }
  36377. // SetDryRun sets the DryRun field's value.
  36378. func (s *DeleteSubnetInput) SetDryRun(v bool) *DeleteSubnetInput {
  36379. s.DryRun = &v
  36380. return s
  36381. }
  36382. // SetSubnetId sets the SubnetId field's value.
  36383. func (s *DeleteSubnetInput) SetSubnetId(v string) *DeleteSubnetInput {
  36384. s.SubnetId = &v
  36385. return s
  36386. }
  36387. type DeleteSubnetOutput struct {
  36388. _ struct{} `type:"structure"`
  36389. }
  36390. // String returns the string representation
  36391. func (s DeleteSubnetOutput) String() string {
  36392. return awsutil.Prettify(s)
  36393. }
  36394. // GoString returns the string representation
  36395. func (s DeleteSubnetOutput) GoString() string {
  36396. return s.String()
  36397. }
  36398. type DeleteTagsInput struct {
  36399. _ struct{} `type:"structure"`
  36400. // Checks whether you have the required permissions for the action, without
  36401. // actually making the request, and provides an error response. If you have
  36402. // the required permissions, the error response is DryRunOperation. Otherwise,
  36403. // it is UnauthorizedOperation.
  36404. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36405. // The IDs of one or more resources, separated by spaces.
  36406. //
  36407. // Constraints: Up to 1000 resource IDs. We recommend breaking up this request
  36408. // into smaller batches.
  36409. //
  36410. // Resources is a required field
  36411. Resources []*string `locationName:"resourceId" type:"list" required:"true"`
  36412. // One or more tags to delete. Specify a tag key and an optional tag value to
  36413. // delete specific tags. If you specify a tag key without a tag value, we delete
  36414. // any tag with this key regardless of its value. If you specify a tag key with
  36415. // an empty string as the tag value, we delete the tag only if its value is
  36416. // an empty string.
  36417. //
  36418. // If you omit this parameter, we delete all user-defined tags for the specified
  36419. // resources. We do not delete AWS-generated tags (tags that have the aws: prefix).
  36420. Tags []*Tag `locationName:"tag" locationNameList:"item" type:"list"`
  36421. }
  36422. // String returns the string representation
  36423. func (s DeleteTagsInput) String() string {
  36424. return awsutil.Prettify(s)
  36425. }
  36426. // GoString returns the string representation
  36427. func (s DeleteTagsInput) GoString() string {
  36428. return s.String()
  36429. }
  36430. // Validate inspects the fields of the type to determine if they are valid.
  36431. func (s *DeleteTagsInput) Validate() error {
  36432. invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
  36433. if s.Resources == nil {
  36434. invalidParams.Add(request.NewErrParamRequired("Resources"))
  36435. }
  36436. if invalidParams.Len() > 0 {
  36437. return invalidParams
  36438. }
  36439. return nil
  36440. }
  36441. // SetDryRun sets the DryRun field's value.
  36442. func (s *DeleteTagsInput) SetDryRun(v bool) *DeleteTagsInput {
  36443. s.DryRun = &v
  36444. return s
  36445. }
  36446. // SetResources sets the Resources field's value.
  36447. func (s *DeleteTagsInput) SetResources(v []*string) *DeleteTagsInput {
  36448. s.Resources = v
  36449. return s
  36450. }
  36451. // SetTags sets the Tags field's value.
  36452. func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput {
  36453. s.Tags = v
  36454. return s
  36455. }
  36456. type DeleteTagsOutput struct {
  36457. _ struct{} `type:"structure"`
  36458. }
  36459. // String returns the string representation
  36460. func (s DeleteTagsOutput) String() string {
  36461. return awsutil.Prettify(s)
  36462. }
  36463. // GoString returns the string representation
  36464. func (s DeleteTagsOutput) GoString() string {
  36465. return s.String()
  36466. }
  36467. type DeleteTransitGatewayInput struct {
  36468. _ struct{} `type:"structure"`
  36469. // Checks whether you have the required permissions for the action, without
  36470. // actually making the request, and provides an error response. If you have
  36471. // the required permissions, the error response is DryRunOperation. Otherwise,
  36472. // it is UnauthorizedOperation.
  36473. DryRun *bool `type:"boolean"`
  36474. // The ID of the transit gateway.
  36475. //
  36476. // TransitGatewayId is a required field
  36477. TransitGatewayId *string `type:"string" required:"true"`
  36478. }
  36479. // String returns the string representation
  36480. func (s DeleteTransitGatewayInput) String() string {
  36481. return awsutil.Prettify(s)
  36482. }
  36483. // GoString returns the string representation
  36484. func (s DeleteTransitGatewayInput) GoString() string {
  36485. return s.String()
  36486. }
  36487. // Validate inspects the fields of the type to determine if they are valid.
  36488. func (s *DeleteTransitGatewayInput) Validate() error {
  36489. invalidParams := request.ErrInvalidParams{Context: "DeleteTransitGatewayInput"}
  36490. if s.TransitGatewayId == nil {
  36491. invalidParams.Add(request.NewErrParamRequired("TransitGatewayId"))
  36492. }
  36493. if invalidParams.Len() > 0 {
  36494. return invalidParams
  36495. }
  36496. return nil
  36497. }
  36498. // SetDryRun sets the DryRun field's value.
  36499. func (s *DeleteTransitGatewayInput) SetDryRun(v bool) *DeleteTransitGatewayInput {
  36500. s.DryRun = &v
  36501. return s
  36502. }
  36503. // SetTransitGatewayId sets the TransitGatewayId field's value.
  36504. func (s *DeleteTransitGatewayInput) SetTransitGatewayId(v string) *DeleteTransitGatewayInput {
  36505. s.TransitGatewayId = &v
  36506. return s
  36507. }
  36508. type DeleteTransitGatewayOutput struct {
  36509. _ struct{} `type:"structure"`
  36510. // Information about the deleted transit gateway.
  36511. TransitGateway *TransitGateway `locationName:"transitGateway" type:"structure"`
  36512. }
  36513. // String returns the string representation
  36514. func (s DeleteTransitGatewayOutput) String() string {
  36515. return awsutil.Prettify(s)
  36516. }
  36517. // GoString returns the string representation
  36518. func (s DeleteTransitGatewayOutput) GoString() string {
  36519. return s.String()
  36520. }
  36521. // SetTransitGateway sets the TransitGateway field's value.
  36522. func (s *DeleteTransitGatewayOutput) SetTransitGateway(v *TransitGateway) *DeleteTransitGatewayOutput {
  36523. s.TransitGateway = v
  36524. return s
  36525. }
  36526. type DeleteTransitGatewayRouteInput struct {
  36527. _ struct{} `type:"structure"`
  36528. // The CIDR range for the route. This must match the CIDR for the route exactly.
  36529. //
  36530. // DestinationCidrBlock is a required field
  36531. DestinationCidrBlock *string `type:"string" required:"true"`
  36532. // Checks whether you have the required permissions for the action, without
  36533. // actually making the request, and provides an error response. If you have
  36534. // the required permissions, the error response is DryRunOperation. Otherwise,
  36535. // it is UnauthorizedOperation.
  36536. DryRun *bool `type:"boolean"`
  36537. // The ID of the transit gateway route table.
  36538. //
  36539. // TransitGatewayRouteTableId is a required field
  36540. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  36541. }
  36542. // String returns the string representation
  36543. func (s DeleteTransitGatewayRouteInput) String() string {
  36544. return awsutil.Prettify(s)
  36545. }
  36546. // GoString returns the string representation
  36547. func (s DeleteTransitGatewayRouteInput) GoString() string {
  36548. return s.String()
  36549. }
  36550. // Validate inspects the fields of the type to determine if they are valid.
  36551. func (s *DeleteTransitGatewayRouteInput) Validate() error {
  36552. invalidParams := request.ErrInvalidParams{Context: "DeleteTransitGatewayRouteInput"}
  36553. if s.DestinationCidrBlock == nil {
  36554. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  36555. }
  36556. if s.TransitGatewayRouteTableId == nil {
  36557. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  36558. }
  36559. if invalidParams.Len() > 0 {
  36560. return invalidParams
  36561. }
  36562. return nil
  36563. }
  36564. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  36565. func (s *DeleteTransitGatewayRouteInput) SetDestinationCidrBlock(v string) *DeleteTransitGatewayRouteInput {
  36566. s.DestinationCidrBlock = &v
  36567. return s
  36568. }
  36569. // SetDryRun sets the DryRun field's value.
  36570. func (s *DeleteTransitGatewayRouteInput) SetDryRun(v bool) *DeleteTransitGatewayRouteInput {
  36571. s.DryRun = &v
  36572. return s
  36573. }
  36574. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  36575. func (s *DeleteTransitGatewayRouteInput) SetTransitGatewayRouteTableId(v string) *DeleteTransitGatewayRouteInput {
  36576. s.TransitGatewayRouteTableId = &v
  36577. return s
  36578. }
  36579. type DeleteTransitGatewayRouteOutput struct {
  36580. _ struct{} `type:"structure"`
  36581. // Information about the route.
  36582. Route *TransitGatewayRoute `locationName:"route" type:"structure"`
  36583. }
  36584. // String returns the string representation
  36585. func (s DeleteTransitGatewayRouteOutput) String() string {
  36586. return awsutil.Prettify(s)
  36587. }
  36588. // GoString returns the string representation
  36589. func (s DeleteTransitGatewayRouteOutput) GoString() string {
  36590. return s.String()
  36591. }
  36592. // SetRoute sets the Route field's value.
  36593. func (s *DeleteTransitGatewayRouteOutput) SetRoute(v *TransitGatewayRoute) *DeleteTransitGatewayRouteOutput {
  36594. s.Route = v
  36595. return s
  36596. }
  36597. type DeleteTransitGatewayRouteTableInput struct {
  36598. _ struct{} `type:"structure"`
  36599. // Checks whether you have the required permissions for the action, without
  36600. // actually making the request, and provides an error response. If you have
  36601. // the required permissions, the error response is DryRunOperation. Otherwise,
  36602. // it is UnauthorizedOperation.
  36603. DryRun *bool `type:"boolean"`
  36604. // The ID of the transit gateway route table.
  36605. //
  36606. // TransitGatewayRouteTableId is a required field
  36607. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  36608. }
  36609. // String returns the string representation
  36610. func (s DeleteTransitGatewayRouteTableInput) String() string {
  36611. return awsutil.Prettify(s)
  36612. }
  36613. // GoString returns the string representation
  36614. func (s DeleteTransitGatewayRouteTableInput) GoString() string {
  36615. return s.String()
  36616. }
  36617. // Validate inspects the fields of the type to determine if they are valid.
  36618. func (s *DeleteTransitGatewayRouteTableInput) Validate() error {
  36619. invalidParams := request.ErrInvalidParams{Context: "DeleteTransitGatewayRouteTableInput"}
  36620. if s.TransitGatewayRouteTableId == nil {
  36621. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  36622. }
  36623. if invalidParams.Len() > 0 {
  36624. return invalidParams
  36625. }
  36626. return nil
  36627. }
  36628. // SetDryRun sets the DryRun field's value.
  36629. func (s *DeleteTransitGatewayRouteTableInput) SetDryRun(v bool) *DeleteTransitGatewayRouteTableInput {
  36630. s.DryRun = &v
  36631. return s
  36632. }
  36633. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  36634. func (s *DeleteTransitGatewayRouteTableInput) SetTransitGatewayRouteTableId(v string) *DeleteTransitGatewayRouteTableInput {
  36635. s.TransitGatewayRouteTableId = &v
  36636. return s
  36637. }
  36638. type DeleteTransitGatewayRouteTableOutput struct {
  36639. _ struct{} `type:"structure"`
  36640. // Information about the deleted transit gateway route table.
  36641. TransitGatewayRouteTable *TransitGatewayRouteTable `locationName:"transitGatewayRouteTable" type:"structure"`
  36642. }
  36643. // String returns the string representation
  36644. func (s DeleteTransitGatewayRouteTableOutput) String() string {
  36645. return awsutil.Prettify(s)
  36646. }
  36647. // GoString returns the string representation
  36648. func (s DeleteTransitGatewayRouteTableOutput) GoString() string {
  36649. return s.String()
  36650. }
  36651. // SetTransitGatewayRouteTable sets the TransitGatewayRouteTable field's value.
  36652. func (s *DeleteTransitGatewayRouteTableOutput) SetTransitGatewayRouteTable(v *TransitGatewayRouteTable) *DeleteTransitGatewayRouteTableOutput {
  36653. s.TransitGatewayRouteTable = v
  36654. return s
  36655. }
  36656. type DeleteTransitGatewayVpcAttachmentInput struct {
  36657. _ struct{} `type:"structure"`
  36658. // Checks whether you have the required permissions for the action, without
  36659. // actually making the request, and provides an error response. If you have
  36660. // the required permissions, the error response is DryRunOperation. Otherwise,
  36661. // it is UnauthorizedOperation.
  36662. DryRun *bool `type:"boolean"`
  36663. // The ID of the attachment.
  36664. //
  36665. // TransitGatewayAttachmentId is a required field
  36666. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  36667. }
  36668. // String returns the string representation
  36669. func (s DeleteTransitGatewayVpcAttachmentInput) String() string {
  36670. return awsutil.Prettify(s)
  36671. }
  36672. // GoString returns the string representation
  36673. func (s DeleteTransitGatewayVpcAttachmentInput) GoString() string {
  36674. return s.String()
  36675. }
  36676. // Validate inspects the fields of the type to determine if they are valid.
  36677. func (s *DeleteTransitGatewayVpcAttachmentInput) Validate() error {
  36678. invalidParams := request.ErrInvalidParams{Context: "DeleteTransitGatewayVpcAttachmentInput"}
  36679. if s.TransitGatewayAttachmentId == nil {
  36680. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  36681. }
  36682. if invalidParams.Len() > 0 {
  36683. return invalidParams
  36684. }
  36685. return nil
  36686. }
  36687. // SetDryRun sets the DryRun field's value.
  36688. func (s *DeleteTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *DeleteTransitGatewayVpcAttachmentInput {
  36689. s.DryRun = &v
  36690. return s
  36691. }
  36692. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  36693. func (s *DeleteTransitGatewayVpcAttachmentInput) SetTransitGatewayAttachmentId(v string) *DeleteTransitGatewayVpcAttachmentInput {
  36694. s.TransitGatewayAttachmentId = &v
  36695. return s
  36696. }
  36697. type DeleteTransitGatewayVpcAttachmentOutput struct {
  36698. _ struct{} `type:"structure"`
  36699. // Information about the deleted VPC attachment.
  36700. TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
  36701. }
  36702. // String returns the string representation
  36703. func (s DeleteTransitGatewayVpcAttachmentOutput) String() string {
  36704. return awsutil.Prettify(s)
  36705. }
  36706. // GoString returns the string representation
  36707. func (s DeleteTransitGatewayVpcAttachmentOutput) GoString() string {
  36708. return s.String()
  36709. }
  36710. // SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value.
  36711. func (s *DeleteTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *DeleteTransitGatewayVpcAttachmentOutput {
  36712. s.TransitGatewayVpcAttachment = v
  36713. return s
  36714. }
  36715. // Contains the parameters for DeleteVolume.
  36716. type DeleteVolumeInput struct {
  36717. _ struct{} `type:"structure"`
  36718. // Checks whether you have the required permissions for the action, without
  36719. // actually making the request, and provides an error response. If you have
  36720. // the required permissions, the error response is DryRunOperation. Otherwise,
  36721. // it is UnauthorizedOperation.
  36722. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36723. // The ID of the volume.
  36724. //
  36725. // VolumeId is a required field
  36726. VolumeId *string `type:"string" required:"true"`
  36727. }
  36728. // String returns the string representation
  36729. func (s DeleteVolumeInput) String() string {
  36730. return awsutil.Prettify(s)
  36731. }
  36732. // GoString returns the string representation
  36733. func (s DeleteVolumeInput) GoString() string {
  36734. return s.String()
  36735. }
  36736. // Validate inspects the fields of the type to determine if they are valid.
  36737. func (s *DeleteVolumeInput) Validate() error {
  36738. invalidParams := request.ErrInvalidParams{Context: "DeleteVolumeInput"}
  36739. if s.VolumeId == nil {
  36740. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  36741. }
  36742. if invalidParams.Len() > 0 {
  36743. return invalidParams
  36744. }
  36745. return nil
  36746. }
  36747. // SetDryRun sets the DryRun field's value.
  36748. func (s *DeleteVolumeInput) SetDryRun(v bool) *DeleteVolumeInput {
  36749. s.DryRun = &v
  36750. return s
  36751. }
  36752. // SetVolumeId sets the VolumeId field's value.
  36753. func (s *DeleteVolumeInput) SetVolumeId(v string) *DeleteVolumeInput {
  36754. s.VolumeId = &v
  36755. return s
  36756. }
  36757. type DeleteVolumeOutput struct {
  36758. _ struct{} `type:"structure"`
  36759. }
  36760. // String returns the string representation
  36761. func (s DeleteVolumeOutput) String() string {
  36762. return awsutil.Prettify(s)
  36763. }
  36764. // GoString returns the string representation
  36765. func (s DeleteVolumeOutput) GoString() string {
  36766. return s.String()
  36767. }
  36768. type DeleteVpcEndpointConnectionNotificationsInput struct {
  36769. _ struct{} `type:"structure"`
  36770. // One or more notification IDs.
  36771. //
  36772. // ConnectionNotificationIds is a required field
  36773. ConnectionNotificationIds []*string `locationName:"ConnectionNotificationId" locationNameList:"item" type:"list" required:"true"`
  36774. // Checks whether you have the required permissions for the action, without
  36775. // actually making the request, and provides an error response. If you have
  36776. // the required permissions, the error response is DryRunOperation. Otherwise,
  36777. // it is UnauthorizedOperation.
  36778. DryRun *bool `type:"boolean"`
  36779. }
  36780. // String returns the string representation
  36781. func (s DeleteVpcEndpointConnectionNotificationsInput) String() string {
  36782. return awsutil.Prettify(s)
  36783. }
  36784. // GoString returns the string representation
  36785. func (s DeleteVpcEndpointConnectionNotificationsInput) GoString() string {
  36786. return s.String()
  36787. }
  36788. // Validate inspects the fields of the type to determine if they are valid.
  36789. func (s *DeleteVpcEndpointConnectionNotificationsInput) Validate() error {
  36790. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointConnectionNotificationsInput"}
  36791. if s.ConnectionNotificationIds == nil {
  36792. invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationIds"))
  36793. }
  36794. if invalidParams.Len() > 0 {
  36795. return invalidParams
  36796. }
  36797. return nil
  36798. }
  36799. // SetConnectionNotificationIds sets the ConnectionNotificationIds field's value.
  36800. func (s *DeleteVpcEndpointConnectionNotificationsInput) SetConnectionNotificationIds(v []*string) *DeleteVpcEndpointConnectionNotificationsInput {
  36801. s.ConnectionNotificationIds = v
  36802. return s
  36803. }
  36804. // SetDryRun sets the DryRun field's value.
  36805. func (s *DeleteVpcEndpointConnectionNotificationsInput) SetDryRun(v bool) *DeleteVpcEndpointConnectionNotificationsInput {
  36806. s.DryRun = &v
  36807. return s
  36808. }
  36809. type DeleteVpcEndpointConnectionNotificationsOutput struct {
  36810. _ struct{} `type:"structure"`
  36811. // Information about the notifications that could not be deleted successfully.
  36812. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  36813. }
  36814. // String returns the string representation
  36815. func (s DeleteVpcEndpointConnectionNotificationsOutput) String() string {
  36816. return awsutil.Prettify(s)
  36817. }
  36818. // GoString returns the string representation
  36819. func (s DeleteVpcEndpointConnectionNotificationsOutput) GoString() string {
  36820. return s.String()
  36821. }
  36822. // SetUnsuccessful sets the Unsuccessful field's value.
  36823. func (s *DeleteVpcEndpointConnectionNotificationsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointConnectionNotificationsOutput {
  36824. s.Unsuccessful = v
  36825. return s
  36826. }
  36827. type DeleteVpcEndpointServiceConfigurationsInput struct {
  36828. _ struct{} `type:"structure"`
  36829. // Checks whether you have the required permissions for the action, without
  36830. // actually making the request, and provides an error response. If you have
  36831. // the required permissions, the error response is DryRunOperation. Otherwise,
  36832. // it is UnauthorizedOperation.
  36833. DryRun *bool `type:"boolean"`
  36834. // The IDs of one or more services.
  36835. //
  36836. // ServiceIds is a required field
  36837. ServiceIds []*string `locationName:"ServiceId" locationNameList:"item" type:"list" required:"true"`
  36838. }
  36839. // String returns the string representation
  36840. func (s DeleteVpcEndpointServiceConfigurationsInput) String() string {
  36841. return awsutil.Prettify(s)
  36842. }
  36843. // GoString returns the string representation
  36844. func (s DeleteVpcEndpointServiceConfigurationsInput) GoString() string {
  36845. return s.String()
  36846. }
  36847. // Validate inspects the fields of the type to determine if they are valid.
  36848. func (s *DeleteVpcEndpointServiceConfigurationsInput) Validate() error {
  36849. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointServiceConfigurationsInput"}
  36850. if s.ServiceIds == nil {
  36851. invalidParams.Add(request.NewErrParamRequired("ServiceIds"))
  36852. }
  36853. if invalidParams.Len() > 0 {
  36854. return invalidParams
  36855. }
  36856. return nil
  36857. }
  36858. // SetDryRun sets the DryRun field's value.
  36859. func (s *DeleteVpcEndpointServiceConfigurationsInput) SetDryRun(v bool) *DeleteVpcEndpointServiceConfigurationsInput {
  36860. s.DryRun = &v
  36861. return s
  36862. }
  36863. // SetServiceIds sets the ServiceIds field's value.
  36864. func (s *DeleteVpcEndpointServiceConfigurationsInput) SetServiceIds(v []*string) *DeleteVpcEndpointServiceConfigurationsInput {
  36865. s.ServiceIds = v
  36866. return s
  36867. }
  36868. type DeleteVpcEndpointServiceConfigurationsOutput struct {
  36869. _ struct{} `type:"structure"`
  36870. // Information about the service configurations that were not deleted, if applicable.
  36871. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  36872. }
  36873. // String returns the string representation
  36874. func (s DeleteVpcEndpointServiceConfigurationsOutput) String() string {
  36875. return awsutil.Prettify(s)
  36876. }
  36877. // GoString returns the string representation
  36878. func (s DeleteVpcEndpointServiceConfigurationsOutput) GoString() string {
  36879. return s.String()
  36880. }
  36881. // SetUnsuccessful sets the Unsuccessful field's value.
  36882. func (s *DeleteVpcEndpointServiceConfigurationsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointServiceConfigurationsOutput {
  36883. s.Unsuccessful = v
  36884. return s
  36885. }
  36886. // Contains the parameters for DeleteVpcEndpoints.
  36887. type DeleteVpcEndpointsInput struct {
  36888. _ struct{} `type:"structure"`
  36889. // Checks whether you have the required permissions for the action, without
  36890. // actually making the request, and provides an error response. If you have
  36891. // the required permissions, the error response is DryRunOperation. Otherwise,
  36892. // it is UnauthorizedOperation.
  36893. DryRun *bool `type:"boolean"`
  36894. // One or more VPC endpoint IDs.
  36895. //
  36896. // VpcEndpointIds is a required field
  36897. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  36898. }
  36899. // String returns the string representation
  36900. func (s DeleteVpcEndpointsInput) String() string {
  36901. return awsutil.Prettify(s)
  36902. }
  36903. // GoString returns the string representation
  36904. func (s DeleteVpcEndpointsInput) GoString() string {
  36905. return s.String()
  36906. }
  36907. // Validate inspects the fields of the type to determine if they are valid.
  36908. func (s *DeleteVpcEndpointsInput) Validate() error {
  36909. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointsInput"}
  36910. if s.VpcEndpointIds == nil {
  36911. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  36912. }
  36913. if invalidParams.Len() > 0 {
  36914. return invalidParams
  36915. }
  36916. return nil
  36917. }
  36918. // SetDryRun sets the DryRun field's value.
  36919. func (s *DeleteVpcEndpointsInput) SetDryRun(v bool) *DeleteVpcEndpointsInput {
  36920. s.DryRun = &v
  36921. return s
  36922. }
  36923. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  36924. func (s *DeleteVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DeleteVpcEndpointsInput {
  36925. s.VpcEndpointIds = v
  36926. return s
  36927. }
  36928. // Contains the output of DeleteVpcEndpoints.
  36929. type DeleteVpcEndpointsOutput struct {
  36930. _ struct{} `type:"structure"`
  36931. // Information about the VPC endpoints that were not successfully deleted.
  36932. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  36933. }
  36934. // String returns the string representation
  36935. func (s DeleteVpcEndpointsOutput) String() string {
  36936. return awsutil.Prettify(s)
  36937. }
  36938. // GoString returns the string representation
  36939. func (s DeleteVpcEndpointsOutput) GoString() string {
  36940. return s.String()
  36941. }
  36942. // SetUnsuccessful sets the Unsuccessful field's value.
  36943. func (s *DeleteVpcEndpointsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointsOutput {
  36944. s.Unsuccessful = v
  36945. return s
  36946. }
  36947. type DeleteVpcInput struct {
  36948. _ struct{} `type:"structure"`
  36949. // Checks whether you have the required permissions for the action, without
  36950. // actually making the request, and provides an error response. If you have
  36951. // the required permissions, the error response is DryRunOperation. Otherwise,
  36952. // it is UnauthorizedOperation.
  36953. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36954. // The ID of the VPC.
  36955. //
  36956. // VpcId is a required field
  36957. VpcId *string `type:"string" required:"true"`
  36958. }
  36959. // String returns the string representation
  36960. func (s DeleteVpcInput) String() string {
  36961. return awsutil.Prettify(s)
  36962. }
  36963. // GoString returns the string representation
  36964. func (s DeleteVpcInput) GoString() string {
  36965. return s.String()
  36966. }
  36967. // Validate inspects the fields of the type to determine if they are valid.
  36968. func (s *DeleteVpcInput) Validate() error {
  36969. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcInput"}
  36970. if s.VpcId == nil {
  36971. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  36972. }
  36973. if invalidParams.Len() > 0 {
  36974. return invalidParams
  36975. }
  36976. return nil
  36977. }
  36978. // SetDryRun sets the DryRun field's value.
  36979. func (s *DeleteVpcInput) SetDryRun(v bool) *DeleteVpcInput {
  36980. s.DryRun = &v
  36981. return s
  36982. }
  36983. // SetVpcId sets the VpcId field's value.
  36984. func (s *DeleteVpcInput) SetVpcId(v string) *DeleteVpcInput {
  36985. s.VpcId = &v
  36986. return s
  36987. }
  36988. type DeleteVpcOutput struct {
  36989. _ struct{} `type:"structure"`
  36990. }
  36991. // String returns the string representation
  36992. func (s DeleteVpcOutput) String() string {
  36993. return awsutil.Prettify(s)
  36994. }
  36995. // GoString returns the string representation
  36996. func (s DeleteVpcOutput) GoString() string {
  36997. return s.String()
  36998. }
  36999. type DeleteVpcPeeringConnectionInput struct {
  37000. _ struct{} `type:"structure"`
  37001. // Checks whether you have the required permissions for the action, without
  37002. // actually making the request, and provides an error response. If you have
  37003. // the required permissions, the error response is DryRunOperation. Otherwise,
  37004. // it is UnauthorizedOperation.
  37005. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37006. // The ID of the VPC peering connection.
  37007. //
  37008. // VpcPeeringConnectionId is a required field
  37009. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
  37010. }
  37011. // String returns the string representation
  37012. func (s DeleteVpcPeeringConnectionInput) String() string {
  37013. return awsutil.Prettify(s)
  37014. }
  37015. // GoString returns the string representation
  37016. func (s DeleteVpcPeeringConnectionInput) GoString() string {
  37017. return s.String()
  37018. }
  37019. // Validate inspects the fields of the type to determine if they are valid.
  37020. func (s *DeleteVpcPeeringConnectionInput) Validate() error {
  37021. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcPeeringConnectionInput"}
  37022. if s.VpcPeeringConnectionId == nil {
  37023. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  37024. }
  37025. if invalidParams.Len() > 0 {
  37026. return invalidParams
  37027. }
  37028. return nil
  37029. }
  37030. // SetDryRun sets the DryRun field's value.
  37031. func (s *DeleteVpcPeeringConnectionInput) SetDryRun(v bool) *DeleteVpcPeeringConnectionInput {
  37032. s.DryRun = &v
  37033. return s
  37034. }
  37035. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  37036. func (s *DeleteVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *DeleteVpcPeeringConnectionInput {
  37037. s.VpcPeeringConnectionId = &v
  37038. return s
  37039. }
  37040. type DeleteVpcPeeringConnectionOutput struct {
  37041. _ struct{} `type:"structure"`
  37042. // Returns true if the request succeeds; otherwise, it returns an error.
  37043. Return *bool `locationName:"return" type:"boolean"`
  37044. }
  37045. // String returns the string representation
  37046. func (s DeleteVpcPeeringConnectionOutput) String() string {
  37047. return awsutil.Prettify(s)
  37048. }
  37049. // GoString returns the string representation
  37050. func (s DeleteVpcPeeringConnectionOutput) GoString() string {
  37051. return s.String()
  37052. }
  37053. // SetReturn sets the Return field's value.
  37054. func (s *DeleteVpcPeeringConnectionOutput) SetReturn(v bool) *DeleteVpcPeeringConnectionOutput {
  37055. s.Return = &v
  37056. return s
  37057. }
  37058. // Contains the parameters for DeleteVpnConnection.
  37059. type DeleteVpnConnectionInput 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. // The ID of the VPN connection.
  37067. //
  37068. // VpnConnectionId is a required field
  37069. VpnConnectionId *string `type:"string" required:"true"`
  37070. }
  37071. // String returns the string representation
  37072. func (s DeleteVpnConnectionInput) String() string {
  37073. return awsutil.Prettify(s)
  37074. }
  37075. // GoString returns the string representation
  37076. func (s DeleteVpnConnectionInput) GoString() string {
  37077. return s.String()
  37078. }
  37079. // Validate inspects the fields of the type to determine if they are valid.
  37080. func (s *DeleteVpnConnectionInput) Validate() error {
  37081. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionInput"}
  37082. if s.VpnConnectionId == nil {
  37083. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  37084. }
  37085. if invalidParams.Len() > 0 {
  37086. return invalidParams
  37087. }
  37088. return nil
  37089. }
  37090. // SetDryRun sets the DryRun field's value.
  37091. func (s *DeleteVpnConnectionInput) SetDryRun(v bool) *DeleteVpnConnectionInput {
  37092. s.DryRun = &v
  37093. return s
  37094. }
  37095. // SetVpnConnectionId sets the VpnConnectionId field's value.
  37096. func (s *DeleteVpnConnectionInput) SetVpnConnectionId(v string) *DeleteVpnConnectionInput {
  37097. s.VpnConnectionId = &v
  37098. return s
  37099. }
  37100. type DeleteVpnConnectionOutput struct {
  37101. _ struct{} `type:"structure"`
  37102. }
  37103. // String returns the string representation
  37104. func (s DeleteVpnConnectionOutput) String() string {
  37105. return awsutil.Prettify(s)
  37106. }
  37107. // GoString returns the string representation
  37108. func (s DeleteVpnConnectionOutput) GoString() string {
  37109. return s.String()
  37110. }
  37111. // Contains the parameters for DeleteVpnConnectionRoute.
  37112. type DeleteVpnConnectionRouteInput struct {
  37113. _ struct{} `type:"structure"`
  37114. // The CIDR block associated with the local subnet of the customer network.
  37115. //
  37116. // DestinationCidrBlock is a required field
  37117. DestinationCidrBlock *string `type:"string" required:"true"`
  37118. // The ID of the VPN connection.
  37119. //
  37120. // VpnConnectionId is a required field
  37121. VpnConnectionId *string `type:"string" required:"true"`
  37122. }
  37123. // String returns the string representation
  37124. func (s DeleteVpnConnectionRouteInput) String() string {
  37125. return awsutil.Prettify(s)
  37126. }
  37127. // GoString returns the string representation
  37128. func (s DeleteVpnConnectionRouteInput) GoString() string {
  37129. return s.String()
  37130. }
  37131. // Validate inspects the fields of the type to determine if they are valid.
  37132. func (s *DeleteVpnConnectionRouteInput) Validate() error {
  37133. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionRouteInput"}
  37134. if s.DestinationCidrBlock == nil {
  37135. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  37136. }
  37137. if s.VpnConnectionId == nil {
  37138. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  37139. }
  37140. if invalidParams.Len() > 0 {
  37141. return invalidParams
  37142. }
  37143. return nil
  37144. }
  37145. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  37146. func (s *DeleteVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *DeleteVpnConnectionRouteInput {
  37147. s.DestinationCidrBlock = &v
  37148. return s
  37149. }
  37150. // SetVpnConnectionId sets the VpnConnectionId field's value.
  37151. func (s *DeleteVpnConnectionRouteInput) SetVpnConnectionId(v string) *DeleteVpnConnectionRouteInput {
  37152. s.VpnConnectionId = &v
  37153. return s
  37154. }
  37155. type DeleteVpnConnectionRouteOutput struct {
  37156. _ struct{} `type:"structure"`
  37157. }
  37158. // String returns the string representation
  37159. func (s DeleteVpnConnectionRouteOutput) String() string {
  37160. return awsutil.Prettify(s)
  37161. }
  37162. // GoString returns the string representation
  37163. func (s DeleteVpnConnectionRouteOutput) GoString() string {
  37164. return s.String()
  37165. }
  37166. // Contains the parameters for DeleteVpnGateway.
  37167. type DeleteVpnGatewayInput 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 `locationName:"dryRun" type:"boolean"`
  37174. // The ID of the virtual private gateway.
  37175. //
  37176. // VpnGatewayId is a required field
  37177. VpnGatewayId *string `type:"string" required:"true"`
  37178. }
  37179. // String returns the string representation
  37180. func (s DeleteVpnGatewayInput) String() string {
  37181. return awsutil.Prettify(s)
  37182. }
  37183. // GoString returns the string representation
  37184. func (s DeleteVpnGatewayInput) GoString() string {
  37185. return s.String()
  37186. }
  37187. // Validate inspects the fields of the type to determine if they are valid.
  37188. func (s *DeleteVpnGatewayInput) Validate() error {
  37189. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnGatewayInput"}
  37190. if s.VpnGatewayId == nil {
  37191. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  37192. }
  37193. if invalidParams.Len() > 0 {
  37194. return invalidParams
  37195. }
  37196. return nil
  37197. }
  37198. // SetDryRun sets the DryRun field's value.
  37199. func (s *DeleteVpnGatewayInput) SetDryRun(v bool) *DeleteVpnGatewayInput {
  37200. s.DryRun = &v
  37201. return s
  37202. }
  37203. // SetVpnGatewayId sets the VpnGatewayId field's value.
  37204. func (s *DeleteVpnGatewayInput) SetVpnGatewayId(v string) *DeleteVpnGatewayInput {
  37205. s.VpnGatewayId = &v
  37206. return s
  37207. }
  37208. type DeleteVpnGatewayOutput struct {
  37209. _ struct{} `type:"structure"`
  37210. }
  37211. // String returns the string representation
  37212. func (s DeleteVpnGatewayOutput) String() string {
  37213. return awsutil.Prettify(s)
  37214. }
  37215. // GoString returns the string representation
  37216. func (s DeleteVpnGatewayOutput) GoString() string {
  37217. return s.String()
  37218. }
  37219. type DeprovisionByoipCidrInput struct {
  37220. _ struct{} `type:"structure"`
  37221. // The public IPv4 address range, in CIDR notation. The prefix must be the same
  37222. // prefix that you specified when you provisioned the address range.
  37223. //
  37224. // Cidr is a required field
  37225. Cidr *string `type:"string" required:"true"`
  37226. // Checks whether you have the required permissions for the action, without
  37227. // actually making the request, and provides an error response. If you have
  37228. // the required permissions, the error response is DryRunOperation. Otherwise,
  37229. // it is UnauthorizedOperation.
  37230. DryRun *bool `type:"boolean"`
  37231. }
  37232. // String returns the string representation
  37233. func (s DeprovisionByoipCidrInput) String() string {
  37234. return awsutil.Prettify(s)
  37235. }
  37236. // GoString returns the string representation
  37237. func (s DeprovisionByoipCidrInput) GoString() string {
  37238. return s.String()
  37239. }
  37240. // Validate inspects the fields of the type to determine if they are valid.
  37241. func (s *DeprovisionByoipCidrInput) Validate() error {
  37242. invalidParams := request.ErrInvalidParams{Context: "DeprovisionByoipCidrInput"}
  37243. if s.Cidr == nil {
  37244. invalidParams.Add(request.NewErrParamRequired("Cidr"))
  37245. }
  37246. if invalidParams.Len() > 0 {
  37247. return invalidParams
  37248. }
  37249. return nil
  37250. }
  37251. // SetCidr sets the Cidr field's value.
  37252. func (s *DeprovisionByoipCidrInput) SetCidr(v string) *DeprovisionByoipCidrInput {
  37253. s.Cidr = &v
  37254. return s
  37255. }
  37256. // SetDryRun sets the DryRun field's value.
  37257. func (s *DeprovisionByoipCidrInput) SetDryRun(v bool) *DeprovisionByoipCidrInput {
  37258. s.DryRun = &v
  37259. return s
  37260. }
  37261. type DeprovisionByoipCidrOutput struct {
  37262. _ struct{} `type:"structure"`
  37263. // Information about the address range.
  37264. ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"`
  37265. }
  37266. // String returns the string representation
  37267. func (s DeprovisionByoipCidrOutput) String() string {
  37268. return awsutil.Prettify(s)
  37269. }
  37270. // GoString returns the string representation
  37271. func (s DeprovisionByoipCidrOutput) GoString() string {
  37272. return s.String()
  37273. }
  37274. // SetByoipCidr sets the ByoipCidr field's value.
  37275. func (s *DeprovisionByoipCidrOutput) SetByoipCidr(v *ByoipCidr) *DeprovisionByoipCidrOutput {
  37276. s.ByoipCidr = v
  37277. return s
  37278. }
  37279. // Contains the parameters for DeregisterImage.
  37280. type DeregisterImageInput struct {
  37281. _ struct{} `type:"structure"`
  37282. // Checks whether you have the required permissions for the action, without
  37283. // actually making the request, and provides an error response. If you have
  37284. // the required permissions, the error response is DryRunOperation. Otherwise,
  37285. // it is UnauthorizedOperation.
  37286. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37287. // The ID of the AMI.
  37288. //
  37289. // ImageId is a required field
  37290. ImageId *string `type:"string" required:"true"`
  37291. }
  37292. // String returns the string representation
  37293. func (s DeregisterImageInput) String() string {
  37294. return awsutil.Prettify(s)
  37295. }
  37296. // GoString returns the string representation
  37297. func (s DeregisterImageInput) GoString() string {
  37298. return s.String()
  37299. }
  37300. // Validate inspects the fields of the type to determine if they are valid.
  37301. func (s *DeregisterImageInput) Validate() error {
  37302. invalidParams := request.ErrInvalidParams{Context: "DeregisterImageInput"}
  37303. if s.ImageId == nil {
  37304. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  37305. }
  37306. if invalidParams.Len() > 0 {
  37307. return invalidParams
  37308. }
  37309. return nil
  37310. }
  37311. // SetDryRun sets the DryRun field's value.
  37312. func (s *DeregisterImageInput) SetDryRun(v bool) *DeregisterImageInput {
  37313. s.DryRun = &v
  37314. return s
  37315. }
  37316. // SetImageId sets the ImageId field's value.
  37317. func (s *DeregisterImageInput) SetImageId(v string) *DeregisterImageInput {
  37318. s.ImageId = &v
  37319. return s
  37320. }
  37321. type DeregisterImageOutput struct {
  37322. _ struct{} `type:"structure"`
  37323. }
  37324. // String returns the string representation
  37325. func (s DeregisterImageOutput) String() string {
  37326. return awsutil.Prettify(s)
  37327. }
  37328. // GoString returns the string representation
  37329. func (s DeregisterImageOutput) GoString() string {
  37330. return s.String()
  37331. }
  37332. type DescribeAccountAttributesInput struct {
  37333. _ struct{} `type:"structure"`
  37334. // One or more account attribute names.
  37335. AttributeNames []*string `locationName:"attributeName" locationNameList:"attributeName" type:"list"`
  37336. // Checks whether you have the required permissions for the action, without
  37337. // actually making the request, and provides an error response. If you have
  37338. // the required permissions, the error response is DryRunOperation. Otherwise,
  37339. // it is UnauthorizedOperation.
  37340. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37341. }
  37342. // String returns the string representation
  37343. func (s DescribeAccountAttributesInput) String() string {
  37344. return awsutil.Prettify(s)
  37345. }
  37346. // GoString returns the string representation
  37347. func (s DescribeAccountAttributesInput) GoString() string {
  37348. return s.String()
  37349. }
  37350. // SetAttributeNames sets the AttributeNames field's value.
  37351. func (s *DescribeAccountAttributesInput) SetAttributeNames(v []*string) *DescribeAccountAttributesInput {
  37352. s.AttributeNames = v
  37353. return s
  37354. }
  37355. // SetDryRun sets the DryRun field's value.
  37356. func (s *DescribeAccountAttributesInput) SetDryRun(v bool) *DescribeAccountAttributesInput {
  37357. s.DryRun = &v
  37358. return s
  37359. }
  37360. type DescribeAccountAttributesOutput struct {
  37361. _ struct{} `type:"structure"`
  37362. // Information about one or more account attributes.
  37363. AccountAttributes []*AccountAttribute `locationName:"accountAttributeSet" locationNameList:"item" type:"list"`
  37364. }
  37365. // String returns the string representation
  37366. func (s DescribeAccountAttributesOutput) String() string {
  37367. return awsutil.Prettify(s)
  37368. }
  37369. // GoString returns the string representation
  37370. func (s DescribeAccountAttributesOutput) GoString() string {
  37371. return s.String()
  37372. }
  37373. // SetAccountAttributes sets the AccountAttributes field's value.
  37374. func (s *DescribeAccountAttributesOutput) SetAccountAttributes(v []*AccountAttribute) *DescribeAccountAttributesOutput {
  37375. s.AccountAttributes = v
  37376. return s
  37377. }
  37378. type DescribeAddressesInput struct {
  37379. _ struct{} `type:"structure"`
  37380. // [EC2-VPC] One or more allocation IDs.
  37381. //
  37382. // Default: Describes all your Elastic IP addresses.
  37383. AllocationIds []*string `locationName:"AllocationId" locationNameList:"AllocationId" type:"list"`
  37384. // Checks whether you have the required permissions for the action, without
  37385. // actually making the request, and provides an error response. If you have
  37386. // the required permissions, the error response is DryRunOperation. Otherwise,
  37387. // it is UnauthorizedOperation.
  37388. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37389. // One or more filters. Filter names and values are case-sensitive.
  37390. //
  37391. // * allocation-id - [EC2-VPC] The allocation ID for the address.
  37392. //
  37393. // * association-id - [EC2-VPC] The association ID for the address.
  37394. //
  37395. // * domain - Indicates whether the address is for use in EC2-Classic (standard)
  37396. // or in a VPC (vpc).
  37397. //
  37398. // * instance-id - The ID of the instance the address is associated with,
  37399. // if any.
  37400. //
  37401. // * network-interface-id - [EC2-VPC] The ID of the network interface that
  37402. // the address is associated with, if any.
  37403. //
  37404. // * network-interface-owner-id - The AWS account ID of the owner.
  37405. //
  37406. // * private-ip-address - [EC2-VPC] The private IP address associated with
  37407. // the Elastic IP address.
  37408. //
  37409. // * public-ip - The Elastic IP address.
  37410. //
  37411. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  37412. // Use the tag key in the filter name and the tag value as the filter value.
  37413. // For example, to find all resources that have a tag with the key Owner
  37414. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  37415. // the filter value.
  37416. //
  37417. // * tag-key - The key of a tag assigned to the resource. Use this filter
  37418. // to find all resources assigned a tag with a specific key, regardless of
  37419. // the tag value.
  37420. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37421. // [EC2-Classic] One or more Elastic IP addresses.
  37422. //
  37423. // Default: Describes all your Elastic IP addresses.
  37424. PublicIps []*string `locationName:"PublicIp" locationNameList:"PublicIp" type:"list"`
  37425. }
  37426. // String returns the string representation
  37427. func (s DescribeAddressesInput) String() string {
  37428. return awsutil.Prettify(s)
  37429. }
  37430. // GoString returns the string representation
  37431. func (s DescribeAddressesInput) GoString() string {
  37432. return s.String()
  37433. }
  37434. // SetAllocationIds sets the AllocationIds field's value.
  37435. func (s *DescribeAddressesInput) SetAllocationIds(v []*string) *DescribeAddressesInput {
  37436. s.AllocationIds = v
  37437. return s
  37438. }
  37439. // SetDryRun sets the DryRun field's value.
  37440. func (s *DescribeAddressesInput) SetDryRun(v bool) *DescribeAddressesInput {
  37441. s.DryRun = &v
  37442. return s
  37443. }
  37444. // SetFilters sets the Filters field's value.
  37445. func (s *DescribeAddressesInput) SetFilters(v []*Filter) *DescribeAddressesInput {
  37446. s.Filters = v
  37447. return s
  37448. }
  37449. // SetPublicIps sets the PublicIps field's value.
  37450. func (s *DescribeAddressesInput) SetPublicIps(v []*string) *DescribeAddressesInput {
  37451. s.PublicIps = v
  37452. return s
  37453. }
  37454. type DescribeAddressesOutput struct {
  37455. _ struct{} `type:"structure"`
  37456. // Information about one or more Elastic IP addresses.
  37457. Addresses []*Address `locationName:"addressesSet" locationNameList:"item" type:"list"`
  37458. }
  37459. // String returns the string representation
  37460. func (s DescribeAddressesOutput) String() string {
  37461. return awsutil.Prettify(s)
  37462. }
  37463. // GoString returns the string representation
  37464. func (s DescribeAddressesOutput) GoString() string {
  37465. return s.String()
  37466. }
  37467. // SetAddresses sets the Addresses field's value.
  37468. func (s *DescribeAddressesOutput) SetAddresses(v []*Address) *DescribeAddressesOutput {
  37469. s.Addresses = v
  37470. return s
  37471. }
  37472. type DescribeAggregateIdFormatInput struct {
  37473. _ struct{} `type:"structure"`
  37474. // Checks whether you have the required permissions for the action, without
  37475. // actually making the request, and provides an error response. If you have
  37476. // the required permissions, the error response is DryRunOperation. Otherwise,
  37477. // it is UnauthorizedOperation.
  37478. DryRun *bool `type:"boolean"`
  37479. }
  37480. // String returns the string representation
  37481. func (s DescribeAggregateIdFormatInput) String() string {
  37482. return awsutil.Prettify(s)
  37483. }
  37484. // GoString returns the string representation
  37485. func (s DescribeAggregateIdFormatInput) GoString() string {
  37486. return s.String()
  37487. }
  37488. // SetDryRun sets the DryRun field's value.
  37489. func (s *DescribeAggregateIdFormatInput) SetDryRun(v bool) *DescribeAggregateIdFormatInput {
  37490. s.DryRun = &v
  37491. return s
  37492. }
  37493. type DescribeAggregateIdFormatOutput struct {
  37494. _ struct{} `type:"structure"`
  37495. // Information about each resource's ID format.
  37496. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  37497. // Indicates whether all resource types in the region are configured to use
  37498. // longer IDs. This value is only true if all users are configured to use longer
  37499. // IDs for all resources types in the region.
  37500. UseLongIdsAggregated *bool `locationName:"useLongIdsAggregated" type:"boolean"`
  37501. }
  37502. // String returns the string representation
  37503. func (s DescribeAggregateIdFormatOutput) String() string {
  37504. return awsutil.Prettify(s)
  37505. }
  37506. // GoString returns the string representation
  37507. func (s DescribeAggregateIdFormatOutput) GoString() string {
  37508. return s.String()
  37509. }
  37510. // SetStatuses sets the Statuses field's value.
  37511. func (s *DescribeAggregateIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeAggregateIdFormatOutput {
  37512. s.Statuses = v
  37513. return s
  37514. }
  37515. // SetUseLongIdsAggregated sets the UseLongIdsAggregated field's value.
  37516. func (s *DescribeAggregateIdFormatOutput) SetUseLongIdsAggregated(v bool) *DescribeAggregateIdFormatOutput {
  37517. s.UseLongIdsAggregated = &v
  37518. return s
  37519. }
  37520. type DescribeAvailabilityZonesInput struct {
  37521. _ struct{} `type:"structure"`
  37522. // Checks whether you have the required permissions for the action, without
  37523. // actually making the request, and provides an error response. If you have
  37524. // the required permissions, the error response is DryRunOperation. Otherwise,
  37525. // it is UnauthorizedOperation.
  37526. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37527. // One or more filters.
  37528. //
  37529. // * message - Information about the Availability Zone.
  37530. //
  37531. // * region-name - The name of the region for the Availability Zone (for
  37532. // example, us-east-1).
  37533. //
  37534. // * state - The state of the Availability Zone (available | information
  37535. // | impaired | unavailable).
  37536. //
  37537. // * zone-id - The ID of the Availability Zone (for example, use1-az1).
  37538. //
  37539. // * zone-name - The name of the Availability Zone (for example, us-east-1a).
  37540. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37541. // The IDs of one or more Availability Zones.
  37542. ZoneIds []*string `locationName:"ZoneId" locationNameList:"ZoneId" type:"list"`
  37543. // The names of one or more Availability Zones.
  37544. ZoneNames []*string `locationName:"ZoneName" locationNameList:"ZoneName" type:"list"`
  37545. }
  37546. // String returns the string representation
  37547. func (s DescribeAvailabilityZonesInput) String() string {
  37548. return awsutil.Prettify(s)
  37549. }
  37550. // GoString returns the string representation
  37551. func (s DescribeAvailabilityZonesInput) GoString() string {
  37552. return s.String()
  37553. }
  37554. // SetDryRun sets the DryRun field's value.
  37555. func (s *DescribeAvailabilityZonesInput) SetDryRun(v bool) *DescribeAvailabilityZonesInput {
  37556. s.DryRun = &v
  37557. return s
  37558. }
  37559. // SetFilters sets the Filters field's value.
  37560. func (s *DescribeAvailabilityZonesInput) SetFilters(v []*Filter) *DescribeAvailabilityZonesInput {
  37561. s.Filters = v
  37562. return s
  37563. }
  37564. // SetZoneIds sets the ZoneIds field's value.
  37565. func (s *DescribeAvailabilityZonesInput) SetZoneIds(v []*string) *DescribeAvailabilityZonesInput {
  37566. s.ZoneIds = v
  37567. return s
  37568. }
  37569. // SetZoneNames sets the ZoneNames field's value.
  37570. func (s *DescribeAvailabilityZonesInput) SetZoneNames(v []*string) *DescribeAvailabilityZonesInput {
  37571. s.ZoneNames = v
  37572. return s
  37573. }
  37574. type DescribeAvailabilityZonesOutput struct {
  37575. _ struct{} `type:"structure"`
  37576. // Information about one or more Availability Zones.
  37577. AvailabilityZones []*AvailabilityZone `locationName:"availabilityZoneInfo" locationNameList:"item" type:"list"`
  37578. }
  37579. // String returns the string representation
  37580. func (s DescribeAvailabilityZonesOutput) String() string {
  37581. return awsutil.Prettify(s)
  37582. }
  37583. // GoString returns the string representation
  37584. func (s DescribeAvailabilityZonesOutput) GoString() string {
  37585. return s.String()
  37586. }
  37587. // SetAvailabilityZones sets the AvailabilityZones field's value.
  37588. func (s *DescribeAvailabilityZonesOutput) SetAvailabilityZones(v []*AvailabilityZone) *DescribeAvailabilityZonesOutput {
  37589. s.AvailabilityZones = v
  37590. return s
  37591. }
  37592. // Contains the parameters for DescribeBundleTasks.
  37593. type DescribeBundleTasksInput struct {
  37594. _ struct{} `type:"structure"`
  37595. // One or more bundle task IDs.
  37596. //
  37597. // Default: Describes all your bundle tasks.
  37598. BundleIds []*string `locationName:"BundleId" locationNameList:"BundleId" type:"list"`
  37599. // Checks whether you have the required permissions for the action, without
  37600. // actually making the request, and provides an error response. If you have
  37601. // the required permissions, the error response is DryRunOperation. Otherwise,
  37602. // it is UnauthorizedOperation.
  37603. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37604. // One or more filters.
  37605. //
  37606. // * bundle-id - The ID of the bundle task.
  37607. //
  37608. // * error-code - If the task failed, the error code returned.
  37609. //
  37610. // * error-message - If the task failed, the error message returned.
  37611. //
  37612. // * instance-id - The ID of the instance.
  37613. //
  37614. // * progress - The level of task completion, as a percentage (for example,
  37615. // 20%).
  37616. //
  37617. // * s3-bucket - The Amazon S3 bucket to store the AMI.
  37618. //
  37619. // * s3-prefix - The beginning of the AMI name.
  37620. //
  37621. // * start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z).
  37622. //
  37623. // * state - The state of the task (pending | waiting-for-shutdown | bundling
  37624. // | storing | cancelling | complete | failed).
  37625. //
  37626. // * update-time - The time of the most recent update for the task.
  37627. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37628. }
  37629. // String returns the string representation
  37630. func (s DescribeBundleTasksInput) String() string {
  37631. return awsutil.Prettify(s)
  37632. }
  37633. // GoString returns the string representation
  37634. func (s DescribeBundleTasksInput) GoString() string {
  37635. return s.String()
  37636. }
  37637. // SetBundleIds sets the BundleIds field's value.
  37638. func (s *DescribeBundleTasksInput) SetBundleIds(v []*string) *DescribeBundleTasksInput {
  37639. s.BundleIds = v
  37640. return s
  37641. }
  37642. // SetDryRun sets the DryRun field's value.
  37643. func (s *DescribeBundleTasksInput) SetDryRun(v bool) *DescribeBundleTasksInput {
  37644. s.DryRun = &v
  37645. return s
  37646. }
  37647. // SetFilters sets the Filters field's value.
  37648. func (s *DescribeBundleTasksInput) SetFilters(v []*Filter) *DescribeBundleTasksInput {
  37649. s.Filters = v
  37650. return s
  37651. }
  37652. // Contains the output of DescribeBundleTasks.
  37653. type DescribeBundleTasksOutput struct {
  37654. _ struct{} `type:"structure"`
  37655. // Information about one or more bundle tasks.
  37656. BundleTasks []*BundleTask `locationName:"bundleInstanceTasksSet" locationNameList:"item" type:"list"`
  37657. }
  37658. // String returns the string representation
  37659. func (s DescribeBundleTasksOutput) String() string {
  37660. return awsutil.Prettify(s)
  37661. }
  37662. // GoString returns the string representation
  37663. func (s DescribeBundleTasksOutput) GoString() string {
  37664. return s.String()
  37665. }
  37666. // SetBundleTasks sets the BundleTasks field's value.
  37667. func (s *DescribeBundleTasksOutput) SetBundleTasks(v []*BundleTask) *DescribeBundleTasksOutput {
  37668. s.BundleTasks = v
  37669. return s
  37670. }
  37671. type DescribeByoipCidrsInput struct {
  37672. _ struct{} `type:"structure"`
  37673. // Checks whether you have the required permissions for the action, without
  37674. // actually making the request, and provides an error response. If you have
  37675. // the required permissions, the error response is DryRunOperation. Otherwise,
  37676. // it is UnauthorizedOperation.
  37677. DryRun *bool `type:"boolean"`
  37678. // The maximum number of results to return with a single call. To retrieve the
  37679. // remaining results, make another call with the returned nextToken value.
  37680. //
  37681. // MaxResults is a required field
  37682. MaxResults *int64 `min:"5" type:"integer" required:"true"`
  37683. // The token for the next page of results.
  37684. NextToken *string `min:"1" type:"string"`
  37685. }
  37686. // String returns the string representation
  37687. func (s DescribeByoipCidrsInput) String() string {
  37688. return awsutil.Prettify(s)
  37689. }
  37690. // GoString returns the string representation
  37691. func (s DescribeByoipCidrsInput) GoString() string {
  37692. return s.String()
  37693. }
  37694. // Validate inspects the fields of the type to determine if they are valid.
  37695. func (s *DescribeByoipCidrsInput) Validate() error {
  37696. invalidParams := request.ErrInvalidParams{Context: "DescribeByoipCidrsInput"}
  37697. if s.MaxResults == nil {
  37698. invalidParams.Add(request.NewErrParamRequired("MaxResults"))
  37699. }
  37700. if s.MaxResults != nil && *s.MaxResults < 5 {
  37701. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  37702. }
  37703. if s.NextToken != nil && len(*s.NextToken) < 1 {
  37704. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  37705. }
  37706. if invalidParams.Len() > 0 {
  37707. return invalidParams
  37708. }
  37709. return nil
  37710. }
  37711. // SetDryRun sets the DryRun field's value.
  37712. func (s *DescribeByoipCidrsInput) SetDryRun(v bool) *DescribeByoipCidrsInput {
  37713. s.DryRun = &v
  37714. return s
  37715. }
  37716. // SetMaxResults sets the MaxResults field's value.
  37717. func (s *DescribeByoipCidrsInput) SetMaxResults(v int64) *DescribeByoipCidrsInput {
  37718. s.MaxResults = &v
  37719. return s
  37720. }
  37721. // SetNextToken sets the NextToken field's value.
  37722. func (s *DescribeByoipCidrsInput) SetNextToken(v string) *DescribeByoipCidrsInput {
  37723. s.NextToken = &v
  37724. return s
  37725. }
  37726. type DescribeByoipCidrsOutput struct {
  37727. _ struct{} `type:"structure"`
  37728. // Information about your address ranges.
  37729. ByoipCidrs []*ByoipCidr `locationName:"byoipCidrSet" locationNameList:"item" type:"list"`
  37730. // The token to use to retrieve the next page of results. This value is null
  37731. // when there are no more results to return.
  37732. NextToken *string `locationName:"nextToken" type:"string"`
  37733. }
  37734. // String returns the string representation
  37735. func (s DescribeByoipCidrsOutput) String() string {
  37736. return awsutil.Prettify(s)
  37737. }
  37738. // GoString returns the string representation
  37739. func (s DescribeByoipCidrsOutput) GoString() string {
  37740. return s.String()
  37741. }
  37742. // SetByoipCidrs sets the ByoipCidrs field's value.
  37743. func (s *DescribeByoipCidrsOutput) SetByoipCidrs(v []*ByoipCidr) *DescribeByoipCidrsOutput {
  37744. s.ByoipCidrs = v
  37745. return s
  37746. }
  37747. // SetNextToken sets the NextToken field's value.
  37748. func (s *DescribeByoipCidrsOutput) SetNextToken(v string) *DescribeByoipCidrsOutput {
  37749. s.NextToken = &v
  37750. return s
  37751. }
  37752. type DescribeCapacityReservationsInput struct {
  37753. _ struct{} `type:"structure"`
  37754. // The ID of the Capacity Reservation.
  37755. CapacityReservationIds []*string `locationName:"CapacityReservationId" locationNameList:"item" type:"list"`
  37756. // Checks whether you have the required permissions for the action, without
  37757. // actually making the request, and provides an error response. If you have
  37758. // the required permissions, the error response is DryRunOperation. Otherwise,
  37759. // it is UnauthorizedOperation.
  37760. DryRun *bool `type:"boolean"`
  37761. // One or more filters.
  37762. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37763. // The maximum number of results to return for the request in a single page.
  37764. // The remaining results can be seen by sending another request with the returned
  37765. // nextToken value.
  37766. MaxResults *int64 `type:"integer"`
  37767. // The token to retrieve the next page of results.
  37768. NextToken *string `type:"string"`
  37769. }
  37770. // String returns the string representation
  37771. func (s DescribeCapacityReservationsInput) String() string {
  37772. return awsutil.Prettify(s)
  37773. }
  37774. // GoString returns the string representation
  37775. func (s DescribeCapacityReservationsInput) GoString() string {
  37776. return s.String()
  37777. }
  37778. // SetCapacityReservationIds sets the CapacityReservationIds field's value.
  37779. func (s *DescribeCapacityReservationsInput) SetCapacityReservationIds(v []*string) *DescribeCapacityReservationsInput {
  37780. s.CapacityReservationIds = v
  37781. return s
  37782. }
  37783. // SetDryRun sets the DryRun field's value.
  37784. func (s *DescribeCapacityReservationsInput) SetDryRun(v bool) *DescribeCapacityReservationsInput {
  37785. s.DryRun = &v
  37786. return s
  37787. }
  37788. // SetFilters sets the Filters field's value.
  37789. func (s *DescribeCapacityReservationsInput) SetFilters(v []*Filter) *DescribeCapacityReservationsInput {
  37790. s.Filters = v
  37791. return s
  37792. }
  37793. // SetMaxResults sets the MaxResults field's value.
  37794. func (s *DescribeCapacityReservationsInput) SetMaxResults(v int64) *DescribeCapacityReservationsInput {
  37795. s.MaxResults = &v
  37796. return s
  37797. }
  37798. // SetNextToken sets the NextToken field's value.
  37799. func (s *DescribeCapacityReservationsInput) SetNextToken(v string) *DescribeCapacityReservationsInput {
  37800. s.NextToken = &v
  37801. return s
  37802. }
  37803. type DescribeCapacityReservationsOutput struct {
  37804. _ struct{} `type:"structure"`
  37805. // Information about the Capacity Reservations.
  37806. CapacityReservations []*CapacityReservation `locationName:"capacityReservationSet" locationNameList:"item" type:"list"`
  37807. // The token to use to retrieve the next page of results. This value is null
  37808. // when there are no more results to return.
  37809. NextToken *string `locationName:"nextToken" type:"string"`
  37810. }
  37811. // String returns the string representation
  37812. func (s DescribeCapacityReservationsOutput) String() string {
  37813. return awsutil.Prettify(s)
  37814. }
  37815. // GoString returns the string representation
  37816. func (s DescribeCapacityReservationsOutput) GoString() string {
  37817. return s.String()
  37818. }
  37819. // SetCapacityReservations sets the CapacityReservations field's value.
  37820. func (s *DescribeCapacityReservationsOutput) SetCapacityReservations(v []*CapacityReservation) *DescribeCapacityReservationsOutput {
  37821. s.CapacityReservations = v
  37822. return s
  37823. }
  37824. // SetNextToken sets the NextToken field's value.
  37825. func (s *DescribeCapacityReservationsOutput) SetNextToken(v string) *DescribeCapacityReservationsOutput {
  37826. s.NextToken = &v
  37827. return s
  37828. }
  37829. type DescribeClassicLinkInstancesInput struct {
  37830. _ struct{} `type:"structure"`
  37831. // Checks whether you have the required permissions for the action, without
  37832. // actually making the request, and provides an error response. If you have
  37833. // the required permissions, the error response is DryRunOperation. Otherwise,
  37834. // it is UnauthorizedOperation.
  37835. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37836. // One or more filters.
  37837. //
  37838. // * group-id - The ID of a VPC security group that's associated with the
  37839. // instance.
  37840. //
  37841. // * instance-id - The ID of the instance.
  37842. //
  37843. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  37844. // Use the tag key in the filter name and the tag value as the filter value.
  37845. // For example, to find all resources that have a tag with the key Owner
  37846. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  37847. // the filter value.
  37848. //
  37849. // * tag-key - The key of a tag assigned to the resource. Use this filter
  37850. // to find all resources assigned a tag with a specific key, regardless of
  37851. // the tag value.
  37852. //
  37853. // * vpc-id - The ID of the VPC to which the instance is linked.
  37854. //
  37855. // vpc-id - The ID of the VPC that the instance is linked to.
  37856. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37857. // One or more instance IDs. Must be instances linked to a VPC through ClassicLink.
  37858. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  37859. // The maximum number of results to return for the request in a single page.
  37860. // The remaining results of the initial request can be seen by sending another
  37861. // request with the returned NextToken value. This value can be between 5 and
  37862. // 1000. If MaxResults is given a value larger than 1000, only 1000 results
  37863. // are returned. You cannot specify this parameter and the instance IDs parameter
  37864. // in the same request.
  37865. //
  37866. // Constraint: If the value is greater than 1000, we return only 1000 items.
  37867. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  37868. // The token to retrieve the next page of results.
  37869. NextToken *string `locationName:"nextToken" type:"string"`
  37870. }
  37871. // String returns the string representation
  37872. func (s DescribeClassicLinkInstancesInput) String() string {
  37873. return awsutil.Prettify(s)
  37874. }
  37875. // GoString returns the string representation
  37876. func (s DescribeClassicLinkInstancesInput) GoString() string {
  37877. return s.String()
  37878. }
  37879. // SetDryRun sets the DryRun field's value.
  37880. func (s *DescribeClassicLinkInstancesInput) SetDryRun(v bool) *DescribeClassicLinkInstancesInput {
  37881. s.DryRun = &v
  37882. return s
  37883. }
  37884. // SetFilters sets the Filters field's value.
  37885. func (s *DescribeClassicLinkInstancesInput) SetFilters(v []*Filter) *DescribeClassicLinkInstancesInput {
  37886. s.Filters = v
  37887. return s
  37888. }
  37889. // SetInstanceIds sets the InstanceIds field's value.
  37890. func (s *DescribeClassicLinkInstancesInput) SetInstanceIds(v []*string) *DescribeClassicLinkInstancesInput {
  37891. s.InstanceIds = v
  37892. return s
  37893. }
  37894. // SetMaxResults sets the MaxResults field's value.
  37895. func (s *DescribeClassicLinkInstancesInput) SetMaxResults(v int64) *DescribeClassicLinkInstancesInput {
  37896. s.MaxResults = &v
  37897. return s
  37898. }
  37899. // SetNextToken sets the NextToken field's value.
  37900. func (s *DescribeClassicLinkInstancesInput) SetNextToken(v string) *DescribeClassicLinkInstancesInput {
  37901. s.NextToken = &v
  37902. return s
  37903. }
  37904. type DescribeClassicLinkInstancesOutput struct {
  37905. _ struct{} `type:"structure"`
  37906. // Information about one or more linked EC2-Classic instances.
  37907. Instances []*ClassicLinkInstance `locationName:"instancesSet" locationNameList:"item" type:"list"`
  37908. // The token to use to retrieve the next page of results. This value is null
  37909. // when there are no more results to return.
  37910. NextToken *string `locationName:"nextToken" type:"string"`
  37911. }
  37912. // String returns the string representation
  37913. func (s DescribeClassicLinkInstancesOutput) String() string {
  37914. return awsutil.Prettify(s)
  37915. }
  37916. // GoString returns the string representation
  37917. func (s DescribeClassicLinkInstancesOutput) GoString() string {
  37918. return s.String()
  37919. }
  37920. // SetInstances sets the Instances field's value.
  37921. func (s *DescribeClassicLinkInstancesOutput) SetInstances(v []*ClassicLinkInstance) *DescribeClassicLinkInstancesOutput {
  37922. s.Instances = v
  37923. return s
  37924. }
  37925. // SetNextToken sets the NextToken field's value.
  37926. func (s *DescribeClassicLinkInstancesOutput) SetNextToken(v string) *DescribeClassicLinkInstancesOutput {
  37927. s.NextToken = &v
  37928. return s
  37929. }
  37930. type DescribeClientVpnAuthorizationRulesInput struct {
  37931. _ struct{} `type:"structure"`
  37932. // The ID of the Client VPN endpoint.
  37933. //
  37934. // ClientVpnEndpointId is a required field
  37935. ClientVpnEndpointId *string `type:"string" required:"true"`
  37936. // Checks whether you have the required permissions for the action, without
  37937. // actually making the request, and provides an error response. If you have
  37938. // the required permissions, the error response is DryRunOperation. Otherwise,
  37939. // it is UnauthorizedOperation.
  37940. DryRun *bool `type:"boolean"`
  37941. // One or more filters. Filter names and values are case-sensitive.
  37942. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37943. // The maximum number of results to return for the request in a single page.
  37944. // The remaining results can be seen by sending another request with the nextToken
  37945. // value.
  37946. MaxResults *int64 `min:"5" type:"integer"`
  37947. // The token to retrieve the next page of results.
  37948. NextToken *string `min:"1" type:"string"`
  37949. }
  37950. // String returns the string representation
  37951. func (s DescribeClientVpnAuthorizationRulesInput) String() string {
  37952. return awsutil.Prettify(s)
  37953. }
  37954. // GoString returns the string representation
  37955. func (s DescribeClientVpnAuthorizationRulesInput) GoString() string {
  37956. return s.String()
  37957. }
  37958. // Validate inspects the fields of the type to determine if they are valid.
  37959. func (s *DescribeClientVpnAuthorizationRulesInput) Validate() error {
  37960. invalidParams := request.ErrInvalidParams{Context: "DescribeClientVpnAuthorizationRulesInput"}
  37961. if s.ClientVpnEndpointId == nil {
  37962. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  37963. }
  37964. if s.MaxResults != nil && *s.MaxResults < 5 {
  37965. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  37966. }
  37967. if s.NextToken != nil && len(*s.NextToken) < 1 {
  37968. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  37969. }
  37970. if invalidParams.Len() > 0 {
  37971. return invalidParams
  37972. }
  37973. return nil
  37974. }
  37975. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  37976. func (s *DescribeClientVpnAuthorizationRulesInput) SetClientVpnEndpointId(v string) *DescribeClientVpnAuthorizationRulesInput {
  37977. s.ClientVpnEndpointId = &v
  37978. return s
  37979. }
  37980. // SetDryRun sets the DryRun field's value.
  37981. func (s *DescribeClientVpnAuthorizationRulesInput) SetDryRun(v bool) *DescribeClientVpnAuthorizationRulesInput {
  37982. s.DryRun = &v
  37983. return s
  37984. }
  37985. // SetFilters sets the Filters field's value.
  37986. func (s *DescribeClientVpnAuthorizationRulesInput) SetFilters(v []*Filter) *DescribeClientVpnAuthorizationRulesInput {
  37987. s.Filters = v
  37988. return s
  37989. }
  37990. // SetMaxResults sets the MaxResults field's value.
  37991. func (s *DescribeClientVpnAuthorizationRulesInput) SetMaxResults(v int64) *DescribeClientVpnAuthorizationRulesInput {
  37992. s.MaxResults = &v
  37993. return s
  37994. }
  37995. // SetNextToken sets the NextToken field's value.
  37996. func (s *DescribeClientVpnAuthorizationRulesInput) SetNextToken(v string) *DescribeClientVpnAuthorizationRulesInput {
  37997. s.NextToken = &v
  37998. return s
  37999. }
  38000. type DescribeClientVpnAuthorizationRulesOutput struct {
  38001. _ struct{} `type:"structure"`
  38002. // Information about the authorization rules.
  38003. AuthorizationRules []*AuthorizationRule `locationName:"authorizationRule" locationNameList:"item" type:"list"`
  38004. // The token to use to retrieve the next page of results. This value is null
  38005. // when there are no more results to return.
  38006. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  38007. }
  38008. // String returns the string representation
  38009. func (s DescribeClientVpnAuthorizationRulesOutput) String() string {
  38010. return awsutil.Prettify(s)
  38011. }
  38012. // GoString returns the string representation
  38013. func (s DescribeClientVpnAuthorizationRulesOutput) GoString() string {
  38014. return s.String()
  38015. }
  38016. // SetAuthorizationRules sets the AuthorizationRules field's value.
  38017. func (s *DescribeClientVpnAuthorizationRulesOutput) SetAuthorizationRules(v []*AuthorizationRule) *DescribeClientVpnAuthorizationRulesOutput {
  38018. s.AuthorizationRules = v
  38019. return s
  38020. }
  38021. // SetNextToken sets the NextToken field's value.
  38022. func (s *DescribeClientVpnAuthorizationRulesOutput) SetNextToken(v string) *DescribeClientVpnAuthorizationRulesOutput {
  38023. s.NextToken = &v
  38024. return s
  38025. }
  38026. type DescribeClientVpnConnectionsInput struct {
  38027. _ struct{} `type:"structure"`
  38028. // The ID of the Client VPN endpoint.
  38029. //
  38030. // ClientVpnEndpointId is a required field
  38031. ClientVpnEndpointId *string `type:"string" required:"true"`
  38032. // Checks whether you have the required permissions for the action, without
  38033. // actually making the request, and provides an error response. If you have
  38034. // the required permissions, the error response is DryRunOperation. Otherwise,
  38035. // it is UnauthorizedOperation.
  38036. DryRun *bool `type:"boolean"`
  38037. // One or more filters. Filter names and values are case-sensitive.
  38038. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38039. // The maximum number of results to return for the request in a single page.
  38040. // The remaining results can be seen by sending another request with the nextToken
  38041. // value.
  38042. MaxResults *int64 `min:"5" type:"integer"`
  38043. // The token to retrieve the next page of results.
  38044. NextToken *string `min:"1" type:"string"`
  38045. }
  38046. // String returns the string representation
  38047. func (s DescribeClientVpnConnectionsInput) String() string {
  38048. return awsutil.Prettify(s)
  38049. }
  38050. // GoString returns the string representation
  38051. func (s DescribeClientVpnConnectionsInput) GoString() string {
  38052. return s.String()
  38053. }
  38054. // Validate inspects the fields of the type to determine if they are valid.
  38055. func (s *DescribeClientVpnConnectionsInput) Validate() error {
  38056. invalidParams := request.ErrInvalidParams{Context: "DescribeClientVpnConnectionsInput"}
  38057. if s.ClientVpnEndpointId == nil {
  38058. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  38059. }
  38060. if s.MaxResults != nil && *s.MaxResults < 5 {
  38061. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  38062. }
  38063. if s.NextToken != nil && len(*s.NextToken) < 1 {
  38064. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  38065. }
  38066. if invalidParams.Len() > 0 {
  38067. return invalidParams
  38068. }
  38069. return nil
  38070. }
  38071. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  38072. func (s *DescribeClientVpnConnectionsInput) SetClientVpnEndpointId(v string) *DescribeClientVpnConnectionsInput {
  38073. s.ClientVpnEndpointId = &v
  38074. return s
  38075. }
  38076. // SetDryRun sets the DryRun field's value.
  38077. func (s *DescribeClientVpnConnectionsInput) SetDryRun(v bool) *DescribeClientVpnConnectionsInput {
  38078. s.DryRun = &v
  38079. return s
  38080. }
  38081. // SetFilters sets the Filters field's value.
  38082. func (s *DescribeClientVpnConnectionsInput) SetFilters(v []*Filter) *DescribeClientVpnConnectionsInput {
  38083. s.Filters = v
  38084. return s
  38085. }
  38086. // SetMaxResults sets the MaxResults field's value.
  38087. func (s *DescribeClientVpnConnectionsInput) SetMaxResults(v int64) *DescribeClientVpnConnectionsInput {
  38088. s.MaxResults = &v
  38089. return s
  38090. }
  38091. // SetNextToken sets the NextToken field's value.
  38092. func (s *DescribeClientVpnConnectionsInput) SetNextToken(v string) *DescribeClientVpnConnectionsInput {
  38093. s.NextToken = &v
  38094. return s
  38095. }
  38096. type DescribeClientVpnConnectionsOutput struct {
  38097. _ struct{} `type:"structure"`
  38098. // Information about the active and terminated client connections.
  38099. Connections []*ClientVpnConnection `locationName:"connections" locationNameList:"item" type:"list"`
  38100. // The token to use to retrieve the next page of results. This value is null
  38101. // when there are no more results to return.
  38102. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  38103. }
  38104. // String returns the string representation
  38105. func (s DescribeClientVpnConnectionsOutput) String() string {
  38106. return awsutil.Prettify(s)
  38107. }
  38108. // GoString returns the string representation
  38109. func (s DescribeClientVpnConnectionsOutput) GoString() string {
  38110. return s.String()
  38111. }
  38112. // SetConnections sets the Connections field's value.
  38113. func (s *DescribeClientVpnConnectionsOutput) SetConnections(v []*ClientVpnConnection) *DescribeClientVpnConnectionsOutput {
  38114. s.Connections = v
  38115. return s
  38116. }
  38117. // SetNextToken sets the NextToken field's value.
  38118. func (s *DescribeClientVpnConnectionsOutput) SetNextToken(v string) *DescribeClientVpnConnectionsOutput {
  38119. s.NextToken = &v
  38120. return s
  38121. }
  38122. type DescribeClientVpnEndpointsInput struct {
  38123. _ struct{} `type:"structure"`
  38124. // The ID of the Client VPN endpoint.
  38125. ClientVpnEndpointIds []*string `locationName:"ClientVpnEndpointId" locationNameList:"item" type:"list"`
  38126. // Checks whether you have the required permissions for the action, without
  38127. // actually making the request, and provides an error response. If you have
  38128. // the required permissions, the error response is DryRunOperation. Otherwise,
  38129. // it is UnauthorizedOperation.
  38130. DryRun *bool `type:"boolean"`
  38131. // One or more filters. Filter names and values are case-sensitive.
  38132. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38133. // The maximum number of results to return for the request in a single page.
  38134. // The remaining results can be seen by sending another request with the nextToken
  38135. // value.
  38136. MaxResults *int64 `min:"5" type:"integer"`
  38137. // The token to retrieve the next page of results.
  38138. NextToken *string `min:"1" type:"string"`
  38139. }
  38140. // String returns the string representation
  38141. func (s DescribeClientVpnEndpointsInput) String() string {
  38142. return awsutil.Prettify(s)
  38143. }
  38144. // GoString returns the string representation
  38145. func (s DescribeClientVpnEndpointsInput) GoString() string {
  38146. return s.String()
  38147. }
  38148. // Validate inspects the fields of the type to determine if they are valid.
  38149. func (s *DescribeClientVpnEndpointsInput) Validate() error {
  38150. invalidParams := request.ErrInvalidParams{Context: "DescribeClientVpnEndpointsInput"}
  38151. if s.MaxResults != nil && *s.MaxResults < 5 {
  38152. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  38153. }
  38154. if s.NextToken != nil && len(*s.NextToken) < 1 {
  38155. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  38156. }
  38157. if invalidParams.Len() > 0 {
  38158. return invalidParams
  38159. }
  38160. return nil
  38161. }
  38162. // SetClientVpnEndpointIds sets the ClientVpnEndpointIds field's value.
  38163. func (s *DescribeClientVpnEndpointsInput) SetClientVpnEndpointIds(v []*string) *DescribeClientVpnEndpointsInput {
  38164. s.ClientVpnEndpointIds = v
  38165. return s
  38166. }
  38167. // SetDryRun sets the DryRun field's value.
  38168. func (s *DescribeClientVpnEndpointsInput) SetDryRun(v bool) *DescribeClientVpnEndpointsInput {
  38169. s.DryRun = &v
  38170. return s
  38171. }
  38172. // SetFilters sets the Filters field's value.
  38173. func (s *DescribeClientVpnEndpointsInput) SetFilters(v []*Filter) *DescribeClientVpnEndpointsInput {
  38174. s.Filters = v
  38175. return s
  38176. }
  38177. // SetMaxResults sets the MaxResults field's value.
  38178. func (s *DescribeClientVpnEndpointsInput) SetMaxResults(v int64) *DescribeClientVpnEndpointsInput {
  38179. s.MaxResults = &v
  38180. return s
  38181. }
  38182. // SetNextToken sets the NextToken field's value.
  38183. func (s *DescribeClientVpnEndpointsInput) SetNextToken(v string) *DescribeClientVpnEndpointsInput {
  38184. s.NextToken = &v
  38185. return s
  38186. }
  38187. type DescribeClientVpnEndpointsOutput struct {
  38188. _ struct{} `type:"structure"`
  38189. // Information about the Client VPN endpoints.
  38190. ClientVpnEndpoints []*ClientVpnEndpoint `locationName:"clientVpnEndpoint" locationNameList:"item" type:"list"`
  38191. // The token to use to retrieve the next page of results. This value is null
  38192. // when there are no more results to return.
  38193. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  38194. }
  38195. // String returns the string representation
  38196. func (s DescribeClientVpnEndpointsOutput) String() string {
  38197. return awsutil.Prettify(s)
  38198. }
  38199. // GoString returns the string representation
  38200. func (s DescribeClientVpnEndpointsOutput) GoString() string {
  38201. return s.String()
  38202. }
  38203. // SetClientVpnEndpoints sets the ClientVpnEndpoints field's value.
  38204. func (s *DescribeClientVpnEndpointsOutput) SetClientVpnEndpoints(v []*ClientVpnEndpoint) *DescribeClientVpnEndpointsOutput {
  38205. s.ClientVpnEndpoints = v
  38206. return s
  38207. }
  38208. // SetNextToken sets the NextToken field's value.
  38209. func (s *DescribeClientVpnEndpointsOutput) SetNextToken(v string) *DescribeClientVpnEndpointsOutput {
  38210. s.NextToken = &v
  38211. return s
  38212. }
  38213. type DescribeClientVpnRoutesInput struct {
  38214. _ struct{} `type:"structure"`
  38215. // The ID of the Client VPN endpoint.
  38216. //
  38217. // ClientVpnEndpointId is a required field
  38218. ClientVpnEndpointId *string `type:"string" required:"true"`
  38219. // Checks whether you have the required permissions for the action, without
  38220. // actually making the request, and provides an error response. If you have
  38221. // the required permissions, the error response is DryRunOperation. Otherwise,
  38222. // it is UnauthorizedOperation.
  38223. DryRun *bool `type:"boolean"`
  38224. // One or more filters. Filter names and values are case-sensitive.
  38225. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38226. // The maximum number of results to return for the request in a single page.
  38227. // The remaining results can be seen by sending another request with the nextToken
  38228. // value.
  38229. MaxResults *int64 `min:"5" type:"integer"`
  38230. // The token to retrieve the next page of results.
  38231. NextToken *string `min:"1" type:"string"`
  38232. }
  38233. // String returns the string representation
  38234. func (s DescribeClientVpnRoutesInput) String() string {
  38235. return awsutil.Prettify(s)
  38236. }
  38237. // GoString returns the string representation
  38238. func (s DescribeClientVpnRoutesInput) GoString() string {
  38239. return s.String()
  38240. }
  38241. // Validate inspects the fields of the type to determine if they are valid.
  38242. func (s *DescribeClientVpnRoutesInput) Validate() error {
  38243. invalidParams := request.ErrInvalidParams{Context: "DescribeClientVpnRoutesInput"}
  38244. if s.ClientVpnEndpointId == nil {
  38245. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  38246. }
  38247. if s.MaxResults != nil && *s.MaxResults < 5 {
  38248. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  38249. }
  38250. if s.NextToken != nil && len(*s.NextToken) < 1 {
  38251. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  38252. }
  38253. if invalidParams.Len() > 0 {
  38254. return invalidParams
  38255. }
  38256. return nil
  38257. }
  38258. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  38259. func (s *DescribeClientVpnRoutesInput) SetClientVpnEndpointId(v string) *DescribeClientVpnRoutesInput {
  38260. s.ClientVpnEndpointId = &v
  38261. return s
  38262. }
  38263. // SetDryRun sets the DryRun field's value.
  38264. func (s *DescribeClientVpnRoutesInput) SetDryRun(v bool) *DescribeClientVpnRoutesInput {
  38265. s.DryRun = &v
  38266. return s
  38267. }
  38268. // SetFilters sets the Filters field's value.
  38269. func (s *DescribeClientVpnRoutesInput) SetFilters(v []*Filter) *DescribeClientVpnRoutesInput {
  38270. s.Filters = v
  38271. return s
  38272. }
  38273. // SetMaxResults sets the MaxResults field's value.
  38274. func (s *DescribeClientVpnRoutesInput) SetMaxResults(v int64) *DescribeClientVpnRoutesInput {
  38275. s.MaxResults = &v
  38276. return s
  38277. }
  38278. // SetNextToken sets the NextToken field's value.
  38279. func (s *DescribeClientVpnRoutesInput) SetNextToken(v string) *DescribeClientVpnRoutesInput {
  38280. s.NextToken = &v
  38281. return s
  38282. }
  38283. type DescribeClientVpnRoutesOutput struct {
  38284. _ struct{} `type:"structure"`
  38285. // The token to use to retrieve the next page of results. This value is null
  38286. // when there are no more results to return.
  38287. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  38288. // Information about the Client VPN endpoint routes.
  38289. Routes []*ClientVpnRoute `locationName:"routes" locationNameList:"item" type:"list"`
  38290. }
  38291. // String returns the string representation
  38292. func (s DescribeClientVpnRoutesOutput) String() string {
  38293. return awsutil.Prettify(s)
  38294. }
  38295. // GoString returns the string representation
  38296. func (s DescribeClientVpnRoutesOutput) GoString() string {
  38297. return s.String()
  38298. }
  38299. // SetNextToken sets the NextToken field's value.
  38300. func (s *DescribeClientVpnRoutesOutput) SetNextToken(v string) *DescribeClientVpnRoutesOutput {
  38301. s.NextToken = &v
  38302. return s
  38303. }
  38304. // SetRoutes sets the Routes field's value.
  38305. func (s *DescribeClientVpnRoutesOutput) SetRoutes(v []*ClientVpnRoute) *DescribeClientVpnRoutesOutput {
  38306. s.Routes = v
  38307. return s
  38308. }
  38309. type DescribeClientVpnTargetNetworksInput struct {
  38310. _ struct{} `type:"structure"`
  38311. // The IDs of the target network associations.
  38312. AssociationIds []*string `locationNameList:"item" type:"list"`
  38313. // The ID of the Client VPN endpoint.
  38314. //
  38315. // ClientVpnEndpointId is a required field
  38316. ClientVpnEndpointId *string `type:"string" required:"true"`
  38317. // Checks whether you have the required permissions for the action, without
  38318. // actually making the request, and provides an error response. If you have
  38319. // the required permissions, the error response is DryRunOperation. Otherwise,
  38320. // it is UnauthorizedOperation.
  38321. DryRun *bool `type:"boolean"`
  38322. // One or more filters. Filter names and values are case-sensitive.
  38323. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38324. // The maximum number of results to return for the request in a single page.
  38325. // The remaining results can be seen by sending another request with the nextToken
  38326. // value.
  38327. MaxResults *int64 `min:"5" type:"integer"`
  38328. // The token to retrieve the next page of results.
  38329. NextToken *string `min:"1" type:"string"`
  38330. }
  38331. // String returns the string representation
  38332. func (s DescribeClientVpnTargetNetworksInput) String() string {
  38333. return awsutil.Prettify(s)
  38334. }
  38335. // GoString returns the string representation
  38336. func (s DescribeClientVpnTargetNetworksInput) GoString() string {
  38337. return s.String()
  38338. }
  38339. // Validate inspects the fields of the type to determine if they are valid.
  38340. func (s *DescribeClientVpnTargetNetworksInput) Validate() error {
  38341. invalidParams := request.ErrInvalidParams{Context: "DescribeClientVpnTargetNetworksInput"}
  38342. if s.ClientVpnEndpointId == nil {
  38343. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  38344. }
  38345. if s.MaxResults != nil && *s.MaxResults < 5 {
  38346. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  38347. }
  38348. if s.NextToken != nil && len(*s.NextToken) < 1 {
  38349. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  38350. }
  38351. if invalidParams.Len() > 0 {
  38352. return invalidParams
  38353. }
  38354. return nil
  38355. }
  38356. // SetAssociationIds sets the AssociationIds field's value.
  38357. func (s *DescribeClientVpnTargetNetworksInput) SetAssociationIds(v []*string) *DescribeClientVpnTargetNetworksInput {
  38358. s.AssociationIds = v
  38359. return s
  38360. }
  38361. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  38362. func (s *DescribeClientVpnTargetNetworksInput) SetClientVpnEndpointId(v string) *DescribeClientVpnTargetNetworksInput {
  38363. s.ClientVpnEndpointId = &v
  38364. return s
  38365. }
  38366. // SetDryRun sets the DryRun field's value.
  38367. func (s *DescribeClientVpnTargetNetworksInput) SetDryRun(v bool) *DescribeClientVpnTargetNetworksInput {
  38368. s.DryRun = &v
  38369. return s
  38370. }
  38371. // SetFilters sets the Filters field's value.
  38372. func (s *DescribeClientVpnTargetNetworksInput) SetFilters(v []*Filter) *DescribeClientVpnTargetNetworksInput {
  38373. s.Filters = v
  38374. return s
  38375. }
  38376. // SetMaxResults sets the MaxResults field's value.
  38377. func (s *DescribeClientVpnTargetNetworksInput) SetMaxResults(v int64) *DescribeClientVpnTargetNetworksInput {
  38378. s.MaxResults = &v
  38379. return s
  38380. }
  38381. // SetNextToken sets the NextToken field's value.
  38382. func (s *DescribeClientVpnTargetNetworksInput) SetNextToken(v string) *DescribeClientVpnTargetNetworksInput {
  38383. s.NextToken = &v
  38384. return s
  38385. }
  38386. type DescribeClientVpnTargetNetworksOutput struct {
  38387. _ struct{} `type:"structure"`
  38388. // Information about the associated target networks.
  38389. ClientVpnTargetNetworks []*TargetNetwork `locationName:"clientVpnTargetNetworks" locationNameList:"item" type:"list"`
  38390. // The token to use to retrieve the next page of results. This value is null
  38391. // when there are no more results to return.
  38392. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  38393. }
  38394. // String returns the string representation
  38395. func (s DescribeClientVpnTargetNetworksOutput) String() string {
  38396. return awsutil.Prettify(s)
  38397. }
  38398. // GoString returns the string representation
  38399. func (s DescribeClientVpnTargetNetworksOutput) GoString() string {
  38400. return s.String()
  38401. }
  38402. // SetClientVpnTargetNetworks sets the ClientVpnTargetNetworks field's value.
  38403. func (s *DescribeClientVpnTargetNetworksOutput) SetClientVpnTargetNetworks(v []*TargetNetwork) *DescribeClientVpnTargetNetworksOutput {
  38404. s.ClientVpnTargetNetworks = v
  38405. return s
  38406. }
  38407. // SetNextToken sets the NextToken field's value.
  38408. func (s *DescribeClientVpnTargetNetworksOutput) SetNextToken(v string) *DescribeClientVpnTargetNetworksOutput {
  38409. s.NextToken = &v
  38410. return s
  38411. }
  38412. // Contains the parameters for DescribeConversionTasks.
  38413. type DescribeConversionTasksInput struct {
  38414. _ struct{} `type:"structure"`
  38415. // One or more conversion task IDs.
  38416. ConversionTaskIds []*string `locationName:"conversionTaskId" locationNameList:"item" type:"list"`
  38417. // Checks whether you have the required permissions for the action, without
  38418. // actually making the request, and provides an error response. If you have
  38419. // the required permissions, the error response is DryRunOperation. Otherwise,
  38420. // it is UnauthorizedOperation.
  38421. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38422. }
  38423. // String returns the string representation
  38424. func (s DescribeConversionTasksInput) String() string {
  38425. return awsutil.Prettify(s)
  38426. }
  38427. // GoString returns the string representation
  38428. func (s DescribeConversionTasksInput) GoString() string {
  38429. return s.String()
  38430. }
  38431. // SetConversionTaskIds sets the ConversionTaskIds field's value.
  38432. func (s *DescribeConversionTasksInput) SetConversionTaskIds(v []*string) *DescribeConversionTasksInput {
  38433. s.ConversionTaskIds = v
  38434. return s
  38435. }
  38436. // SetDryRun sets the DryRun field's value.
  38437. func (s *DescribeConversionTasksInput) SetDryRun(v bool) *DescribeConversionTasksInput {
  38438. s.DryRun = &v
  38439. return s
  38440. }
  38441. // Contains the output for DescribeConversionTasks.
  38442. type DescribeConversionTasksOutput struct {
  38443. _ struct{} `type:"structure"`
  38444. // Information about the conversion tasks.
  38445. ConversionTasks []*ConversionTask `locationName:"conversionTasks" locationNameList:"item" type:"list"`
  38446. }
  38447. // String returns the string representation
  38448. func (s DescribeConversionTasksOutput) String() string {
  38449. return awsutil.Prettify(s)
  38450. }
  38451. // GoString returns the string representation
  38452. func (s DescribeConversionTasksOutput) GoString() string {
  38453. return s.String()
  38454. }
  38455. // SetConversionTasks sets the ConversionTasks field's value.
  38456. func (s *DescribeConversionTasksOutput) SetConversionTasks(v []*ConversionTask) *DescribeConversionTasksOutput {
  38457. s.ConversionTasks = v
  38458. return s
  38459. }
  38460. // Contains the parameters for DescribeCustomerGateways.
  38461. type DescribeCustomerGatewaysInput struct {
  38462. _ struct{} `type:"structure"`
  38463. // One or more customer gateway IDs.
  38464. //
  38465. // Default: Describes all your customer gateways.
  38466. CustomerGatewayIds []*string `locationName:"CustomerGatewayId" locationNameList:"CustomerGatewayId" type:"list"`
  38467. // Checks whether you have the required permissions for the action, without
  38468. // actually making the request, and provides an error response. If you have
  38469. // the required permissions, the error response is DryRunOperation. Otherwise,
  38470. // it is UnauthorizedOperation.
  38471. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38472. // One or more filters.
  38473. //
  38474. // * bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous
  38475. // System Number (ASN).
  38476. //
  38477. // * customer-gateway-id - The ID of the customer gateway.
  38478. //
  38479. // * ip-address - The IP address of the customer gateway's Internet-routable
  38480. // external interface.
  38481. //
  38482. // * state - The state of the customer gateway (pending | available | deleting
  38483. // | deleted).
  38484. //
  38485. // * type - The type of customer gateway. Currently, the only supported type
  38486. // is ipsec.1.
  38487. //
  38488. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  38489. // Use the tag key in the filter name and the tag value as the filter value.
  38490. // For example, to find all resources that have a tag with the key Owner
  38491. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  38492. // the filter value.
  38493. //
  38494. // * tag-key - The key of a tag assigned to the resource. Use this filter
  38495. // to find all resources assigned a tag with a specific key, regardless of
  38496. // the tag value.
  38497. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38498. }
  38499. // String returns the string representation
  38500. func (s DescribeCustomerGatewaysInput) String() string {
  38501. return awsutil.Prettify(s)
  38502. }
  38503. // GoString returns the string representation
  38504. func (s DescribeCustomerGatewaysInput) GoString() string {
  38505. return s.String()
  38506. }
  38507. // SetCustomerGatewayIds sets the CustomerGatewayIds field's value.
  38508. func (s *DescribeCustomerGatewaysInput) SetCustomerGatewayIds(v []*string) *DescribeCustomerGatewaysInput {
  38509. s.CustomerGatewayIds = v
  38510. return s
  38511. }
  38512. // SetDryRun sets the DryRun field's value.
  38513. func (s *DescribeCustomerGatewaysInput) SetDryRun(v bool) *DescribeCustomerGatewaysInput {
  38514. s.DryRun = &v
  38515. return s
  38516. }
  38517. // SetFilters sets the Filters field's value.
  38518. func (s *DescribeCustomerGatewaysInput) SetFilters(v []*Filter) *DescribeCustomerGatewaysInput {
  38519. s.Filters = v
  38520. return s
  38521. }
  38522. // Contains the output of DescribeCustomerGateways.
  38523. type DescribeCustomerGatewaysOutput struct {
  38524. _ struct{} `type:"structure"`
  38525. // Information about one or more customer gateways.
  38526. CustomerGateways []*CustomerGateway `locationName:"customerGatewaySet" locationNameList:"item" type:"list"`
  38527. }
  38528. // String returns the string representation
  38529. func (s DescribeCustomerGatewaysOutput) String() string {
  38530. return awsutil.Prettify(s)
  38531. }
  38532. // GoString returns the string representation
  38533. func (s DescribeCustomerGatewaysOutput) GoString() string {
  38534. return s.String()
  38535. }
  38536. // SetCustomerGateways sets the CustomerGateways field's value.
  38537. func (s *DescribeCustomerGatewaysOutput) SetCustomerGateways(v []*CustomerGateway) *DescribeCustomerGatewaysOutput {
  38538. s.CustomerGateways = v
  38539. return s
  38540. }
  38541. type DescribeDhcpOptionsInput struct {
  38542. _ struct{} `type:"structure"`
  38543. // The IDs of one or more DHCP options sets.
  38544. //
  38545. // Default: Describes all your DHCP options sets.
  38546. DhcpOptionsIds []*string `locationName:"DhcpOptionsId" locationNameList:"DhcpOptionsId" type:"list"`
  38547. // Checks whether you have the required permissions for the action, without
  38548. // actually making the request, and provides an error response. If you have
  38549. // the required permissions, the error response is DryRunOperation. Otherwise,
  38550. // it is UnauthorizedOperation.
  38551. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38552. // One or more filters.
  38553. //
  38554. // * dhcp-options-id - The ID of a DHCP options set.
  38555. //
  38556. // * key - The key for one of the options (for example, domain-name).
  38557. //
  38558. // * value - The value for one of the options.
  38559. //
  38560. // * owner-id - The ID of the AWS account that owns the DHCP options set.
  38561. //
  38562. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  38563. // Use the tag key in the filter name and the tag value as the filter value.
  38564. // For example, to find all resources that have a tag with the key Owner
  38565. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  38566. // the filter value.
  38567. //
  38568. // * tag-key - The key of a tag assigned to the resource. Use this filter
  38569. // to find all resources assigned a tag with a specific key, regardless of
  38570. // the tag value.
  38571. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38572. }
  38573. // String returns the string representation
  38574. func (s DescribeDhcpOptionsInput) String() string {
  38575. return awsutil.Prettify(s)
  38576. }
  38577. // GoString returns the string representation
  38578. func (s DescribeDhcpOptionsInput) GoString() string {
  38579. return s.String()
  38580. }
  38581. // SetDhcpOptionsIds sets the DhcpOptionsIds field's value.
  38582. func (s *DescribeDhcpOptionsInput) SetDhcpOptionsIds(v []*string) *DescribeDhcpOptionsInput {
  38583. s.DhcpOptionsIds = v
  38584. return s
  38585. }
  38586. // SetDryRun sets the DryRun field's value.
  38587. func (s *DescribeDhcpOptionsInput) SetDryRun(v bool) *DescribeDhcpOptionsInput {
  38588. s.DryRun = &v
  38589. return s
  38590. }
  38591. // SetFilters sets the Filters field's value.
  38592. func (s *DescribeDhcpOptionsInput) SetFilters(v []*Filter) *DescribeDhcpOptionsInput {
  38593. s.Filters = v
  38594. return s
  38595. }
  38596. type DescribeDhcpOptionsOutput struct {
  38597. _ struct{} `type:"structure"`
  38598. // Information about one or more DHCP options sets.
  38599. DhcpOptions []*DhcpOptions `locationName:"dhcpOptionsSet" locationNameList:"item" type:"list"`
  38600. }
  38601. // String returns the string representation
  38602. func (s DescribeDhcpOptionsOutput) String() string {
  38603. return awsutil.Prettify(s)
  38604. }
  38605. // GoString returns the string representation
  38606. func (s DescribeDhcpOptionsOutput) GoString() string {
  38607. return s.String()
  38608. }
  38609. // SetDhcpOptions sets the DhcpOptions field's value.
  38610. func (s *DescribeDhcpOptionsOutput) SetDhcpOptions(v []*DhcpOptions) *DescribeDhcpOptionsOutput {
  38611. s.DhcpOptions = v
  38612. return s
  38613. }
  38614. type DescribeEgressOnlyInternetGatewaysInput struct {
  38615. _ struct{} `type:"structure"`
  38616. // Checks whether you have the required permissions for the action, without
  38617. // actually making the request, and provides an error response. If you have
  38618. // the required permissions, the error response is DryRunOperation. Otherwise,
  38619. // it is UnauthorizedOperation.
  38620. DryRun *bool `type:"boolean"`
  38621. // One or more egress-only internet gateway IDs.
  38622. EgressOnlyInternetGatewayIds []*string `locationName:"EgressOnlyInternetGatewayId" locationNameList:"item" type:"list"`
  38623. // The maximum number of results to return for the request in a single page.
  38624. // The remaining results can be seen by sending another request with the returned
  38625. // NextToken value. This value can be between 5 and 1000. If MaxResults is given
  38626. // a value larger than 1000, only 1000 results are returned.
  38627. MaxResults *int64 `type:"integer"`
  38628. // The token to retrieve the next page of results.
  38629. NextToken *string `type:"string"`
  38630. }
  38631. // String returns the string representation
  38632. func (s DescribeEgressOnlyInternetGatewaysInput) String() string {
  38633. return awsutil.Prettify(s)
  38634. }
  38635. // GoString returns the string representation
  38636. func (s DescribeEgressOnlyInternetGatewaysInput) GoString() string {
  38637. return s.String()
  38638. }
  38639. // SetDryRun sets the DryRun field's value.
  38640. func (s *DescribeEgressOnlyInternetGatewaysInput) SetDryRun(v bool) *DescribeEgressOnlyInternetGatewaysInput {
  38641. s.DryRun = &v
  38642. return s
  38643. }
  38644. // SetEgressOnlyInternetGatewayIds sets the EgressOnlyInternetGatewayIds field's value.
  38645. func (s *DescribeEgressOnlyInternetGatewaysInput) SetEgressOnlyInternetGatewayIds(v []*string) *DescribeEgressOnlyInternetGatewaysInput {
  38646. s.EgressOnlyInternetGatewayIds = v
  38647. return s
  38648. }
  38649. // SetMaxResults sets the MaxResults field's value.
  38650. func (s *DescribeEgressOnlyInternetGatewaysInput) SetMaxResults(v int64) *DescribeEgressOnlyInternetGatewaysInput {
  38651. s.MaxResults = &v
  38652. return s
  38653. }
  38654. // SetNextToken sets the NextToken field's value.
  38655. func (s *DescribeEgressOnlyInternetGatewaysInput) SetNextToken(v string) *DescribeEgressOnlyInternetGatewaysInput {
  38656. s.NextToken = &v
  38657. return s
  38658. }
  38659. type DescribeEgressOnlyInternetGatewaysOutput struct {
  38660. _ struct{} `type:"structure"`
  38661. // Information about the egress-only internet gateways.
  38662. EgressOnlyInternetGateways []*EgressOnlyInternetGateway `locationName:"egressOnlyInternetGatewaySet" locationNameList:"item" type:"list"`
  38663. // The token to use to retrieve the next page of results.
  38664. NextToken *string `locationName:"nextToken" type:"string"`
  38665. }
  38666. // String returns the string representation
  38667. func (s DescribeEgressOnlyInternetGatewaysOutput) String() string {
  38668. return awsutil.Prettify(s)
  38669. }
  38670. // GoString returns the string representation
  38671. func (s DescribeEgressOnlyInternetGatewaysOutput) GoString() string {
  38672. return s.String()
  38673. }
  38674. // SetEgressOnlyInternetGateways sets the EgressOnlyInternetGateways field's value.
  38675. func (s *DescribeEgressOnlyInternetGatewaysOutput) SetEgressOnlyInternetGateways(v []*EgressOnlyInternetGateway) *DescribeEgressOnlyInternetGatewaysOutput {
  38676. s.EgressOnlyInternetGateways = v
  38677. return s
  38678. }
  38679. // SetNextToken sets the NextToken field's value.
  38680. func (s *DescribeEgressOnlyInternetGatewaysOutput) SetNextToken(v string) *DescribeEgressOnlyInternetGatewaysOutput {
  38681. s.NextToken = &v
  38682. return s
  38683. }
  38684. type DescribeElasticGpusInput struct {
  38685. _ struct{} `type:"structure"`
  38686. // Checks whether you have the required permissions for the action, without
  38687. // actually making the request, and provides an error response. If you have
  38688. // the required permissions, the error response is DryRunOperation. Otherwise,
  38689. // it is UnauthorizedOperation.
  38690. DryRun *bool `type:"boolean"`
  38691. // One or more Elastic Graphics accelerator IDs.
  38692. ElasticGpuIds []*string `locationName:"ElasticGpuId" locationNameList:"item" type:"list"`
  38693. // One or more filters.
  38694. //
  38695. // * availability-zone - The Availability Zone in which the Elastic Graphics
  38696. // accelerator resides.
  38697. //
  38698. // * elastic-gpu-health - The status of the Elastic Graphics accelerator
  38699. // (OK | IMPAIRED).
  38700. //
  38701. // * elastic-gpu-state - The state of the Elastic Graphics accelerator (ATTACHED).
  38702. //
  38703. // * elastic-gpu-type - The type of Elastic Graphics accelerator; for example,
  38704. // eg1.medium.
  38705. //
  38706. // * instance-id - The ID of the instance to which the Elastic Graphics accelerator
  38707. // is associated.
  38708. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38709. // The maximum number of results to return in a single call. To retrieve the
  38710. // remaining results, make another call with the returned NextToken value. This
  38711. // value can be between 5 and 1000.
  38712. MaxResults *int64 `type:"integer"`
  38713. // The token to request the next page of results.
  38714. NextToken *string `type:"string"`
  38715. }
  38716. // String returns the string representation
  38717. func (s DescribeElasticGpusInput) String() string {
  38718. return awsutil.Prettify(s)
  38719. }
  38720. // GoString returns the string representation
  38721. func (s DescribeElasticGpusInput) GoString() string {
  38722. return s.String()
  38723. }
  38724. // SetDryRun sets the DryRun field's value.
  38725. func (s *DescribeElasticGpusInput) SetDryRun(v bool) *DescribeElasticGpusInput {
  38726. s.DryRun = &v
  38727. return s
  38728. }
  38729. // SetElasticGpuIds sets the ElasticGpuIds field's value.
  38730. func (s *DescribeElasticGpusInput) SetElasticGpuIds(v []*string) *DescribeElasticGpusInput {
  38731. s.ElasticGpuIds = v
  38732. return s
  38733. }
  38734. // SetFilters sets the Filters field's value.
  38735. func (s *DescribeElasticGpusInput) SetFilters(v []*Filter) *DescribeElasticGpusInput {
  38736. s.Filters = v
  38737. return s
  38738. }
  38739. // SetMaxResults sets the MaxResults field's value.
  38740. func (s *DescribeElasticGpusInput) SetMaxResults(v int64) *DescribeElasticGpusInput {
  38741. s.MaxResults = &v
  38742. return s
  38743. }
  38744. // SetNextToken sets the NextToken field's value.
  38745. func (s *DescribeElasticGpusInput) SetNextToken(v string) *DescribeElasticGpusInput {
  38746. s.NextToken = &v
  38747. return s
  38748. }
  38749. type DescribeElasticGpusOutput struct {
  38750. _ struct{} `type:"structure"`
  38751. // Information about the Elastic Graphics accelerators.
  38752. ElasticGpuSet []*ElasticGpus `locationName:"elasticGpuSet" locationNameList:"item" type:"list"`
  38753. // The total number of items to return. If the total number of items available
  38754. // is more than the value specified in max-items then a Next-Token will be provided
  38755. // in the output that you can use to resume pagination.
  38756. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  38757. // The token to use to retrieve the next page of results. This value is null
  38758. // when there are no more results to return.
  38759. NextToken *string `locationName:"nextToken" type:"string"`
  38760. }
  38761. // String returns the string representation
  38762. func (s DescribeElasticGpusOutput) String() string {
  38763. return awsutil.Prettify(s)
  38764. }
  38765. // GoString returns the string representation
  38766. func (s DescribeElasticGpusOutput) GoString() string {
  38767. return s.String()
  38768. }
  38769. // SetElasticGpuSet sets the ElasticGpuSet field's value.
  38770. func (s *DescribeElasticGpusOutput) SetElasticGpuSet(v []*ElasticGpus) *DescribeElasticGpusOutput {
  38771. s.ElasticGpuSet = v
  38772. return s
  38773. }
  38774. // SetMaxResults sets the MaxResults field's value.
  38775. func (s *DescribeElasticGpusOutput) SetMaxResults(v int64) *DescribeElasticGpusOutput {
  38776. s.MaxResults = &v
  38777. return s
  38778. }
  38779. // SetNextToken sets the NextToken field's value.
  38780. func (s *DescribeElasticGpusOutput) SetNextToken(v string) *DescribeElasticGpusOutput {
  38781. s.NextToken = &v
  38782. return s
  38783. }
  38784. // Contains the parameters for DescribeExportTasks.
  38785. type DescribeExportTasksInput struct {
  38786. _ struct{} `type:"structure"`
  38787. // One or more export task IDs.
  38788. ExportTaskIds []*string `locationName:"exportTaskId" locationNameList:"ExportTaskId" type:"list"`
  38789. }
  38790. // String returns the string representation
  38791. func (s DescribeExportTasksInput) String() string {
  38792. return awsutil.Prettify(s)
  38793. }
  38794. // GoString returns the string representation
  38795. func (s DescribeExportTasksInput) GoString() string {
  38796. return s.String()
  38797. }
  38798. // SetExportTaskIds sets the ExportTaskIds field's value.
  38799. func (s *DescribeExportTasksInput) SetExportTaskIds(v []*string) *DescribeExportTasksInput {
  38800. s.ExportTaskIds = v
  38801. return s
  38802. }
  38803. // Contains the output for DescribeExportTasks.
  38804. type DescribeExportTasksOutput struct {
  38805. _ struct{} `type:"structure"`
  38806. // Information about the export tasks.
  38807. ExportTasks []*ExportTask `locationName:"exportTaskSet" locationNameList:"item" type:"list"`
  38808. }
  38809. // String returns the string representation
  38810. func (s DescribeExportTasksOutput) String() string {
  38811. return awsutil.Prettify(s)
  38812. }
  38813. // GoString returns the string representation
  38814. func (s DescribeExportTasksOutput) GoString() string {
  38815. return s.String()
  38816. }
  38817. // SetExportTasks sets the ExportTasks field's value.
  38818. func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExportTasksOutput {
  38819. s.ExportTasks = v
  38820. return s
  38821. }
  38822. // Describes the instances that could not be launched by the fleet.
  38823. type DescribeFleetError struct {
  38824. _ struct{} `type:"structure"`
  38825. // The error code that indicates why the instance could not be launched. For
  38826. // more information about error codes, see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
  38827. ErrorCode *string `locationName:"errorCode" type:"string"`
  38828. // The error message that describes why the instance could not be launched.
  38829. // For more information about error messages, see ee Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
  38830. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  38831. // The launch templates and overrides that were used for launching the instances.
  38832. // Any parameters that you specify in the Overrides override the same parameters
  38833. // in the launch template.
  38834. LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"`
  38835. // Indicates if the instance that could not be launched was a Spot Instance
  38836. // or On-Demand Instance.
  38837. Lifecycle *string `locationName:"lifecycle" type:"string" enum:"InstanceLifecycle"`
  38838. }
  38839. // String returns the string representation
  38840. func (s DescribeFleetError) String() string {
  38841. return awsutil.Prettify(s)
  38842. }
  38843. // GoString returns the string representation
  38844. func (s DescribeFleetError) GoString() string {
  38845. return s.String()
  38846. }
  38847. // SetErrorCode sets the ErrorCode field's value.
  38848. func (s *DescribeFleetError) SetErrorCode(v string) *DescribeFleetError {
  38849. s.ErrorCode = &v
  38850. return s
  38851. }
  38852. // SetErrorMessage sets the ErrorMessage field's value.
  38853. func (s *DescribeFleetError) SetErrorMessage(v string) *DescribeFleetError {
  38854. s.ErrorMessage = &v
  38855. return s
  38856. }
  38857. // SetLaunchTemplateAndOverrides sets the LaunchTemplateAndOverrides field's value.
  38858. func (s *DescribeFleetError) SetLaunchTemplateAndOverrides(v *LaunchTemplateAndOverridesResponse) *DescribeFleetError {
  38859. s.LaunchTemplateAndOverrides = v
  38860. return s
  38861. }
  38862. // SetLifecycle sets the Lifecycle field's value.
  38863. func (s *DescribeFleetError) SetLifecycle(v string) *DescribeFleetError {
  38864. s.Lifecycle = &v
  38865. return s
  38866. }
  38867. type DescribeFleetHistoryInput struct {
  38868. _ struct{} `type:"structure"`
  38869. // Checks whether you have the required permissions for the action, without
  38870. // actually making the request, and provides an error response. If you have
  38871. // the required permissions, the error response is DryRunOperation. Otherwise,
  38872. // it is UnauthorizedOperation.
  38873. DryRun *bool `type:"boolean"`
  38874. // The type of events to describe. By default, all events are described.
  38875. EventType *string `type:"string" enum:"FleetEventType"`
  38876. // The ID of the EC2 Fleet.
  38877. //
  38878. // FleetId is a required field
  38879. FleetId *string `type:"string" required:"true"`
  38880. // The maximum number of results to return in a single call. Specify a value
  38881. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  38882. // results, make another call with the returned NextToken value.
  38883. MaxResults *int64 `type:"integer"`
  38884. // The token for the next set of results.
  38885. NextToken *string `type:"string"`
  38886. // The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  38887. //
  38888. // StartTime is a required field
  38889. StartTime *time.Time `type:"timestamp" required:"true"`
  38890. }
  38891. // String returns the string representation
  38892. func (s DescribeFleetHistoryInput) String() string {
  38893. return awsutil.Prettify(s)
  38894. }
  38895. // GoString returns the string representation
  38896. func (s DescribeFleetHistoryInput) GoString() string {
  38897. return s.String()
  38898. }
  38899. // Validate inspects the fields of the type to determine if they are valid.
  38900. func (s *DescribeFleetHistoryInput) Validate() error {
  38901. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetHistoryInput"}
  38902. if s.FleetId == nil {
  38903. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  38904. }
  38905. if s.StartTime == nil {
  38906. invalidParams.Add(request.NewErrParamRequired("StartTime"))
  38907. }
  38908. if invalidParams.Len() > 0 {
  38909. return invalidParams
  38910. }
  38911. return nil
  38912. }
  38913. // SetDryRun sets the DryRun field's value.
  38914. func (s *DescribeFleetHistoryInput) SetDryRun(v bool) *DescribeFleetHistoryInput {
  38915. s.DryRun = &v
  38916. return s
  38917. }
  38918. // SetEventType sets the EventType field's value.
  38919. func (s *DescribeFleetHistoryInput) SetEventType(v string) *DescribeFleetHistoryInput {
  38920. s.EventType = &v
  38921. return s
  38922. }
  38923. // SetFleetId sets the FleetId field's value.
  38924. func (s *DescribeFleetHistoryInput) SetFleetId(v string) *DescribeFleetHistoryInput {
  38925. s.FleetId = &v
  38926. return s
  38927. }
  38928. // SetMaxResults sets the MaxResults field's value.
  38929. func (s *DescribeFleetHistoryInput) SetMaxResults(v int64) *DescribeFleetHistoryInput {
  38930. s.MaxResults = &v
  38931. return s
  38932. }
  38933. // SetNextToken sets the NextToken field's value.
  38934. func (s *DescribeFleetHistoryInput) SetNextToken(v string) *DescribeFleetHistoryInput {
  38935. s.NextToken = &v
  38936. return s
  38937. }
  38938. // SetStartTime sets the StartTime field's value.
  38939. func (s *DescribeFleetHistoryInput) SetStartTime(v time.Time) *DescribeFleetHistoryInput {
  38940. s.StartTime = &v
  38941. return s
  38942. }
  38943. type DescribeFleetHistoryOutput struct {
  38944. _ struct{} `type:"structure"`
  38945. // The ID of the EC Fleet.
  38946. FleetId *string `locationName:"fleetId" type:"string"`
  38947. // Information about the events in the history of the EC2 Fleet.
  38948. HistoryRecords []*HistoryRecordEntry `locationName:"historyRecordSet" locationNameList:"item" type:"list"`
  38949. // The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  38950. // All records up to this time were retrieved.
  38951. //
  38952. // If nextToken indicates that there are more results, this value is not present.
  38953. LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp"`
  38954. // The token for the next set of results.
  38955. NextToken *string `locationName:"nextToken" type:"string"`
  38956. // The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  38957. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  38958. }
  38959. // String returns the string representation
  38960. func (s DescribeFleetHistoryOutput) String() string {
  38961. return awsutil.Prettify(s)
  38962. }
  38963. // GoString returns the string representation
  38964. func (s DescribeFleetHistoryOutput) GoString() string {
  38965. return s.String()
  38966. }
  38967. // SetFleetId sets the FleetId field's value.
  38968. func (s *DescribeFleetHistoryOutput) SetFleetId(v string) *DescribeFleetHistoryOutput {
  38969. s.FleetId = &v
  38970. return s
  38971. }
  38972. // SetHistoryRecords sets the HistoryRecords field's value.
  38973. func (s *DescribeFleetHistoryOutput) SetHistoryRecords(v []*HistoryRecordEntry) *DescribeFleetHistoryOutput {
  38974. s.HistoryRecords = v
  38975. return s
  38976. }
  38977. // SetLastEvaluatedTime sets the LastEvaluatedTime field's value.
  38978. func (s *DescribeFleetHistoryOutput) SetLastEvaluatedTime(v time.Time) *DescribeFleetHistoryOutput {
  38979. s.LastEvaluatedTime = &v
  38980. return s
  38981. }
  38982. // SetNextToken sets the NextToken field's value.
  38983. func (s *DescribeFleetHistoryOutput) SetNextToken(v string) *DescribeFleetHistoryOutput {
  38984. s.NextToken = &v
  38985. return s
  38986. }
  38987. // SetStartTime sets the StartTime field's value.
  38988. func (s *DescribeFleetHistoryOutput) SetStartTime(v time.Time) *DescribeFleetHistoryOutput {
  38989. s.StartTime = &v
  38990. return s
  38991. }
  38992. type DescribeFleetInstancesInput struct {
  38993. _ struct{} `type:"structure"`
  38994. // Checks whether you have the required permissions for the action, without
  38995. // actually making the request, and provides an error response. If you have
  38996. // the required permissions, the error response is DryRunOperation. Otherwise,
  38997. // it is UnauthorizedOperation.
  38998. DryRun *bool `type:"boolean"`
  38999. // One or more filters.
  39000. //
  39001. // * instance-type - The instance type.
  39002. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  39003. // The ID of the EC2 Fleet.
  39004. //
  39005. // FleetId is a required field
  39006. FleetId *string `type:"string" required:"true"`
  39007. // The maximum number of results to return in a single call. Specify a value
  39008. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  39009. // results, make another call with the returned NextToken value.
  39010. MaxResults *int64 `type:"integer"`
  39011. // The token for the next set of results.
  39012. NextToken *string `type:"string"`
  39013. }
  39014. // String returns the string representation
  39015. func (s DescribeFleetInstancesInput) String() string {
  39016. return awsutil.Prettify(s)
  39017. }
  39018. // GoString returns the string representation
  39019. func (s DescribeFleetInstancesInput) GoString() string {
  39020. return s.String()
  39021. }
  39022. // Validate inspects the fields of the type to determine if they are valid.
  39023. func (s *DescribeFleetInstancesInput) Validate() error {
  39024. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetInstancesInput"}
  39025. if s.FleetId == nil {
  39026. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  39027. }
  39028. if invalidParams.Len() > 0 {
  39029. return invalidParams
  39030. }
  39031. return nil
  39032. }
  39033. // SetDryRun sets the DryRun field's value.
  39034. func (s *DescribeFleetInstancesInput) SetDryRun(v bool) *DescribeFleetInstancesInput {
  39035. s.DryRun = &v
  39036. return s
  39037. }
  39038. // SetFilters sets the Filters field's value.
  39039. func (s *DescribeFleetInstancesInput) SetFilters(v []*Filter) *DescribeFleetInstancesInput {
  39040. s.Filters = v
  39041. return s
  39042. }
  39043. // SetFleetId sets the FleetId field's value.
  39044. func (s *DescribeFleetInstancesInput) SetFleetId(v string) *DescribeFleetInstancesInput {
  39045. s.FleetId = &v
  39046. return s
  39047. }
  39048. // SetMaxResults sets the MaxResults field's value.
  39049. func (s *DescribeFleetInstancesInput) SetMaxResults(v int64) *DescribeFleetInstancesInput {
  39050. s.MaxResults = &v
  39051. return s
  39052. }
  39053. // SetNextToken sets the NextToken field's value.
  39054. func (s *DescribeFleetInstancesInput) SetNextToken(v string) *DescribeFleetInstancesInput {
  39055. s.NextToken = &v
  39056. return s
  39057. }
  39058. type DescribeFleetInstancesOutput struct {
  39059. _ struct{} `type:"structure"`
  39060. // The running instances. This list is refreshed periodically and might be out
  39061. // of date.
  39062. ActiveInstances []*ActiveInstance `locationName:"activeInstanceSet" locationNameList:"item" type:"list"`
  39063. // The ID of the EC2 Fleet.
  39064. FleetId *string `locationName:"fleetId" type:"string"`
  39065. // The token for the next set of results.
  39066. NextToken *string `locationName:"nextToken" type:"string"`
  39067. }
  39068. // String returns the string representation
  39069. func (s DescribeFleetInstancesOutput) String() string {
  39070. return awsutil.Prettify(s)
  39071. }
  39072. // GoString returns the string representation
  39073. func (s DescribeFleetInstancesOutput) GoString() string {
  39074. return s.String()
  39075. }
  39076. // SetActiveInstances sets the ActiveInstances field's value.
  39077. func (s *DescribeFleetInstancesOutput) SetActiveInstances(v []*ActiveInstance) *DescribeFleetInstancesOutput {
  39078. s.ActiveInstances = v
  39079. return s
  39080. }
  39081. // SetFleetId sets the FleetId field's value.
  39082. func (s *DescribeFleetInstancesOutput) SetFleetId(v string) *DescribeFleetInstancesOutput {
  39083. s.FleetId = &v
  39084. return s
  39085. }
  39086. // SetNextToken sets the NextToken field's value.
  39087. func (s *DescribeFleetInstancesOutput) SetNextToken(v string) *DescribeFleetInstancesOutput {
  39088. s.NextToken = &v
  39089. return s
  39090. }
  39091. type DescribeFleetsInput struct {
  39092. _ struct{} `type:"structure"`
  39093. // Checks whether you have the required permissions for the action, without
  39094. // actually making the request, and provides an error response. If you have
  39095. // the required permissions, the error response is DryRunOperation. Otherwise,
  39096. // it is UnauthorizedOperation.
  39097. DryRun *bool `type:"boolean"`
  39098. // One or more filters.
  39099. //
  39100. // * activity-status - The progress of the EC2 Fleet ( error | pending-fulfillment
  39101. // | pending-termination | fulfilled).
  39102. //
  39103. // * excess-capacity-termination-policy - Indicates whether to terminate
  39104. // running instances if the target capacity is decreased below the current
  39105. // EC2 Fleet size (true | false).
  39106. //
  39107. // * fleet-state - The state of the EC2 Fleet (submitted | active | deleted
  39108. // | failed | deleted-running | deleted-terminating | modifying).
  39109. //
  39110. // * replace-unhealthy-instances - Indicates whether EC2 Fleet should replace
  39111. // unhealthy instances (true | false).
  39112. //
  39113. // * type - The type of request (instant | request | maintain).
  39114. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  39115. // The ID of the EC2 Fleets.
  39116. FleetIds []*string `locationName:"FleetId" type:"list"`
  39117. // The maximum number of results to return in a single call. Specify a value
  39118. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  39119. // results, make another call with the returned NextToken value.
  39120. MaxResults *int64 `type:"integer"`
  39121. // The token for the next set of results.
  39122. NextToken *string `type:"string"`
  39123. }
  39124. // String returns the string representation
  39125. func (s DescribeFleetsInput) String() string {
  39126. return awsutil.Prettify(s)
  39127. }
  39128. // GoString returns the string representation
  39129. func (s DescribeFleetsInput) GoString() string {
  39130. return s.String()
  39131. }
  39132. // SetDryRun sets the DryRun field's value.
  39133. func (s *DescribeFleetsInput) SetDryRun(v bool) *DescribeFleetsInput {
  39134. s.DryRun = &v
  39135. return s
  39136. }
  39137. // SetFilters sets the Filters field's value.
  39138. func (s *DescribeFleetsInput) SetFilters(v []*Filter) *DescribeFleetsInput {
  39139. s.Filters = v
  39140. return s
  39141. }
  39142. // SetFleetIds sets the FleetIds field's value.
  39143. func (s *DescribeFleetsInput) SetFleetIds(v []*string) *DescribeFleetsInput {
  39144. s.FleetIds = v
  39145. return s
  39146. }
  39147. // SetMaxResults sets the MaxResults field's value.
  39148. func (s *DescribeFleetsInput) SetMaxResults(v int64) *DescribeFleetsInput {
  39149. s.MaxResults = &v
  39150. return s
  39151. }
  39152. // SetNextToken sets the NextToken field's value.
  39153. func (s *DescribeFleetsInput) SetNextToken(v string) *DescribeFleetsInput {
  39154. s.NextToken = &v
  39155. return s
  39156. }
  39157. // Describes the instances that were launched by the fleet.
  39158. type DescribeFleetsInstances struct {
  39159. _ struct{} `type:"structure"`
  39160. // The IDs of the instances.
  39161. InstanceIds []*string `locationName:"instanceIds" locationNameList:"item" type:"list"`
  39162. // The instance type.
  39163. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  39164. // The launch templates and overrides that were used for launching the instances.
  39165. // Any parameters that you specify in the Overrides override the same parameters
  39166. // in the launch template.
  39167. LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"`
  39168. // Indicates if the instance that was launched is a Spot Instance or On-Demand
  39169. // Instance.
  39170. Lifecycle *string `locationName:"lifecycle" type:"string" enum:"InstanceLifecycle"`
  39171. // The value is Windows for Windows instances; otherwise blank.
  39172. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  39173. }
  39174. // String returns the string representation
  39175. func (s DescribeFleetsInstances) String() string {
  39176. return awsutil.Prettify(s)
  39177. }
  39178. // GoString returns the string representation
  39179. func (s DescribeFleetsInstances) GoString() string {
  39180. return s.String()
  39181. }
  39182. // SetInstanceIds sets the InstanceIds field's value.
  39183. func (s *DescribeFleetsInstances) SetInstanceIds(v []*string) *DescribeFleetsInstances {
  39184. s.InstanceIds = v
  39185. return s
  39186. }
  39187. // SetInstanceType sets the InstanceType field's value.
  39188. func (s *DescribeFleetsInstances) SetInstanceType(v string) *DescribeFleetsInstances {
  39189. s.InstanceType = &v
  39190. return s
  39191. }
  39192. // SetLaunchTemplateAndOverrides sets the LaunchTemplateAndOverrides field's value.
  39193. func (s *DescribeFleetsInstances) SetLaunchTemplateAndOverrides(v *LaunchTemplateAndOverridesResponse) *DescribeFleetsInstances {
  39194. s.LaunchTemplateAndOverrides = v
  39195. return s
  39196. }
  39197. // SetLifecycle sets the Lifecycle field's value.
  39198. func (s *DescribeFleetsInstances) SetLifecycle(v string) *DescribeFleetsInstances {
  39199. s.Lifecycle = &v
  39200. return s
  39201. }
  39202. // SetPlatform sets the Platform field's value.
  39203. func (s *DescribeFleetsInstances) SetPlatform(v string) *DescribeFleetsInstances {
  39204. s.Platform = &v
  39205. return s
  39206. }
  39207. type DescribeFleetsOutput struct {
  39208. _ struct{} `type:"structure"`
  39209. // Information about the EC2 Fleets.
  39210. Fleets []*FleetData `locationName:"fleetSet" locationNameList:"item" type:"list"`
  39211. // The token for the next set of results.
  39212. NextToken *string `locationName:"nextToken" type:"string"`
  39213. }
  39214. // String returns the string representation
  39215. func (s DescribeFleetsOutput) String() string {
  39216. return awsutil.Prettify(s)
  39217. }
  39218. // GoString returns the string representation
  39219. func (s DescribeFleetsOutput) GoString() string {
  39220. return s.String()
  39221. }
  39222. // SetFleets sets the Fleets field's value.
  39223. func (s *DescribeFleetsOutput) SetFleets(v []*FleetData) *DescribeFleetsOutput {
  39224. s.Fleets = v
  39225. return s
  39226. }
  39227. // SetNextToken sets the NextToken field's value.
  39228. func (s *DescribeFleetsOutput) SetNextToken(v string) *DescribeFleetsOutput {
  39229. s.NextToken = &v
  39230. return s
  39231. }
  39232. type DescribeFlowLogsInput struct {
  39233. _ struct{} `type:"structure"`
  39234. // Checks whether you have the required permissions for the action, without
  39235. // actually making the request, and provides an error response. If you have
  39236. // the required permissions, the error response is DryRunOperation. Otherwise,
  39237. // it is UnauthorizedOperation.
  39238. DryRun *bool `type:"boolean"`
  39239. // One or more filters.
  39240. //
  39241. // * deliver-log-status - The status of the logs delivery (SUCCESS | FAILED).
  39242. //
  39243. // * log-destination-type - The type of destination to which the flow log
  39244. // publishes data. Possible destination types include cloud-watch-logs and
  39245. // S3.
  39246. //
  39247. // * flow-log-id - The ID of the flow log.
  39248. //
  39249. // * log-group-name - The name of the log group.
  39250. //
  39251. // * resource-id - The ID of the VPC, subnet, or network interface.
  39252. //
  39253. // * traffic-type - The type of traffic (ACCEPT | REJECT | ALL).
  39254. Filter []*Filter `locationNameList:"Filter" type:"list"`
  39255. // One or more flow log IDs.
  39256. FlowLogIds []*string `locationName:"FlowLogId" locationNameList:"item" type:"list"`
  39257. // The maximum number of results to return for the request in a single page.
  39258. // The remaining results can be seen by sending another request with the returned
  39259. // NextToken value. This value can be between 5 and 1000. If MaxResults is given
  39260. // a value larger than 1000, only 1000 results are returned. You cannot specify
  39261. // this parameter and the flow log IDs parameter in the same request.
  39262. MaxResults *int64 `type:"integer"`
  39263. // The token to retrieve the next page of results.
  39264. NextToken *string `type:"string"`
  39265. }
  39266. // String returns the string representation
  39267. func (s DescribeFlowLogsInput) String() string {
  39268. return awsutil.Prettify(s)
  39269. }
  39270. // GoString returns the string representation
  39271. func (s DescribeFlowLogsInput) GoString() string {
  39272. return s.String()
  39273. }
  39274. // SetDryRun sets the DryRun field's value.
  39275. func (s *DescribeFlowLogsInput) SetDryRun(v bool) *DescribeFlowLogsInput {
  39276. s.DryRun = &v
  39277. return s
  39278. }
  39279. // SetFilter sets the Filter field's value.
  39280. func (s *DescribeFlowLogsInput) SetFilter(v []*Filter) *DescribeFlowLogsInput {
  39281. s.Filter = v
  39282. return s
  39283. }
  39284. // SetFlowLogIds sets the FlowLogIds field's value.
  39285. func (s *DescribeFlowLogsInput) SetFlowLogIds(v []*string) *DescribeFlowLogsInput {
  39286. s.FlowLogIds = v
  39287. return s
  39288. }
  39289. // SetMaxResults sets the MaxResults field's value.
  39290. func (s *DescribeFlowLogsInput) SetMaxResults(v int64) *DescribeFlowLogsInput {
  39291. s.MaxResults = &v
  39292. return s
  39293. }
  39294. // SetNextToken sets the NextToken field's value.
  39295. func (s *DescribeFlowLogsInput) SetNextToken(v string) *DescribeFlowLogsInput {
  39296. s.NextToken = &v
  39297. return s
  39298. }
  39299. type DescribeFlowLogsOutput struct {
  39300. _ struct{} `type:"structure"`
  39301. // Information about the flow logs.
  39302. FlowLogs []*FlowLog `locationName:"flowLogSet" locationNameList:"item" type:"list"`
  39303. // The token to use to retrieve the next page of results. This value is null
  39304. // when there are no more results to return.
  39305. NextToken *string `locationName:"nextToken" type:"string"`
  39306. }
  39307. // String returns the string representation
  39308. func (s DescribeFlowLogsOutput) String() string {
  39309. return awsutil.Prettify(s)
  39310. }
  39311. // GoString returns the string representation
  39312. func (s DescribeFlowLogsOutput) GoString() string {
  39313. return s.String()
  39314. }
  39315. // SetFlowLogs sets the FlowLogs field's value.
  39316. func (s *DescribeFlowLogsOutput) SetFlowLogs(v []*FlowLog) *DescribeFlowLogsOutput {
  39317. s.FlowLogs = v
  39318. return s
  39319. }
  39320. // SetNextToken sets the NextToken field's value.
  39321. func (s *DescribeFlowLogsOutput) SetNextToken(v string) *DescribeFlowLogsOutput {
  39322. s.NextToken = &v
  39323. return s
  39324. }
  39325. type DescribeFpgaImageAttributeInput struct {
  39326. _ struct{} `type:"structure"`
  39327. // The AFI attribute.
  39328. //
  39329. // Attribute is a required field
  39330. Attribute *string `type:"string" required:"true" enum:"FpgaImageAttributeName"`
  39331. // Checks whether you have the required permissions for the action, without
  39332. // actually making the request, and provides an error response. If you have
  39333. // the required permissions, the error response is DryRunOperation. Otherwise,
  39334. // it is UnauthorizedOperation.
  39335. DryRun *bool `type:"boolean"`
  39336. // The ID of the AFI.
  39337. //
  39338. // FpgaImageId is a required field
  39339. FpgaImageId *string `type:"string" required:"true"`
  39340. }
  39341. // String returns the string representation
  39342. func (s DescribeFpgaImageAttributeInput) String() string {
  39343. return awsutil.Prettify(s)
  39344. }
  39345. // GoString returns the string representation
  39346. func (s DescribeFpgaImageAttributeInput) GoString() string {
  39347. return s.String()
  39348. }
  39349. // Validate inspects the fields of the type to determine if they are valid.
  39350. func (s *DescribeFpgaImageAttributeInput) Validate() error {
  39351. invalidParams := request.ErrInvalidParams{Context: "DescribeFpgaImageAttributeInput"}
  39352. if s.Attribute == nil {
  39353. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  39354. }
  39355. if s.FpgaImageId == nil {
  39356. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  39357. }
  39358. if invalidParams.Len() > 0 {
  39359. return invalidParams
  39360. }
  39361. return nil
  39362. }
  39363. // SetAttribute sets the Attribute field's value.
  39364. func (s *DescribeFpgaImageAttributeInput) SetAttribute(v string) *DescribeFpgaImageAttributeInput {
  39365. s.Attribute = &v
  39366. return s
  39367. }
  39368. // SetDryRun sets the DryRun field's value.
  39369. func (s *DescribeFpgaImageAttributeInput) SetDryRun(v bool) *DescribeFpgaImageAttributeInput {
  39370. s.DryRun = &v
  39371. return s
  39372. }
  39373. // SetFpgaImageId sets the FpgaImageId field's value.
  39374. func (s *DescribeFpgaImageAttributeInput) SetFpgaImageId(v string) *DescribeFpgaImageAttributeInput {
  39375. s.FpgaImageId = &v
  39376. return s
  39377. }
  39378. type DescribeFpgaImageAttributeOutput struct {
  39379. _ struct{} `type:"structure"`
  39380. // Information about the attribute.
  39381. FpgaImageAttribute *FpgaImageAttribute `locationName:"fpgaImageAttribute" type:"structure"`
  39382. }
  39383. // String returns the string representation
  39384. func (s DescribeFpgaImageAttributeOutput) String() string {
  39385. return awsutil.Prettify(s)
  39386. }
  39387. // GoString returns the string representation
  39388. func (s DescribeFpgaImageAttributeOutput) GoString() string {
  39389. return s.String()
  39390. }
  39391. // SetFpgaImageAttribute sets the FpgaImageAttribute field's value.
  39392. func (s *DescribeFpgaImageAttributeOutput) SetFpgaImageAttribute(v *FpgaImageAttribute) *DescribeFpgaImageAttributeOutput {
  39393. s.FpgaImageAttribute = v
  39394. return s
  39395. }
  39396. type DescribeFpgaImagesInput struct {
  39397. _ struct{} `type:"structure"`
  39398. // Checks whether you have the required permissions for the action, without
  39399. // actually making the request, and provides an error response. If you have
  39400. // the required permissions, the error response is DryRunOperation. Otherwise,
  39401. // it is UnauthorizedOperation.
  39402. DryRun *bool `type:"boolean"`
  39403. // One or more filters.
  39404. //
  39405. // * create-time - The creation time of the AFI.
  39406. //
  39407. // * fpga-image-id - The FPGA image identifier (AFI ID).
  39408. //
  39409. // * fpga-image-global-id - The global FPGA image identifier (AGFI ID).
  39410. //
  39411. // * name - The name of the AFI.
  39412. //
  39413. // * owner-id - The AWS account ID of the AFI owner.
  39414. //
  39415. // * product-code - The product code.
  39416. //
  39417. // * shell-version - The version of the AWS Shell that was used to create
  39418. // the bitstream.
  39419. //
  39420. // * state - The state of the AFI (pending | failed | available | unavailable).
  39421. //
  39422. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  39423. // Use the tag key in the filter name and the tag value as the filter value.
  39424. // For example, to find all resources that have a tag with the key Owner
  39425. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  39426. // the filter value.
  39427. //
  39428. // * tag-key - The key of a tag assigned to the resource. Use this filter
  39429. // to find all resources assigned a tag with a specific key, regardless of
  39430. // the tag value.
  39431. //
  39432. // * update-time - The time of the most recent update.
  39433. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  39434. // One or more AFI IDs.
  39435. FpgaImageIds []*string `locationName:"FpgaImageId" locationNameList:"item" type:"list"`
  39436. // The maximum number of results to return in a single call.
  39437. MaxResults *int64 `min:"5" type:"integer"`
  39438. // The token to retrieve the next page of results.
  39439. NextToken *string `min:"1" type:"string"`
  39440. // Filters the AFI by owner. Specify an AWS account ID, self (owner is the sender
  39441. // of the request), or an AWS owner alias (valid values are amazon | aws-marketplace).
  39442. Owners []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  39443. }
  39444. // String returns the string representation
  39445. func (s DescribeFpgaImagesInput) String() string {
  39446. return awsutil.Prettify(s)
  39447. }
  39448. // GoString returns the string representation
  39449. func (s DescribeFpgaImagesInput) GoString() string {
  39450. return s.String()
  39451. }
  39452. // Validate inspects the fields of the type to determine if they are valid.
  39453. func (s *DescribeFpgaImagesInput) Validate() error {
  39454. invalidParams := request.ErrInvalidParams{Context: "DescribeFpgaImagesInput"}
  39455. if s.MaxResults != nil && *s.MaxResults < 5 {
  39456. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  39457. }
  39458. if s.NextToken != nil && len(*s.NextToken) < 1 {
  39459. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  39460. }
  39461. if invalidParams.Len() > 0 {
  39462. return invalidParams
  39463. }
  39464. return nil
  39465. }
  39466. // SetDryRun sets the DryRun field's value.
  39467. func (s *DescribeFpgaImagesInput) SetDryRun(v bool) *DescribeFpgaImagesInput {
  39468. s.DryRun = &v
  39469. return s
  39470. }
  39471. // SetFilters sets the Filters field's value.
  39472. func (s *DescribeFpgaImagesInput) SetFilters(v []*Filter) *DescribeFpgaImagesInput {
  39473. s.Filters = v
  39474. return s
  39475. }
  39476. // SetFpgaImageIds sets the FpgaImageIds field's value.
  39477. func (s *DescribeFpgaImagesInput) SetFpgaImageIds(v []*string) *DescribeFpgaImagesInput {
  39478. s.FpgaImageIds = v
  39479. return s
  39480. }
  39481. // SetMaxResults sets the MaxResults field's value.
  39482. func (s *DescribeFpgaImagesInput) SetMaxResults(v int64) *DescribeFpgaImagesInput {
  39483. s.MaxResults = &v
  39484. return s
  39485. }
  39486. // SetNextToken sets the NextToken field's value.
  39487. func (s *DescribeFpgaImagesInput) SetNextToken(v string) *DescribeFpgaImagesInput {
  39488. s.NextToken = &v
  39489. return s
  39490. }
  39491. // SetOwners sets the Owners field's value.
  39492. func (s *DescribeFpgaImagesInput) SetOwners(v []*string) *DescribeFpgaImagesInput {
  39493. s.Owners = v
  39494. return s
  39495. }
  39496. type DescribeFpgaImagesOutput struct {
  39497. _ struct{} `type:"structure"`
  39498. // Information about one or more FPGA images.
  39499. FpgaImages []*FpgaImage `locationName:"fpgaImageSet" locationNameList:"item" type:"list"`
  39500. // The token to use to retrieve the next page of results. This value is null
  39501. // when there are no more results to return.
  39502. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  39503. }
  39504. // String returns the string representation
  39505. func (s DescribeFpgaImagesOutput) String() string {
  39506. return awsutil.Prettify(s)
  39507. }
  39508. // GoString returns the string representation
  39509. func (s DescribeFpgaImagesOutput) GoString() string {
  39510. return s.String()
  39511. }
  39512. // SetFpgaImages sets the FpgaImages field's value.
  39513. func (s *DescribeFpgaImagesOutput) SetFpgaImages(v []*FpgaImage) *DescribeFpgaImagesOutput {
  39514. s.FpgaImages = v
  39515. return s
  39516. }
  39517. // SetNextToken sets the NextToken field's value.
  39518. func (s *DescribeFpgaImagesOutput) SetNextToken(v string) *DescribeFpgaImagesOutput {
  39519. s.NextToken = &v
  39520. return s
  39521. }
  39522. type DescribeHostReservationOfferingsInput struct {
  39523. _ struct{} `type:"structure"`
  39524. // One or more filters.
  39525. //
  39526. // * instance-family - The instance family of the offering (for example,
  39527. // m4).
  39528. //
  39529. // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).
  39530. Filter []*Filter `locationNameList:"Filter" type:"list"`
  39531. // This is the maximum duration of the reservation to purchase, specified in
  39532. // seconds. Reservations are available in one-year and three-year terms. The
  39533. // number of seconds specified must be the number of seconds in a year (365x24x60x60)
  39534. // times one of the supported durations (1 or 3). For example, specify 94608000
  39535. // for three years.
  39536. MaxDuration *int64 `type:"integer"`
  39537. // The maximum number of results to return for the request in a single page.
  39538. // The remaining results can be seen by sending another request with the returned
  39539. // nextToken value. This value can be between 5 and 500. If maxResults is given
  39540. // a larger value than 500, you receive an error.
  39541. MaxResults *int64 `type:"integer"`
  39542. // This is the minimum duration of the reservation you'd like to purchase, specified
  39543. // in seconds. Reservations are available in one-year and three-year terms.
  39544. // The number of seconds specified must be the number of seconds in a year (365x24x60x60)
  39545. // times one of the supported durations (1 or 3). For example, specify 31536000
  39546. // for one year.
  39547. MinDuration *int64 `type:"integer"`
  39548. // The token to use to retrieve the next page of results.
  39549. NextToken *string `type:"string"`
  39550. // The ID of the reservation offering.
  39551. OfferingId *string `type:"string"`
  39552. }
  39553. // String returns the string representation
  39554. func (s DescribeHostReservationOfferingsInput) String() string {
  39555. return awsutil.Prettify(s)
  39556. }
  39557. // GoString returns the string representation
  39558. func (s DescribeHostReservationOfferingsInput) GoString() string {
  39559. return s.String()
  39560. }
  39561. // SetFilter sets the Filter field's value.
  39562. func (s *DescribeHostReservationOfferingsInput) SetFilter(v []*Filter) *DescribeHostReservationOfferingsInput {
  39563. s.Filter = v
  39564. return s
  39565. }
  39566. // SetMaxDuration sets the MaxDuration field's value.
  39567. func (s *DescribeHostReservationOfferingsInput) SetMaxDuration(v int64) *DescribeHostReservationOfferingsInput {
  39568. s.MaxDuration = &v
  39569. return s
  39570. }
  39571. // SetMaxResults sets the MaxResults field's value.
  39572. func (s *DescribeHostReservationOfferingsInput) SetMaxResults(v int64) *DescribeHostReservationOfferingsInput {
  39573. s.MaxResults = &v
  39574. return s
  39575. }
  39576. // SetMinDuration sets the MinDuration field's value.
  39577. func (s *DescribeHostReservationOfferingsInput) SetMinDuration(v int64) *DescribeHostReservationOfferingsInput {
  39578. s.MinDuration = &v
  39579. return s
  39580. }
  39581. // SetNextToken sets the NextToken field's value.
  39582. func (s *DescribeHostReservationOfferingsInput) SetNextToken(v string) *DescribeHostReservationOfferingsInput {
  39583. s.NextToken = &v
  39584. return s
  39585. }
  39586. // SetOfferingId sets the OfferingId field's value.
  39587. func (s *DescribeHostReservationOfferingsInput) SetOfferingId(v string) *DescribeHostReservationOfferingsInput {
  39588. s.OfferingId = &v
  39589. return s
  39590. }
  39591. type DescribeHostReservationOfferingsOutput struct {
  39592. _ struct{} `type:"structure"`
  39593. // The token to use to retrieve the next page of results. This value is null
  39594. // when there are no more results to return.
  39595. NextToken *string `locationName:"nextToken" type:"string"`
  39596. // Information about the offerings.
  39597. OfferingSet []*HostOffering `locationName:"offeringSet" locationNameList:"item" type:"list"`
  39598. }
  39599. // String returns the string representation
  39600. func (s DescribeHostReservationOfferingsOutput) String() string {
  39601. return awsutil.Prettify(s)
  39602. }
  39603. // GoString returns the string representation
  39604. func (s DescribeHostReservationOfferingsOutput) GoString() string {
  39605. return s.String()
  39606. }
  39607. // SetNextToken sets the NextToken field's value.
  39608. func (s *DescribeHostReservationOfferingsOutput) SetNextToken(v string) *DescribeHostReservationOfferingsOutput {
  39609. s.NextToken = &v
  39610. return s
  39611. }
  39612. // SetOfferingSet sets the OfferingSet field's value.
  39613. func (s *DescribeHostReservationOfferingsOutput) SetOfferingSet(v []*HostOffering) *DescribeHostReservationOfferingsOutput {
  39614. s.OfferingSet = v
  39615. return s
  39616. }
  39617. type DescribeHostReservationsInput struct {
  39618. _ struct{} `type:"structure"`
  39619. // One or more filters.
  39620. //
  39621. // * instance-family - The instance family (for example, m4).
  39622. //
  39623. // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).
  39624. //
  39625. // * state - The state of the reservation (payment-pending | payment-failed
  39626. // | active | retired).
  39627. Filter []*Filter `locationNameList:"Filter" type:"list"`
  39628. // One or more host reservation IDs.
  39629. HostReservationIdSet []*string `locationNameList:"item" type:"list"`
  39630. // The maximum number of results to return for the request in a single page.
  39631. // The remaining results can be seen by sending another request with the returned
  39632. // nextToken value. This value can be between 5 and 500. If maxResults is given
  39633. // a larger value than 500, you receive an error.
  39634. MaxResults *int64 `type:"integer"`
  39635. // The token to use to retrieve the next page of results.
  39636. NextToken *string `type:"string"`
  39637. }
  39638. // String returns the string representation
  39639. func (s DescribeHostReservationsInput) String() string {
  39640. return awsutil.Prettify(s)
  39641. }
  39642. // GoString returns the string representation
  39643. func (s DescribeHostReservationsInput) GoString() string {
  39644. return s.String()
  39645. }
  39646. // SetFilter sets the Filter field's value.
  39647. func (s *DescribeHostReservationsInput) SetFilter(v []*Filter) *DescribeHostReservationsInput {
  39648. s.Filter = v
  39649. return s
  39650. }
  39651. // SetHostReservationIdSet sets the HostReservationIdSet field's value.
  39652. func (s *DescribeHostReservationsInput) SetHostReservationIdSet(v []*string) *DescribeHostReservationsInput {
  39653. s.HostReservationIdSet = v
  39654. return s
  39655. }
  39656. // SetMaxResults sets the MaxResults field's value.
  39657. func (s *DescribeHostReservationsInput) SetMaxResults(v int64) *DescribeHostReservationsInput {
  39658. s.MaxResults = &v
  39659. return s
  39660. }
  39661. // SetNextToken sets the NextToken field's value.
  39662. func (s *DescribeHostReservationsInput) SetNextToken(v string) *DescribeHostReservationsInput {
  39663. s.NextToken = &v
  39664. return s
  39665. }
  39666. type DescribeHostReservationsOutput struct {
  39667. _ struct{} `type:"structure"`
  39668. // Details about the reservation's configuration.
  39669. HostReservationSet []*HostReservation `locationName:"hostReservationSet" locationNameList:"item" type:"list"`
  39670. // The token to use to retrieve the next page of results. This value is null
  39671. // when there are no more results to return.
  39672. NextToken *string `locationName:"nextToken" type:"string"`
  39673. }
  39674. // String returns the string representation
  39675. func (s DescribeHostReservationsOutput) String() string {
  39676. return awsutil.Prettify(s)
  39677. }
  39678. // GoString returns the string representation
  39679. func (s DescribeHostReservationsOutput) GoString() string {
  39680. return s.String()
  39681. }
  39682. // SetHostReservationSet sets the HostReservationSet field's value.
  39683. func (s *DescribeHostReservationsOutput) SetHostReservationSet(v []*HostReservation) *DescribeHostReservationsOutput {
  39684. s.HostReservationSet = v
  39685. return s
  39686. }
  39687. // SetNextToken sets the NextToken field's value.
  39688. func (s *DescribeHostReservationsOutput) SetNextToken(v string) *DescribeHostReservationsOutput {
  39689. s.NextToken = &v
  39690. return s
  39691. }
  39692. type DescribeHostsInput struct {
  39693. _ struct{} `type:"structure"`
  39694. // One or more filters.
  39695. //
  39696. // * auto-placement - Whether auto-placement is enabled or disabled (on |
  39697. // off).
  39698. //
  39699. // * availability-zone - The Availability Zone of the host.
  39700. //
  39701. // * client-token - The idempotency token that you provided when you allocated
  39702. // the host.
  39703. //
  39704. // * host-reservation-id - The ID of the reservation assigned to this host.
  39705. //
  39706. // * instance-type - The instance type size that the Dedicated Host is configured
  39707. // to support.
  39708. //
  39709. // * state - The allocation state of the Dedicated Host (available | under-assessment
  39710. // | permanent-failure | released | released-permanent-failure).
  39711. //
  39712. // * tag-key - The key of a tag assigned to the resource. Use this filter
  39713. // to find all resources assigned a tag with a specific key, regardless of
  39714. // the tag value.
  39715. Filter []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  39716. // The IDs of the Dedicated Hosts. The IDs are used for targeted instance launches.
  39717. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list"`
  39718. // The maximum number of results to return for the request in a single page.
  39719. // The remaining results can be seen by sending another request with the returned
  39720. // nextToken value. This value can be between 5 and 500. If maxResults is given
  39721. // a larger value than 500, you receive an error. You cannot specify this parameter
  39722. // and the host IDs parameter in the same request.
  39723. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  39724. // The token to retrieve the next page of results.
  39725. NextToken *string `locationName:"nextToken" type:"string"`
  39726. }
  39727. // String returns the string representation
  39728. func (s DescribeHostsInput) String() string {
  39729. return awsutil.Prettify(s)
  39730. }
  39731. // GoString returns the string representation
  39732. func (s DescribeHostsInput) GoString() string {
  39733. return s.String()
  39734. }
  39735. // SetFilter sets the Filter field's value.
  39736. func (s *DescribeHostsInput) SetFilter(v []*Filter) *DescribeHostsInput {
  39737. s.Filter = v
  39738. return s
  39739. }
  39740. // SetHostIds sets the HostIds field's value.
  39741. func (s *DescribeHostsInput) SetHostIds(v []*string) *DescribeHostsInput {
  39742. s.HostIds = v
  39743. return s
  39744. }
  39745. // SetMaxResults sets the MaxResults field's value.
  39746. func (s *DescribeHostsInput) SetMaxResults(v int64) *DescribeHostsInput {
  39747. s.MaxResults = &v
  39748. return s
  39749. }
  39750. // SetNextToken sets the NextToken field's value.
  39751. func (s *DescribeHostsInput) SetNextToken(v string) *DescribeHostsInput {
  39752. s.NextToken = &v
  39753. return s
  39754. }
  39755. type DescribeHostsOutput struct {
  39756. _ struct{} `type:"structure"`
  39757. // Information about the Dedicated Hosts.
  39758. Hosts []*Host `locationName:"hostSet" locationNameList:"item" type:"list"`
  39759. // The token to use to retrieve the next page of results. This value is null
  39760. // when there are no more results to return.
  39761. NextToken *string `locationName:"nextToken" type:"string"`
  39762. }
  39763. // String returns the string representation
  39764. func (s DescribeHostsOutput) String() string {
  39765. return awsutil.Prettify(s)
  39766. }
  39767. // GoString returns the string representation
  39768. func (s DescribeHostsOutput) GoString() string {
  39769. return s.String()
  39770. }
  39771. // SetHosts sets the Hosts field's value.
  39772. func (s *DescribeHostsOutput) SetHosts(v []*Host) *DescribeHostsOutput {
  39773. s.Hosts = v
  39774. return s
  39775. }
  39776. // SetNextToken sets the NextToken field's value.
  39777. func (s *DescribeHostsOutput) SetNextToken(v string) *DescribeHostsOutput {
  39778. s.NextToken = &v
  39779. return s
  39780. }
  39781. type DescribeIamInstanceProfileAssociationsInput struct {
  39782. _ struct{} `type:"structure"`
  39783. // One or more IAM instance profile associations.
  39784. AssociationIds []*string `locationName:"AssociationId" locationNameList:"AssociationId" type:"list"`
  39785. // One or more filters.
  39786. //
  39787. // * instance-id - The ID of the instance.
  39788. //
  39789. // * state - The state of the association (associating | associated | disassociating
  39790. // | disassociated).
  39791. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  39792. // The maximum number of results to return in a single call. To retrieve the
  39793. // remaining results, make another call with the returned NextToken value.
  39794. MaxResults *int64 `min:"5" type:"integer"`
  39795. // The token to request the next page of results.
  39796. NextToken *string `min:"1" type:"string"`
  39797. }
  39798. // String returns the string representation
  39799. func (s DescribeIamInstanceProfileAssociationsInput) String() string {
  39800. return awsutil.Prettify(s)
  39801. }
  39802. // GoString returns the string representation
  39803. func (s DescribeIamInstanceProfileAssociationsInput) GoString() string {
  39804. return s.String()
  39805. }
  39806. // Validate inspects the fields of the type to determine if they are valid.
  39807. func (s *DescribeIamInstanceProfileAssociationsInput) Validate() error {
  39808. invalidParams := request.ErrInvalidParams{Context: "DescribeIamInstanceProfileAssociationsInput"}
  39809. if s.MaxResults != nil && *s.MaxResults < 5 {
  39810. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  39811. }
  39812. if s.NextToken != nil && len(*s.NextToken) < 1 {
  39813. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  39814. }
  39815. if invalidParams.Len() > 0 {
  39816. return invalidParams
  39817. }
  39818. return nil
  39819. }
  39820. // SetAssociationIds sets the AssociationIds field's value.
  39821. func (s *DescribeIamInstanceProfileAssociationsInput) SetAssociationIds(v []*string) *DescribeIamInstanceProfileAssociationsInput {
  39822. s.AssociationIds = v
  39823. return s
  39824. }
  39825. // SetFilters sets the Filters field's value.
  39826. func (s *DescribeIamInstanceProfileAssociationsInput) SetFilters(v []*Filter) *DescribeIamInstanceProfileAssociationsInput {
  39827. s.Filters = v
  39828. return s
  39829. }
  39830. // SetMaxResults sets the MaxResults field's value.
  39831. func (s *DescribeIamInstanceProfileAssociationsInput) SetMaxResults(v int64) *DescribeIamInstanceProfileAssociationsInput {
  39832. s.MaxResults = &v
  39833. return s
  39834. }
  39835. // SetNextToken sets the NextToken field's value.
  39836. func (s *DescribeIamInstanceProfileAssociationsInput) SetNextToken(v string) *DescribeIamInstanceProfileAssociationsInput {
  39837. s.NextToken = &v
  39838. return s
  39839. }
  39840. type DescribeIamInstanceProfileAssociationsOutput struct {
  39841. _ struct{} `type:"structure"`
  39842. // Information about one or more IAM instance profile associations.
  39843. IamInstanceProfileAssociations []*IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociationSet" locationNameList:"item" type:"list"`
  39844. // The token to use to retrieve the next page of results. This value is null
  39845. // when there are no more results to return.
  39846. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  39847. }
  39848. // String returns the string representation
  39849. func (s DescribeIamInstanceProfileAssociationsOutput) String() string {
  39850. return awsutil.Prettify(s)
  39851. }
  39852. // GoString returns the string representation
  39853. func (s DescribeIamInstanceProfileAssociationsOutput) GoString() string {
  39854. return s.String()
  39855. }
  39856. // SetIamInstanceProfileAssociations sets the IamInstanceProfileAssociations field's value.
  39857. func (s *DescribeIamInstanceProfileAssociationsOutput) SetIamInstanceProfileAssociations(v []*IamInstanceProfileAssociation) *DescribeIamInstanceProfileAssociationsOutput {
  39858. s.IamInstanceProfileAssociations = v
  39859. return s
  39860. }
  39861. // SetNextToken sets the NextToken field's value.
  39862. func (s *DescribeIamInstanceProfileAssociationsOutput) SetNextToken(v string) *DescribeIamInstanceProfileAssociationsOutput {
  39863. s.NextToken = &v
  39864. return s
  39865. }
  39866. type DescribeIdFormatInput struct {
  39867. _ struct{} `type:"structure"`
  39868. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  39869. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  39870. // | image | import-task | instance | internet-gateway | network-acl | network-acl-association
  39871. // | network-interface | network-interface-attachment | prefix-list | reservation
  39872. // | route-table | route-table-association | security-group | snapshot | subnet
  39873. // | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  39874. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway
  39875. Resource *string `type:"string"`
  39876. }
  39877. // String returns the string representation
  39878. func (s DescribeIdFormatInput) String() string {
  39879. return awsutil.Prettify(s)
  39880. }
  39881. // GoString returns the string representation
  39882. func (s DescribeIdFormatInput) GoString() string {
  39883. return s.String()
  39884. }
  39885. // SetResource sets the Resource field's value.
  39886. func (s *DescribeIdFormatInput) SetResource(v string) *DescribeIdFormatInput {
  39887. s.Resource = &v
  39888. return s
  39889. }
  39890. type DescribeIdFormatOutput struct {
  39891. _ struct{} `type:"structure"`
  39892. // Information about the ID format for the resource.
  39893. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  39894. }
  39895. // String returns the string representation
  39896. func (s DescribeIdFormatOutput) String() string {
  39897. return awsutil.Prettify(s)
  39898. }
  39899. // GoString returns the string representation
  39900. func (s DescribeIdFormatOutput) GoString() string {
  39901. return s.String()
  39902. }
  39903. // SetStatuses sets the Statuses field's value.
  39904. func (s *DescribeIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdFormatOutput {
  39905. s.Statuses = v
  39906. return s
  39907. }
  39908. type DescribeIdentityIdFormatInput struct {
  39909. _ struct{} `type:"structure"`
  39910. // The ARN of the principal, which can be an IAM role, IAM user, or the root
  39911. // user.
  39912. //
  39913. // PrincipalArn is a required field
  39914. PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
  39915. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  39916. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  39917. // | image | import-task | instance | internet-gateway | network-acl | network-acl-association
  39918. // | network-interface | network-interface-attachment | prefix-list | reservation
  39919. // | route-table | route-table-association | security-group | snapshot | subnet
  39920. // | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  39921. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway
  39922. Resource *string `locationName:"resource" type:"string"`
  39923. }
  39924. // String returns the string representation
  39925. func (s DescribeIdentityIdFormatInput) String() string {
  39926. return awsutil.Prettify(s)
  39927. }
  39928. // GoString returns the string representation
  39929. func (s DescribeIdentityIdFormatInput) GoString() string {
  39930. return s.String()
  39931. }
  39932. // Validate inspects the fields of the type to determine if they are valid.
  39933. func (s *DescribeIdentityIdFormatInput) Validate() error {
  39934. invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityIdFormatInput"}
  39935. if s.PrincipalArn == nil {
  39936. invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
  39937. }
  39938. if invalidParams.Len() > 0 {
  39939. return invalidParams
  39940. }
  39941. return nil
  39942. }
  39943. // SetPrincipalArn sets the PrincipalArn field's value.
  39944. func (s *DescribeIdentityIdFormatInput) SetPrincipalArn(v string) *DescribeIdentityIdFormatInput {
  39945. s.PrincipalArn = &v
  39946. return s
  39947. }
  39948. // SetResource sets the Resource field's value.
  39949. func (s *DescribeIdentityIdFormatInput) SetResource(v string) *DescribeIdentityIdFormatInput {
  39950. s.Resource = &v
  39951. return s
  39952. }
  39953. type DescribeIdentityIdFormatOutput struct {
  39954. _ struct{} `type:"structure"`
  39955. // Information about the ID format for the resources.
  39956. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  39957. }
  39958. // String returns the string representation
  39959. func (s DescribeIdentityIdFormatOutput) String() string {
  39960. return awsutil.Prettify(s)
  39961. }
  39962. // GoString returns the string representation
  39963. func (s DescribeIdentityIdFormatOutput) GoString() string {
  39964. return s.String()
  39965. }
  39966. // SetStatuses sets the Statuses field's value.
  39967. func (s *DescribeIdentityIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdentityIdFormatOutput {
  39968. s.Statuses = v
  39969. return s
  39970. }
  39971. // Contains the parameters for DescribeImageAttribute.
  39972. type DescribeImageAttributeInput struct {
  39973. _ struct{} `type:"structure"`
  39974. // The AMI attribute.
  39975. //
  39976. // Note: Depending on your account privileges, the blockDeviceMapping attribute
  39977. // may return a Client.AuthFailure error. If this happens, use DescribeImages
  39978. // to get information about the block device mapping for the AMI.
  39979. //
  39980. // Attribute is a required field
  39981. Attribute *string `type:"string" required:"true" enum:"ImageAttributeName"`
  39982. // Checks whether you have the required permissions for the action, without
  39983. // actually making the request, and provides an error response. If you have
  39984. // the required permissions, the error response is DryRunOperation. Otherwise,
  39985. // it is UnauthorizedOperation.
  39986. DryRun *bool `locationName:"dryRun" type:"boolean"`
  39987. // The ID of the AMI.
  39988. //
  39989. // ImageId is a required field
  39990. ImageId *string `type:"string" required:"true"`
  39991. }
  39992. // String returns the string representation
  39993. func (s DescribeImageAttributeInput) String() string {
  39994. return awsutil.Prettify(s)
  39995. }
  39996. // GoString returns the string representation
  39997. func (s DescribeImageAttributeInput) GoString() string {
  39998. return s.String()
  39999. }
  40000. // Validate inspects the fields of the type to determine if they are valid.
  40001. func (s *DescribeImageAttributeInput) Validate() error {
  40002. invalidParams := request.ErrInvalidParams{Context: "DescribeImageAttributeInput"}
  40003. if s.Attribute == nil {
  40004. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  40005. }
  40006. if s.ImageId == nil {
  40007. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  40008. }
  40009. if invalidParams.Len() > 0 {
  40010. return invalidParams
  40011. }
  40012. return nil
  40013. }
  40014. // SetAttribute sets the Attribute field's value.
  40015. func (s *DescribeImageAttributeInput) SetAttribute(v string) *DescribeImageAttributeInput {
  40016. s.Attribute = &v
  40017. return s
  40018. }
  40019. // SetDryRun sets the DryRun field's value.
  40020. func (s *DescribeImageAttributeInput) SetDryRun(v bool) *DescribeImageAttributeInput {
  40021. s.DryRun = &v
  40022. return s
  40023. }
  40024. // SetImageId sets the ImageId field's value.
  40025. func (s *DescribeImageAttributeInput) SetImageId(v string) *DescribeImageAttributeInput {
  40026. s.ImageId = &v
  40027. return s
  40028. }
  40029. // Describes an image attribute.
  40030. type DescribeImageAttributeOutput struct {
  40031. _ struct{} `type:"structure"`
  40032. // One or more block device mapping entries.
  40033. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  40034. // A description for the AMI.
  40035. Description *AttributeValue `locationName:"description" type:"structure"`
  40036. // The ID of the AMI.
  40037. ImageId *string `locationName:"imageId" type:"string"`
  40038. // The kernel ID.
  40039. KernelId *AttributeValue `locationName:"kernel" type:"structure"`
  40040. // One or more launch permissions.
  40041. LaunchPermissions []*LaunchPermission `locationName:"launchPermission" locationNameList:"item" type:"list"`
  40042. // One or more product codes.
  40043. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  40044. // The RAM disk ID.
  40045. RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`
  40046. // Indicates whether enhanced networking with the Intel 82599 Virtual Function
  40047. // interface is enabled.
  40048. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  40049. }
  40050. // String returns the string representation
  40051. func (s DescribeImageAttributeOutput) String() string {
  40052. return awsutil.Prettify(s)
  40053. }
  40054. // GoString returns the string representation
  40055. func (s DescribeImageAttributeOutput) GoString() string {
  40056. return s.String()
  40057. }
  40058. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  40059. func (s *DescribeImageAttributeOutput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *DescribeImageAttributeOutput {
  40060. s.BlockDeviceMappings = v
  40061. return s
  40062. }
  40063. // SetDescription sets the Description field's value.
  40064. func (s *DescribeImageAttributeOutput) SetDescription(v *AttributeValue) *DescribeImageAttributeOutput {
  40065. s.Description = v
  40066. return s
  40067. }
  40068. // SetImageId sets the ImageId field's value.
  40069. func (s *DescribeImageAttributeOutput) SetImageId(v string) *DescribeImageAttributeOutput {
  40070. s.ImageId = &v
  40071. return s
  40072. }
  40073. // SetKernelId sets the KernelId field's value.
  40074. func (s *DescribeImageAttributeOutput) SetKernelId(v *AttributeValue) *DescribeImageAttributeOutput {
  40075. s.KernelId = v
  40076. return s
  40077. }
  40078. // SetLaunchPermissions sets the LaunchPermissions field's value.
  40079. func (s *DescribeImageAttributeOutput) SetLaunchPermissions(v []*LaunchPermission) *DescribeImageAttributeOutput {
  40080. s.LaunchPermissions = v
  40081. return s
  40082. }
  40083. // SetProductCodes sets the ProductCodes field's value.
  40084. func (s *DescribeImageAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeImageAttributeOutput {
  40085. s.ProductCodes = v
  40086. return s
  40087. }
  40088. // SetRamdiskId sets the RamdiskId field's value.
  40089. func (s *DescribeImageAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeImageAttributeOutput {
  40090. s.RamdiskId = v
  40091. return s
  40092. }
  40093. // SetSriovNetSupport sets the SriovNetSupport field's value.
  40094. func (s *DescribeImageAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeImageAttributeOutput {
  40095. s.SriovNetSupport = v
  40096. return s
  40097. }
  40098. // Contains the parameters for DescribeImages.
  40099. type DescribeImagesInput struct {
  40100. _ struct{} `type:"structure"`
  40101. // Checks whether you have the required permissions for the action, without
  40102. // actually making the request, and provides an error response. If you have
  40103. // the required permissions, the error response is DryRunOperation. Otherwise,
  40104. // it is UnauthorizedOperation.
  40105. DryRun *bool `locationName:"dryRun" type:"boolean"`
  40106. // Scopes the images by users with explicit launch permissions. Specify an AWS
  40107. // account ID, self (the sender of the request), or all (public AMIs).
  40108. ExecutableUsers []*string `locationName:"ExecutableBy" locationNameList:"ExecutableBy" type:"list"`
  40109. // One or more filters.
  40110. //
  40111. // * architecture - The image architecture (i386 | x86_64).
  40112. //
  40113. // * block-device-mapping.delete-on-termination - A Boolean value that indicates
  40114. // whether the Amazon EBS volume is deleted on instance termination.
  40115. //
  40116. // * block-device-mapping.device-name - The device name specified in the
  40117. // block device mapping (for example, /dev/sdh or xvdh).
  40118. //
  40119. // * block-device-mapping.snapshot-id - The ID of the snapshot used for the
  40120. // EBS volume.
  40121. //
  40122. // * block-device-mapping.volume-size - The volume size of the EBS volume,
  40123. // in GiB.
  40124. //
  40125. // * block-device-mapping.volume-type - The volume type of the EBS volume
  40126. // (gp2 | io1 | st1 | sc1 | standard).
  40127. //
  40128. // * description - The description of the image (provided during image creation).
  40129. //
  40130. // * ena-support - A Boolean that indicates whether enhanced networking with
  40131. // ENA is enabled.
  40132. //
  40133. // * hypervisor - The hypervisor type (ovm | xen).
  40134. //
  40135. // * image-id - The ID of the image.
  40136. //
  40137. // * image-type - The image type (machine | kernel | ramdisk).
  40138. //
  40139. // * is-public - A Boolean that indicates whether the image is public.
  40140. //
  40141. // * kernel-id - The kernel ID.
  40142. //
  40143. // * manifest-location - The location of the image manifest.
  40144. //
  40145. // * name - The name of the AMI (provided during image creation).
  40146. //
  40147. // * owner-alias - String value from an Amazon-maintained list (amazon |
  40148. // aws-marketplace | microsoft) of snapshot owners. Not to be confused with
  40149. // the user-configured AWS account alias, which is set from the IAM console.
  40150. //
  40151. // * owner-id - The AWS account ID of the image owner.
  40152. //
  40153. // * platform - The platform. To only list Windows-based AMIs, use windows.
  40154. //
  40155. // * product-code - The product code.
  40156. //
  40157. // * product-code.type - The type of the product code (devpay | marketplace).
  40158. //
  40159. // * ramdisk-id - The RAM disk ID.
  40160. //
  40161. // * root-device-name - The device name of the root device volume (for example,
  40162. // /dev/sda1).
  40163. //
  40164. // * root-device-type - The type of the root device volume (ebs | instance-store).
  40165. //
  40166. // * state - The state of the image (available | pending | failed).
  40167. //
  40168. // * state-reason-code - The reason code for the state change.
  40169. //
  40170. // * state-reason-message - The message for the state change.
  40171. //
  40172. // * sriov-net-support - A value of simple indicates that enhanced networking
  40173. // with the Intel 82599 VF interface is enabled.
  40174. //
  40175. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  40176. // Use the tag key in the filter name and the tag value as the filter value.
  40177. // For example, to find all resources that have a tag with the key Owner
  40178. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  40179. // the filter value.
  40180. //
  40181. // * tag-key - The key of a tag assigned to the resource. Use this filter
  40182. // to find all resources assigned a tag with a specific key, regardless of
  40183. // the tag value.
  40184. //
  40185. // * virtualization-type - The virtualization type (paravirtual | hvm).
  40186. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  40187. // One or more image IDs.
  40188. //
  40189. // Default: Describes all images available to you.
  40190. ImageIds []*string `locationName:"ImageId" locationNameList:"ImageId" type:"list"`
  40191. // Filters the images by the owner. Specify an AWS account ID, self (owner is
  40192. // the sender of the request), or an AWS owner alias (valid values are amazon
  40193. // | aws-marketplace | microsoft). Omitting this option returns all images for
  40194. // which you have launch permissions, regardless of ownership.
  40195. Owners []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  40196. }
  40197. // String returns the string representation
  40198. func (s DescribeImagesInput) String() string {
  40199. return awsutil.Prettify(s)
  40200. }
  40201. // GoString returns the string representation
  40202. func (s DescribeImagesInput) GoString() string {
  40203. return s.String()
  40204. }
  40205. // SetDryRun sets the DryRun field's value.
  40206. func (s *DescribeImagesInput) SetDryRun(v bool) *DescribeImagesInput {
  40207. s.DryRun = &v
  40208. return s
  40209. }
  40210. // SetExecutableUsers sets the ExecutableUsers field's value.
  40211. func (s *DescribeImagesInput) SetExecutableUsers(v []*string) *DescribeImagesInput {
  40212. s.ExecutableUsers = v
  40213. return s
  40214. }
  40215. // SetFilters sets the Filters field's value.
  40216. func (s *DescribeImagesInput) SetFilters(v []*Filter) *DescribeImagesInput {
  40217. s.Filters = v
  40218. return s
  40219. }
  40220. // SetImageIds sets the ImageIds field's value.
  40221. func (s *DescribeImagesInput) SetImageIds(v []*string) *DescribeImagesInput {
  40222. s.ImageIds = v
  40223. return s
  40224. }
  40225. // SetOwners sets the Owners field's value.
  40226. func (s *DescribeImagesInput) SetOwners(v []*string) *DescribeImagesInput {
  40227. s.Owners = v
  40228. return s
  40229. }
  40230. // Contains the output of DescribeImages.
  40231. type DescribeImagesOutput struct {
  40232. _ struct{} `type:"structure"`
  40233. // Information about one or more images.
  40234. Images []*Image `locationName:"imagesSet" locationNameList:"item" type:"list"`
  40235. }
  40236. // String returns the string representation
  40237. func (s DescribeImagesOutput) String() string {
  40238. return awsutil.Prettify(s)
  40239. }
  40240. // GoString returns the string representation
  40241. func (s DescribeImagesOutput) GoString() string {
  40242. return s.String()
  40243. }
  40244. // SetImages sets the Images field's value.
  40245. func (s *DescribeImagesOutput) SetImages(v []*Image) *DescribeImagesOutput {
  40246. s.Images = v
  40247. return s
  40248. }
  40249. // Contains the parameters for DescribeImportImageTasks.
  40250. type DescribeImportImageTasksInput struct {
  40251. _ struct{} `type:"structure"`
  40252. // Checks whether you have the required permissions for the action, without
  40253. // actually making the request, and provides an error response. If you have
  40254. // the required permissions, the error response is DryRunOperation. Otherwise,
  40255. // it is UnauthorizedOperation.
  40256. DryRun *bool `type:"boolean"`
  40257. // Filter tasks using the task-state filter and one of the following values:
  40258. // active, completed, deleting, deleted.
  40259. Filters []*Filter `locationNameList:"Filter" type:"list"`
  40260. // A list of import image task IDs.
  40261. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`
  40262. // The maximum number of results to return in a single call. To retrieve the
  40263. // remaining results, make another call with the returned NextToken value.
  40264. MaxResults *int64 `type:"integer"`
  40265. // A token that indicates the next page of results.
  40266. NextToken *string `type:"string"`
  40267. }
  40268. // String returns the string representation
  40269. func (s DescribeImportImageTasksInput) String() string {
  40270. return awsutil.Prettify(s)
  40271. }
  40272. // GoString returns the string representation
  40273. func (s DescribeImportImageTasksInput) GoString() string {
  40274. return s.String()
  40275. }
  40276. // SetDryRun sets the DryRun field's value.
  40277. func (s *DescribeImportImageTasksInput) SetDryRun(v bool) *DescribeImportImageTasksInput {
  40278. s.DryRun = &v
  40279. return s
  40280. }
  40281. // SetFilters sets the Filters field's value.
  40282. func (s *DescribeImportImageTasksInput) SetFilters(v []*Filter) *DescribeImportImageTasksInput {
  40283. s.Filters = v
  40284. return s
  40285. }
  40286. // SetImportTaskIds sets the ImportTaskIds field's value.
  40287. func (s *DescribeImportImageTasksInput) SetImportTaskIds(v []*string) *DescribeImportImageTasksInput {
  40288. s.ImportTaskIds = v
  40289. return s
  40290. }
  40291. // SetMaxResults sets the MaxResults field's value.
  40292. func (s *DescribeImportImageTasksInput) SetMaxResults(v int64) *DescribeImportImageTasksInput {
  40293. s.MaxResults = &v
  40294. return s
  40295. }
  40296. // SetNextToken sets the NextToken field's value.
  40297. func (s *DescribeImportImageTasksInput) SetNextToken(v string) *DescribeImportImageTasksInput {
  40298. s.NextToken = &v
  40299. return s
  40300. }
  40301. // Contains the output for DescribeImportImageTasks.
  40302. type DescribeImportImageTasksOutput struct {
  40303. _ struct{} `type:"structure"`
  40304. // A list of zero or more import image tasks that are currently active or were
  40305. // completed or canceled in the previous 7 days.
  40306. ImportImageTasks []*ImportImageTask `locationName:"importImageTaskSet" locationNameList:"item" type:"list"`
  40307. // The token to use to get the next page of results. This value is null when
  40308. // there are no more results to return.
  40309. NextToken *string `locationName:"nextToken" type:"string"`
  40310. }
  40311. // String returns the string representation
  40312. func (s DescribeImportImageTasksOutput) String() string {
  40313. return awsutil.Prettify(s)
  40314. }
  40315. // GoString returns the string representation
  40316. func (s DescribeImportImageTasksOutput) GoString() string {
  40317. return s.String()
  40318. }
  40319. // SetImportImageTasks sets the ImportImageTasks field's value.
  40320. func (s *DescribeImportImageTasksOutput) SetImportImageTasks(v []*ImportImageTask) *DescribeImportImageTasksOutput {
  40321. s.ImportImageTasks = v
  40322. return s
  40323. }
  40324. // SetNextToken sets the NextToken field's value.
  40325. func (s *DescribeImportImageTasksOutput) SetNextToken(v string) *DescribeImportImageTasksOutput {
  40326. s.NextToken = &v
  40327. return s
  40328. }
  40329. // Contains the parameters for DescribeImportSnapshotTasks.
  40330. type DescribeImportSnapshotTasksInput struct {
  40331. _ struct{} `type:"structure"`
  40332. // Checks whether you have the required permissions for the action, without
  40333. // actually making the request, and provides an error response. If you have
  40334. // the required permissions, the error response is DryRunOperation. Otherwise,
  40335. // it is UnauthorizedOperation.
  40336. DryRun *bool `type:"boolean"`
  40337. // One or more filters.
  40338. Filters []*Filter `locationNameList:"Filter" type:"list"`
  40339. // A list of import snapshot task IDs.
  40340. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`
  40341. // The maximum number of results to return in a single call. To retrieve the
  40342. // remaining results, make another call with the returned NextToken value.
  40343. MaxResults *int64 `type:"integer"`
  40344. // A token that indicates the next page of results.
  40345. NextToken *string `type:"string"`
  40346. }
  40347. // String returns the string representation
  40348. func (s DescribeImportSnapshotTasksInput) String() string {
  40349. return awsutil.Prettify(s)
  40350. }
  40351. // GoString returns the string representation
  40352. func (s DescribeImportSnapshotTasksInput) GoString() string {
  40353. return s.String()
  40354. }
  40355. // SetDryRun sets the DryRun field's value.
  40356. func (s *DescribeImportSnapshotTasksInput) SetDryRun(v bool) *DescribeImportSnapshotTasksInput {
  40357. s.DryRun = &v
  40358. return s
  40359. }
  40360. // SetFilters sets the Filters field's value.
  40361. func (s *DescribeImportSnapshotTasksInput) SetFilters(v []*Filter) *DescribeImportSnapshotTasksInput {
  40362. s.Filters = v
  40363. return s
  40364. }
  40365. // SetImportTaskIds sets the ImportTaskIds field's value.
  40366. func (s *DescribeImportSnapshotTasksInput) SetImportTaskIds(v []*string) *DescribeImportSnapshotTasksInput {
  40367. s.ImportTaskIds = v
  40368. return s
  40369. }
  40370. // SetMaxResults sets the MaxResults field's value.
  40371. func (s *DescribeImportSnapshotTasksInput) SetMaxResults(v int64) *DescribeImportSnapshotTasksInput {
  40372. s.MaxResults = &v
  40373. return s
  40374. }
  40375. // SetNextToken sets the NextToken field's value.
  40376. func (s *DescribeImportSnapshotTasksInput) SetNextToken(v string) *DescribeImportSnapshotTasksInput {
  40377. s.NextToken = &v
  40378. return s
  40379. }
  40380. // Contains the output for DescribeImportSnapshotTasks.
  40381. type DescribeImportSnapshotTasksOutput struct {
  40382. _ struct{} `type:"structure"`
  40383. // A list of zero or more import snapshot tasks that are currently active or
  40384. // were completed or canceled in the previous 7 days.
  40385. ImportSnapshotTasks []*ImportSnapshotTask `locationName:"importSnapshotTaskSet" locationNameList:"item" type:"list"`
  40386. // The token to use to get the next page of results. This value is null when
  40387. // there are no more results to return.
  40388. NextToken *string `locationName:"nextToken" type:"string"`
  40389. }
  40390. // String returns the string representation
  40391. func (s DescribeImportSnapshotTasksOutput) String() string {
  40392. return awsutil.Prettify(s)
  40393. }
  40394. // GoString returns the string representation
  40395. func (s DescribeImportSnapshotTasksOutput) GoString() string {
  40396. return s.String()
  40397. }
  40398. // SetImportSnapshotTasks sets the ImportSnapshotTasks field's value.
  40399. func (s *DescribeImportSnapshotTasksOutput) SetImportSnapshotTasks(v []*ImportSnapshotTask) *DescribeImportSnapshotTasksOutput {
  40400. s.ImportSnapshotTasks = v
  40401. return s
  40402. }
  40403. // SetNextToken sets the NextToken field's value.
  40404. func (s *DescribeImportSnapshotTasksOutput) SetNextToken(v string) *DescribeImportSnapshotTasksOutput {
  40405. s.NextToken = &v
  40406. return s
  40407. }
  40408. type DescribeInstanceAttributeInput struct {
  40409. _ struct{} `type:"structure"`
  40410. // The instance attribute.
  40411. //
  40412. // Note: The enaSupport attribute is not supported at this time.
  40413. //
  40414. // Attribute is a required field
  40415. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"`
  40416. // Checks whether you have the required permissions for the action, without
  40417. // actually making the request, and provides an error response. If you have
  40418. // the required permissions, the error response is DryRunOperation. Otherwise,
  40419. // it is UnauthorizedOperation.
  40420. DryRun *bool `locationName:"dryRun" type:"boolean"`
  40421. // The ID of the instance.
  40422. //
  40423. // InstanceId is a required field
  40424. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  40425. }
  40426. // String returns the string representation
  40427. func (s DescribeInstanceAttributeInput) String() string {
  40428. return awsutil.Prettify(s)
  40429. }
  40430. // GoString returns the string representation
  40431. func (s DescribeInstanceAttributeInput) GoString() string {
  40432. return s.String()
  40433. }
  40434. // Validate inspects the fields of the type to determine if they are valid.
  40435. func (s *DescribeInstanceAttributeInput) Validate() error {
  40436. invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceAttributeInput"}
  40437. if s.Attribute == nil {
  40438. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  40439. }
  40440. if s.InstanceId == nil {
  40441. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  40442. }
  40443. if invalidParams.Len() > 0 {
  40444. return invalidParams
  40445. }
  40446. return nil
  40447. }
  40448. // SetAttribute sets the Attribute field's value.
  40449. func (s *DescribeInstanceAttributeInput) SetAttribute(v string) *DescribeInstanceAttributeInput {
  40450. s.Attribute = &v
  40451. return s
  40452. }
  40453. // SetDryRun sets the DryRun field's value.
  40454. func (s *DescribeInstanceAttributeInput) SetDryRun(v bool) *DescribeInstanceAttributeInput {
  40455. s.DryRun = &v
  40456. return s
  40457. }
  40458. // SetInstanceId sets the InstanceId field's value.
  40459. func (s *DescribeInstanceAttributeInput) SetInstanceId(v string) *DescribeInstanceAttributeInput {
  40460. s.InstanceId = &v
  40461. return s
  40462. }
  40463. // Describes an instance attribute.
  40464. type DescribeInstanceAttributeOutput struct {
  40465. _ struct{} `type:"structure"`
  40466. // The block device mapping of the instance.
  40467. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  40468. // If the value is true, you can't terminate the instance through the Amazon
  40469. // EC2 console, CLI, or API; otherwise, you can.
  40470. DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`
  40471. // Indicates whether the instance is optimized for Amazon EBS I/O.
  40472. EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`
  40473. // Indicates whether enhanced networking with ENA is enabled.
  40474. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`
  40475. // The security groups associated with the instance.
  40476. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  40477. // The ID of the instance.
  40478. InstanceId *string `locationName:"instanceId" type:"string"`
  40479. // Indicates whether an instance stops or terminates when you initiate shutdown
  40480. // from the instance (using the operating system command for system shutdown).
  40481. InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`
  40482. // The instance type.
  40483. InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`
  40484. // The kernel ID.
  40485. KernelId *AttributeValue `locationName:"kernel" type:"structure"`
  40486. // A list of product codes.
  40487. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  40488. // The RAM disk ID.
  40489. RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`
  40490. // The device name of the root device volume (for example, /dev/sda1).
  40491. RootDeviceName *AttributeValue `locationName:"rootDeviceName" type:"structure"`
  40492. // Indicates whether source/destination checking is enabled. A value of true
  40493. // means that checking is enabled, and false means that checking is disabled.
  40494. // This value must be false for a NAT instance to perform NAT.
  40495. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  40496. // Indicates whether enhanced networking with the Intel 82599 Virtual Function
  40497. // interface is enabled.
  40498. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  40499. // The user data.
  40500. UserData *AttributeValue `locationName:"userData" type:"structure"`
  40501. }
  40502. // String returns the string representation
  40503. func (s DescribeInstanceAttributeOutput) String() string {
  40504. return awsutil.Prettify(s)
  40505. }
  40506. // GoString returns the string representation
  40507. func (s DescribeInstanceAttributeOutput) GoString() string {
  40508. return s.String()
  40509. }
  40510. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  40511. func (s *DescribeInstanceAttributeOutput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *DescribeInstanceAttributeOutput {
  40512. s.BlockDeviceMappings = v
  40513. return s
  40514. }
  40515. // SetDisableApiTermination sets the DisableApiTermination field's value.
  40516. func (s *DescribeInstanceAttributeOutput) SetDisableApiTermination(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  40517. s.DisableApiTermination = v
  40518. return s
  40519. }
  40520. // SetEbsOptimized sets the EbsOptimized field's value.
  40521. func (s *DescribeInstanceAttributeOutput) SetEbsOptimized(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  40522. s.EbsOptimized = v
  40523. return s
  40524. }
  40525. // SetEnaSupport sets the EnaSupport field's value.
  40526. func (s *DescribeInstanceAttributeOutput) SetEnaSupport(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  40527. s.EnaSupport = v
  40528. return s
  40529. }
  40530. // SetGroups sets the Groups field's value.
  40531. func (s *DescribeInstanceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeInstanceAttributeOutput {
  40532. s.Groups = v
  40533. return s
  40534. }
  40535. // SetInstanceId sets the InstanceId field's value.
  40536. func (s *DescribeInstanceAttributeOutput) SetInstanceId(v string) *DescribeInstanceAttributeOutput {
  40537. s.InstanceId = &v
  40538. return s
  40539. }
  40540. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  40541. func (s *DescribeInstanceAttributeOutput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40542. s.InstanceInitiatedShutdownBehavior = v
  40543. return s
  40544. }
  40545. // SetInstanceType sets the InstanceType field's value.
  40546. func (s *DescribeInstanceAttributeOutput) SetInstanceType(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40547. s.InstanceType = v
  40548. return s
  40549. }
  40550. // SetKernelId sets the KernelId field's value.
  40551. func (s *DescribeInstanceAttributeOutput) SetKernelId(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40552. s.KernelId = v
  40553. return s
  40554. }
  40555. // SetProductCodes sets the ProductCodes field's value.
  40556. func (s *DescribeInstanceAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeInstanceAttributeOutput {
  40557. s.ProductCodes = v
  40558. return s
  40559. }
  40560. // SetRamdiskId sets the RamdiskId field's value.
  40561. func (s *DescribeInstanceAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40562. s.RamdiskId = v
  40563. return s
  40564. }
  40565. // SetRootDeviceName sets the RootDeviceName field's value.
  40566. func (s *DescribeInstanceAttributeOutput) SetRootDeviceName(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40567. s.RootDeviceName = v
  40568. return s
  40569. }
  40570. // SetSourceDestCheck sets the SourceDestCheck field's value.
  40571. func (s *DescribeInstanceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  40572. s.SourceDestCheck = v
  40573. return s
  40574. }
  40575. // SetSriovNetSupport sets the SriovNetSupport field's value.
  40576. func (s *DescribeInstanceAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40577. s.SriovNetSupport = v
  40578. return s
  40579. }
  40580. // SetUserData sets the UserData field's value.
  40581. func (s *DescribeInstanceAttributeOutput) SetUserData(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40582. s.UserData = v
  40583. return s
  40584. }
  40585. type DescribeInstanceCreditSpecificationsInput struct {
  40586. _ struct{} `type:"structure"`
  40587. // Checks whether you have the required permissions for the action, without
  40588. // actually making the request, and provides an error response. If you have
  40589. // the required permissions, the error response is DryRunOperation. Otherwise,
  40590. // it is UnauthorizedOperation.
  40591. DryRun *bool `type:"boolean"`
  40592. // One or more filters.
  40593. //
  40594. // * instance-id - The ID of the instance.
  40595. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  40596. // One or more instance IDs.
  40597. //
  40598. // Default: Describes all your instances.
  40599. //
  40600. // Constraints: Maximum 1000 explicitly specified instance IDs.
  40601. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  40602. // The maximum number of results to return in a single call. To retrieve the
  40603. // remaining results, make another call with the returned NextToken value. This
  40604. // value can be between 5 and 1000. You cannot specify this parameter and the
  40605. // instance IDs parameter in the same call.
  40606. MaxResults *int64 `type:"integer"`
  40607. // The token to retrieve the next page of results.
  40608. NextToken *string `type:"string"`
  40609. }
  40610. // String returns the string representation
  40611. func (s DescribeInstanceCreditSpecificationsInput) String() string {
  40612. return awsutil.Prettify(s)
  40613. }
  40614. // GoString returns the string representation
  40615. func (s DescribeInstanceCreditSpecificationsInput) GoString() string {
  40616. return s.String()
  40617. }
  40618. // SetDryRun sets the DryRun field's value.
  40619. func (s *DescribeInstanceCreditSpecificationsInput) SetDryRun(v bool) *DescribeInstanceCreditSpecificationsInput {
  40620. s.DryRun = &v
  40621. return s
  40622. }
  40623. // SetFilters sets the Filters field's value.
  40624. func (s *DescribeInstanceCreditSpecificationsInput) SetFilters(v []*Filter) *DescribeInstanceCreditSpecificationsInput {
  40625. s.Filters = v
  40626. return s
  40627. }
  40628. // SetInstanceIds sets the InstanceIds field's value.
  40629. func (s *DescribeInstanceCreditSpecificationsInput) SetInstanceIds(v []*string) *DescribeInstanceCreditSpecificationsInput {
  40630. s.InstanceIds = v
  40631. return s
  40632. }
  40633. // SetMaxResults sets the MaxResults field's value.
  40634. func (s *DescribeInstanceCreditSpecificationsInput) SetMaxResults(v int64) *DescribeInstanceCreditSpecificationsInput {
  40635. s.MaxResults = &v
  40636. return s
  40637. }
  40638. // SetNextToken sets the NextToken field's value.
  40639. func (s *DescribeInstanceCreditSpecificationsInput) SetNextToken(v string) *DescribeInstanceCreditSpecificationsInput {
  40640. s.NextToken = &v
  40641. return s
  40642. }
  40643. type DescribeInstanceCreditSpecificationsOutput struct {
  40644. _ struct{} `type:"structure"`
  40645. // Information about the credit option for CPU usage of an instance.
  40646. InstanceCreditSpecifications []*InstanceCreditSpecification `locationName:"instanceCreditSpecificationSet" locationNameList:"item" type:"list"`
  40647. // The token to use to retrieve the next page of results. This value is null
  40648. // when there are no more results to return.
  40649. NextToken *string `locationName:"nextToken" type:"string"`
  40650. }
  40651. // String returns the string representation
  40652. func (s DescribeInstanceCreditSpecificationsOutput) String() string {
  40653. return awsutil.Prettify(s)
  40654. }
  40655. // GoString returns the string representation
  40656. func (s DescribeInstanceCreditSpecificationsOutput) GoString() string {
  40657. return s.String()
  40658. }
  40659. // SetInstanceCreditSpecifications sets the InstanceCreditSpecifications field's value.
  40660. func (s *DescribeInstanceCreditSpecificationsOutput) SetInstanceCreditSpecifications(v []*InstanceCreditSpecification) *DescribeInstanceCreditSpecificationsOutput {
  40661. s.InstanceCreditSpecifications = v
  40662. return s
  40663. }
  40664. // SetNextToken sets the NextToken field's value.
  40665. func (s *DescribeInstanceCreditSpecificationsOutput) SetNextToken(v string) *DescribeInstanceCreditSpecificationsOutput {
  40666. s.NextToken = &v
  40667. return s
  40668. }
  40669. type DescribeInstanceStatusInput struct {
  40670. _ struct{} `type:"structure"`
  40671. // Checks whether you have the required permissions for the action, without
  40672. // actually making the request, and provides an error response. If you have
  40673. // the required permissions, the error response is DryRunOperation. Otherwise,
  40674. // it is UnauthorizedOperation.
  40675. DryRun *bool `locationName:"dryRun" type:"boolean"`
  40676. // One or more filters.
  40677. //
  40678. // * availability-zone - The Availability Zone of the instance.
  40679. //
  40680. // * event.code - The code for the scheduled event (instance-reboot | system-reboot
  40681. // | system-maintenance | instance-retirement | instance-stop).
  40682. //
  40683. // * event.description - A description of the event.
  40684. //
  40685. // * event.not-after - The latest end time for the scheduled event (for example,
  40686. // 2014-09-15T17:15:20.000Z).
  40687. //
  40688. // * event.not-before - The earliest start time for the scheduled event (for
  40689. // example, 2014-09-15T17:15:20.000Z).
  40690. //
  40691. // * instance-state-code - The code for the instance state, as a 16-bit unsigned
  40692. // integer. The high byte is used for internal purposes and should be ignored.
  40693. // The low byte is set based on the state represented. The valid values are
  40694. // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
  40695. // and 80 (stopped).
  40696. //
  40697. // * instance-state-name - The state of the instance (pending | running |
  40698. // shutting-down | terminated | stopping | stopped).
  40699. //
  40700. // * instance-status.reachability - Filters on instance status where the
  40701. // name is reachability (passed | failed | initializing | insufficient-data).
  40702. //
  40703. // * instance-status.status - The status of the instance (ok | impaired |
  40704. // initializing | insufficient-data | not-applicable).
  40705. //
  40706. // * system-status.reachability - Filters on system status where the name
  40707. // is reachability (passed | failed | initializing | insufficient-data).
  40708. //
  40709. // * system-status.status - The system status of the instance (ok | impaired
  40710. // | initializing | insufficient-data | not-applicable).
  40711. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  40712. // When true, includes the health status for all instances. When false, includes
  40713. // the health status for running instances only.
  40714. //
  40715. // Default: false
  40716. IncludeAllInstances *bool `locationName:"includeAllInstances" type:"boolean"`
  40717. // One or more instance IDs.
  40718. //
  40719. // Default: Describes all your instances.
  40720. //
  40721. // Constraints: Maximum 100 explicitly specified instance IDs.
  40722. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  40723. // The maximum number of results to return in a single call. To retrieve the
  40724. // remaining results, make another call with the returned NextToken value. This
  40725. // value can be between 5 and 1000. You cannot specify this parameter and the
  40726. // instance IDs parameter in the same call.
  40727. MaxResults *int64 `type:"integer"`
  40728. // The token to retrieve the next page of results.
  40729. NextToken *string `type:"string"`
  40730. }
  40731. // String returns the string representation
  40732. func (s DescribeInstanceStatusInput) String() string {
  40733. return awsutil.Prettify(s)
  40734. }
  40735. // GoString returns the string representation
  40736. func (s DescribeInstanceStatusInput) GoString() string {
  40737. return s.String()
  40738. }
  40739. // SetDryRun sets the DryRun field's value.
  40740. func (s *DescribeInstanceStatusInput) SetDryRun(v bool) *DescribeInstanceStatusInput {
  40741. s.DryRun = &v
  40742. return s
  40743. }
  40744. // SetFilters sets the Filters field's value.
  40745. func (s *DescribeInstanceStatusInput) SetFilters(v []*Filter) *DescribeInstanceStatusInput {
  40746. s.Filters = v
  40747. return s
  40748. }
  40749. // SetIncludeAllInstances sets the IncludeAllInstances field's value.
  40750. func (s *DescribeInstanceStatusInput) SetIncludeAllInstances(v bool) *DescribeInstanceStatusInput {
  40751. s.IncludeAllInstances = &v
  40752. return s
  40753. }
  40754. // SetInstanceIds sets the InstanceIds field's value.
  40755. func (s *DescribeInstanceStatusInput) SetInstanceIds(v []*string) *DescribeInstanceStatusInput {
  40756. s.InstanceIds = v
  40757. return s
  40758. }
  40759. // SetMaxResults sets the MaxResults field's value.
  40760. func (s *DescribeInstanceStatusInput) SetMaxResults(v int64) *DescribeInstanceStatusInput {
  40761. s.MaxResults = &v
  40762. return s
  40763. }
  40764. // SetNextToken sets the NextToken field's value.
  40765. func (s *DescribeInstanceStatusInput) SetNextToken(v string) *DescribeInstanceStatusInput {
  40766. s.NextToken = &v
  40767. return s
  40768. }
  40769. type DescribeInstanceStatusOutput struct {
  40770. _ struct{} `type:"structure"`
  40771. // One or more instance status descriptions.
  40772. InstanceStatuses []*InstanceStatus `locationName:"instanceStatusSet" locationNameList:"item" type:"list"`
  40773. // The token to use to retrieve the next page of results. This value is null
  40774. // when there are no more results to return.
  40775. NextToken *string `locationName:"nextToken" type:"string"`
  40776. }
  40777. // String returns the string representation
  40778. func (s DescribeInstanceStatusOutput) String() string {
  40779. return awsutil.Prettify(s)
  40780. }
  40781. // GoString returns the string representation
  40782. func (s DescribeInstanceStatusOutput) GoString() string {
  40783. return s.String()
  40784. }
  40785. // SetInstanceStatuses sets the InstanceStatuses field's value.
  40786. func (s *DescribeInstanceStatusOutput) SetInstanceStatuses(v []*InstanceStatus) *DescribeInstanceStatusOutput {
  40787. s.InstanceStatuses = v
  40788. return s
  40789. }
  40790. // SetNextToken sets the NextToken field's value.
  40791. func (s *DescribeInstanceStatusOutput) SetNextToken(v string) *DescribeInstanceStatusOutput {
  40792. s.NextToken = &v
  40793. return s
  40794. }
  40795. type DescribeInstancesInput struct {
  40796. _ struct{} `type:"structure"`
  40797. // Checks whether you have the required permissions for the action, without
  40798. // actually making the request, and provides an error response. If you have
  40799. // the required permissions, the error response is DryRunOperation. Otherwise,
  40800. // it is UnauthorizedOperation.
  40801. DryRun *bool `locationName:"dryRun" type:"boolean"`
  40802. // One or more filters.
  40803. //
  40804. // * affinity - The affinity setting for an instance running on a Dedicated
  40805. // Host (default | host).
  40806. //
  40807. // * architecture - The instance architecture (i386 | x86_64).
  40808. //
  40809. // * availability-zone - The Availability Zone of the instance.
  40810. //
  40811. // * block-device-mapping.attach-time - The attach time for an EBS volume
  40812. // mapped to the instance, for example, 2010-09-15T17:15:20.000Z.
  40813. //
  40814. // * block-device-mapping.delete-on-termination - A Boolean that indicates
  40815. // whether the EBS volume is deleted on instance termination.
  40816. //
  40817. // * block-device-mapping.device-name - The device name specified in the
  40818. // block device mapping (for example, /dev/sdh or xvdh).
  40819. //
  40820. // * block-device-mapping.status - The status for the EBS volume (attaching
  40821. // | attached | detaching | detached).
  40822. //
  40823. // * block-device-mapping.volume-id - The volume ID of the EBS volume.
  40824. //
  40825. // * client-token - The idempotency token you provided when you launched
  40826. // the instance.
  40827. //
  40828. // * dns-name - The public DNS name of the instance.
  40829. //
  40830. // * group-id - The ID of the security group for the instance. EC2-Classic
  40831. // only.
  40832. //
  40833. // * group-name - The name of the security group for the instance. EC2-Classic
  40834. // only.
  40835. //
  40836. // * hibernation-options.configured - A Boolean that indicates whether the
  40837. // instance is enabled for hibernation. A value of true means that the instance
  40838. // is enabled for hibernation.
  40839. //
  40840. // * host-id - The ID of the Dedicated Host on which the instance is running,
  40841. // if applicable.
  40842. //
  40843. // * hypervisor - The hypervisor type of the instance (ovm | xen).
  40844. //
  40845. // * iam-instance-profile.arn - The instance profile associated with the
  40846. // instance. Specified as an ARN.
  40847. //
  40848. // * image-id - The ID of the image used to launch the instance.
  40849. //
  40850. // * instance-id - The ID of the instance.
  40851. //
  40852. // * instance-lifecycle - Indicates whether this is a Spot Instance or a
  40853. // Scheduled Instance (spot | scheduled).
  40854. //
  40855. // * instance-state-code - The state of the instance, as a 16-bit unsigned
  40856. // integer. The high byte is used for internal purposes and should be ignored.
  40857. // The low byte is set based on the state represented. The valid values are:
  40858. // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
  40859. // and 80 (stopped).
  40860. //
  40861. // * instance-state-name - The state of the instance (pending | running |
  40862. // shutting-down | terminated | stopping | stopped).
  40863. //
  40864. // * instance-type - The type of instance (for example, t2.micro).
  40865. //
  40866. // * instance.group-id - The ID of the security group for the instance.
  40867. //
  40868. // * instance.group-name - The name of the security group for the instance.
  40869. //
  40870. //
  40871. // * ip-address - The public IPv4 address of the instance.
  40872. //
  40873. // * kernel-id - The kernel ID.
  40874. //
  40875. // * key-name - The name of the key pair used when the instance was launched.
  40876. //
  40877. // * launch-index - When launching multiple instances, this is the index
  40878. // for the instance in the launch group (for example, 0, 1, 2, and so on).
  40879. //
  40880. //
  40881. // * launch-time - The time when the instance was launched.
  40882. //
  40883. // * monitoring-state - Indicates whether detailed monitoring is enabled
  40884. // (disabled | enabled).
  40885. //
  40886. // * network-interface.addresses.private-ip-address - The private IPv4 address
  40887. // associated with the network interface.
  40888. //
  40889. // * network-interface.addresses.primary - Specifies whether the IPv4 address
  40890. // of the network interface is the primary private IPv4 address.
  40891. //
  40892. // * network-interface.addresses.association.public-ip - The ID of the association
  40893. // of an Elastic IP address (IPv4) with a network interface.
  40894. //
  40895. // * network-interface.addresses.association.ip-owner-id - The owner ID of
  40896. // the private IPv4 address associated with the network interface.
  40897. //
  40898. // * network-interface.association.public-ip - The address of the Elastic
  40899. // IP address (IPv4) bound to the network interface.
  40900. //
  40901. // * network-interface.association.ip-owner-id - The owner of the Elastic
  40902. // IP address (IPv4) associated with the network interface.
  40903. //
  40904. // * network-interface.association.allocation-id - The allocation ID returned
  40905. // when you allocated the Elastic IP address (IPv4) for your network interface.
  40906. //
  40907. // * network-interface.association.association-id - The association ID returned
  40908. // when the network interface was associated with an IPv4 address.
  40909. //
  40910. // * network-interface.attachment.attachment-id - The ID of the interface
  40911. // attachment.
  40912. //
  40913. // * network-interface.attachment.instance-id - The ID of the instance to
  40914. // which the network interface is attached.
  40915. //
  40916. // * network-interface.attachment.instance-owner-id - The owner ID of the
  40917. // instance to which the network interface is attached.
  40918. //
  40919. // * network-interface.attachment.device-index - The device index to which
  40920. // the network interface is attached.
  40921. //
  40922. // * network-interface.attachment.status - The status of the attachment (attaching
  40923. // | attached | detaching | detached).
  40924. //
  40925. // * network-interface.attachment.attach-time - The time that the network
  40926. // interface was attached to an instance.
  40927. //
  40928. // * network-interface.attachment.delete-on-termination - Specifies whether
  40929. // the attachment is deleted when an instance is terminated.
  40930. //
  40931. // * network-interface.availability-zone - The Availability Zone for the
  40932. // network interface.
  40933. //
  40934. // * network-interface.description - The description of the network interface.
  40935. //
  40936. // * network-interface.group-id - The ID of a security group associated with
  40937. // the network interface.
  40938. //
  40939. // * network-interface.group-name - The name of a security group associated
  40940. // with the network interface.
  40941. //
  40942. // * network-interface.ipv6-addresses.ipv6-address - The IPv6 address associated
  40943. // with the network interface.
  40944. //
  40945. // * network-interface.mac-address - The MAC address of the network interface.
  40946. //
  40947. // * network-interface.network-interface-id - The ID of the network interface.
  40948. //
  40949. // * network-interface.owner-id - The ID of the owner of the network interface.
  40950. //
  40951. // * network-interface.private-dns-name - The private DNS name of the network
  40952. // interface.
  40953. //
  40954. // * network-interface.requester-id - The requester ID for the network interface.
  40955. //
  40956. // * network-interface.requester-managed - Indicates whether the network
  40957. // interface is being managed by AWS.
  40958. //
  40959. // * network-interface.status - The status of the network interface (available)
  40960. // | in-use).
  40961. //
  40962. // * network-interface.source-dest-check - Whether the network interface
  40963. // performs source/destination checking. A value of true means that checking
  40964. // is enabled, and false means that checking is disabled. The value must
  40965. // be false for the network interface to perform network address translation
  40966. // (NAT) in your VPC.
  40967. //
  40968. // * network-interface.subnet-id - The ID of the subnet for the network interface.
  40969. //
  40970. // * network-interface.vpc-id - The ID of the VPC for the network interface.
  40971. //
  40972. // * owner-id - The AWS account ID of the instance owner.
  40973. //
  40974. // * partition-number - The partition in which the instance is located.
  40975. //
  40976. // * placement-group-name - The name of the placement group for the instance.
  40977. //
  40978. // * platform - The platform. Use windows if you have Windows instances;
  40979. // otherwise, leave blank.
  40980. //
  40981. // * private-dns-name - The private IPv4 DNS name of the instance.
  40982. //
  40983. // * private-ip-address - The private IPv4 address of the instance.
  40984. //
  40985. // * product-code - The product code associated with the AMI used to launch
  40986. // the instance.
  40987. //
  40988. // * product-code.type - The type of product code (devpay | marketplace).
  40989. //
  40990. // * ramdisk-id - The RAM disk ID.
  40991. //
  40992. // * reason - The reason for the current state of the instance (for example,
  40993. // shows "User Initiated [date]" when you stop or terminate the instance).
  40994. // Similar to the state-reason-code filter.
  40995. //
  40996. // * requester-id - The ID of the entity that launched the instance on your
  40997. // behalf (for example, AWS Management Console, Auto Scaling, and so on).
  40998. //
  40999. // * reservation-id - The ID of the instance's reservation. A reservation
  41000. // ID is created any time you launch an instance. A reservation ID has a
  41001. // one-to-one relationship with an instance launch request, but can be associated
  41002. // with more than one instance if you launch multiple instances using the
  41003. // same launch request. For example, if you launch one instance, you get
  41004. // one reservation ID. If you launch ten instances using the same launch
  41005. // request, you also get one reservation ID.
  41006. //
  41007. // * root-device-name - The device name of the root device volume (for example,
  41008. // /dev/sda1).
  41009. //
  41010. // * root-device-type - The type of the root device volume (ebs | instance-store).
  41011. //
  41012. // * source-dest-check - Indicates whether the instance performs source/destination
  41013. // checking. A value of true means that checking is enabled, and false means
  41014. // that checking is disabled. The value must be false for the instance to
  41015. // perform network address translation (NAT) in your VPC.
  41016. //
  41017. // * spot-instance-request-id - The ID of the Spot Instance request.
  41018. //
  41019. // * state-reason-code - The reason code for the state change.
  41020. //
  41021. // * state-reason-message - A message that describes the state change.
  41022. //
  41023. // * subnet-id - The ID of the subnet for the instance.
  41024. //
  41025. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  41026. // Use the tag key in the filter name and the tag value as the filter value.
  41027. // For example, to find all resources that have a tag with the key Owner
  41028. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  41029. // the filter value.
  41030. //
  41031. // * tag-key - The key of a tag assigned to the resource. Use this filter
  41032. // to find all resources that have a tag with a specific key, regardless
  41033. // of the tag value.
  41034. //
  41035. // * tenancy - The tenancy of an instance (dedicated | default | host).
  41036. //
  41037. // * virtualization-type - The virtualization type of the instance (paravirtual
  41038. // | hvm).
  41039. //
  41040. // * vpc-id - The ID of the VPC that the instance is running in.
  41041. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41042. // One or more instance IDs.
  41043. //
  41044. // Default: Describes all your instances.
  41045. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  41046. // The maximum number of results to return in a single call. To retrieve the
  41047. // remaining results, make another call with the returned NextToken value. This
  41048. // value can be between 5 and 1000. You cannot specify this parameter and the
  41049. // instance IDs parameter in the same call.
  41050. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  41051. // The token to request the next page of results.
  41052. NextToken *string `locationName:"nextToken" type:"string"`
  41053. }
  41054. // String returns the string representation
  41055. func (s DescribeInstancesInput) String() string {
  41056. return awsutil.Prettify(s)
  41057. }
  41058. // GoString returns the string representation
  41059. func (s DescribeInstancesInput) GoString() string {
  41060. return s.String()
  41061. }
  41062. // SetDryRun sets the DryRun field's value.
  41063. func (s *DescribeInstancesInput) SetDryRun(v bool) *DescribeInstancesInput {
  41064. s.DryRun = &v
  41065. return s
  41066. }
  41067. // SetFilters sets the Filters field's value.
  41068. func (s *DescribeInstancesInput) SetFilters(v []*Filter) *DescribeInstancesInput {
  41069. s.Filters = v
  41070. return s
  41071. }
  41072. // SetInstanceIds sets the InstanceIds field's value.
  41073. func (s *DescribeInstancesInput) SetInstanceIds(v []*string) *DescribeInstancesInput {
  41074. s.InstanceIds = v
  41075. return s
  41076. }
  41077. // SetMaxResults sets the MaxResults field's value.
  41078. func (s *DescribeInstancesInput) SetMaxResults(v int64) *DescribeInstancesInput {
  41079. s.MaxResults = &v
  41080. return s
  41081. }
  41082. // SetNextToken sets the NextToken field's value.
  41083. func (s *DescribeInstancesInput) SetNextToken(v string) *DescribeInstancesInput {
  41084. s.NextToken = &v
  41085. return s
  41086. }
  41087. type DescribeInstancesOutput struct {
  41088. _ struct{} `type:"structure"`
  41089. // The token to use to retrieve the next page of results. This value is null
  41090. // when there are no more results to return.
  41091. NextToken *string `locationName:"nextToken" type:"string"`
  41092. // Zero or more reservations.
  41093. Reservations []*Reservation `locationName:"reservationSet" locationNameList:"item" type:"list"`
  41094. }
  41095. // String returns the string representation
  41096. func (s DescribeInstancesOutput) String() string {
  41097. return awsutil.Prettify(s)
  41098. }
  41099. // GoString returns the string representation
  41100. func (s DescribeInstancesOutput) GoString() string {
  41101. return s.String()
  41102. }
  41103. // SetNextToken sets the NextToken field's value.
  41104. func (s *DescribeInstancesOutput) SetNextToken(v string) *DescribeInstancesOutput {
  41105. s.NextToken = &v
  41106. return s
  41107. }
  41108. // SetReservations sets the Reservations field's value.
  41109. func (s *DescribeInstancesOutput) SetReservations(v []*Reservation) *DescribeInstancesOutput {
  41110. s.Reservations = v
  41111. return s
  41112. }
  41113. type DescribeInternetGatewaysInput struct {
  41114. _ struct{} `type:"structure"`
  41115. // Checks whether you have the required permissions for the action, without
  41116. // actually making the request, and provides an error response. If you have
  41117. // the required permissions, the error response is DryRunOperation. Otherwise,
  41118. // it is UnauthorizedOperation.
  41119. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41120. // One or more filters.
  41121. //
  41122. // * attachment.state - The current state of the attachment between the gateway
  41123. // and the VPC (available). Present only if a VPC is attached.
  41124. //
  41125. // * attachment.vpc-id - The ID of an attached VPC.
  41126. //
  41127. // * internet-gateway-id - The ID of the Internet gateway.
  41128. //
  41129. // * owner-id - The ID of the AWS account that owns the internet gateway.
  41130. //
  41131. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  41132. // Use the tag key in the filter name and the tag value as the filter value.
  41133. // For example, to find all resources that have a tag with the key Owner
  41134. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  41135. // the filter value.
  41136. //
  41137. // * tag-key - The key of a tag assigned to the resource. Use this filter
  41138. // to find all resources assigned a tag with a specific key, regardless of
  41139. // the tag value.
  41140. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41141. // One or more internet gateway IDs.
  41142. //
  41143. // Default: Describes all your internet gateways.
  41144. InternetGatewayIds []*string `locationName:"internetGatewayId" locationNameList:"item" type:"list"`
  41145. }
  41146. // String returns the string representation
  41147. func (s DescribeInternetGatewaysInput) String() string {
  41148. return awsutil.Prettify(s)
  41149. }
  41150. // GoString returns the string representation
  41151. func (s DescribeInternetGatewaysInput) GoString() string {
  41152. return s.String()
  41153. }
  41154. // SetDryRun sets the DryRun field's value.
  41155. func (s *DescribeInternetGatewaysInput) SetDryRun(v bool) *DescribeInternetGatewaysInput {
  41156. s.DryRun = &v
  41157. return s
  41158. }
  41159. // SetFilters sets the Filters field's value.
  41160. func (s *DescribeInternetGatewaysInput) SetFilters(v []*Filter) *DescribeInternetGatewaysInput {
  41161. s.Filters = v
  41162. return s
  41163. }
  41164. // SetInternetGatewayIds sets the InternetGatewayIds field's value.
  41165. func (s *DescribeInternetGatewaysInput) SetInternetGatewayIds(v []*string) *DescribeInternetGatewaysInput {
  41166. s.InternetGatewayIds = v
  41167. return s
  41168. }
  41169. type DescribeInternetGatewaysOutput struct {
  41170. _ struct{} `type:"structure"`
  41171. // Information about one or more internet gateways.
  41172. InternetGateways []*InternetGateway `locationName:"internetGatewaySet" locationNameList:"item" type:"list"`
  41173. }
  41174. // String returns the string representation
  41175. func (s DescribeInternetGatewaysOutput) String() string {
  41176. return awsutil.Prettify(s)
  41177. }
  41178. // GoString returns the string representation
  41179. func (s DescribeInternetGatewaysOutput) GoString() string {
  41180. return s.String()
  41181. }
  41182. // SetInternetGateways sets the InternetGateways field's value.
  41183. func (s *DescribeInternetGatewaysOutput) SetInternetGateways(v []*InternetGateway) *DescribeInternetGatewaysOutput {
  41184. s.InternetGateways = v
  41185. return s
  41186. }
  41187. type DescribeKeyPairsInput struct {
  41188. _ struct{} `type:"structure"`
  41189. // Checks whether you have the required permissions for the action, without
  41190. // actually making the request, and provides an error response. If you have
  41191. // the required permissions, the error response is DryRunOperation. Otherwise,
  41192. // it is UnauthorizedOperation.
  41193. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41194. // One or more filters.
  41195. //
  41196. // * fingerprint - The fingerprint of the key pair.
  41197. //
  41198. // * key-name - The name of the key pair.
  41199. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41200. // One or more key pair names.
  41201. //
  41202. // Default: Describes all your key pairs.
  41203. KeyNames []*string `locationName:"KeyName" locationNameList:"KeyName" type:"list"`
  41204. }
  41205. // String returns the string representation
  41206. func (s DescribeKeyPairsInput) String() string {
  41207. return awsutil.Prettify(s)
  41208. }
  41209. // GoString returns the string representation
  41210. func (s DescribeKeyPairsInput) GoString() string {
  41211. return s.String()
  41212. }
  41213. // SetDryRun sets the DryRun field's value.
  41214. func (s *DescribeKeyPairsInput) SetDryRun(v bool) *DescribeKeyPairsInput {
  41215. s.DryRun = &v
  41216. return s
  41217. }
  41218. // SetFilters sets the Filters field's value.
  41219. func (s *DescribeKeyPairsInput) SetFilters(v []*Filter) *DescribeKeyPairsInput {
  41220. s.Filters = v
  41221. return s
  41222. }
  41223. // SetKeyNames sets the KeyNames field's value.
  41224. func (s *DescribeKeyPairsInput) SetKeyNames(v []*string) *DescribeKeyPairsInput {
  41225. s.KeyNames = v
  41226. return s
  41227. }
  41228. type DescribeKeyPairsOutput struct {
  41229. _ struct{} `type:"structure"`
  41230. // Information about one or more key pairs.
  41231. KeyPairs []*KeyPairInfo `locationName:"keySet" locationNameList:"item" type:"list"`
  41232. }
  41233. // String returns the string representation
  41234. func (s DescribeKeyPairsOutput) String() string {
  41235. return awsutil.Prettify(s)
  41236. }
  41237. // GoString returns the string representation
  41238. func (s DescribeKeyPairsOutput) GoString() string {
  41239. return s.String()
  41240. }
  41241. // SetKeyPairs sets the KeyPairs field's value.
  41242. func (s *DescribeKeyPairsOutput) SetKeyPairs(v []*KeyPairInfo) *DescribeKeyPairsOutput {
  41243. s.KeyPairs = v
  41244. return s
  41245. }
  41246. type DescribeLaunchTemplateVersionsInput struct {
  41247. _ struct{} `type:"structure"`
  41248. // Checks whether you have the required permissions for the action, without
  41249. // actually making the request, and provides an error response. If you have
  41250. // the required permissions, the error response is DryRunOperation. Otherwise,
  41251. // it is UnauthorizedOperation.
  41252. DryRun *bool `type:"boolean"`
  41253. // One or more filters.
  41254. //
  41255. // * create-time - The time the launch template version was created.
  41256. //
  41257. // * ebs-optimized - A boolean that indicates whether the instance is optimized
  41258. // for Amazon EBS I/O.
  41259. //
  41260. // * iam-instance-profile - The ARN of the IAM instance profile.
  41261. //
  41262. // * image-id - The ID of the AMI.
  41263. //
  41264. // * instance-type - The instance type.
  41265. //
  41266. // * is-default-version - A boolean that indicates whether the launch template
  41267. // version is the default version.
  41268. //
  41269. // * kernel-id - The kernel ID.
  41270. //
  41271. // * ram-disk-id - The RAM disk ID.
  41272. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41273. // The ID of the launch template. You must specify either the launch template
  41274. // ID or launch template name in the request.
  41275. LaunchTemplateId *string `type:"string"`
  41276. // The name of the launch template. You must specify either the launch template
  41277. // ID or launch template name in the request.
  41278. LaunchTemplateName *string `min:"3" type:"string"`
  41279. // The maximum number of results to return in a single call. To retrieve the
  41280. // remaining results, make another call with the returned NextToken value. This
  41281. // value can be between 1 and 200.
  41282. MaxResults *int64 `type:"integer"`
  41283. // The version number up to which to describe launch template versions.
  41284. MaxVersion *string `type:"string"`
  41285. // The version number after which to describe launch template versions.
  41286. MinVersion *string `type:"string"`
  41287. // The token to request the next page of results.
  41288. NextToken *string `type:"string"`
  41289. // One or more versions of the launch template.
  41290. Versions []*string `locationName:"LaunchTemplateVersion" locationNameList:"item" type:"list"`
  41291. }
  41292. // String returns the string representation
  41293. func (s DescribeLaunchTemplateVersionsInput) String() string {
  41294. return awsutil.Prettify(s)
  41295. }
  41296. // GoString returns the string representation
  41297. func (s DescribeLaunchTemplateVersionsInput) GoString() string {
  41298. return s.String()
  41299. }
  41300. // Validate inspects the fields of the type to determine if they are valid.
  41301. func (s *DescribeLaunchTemplateVersionsInput) Validate() error {
  41302. invalidParams := request.ErrInvalidParams{Context: "DescribeLaunchTemplateVersionsInput"}
  41303. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  41304. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  41305. }
  41306. if invalidParams.Len() > 0 {
  41307. return invalidParams
  41308. }
  41309. return nil
  41310. }
  41311. // SetDryRun sets the DryRun field's value.
  41312. func (s *DescribeLaunchTemplateVersionsInput) SetDryRun(v bool) *DescribeLaunchTemplateVersionsInput {
  41313. s.DryRun = &v
  41314. return s
  41315. }
  41316. // SetFilters sets the Filters field's value.
  41317. func (s *DescribeLaunchTemplateVersionsInput) SetFilters(v []*Filter) *DescribeLaunchTemplateVersionsInput {
  41318. s.Filters = v
  41319. return s
  41320. }
  41321. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  41322. func (s *DescribeLaunchTemplateVersionsInput) SetLaunchTemplateId(v string) *DescribeLaunchTemplateVersionsInput {
  41323. s.LaunchTemplateId = &v
  41324. return s
  41325. }
  41326. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  41327. func (s *DescribeLaunchTemplateVersionsInput) SetLaunchTemplateName(v string) *DescribeLaunchTemplateVersionsInput {
  41328. s.LaunchTemplateName = &v
  41329. return s
  41330. }
  41331. // SetMaxResults sets the MaxResults field's value.
  41332. func (s *DescribeLaunchTemplateVersionsInput) SetMaxResults(v int64) *DescribeLaunchTemplateVersionsInput {
  41333. s.MaxResults = &v
  41334. return s
  41335. }
  41336. // SetMaxVersion sets the MaxVersion field's value.
  41337. func (s *DescribeLaunchTemplateVersionsInput) SetMaxVersion(v string) *DescribeLaunchTemplateVersionsInput {
  41338. s.MaxVersion = &v
  41339. return s
  41340. }
  41341. // SetMinVersion sets the MinVersion field's value.
  41342. func (s *DescribeLaunchTemplateVersionsInput) SetMinVersion(v string) *DescribeLaunchTemplateVersionsInput {
  41343. s.MinVersion = &v
  41344. return s
  41345. }
  41346. // SetNextToken sets the NextToken field's value.
  41347. func (s *DescribeLaunchTemplateVersionsInput) SetNextToken(v string) *DescribeLaunchTemplateVersionsInput {
  41348. s.NextToken = &v
  41349. return s
  41350. }
  41351. // SetVersions sets the Versions field's value.
  41352. func (s *DescribeLaunchTemplateVersionsInput) SetVersions(v []*string) *DescribeLaunchTemplateVersionsInput {
  41353. s.Versions = v
  41354. return s
  41355. }
  41356. type DescribeLaunchTemplateVersionsOutput struct {
  41357. _ struct{} `type:"structure"`
  41358. // Information about the launch template versions.
  41359. LaunchTemplateVersions []*LaunchTemplateVersion `locationName:"launchTemplateVersionSet" locationNameList:"item" type:"list"`
  41360. // The token to use to retrieve the next page of results. This value is null
  41361. // when there are no more results to return.
  41362. NextToken *string `locationName:"nextToken" type:"string"`
  41363. }
  41364. // String returns the string representation
  41365. func (s DescribeLaunchTemplateVersionsOutput) String() string {
  41366. return awsutil.Prettify(s)
  41367. }
  41368. // GoString returns the string representation
  41369. func (s DescribeLaunchTemplateVersionsOutput) GoString() string {
  41370. return s.String()
  41371. }
  41372. // SetLaunchTemplateVersions sets the LaunchTemplateVersions field's value.
  41373. func (s *DescribeLaunchTemplateVersionsOutput) SetLaunchTemplateVersions(v []*LaunchTemplateVersion) *DescribeLaunchTemplateVersionsOutput {
  41374. s.LaunchTemplateVersions = v
  41375. return s
  41376. }
  41377. // SetNextToken sets the NextToken field's value.
  41378. func (s *DescribeLaunchTemplateVersionsOutput) SetNextToken(v string) *DescribeLaunchTemplateVersionsOutput {
  41379. s.NextToken = &v
  41380. return s
  41381. }
  41382. type DescribeLaunchTemplatesInput struct {
  41383. _ struct{} `type:"structure"`
  41384. // Checks whether you have the required permissions for the action, without
  41385. // actually making the request, and provides an error response. If you have
  41386. // the required permissions, the error response is DryRunOperation. Otherwise,
  41387. // it is UnauthorizedOperation.
  41388. DryRun *bool `type:"boolean"`
  41389. // One or more filters.
  41390. //
  41391. // * create-time - The time the launch template was created.
  41392. //
  41393. // * launch-template-name - The name of the launch template.
  41394. //
  41395. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  41396. // Use the tag key in the filter name and the tag value as the filter value.
  41397. // For example, to find all resources that have a tag with the key Owner
  41398. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  41399. // the filter value.
  41400. //
  41401. // * tag-key - The key of a tag assigned to the resource. Use this filter
  41402. // to find all resources assigned a tag with a specific key, regardless of
  41403. // the tag value.
  41404. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41405. // One or more launch template IDs.
  41406. LaunchTemplateIds []*string `locationName:"LaunchTemplateId" locationNameList:"item" type:"list"`
  41407. // One or more launch template names.
  41408. LaunchTemplateNames []*string `locationName:"LaunchTemplateName" locationNameList:"item" type:"list"`
  41409. // The maximum number of results to return in a single call. To retrieve the
  41410. // remaining results, make another call with the returned NextToken value. This
  41411. // value can be between 1 and 200.
  41412. MaxResults *int64 `type:"integer"`
  41413. // The token to request the next page of results.
  41414. NextToken *string `type:"string"`
  41415. }
  41416. // String returns the string representation
  41417. func (s DescribeLaunchTemplatesInput) String() string {
  41418. return awsutil.Prettify(s)
  41419. }
  41420. // GoString returns the string representation
  41421. func (s DescribeLaunchTemplatesInput) GoString() string {
  41422. return s.String()
  41423. }
  41424. // SetDryRun sets the DryRun field's value.
  41425. func (s *DescribeLaunchTemplatesInput) SetDryRun(v bool) *DescribeLaunchTemplatesInput {
  41426. s.DryRun = &v
  41427. return s
  41428. }
  41429. // SetFilters sets the Filters field's value.
  41430. func (s *DescribeLaunchTemplatesInput) SetFilters(v []*Filter) *DescribeLaunchTemplatesInput {
  41431. s.Filters = v
  41432. return s
  41433. }
  41434. // SetLaunchTemplateIds sets the LaunchTemplateIds field's value.
  41435. func (s *DescribeLaunchTemplatesInput) SetLaunchTemplateIds(v []*string) *DescribeLaunchTemplatesInput {
  41436. s.LaunchTemplateIds = v
  41437. return s
  41438. }
  41439. // SetLaunchTemplateNames sets the LaunchTemplateNames field's value.
  41440. func (s *DescribeLaunchTemplatesInput) SetLaunchTemplateNames(v []*string) *DescribeLaunchTemplatesInput {
  41441. s.LaunchTemplateNames = v
  41442. return s
  41443. }
  41444. // SetMaxResults sets the MaxResults field's value.
  41445. func (s *DescribeLaunchTemplatesInput) SetMaxResults(v int64) *DescribeLaunchTemplatesInput {
  41446. s.MaxResults = &v
  41447. return s
  41448. }
  41449. // SetNextToken sets the NextToken field's value.
  41450. func (s *DescribeLaunchTemplatesInput) SetNextToken(v string) *DescribeLaunchTemplatesInput {
  41451. s.NextToken = &v
  41452. return s
  41453. }
  41454. type DescribeLaunchTemplatesOutput struct {
  41455. _ struct{} `type:"structure"`
  41456. // Information about the launch templates.
  41457. LaunchTemplates []*LaunchTemplate `locationName:"launchTemplates" locationNameList:"item" type:"list"`
  41458. // The token to use to retrieve the next page of results. This value is null
  41459. // when there are no more results to return.
  41460. NextToken *string `locationName:"nextToken" type:"string"`
  41461. }
  41462. // String returns the string representation
  41463. func (s DescribeLaunchTemplatesOutput) String() string {
  41464. return awsutil.Prettify(s)
  41465. }
  41466. // GoString returns the string representation
  41467. func (s DescribeLaunchTemplatesOutput) GoString() string {
  41468. return s.String()
  41469. }
  41470. // SetLaunchTemplates sets the LaunchTemplates field's value.
  41471. func (s *DescribeLaunchTemplatesOutput) SetLaunchTemplates(v []*LaunchTemplate) *DescribeLaunchTemplatesOutput {
  41472. s.LaunchTemplates = v
  41473. return s
  41474. }
  41475. // SetNextToken sets the NextToken field's value.
  41476. func (s *DescribeLaunchTemplatesOutput) SetNextToken(v string) *DescribeLaunchTemplatesOutput {
  41477. s.NextToken = &v
  41478. return s
  41479. }
  41480. type DescribeMovingAddressesInput struct {
  41481. _ struct{} `type:"structure"`
  41482. // Checks whether you have the required permissions for the action, without
  41483. // actually making the request, and provides an error response. If you have
  41484. // the required permissions, the error response is DryRunOperation. Otherwise,
  41485. // it is UnauthorizedOperation.
  41486. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41487. // One or more filters.
  41488. //
  41489. // * moving-status - The status of the Elastic IP address (MovingToVpc |
  41490. // RestoringToClassic).
  41491. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  41492. // The maximum number of results to return for the request in a single page.
  41493. // The remaining results of the initial request can be seen by sending another
  41494. // request with the returned NextToken value. This value can be between 5 and
  41495. // 1000; if MaxResults is given a value outside of this range, an error is returned.
  41496. //
  41497. // Default: If no value is provided, the default is 1000.
  41498. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  41499. // The token for the next page of results.
  41500. NextToken *string `locationName:"nextToken" type:"string"`
  41501. // One or more Elastic IP addresses.
  41502. PublicIps []*string `locationName:"publicIp" locationNameList:"item" type:"list"`
  41503. }
  41504. // String returns the string representation
  41505. func (s DescribeMovingAddressesInput) String() string {
  41506. return awsutil.Prettify(s)
  41507. }
  41508. // GoString returns the string representation
  41509. func (s DescribeMovingAddressesInput) GoString() string {
  41510. return s.String()
  41511. }
  41512. // SetDryRun sets the DryRun field's value.
  41513. func (s *DescribeMovingAddressesInput) SetDryRun(v bool) *DescribeMovingAddressesInput {
  41514. s.DryRun = &v
  41515. return s
  41516. }
  41517. // SetFilters sets the Filters field's value.
  41518. func (s *DescribeMovingAddressesInput) SetFilters(v []*Filter) *DescribeMovingAddressesInput {
  41519. s.Filters = v
  41520. return s
  41521. }
  41522. // SetMaxResults sets the MaxResults field's value.
  41523. func (s *DescribeMovingAddressesInput) SetMaxResults(v int64) *DescribeMovingAddressesInput {
  41524. s.MaxResults = &v
  41525. return s
  41526. }
  41527. // SetNextToken sets the NextToken field's value.
  41528. func (s *DescribeMovingAddressesInput) SetNextToken(v string) *DescribeMovingAddressesInput {
  41529. s.NextToken = &v
  41530. return s
  41531. }
  41532. // SetPublicIps sets the PublicIps field's value.
  41533. func (s *DescribeMovingAddressesInput) SetPublicIps(v []*string) *DescribeMovingAddressesInput {
  41534. s.PublicIps = v
  41535. return s
  41536. }
  41537. type DescribeMovingAddressesOutput struct {
  41538. _ struct{} `type:"structure"`
  41539. // The status for each Elastic IP address.
  41540. MovingAddressStatuses []*MovingAddressStatus `locationName:"movingAddressStatusSet" locationNameList:"item" type:"list"`
  41541. // The token to use to retrieve the next page of results. This value is null
  41542. // when there are no more results to return.
  41543. NextToken *string `locationName:"nextToken" type:"string"`
  41544. }
  41545. // String returns the string representation
  41546. func (s DescribeMovingAddressesOutput) String() string {
  41547. return awsutil.Prettify(s)
  41548. }
  41549. // GoString returns the string representation
  41550. func (s DescribeMovingAddressesOutput) GoString() string {
  41551. return s.String()
  41552. }
  41553. // SetMovingAddressStatuses sets the MovingAddressStatuses field's value.
  41554. func (s *DescribeMovingAddressesOutput) SetMovingAddressStatuses(v []*MovingAddressStatus) *DescribeMovingAddressesOutput {
  41555. s.MovingAddressStatuses = v
  41556. return s
  41557. }
  41558. // SetNextToken sets the NextToken field's value.
  41559. func (s *DescribeMovingAddressesOutput) SetNextToken(v string) *DescribeMovingAddressesOutput {
  41560. s.NextToken = &v
  41561. return s
  41562. }
  41563. type DescribeNatGatewaysInput struct {
  41564. _ struct{} `type:"structure"`
  41565. // One or more filters.
  41566. //
  41567. // * nat-gateway-id - The ID of the NAT gateway.
  41568. //
  41569. // * state - The state of the NAT gateway (pending | failed | available |
  41570. // deleting | deleted).
  41571. //
  41572. // * subnet-id - The ID of the subnet in which the NAT gateway resides.
  41573. //
  41574. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  41575. // Use the tag key in the filter name and the tag value as the filter value.
  41576. // For example, to find all resources that have a tag with the key Owner
  41577. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  41578. // the filter value.
  41579. //
  41580. // * tag-key - The key of a tag assigned to the resource. Use this filter
  41581. // to find all resources assigned a tag with a specific key, regardless of
  41582. // the tag value.
  41583. //
  41584. // * vpc-id - The ID of the VPC in which the NAT gateway resides.
  41585. Filter []*Filter `locationNameList:"Filter" type:"list"`
  41586. // The maximum number of items to return for this request. The request returns
  41587. // a token that you can specify in a subsequent call to get the next set of
  41588. // results.
  41589. //
  41590. // Constraint: If the value specified is greater than 1000, we return only 1000
  41591. // items.
  41592. MaxResults *int64 `type:"integer"`
  41593. // One or more NAT gateway IDs.
  41594. NatGatewayIds []*string `locationName:"NatGatewayId" locationNameList:"item" type:"list"`
  41595. // The token to retrieve the next page of results.
  41596. NextToken *string `type:"string"`
  41597. }
  41598. // String returns the string representation
  41599. func (s DescribeNatGatewaysInput) String() string {
  41600. return awsutil.Prettify(s)
  41601. }
  41602. // GoString returns the string representation
  41603. func (s DescribeNatGatewaysInput) GoString() string {
  41604. return s.String()
  41605. }
  41606. // SetFilter sets the Filter field's value.
  41607. func (s *DescribeNatGatewaysInput) SetFilter(v []*Filter) *DescribeNatGatewaysInput {
  41608. s.Filter = v
  41609. return s
  41610. }
  41611. // SetMaxResults sets the MaxResults field's value.
  41612. func (s *DescribeNatGatewaysInput) SetMaxResults(v int64) *DescribeNatGatewaysInput {
  41613. s.MaxResults = &v
  41614. return s
  41615. }
  41616. // SetNatGatewayIds sets the NatGatewayIds field's value.
  41617. func (s *DescribeNatGatewaysInput) SetNatGatewayIds(v []*string) *DescribeNatGatewaysInput {
  41618. s.NatGatewayIds = v
  41619. return s
  41620. }
  41621. // SetNextToken sets the NextToken field's value.
  41622. func (s *DescribeNatGatewaysInput) SetNextToken(v string) *DescribeNatGatewaysInput {
  41623. s.NextToken = &v
  41624. return s
  41625. }
  41626. type DescribeNatGatewaysOutput struct {
  41627. _ struct{} `type:"structure"`
  41628. // Information about the NAT gateways.
  41629. NatGateways []*NatGateway `locationName:"natGatewaySet" locationNameList:"item" type:"list"`
  41630. // The token to use to retrieve the next page of results. This value is null
  41631. // when there are no more results to return.
  41632. NextToken *string `locationName:"nextToken" type:"string"`
  41633. }
  41634. // String returns the string representation
  41635. func (s DescribeNatGatewaysOutput) String() string {
  41636. return awsutil.Prettify(s)
  41637. }
  41638. // GoString returns the string representation
  41639. func (s DescribeNatGatewaysOutput) GoString() string {
  41640. return s.String()
  41641. }
  41642. // SetNatGateways sets the NatGateways field's value.
  41643. func (s *DescribeNatGatewaysOutput) SetNatGateways(v []*NatGateway) *DescribeNatGatewaysOutput {
  41644. s.NatGateways = v
  41645. return s
  41646. }
  41647. // SetNextToken sets the NextToken field's value.
  41648. func (s *DescribeNatGatewaysOutput) SetNextToken(v string) *DescribeNatGatewaysOutput {
  41649. s.NextToken = &v
  41650. return s
  41651. }
  41652. type DescribeNetworkAclsInput struct {
  41653. _ struct{} `type:"structure"`
  41654. // Checks whether you have the required permissions for the action, without
  41655. // actually making the request, and provides an error response. If you have
  41656. // the required permissions, the error response is DryRunOperation. Otherwise,
  41657. // it is UnauthorizedOperation.
  41658. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41659. // One or more filters.
  41660. //
  41661. // * association.association-id - The ID of an association ID for the ACL.
  41662. //
  41663. // * association.network-acl-id - The ID of the network ACL involved in the
  41664. // association.
  41665. //
  41666. // * association.subnet-id - The ID of the subnet involved in the association.
  41667. //
  41668. // * default - Indicates whether the ACL is the default network ACL for the
  41669. // VPC.
  41670. //
  41671. // * entry.cidr - The IPv4 CIDR range specified in the entry.
  41672. //
  41673. // * entry.icmp.code - The ICMP code specified in the entry, if any.
  41674. //
  41675. // * entry.icmp.type - The ICMP type specified in the entry, if any.
  41676. //
  41677. // * entry.ipv6-cidr - The IPv6 CIDR range specified in the entry.
  41678. //
  41679. // * entry.port-range.from - The start of the port range specified in the
  41680. // entry.
  41681. //
  41682. // * entry.port-range.to - The end of the port range specified in the entry.
  41683. //
  41684. //
  41685. // * entry.protocol - The protocol specified in the entry (tcp | udp | icmp
  41686. // or a protocol number).
  41687. //
  41688. // * entry.rule-action - Allows or denies the matching traffic (allow | deny).
  41689. //
  41690. // * entry.rule-number - The number of an entry (in other words, rule) in
  41691. // the set of ACL entries.
  41692. //
  41693. // * network-acl-id - The ID of the network ACL.
  41694. //
  41695. // * owner-id - The ID of the AWS account that owns the network ACL.
  41696. //
  41697. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  41698. // Use the tag key in the filter name and the tag value as the filter value.
  41699. // For example, to find all resources that have a tag with the key Owner
  41700. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  41701. // the filter value.
  41702. //
  41703. // * tag-key - The key of a tag assigned to the resource. Use this filter
  41704. // to find all resources assigned a tag with a specific key, regardless of
  41705. // the tag value.
  41706. //
  41707. // * vpc-id - The ID of the VPC for the network ACL.
  41708. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41709. // One or more network ACL IDs.
  41710. //
  41711. // Default: Describes all your network ACLs.
  41712. NetworkAclIds []*string `locationName:"NetworkAclId" locationNameList:"item" type:"list"`
  41713. }
  41714. // String returns the string representation
  41715. func (s DescribeNetworkAclsInput) String() string {
  41716. return awsutil.Prettify(s)
  41717. }
  41718. // GoString returns the string representation
  41719. func (s DescribeNetworkAclsInput) GoString() string {
  41720. return s.String()
  41721. }
  41722. // SetDryRun sets the DryRun field's value.
  41723. func (s *DescribeNetworkAclsInput) SetDryRun(v bool) *DescribeNetworkAclsInput {
  41724. s.DryRun = &v
  41725. return s
  41726. }
  41727. // SetFilters sets the Filters field's value.
  41728. func (s *DescribeNetworkAclsInput) SetFilters(v []*Filter) *DescribeNetworkAclsInput {
  41729. s.Filters = v
  41730. return s
  41731. }
  41732. // SetNetworkAclIds sets the NetworkAclIds field's value.
  41733. func (s *DescribeNetworkAclsInput) SetNetworkAclIds(v []*string) *DescribeNetworkAclsInput {
  41734. s.NetworkAclIds = v
  41735. return s
  41736. }
  41737. type DescribeNetworkAclsOutput struct {
  41738. _ struct{} `type:"structure"`
  41739. // Information about one or more network ACLs.
  41740. NetworkAcls []*NetworkAcl `locationName:"networkAclSet" locationNameList:"item" type:"list"`
  41741. }
  41742. // String returns the string representation
  41743. func (s DescribeNetworkAclsOutput) String() string {
  41744. return awsutil.Prettify(s)
  41745. }
  41746. // GoString returns the string representation
  41747. func (s DescribeNetworkAclsOutput) GoString() string {
  41748. return s.String()
  41749. }
  41750. // SetNetworkAcls sets the NetworkAcls field's value.
  41751. func (s *DescribeNetworkAclsOutput) SetNetworkAcls(v []*NetworkAcl) *DescribeNetworkAclsOutput {
  41752. s.NetworkAcls = v
  41753. return s
  41754. }
  41755. // Contains the parameters for DescribeNetworkInterfaceAttribute.
  41756. type DescribeNetworkInterfaceAttributeInput struct {
  41757. _ struct{} `type:"structure"`
  41758. // The attribute of the network interface. This parameter is required.
  41759. Attribute *string `locationName:"attribute" type:"string" enum:"NetworkInterfaceAttribute"`
  41760. // Checks whether you have the required permissions for the action, without
  41761. // actually making the request, and provides an error response. If you have
  41762. // the required permissions, the error response is DryRunOperation. Otherwise,
  41763. // it is UnauthorizedOperation.
  41764. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41765. // The ID of the network interface.
  41766. //
  41767. // NetworkInterfaceId is a required field
  41768. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  41769. }
  41770. // String returns the string representation
  41771. func (s DescribeNetworkInterfaceAttributeInput) String() string {
  41772. return awsutil.Prettify(s)
  41773. }
  41774. // GoString returns the string representation
  41775. func (s DescribeNetworkInterfaceAttributeInput) GoString() string {
  41776. return s.String()
  41777. }
  41778. // Validate inspects the fields of the type to determine if they are valid.
  41779. func (s *DescribeNetworkInterfaceAttributeInput) Validate() error {
  41780. invalidParams := request.ErrInvalidParams{Context: "DescribeNetworkInterfaceAttributeInput"}
  41781. if s.NetworkInterfaceId == nil {
  41782. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  41783. }
  41784. if invalidParams.Len() > 0 {
  41785. return invalidParams
  41786. }
  41787. return nil
  41788. }
  41789. // SetAttribute sets the Attribute field's value.
  41790. func (s *DescribeNetworkInterfaceAttributeInput) SetAttribute(v string) *DescribeNetworkInterfaceAttributeInput {
  41791. s.Attribute = &v
  41792. return s
  41793. }
  41794. // SetDryRun sets the DryRun field's value.
  41795. func (s *DescribeNetworkInterfaceAttributeInput) SetDryRun(v bool) *DescribeNetworkInterfaceAttributeInput {
  41796. s.DryRun = &v
  41797. return s
  41798. }
  41799. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  41800. func (s *DescribeNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeInput {
  41801. s.NetworkInterfaceId = &v
  41802. return s
  41803. }
  41804. // Contains the output of DescribeNetworkInterfaceAttribute.
  41805. type DescribeNetworkInterfaceAttributeOutput struct {
  41806. _ struct{} `type:"structure"`
  41807. // The attachment (if any) of the network interface.
  41808. Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  41809. // The description of the network interface.
  41810. Description *AttributeValue `locationName:"description" type:"structure"`
  41811. // The security groups associated with the network interface.
  41812. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  41813. // The ID of the network interface.
  41814. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  41815. // Indicates whether source/destination checking is enabled.
  41816. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  41817. }
  41818. // String returns the string representation
  41819. func (s DescribeNetworkInterfaceAttributeOutput) String() string {
  41820. return awsutil.Prettify(s)
  41821. }
  41822. // GoString returns the string representation
  41823. func (s DescribeNetworkInterfaceAttributeOutput) GoString() string {
  41824. return s.String()
  41825. }
  41826. // SetAttachment sets the Attachment field's value.
  41827. func (s *DescribeNetworkInterfaceAttributeOutput) SetAttachment(v *NetworkInterfaceAttachment) *DescribeNetworkInterfaceAttributeOutput {
  41828. s.Attachment = v
  41829. return s
  41830. }
  41831. // SetDescription sets the Description field's value.
  41832. func (s *DescribeNetworkInterfaceAttributeOutput) SetDescription(v *AttributeValue) *DescribeNetworkInterfaceAttributeOutput {
  41833. s.Description = v
  41834. return s
  41835. }
  41836. // SetGroups sets the Groups field's value.
  41837. func (s *DescribeNetworkInterfaceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeNetworkInterfaceAttributeOutput {
  41838. s.Groups = v
  41839. return s
  41840. }
  41841. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  41842. func (s *DescribeNetworkInterfaceAttributeOutput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeOutput {
  41843. s.NetworkInterfaceId = &v
  41844. return s
  41845. }
  41846. // SetSourceDestCheck sets the SourceDestCheck field's value.
  41847. func (s *DescribeNetworkInterfaceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeNetworkInterfaceAttributeOutput {
  41848. s.SourceDestCheck = v
  41849. return s
  41850. }
  41851. // Contains the parameters for DescribeNetworkInterfacePermissions.
  41852. type DescribeNetworkInterfacePermissionsInput struct {
  41853. _ struct{} `type:"structure"`
  41854. // One or more filters.
  41855. //
  41856. // * network-interface-permission.network-interface-permission-id - The ID
  41857. // of the permission.
  41858. //
  41859. // * network-interface-permission.network-interface-id - The ID of the network
  41860. // interface.
  41861. //
  41862. // * network-interface-permission.aws-account-id - The AWS account ID.
  41863. //
  41864. // * network-interface-permission.aws-service - The AWS service.
  41865. //
  41866. // * network-interface-permission.permission - The type of permission (INSTANCE-ATTACH
  41867. // | EIP-ASSOCIATE).
  41868. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41869. // The maximum number of results to return in a single call. To retrieve the
  41870. // remaining results, make another call with the returned NextToken value. If
  41871. // this parameter is not specified, up to 50 results are returned by default.
  41872. MaxResults *int64 `type:"integer"`
  41873. // One or more network interface permission IDs.
  41874. NetworkInterfacePermissionIds []*string `locationName:"NetworkInterfacePermissionId" type:"list"`
  41875. // The token to request the next page of results.
  41876. NextToken *string `type:"string"`
  41877. }
  41878. // String returns the string representation
  41879. func (s DescribeNetworkInterfacePermissionsInput) String() string {
  41880. return awsutil.Prettify(s)
  41881. }
  41882. // GoString returns the string representation
  41883. func (s DescribeNetworkInterfacePermissionsInput) GoString() string {
  41884. return s.String()
  41885. }
  41886. // SetFilters sets the Filters field's value.
  41887. func (s *DescribeNetworkInterfacePermissionsInput) SetFilters(v []*Filter) *DescribeNetworkInterfacePermissionsInput {
  41888. s.Filters = v
  41889. return s
  41890. }
  41891. // SetMaxResults sets the MaxResults field's value.
  41892. func (s *DescribeNetworkInterfacePermissionsInput) SetMaxResults(v int64) *DescribeNetworkInterfacePermissionsInput {
  41893. s.MaxResults = &v
  41894. return s
  41895. }
  41896. // SetNetworkInterfacePermissionIds sets the NetworkInterfacePermissionIds field's value.
  41897. func (s *DescribeNetworkInterfacePermissionsInput) SetNetworkInterfacePermissionIds(v []*string) *DescribeNetworkInterfacePermissionsInput {
  41898. s.NetworkInterfacePermissionIds = v
  41899. return s
  41900. }
  41901. // SetNextToken sets the NextToken field's value.
  41902. func (s *DescribeNetworkInterfacePermissionsInput) SetNextToken(v string) *DescribeNetworkInterfacePermissionsInput {
  41903. s.NextToken = &v
  41904. return s
  41905. }
  41906. // Contains the output for DescribeNetworkInterfacePermissions.
  41907. type DescribeNetworkInterfacePermissionsOutput struct {
  41908. _ struct{} `type:"structure"`
  41909. // The network interface permissions.
  41910. NetworkInterfacePermissions []*NetworkInterfacePermission `locationName:"networkInterfacePermissions" locationNameList:"item" type:"list"`
  41911. // The token to use to retrieve the next page of results.
  41912. NextToken *string `locationName:"nextToken" type:"string"`
  41913. }
  41914. // String returns the string representation
  41915. func (s DescribeNetworkInterfacePermissionsOutput) String() string {
  41916. return awsutil.Prettify(s)
  41917. }
  41918. // GoString returns the string representation
  41919. func (s DescribeNetworkInterfacePermissionsOutput) GoString() string {
  41920. return s.String()
  41921. }
  41922. // SetNetworkInterfacePermissions sets the NetworkInterfacePermissions field's value.
  41923. func (s *DescribeNetworkInterfacePermissionsOutput) SetNetworkInterfacePermissions(v []*NetworkInterfacePermission) *DescribeNetworkInterfacePermissionsOutput {
  41924. s.NetworkInterfacePermissions = v
  41925. return s
  41926. }
  41927. // SetNextToken sets the NextToken field's value.
  41928. func (s *DescribeNetworkInterfacePermissionsOutput) SetNextToken(v string) *DescribeNetworkInterfacePermissionsOutput {
  41929. s.NextToken = &v
  41930. return s
  41931. }
  41932. // Contains the parameters for DescribeNetworkInterfaces.
  41933. type DescribeNetworkInterfacesInput struct {
  41934. _ struct{} `type:"structure"`
  41935. // Checks whether you have the required permissions for the action, without
  41936. // actually making the request, and provides an error response. If you have
  41937. // the required permissions, the error response is DryRunOperation. Otherwise,
  41938. // it is UnauthorizedOperation.
  41939. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41940. // One or more filters.
  41941. //
  41942. // * addresses.private-ip-address - The private IPv4 addresses associated
  41943. // with the network interface.
  41944. //
  41945. // * addresses.primary - Whether the private IPv4 address is the primary
  41946. // IP address associated with the network interface.
  41947. //
  41948. // * addresses.association.public-ip - The association ID returned when the
  41949. // network interface was associated with the Elastic IP address (IPv4).
  41950. //
  41951. // * addresses.association.owner-id - The owner ID of the addresses associated
  41952. // with the network interface.
  41953. //
  41954. // * association.association-id - The association ID returned when the network
  41955. // interface was associated with an IPv4 address.
  41956. //
  41957. // * association.allocation-id - The allocation ID returned when you allocated
  41958. // the Elastic IP address (IPv4) for your network interface.
  41959. //
  41960. // * association.ip-owner-id - The owner of the Elastic IP address (IPv4)
  41961. // associated with the network interface.
  41962. //
  41963. // * association.public-ip - The address of the Elastic IP address (IPv4)
  41964. // bound to the network interface.
  41965. //
  41966. // * association.public-dns-name - The public DNS name for the network interface
  41967. // (IPv4).
  41968. //
  41969. // * attachment.attachment-id - The ID of the interface attachment.
  41970. //
  41971. // * attachment.attach.time - The time that the network interface was attached
  41972. // to an instance.
  41973. //
  41974. // * attachment.delete-on-termination - Indicates whether the attachment
  41975. // is deleted when an instance is terminated.
  41976. //
  41977. // * attachment.device-index - The device index to which the network interface
  41978. // is attached.
  41979. //
  41980. // * attachment.instance-id - The ID of the instance to which the network
  41981. // interface is attached.
  41982. //
  41983. // * attachment.instance-owner-id - The owner ID of the instance to which
  41984. // the network interface is attached.
  41985. //
  41986. // * attachment.nat-gateway-id - The ID of the NAT gateway to which the network
  41987. // interface is attached.
  41988. //
  41989. // * attachment.status - The status of the attachment (attaching | attached
  41990. // | detaching | detached).
  41991. //
  41992. // * availability-zone - The Availability Zone of the network interface.
  41993. //
  41994. // * description - The description of the network interface.
  41995. //
  41996. // * group-id - The ID of a security group associated with the network interface.
  41997. //
  41998. // * group-name - The name of a security group associated with the network
  41999. // interface.
  42000. //
  42001. // * ipv6-addresses.ipv6-address - An IPv6 address associated with the network
  42002. // interface.
  42003. //
  42004. // * mac-address - The MAC address of the network interface.
  42005. //
  42006. // * network-interface-id - The ID of the network interface.
  42007. //
  42008. // * owner-id - The AWS account ID of the network interface owner.
  42009. //
  42010. // * private-ip-address - The private IPv4 address or addresses of the network
  42011. // interface.
  42012. //
  42013. // * private-dns-name - The private DNS name of the network interface (IPv4).
  42014. //
  42015. // * requester-id - The ID of the entity that launched the instance on your
  42016. // behalf (for example, AWS Management Console, Auto Scaling, and so on).
  42017. //
  42018. // * requester-managed - Indicates whether the network interface is being
  42019. // managed by an AWS service (for example, AWS Management Console, Auto Scaling,
  42020. // and so on).
  42021. //
  42022. // * source-desk-check - Indicates whether the network interface performs
  42023. // source/destination checking. A value of true means checking is enabled,
  42024. // and false means checking is disabled. The value must be false for the
  42025. // network interface to perform network address translation (NAT) in your
  42026. // VPC.
  42027. //
  42028. // * status - The status of the network interface. If the network interface
  42029. // is not attached to an instance, the status is available; if a network
  42030. // interface is attached to an instance the status is in-use.
  42031. //
  42032. // * subnet-id - The ID of the subnet for the network interface.
  42033. //
  42034. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  42035. // Use the tag key in the filter name and the tag value as the filter value.
  42036. // For example, to find all resources that have a tag with the key Owner
  42037. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  42038. // the filter value.
  42039. //
  42040. // * tag-key - The key of a tag assigned to the resource. Use this filter
  42041. // to find all resources assigned a tag with a specific key, regardless of
  42042. // the tag value.
  42043. //
  42044. // * vpc-id - The ID of the VPC for the network interface.
  42045. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  42046. // The maximum number of items to return for this request. The request returns
  42047. // a token that you can specify in a subsequent call to get the next set of
  42048. // results.
  42049. MaxResults *int64 `type:"integer"`
  42050. // One or more network interface IDs.
  42051. //
  42052. // Default: Describes all your network interfaces.
  42053. NetworkInterfaceIds []*string `locationName:"NetworkInterfaceId" locationNameList:"item" type:"list"`
  42054. // The token to retrieve the next page of results.
  42055. NextToken *string `type:"string"`
  42056. }
  42057. // String returns the string representation
  42058. func (s DescribeNetworkInterfacesInput) String() string {
  42059. return awsutil.Prettify(s)
  42060. }
  42061. // GoString returns the string representation
  42062. func (s DescribeNetworkInterfacesInput) GoString() string {
  42063. return s.String()
  42064. }
  42065. // SetDryRun sets the DryRun field's value.
  42066. func (s *DescribeNetworkInterfacesInput) SetDryRun(v bool) *DescribeNetworkInterfacesInput {
  42067. s.DryRun = &v
  42068. return s
  42069. }
  42070. // SetFilters sets the Filters field's value.
  42071. func (s *DescribeNetworkInterfacesInput) SetFilters(v []*Filter) *DescribeNetworkInterfacesInput {
  42072. s.Filters = v
  42073. return s
  42074. }
  42075. // SetMaxResults sets the MaxResults field's value.
  42076. func (s *DescribeNetworkInterfacesInput) SetMaxResults(v int64) *DescribeNetworkInterfacesInput {
  42077. s.MaxResults = &v
  42078. return s
  42079. }
  42080. // SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value.
  42081. func (s *DescribeNetworkInterfacesInput) SetNetworkInterfaceIds(v []*string) *DescribeNetworkInterfacesInput {
  42082. s.NetworkInterfaceIds = v
  42083. return s
  42084. }
  42085. // SetNextToken sets the NextToken field's value.
  42086. func (s *DescribeNetworkInterfacesInput) SetNextToken(v string) *DescribeNetworkInterfacesInput {
  42087. s.NextToken = &v
  42088. return s
  42089. }
  42090. // Contains the output of DescribeNetworkInterfaces.
  42091. type DescribeNetworkInterfacesOutput struct {
  42092. _ struct{} `type:"structure"`
  42093. // Information about one or more network interfaces.
  42094. NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  42095. // The token to use to retrieve the next page of results. This value is null
  42096. // when there are no more results to return.
  42097. NextToken *string `locationName:"nextToken" type:"string"`
  42098. }
  42099. // String returns the string representation
  42100. func (s DescribeNetworkInterfacesOutput) String() string {
  42101. return awsutil.Prettify(s)
  42102. }
  42103. // GoString returns the string representation
  42104. func (s DescribeNetworkInterfacesOutput) GoString() string {
  42105. return s.String()
  42106. }
  42107. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  42108. func (s *DescribeNetworkInterfacesOutput) SetNetworkInterfaces(v []*NetworkInterface) *DescribeNetworkInterfacesOutput {
  42109. s.NetworkInterfaces = v
  42110. return s
  42111. }
  42112. // SetNextToken sets the NextToken field's value.
  42113. func (s *DescribeNetworkInterfacesOutput) SetNextToken(v string) *DescribeNetworkInterfacesOutput {
  42114. s.NextToken = &v
  42115. return s
  42116. }
  42117. type DescribePlacementGroupsInput struct {
  42118. _ struct{} `type:"structure"`
  42119. // Checks whether you have the required permissions for the action, without
  42120. // actually making the request, and provides an error response. If you have
  42121. // the required permissions, the error response is DryRunOperation. Otherwise,
  42122. // it is UnauthorizedOperation.
  42123. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42124. // One or more filters.
  42125. //
  42126. // * group-name - The name of the placement group.
  42127. //
  42128. // * state - The state of the placement group (pending | available | deleting
  42129. // | deleted).
  42130. //
  42131. // * strategy - The strategy of the placement group (cluster | spread | partition).
  42132. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42133. // One or more placement group names.
  42134. //
  42135. // Default: Describes all your placement groups, or only those otherwise specified.
  42136. GroupNames []*string `locationName:"groupName" type:"list"`
  42137. }
  42138. // String returns the string representation
  42139. func (s DescribePlacementGroupsInput) String() string {
  42140. return awsutil.Prettify(s)
  42141. }
  42142. // GoString returns the string representation
  42143. func (s DescribePlacementGroupsInput) GoString() string {
  42144. return s.String()
  42145. }
  42146. // SetDryRun sets the DryRun field's value.
  42147. func (s *DescribePlacementGroupsInput) SetDryRun(v bool) *DescribePlacementGroupsInput {
  42148. s.DryRun = &v
  42149. return s
  42150. }
  42151. // SetFilters sets the Filters field's value.
  42152. func (s *DescribePlacementGroupsInput) SetFilters(v []*Filter) *DescribePlacementGroupsInput {
  42153. s.Filters = v
  42154. return s
  42155. }
  42156. // SetGroupNames sets the GroupNames field's value.
  42157. func (s *DescribePlacementGroupsInput) SetGroupNames(v []*string) *DescribePlacementGroupsInput {
  42158. s.GroupNames = v
  42159. return s
  42160. }
  42161. type DescribePlacementGroupsOutput struct {
  42162. _ struct{} `type:"structure"`
  42163. // One or more placement groups.
  42164. PlacementGroups []*PlacementGroup `locationName:"placementGroupSet" locationNameList:"item" type:"list"`
  42165. }
  42166. // String returns the string representation
  42167. func (s DescribePlacementGroupsOutput) String() string {
  42168. return awsutil.Prettify(s)
  42169. }
  42170. // GoString returns the string representation
  42171. func (s DescribePlacementGroupsOutput) GoString() string {
  42172. return s.String()
  42173. }
  42174. // SetPlacementGroups sets the PlacementGroups field's value.
  42175. func (s *DescribePlacementGroupsOutput) SetPlacementGroups(v []*PlacementGroup) *DescribePlacementGroupsOutput {
  42176. s.PlacementGroups = v
  42177. return s
  42178. }
  42179. type DescribePrefixListsInput struct {
  42180. _ struct{} `type:"structure"`
  42181. // Checks whether you have the required permissions for the action, without
  42182. // actually making the request, and provides an error response. If you have
  42183. // the required permissions, the error response is DryRunOperation. Otherwise,
  42184. // it is UnauthorizedOperation.
  42185. DryRun *bool `type:"boolean"`
  42186. // One or more filters.
  42187. //
  42188. // * prefix-list-id: The ID of a prefix list.
  42189. //
  42190. // * prefix-list-name: The name of a prefix list.
  42191. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42192. // The maximum number of items to return for this request. The request returns
  42193. // a token that you can specify in a subsequent call to get the next set of
  42194. // results.
  42195. //
  42196. // Constraint: If the value specified is greater than 1000, we return only 1000
  42197. // items.
  42198. MaxResults *int64 `type:"integer"`
  42199. // The token for the next set of items to return. (You received this token from
  42200. // a prior call.)
  42201. NextToken *string `type:"string"`
  42202. // One or more prefix list IDs.
  42203. PrefixListIds []*string `locationName:"PrefixListId" locationNameList:"item" type:"list"`
  42204. }
  42205. // String returns the string representation
  42206. func (s DescribePrefixListsInput) String() string {
  42207. return awsutil.Prettify(s)
  42208. }
  42209. // GoString returns the string representation
  42210. func (s DescribePrefixListsInput) GoString() string {
  42211. return s.String()
  42212. }
  42213. // SetDryRun sets the DryRun field's value.
  42214. func (s *DescribePrefixListsInput) SetDryRun(v bool) *DescribePrefixListsInput {
  42215. s.DryRun = &v
  42216. return s
  42217. }
  42218. // SetFilters sets the Filters field's value.
  42219. func (s *DescribePrefixListsInput) SetFilters(v []*Filter) *DescribePrefixListsInput {
  42220. s.Filters = v
  42221. return s
  42222. }
  42223. // SetMaxResults sets the MaxResults field's value.
  42224. func (s *DescribePrefixListsInput) SetMaxResults(v int64) *DescribePrefixListsInput {
  42225. s.MaxResults = &v
  42226. return s
  42227. }
  42228. // SetNextToken sets the NextToken field's value.
  42229. func (s *DescribePrefixListsInput) SetNextToken(v string) *DescribePrefixListsInput {
  42230. s.NextToken = &v
  42231. return s
  42232. }
  42233. // SetPrefixListIds sets the PrefixListIds field's value.
  42234. func (s *DescribePrefixListsInput) SetPrefixListIds(v []*string) *DescribePrefixListsInput {
  42235. s.PrefixListIds = v
  42236. return s
  42237. }
  42238. type DescribePrefixListsOutput struct {
  42239. _ struct{} `type:"structure"`
  42240. // The token to use when requesting the next set of items. If there are no additional
  42241. // items to return, the string is empty.
  42242. NextToken *string `locationName:"nextToken" type:"string"`
  42243. // All available prefix lists.
  42244. PrefixLists []*PrefixList `locationName:"prefixListSet" locationNameList:"item" type:"list"`
  42245. }
  42246. // String returns the string representation
  42247. func (s DescribePrefixListsOutput) String() string {
  42248. return awsutil.Prettify(s)
  42249. }
  42250. // GoString returns the string representation
  42251. func (s DescribePrefixListsOutput) GoString() string {
  42252. return s.String()
  42253. }
  42254. // SetNextToken sets the NextToken field's value.
  42255. func (s *DescribePrefixListsOutput) SetNextToken(v string) *DescribePrefixListsOutput {
  42256. s.NextToken = &v
  42257. return s
  42258. }
  42259. // SetPrefixLists sets the PrefixLists field's value.
  42260. func (s *DescribePrefixListsOutput) SetPrefixLists(v []*PrefixList) *DescribePrefixListsOutput {
  42261. s.PrefixLists = v
  42262. return s
  42263. }
  42264. type DescribePrincipalIdFormatInput struct {
  42265. _ struct{} `type:"structure"`
  42266. // Checks whether you have the required permissions for the action, without
  42267. // actually making the request, and provides an error response. If you have
  42268. // the required permissions, the error response is DryRunOperation. Otherwise,
  42269. // it is UnauthorizedOperation.
  42270. DryRun *bool `type:"boolean"`
  42271. // The maximum number of results to return in a single call. To retrieve the
  42272. // remaining results, make another call with the returned NextToken value.
  42273. MaxResults *int64 `type:"integer"`
  42274. // The token to request the next page of results.
  42275. NextToken *string `type:"string"`
  42276. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  42277. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  42278. // | image | import-task | instance | internet-gateway | network-acl | network-acl-association
  42279. // | network-interface | network-interface-attachment | prefix-list | reservation
  42280. // | route-table | route-table-association | security-group | snapshot | subnet
  42281. // | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  42282. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway
  42283. Resources []*string `locationName:"Resource" locationNameList:"item" type:"list"`
  42284. }
  42285. // String returns the string representation
  42286. func (s DescribePrincipalIdFormatInput) String() string {
  42287. return awsutil.Prettify(s)
  42288. }
  42289. // GoString returns the string representation
  42290. func (s DescribePrincipalIdFormatInput) GoString() string {
  42291. return s.String()
  42292. }
  42293. // SetDryRun sets the DryRun field's value.
  42294. func (s *DescribePrincipalIdFormatInput) SetDryRun(v bool) *DescribePrincipalIdFormatInput {
  42295. s.DryRun = &v
  42296. return s
  42297. }
  42298. // SetMaxResults sets the MaxResults field's value.
  42299. func (s *DescribePrincipalIdFormatInput) SetMaxResults(v int64) *DescribePrincipalIdFormatInput {
  42300. s.MaxResults = &v
  42301. return s
  42302. }
  42303. // SetNextToken sets the NextToken field's value.
  42304. func (s *DescribePrincipalIdFormatInput) SetNextToken(v string) *DescribePrincipalIdFormatInput {
  42305. s.NextToken = &v
  42306. return s
  42307. }
  42308. // SetResources sets the Resources field's value.
  42309. func (s *DescribePrincipalIdFormatInput) SetResources(v []*string) *DescribePrincipalIdFormatInput {
  42310. s.Resources = v
  42311. return s
  42312. }
  42313. type DescribePrincipalIdFormatOutput struct {
  42314. _ struct{} `type:"structure"`
  42315. // The token to use to retrieve the next page of results. This value is null
  42316. // when there are no more results to return.
  42317. NextToken *string `locationName:"nextToken" type:"string"`
  42318. // Information about the ID format settings for the ARN.
  42319. Principals []*PrincipalIdFormat `locationName:"principalSet" locationNameList:"item" type:"list"`
  42320. }
  42321. // String returns the string representation
  42322. func (s DescribePrincipalIdFormatOutput) String() string {
  42323. return awsutil.Prettify(s)
  42324. }
  42325. // GoString returns the string representation
  42326. func (s DescribePrincipalIdFormatOutput) GoString() string {
  42327. return s.String()
  42328. }
  42329. // SetNextToken sets the NextToken field's value.
  42330. func (s *DescribePrincipalIdFormatOutput) SetNextToken(v string) *DescribePrincipalIdFormatOutput {
  42331. s.NextToken = &v
  42332. return s
  42333. }
  42334. // SetPrincipals sets the Principals field's value.
  42335. func (s *DescribePrincipalIdFormatOutput) SetPrincipals(v []*PrincipalIdFormat) *DescribePrincipalIdFormatOutput {
  42336. s.Principals = v
  42337. return s
  42338. }
  42339. type DescribePublicIpv4PoolsInput struct {
  42340. _ struct{} `type:"structure"`
  42341. // The maximum number of results to return with a single call. To retrieve the
  42342. // remaining results, make another call with the returned nextToken value.
  42343. MaxResults *int64 `min:"1" type:"integer"`
  42344. // The token for the next page of results.
  42345. NextToken *string `min:"1" type:"string"`
  42346. // The IDs of the address pools.
  42347. PoolIds []*string `locationName:"PoolId" locationNameList:"item" type:"list"`
  42348. }
  42349. // String returns the string representation
  42350. func (s DescribePublicIpv4PoolsInput) String() string {
  42351. return awsutil.Prettify(s)
  42352. }
  42353. // GoString returns the string representation
  42354. func (s DescribePublicIpv4PoolsInput) GoString() string {
  42355. return s.String()
  42356. }
  42357. // Validate inspects the fields of the type to determine if they are valid.
  42358. func (s *DescribePublicIpv4PoolsInput) Validate() error {
  42359. invalidParams := request.ErrInvalidParams{Context: "DescribePublicIpv4PoolsInput"}
  42360. if s.MaxResults != nil && *s.MaxResults < 1 {
  42361. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  42362. }
  42363. if s.NextToken != nil && len(*s.NextToken) < 1 {
  42364. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  42365. }
  42366. if invalidParams.Len() > 0 {
  42367. return invalidParams
  42368. }
  42369. return nil
  42370. }
  42371. // SetMaxResults sets the MaxResults field's value.
  42372. func (s *DescribePublicIpv4PoolsInput) SetMaxResults(v int64) *DescribePublicIpv4PoolsInput {
  42373. s.MaxResults = &v
  42374. return s
  42375. }
  42376. // SetNextToken sets the NextToken field's value.
  42377. func (s *DescribePublicIpv4PoolsInput) SetNextToken(v string) *DescribePublicIpv4PoolsInput {
  42378. s.NextToken = &v
  42379. return s
  42380. }
  42381. // SetPoolIds sets the PoolIds field's value.
  42382. func (s *DescribePublicIpv4PoolsInput) SetPoolIds(v []*string) *DescribePublicIpv4PoolsInput {
  42383. s.PoolIds = v
  42384. return s
  42385. }
  42386. type DescribePublicIpv4PoolsOutput struct {
  42387. _ struct{} `type:"structure"`
  42388. // The token to use to retrieve the next page of results. This value is null
  42389. // when there are no more results to return.
  42390. NextToken *string `locationName:"nextToken" type:"string"`
  42391. // Information about the address pools.
  42392. PublicIpv4Pools []*PublicIpv4Pool `locationName:"publicIpv4PoolSet" locationNameList:"item" type:"list"`
  42393. }
  42394. // String returns the string representation
  42395. func (s DescribePublicIpv4PoolsOutput) String() string {
  42396. return awsutil.Prettify(s)
  42397. }
  42398. // GoString returns the string representation
  42399. func (s DescribePublicIpv4PoolsOutput) GoString() string {
  42400. return s.String()
  42401. }
  42402. // SetNextToken sets the NextToken field's value.
  42403. func (s *DescribePublicIpv4PoolsOutput) SetNextToken(v string) *DescribePublicIpv4PoolsOutput {
  42404. s.NextToken = &v
  42405. return s
  42406. }
  42407. // SetPublicIpv4Pools sets the PublicIpv4Pools field's value.
  42408. func (s *DescribePublicIpv4PoolsOutput) SetPublicIpv4Pools(v []*PublicIpv4Pool) *DescribePublicIpv4PoolsOutput {
  42409. s.PublicIpv4Pools = v
  42410. return s
  42411. }
  42412. type DescribeRegionsInput struct {
  42413. _ struct{} `type:"structure"`
  42414. // Checks whether you have the required permissions for the action, without
  42415. // actually making the request, and provides an error response. If you have
  42416. // the required permissions, the error response is DryRunOperation. Otherwise,
  42417. // it is UnauthorizedOperation.
  42418. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42419. // One or more filters.
  42420. //
  42421. // * endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com).
  42422. //
  42423. // * region-name - The name of the region (for example, us-east-1).
  42424. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42425. // The names of one or more regions.
  42426. RegionNames []*string `locationName:"RegionName" locationNameList:"RegionName" type:"list"`
  42427. }
  42428. // String returns the string representation
  42429. func (s DescribeRegionsInput) String() string {
  42430. return awsutil.Prettify(s)
  42431. }
  42432. // GoString returns the string representation
  42433. func (s DescribeRegionsInput) GoString() string {
  42434. return s.String()
  42435. }
  42436. // SetDryRun sets the DryRun field's value.
  42437. func (s *DescribeRegionsInput) SetDryRun(v bool) *DescribeRegionsInput {
  42438. s.DryRun = &v
  42439. return s
  42440. }
  42441. // SetFilters sets the Filters field's value.
  42442. func (s *DescribeRegionsInput) SetFilters(v []*Filter) *DescribeRegionsInput {
  42443. s.Filters = v
  42444. return s
  42445. }
  42446. // SetRegionNames sets the RegionNames field's value.
  42447. func (s *DescribeRegionsInput) SetRegionNames(v []*string) *DescribeRegionsInput {
  42448. s.RegionNames = v
  42449. return s
  42450. }
  42451. type DescribeRegionsOutput struct {
  42452. _ struct{} `type:"structure"`
  42453. // Information about one or more regions.
  42454. Regions []*Region `locationName:"regionInfo" locationNameList:"item" type:"list"`
  42455. }
  42456. // String returns the string representation
  42457. func (s DescribeRegionsOutput) String() string {
  42458. return awsutil.Prettify(s)
  42459. }
  42460. // GoString returns the string representation
  42461. func (s DescribeRegionsOutput) GoString() string {
  42462. return s.String()
  42463. }
  42464. // SetRegions sets the Regions field's value.
  42465. func (s *DescribeRegionsOutput) SetRegions(v []*Region) *DescribeRegionsOutput {
  42466. s.Regions = v
  42467. return s
  42468. }
  42469. // Contains the parameters for DescribeReservedInstances.
  42470. type DescribeReservedInstancesInput struct {
  42471. _ struct{} `type:"structure"`
  42472. // Checks whether you have the required permissions for the action, without
  42473. // actually making the request, and provides an error response. If you have
  42474. // the required permissions, the error response is DryRunOperation. Otherwise,
  42475. // it is UnauthorizedOperation.
  42476. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42477. // One or more filters.
  42478. //
  42479. // * availability-zone - The Availability Zone where the Reserved Instance
  42480. // can be used.
  42481. //
  42482. // * duration - The duration of the Reserved Instance (one year or three
  42483. // years), in seconds (31536000 | 94608000).
  42484. //
  42485. // * end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z).
  42486. //
  42487. // * fixed-price - The purchase price of the Reserved Instance (for example,
  42488. // 9800.0).
  42489. //
  42490. // * instance-type - The instance type that is covered by the reservation.
  42491. //
  42492. // * scope - The scope of the Reserved Instance (Region or Availability Zone).
  42493. //
  42494. // * product-description - The Reserved Instance product platform description.
  42495. // Instances that include (Amazon VPC) in the product platform description
  42496. // will only be displayed to EC2-Classic account holders and are for use
  42497. // with Amazon VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE
  42498. // Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux
  42499. // (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server
  42500. // Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with
  42501. // SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with
  42502. // SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC)).
  42503. //
  42504. // * reserved-instances-id - The ID of the Reserved Instance.
  42505. //
  42506. // * start - The time at which the Reserved Instance purchase request was
  42507. // placed (for example, 2014-08-07T11:54:42.000Z).
  42508. //
  42509. // * state - The state of the Reserved Instance (payment-pending | active
  42510. // | payment-failed | retired).
  42511. //
  42512. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  42513. // Use the tag key in the filter name and the tag value as the filter value.
  42514. // For example, to find all resources that have a tag with the key Owner
  42515. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  42516. // the filter value.
  42517. //
  42518. // * tag-key - The key of a tag assigned to the resource. Use this filter
  42519. // to find all resources assigned a tag with a specific key, regardless of
  42520. // the tag value.
  42521. //
  42522. // * usage-price - The usage price of the Reserved Instance, per hour (for
  42523. // example, 0.84).
  42524. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42525. // Describes whether the Reserved Instance is Standard or Convertible.
  42526. OfferingClass *string `type:"string" enum:"OfferingClassType"`
  42527. // The Reserved Instance offering type. If you are using tools that predate
  42528. // the 2011-11-01 API version, you only have access to the Medium Utilization
  42529. // Reserved Instance offering type.
  42530. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  42531. // One or more Reserved Instance IDs.
  42532. //
  42533. // Default: Describes all your Reserved Instances, or only those otherwise specified.
  42534. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list"`
  42535. }
  42536. // String returns the string representation
  42537. func (s DescribeReservedInstancesInput) String() string {
  42538. return awsutil.Prettify(s)
  42539. }
  42540. // GoString returns the string representation
  42541. func (s DescribeReservedInstancesInput) GoString() string {
  42542. return s.String()
  42543. }
  42544. // SetDryRun sets the DryRun field's value.
  42545. func (s *DescribeReservedInstancesInput) SetDryRun(v bool) *DescribeReservedInstancesInput {
  42546. s.DryRun = &v
  42547. return s
  42548. }
  42549. // SetFilters sets the Filters field's value.
  42550. func (s *DescribeReservedInstancesInput) SetFilters(v []*Filter) *DescribeReservedInstancesInput {
  42551. s.Filters = v
  42552. return s
  42553. }
  42554. // SetOfferingClass sets the OfferingClass field's value.
  42555. func (s *DescribeReservedInstancesInput) SetOfferingClass(v string) *DescribeReservedInstancesInput {
  42556. s.OfferingClass = &v
  42557. return s
  42558. }
  42559. // SetOfferingType sets the OfferingType field's value.
  42560. func (s *DescribeReservedInstancesInput) SetOfferingType(v string) *DescribeReservedInstancesInput {
  42561. s.OfferingType = &v
  42562. return s
  42563. }
  42564. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  42565. func (s *DescribeReservedInstancesInput) SetReservedInstancesIds(v []*string) *DescribeReservedInstancesInput {
  42566. s.ReservedInstancesIds = v
  42567. return s
  42568. }
  42569. // Contains the parameters for DescribeReservedInstancesListings.
  42570. type DescribeReservedInstancesListingsInput struct {
  42571. _ struct{} `type:"structure"`
  42572. // One or more filters.
  42573. //
  42574. // * reserved-instances-id - The ID of the Reserved Instances.
  42575. //
  42576. // * reserved-instances-listing-id - The ID of the Reserved Instances listing.
  42577. //
  42578. // * status - The status of the Reserved Instance listing (pending | active
  42579. // | cancelled | closed).
  42580. //
  42581. // * status-message - The reason for the status.
  42582. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42583. // One or more Reserved Instance IDs.
  42584. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  42585. // One or more Reserved Instance listing IDs.
  42586. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`
  42587. }
  42588. // String returns the string representation
  42589. func (s DescribeReservedInstancesListingsInput) String() string {
  42590. return awsutil.Prettify(s)
  42591. }
  42592. // GoString returns the string representation
  42593. func (s DescribeReservedInstancesListingsInput) GoString() string {
  42594. return s.String()
  42595. }
  42596. // SetFilters sets the Filters field's value.
  42597. func (s *DescribeReservedInstancesListingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesListingsInput {
  42598. s.Filters = v
  42599. return s
  42600. }
  42601. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  42602. func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesId(v string) *DescribeReservedInstancesListingsInput {
  42603. s.ReservedInstancesId = &v
  42604. return s
  42605. }
  42606. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  42607. func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesListingId(v string) *DescribeReservedInstancesListingsInput {
  42608. s.ReservedInstancesListingId = &v
  42609. return s
  42610. }
  42611. // Contains the output of DescribeReservedInstancesListings.
  42612. type DescribeReservedInstancesListingsOutput struct {
  42613. _ struct{} `type:"structure"`
  42614. // Information about the Reserved Instance listing.
  42615. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  42616. }
  42617. // String returns the string representation
  42618. func (s DescribeReservedInstancesListingsOutput) String() string {
  42619. return awsutil.Prettify(s)
  42620. }
  42621. // GoString returns the string representation
  42622. func (s DescribeReservedInstancesListingsOutput) GoString() string {
  42623. return s.String()
  42624. }
  42625. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  42626. func (s *DescribeReservedInstancesListingsOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *DescribeReservedInstancesListingsOutput {
  42627. s.ReservedInstancesListings = v
  42628. return s
  42629. }
  42630. // Contains the parameters for DescribeReservedInstancesModifications.
  42631. type DescribeReservedInstancesModificationsInput struct {
  42632. _ struct{} `type:"structure"`
  42633. // One or more filters.
  42634. //
  42635. // * client-token - The idempotency token for the modification request.
  42636. //
  42637. // * create-date - The time when the modification request was created.
  42638. //
  42639. // * effective-date - The time when the modification becomes effective.
  42640. //
  42641. // * modification-result.reserved-instances-id - The ID for the Reserved
  42642. // Instances created as part of the modification request. This ID is only
  42643. // available when the status of the modification is fulfilled.
  42644. //
  42645. // * modification-result.target-configuration.availability-zone - The Availability
  42646. // Zone for the new Reserved Instances.
  42647. //
  42648. // * modification-result.target-configuration.instance-count - The number
  42649. // of new Reserved Instances.
  42650. //
  42651. // * modification-result.target-configuration.instance-type - The instance
  42652. // type of the new Reserved Instances.
  42653. //
  42654. // * modification-result.target-configuration.platform - The network platform
  42655. // of the new Reserved Instances (EC2-Classic | EC2-VPC).
  42656. //
  42657. // * reserved-instances-id - The ID of the Reserved Instances modified.
  42658. //
  42659. // * reserved-instances-modification-id - The ID of the modification request.
  42660. //
  42661. // * status - The status of the Reserved Instances modification request (processing
  42662. // | fulfilled | failed).
  42663. //
  42664. // * status-message - The reason for the status.
  42665. //
  42666. // * update-date - The time when the modification request was last updated.
  42667. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42668. // The token to retrieve the next page of results.
  42669. NextToken *string `locationName:"nextToken" type:"string"`
  42670. // IDs for the submitted modification request.
  42671. ReservedInstancesModificationIds []*string `locationName:"ReservedInstancesModificationId" locationNameList:"ReservedInstancesModificationId" type:"list"`
  42672. }
  42673. // String returns the string representation
  42674. func (s DescribeReservedInstancesModificationsInput) String() string {
  42675. return awsutil.Prettify(s)
  42676. }
  42677. // GoString returns the string representation
  42678. func (s DescribeReservedInstancesModificationsInput) GoString() string {
  42679. return s.String()
  42680. }
  42681. // SetFilters sets the Filters field's value.
  42682. func (s *DescribeReservedInstancesModificationsInput) SetFilters(v []*Filter) *DescribeReservedInstancesModificationsInput {
  42683. s.Filters = v
  42684. return s
  42685. }
  42686. // SetNextToken sets the NextToken field's value.
  42687. func (s *DescribeReservedInstancesModificationsInput) SetNextToken(v string) *DescribeReservedInstancesModificationsInput {
  42688. s.NextToken = &v
  42689. return s
  42690. }
  42691. // SetReservedInstancesModificationIds sets the ReservedInstancesModificationIds field's value.
  42692. func (s *DescribeReservedInstancesModificationsInput) SetReservedInstancesModificationIds(v []*string) *DescribeReservedInstancesModificationsInput {
  42693. s.ReservedInstancesModificationIds = v
  42694. return s
  42695. }
  42696. // Contains the output of DescribeReservedInstancesModifications.
  42697. type DescribeReservedInstancesModificationsOutput struct {
  42698. _ struct{} `type:"structure"`
  42699. // The token to use to retrieve the next page of results. This value is null
  42700. // when there are no more results to return.
  42701. NextToken *string `locationName:"nextToken" type:"string"`
  42702. // The Reserved Instance modification information.
  42703. ReservedInstancesModifications []*ReservedInstancesModification `locationName:"reservedInstancesModificationsSet" locationNameList:"item" type:"list"`
  42704. }
  42705. // String returns the string representation
  42706. func (s DescribeReservedInstancesModificationsOutput) String() string {
  42707. return awsutil.Prettify(s)
  42708. }
  42709. // GoString returns the string representation
  42710. func (s DescribeReservedInstancesModificationsOutput) GoString() string {
  42711. return s.String()
  42712. }
  42713. // SetNextToken sets the NextToken field's value.
  42714. func (s *DescribeReservedInstancesModificationsOutput) SetNextToken(v string) *DescribeReservedInstancesModificationsOutput {
  42715. s.NextToken = &v
  42716. return s
  42717. }
  42718. // SetReservedInstancesModifications sets the ReservedInstancesModifications field's value.
  42719. func (s *DescribeReservedInstancesModificationsOutput) SetReservedInstancesModifications(v []*ReservedInstancesModification) *DescribeReservedInstancesModificationsOutput {
  42720. s.ReservedInstancesModifications = v
  42721. return s
  42722. }
  42723. // Contains the parameters for DescribeReservedInstancesOfferings.
  42724. type DescribeReservedInstancesOfferingsInput struct {
  42725. _ struct{} `type:"structure"`
  42726. // The Availability Zone in which the Reserved Instance can be used.
  42727. AvailabilityZone *string `type:"string"`
  42728. // Checks whether you have the required permissions for the action, without
  42729. // actually making the request, and provides an error response. If you have
  42730. // the required permissions, the error response is DryRunOperation. Otherwise,
  42731. // it is UnauthorizedOperation.
  42732. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42733. // One or more filters.
  42734. //
  42735. // * availability-zone - The Availability Zone where the Reserved Instance
  42736. // can be used.
  42737. //
  42738. // * duration - The duration of the Reserved Instance (for example, one year
  42739. // or three years), in seconds (31536000 | 94608000).
  42740. //
  42741. // * fixed-price - The purchase price of the Reserved Instance (for example,
  42742. // 9800.0).
  42743. //
  42744. // * instance-type - The instance type that is covered by the reservation.
  42745. //
  42746. // * marketplace - Set to true to show only Reserved Instance Marketplace
  42747. // offerings. When this filter is not used, which is the default behavior,
  42748. // all offerings from both AWS and the Reserved Instance Marketplace are
  42749. // listed.
  42750. //
  42751. // * product-description - The Reserved Instance product platform description.
  42752. // Instances that include (Amazon VPC) in the product platform description
  42753. // will only be displayed to EC2-Classic account holders and are for use
  42754. // with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux |
  42755. // SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise
  42756. // Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL
  42757. // Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows
  42758. // with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows
  42759. // with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon
  42760. // VPC))
  42761. //
  42762. // * reserved-instances-offering-id - The Reserved Instances offering ID.
  42763. //
  42764. // * scope - The scope of the Reserved Instance (Availability Zone or Region).
  42765. //
  42766. // * usage-price - The usage price of the Reserved Instance, per hour (for
  42767. // example, 0.84).
  42768. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42769. // Include Reserved Instance Marketplace offerings in the response.
  42770. IncludeMarketplace *bool `type:"boolean"`
  42771. // The tenancy of the instances covered by the reservation. A Reserved Instance
  42772. // with a tenancy of dedicated is applied to instances that run in a VPC on
  42773. // single-tenant hardware (i.e., Dedicated Instances).
  42774. //
  42775. // Important: The host value cannot be used with this parameter. Use the default
  42776. // or dedicated values only.
  42777. //
  42778. // Default: default
  42779. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  42780. // The instance type that the reservation will cover (for example, m1.small).
  42781. // For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  42782. // in the Amazon Elastic Compute Cloud User Guide.
  42783. InstanceType *string `type:"string" enum:"InstanceType"`
  42784. // The maximum duration (in seconds) to filter when searching for offerings.
  42785. //
  42786. // Default: 94608000 (3 years)
  42787. MaxDuration *int64 `type:"long"`
  42788. // The maximum number of instances to filter when searching for offerings.
  42789. //
  42790. // Default: 20
  42791. MaxInstanceCount *int64 `type:"integer"`
  42792. // The maximum number of results to return for the request in a single page.
  42793. // The remaining results of the initial request can be seen by sending another
  42794. // request with the returned NextToken value. The maximum is 100.
  42795. //
  42796. // Default: 100
  42797. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  42798. // The minimum duration (in seconds) to filter when searching for offerings.
  42799. //
  42800. // Default: 2592000 (1 month)
  42801. MinDuration *int64 `type:"long"`
  42802. // The token to retrieve the next page of results.
  42803. NextToken *string `locationName:"nextToken" type:"string"`
  42804. // The offering class of the Reserved Instance. Can be standard or convertible.
  42805. OfferingClass *string `type:"string" enum:"OfferingClassType"`
  42806. // The Reserved Instance offering type. If you are using tools that predate
  42807. // the 2011-11-01 API version, you only have access to the Medium Utilization
  42808. // Reserved Instance offering type.
  42809. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  42810. // The Reserved Instance product platform description. Instances that include
  42811. // (Amazon VPC) in the description are for use with Amazon VPC.
  42812. ProductDescription *string `type:"string" enum:"RIProductDescription"`
  42813. // One or more Reserved Instances offering IDs.
  42814. ReservedInstancesOfferingIds []*string `locationName:"ReservedInstancesOfferingId" type:"list"`
  42815. }
  42816. // String returns the string representation
  42817. func (s DescribeReservedInstancesOfferingsInput) String() string {
  42818. return awsutil.Prettify(s)
  42819. }
  42820. // GoString returns the string representation
  42821. func (s DescribeReservedInstancesOfferingsInput) GoString() string {
  42822. return s.String()
  42823. }
  42824. // SetAvailabilityZone sets the AvailabilityZone field's value.
  42825. func (s *DescribeReservedInstancesOfferingsInput) SetAvailabilityZone(v string) *DescribeReservedInstancesOfferingsInput {
  42826. s.AvailabilityZone = &v
  42827. return s
  42828. }
  42829. // SetDryRun sets the DryRun field's value.
  42830. func (s *DescribeReservedInstancesOfferingsInput) SetDryRun(v bool) *DescribeReservedInstancesOfferingsInput {
  42831. s.DryRun = &v
  42832. return s
  42833. }
  42834. // SetFilters sets the Filters field's value.
  42835. func (s *DescribeReservedInstancesOfferingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesOfferingsInput {
  42836. s.Filters = v
  42837. return s
  42838. }
  42839. // SetIncludeMarketplace sets the IncludeMarketplace field's value.
  42840. func (s *DescribeReservedInstancesOfferingsInput) SetIncludeMarketplace(v bool) *DescribeReservedInstancesOfferingsInput {
  42841. s.IncludeMarketplace = &v
  42842. return s
  42843. }
  42844. // SetInstanceTenancy sets the InstanceTenancy field's value.
  42845. func (s *DescribeReservedInstancesOfferingsInput) SetInstanceTenancy(v string) *DescribeReservedInstancesOfferingsInput {
  42846. s.InstanceTenancy = &v
  42847. return s
  42848. }
  42849. // SetInstanceType sets the InstanceType field's value.
  42850. func (s *DescribeReservedInstancesOfferingsInput) SetInstanceType(v string) *DescribeReservedInstancesOfferingsInput {
  42851. s.InstanceType = &v
  42852. return s
  42853. }
  42854. // SetMaxDuration sets the MaxDuration field's value.
  42855. func (s *DescribeReservedInstancesOfferingsInput) SetMaxDuration(v int64) *DescribeReservedInstancesOfferingsInput {
  42856. s.MaxDuration = &v
  42857. return s
  42858. }
  42859. // SetMaxInstanceCount sets the MaxInstanceCount field's value.
  42860. func (s *DescribeReservedInstancesOfferingsInput) SetMaxInstanceCount(v int64) *DescribeReservedInstancesOfferingsInput {
  42861. s.MaxInstanceCount = &v
  42862. return s
  42863. }
  42864. // SetMaxResults sets the MaxResults field's value.
  42865. func (s *DescribeReservedInstancesOfferingsInput) SetMaxResults(v int64) *DescribeReservedInstancesOfferingsInput {
  42866. s.MaxResults = &v
  42867. return s
  42868. }
  42869. // SetMinDuration sets the MinDuration field's value.
  42870. func (s *DescribeReservedInstancesOfferingsInput) SetMinDuration(v int64) *DescribeReservedInstancesOfferingsInput {
  42871. s.MinDuration = &v
  42872. return s
  42873. }
  42874. // SetNextToken sets the NextToken field's value.
  42875. func (s *DescribeReservedInstancesOfferingsInput) SetNextToken(v string) *DescribeReservedInstancesOfferingsInput {
  42876. s.NextToken = &v
  42877. return s
  42878. }
  42879. // SetOfferingClass sets the OfferingClass field's value.
  42880. func (s *DescribeReservedInstancesOfferingsInput) SetOfferingClass(v string) *DescribeReservedInstancesOfferingsInput {
  42881. s.OfferingClass = &v
  42882. return s
  42883. }
  42884. // SetOfferingType sets the OfferingType field's value.
  42885. func (s *DescribeReservedInstancesOfferingsInput) SetOfferingType(v string) *DescribeReservedInstancesOfferingsInput {
  42886. s.OfferingType = &v
  42887. return s
  42888. }
  42889. // SetProductDescription sets the ProductDescription field's value.
  42890. func (s *DescribeReservedInstancesOfferingsInput) SetProductDescription(v string) *DescribeReservedInstancesOfferingsInput {
  42891. s.ProductDescription = &v
  42892. return s
  42893. }
  42894. // SetReservedInstancesOfferingIds sets the ReservedInstancesOfferingIds field's value.
  42895. func (s *DescribeReservedInstancesOfferingsInput) SetReservedInstancesOfferingIds(v []*string) *DescribeReservedInstancesOfferingsInput {
  42896. s.ReservedInstancesOfferingIds = v
  42897. return s
  42898. }
  42899. // Contains the output of DescribeReservedInstancesOfferings.
  42900. type DescribeReservedInstancesOfferingsOutput struct {
  42901. _ struct{} `type:"structure"`
  42902. // The token to use to retrieve the next page of results. This value is null
  42903. // when there are no more results to return.
  42904. NextToken *string `locationName:"nextToken" type:"string"`
  42905. // A list of Reserved Instances offerings.
  42906. ReservedInstancesOfferings []*ReservedInstancesOffering `locationName:"reservedInstancesOfferingsSet" locationNameList:"item" type:"list"`
  42907. }
  42908. // String returns the string representation
  42909. func (s DescribeReservedInstancesOfferingsOutput) String() string {
  42910. return awsutil.Prettify(s)
  42911. }
  42912. // GoString returns the string representation
  42913. func (s DescribeReservedInstancesOfferingsOutput) GoString() string {
  42914. return s.String()
  42915. }
  42916. // SetNextToken sets the NextToken field's value.
  42917. func (s *DescribeReservedInstancesOfferingsOutput) SetNextToken(v string) *DescribeReservedInstancesOfferingsOutput {
  42918. s.NextToken = &v
  42919. return s
  42920. }
  42921. // SetReservedInstancesOfferings sets the ReservedInstancesOfferings field's value.
  42922. func (s *DescribeReservedInstancesOfferingsOutput) SetReservedInstancesOfferings(v []*ReservedInstancesOffering) *DescribeReservedInstancesOfferingsOutput {
  42923. s.ReservedInstancesOfferings = v
  42924. return s
  42925. }
  42926. // Contains the output for DescribeReservedInstances.
  42927. type DescribeReservedInstancesOutput struct {
  42928. _ struct{} `type:"structure"`
  42929. // A list of Reserved Instances.
  42930. ReservedInstances []*ReservedInstances `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`
  42931. }
  42932. // String returns the string representation
  42933. func (s DescribeReservedInstancesOutput) String() string {
  42934. return awsutil.Prettify(s)
  42935. }
  42936. // GoString returns the string representation
  42937. func (s DescribeReservedInstancesOutput) GoString() string {
  42938. return s.String()
  42939. }
  42940. // SetReservedInstances sets the ReservedInstances field's value.
  42941. func (s *DescribeReservedInstancesOutput) SetReservedInstances(v []*ReservedInstances) *DescribeReservedInstancesOutput {
  42942. s.ReservedInstances = v
  42943. return s
  42944. }
  42945. type DescribeRouteTablesInput struct {
  42946. _ struct{} `type:"structure"`
  42947. // Checks whether you have the required permissions for the action, without
  42948. // actually making the request, and provides an error response. If you have
  42949. // the required permissions, the error response is DryRunOperation. Otherwise,
  42950. // it is UnauthorizedOperation.
  42951. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42952. // One or more filters.
  42953. //
  42954. // * association.route-table-association-id - The ID of an association ID
  42955. // for the route table.
  42956. //
  42957. // * association.route-table-id - The ID of the route table involved in the
  42958. // association.
  42959. //
  42960. // * association.subnet-id - The ID of the subnet involved in the association.
  42961. //
  42962. // * association.main - Indicates whether the route table is the main route
  42963. // table for the VPC (true | false). Route tables that do not have an association
  42964. // ID are not returned in the response.
  42965. //
  42966. // * owner-id - The ID of the AWS account that owns the route table.
  42967. //
  42968. // * route-table-id - The ID of the route table.
  42969. //
  42970. // * route.destination-cidr-block - The IPv4 CIDR range specified in a route
  42971. // in the table.
  42972. //
  42973. // * route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in
  42974. // a route in the route table.
  42975. //
  42976. // * route.destination-prefix-list-id - The ID (prefix) of the AWS service
  42977. // specified in a route in the table.
  42978. //
  42979. // * route.egress-only-internet-gateway-id - The ID of an egress-only Internet
  42980. // gateway specified in a route in the route table.
  42981. //
  42982. // * route.gateway-id - The ID of a gateway specified in a route in the table.
  42983. //
  42984. // * route.instance-id - The ID of an instance specified in a route in the
  42985. // table.
  42986. //
  42987. // * route.nat-gateway-id - The ID of a NAT gateway.
  42988. //
  42989. // * route.transit-gateway-id - The ID of a transit gateway.
  42990. //
  42991. // * route.origin - Describes how the route was created. CreateRouteTable
  42992. // indicates that the route was automatically created when the route table
  42993. // was created; CreateRoute indicates that the route was manually added to
  42994. // the route table; EnableVgwRoutePropagation indicates that the route was
  42995. // propagated by route propagation.
  42996. //
  42997. // * route.state - The state of a route in the route table (active | blackhole).
  42998. // The blackhole state indicates that the route's target isn't available
  42999. // (for example, the specified gateway isn't attached to the VPC, the specified
  43000. // NAT instance has been terminated, and so on).
  43001. //
  43002. // * route.vpc-peering-connection-id - The ID of a VPC peering connection
  43003. // specified in a route in the table.
  43004. //
  43005. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  43006. // Use the tag key in the filter name and the tag value as the filter value.
  43007. // For example, to find all resources that have a tag with the key Owner
  43008. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  43009. // the filter value.
  43010. //
  43011. // * tag-key - The key of a tag assigned to the resource. Use this filter
  43012. // to find all resources assigned a tag with a specific key, regardless of
  43013. // the tag value.
  43014. //
  43015. // * transit-gateway-id - The ID of a transit gateway.
  43016. //
  43017. // * vpc-id - The ID of the VPC for the route table.
  43018. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  43019. // The maximum number of results to return in a single call. To retrieve the
  43020. // remaining results, make another call with the returned NextToken value. This
  43021. // value can be between 5 and 100.
  43022. MaxResults *int64 `type:"integer"`
  43023. // The token to retrieve the next page of results.
  43024. NextToken *string `type:"string"`
  43025. // One or more route table IDs.
  43026. //
  43027. // Default: Describes all your route tables.
  43028. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"`
  43029. }
  43030. // String returns the string representation
  43031. func (s DescribeRouteTablesInput) String() string {
  43032. return awsutil.Prettify(s)
  43033. }
  43034. // GoString returns the string representation
  43035. func (s DescribeRouteTablesInput) GoString() string {
  43036. return s.String()
  43037. }
  43038. // SetDryRun sets the DryRun field's value.
  43039. func (s *DescribeRouteTablesInput) SetDryRun(v bool) *DescribeRouteTablesInput {
  43040. s.DryRun = &v
  43041. return s
  43042. }
  43043. // SetFilters sets the Filters field's value.
  43044. func (s *DescribeRouteTablesInput) SetFilters(v []*Filter) *DescribeRouteTablesInput {
  43045. s.Filters = v
  43046. return s
  43047. }
  43048. // SetMaxResults sets the MaxResults field's value.
  43049. func (s *DescribeRouteTablesInput) SetMaxResults(v int64) *DescribeRouteTablesInput {
  43050. s.MaxResults = &v
  43051. return s
  43052. }
  43053. // SetNextToken sets the NextToken field's value.
  43054. func (s *DescribeRouteTablesInput) SetNextToken(v string) *DescribeRouteTablesInput {
  43055. s.NextToken = &v
  43056. return s
  43057. }
  43058. // SetRouteTableIds sets the RouteTableIds field's value.
  43059. func (s *DescribeRouteTablesInput) SetRouteTableIds(v []*string) *DescribeRouteTablesInput {
  43060. s.RouteTableIds = v
  43061. return s
  43062. }
  43063. // Contains the output of DescribeRouteTables.
  43064. type DescribeRouteTablesOutput struct {
  43065. _ struct{} `type:"structure"`
  43066. // The token to use to retrieve the next page of results. This value is null
  43067. // when there are no more results to return.
  43068. NextToken *string `locationName:"nextToken" type:"string"`
  43069. // Information about one or more route tables.
  43070. RouteTables []*RouteTable `locationName:"routeTableSet" locationNameList:"item" type:"list"`
  43071. }
  43072. // String returns the string representation
  43073. func (s DescribeRouteTablesOutput) String() string {
  43074. return awsutil.Prettify(s)
  43075. }
  43076. // GoString returns the string representation
  43077. func (s DescribeRouteTablesOutput) GoString() string {
  43078. return s.String()
  43079. }
  43080. // SetNextToken sets the NextToken field's value.
  43081. func (s *DescribeRouteTablesOutput) SetNextToken(v string) *DescribeRouteTablesOutput {
  43082. s.NextToken = &v
  43083. return s
  43084. }
  43085. // SetRouteTables sets the RouteTables field's value.
  43086. func (s *DescribeRouteTablesOutput) SetRouteTables(v []*RouteTable) *DescribeRouteTablesOutput {
  43087. s.RouteTables = v
  43088. return s
  43089. }
  43090. // Contains the parameters for DescribeScheduledInstanceAvailability.
  43091. type DescribeScheduledInstanceAvailabilityInput struct {
  43092. _ struct{} `type:"structure"`
  43093. // Checks whether you have the required permissions for the action, without
  43094. // actually making the request, and provides an error response. If you have
  43095. // the required permissions, the error response is DryRunOperation. Otherwise,
  43096. // it is UnauthorizedOperation.
  43097. DryRun *bool `type:"boolean"`
  43098. // One or more filters.
  43099. //
  43100. // * availability-zone - The Availability Zone (for example, us-west-2a).
  43101. //
  43102. // * instance-type - The instance type (for example, c4.large).
  43103. //
  43104. // * network-platform - The network platform (EC2-Classic or EC2-VPC).
  43105. //
  43106. // * platform - The platform (Linux/UNIX or Windows).
  43107. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  43108. // The time period for the first schedule to start.
  43109. //
  43110. // FirstSlotStartTimeRange is a required field
  43111. FirstSlotStartTimeRange *SlotDateTimeRangeRequest `type:"structure" required:"true"`
  43112. // The maximum number of results to return in a single call. This value can
  43113. // be between 5 and 300. The default value is 300. To retrieve the remaining
  43114. // results, make another call with the returned NextToken value.
  43115. MaxResults *int64 `type:"integer"`
  43116. // The maximum available duration, in hours. This value must be greater than
  43117. // MinSlotDurationInHours and less than 1,720.
  43118. MaxSlotDurationInHours *int64 `type:"integer"`
  43119. // The minimum available duration, in hours. The minimum required duration is
  43120. // 1,200 hours per year. For example, the minimum daily schedule is 4 hours,
  43121. // the minimum weekly schedule is 24 hours, and the minimum monthly schedule
  43122. // is 100 hours.
  43123. MinSlotDurationInHours *int64 `type:"integer"`
  43124. // The token for the next set of results.
  43125. NextToken *string `type:"string"`
  43126. // The schedule recurrence.
  43127. //
  43128. // Recurrence is a required field
  43129. Recurrence *ScheduledInstanceRecurrenceRequest `type:"structure" required:"true"`
  43130. }
  43131. // String returns the string representation
  43132. func (s DescribeScheduledInstanceAvailabilityInput) String() string {
  43133. return awsutil.Prettify(s)
  43134. }
  43135. // GoString returns the string representation
  43136. func (s DescribeScheduledInstanceAvailabilityInput) GoString() string {
  43137. return s.String()
  43138. }
  43139. // Validate inspects the fields of the type to determine if they are valid.
  43140. func (s *DescribeScheduledInstanceAvailabilityInput) Validate() error {
  43141. invalidParams := request.ErrInvalidParams{Context: "DescribeScheduledInstanceAvailabilityInput"}
  43142. if s.FirstSlotStartTimeRange == nil {
  43143. invalidParams.Add(request.NewErrParamRequired("FirstSlotStartTimeRange"))
  43144. }
  43145. if s.Recurrence == nil {
  43146. invalidParams.Add(request.NewErrParamRequired("Recurrence"))
  43147. }
  43148. if s.FirstSlotStartTimeRange != nil {
  43149. if err := s.FirstSlotStartTimeRange.Validate(); err != nil {
  43150. invalidParams.AddNested("FirstSlotStartTimeRange", err.(request.ErrInvalidParams))
  43151. }
  43152. }
  43153. if invalidParams.Len() > 0 {
  43154. return invalidParams
  43155. }
  43156. return nil
  43157. }
  43158. // SetDryRun sets the DryRun field's value.
  43159. func (s *DescribeScheduledInstanceAvailabilityInput) SetDryRun(v bool) *DescribeScheduledInstanceAvailabilityInput {
  43160. s.DryRun = &v
  43161. return s
  43162. }
  43163. // SetFilters sets the Filters field's value.
  43164. func (s *DescribeScheduledInstanceAvailabilityInput) SetFilters(v []*Filter) *DescribeScheduledInstanceAvailabilityInput {
  43165. s.Filters = v
  43166. return s
  43167. }
  43168. // SetFirstSlotStartTimeRange sets the FirstSlotStartTimeRange field's value.
  43169. func (s *DescribeScheduledInstanceAvailabilityInput) SetFirstSlotStartTimeRange(v *SlotDateTimeRangeRequest) *DescribeScheduledInstanceAvailabilityInput {
  43170. s.FirstSlotStartTimeRange = v
  43171. return s
  43172. }
  43173. // SetMaxResults sets the MaxResults field's value.
  43174. func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxResults(v int64) *DescribeScheduledInstanceAvailabilityInput {
  43175. s.MaxResults = &v
  43176. return s
  43177. }
  43178. // SetMaxSlotDurationInHours sets the MaxSlotDurationInHours field's value.
  43179. func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput {
  43180. s.MaxSlotDurationInHours = &v
  43181. return s
  43182. }
  43183. // SetMinSlotDurationInHours sets the MinSlotDurationInHours field's value.
  43184. func (s *DescribeScheduledInstanceAvailabilityInput) SetMinSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput {
  43185. s.MinSlotDurationInHours = &v
  43186. return s
  43187. }
  43188. // SetNextToken sets the NextToken field's value.
  43189. func (s *DescribeScheduledInstanceAvailabilityInput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityInput {
  43190. s.NextToken = &v
  43191. return s
  43192. }
  43193. // SetRecurrence sets the Recurrence field's value.
  43194. func (s *DescribeScheduledInstanceAvailabilityInput) SetRecurrence(v *ScheduledInstanceRecurrenceRequest) *DescribeScheduledInstanceAvailabilityInput {
  43195. s.Recurrence = v
  43196. return s
  43197. }
  43198. // Contains the output of DescribeScheduledInstanceAvailability.
  43199. type DescribeScheduledInstanceAvailabilityOutput struct {
  43200. _ struct{} `type:"structure"`
  43201. // The token required to retrieve the next set of results. This value is null
  43202. // when there are no more results to return.
  43203. NextToken *string `locationName:"nextToken" type:"string"`
  43204. // Information about the available Scheduled Instances.
  43205. ScheduledInstanceAvailabilitySet []*ScheduledInstanceAvailability `locationName:"scheduledInstanceAvailabilitySet" locationNameList:"item" type:"list"`
  43206. }
  43207. // String returns the string representation
  43208. func (s DescribeScheduledInstanceAvailabilityOutput) String() string {
  43209. return awsutil.Prettify(s)
  43210. }
  43211. // GoString returns the string representation
  43212. func (s DescribeScheduledInstanceAvailabilityOutput) GoString() string {
  43213. return s.String()
  43214. }
  43215. // SetNextToken sets the NextToken field's value.
  43216. func (s *DescribeScheduledInstanceAvailabilityOutput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityOutput {
  43217. s.NextToken = &v
  43218. return s
  43219. }
  43220. // SetScheduledInstanceAvailabilitySet sets the ScheduledInstanceAvailabilitySet field's value.
  43221. func (s *DescribeScheduledInstanceAvailabilityOutput) SetScheduledInstanceAvailabilitySet(v []*ScheduledInstanceAvailability) *DescribeScheduledInstanceAvailabilityOutput {
  43222. s.ScheduledInstanceAvailabilitySet = v
  43223. return s
  43224. }
  43225. // Contains the parameters for DescribeScheduledInstances.
  43226. type DescribeScheduledInstancesInput struct {
  43227. _ struct{} `type:"structure"`
  43228. // Checks whether you have the required permissions for the action, without
  43229. // actually making the request, and provides an error response. If you have
  43230. // the required permissions, the error response is DryRunOperation. Otherwise,
  43231. // it is UnauthorizedOperation.
  43232. DryRun *bool `type:"boolean"`
  43233. // One or more filters.
  43234. //
  43235. // * availability-zone - The Availability Zone (for example, us-west-2a).
  43236. //
  43237. // * instance-type - The instance type (for example, c4.large).
  43238. //
  43239. // * network-platform - The network platform (EC2-Classic or EC2-VPC).
  43240. //
  43241. // * platform - The platform (Linux/UNIX or Windows).
  43242. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  43243. // The maximum number of results to return in a single call. This value can
  43244. // be between 5 and 300. The default value is 100. To retrieve the remaining
  43245. // results, make another call with the returned NextToken value.
  43246. MaxResults *int64 `type:"integer"`
  43247. // The token for the next set of results.
  43248. NextToken *string `type:"string"`
  43249. // One or more Scheduled Instance IDs.
  43250. ScheduledInstanceIds []*string `locationName:"ScheduledInstanceId" locationNameList:"ScheduledInstanceId" type:"list"`
  43251. // The time period for the first schedule to start.
  43252. SlotStartTimeRange *SlotStartTimeRangeRequest `type:"structure"`
  43253. }
  43254. // String returns the string representation
  43255. func (s DescribeScheduledInstancesInput) String() string {
  43256. return awsutil.Prettify(s)
  43257. }
  43258. // GoString returns the string representation
  43259. func (s DescribeScheduledInstancesInput) GoString() string {
  43260. return s.String()
  43261. }
  43262. // SetDryRun sets the DryRun field's value.
  43263. func (s *DescribeScheduledInstancesInput) SetDryRun(v bool) *DescribeScheduledInstancesInput {
  43264. s.DryRun = &v
  43265. return s
  43266. }
  43267. // SetFilters sets the Filters field's value.
  43268. func (s *DescribeScheduledInstancesInput) SetFilters(v []*Filter) *DescribeScheduledInstancesInput {
  43269. s.Filters = v
  43270. return s
  43271. }
  43272. // SetMaxResults sets the MaxResults field's value.
  43273. func (s *DescribeScheduledInstancesInput) SetMaxResults(v int64) *DescribeScheduledInstancesInput {
  43274. s.MaxResults = &v
  43275. return s
  43276. }
  43277. // SetNextToken sets the NextToken field's value.
  43278. func (s *DescribeScheduledInstancesInput) SetNextToken(v string) *DescribeScheduledInstancesInput {
  43279. s.NextToken = &v
  43280. return s
  43281. }
  43282. // SetScheduledInstanceIds sets the ScheduledInstanceIds field's value.
  43283. func (s *DescribeScheduledInstancesInput) SetScheduledInstanceIds(v []*string) *DescribeScheduledInstancesInput {
  43284. s.ScheduledInstanceIds = v
  43285. return s
  43286. }
  43287. // SetSlotStartTimeRange sets the SlotStartTimeRange field's value.
  43288. func (s *DescribeScheduledInstancesInput) SetSlotStartTimeRange(v *SlotStartTimeRangeRequest) *DescribeScheduledInstancesInput {
  43289. s.SlotStartTimeRange = v
  43290. return s
  43291. }
  43292. // Contains the output of DescribeScheduledInstances.
  43293. type DescribeScheduledInstancesOutput struct {
  43294. _ struct{} `type:"structure"`
  43295. // The token required to retrieve the next set of results. This value is null
  43296. // when there are no more results to return.
  43297. NextToken *string `locationName:"nextToken" type:"string"`
  43298. // Information about the Scheduled Instances.
  43299. ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
  43300. }
  43301. // String returns the string representation
  43302. func (s DescribeScheduledInstancesOutput) String() string {
  43303. return awsutil.Prettify(s)
  43304. }
  43305. // GoString returns the string representation
  43306. func (s DescribeScheduledInstancesOutput) GoString() string {
  43307. return s.String()
  43308. }
  43309. // SetNextToken sets the NextToken field's value.
  43310. func (s *DescribeScheduledInstancesOutput) SetNextToken(v string) *DescribeScheduledInstancesOutput {
  43311. s.NextToken = &v
  43312. return s
  43313. }
  43314. // SetScheduledInstanceSet sets the ScheduledInstanceSet field's value.
  43315. func (s *DescribeScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *DescribeScheduledInstancesOutput {
  43316. s.ScheduledInstanceSet = v
  43317. return s
  43318. }
  43319. type DescribeSecurityGroupReferencesInput struct {
  43320. _ struct{} `type:"structure"`
  43321. // Checks whether you have the required permissions for the action, without
  43322. // actually making the request, and provides an error response. If you have
  43323. // the required permissions, the error response is DryRunOperation. Otherwise,
  43324. // it is UnauthorizedOperation.
  43325. DryRun *bool `type:"boolean"`
  43326. // One or more security group IDs in your account.
  43327. //
  43328. // GroupId is a required field
  43329. GroupId []*string `locationNameList:"item" type:"list" required:"true"`
  43330. }
  43331. // String returns the string representation
  43332. func (s DescribeSecurityGroupReferencesInput) String() string {
  43333. return awsutil.Prettify(s)
  43334. }
  43335. // GoString returns the string representation
  43336. func (s DescribeSecurityGroupReferencesInput) GoString() string {
  43337. return s.String()
  43338. }
  43339. // Validate inspects the fields of the type to determine if they are valid.
  43340. func (s *DescribeSecurityGroupReferencesInput) Validate() error {
  43341. invalidParams := request.ErrInvalidParams{Context: "DescribeSecurityGroupReferencesInput"}
  43342. if s.GroupId == nil {
  43343. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  43344. }
  43345. if invalidParams.Len() > 0 {
  43346. return invalidParams
  43347. }
  43348. return nil
  43349. }
  43350. // SetDryRun sets the DryRun field's value.
  43351. func (s *DescribeSecurityGroupReferencesInput) SetDryRun(v bool) *DescribeSecurityGroupReferencesInput {
  43352. s.DryRun = &v
  43353. return s
  43354. }
  43355. // SetGroupId sets the GroupId field's value.
  43356. func (s *DescribeSecurityGroupReferencesInput) SetGroupId(v []*string) *DescribeSecurityGroupReferencesInput {
  43357. s.GroupId = v
  43358. return s
  43359. }
  43360. type DescribeSecurityGroupReferencesOutput struct {
  43361. _ struct{} `type:"structure"`
  43362. // Information about the VPCs with the referencing security groups.
  43363. SecurityGroupReferenceSet []*SecurityGroupReference `locationName:"securityGroupReferenceSet" locationNameList:"item" type:"list"`
  43364. }
  43365. // String returns the string representation
  43366. func (s DescribeSecurityGroupReferencesOutput) String() string {
  43367. return awsutil.Prettify(s)
  43368. }
  43369. // GoString returns the string representation
  43370. func (s DescribeSecurityGroupReferencesOutput) GoString() string {
  43371. return s.String()
  43372. }
  43373. // SetSecurityGroupReferenceSet sets the SecurityGroupReferenceSet field's value.
  43374. func (s *DescribeSecurityGroupReferencesOutput) SetSecurityGroupReferenceSet(v []*SecurityGroupReference) *DescribeSecurityGroupReferencesOutput {
  43375. s.SecurityGroupReferenceSet = v
  43376. return s
  43377. }
  43378. type DescribeSecurityGroupsInput struct {
  43379. _ struct{} `type:"structure"`
  43380. // Checks whether you have the required permissions for the action, without
  43381. // actually making the request, and provides an error response. If you have
  43382. // the required permissions, the error response is DryRunOperation. Otherwise,
  43383. // it is UnauthorizedOperation.
  43384. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43385. // One or more filters. If using multiple filters for rules, the results include
  43386. // security groups for which any combination of rules - not necessarily a single
  43387. // rule - match all filters.
  43388. //
  43389. // * description - The description of the security group.
  43390. //
  43391. // * egress.ip-permission.cidr - An IPv4 CIDR block for an outbound security
  43392. // group rule.
  43393. //
  43394. // * egress.ip-permission.from-port - For an outbound rule, the start of
  43395. // port range for the TCP and UDP protocols, or an ICMP type number.
  43396. //
  43397. // * egress.ip-permission.group-id - The ID of a security group that has
  43398. // been referenced in an outbound security group rule.
  43399. //
  43400. // * egress.ip-permission.group-name - The name of a security group that
  43401. // has been referenced in an outbound security group rule.
  43402. //
  43403. // * egress.ip-permission.ipv6-cidr - An IPv6 CIDR block for an outbound
  43404. // security group rule.
  43405. //
  43406. // * egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service
  43407. // to which a security group rule allows outbound access.
  43408. //
  43409. // * egress.ip-permission.protocol - The IP protocol for an outbound security
  43410. // group rule (tcp | udp | icmp or a protocol number).
  43411. //
  43412. // * egress.ip-permission.to-port - For an outbound rule, the end of port
  43413. // range for the TCP and UDP protocols, or an ICMP code.
  43414. //
  43415. // * egress.ip-permission.user-id - The ID of an AWS account that has been
  43416. // referenced in an outbound security group rule.
  43417. //
  43418. // * group-id - The ID of the security group.
  43419. //
  43420. // * group-name - The name of the security group.
  43421. //
  43422. // * ip-permission.cidr - An IPv4 CIDR block for an inbound security group
  43423. // rule.
  43424. //
  43425. // * ip-permission.from-port - For an inbound rule, the start of port range
  43426. // for the TCP and UDP protocols, or an ICMP type number.
  43427. //
  43428. // * ip-permission.group-id - The ID of a security group that has been referenced
  43429. // in an inbound security group rule.
  43430. //
  43431. // * ip-permission.group-name - The name of a security group that has been
  43432. // referenced in an inbound security group rule.
  43433. //
  43434. // * ip-permission.ipv6-cidr - An IPv6 CIDR block for an inbound security
  43435. // group rule.
  43436. //
  43437. // * ip-permission.prefix-list-id - The ID (prefix) of the AWS service from
  43438. // which a security group rule allows inbound access.
  43439. //
  43440. // * ip-permission.protocol - The IP protocol for an inbound security group
  43441. // rule (tcp | udp | icmp or a protocol number).
  43442. //
  43443. // * ip-permission.to-port - For an inbound rule, the end of port range for
  43444. // the TCP and UDP protocols, or an ICMP code.
  43445. //
  43446. // * ip-permission.user-id - The ID of an AWS account that has been referenced
  43447. // in an inbound security group rule.
  43448. //
  43449. // * owner-id - The AWS account ID of the owner of the security group.
  43450. //
  43451. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  43452. // Use the tag key in the filter name and the tag value as the filter value.
  43453. // For example, to find all resources that have a tag with the key Owner
  43454. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  43455. // the filter value.
  43456. //
  43457. // * tag-key - The key of a tag assigned to the resource. Use this filter
  43458. // to find all resources assigned a tag with a specific key, regardless of
  43459. // the tag value.
  43460. //
  43461. // * vpc-id - The ID of the VPC specified when the security group was created.
  43462. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  43463. // One or more security group IDs. Required for security groups in a nondefault
  43464. // VPC.
  43465. //
  43466. // Default: Describes all your security groups.
  43467. GroupIds []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"`
  43468. // [EC2-Classic and default VPC only] One or more security group names. You
  43469. // can specify either the security group name or the security group ID. For
  43470. // security groups in a nondefault VPC, use the group-name filter to describe
  43471. // security groups by name.
  43472. //
  43473. // Default: Describes all your security groups.
  43474. GroupNames []*string `locationName:"GroupName" locationNameList:"GroupName" type:"list"`
  43475. // The maximum number of results to return in a single call. To retrieve the
  43476. // remaining results, make another request with the returned NextToken value.
  43477. // This value can be between 5 and 1000. If this parameter is not specified,
  43478. // then all results are returned.
  43479. MaxResults *int64 `type:"integer"`
  43480. // The token to request the next page of results.
  43481. NextToken *string `type:"string"`
  43482. }
  43483. // String returns the string representation
  43484. func (s DescribeSecurityGroupsInput) String() string {
  43485. return awsutil.Prettify(s)
  43486. }
  43487. // GoString returns the string representation
  43488. func (s DescribeSecurityGroupsInput) GoString() string {
  43489. return s.String()
  43490. }
  43491. // SetDryRun sets the DryRun field's value.
  43492. func (s *DescribeSecurityGroupsInput) SetDryRun(v bool) *DescribeSecurityGroupsInput {
  43493. s.DryRun = &v
  43494. return s
  43495. }
  43496. // SetFilters sets the Filters field's value.
  43497. func (s *DescribeSecurityGroupsInput) SetFilters(v []*Filter) *DescribeSecurityGroupsInput {
  43498. s.Filters = v
  43499. return s
  43500. }
  43501. // SetGroupIds sets the GroupIds field's value.
  43502. func (s *DescribeSecurityGroupsInput) SetGroupIds(v []*string) *DescribeSecurityGroupsInput {
  43503. s.GroupIds = v
  43504. return s
  43505. }
  43506. // SetGroupNames sets the GroupNames field's value.
  43507. func (s *DescribeSecurityGroupsInput) SetGroupNames(v []*string) *DescribeSecurityGroupsInput {
  43508. s.GroupNames = v
  43509. return s
  43510. }
  43511. // SetMaxResults sets the MaxResults field's value.
  43512. func (s *DescribeSecurityGroupsInput) SetMaxResults(v int64) *DescribeSecurityGroupsInput {
  43513. s.MaxResults = &v
  43514. return s
  43515. }
  43516. // SetNextToken sets the NextToken field's value.
  43517. func (s *DescribeSecurityGroupsInput) SetNextToken(v string) *DescribeSecurityGroupsInput {
  43518. s.NextToken = &v
  43519. return s
  43520. }
  43521. type DescribeSecurityGroupsOutput struct {
  43522. _ struct{} `type:"structure"`
  43523. // The token to use to retrieve the next page of results. This value is null
  43524. // when there are no more results to return.
  43525. NextToken *string `locationName:"nextToken" type:"string"`
  43526. // Information about one or more security groups.
  43527. SecurityGroups []*SecurityGroup `locationName:"securityGroupInfo" locationNameList:"item" type:"list"`
  43528. }
  43529. // String returns the string representation
  43530. func (s DescribeSecurityGroupsOutput) String() string {
  43531. return awsutil.Prettify(s)
  43532. }
  43533. // GoString returns the string representation
  43534. func (s DescribeSecurityGroupsOutput) GoString() string {
  43535. return s.String()
  43536. }
  43537. // SetNextToken sets the NextToken field's value.
  43538. func (s *DescribeSecurityGroupsOutput) SetNextToken(v string) *DescribeSecurityGroupsOutput {
  43539. s.NextToken = &v
  43540. return s
  43541. }
  43542. // SetSecurityGroups sets the SecurityGroups field's value.
  43543. func (s *DescribeSecurityGroupsOutput) SetSecurityGroups(v []*SecurityGroup) *DescribeSecurityGroupsOutput {
  43544. s.SecurityGroups = v
  43545. return s
  43546. }
  43547. // Contains the parameters for DescribeSnapshotAttribute.
  43548. type DescribeSnapshotAttributeInput struct {
  43549. _ struct{} `type:"structure"`
  43550. // The snapshot attribute you would like to view.
  43551. //
  43552. // Attribute is a required field
  43553. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"`
  43554. // Checks whether you have the required permissions for the action, without
  43555. // actually making the request, and provides an error response. If you have
  43556. // the required permissions, the error response is DryRunOperation. Otherwise,
  43557. // it is UnauthorizedOperation.
  43558. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43559. // The ID of the EBS snapshot.
  43560. //
  43561. // SnapshotId is a required field
  43562. SnapshotId *string `type:"string" required:"true"`
  43563. }
  43564. // String returns the string representation
  43565. func (s DescribeSnapshotAttributeInput) String() string {
  43566. return awsutil.Prettify(s)
  43567. }
  43568. // GoString returns the string representation
  43569. func (s DescribeSnapshotAttributeInput) GoString() string {
  43570. return s.String()
  43571. }
  43572. // Validate inspects the fields of the type to determine if they are valid.
  43573. func (s *DescribeSnapshotAttributeInput) Validate() error {
  43574. invalidParams := request.ErrInvalidParams{Context: "DescribeSnapshotAttributeInput"}
  43575. if s.Attribute == nil {
  43576. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  43577. }
  43578. if s.SnapshotId == nil {
  43579. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  43580. }
  43581. if invalidParams.Len() > 0 {
  43582. return invalidParams
  43583. }
  43584. return nil
  43585. }
  43586. // SetAttribute sets the Attribute field's value.
  43587. func (s *DescribeSnapshotAttributeInput) SetAttribute(v string) *DescribeSnapshotAttributeInput {
  43588. s.Attribute = &v
  43589. return s
  43590. }
  43591. // SetDryRun sets the DryRun field's value.
  43592. func (s *DescribeSnapshotAttributeInput) SetDryRun(v bool) *DescribeSnapshotAttributeInput {
  43593. s.DryRun = &v
  43594. return s
  43595. }
  43596. // SetSnapshotId sets the SnapshotId field's value.
  43597. func (s *DescribeSnapshotAttributeInput) SetSnapshotId(v string) *DescribeSnapshotAttributeInput {
  43598. s.SnapshotId = &v
  43599. return s
  43600. }
  43601. // Contains the output of DescribeSnapshotAttribute.
  43602. type DescribeSnapshotAttributeOutput struct {
  43603. _ struct{} `type:"structure"`
  43604. // A list of permissions for creating volumes from the snapshot.
  43605. CreateVolumePermissions []*CreateVolumePermission `locationName:"createVolumePermission" locationNameList:"item" type:"list"`
  43606. // A list of product codes.
  43607. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  43608. // The ID of the EBS snapshot.
  43609. SnapshotId *string `locationName:"snapshotId" type:"string"`
  43610. }
  43611. // String returns the string representation
  43612. func (s DescribeSnapshotAttributeOutput) String() string {
  43613. return awsutil.Prettify(s)
  43614. }
  43615. // GoString returns the string representation
  43616. func (s DescribeSnapshotAttributeOutput) GoString() string {
  43617. return s.String()
  43618. }
  43619. // SetCreateVolumePermissions sets the CreateVolumePermissions field's value.
  43620. func (s *DescribeSnapshotAttributeOutput) SetCreateVolumePermissions(v []*CreateVolumePermission) *DescribeSnapshotAttributeOutput {
  43621. s.CreateVolumePermissions = v
  43622. return s
  43623. }
  43624. // SetProductCodes sets the ProductCodes field's value.
  43625. func (s *DescribeSnapshotAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeSnapshotAttributeOutput {
  43626. s.ProductCodes = v
  43627. return s
  43628. }
  43629. // SetSnapshotId sets the SnapshotId field's value.
  43630. func (s *DescribeSnapshotAttributeOutput) SetSnapshotId(v string) *DescribeSnapshotAttributeOutput {
  43631. s.SnapshotId = &v
  43632. return s
  43633. }
  43634. // Contains the parameters for DescribeSnapshots.
  43635. type DescribeSnapshotsInput struct {
  43636. _ struct{} `type:"structure"`
  43637. // Checks whether you have the required permissions for the action, without
  43638. // actually making the request, and provides an error response. If you have
  43639. // the required permissions, the error response is DryRunOperation. Otherwise,
  43640. // it is UnauthorizedOperation.
  43641. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43642. // One or more filters.
  43643. //
  43644. // * description - A description of the snapshot.
  43645. //
  43646. // * owner-alias - Value from an Amazon-maintained list (amazon | aws-marketplace
  43647. // | microsoft) of snapshot owners. Not to be confused with the user-configured
  43648. // AWS account alias, which is set from the IAM console.
  43649. //
  43650. // * owner-id - The ID of the AWS account that owns the snapshot.
  43651. //
  43652. // * progress - The progress of the snapshot, as a percentage (for example,
  43653. // 80%).
  43654. //
  43655. // * snapshot-id - The snapshot ID.
  43656. //
  43657. // * start-time - The time stamp when the snapshot was initiated.
  43658. //
  43659. // * status - The status of the snapshot (pending | completed | error).
  43660. //
  43661. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  43662. // Use the tag key in the filter name and the tag value as the filter value.
  43663. // For example, to find all resources that have a tag with the key Owner
  43664. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  43665. // the filter value.
  43666. //
  43667. // * tag-key - The key of a tag assigned to the resource. Use this filter
  43668. // to find all resources assigned a tag with a specific key, regardless of
  43669. // the tag value.
  43670. //
  43671. // * volume-id - The ID of the volume the snapshot is for.
  43672. //
  43673. // * volume-size - The size of the volume, in GiB.
  43674. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  43675. // The maximum number of snapshot results returned by DescribeSnapshots in paginated
  43676. // output. When this parameter is used, DescribeSnapshots only returns MaxResults
  43677. // results in a single page along with a NextToken response element. The remaining
  43678. // results of the initial request can be seen by sending another DescribeSnapshots
  43679. // request with the returned NextToken value. This value can be between 5 and
  43680. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  43681. // are returned. If this parameter is not used, then DescribeSnapshots returns
  43682. // all results. You cannot specify this parameter and the snapshot IDs parameter
  43683. // in the same request.
  43684. MaxResults *int64 `type:"integer"`
  43685. // The NextToken value returned from a previous paginated DescribeSnapshots
  43686. // request where MaxResults was used and the results exceeded the value of that
  43687. // parameter. Pagination continues from the end of the previous results that
  43688. // returned the NextToken value. This value is null when there are no more results
  43689. // to return.
  43690. NextToken *string `type:"string"`
  43691. // Returns the snapshots owned by the specified owner. Multiple owners can be
  43692. // specified.
  43693. OwnerIds []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  43694. // One or more AWS accounts IDs that can create volumes from the snapshot.
  43695. RestorableByUserIds []*string `locationName:"RestorableBy" type:"list"`
  43696. // One or more snapshot IDs.
  43697. //
  43698. // Default: Describes snapshots for which you have launch permissions.
  43699. SnapshotIds []*string `locationName:"SnapshotId" locationNameList:"SnapshotId" type:"list"`
  43700. }
  43701. // String returns the string representation
  43702. func (s DescribeSnapshotsInput) String() string {
  43703. return awsutil.Prettify(s)
  43704. }
  43705. // GoString returns the string representation
  43706. func (s DescribeSnapshotsInput) GoString() string {
  43707. return s.String()
  43708. }
  43709. // SetDryRun sets the DryRun field's value.
  43710. func (s *DescribeSnapshotsInput) SetDryRun(v bool) *DescribeSnapshotsInput {
  43711. s.DryRun = &v
  43712. return s
  43713. }
  43714. // SetFilters sets the Filters field's value.
  43715. func (s *DescribeSnapshotsInput) SetFilters(v []*Filter) *DescribeSnapshotsInput {
  43716. s.Filters = v
  43717. return s
  43718. }
  43719. // SetMaxResults sets the MaxResults field's value.
  43720. func (s *DescribeSnapshotsInput) SetMaxResults(v int64) *DescribeSnapshotsInput {
  43721. s.MaxResults = &v
  43722. return s
  43723. }
  43724. // SetNextToken sets the NextToken field's value.
  43725. func (s *DescribeSnapshotsInput) SetNextToken(v string) *DescribeSnapshotsInput {
  43726. s.NextToken = &v
  43727. return s
  43728. }
  43729. // SetOwnerIds sets the OwnerIds field's value.
  43730. func (s *DescribeSnapshotsInput) SetOwnerIds(v []*string) *DescribeSnapshotsInput {
  43731. s.OwnerIds = v
  43732. return s
  43733. }
  43734. // SetRestorableByUserIds sets the RestorableByUserIds field's value.
  43735. func (s *DescribeSnapshotsInput) SetRestorableByUserIds(v []*string) *DescribeSnapshotsInput {
  43736. s.RestorableByUserIds = v
  43737. return s
  43738. }
  43739. // SetSnapshotIds sets the SnapshotIds field's value.
  43740. func (s *DescribeSnapshotsInput) SetSnapshotIds(v []*string) *DescribeSnapshotsInput {
  43741. s.SnapshotIds = v
  43742. return s
  43743. }
  43744. // Contains the output of DescribeSnapshots.
  43745. type DescribeSnapshotsOutput struct {
  43746. _ struct{} `type:"structure"`
  43747. // The NextToken value to include in a future DescribeSnapshots request. When
  43748. // the results of a DescribeSnapshots request exceed MaxResults, this value
  43749. // can be used to retrieve the next page of results. This value is null when
  43750. // there are no more results to return.
  43751. NextToken *string `locationName:"nextToken" type:"string"`
  43752. // Information about the snapshots.
  43753. Snapshots []*Snapshot `locationName:"snapshotSet" locationNameList:"item" type:"list"`
  43754. }
  43755. // String returns the string representation
  43756. func (s DescribeSnapshotsOutput) String() string {
  43757. return awsutil.Prettify(s)
  43758. }
  43759. // GoString returns the string representation
  43760. func (s DescribeSnapshotsOutput) GoString() string {
  43761. return s.String()
  43762. }
  43763. // SetNextToken sets the NextToken field's value.
  43764. func (s *DescribeSnapshotsOutput) SetNextToken(v string) *DescribeSnapshotsOutput {
  43765. s.NextToken = &v
  43766. return s
  43767. }
  43768. // SetSnapshots sets the Snapshots field's value.
  43769. func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshotsOutput {
  43770. s.Snapshots = v
  43771. return s
  43772. }
  43773. // Contains the parameters for DescribeSpotDatafeedSubscription.
  43774. type DescribeSpotDatafeedSubscriptionInput struct {
  43775. _ struct{} `type:"structure"`
  43776. // Checks whether you have the required permissions for the action, without
  43777. // actually making the request, and provides an error response. If you have
  43778. // the required permissions, the error response is DryRunOperation. Otherwise,
  43779. // it is UnauthorizedOperation.
  43780. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43781. }
  43782. // String returns the string representation
  43783. func (s DescribeSpotDatafeedSubscriptionInput) String() string {
  43784. return awsutil.Prettify(s)
  43785. }
  43786. // GoString returns the string representation
  43787. func (s DescribeSpotDatafeedSubscriptionInput) GoString() string {
  43788. return s.String()
  43789. }
  43790. // SetDryRun sets the DryRun field's value.
  43791. func (s *DescribeSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DescribeSpotDatafeedSubscriptionInput {
  43792. s.DryRun = &v
  43793. return s
  43794. }
  43795. // Contains the output of DescribeSpotDatafeedSubscription.
  43796. type DescribeSpotDatafeedSubscriptionOutput struct {
  43797. _ struct{} `type:"structure"`
  43798. // The Spot Instance data feed subscription.
  43799. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
  43800. }
  43801. // String returns the string representation
  43802. func (s DescribeSpotDatafeedSubscriptionOutput) String() string {
  43803. return awsutil.Prettify(s)
  43804. }
  43805. // GoString returns the string representation
  43806. func (s DescribeSpotDatafeedSubscriptionOutput) GoString() string {
  43807. return s.String()
  43808. }
  43809. // SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value.
  43810. func (s *DescribeSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *DescribeSpotDatafeedSubscriptionOutput {
  43811. s.SpotDatafeedSubscription = v
  43812. return s
  43813. }
  43814. // Contains the parameters for DescribeSpotFleetInstances.
  43815. type DescribeSpotFleetInstancesInput struct {
  43816. _ struct{} `type:"structure"`
  43817. // Checks whether you have the required permissions for the action, without
  43818. // actually making the request, and provides an error response. If you have
  43819. // the required permissions, the error response is DryRunOperation. Otherwise,
  43820. // it is UnauthorizedOperation.
  43821. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43822. // The maximum number of results to return in a single call. Specify a value
  43823. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  43824. // results, make another call with the returned NextToken value.
  43825. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  43826. // The token for the next set of results.
  43827. NextToken *string `locationName:"nextToken" type:"string"`
  43828. // The ID of the Spot Fleet request.
  43829. //
  43830. // SpotFleetRequestId is a required field
  43831. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  43832. }
  43833. // String returns the string representation
  43834. func (s DescribeSpotFleetInstancesInput) String() string {
  43835. return awsutil.Prettify(s)
  43836. }
  43837. // GoString returns the string representation
  43838. func (s DescribeSpotFleetInstancesInput) GoString() string {
  43839. return s.String()
  43840. }
  43841. // Validate inspects the fields of the type to determine if they are valid.
  43842. func (s *DescribeSpotFleetInstancesInput) Validate() error {
  43843. invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetInstancesInput"}
  43844. if s.SpotFleetRequestId == nil {
  43845. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  43846. }
  43847. if invalidParams.Len() > 0 {
  43848. return invalidParams
  43849. }
  43850. return nil
  43851. }
  43852. // SetDryRun sets the DryRun field's value.
  43853. func (s *DescribeSpotFleetInstancesInput) SetDryRun(v bool) *DescribeSpotFleetInstancesInput {
  43854. s.DryRun = &v
  43855. return s
  43856. }
  43857. // SetMaxResults sets the MaxResults field's value.
  43858. func (s *DescribeSpotFleetInstancesInput) SetMaxResults(v int64) *DescribeSpotFleetInstancesInput {
  43859. s.MaxResults = &v
  43860. return s
  43861. }
  43862. // SetNextToken sets the NextToken field's value.
  43863. func (s *DescribeSpotFleetInstancesInput) SetNextToken(v string) *DescribeSpotFleetInstancesInput {
  43864. s.NextToken = &v
  43865. return s
  43866. }
  43867. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  43868. func (s *DescribeSpotFleetInstancesInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesInput {
  43869. s.SpotFleetRequestId = &v
  43870. return s
  43871. }
  43872. // Contains the output of DescribeSpotFleetInstances.
  43873. type DescribeSpotFleetInstancesOutput struct {
  43874. _ struct{} `type:"structure"`
  43875. // The running instances. This list is refreshed periodically and might be out
  43876. // of date.
  43877. ActiveInstances []*ActiveInstance `locationName:"activeInstanceSet" locationNameList:"item" type:"list"`
  43878. // The token required to retrieve the next set of results. This value is null
  43879. // when there are no more results to return.
  43880. NextToken *string `locationName:"nextToken" type:"string"`
  43881. // The ID of the Spot Fleet request.
  43882. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
  43883. }
  43884. // String returns the string representation
  43885. func (s DescribeSpotFleetInstancesOutput) String() string {
  43886. return awsutil.Prettify(s)
  43887. }
  43888. // GoString returns the string representation
  43889. func (s DescribeSpotFleetInstancesOutput) GoString() string {
  43890. return s.String()
  43891. }
  43892. // SetActiveInstances sets the ActiveInstances field's value.
  43893. func (s *DescribeSpotFleetInstancesOutput) SetActiveInstances(v []*ActiveInstance) *DescribeSpotFleetInstancesOutput {
  43894. s.ActiveInstances = v
  43895. return s
  43896. }
  43897. // SetNextToken sets the NextToken field's value.
  43898. func (s *DescribeSpotFleetInstancesOutput) SetNextToken(v string) *DescribeSpotFleetInstancesOutput {
  43899. s.NextToken = &v
  43900. return s
  43901. }
  43902. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  43903. func (s *DescribeSpotFleetInstancesOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesOutput {
  43904. s.SpotFleetRequestId = &v
  43905. return s
  43906. }
  43907. // Contains the parameters for DescribeSpotFleetRequestHistory.
  43908. type DescribeSpotFleetRequestHistoryInput struct {
  43909. _ struct{} `type:"structure"`
  43910. // Checks whether you have the required permissions for the action, without
  43911. // actually making the request, and provides an error response. If you have
  43912. // the required permissions, the error response is DryRunOperation. Otherwise,
  43913. // it is UnauthorizedOperation.
  43914. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43915. // The type of events to describe. By default, all events are described.
  43916. EventType *string `locationName:"eventType" type:"string" enum:"EventType"`
  43917. // The maximum number of results to return in a single call. Specify a value
  43918. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  43919. // results, make another call with the returned NextToken value.
  43920. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  43921. // The token for the next set of results.
  43922. NextToken *string `locationName:"nextToken" type:"string"`
  43923. // The ID of the Spot Fleet request.
  43924. //
  43925. // SpotFleetRequestId is a required field
  43926. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  43927. // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  43928. //
  43929. // StartTime is a required field
  43930. StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
  43931. }
  43932. // String returns the string representation
  43933. func (s DescribeSpotFleetRequestHistoryInput) String() string {
  43934. return awsutil.Prettify(s)
  43935. }
  43936. // GoString returns the string representation
  43937. func (s DescribeSpotFleetRequestHistoryInput) GoString() string {
  43938. return s.String()
  43939. }
  43940. // Validate inspects the fields of the type to determine if they are valid.
  43941. func (s *DescribeSpotFleetRequestHistoryInput) Validate() error {
  43942. invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetRequestHistoryInput"}
  43943. if s.SpotFleetRequestId == nil {
  43944. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  43945. }
  43946. if s.StartTime == nil {
  43947. invalidParams.Add(request.NewErrParamRequired("StartTime"))
  43948. }
  43949. if invalidParams.Len() > 0 {
  43950. return invalidParams
  43951. }
  43952. return nil
  43953. }
  43954. // SetDryRun sets the DryRun field's value.
  43955. func (s *DescribeSpotFleetRequestHistoryInput) SetDryRun(v bool) *DescribeSpotFleetRequestHistoryInput {
  43956. s.DryRun = &v
  43957. return s
  43958. }
  43959. // SetEventType sets the EventType field's value.
  43960. func (s *DescribeSpotFleetRequestHistoryInput) SetEventType(v string) *DescribeSpotFleetRequestHistoryInput {
  43961. s.EventType = &v
  43962. return s
  43963. }
  43964. // SetMaxResults sets the MaxResults field's value.
  43965. func (s *DescribeSpotFleetRequestHistoryInput) SetMaxResults(v int64) *DescribeSpotFleetRequestHistoryInput {
  43966. s.MaxResults = &v
  43967. return s
  43968. }
  43969. // SetNextToken sets the NextToken field's value.
  43970. func (s *DescribeSpotFleetRequestHistoryInput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryInput {
  43971. s.NextToken = &v
  43972. return s
  43973. }
  43974. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  43975. func (s *DescribeSpotFleetRequestHistoryInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryInput {
  43976. s.SpotFleetRequestId = &v
  43977. return s
  43978. }
  43979. // SetStartTime sets the StartTime field's value.
  43980. func (s *DescribeSpotFleetRequestHistoryInput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryInput {
  43981. s.StartTime = &v
  43982. return s
  43983. }
  43984. // Contains the output of DescribeSpotFleetRequestHistory.
  43985. type DescribeSpotFleetRequestHistoryOutput struct {
  43986. _ struct{} `type:"structure"`
  43987. // Information about the events in the history of the Spot Fleet request.
  43988. HistoryRecords []*HistoryRecord `locationName:"historyRecordSet" locationNameList:"item" type:"list"`
  43989. // The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  43990. // All records up to this time were retrieved.
  43991. //
  43992. // If nextToken indicates that there are more results, this value is not present.
  43993. LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp"`
  43994. // The token required to retrieve the next set of results. This value is null
  43995. // when there are no more results to return.
  43996. NextToken *string `locationName:"nextToken" type:"string"`
  43997. // The ID of the Spot Fleet request.
  43998. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
  43999. // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  44000. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  44001. }
  44002. // String returns the string representation
  44003. func (s DescribeSpotFleetRequestHistoryOutput) String() string {
  44004. return awsutil.Prettify(s)
  44005. }
  44006. // GoString returns the string representation
  44007. func (s DescribeSpotFleetRequestHistoryOutput) GoString() string {
  44008. return s.String()
  44009. }
  44010. // SetHistoryRecords sets the HistoryRecords field's value.
  44011. func (s *DescribeSpotFleetRequestHistoryOutput) SetHistoryRecords(v []*HistoryRecord) *DescribeSpotFleetRequestHistoryOutput {
  44012. s.HistoryRecords = v
  44013. return s
  44014. }
  44015. // SetLastEvaluatedTime sets the LastEvaluatedTime field's value.
  44016. func (s *DescribeSpotFleetRequestHistoryOutput) SetLastEvaluatedTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput {
  44017. s.LastEvaluatedTime = &v
  44018. return s
  44019. }
  44020. // SetNextToken sets the NextToken field's value.
  44021. func (s *DescribeSpotFleetRequestHistoryOutput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryOutput {
  44022. s.NextToken = &v
  44023. return s
  44024. }
  44025. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  44026. func (s *DescribeSpotFleetRequestHistoryOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryOutput {
  44027. s.SpotFleetRequestId = &v
  44028. return s
  44029. }
  44030. // SetStartTime sets the StartTime field's value.
  44031. func (s *DescribeSpotFleetRequestHistoryOutput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput {
  44032. s.StartTime = &v
  44033. return s
  44034. }
  44035. // Contains the parameters for DescribeSpotFleetRequests.
  44036. type DescribeSpotFleetRequestsInput struct {
  44037. _ struct{} `type:"structure"`
  44038. // Checks whether you have the required permissions for the action, without
  44039. // actually making the request, and provides an error response. If you have
  44040. // the required permissions, the error response is DryRunOperation. Otherwise,
  44041. // it is UnauthorizedOperation.
  44042. DryRun *bool `locationName:"dryRun" type:"boolean"`
  44043. // The maximum number of results to return in a single call. Specify a value
  44044. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  44045. // results, make another call with the returned NextToken value.
  44046. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  44047. // The token for the next set of results.
  44048. NextToken *string `locationName:"nextToken" type:"string"`
  44049. // The IDs of the Spot Fleet requests.
  44050. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list"`
  44051. }
  44052. // String returns the string representation
  44053. func (s DescribeSpotFleetRequestsInput) String() string {
  44054. return awsutil.Prettify(s)
  44055. }
  44056. // GoString returns the string representation
  44057. func (s DescribeSpotFleetRequestsInput) GoString() string {
  44058. return s.String()
  44059. }
  44060. // SetDryRun sets the DryRun field's value.
  44061. func (s *DescribeSpotFleetRequestsInput) SetDryRun(v bool) *DescribeSpotFleetRequestsInput {
  44062. s.DryRun = &v
  44063. return s
  44064. }
  44065. // SetMaxResults sets the MaxResults field's value.
  44066. func (s *DescribeSpotFleetRequestsInput) SetMaxResults(v int64) *DescribeSpotFleetRequestsInput {
  44067. s.MaxResults = &v
  44068. return s
  44069. }
  44070. // SetNextToken sets the NextToken field's value.
  44071. func (s *DescribeSpotFleetRequestsInput) SetNextToken(v string) *DescribeSpotFleetRequestsInput {
  44072. s.NextToken = &v
  44073. return s
  44074. }
  44075. // SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value.
  44076. func (s *DescribeSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *DescribeSpotFleetRequestsInput {
  44077. s.SpotFleetRequestIds = v
  44078. return s
  44079. }
  44080. // Contains the output of DescribeSpotFleetRequests.
  44081. type DescribeSpotFleetRequestsOutput struct {
  44082. _ struct{} `type:"structure"`
  44083. // The token required to retrieve the next set of results. This value is null
  44084. // when there are no more results to return.
  44085. NextToken *string `locationName:"nextToken" type:"string"`
  44086. // Information about the configuration of your Spot Fleet.
  44087. SpotFleetRequestConfigs []*SpotFleetRequestConfig `locationName:"spotFleetRequestConfigSet" locationNameList:"item" type:"list"`
  44088. }
  44089. // String returns the string representation
  44090. func (s DescribeSpotFleetRequestsOutput) String() string {
  44091. return awsutil.Prettify(s)
  44092. }
  44093. // GoString returns the string representation
  44094. func (s DescribeSpotFleetRequestsOutput) GoString() string {
  44095. return s.String()
  44096. }
  44097. // SetNextToken sets the NextToken field's value.
  44098. func (s *DescribeSpotFleetRequestsOutput) SetNextToken(v string) *DescribeSpotFleetRequestsOutput {
  44099. s.NextToken = &v
  44100. return s
  44101. }
  44102. // SetSpotFleetRequestConfigs sets the SpotFleetRequestConfigs field's value.
  44103. func (s *DescribeSpotFleetRequestsOutput) SetSpotFleetRequestConfigs(v []*SpotFleetRequestConfig) *DescribeSpotFleetRequestsOutput {
  44104. s.SpotFleetRequestConfigs = v
  44105. return s
  44106. }
  44107. // Contains the parameters for DescribeSpotInstanceRequests.
  44108. type DescribeSpotInstanceRequestsInput struct {
  44109. _ struct{} `type:"structure"`
  44110. // Checks whether you have the required permissions for the action, without
  44111. // actually making the request, and provides an error response. If you have
  44112. // the required permissions, the error response is DryRunOperation. Otherwise,
  44113. // it is UnauthorizedOperation.
  44114. DryRun *bool `locationName:"dryRun" type:"boolean"`
  44115. // One or more filters.
  44116. //
  44117. // * availability-zone-group - The Availability Zone group.
  44118. //
  44119. // * create-time - The time stamp when the Spot Instance request was created.
  44120. //
  44121. // * fault-code - The fault code related to the request.
  44122. //
  44123. // * fault-message - The fault message related to the request.
  44124. //
  44125. // * instance-id - The ID of the instance that fulfilled the request.
  44126. //
  44127. // * launch-group - The Spot Instance launch group.
  44128. //
  44129. // * launch.block-device-mapping.delete-on-termination - Indicates whether
  44130. // the EBS volume is deleted on instance termination.
  44131. //
  44132. // * launch.block-device-mapping.device-name - The device name for the volume
  44133. // in the block device mapping (for example, /dev/sdh or xvdh).
  44134. //
  44135. // * launch.block-device-mapping.snapshot-id - The ID of the snapshot for
  44136. // the EBS volume.
  44137. //
  44138. // * launch.block-device-mapping.volume-size - The size of the EBS volume,
  44139. // in GiB.
  44140. //
  44141. // * launch.block-device-mapping.volume-type - The type of EBS volume: gp2
  44142. // for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput
  44143. // Optimized HDD, sc1for Cold HDD, or standard for Magnetic.
  44144. //
  44145. // * launch.group-id - The ID of the security group for the instance.
  44146. //
  44147. // * launch.group-name - The name of the security group for the instance.
  44148. //
  44149. // * launch.image-id - The ID of the AMI.
  44150. //
  44151. // * launch.instance-type - The type of instance (for example, m3.medium).
  44152. //
  44153. // * launch.kernel-id - The kernel ID.
  44154. //
  44155. // * launch.key-name - The name of the key pair the instance launched with.
  44156. //
  44157. // * launch.monitoring-enabled - Whether detailed monitoring is enabled for
  44158. // the Spot Instance.
  44159. //
  44160. // * launch.ramdisk-id - The RAM disk ID.
  44161. //
  44162. // * launched-availability-zone - The Availability Zone in which the request
  44163. // is launched.
  44164. //
  44165. // * network-interface.addresses.primary - Indicates whether the IP address
  44166. // is the primary private IP address.
  44167. //
  44168. // * network-interface.delete-on-termination - Indicates whether the network
  44169. // interface is deleted when the instance is terminated.
  44170. //
  44171. // * network-interface.description - A description of the network interface.
  44172. //
  44173. // * network-interface.device-index - The index of the device for the network
  44174. // interface attachment on the instance.
  44175. //
  44176. // * network-interface.group-id - The ID of the security group associated
  44177. // with the network interface.
  44178. //
  44179. // * network-interface.network-interface-id - The ID of the network interface.
  44180. //
  44181. // * network-interface.private-ip-address - The primary private IP address
  44182. // of the network interface.
  44183. //
  44184. // * network-interface.subnet-id - The ID of the subnet for the instance.
  44185. //
  44186. // * product-description - The product description associated with the instance
  44187. // (Linux/UNIX | Windows).
  44188. //
  44189. // * spot-instance-request-id - The Spot Instance request ID.
  44190. //
  44191. // * spot-price - The maximum hourly price for any Spot Instance launched
  44192. // to fulfill the request.
  44193. //
  44194. // * state - The state of the Spot Instance request (open | active | closed
  44195. // | cancelled | failed). Spot request status information can help you track
  44196. // your Amazon EC2 Spot Instance requests. For more information, see Spot
  44197. // Request Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
  44198. // in the Amazon EC2 User Guide for Linux Instances.
  44199. //
  44200. // * status-code - The short code describing the most recent evaluation of
  44201. // your Spot Instance request.
  44202. //
  44203. // * status-message - The message explaining the status of the Spot Instance
  44204. // request.
  44205. //
  44206. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  44207. // Use the tag key in the filter name and the tag value as the filter value.
  44208. // For example, to find all resources that have a tag with the key Owner
  44209. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  44210. // the filter value.
  44211. //
  44212. // * tag-key - The key of a tag assigned to the resource. Use this filter
  44213. // to find all resources assigned a tag with a specific key, regardless of
  44214. // the tag value.
  44215. //
  44216. // * type - The type of Spot Instance request (one-time | persistent).
  44217. //
  44218. // * valid-from - The start date of the request.
  44219. //
  44220. // * valid-until - The end date of the request.
  44221. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44222. // One or more Spot Instance request IDs.
  44223. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list"`
  44224. }
  44225. // String returns the string representation
  44226. func (s DescribeSpotInstanceRequestsInput) String() string {
  44227. return awsutil.Prettify(s)
  44228. }
  44229. // GoString returns the string representation
  44230. func (s DescribeSpotInstanceRequestsInput) GoString() string {
  44231. return s.String()
  44232. }
  44233. // SetDryRun sets the DryRun field's value.
  44234. func (s *DescribeSpotInstanceRequestsInput) SetDryRun(v bool) *DescribeSpotInstanceRequestsInput {
  44235. s.DryRun = &v
  44236. return s
  44237. }
  44238. // SetFilters sets the Filters field's value.
  44239. func (s *DescribeSpotInstanceRequestsInput) SetFilters(v []*Filter) *DescribeSpotInstanceRequestsInput {
  44240. s.Filters = v
  44241. return s
  44242. }
  44243. // SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value.
  44244. func (s *DescribeSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *DescribeSpotInstanceRequestsInput {
  44245. s.SpotInstanceRequestIds = v
  44246. return s
  44247. }
  44248. // Contains the output of DescribeSpotInstanceRequests.
  44249. type DescribeSpotInstanceRequestsOutput struct {
  44250. _ struct{} `type:"structure"`
  44251. // One or more Spot Instance requests.
  44252. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  44253. }
  44254. // String returns the string representation
  44255. func (s DescribeSpotInstanceRequestsOutput) String() string {
  44256. return awsutil.Prettify(s)
  44257. }
  44258. // GoString returns the string representation
  44259. func (s DescribeSpotInstanceRequestsOutput) GoString() string {
  44260. return s.String()
  44261. }
  44262. // SetSpotInstanceRequests sets the SpotInstanceRequests field's value.
  44263. func (s *DescribeSpotInstanceRequestsOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *DescribeSpotInstanceRequestsOutput {
  44264. s.SpotInstanceRequests = v
  44265. return s
  44266. }
  44267. // Contains the parameters for DescribeSpotPriceHistory.
  44268. type DescribeSpotPriceHistoryInput struct {
  44269. _ struct{} `type:"structure"`
  44270. // Filters the results by the specified Availability Zone.
  44271. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  44272. // Checks whether you have the required permissions for the action, without
  44273. // actually making the request, and provides an error response. If you have
  44274. // the required permissions, the error response is DryRunOperation. Otherwise,
  44275. // it is UnauthorizedOperation.
  44276. DryRun *bool `locationName:"dryRun" type:"boolean"`
  44277. // The date and time, up to the current date, from which to stop retrieving
  44278. // the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  44279. EndTime *time.Time `locationName:"endTime" type:"timestamp"`
  44280. // One or more filters.
  44281. //
  44282. // * availability-zone - The Availability Zone for which prices should be
  44283. // returned.
  44284. //
  44285. // * instance-type - The type of instance (for example, m3.medium).
  44286. //
  44287. // * product-description - The product description for the Spot price (Linux/UNIX
  44288. // | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon
  44289. // VPC) | Windows (Amazon VPC)).
  44290. //
  44291. // * spot-price - The Spot price. The value must match exactly (or use wildcards;
  44292. // greater than or less than comparison is not supported).
  44293. //
  44294. // * timestamp - The time stamp of the Spot price history, in UTC format
  44295. // (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?).
  44296. // Greater than or less than comparison is not supported.
  44297. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44298. // Filters the results by the specified instance types.
  44299. InstanceTypes []*string `locationName:"InstanceType" type:"list"`
  44300. // The maximum number of results to return in a single call. Specify a value
  44301. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  44302. // results, make another call with the returned NextToken value.
  44303. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  44304. // The token for the next set of results.
  44305. NextToken *string `locationName:"nextToken" type:"string"`
  44306. // Filters the results by the specified basic product descriptions.
  44307. ProductDescriptions []*string `locationName:"ProductDescription" type:"list"`
  44308. // The date and time, up to the past 90 days, from which to start retrieving
  44309. // the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  44310. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  44311. }
  44312. // String returns the string representation
  44313. func (s DescribeSpotPriceHistoryInput) String() string {
  44314. return awsutil.Prettify(s)
  44315. }
  44316. // GoString returns the string representation
  44317. func (s DescribeSpotPriceHistoryInput) GoString() string {
  44318. return s.String()
  44319. }
  44320. // SetAvailabilityZone sets the AvailabilityZone field's value.
  44321. func (s *DescribeSpotPriceHistoryInput) SetAvailabilityZone(v string) *DescribeSpotPriceHistoryInput {
  44322. s.AvailabilityZone = &v
  44323. return s
  44324. }
  44325. // SetDryRun sets the DryRun field's value.
  44326. func (s *DescribeSpotPriceHistoryInput) SetDryRun(v bool) *DescribeSpotPriceHistoryInput {
  44327. s.DryRun = &v
  44328. return s
  44329. }
  44330. // SetEndTime sets the EndTime field's value.
  44331. func (s *DescribeSpotPriceHistoryInput) SetEndTime(v time.Time) *DescribeSpotPriceHistoryInput {
  44332. s.EndTime = &v
  44333. return s
  44334. }
  44335. // SetFilters sets the Filters field's value.
  44336. func (s *DescribeSpotPriceHistoryInput) SetFilters(v []*Filter) *DescribeSpotPriceHistoryInput {
  44337. s.Filters = v
  44338. return s
  44339. }
  44340. // SetInstanceTypes sets the InstanceTypes field's value.
  44341. func (s *DescribeSpotPriceHistoryInput) SetInstanceTypes(v []*string) *DescribeSpotPriceHistoryInput {
  44342. s.InstanceTypes = v
  44343. return s
  44344. }
  44345. // SetMaxResults sets the MaxResults field's value.
  44346. func (s *DescribeSpotPriceHistoryInput) SetMaxResults(v int64) *DescribeSpotPriceHistoryInput {
  44347. s.MaxResults = &v
  44348. return s
  44349. }
  44350. // SetNextToken sets the NextToken field's value.
  44351. func (s *DescribeSpotPriceHistoryInput) SetNextToken(v string) *DescribeSpotPriceHistoryInput {
  44352. s.NextToken = &v
  44353. return s
  44354. }
  44355. // SetProductDescriptions sets the ProductDescriptions field's value.
  44356. func (s *DescribeSpotPriceHistoryInput) SetProductDescriptions(v []*string) *DescribeSpotPriceHistoryInput {
  44357. s.ProductDescriptions = v
  44358. return s
  44359. }
  44360. // SetStartTime sets the StartTime field's value.
  44361. func (s *DescribeSpotPriceHistoryInput) SetStartTime(v time.Time) *DescribeSpotPriceHistoryInput {
  44362. s.StartTime = &v
  44363. return s
  44364. }
  44365. // Contains the output of DescribeSpotPriceHistory.
  44366. type DescribeSpotPriceHistoryOutput struct {
  44367. _ struct{} `type:"structure"`
  44368. // The token required to retrieve the next set of results. This value is null
  44369. // or an empty string when there are no more results to return.
  44370. NextToken *string `locationName:"nextToken" type:"string"`
  44371. // The historical Spot prices.
  44372. SpotPriceHistory []*SpotPrice `locationName:"spotPriceHistorySet" locationNameList:"item" type:"list"`
  44373. }
  44374. // String returns the string representation
  44375. func (s DescribeSpotPriceHistoryOutput) String() string {
  44376. return awsutil.Prettify(s)
  44377. }
  44378. // GoString returns the string representation
  44379. func (s DescribeSpotPriceHistoryOutput) GoString() string {
  44380. return s.String()
  44381. }
  44382. // SetNextToken sets the NextToken field's value.
  44383. func (s *DescribeSpotPriceHistoryOutput) SetNextToken(v string) *DescribeSpotPriceHistoryOutput {
  44384. s.NextToken = &v
  44385. return s
  44386. }
  44387. // SetSpotPriceHistory sets the SpotPriceHistory field's value.
  44388. func (s *DescribeSpotPriceHistoryOutput) SetSpotPriceHistory(v []*SpotPrice) *DescribeSpotPriceHistoryOutput {
  44389. s.SpotPriceHistory = v
  44390. return s
  44391. }
  44392. type DescribeStaleSecurityGroupsInput struct {
  44393. _ struct{} `type:"structure"`
  44394. // Checks whether you have the required permissions for the action, without
  44395. // actually making the request, and provides an error response. If you have
  44396. // the required permissions, the error response is DryRunOperation. Otherwise,
  44397. // it is UnauthorizedOperation.
  44398. DryRun *bool `type:"boolean"`
  44399. // The maximum number of items to return for this request. The request returns
  44400. // a token that you can specify in a subsequent call to get the next set of
  44401. // results.
  44402. MaxResults *int64 `min:"5" type:"integer"`
  44403. // The token for the next set of items to return. (You received this token from
  44404. // a prior call.)
  44405. NextToken *string `min:"1" type:"string"`
  44406. // The ID of the VPC.
  44407. //
  44408. // VpcId is a required field
  44409. VpcId *string `type:"string" required:"true"`
  44410. }
  44411. // String returns the string representation
  44412. func (s DescribeStaleSecurityGroupsInput) String() string {
  44413. return awsutil.Prettify(s)
  44414. }
  44415. // GoString returns the string representation
  44416. func (s DescribeStaleSecurityGroupsInput) GoString() string {
  44417. return s.String()
  44418. }
  44419. // Validate inspects the fields of the type to determine if they are valid.
  44420. func (s *DescribeStaleSecurityGroupsInput) Validate() error {
  44421. invalidParams := request.ErrInvalidParams{Context: "DescribeStaleSecurityGroupsInput"}
  44422. if s.MaxResults != nil && *s.MaxResults < 5 {
  44423. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  44424. }
  44425. if s.NextToken != nil && len(*s.NextToken) < 1 {
  44426. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  44427. }
  44428. if s.VpcId == nil {
  44429. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  44430. }
  44431. if invalidParams.Len() > 0 {
  44432. return invalidParams
  44433. }
  44434. return nil
  44435. }
  44436. // SetDryRun sets the DryRun field's value.
  44437. func (s *DescribeStaleSecurityGroupsInput) SetDryRun(v bool) *DescribeStaleSecurityGroupsInput {
  44438. s.DryRun = &v
  44439. return s
  44440. }
  44441. // SetMaxResults sets the MaxResults field's value.
  44442. func (s *DescribeStaleSecurityGroupsInput) SetMaxResults(v int64) *DescribeStaleSecurityGroupsInput {
  44443. s.MaxResults = &v
  44444. return s
  44445. }
  44446. // SetNextToken sets the NextToken field's value.
  44447. func (s *DescribeStaleSecurityGroupsInput) SetNextToken(v string) *DescribeStaleSecurityGroupsInput {
  44448. s.NextToken = &v
  44449. return s
  44450. }
  44451. // SetVpcId sets the VpcId field's value.
  44452. func (s *DescribeStaleSecurityGroupsInput) SetVpcId(v string) *DescribeStaleSecurityGroupsInput {
  44453. s.VpcId = &v
  44454. return s
  44455. }
  44456. type DescribeStaleSecurityGroupsOutput struct {
  44457. _ struct{} `type:"structure"`
  44458. // The token to use when requesting the next set of items. If there are no additional
  44459. // items to return, the string is empty.
  44460. NextToken *string `locationName:"nextToken" type:"string"`
  44461. // Information about the stale security groups.
  44462. StaleSecurityGroupSet []*StaleSecurityGroup `locationName:"staleSecurityGroupSet" locationNameList:"item" type:"list"`
  44463. }
  44464. // String returns the string representation
  44465. func (s DescribeStaleSecurityGroupsOutput) String() string {
  44466. return awsutil.Prettify(s)
  44467. }
  44468. // GoString returns the string representation
  44469. func (s DescribeStaleSecurityGroupsOutput) GoString() string {
  44470. return s.String()
  44471. }
  44472. // SetNextToken sets the NextToken field's value.
  44473. func (s *DescribeStaleSecurityGroupsOutput) SetNextToken(v string) *DescribeStaleSecurityGroupsOutput {
  44474. s.NextToken = &v
  44475. return s
  44476. }
  44477. // SetStaleSecurityGroupSet sets the StaleSecurityGroupSet field's value.
  44478. func (s *DescribeStaleSecurityGroupsOutput) SetStaleSecurityGroupSet(v []*StaleSecurityGroup) *DescribeStaleSecurityGroupsOutput {
  44479. s.StaleSecurityGroupSet = v
  44480. return s
  44481. }
  44482. type DescribeSubnetsInput struct {
  44483. _ struct{} `type:"structure"`
  44484. // Checks whether you have the required permissions for the action, without
  44485. // actually making the request, and provides an error response. If you have
  44486. // the required permissions, the error response is DryRunOperation. Otherwise,
  44487. // it is UnauthorizedOperation.
  44488. DryRun *bool `locationName:"dryRun" type:"boolean"`
  44489. // One or more filters.
  44490. //
  44491. // * availability-zone - The Availability Zone for the subnet. You can also
  44492. // use availabilityZone as the filter name.
  44493. //
  44494. // * availability-zone-id - The ID of the Availability Zone for the subnet.
  44495. // You can also use availabilityZoneId as the filter name.
  44496. //
  44497. // * available-ip-address-count - The number of IPv4 addresses in the subnet
  44498. // that are available.
  44499. //
  44500. // * cidr-block - The IPv4 CIDR block of the subnet. The CIDR block you specify
  44501. // must exactly match the subnet's CIDR block for information to be returned
  44502. // for the subnet. You can also use cidr or cidrBlock as the filter names.
  44503. //
  44504. // * default-for-az - Indicates whether this is the default subnet for the
  44505. // Availability Zone. You can also use defaultForAz as the filter name.
  44506. //
  44507. // * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
  44508. // with the subnet.
  44509. //
  44510. // * ipv6-cidr-block-association.association-id - An association ID for an
  44511. // IPv6 CIDR block associated with the subnet.
  44512. //
  44513. // * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
  44514. // associated with the subnet.
  44515. //
  44516. // * owner-id - The ID of the AWS account that owns the subnet.
  44517. //
  44518. // * state - The state of the subnet (pending | available).
  44519. //
  44520. // * subnet-arn - The Amazon Resource Name (ARN) of the subnet.
  44521. //
  44522. // * subnet-id - The ID of the subnet.
  44523. //
  44524. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  44525. // Use the tag key in the filter name and the tag value as the filter value.
  44526. // For example, to find all resources that have a tag with the key Owner
  44527. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  44528. // the filter value.
  44529. //
  44530. // * tag-key - The key of a tag assigned to the resource. Use this filter
  44531. // to find all resources assigned a tag with a specific key, regardless of
  44532. // the tag value.
  44533. //
  44534. // * vpc-id - The ID of the VPC for the subnet.
  44535. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44536. // One or more subnet IDs.
  44537. //
  44538. // Default: Describes all your subnets.
  44539. SubnetIds []*string `locationName:"SubnetId" locationNameList:"SubnetId" type:"list"`
  44540. }
  44541. // String returns the string representation
  44542. func (s DescribeSubnetsInput) String() string {
  44543. return awsutil.Prettify(s)
  44544. }
  44545. // GoString returns the string representation
  44546. func (s DescribeSubnetsInput) GoString() string {
  44547. return s.String()
  44548. }
  44549. // SetDryRun sets the DryRun field's value.
  44550. func (s *DescribeSubnetsInput) SetDryRun(v bool) *DescribeSubnetsInput {
  44551. s.DryRun = &v
  44552. return s
  44553. }
  44554. // SetFilters sets the Filters field's value.
  44555. func (s *DescribeSubnetsInput) SetFilters(v []*Filter) *DescribeSubnetsInput {
  44556. s.Filters = v
  44557. return s
  44558. }
  44559. // SetSubnetIds sets the SubnetIds field's value.
  44560. func (s *DescribeSubnetsInput) SetSubnetIds(v []*string) *DescribeSubnetsInput {
  44561. s.SubnetIds = v
  44562. return s
  44563. }
  44564. type DescribeSubnetsOutput struct {
  44565. _ struct{} `type:"structure"`
  44566. // Information about one or more subnets.
  44567. Subnets []*Subnet `locationName:"subnetSet" locationNameList:"item" type:"list"`
  44568. }
  44569. // String returns the string representation
  44570. func (s DescribeSubnetsOutput) String() string {
  44571. return awsutil.Prettify(s)
  44572. }
  44573. // GoString returns the string representation
  44574. func (s DescribeSubnetsOutput) GoString() string {
  44575. return s.String()
  44576. }
  44577. // SetSubnets sets the Subnets field's value.
  44578. func (s *DescribeSubnetsOutput) SetSubnets(v []*Subnet) *DescribeSubnetsOutput {
  44579. s.Subnets = v
  44580. return s
  44581. }
  44582. type DescribeTagsInput struct {
  44583. _ struct{} `type:"structure"`
  44584. // Checks whether you have the required permissions for the action, without
  44585. // actually making the request, and provides an error response. If you have
  44586. // the required permissions, the error response is DryRunOperation. Otherwise,
  44587. // it is UnauthorizedOperation.
  44588. DryRun *bool `locationName:"dryRun" type:"boolean"`
  44589. // One or more filters.
  44590. //
  44591. // * key - The tag key.
  44592. //
  44593. // * resource-id - The ID of the resource.
  44594. //
  44595. // * resource-type - The resource type (customer-gateway | dedicated-host
  44596. // | dhcp-options | elastic-ip | fleet | fpga-image | image | instance |
  44597. // internet-gateway | launch-template | natgateway | network-acl | network-interface
  44598. // | reserved-instances | route-table | security-group | snapshot | spot-instances-request
  44599. // | subnet | volume | vpc | vpc-peering-connection | vpn-connection | vpn-gateway).
  44600. //
  44601. // * tag:<key> - The key/value combination of the tag. For example, specify
  44602. // "tag:Owner" for the filter name and "TeamA" for the filter value to find
  44603. // resources with the tag "Owner=TeamA".
  44604. //
  44605. // * value - The tag value.
  44606. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44607. // The maximum number of results to return in a single call. This value can
  44608. // be between 5 and 1000. To retrieve the remaining results, make another call
  44609. // with the returned NextToken value.
  44610. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  44611. // The token to retrieve the next page of results.
  44612. NextToken *string `locationName:"nextToken" type:"string"`
  44613. }
  44614. // String returns the string representation
  44615. func (s DescribeTagsInput) String() string {
  44616. return awsutil.Prettify(s)
  44617. }
  44618. // GoString returns the string representation
  44619. func (s DescribeTagsInput) GoString() string {
  44620. return s.String()
  44621. }
  44622. // SetDryRun sets the DryRun field's value.
  44623. func (s *DescribeTagsInput) SetDryRun(v bool) *DescribeTagsInput {
  44624. s.DryRun = &v
  44625. return s
  44626. }
  44627. // SetFilters sets the Filters field's value.
  44628. func (s *DescribeTagsInput) SetFilters(v []*Filter) *DescribeTagsInput {
  44629. s.Filters = v
  44630. return s
  44631. }
  44632. // SetMaxResults sets the MaxResults field's value.
  44633. func (s *DescribeTagsInput) SetMaxResults(v int64) *DescribeTagsInput {
  44634. s.MaxResults = &v
  44635. return s
  44636. }
  44637. // SetNextToken sets the NextToken field's value.
  44638. func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput {
  44639. s.NextToken = &v
  44640. return s
  44641. }
  44642. type DescribeTagsOutput struct {
  44643. _ struct{} `type:"structure"`
  44644. // The token to use to retrieve the next page of results. This value is null
  44645. // when there are no more results to return.
  44646. NextToken *string `locationName:"nextToken" type:"string"`
  44647. // The tags.
  44648. Tags []*TagDescription `locationName:"tagSet" locationNameList:"item" type:"list"`
  44649. }
  44650. // String returns the string representation
  44651. func (s DescribeTagsOutput) String() string {
  44652. return awsutil.Prettify(s)
  44653. }
  44654. // GoString returns the string representation
  44655. func (s DescribeTagsOutput) GoString() string {
  44656. return s.String()
  44657. }
  44658. // SetNextToken sets the NextToken field's value.
  44659. func (s *DescribeTagsOutput) SetNextToken(v string) *DescribeTagsOutput {
  44660. s.NextToken = &v
  44661. return s
  44662. }
  44663. // SetTags sets the Tags field's value.
  44664. func (s *DescribeTagsOutput) SetTags(v []*TagDescription) *DescribeTagsOutput {
  44665. s.Tags = v
  44666. return s
  44667. }
  44668. type DescribeTransitGatewayAttachmentsInput struct {
  44669. _ struct{} `type:"structure"`
  44670. // Checks whether you have the required permissions for the action, without
  44671. // actually making the request, and provides an error response. If you have
  44672. // the required permissions, the error response is DryRunOperation. Otherwise,
  44673. // it is UnauthorizedOperation.
  44674. DryRun *bool `type:"boolean"`
  44675. // One or more filters. The possible values are:
  44676. //
  44677. // * association-id - The ID of the association.
  44678. //
  44679. // * association-route-table-id - The ID of the route table for the transit
  44680. // gateway.
  44681. //
  44682. // * associate-state - The state of the association (associating | associated
  44683. // | disassociating).
  44684. //
  44685. // * resource-id - The ID of the resource.
  44686. //
  44687. // * resource-type - The resource type (vpc | vpn).
  44688. //
  44689. // * state - The state of the attachment (pendingAcceptance | pending | available
  44690. // | modifying | deleting | deleted | failed | rejected).
  44691. //
  44692. // * transit-gateway-attachment-id - The ID of the attachment.
  44693. //
  44694. // * transit-gateway-id - The ID of the transit gateway.
  44695. //
  44696. // * transit-gateway-owner - The ID of the AWS account that owns the transit
  44697. // gateway.
  44698. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44699. // The maximum number of results to return with a single call. To retrieve the
  44700. // remaining results, make another call with the returned nextToken value.
  44701. MaxResults *int64 `min:"5" type:"integer"`
  44702. // The token for the next page of results.
  44703. NextToken *string `type:"string"`
  44704. // The IDs of the attachments.
  44705. TransitGatewayAttachmentIds []*string `type:"list"`
  44706. }
  44707. // String returns the string representation
  44708. func (s DescribeTransitGatewayAttachmentsInput) String() string {
  44709. return awsutil.Prettify(s)
  44710. }
  44711. // GoString returns the string representation
  44712. func (s DescribeTransitGatewayAttachmentsInput) GoString() string {
  44713. return s.String()
  44714. }
  44715. // Validate inspects the fields of the type to determine if they are valid.
  44716. func (s *DescribeTransitGatewayAttachmentsInput) Validate() error {
  44717. invalidParams := request.ErrInvalidParams{Context: "DescribeTransitGatewayAttachmentsInput"}
  44718. if s.MaxResults != nil && *s.MaxResults < 5 {
  44719. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  44720. }
  44721. if invalidParams.Len() > 0 {
  44722. return invalidParams
  44723. }
  44724. return nil
  44725. }
  44726. // SetDryRun sets the DryRun field's value.
  44727. func (s *DescribeTransitGatewayAttachmentsInput) SetDryRun(v bool) *DescribeTransitGatewayAttachmentsInput {
  44728. s.DryRun = &v
  44729. return s
  44730. }
  44731. // SetFilters sets the Filters field's value.
  44732. func (s *DescribeTransitGatewayAttachmentsInput) SetFilters(v []*Filter) *DescribeTransitGatewayAttachmentsInput {
  44733. s.Filters = v
  44734. return s
  44735. }
  44736. // SetMaxResults sets the MaxResults field's value.
  44737. func (s *DescribeTransitGatewayAttachmentsInput) SetMaxResults(v int64) *DescribeTransitGatewayAttachmentsInput {
  44738. s.MaxResults = &v
  44739. return s
  44740. }
  44741. // SetNextToken sets the NextToken field's value.
  44742. func (s *DescribeTransitGatewayAttachmentsInput) SetNextToken(v string) *DescribeTransitGatewayAttachmentsInput {
  44743. s.NextToken = &v
  44744. return s
  44745. }
  44746. // SetTransitGatewayAttachmentIds sets the TransitGatewayAttachmentIds field's value.
  44747. func (s *DescribeTransitGatewayAttachmentsInput) SetTransitGatewayAttachmentIds(v []*string) *DescribeTransitGatewayAttachmentsInput {
  44748. s.TransitGatewayAttachmentIds = v
  44749. return s
  44750. }
  44751. type DescribeTransitGatewayAttachmentsOutput struct {
  44752. _ struct{} `type:"structure"`
  44753. // The token to use to retrieve the next page of results. This value is null
  44754. // when there are no more results to return.
  44755. NextToken *string `locationName:"nextToken" type:"string"`
  44756. // Information about the attachments.
  44757. TransitGatewayAttachments []*TransitGatewayAttachment `locationName:"transitGatewayAttachments" locationNameList:"item" type:"list"`
  44758. }
  44759. // String returns the string representation
  44760. func (s DescribeTransitGatewayAttachmentsOutput) String() string {
  44761. return awsutil.Prettify(s)
  44762. }
  44763. // GoString returns the string representation
  44764. func (s DescribeTransitGatewayAttachmentsOutput) GoString() string {
  44765. return s.String()
  44766. }
  44767. // SetNextToken sets the NextToken field's value.
  44768. func (s *DescribeTransitGatewayAttachmentsOutput) SetNextToken(v string) *DescribeTransitGatewayAttachmentsOutput {
  44769. s.NextToken = &v
  44770. return s
  44771. }
  44772. // SetTransitGatewayAttachments sets the TransitGatewayAttachments field's value.
  44773. func (s *DescribeTransitGatewayAttachmentsOutput) SetTransitGatewayAttachments(v []*TransitGatewayAttachment) *DescribeTransitGatewayAttachmentsOutput {
  44774. s.TransitGatewayAttachments = v
  44775. return s
  44776. }
  44777. type DescribeTransitGatewayRouteTablesInput struct {
  44778. _ struct{} `type:"structure"`
  44779. // Checks whether you have the required permissions for the action, without
  44780. // actually making the request, and provides an error response. If you have
  44781. // the required permissions, the error response is DryRunOperation. Otherwise,
  44782. // it is UnauthorizedOperation.
  44783. DryRun *bool `type:"boolean"`
  44784. // One or more filters. The possible values are:
  44785. //
  44786. // * default-association-route-table - Indicates whether this is the default
  44787. // association route table for the transit gateway (true | false).
  44788. //
  44789. // * default-propagation-route-table - Indicates whether this is the default
  44790. // propagation route table for the transit gateway (true | false).
  44791. //
  44792. // * transit-gateway-id - The ID of the transit gateway.
  44793. //
  44794. // * transit-gateway-route-table-id - The ID of the transit gateway route
  44795. // table.
  44796. //
  44797. // * transit-gateway-route-table-state - The state (pending | available |
  44798. // deleting | deleted).
  44799. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44800. // The maximum number of results to return with a single call. To retrieve the
  44801. // remaining results, make another call with the returned nextToken value.
  44802. MaxResults *int64 `min:"5" type:"integer"`
  44803. // The token for the next page of results.
  44804. NextToken *string `type:"string"`
  44805. // The IDs of the transit gateway route tables.
  44806. TransitGatewayRouteTableIds []*string `locationNameList:"item" type:"list"`
  44807. }
  44808. // String returns the string representation
  44809. func (s DescribeTransitGatewayRouteTablesInput) String() string {
  44810. return awsutil.Prettify(s)
  44811. }
  44812. // GoString returns the string representation
  44813. func (s DescribeTransitGatewayRouteTablesInput) GoString() string {
  44814. return s.String()
  44815. }
  44816. // Validate inspects the fields of the type to determine if they are valid.
  44817. func (s *DescribeTransitGatewayRouteTablesInput) Validate() error {
  44818. invalidParams := request.ErrInvalidParams{Context: "DescribeTransitGatewayRouteTablesInput"}
  44819. if s.MaxResults != nil && *s.MaxResults < 5 {
  44820. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  44821. }
  44822. if invalidParams.Len() > 0 {
  44823. return invalidParams
  44824. }
  44825. return nil
  44826. }
  44827. // SetDryRun sets the DryRun field's value.
  44828. func (s *DescribeTransitGatewayRouteTablesInput) SetDryRun(v bool) *DescribeTransitGatewayRouteTablesInput {
  44829. s.DryRun = &v
  44830. return s
  44831. }
  44832. // SetFilters sets the Filters field's value.
  44833. func (s *DescribeTransitGatewayRouteTablesInput) SetFilters(v []*Filter) *DescribeTransitGatewayRouteTablesInput {
  44834. s.Filters = v
  44835. return s
  44836. }
  44837. // SetMaxResults sets the MaxResults field's value.
  44838. func (s *DescribeTransitGatewayRouteTablesInput) SetMaxResults(v int64) *DescribeTransitGatewayRouteTablesInput {
  44839. s.MaxResults = &v
  44840. return s
  44841. }
  44842. // SetNextToken sets the NextToken field's value.
  44843. func (s *DescribeTransitGatewayRouteTablesInput) SetNextToken(v string) *DescribeTransitGatewayRouteTablesInput {
  44844. s.NextToken = &v
  44845. return s
  44846. }
  44847. // SetTransitGatewayRouteTableIds sets the TransitGatewayRouteTableIds field's value.
  44848. func (s *DescribeTransitGatewayRouteTablesInput) SetTransitGatewayRouteTableIds(v []*string) *DescribeTransitGatewayRouteTablesInput {
  44849. s.TransitGatewayRouteTableIds = v
  44850. return s
  44851. }
  44852. type DescribeTransitGatewayRouteTablesOutput struct {
  44853. _ struct{} `type:"structure"`
  44854. // The token to use to retrieve the next page of results. This value is null
  44855. // when there are no more results to return.
  44856. NextToken *string `locationName:"nextToken" type:"string"`
  44857. // Information about the transit gateway route tables.
  44858. TransitGatewayRouteTables []*TransitGatewayRouteTable `locationName:"transitGatewayRouteTables" locationNameList:"item" type:"list"`
  44859. }
  44860. // String returns the string representation
  44861. func (s DescribeTransitGatewayRouteTablesOutput) String() string {
  44862. return awsutil.Prettify(s)
  44863. }
  44864. // GoString returns the string representation
  44865. func (s DescribeTransitGatewayRouteTablesOutput) GoString() string {
  44866. return s.String()
  44867. }
  44868. // SetNextToken sets the NextToken field's value.
  44869. func (s *DescribeTransitGatewayRouteTablesOutput) SetNextToken(v string) *DescribeTransitGatewayRouteTablesOutput {
  44870. s.NextToken = &v
  44871. return s
  44872. }
  44873. // SetTransitGatewayRouteTables sets the TransitGatewayRouteTables field's value.
  44874. func (s *DescribeTransitGatewayRouteTablesOutput) SetTransitGatewayRouteTables(v []*TransitGatewayRouteTable) *DescribeTransitGatewayRouteTablesOutput {
  44875. s.TransitGatewayRouteTables = v
  44876. return s
  44877. }
  44878. type DescribeTransitGatewayVpcAttachmentsInput struct {
  44879. _ struct{} `type:"structure"`
  44880. // Checks whether you have the required permissions for the action, without
  44881. // actually making the request, and provides an error response. If you have
  44882. // the required permissions, the error response is DryRunOperation. Otherwise,
  44883. // it is UnauthorizedOperation.
  44884. DryRun *bool `type:"boolean"`
  44885. // One or more filters. The possible values are:
  44886. //
  44887. // * transit-gateway-attachment-id - The ID of the attachment.
  44888. //
  44889. // * transit-gateway-attachment-state - The state of the attachment (pendingAcceptance
  44890. // | pending | available | modifying | deleting | deleted | failed | rejected).
  44891. //
  44892. // * transit-gateway-id - The ID of the transit gateway.
  44893. //
  44894. // * vpc-id - The ID of the VPC.
  44895. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44896. // The maximum number of results to return with a single call. To retrieve the
  44897. // remaining results, make another call with the returned nextToken value.
  44898. MaxResults *int64 `min:"5" type:"integer"`
  44899. // The token for the next page of results.
  44900. NextToken *string `type:"string"`
  44901. // The IDs of the attachments.
  44902. TransitGatewayAttachmentIds []*string `type:"list"`
  44903. }
  44904. // String returns the string representation
  44905. func (s DescribeTransitGatewayVpcAttachmentsInput) String() string {
  44906. return awsutil.Prettify(s)
  44907. }
  44908. // GoString returns the string representation
  44909. func (s DescribeTransitGatewayVpcAttachmentsInput) GoString() string {
  44910. return s.String()
  44911. }
  44912. // Validate inspects the fields of the type to determine if they are valid.
  44913. func (s *DescribeTransitGatewayVpcAttachmentsInput) Validate() error {
  44914. invalidParams := request.ErrInvalidParams{Context: "DescribeTransitGatewayVpcAttachmentsInput"}
  44915. if s.MaxResults != nil && *s.MaxResults < 5 {
  44916. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  44917. }
  44918. if invalidParams.Len() > 0 {
  44919. return invalidParams
  44920. }
  44921. return nil
  44922. }
  44923. // SetDryRun sets the DryRun field's value.
  44924. func (s *DescribeTransitGatewayVpcAttachmentsInput) SetDryRun(v bool) *DescribeTransitGatewayVpcAttachmentsInput {
  44925. s.DryRun = &v
  44926. return s
  44927. }
  44928. // SetFilters sets the Filters field's value.
  44929. func (s *DescribeTransitGatewayVpcAttachmentsInput) SetFilters(v []*Filter) *DescribeTransitGatewayVpcAttachmentsInput {
  44930. s.Filters = v
  44931. return s
  44932. }
  44933. // SetMaxResults sets the MaxResults field's value.
  44934. func (s *DescribeTransitGatewayVpcAttachmentsInput) SetMaxResults(v int64) *DescribeTransitGatewayVpcAttachmentsInput {
  44935. s.MaxResults = &v
  44936. return s
  44937. }
  44938. // SetNextToken sets the NextToken field's value.
  44939. func (s *DescribeTransitGatewayVpcAttachmentsInput) SetNextToken(v string) *DescribeTransitGatewayVpcAttachmentsInput {
  44940. s.NextToken = &v
  44941. return s
  44942. }
  44943. // SetTransitGatewayAttachmentIds sets the TransitGatewayAttachmentIds field's value.
  44944. func (s *DescribeTransitGatewayVpcAttachmentsInput) SetTransitGatewayAttachmentIds(v []*string) *DescribeTransitGatewayVpcAttachmentsInput {
  44945. s.TransitGatewayAttachmentIds = v
  44946. return s
  44947. }
  44948. type DescribeTransitGatewayVpcAttachmentsOutput struct {
  44949. _ struct{} `type:"structure"`
  44950. // The token to use to retrieve the next page of results. This value is null
  44951. // when there are no more results to return.
  44952. NextToken *string `locationName:"nextToken" type:"string"`
  44953. // Information about the VPC attachments.
  44954. TransitGatewayVpcAttachments []*TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachments" locationNameList:"item" type:"list"`
  44955. }
  44956. // String returns the string representation
  44957. func (s DescribeTransitGatewayVpcAttachmentsOutput) String() string {
  44958. return awsutil.Prettify(s)
  44959. }
  44960. // GoString returns the string representation
  44961. func (s DescribeTransitGatewayVpcAttachmentsOutput) GoString() string {
  44962. return s.String()
  44963. }
  44964. // SetNextToken sets the NextToken field's value.
  44965. func (s *DescribeTransitGatewayVpcAttachmentsOutput) SetNextToken(v string) *DescribeTransitGatewayVpcAttachmentsOutput {
  44966. s.NextToken = &v
  44967. return s
  44968. }
  44969. // SetTransitGatewayVpcAttachments sets the TransitGatewayVpcAttachments field's value.
  44970. func (s *DescribeTransitGatewayVpcAttachmentsOutput) SetTransitGatewayVpcAttachments(v []*TransitGatewayVpcAttachment) *DescribeTransitGatewayVpcAttachmentsOutput {
  44971. s.TransitGatewayVpcAttachments = v
  44972. return s
  44973. }
  44974. type DescribeTransitGatewaysInput struct {
  44975. _ struct{} `type:"structure"`
  44976. // Checks whether you have the required permissions for the action, without
  44977. // actually making the request, and provides an error response. If you have
  44978. // the required permissions, the error response is DryRunOperation. Otherwise,
  44979. // it is UnauthorizedOperation.
  44980. DryRun *bool `type:"boolean"`
  44981. // One or more filters. The possible values are:
  44982. //
  44983. // * amazon-side-asn - The private ASN for the Amazon side of a BGP session.
  44984. //
  44985. // * association-default-route-table-id - The ID of the default association
  44986. // route table.
  44987. //
  44988. // * default-route-table-association - Indicates whether resource attachments
  44989. // are automatically associated with the default association route table
  44990. // (enable | disable).
  44991. //
  44992. // * default-route-table-propagation - Indicates whether resource attachments
  44993. // automatically propagate routes to the default propagation route table
  44994. // (enable | disable).
  44995. //
  44996. // * owner-account-id - The ID of the AWS account that owns the transit gateway.
  44997. //
  44998. // * propagation-default-route-table-id - The ID of the default propagation
  44999. // route table.
  45000. //
  45001. // * transit-gateway-id - The ID of the transit gateway.
  45002. //
  45003. // * transit-gateway-state - The state of the transit gateway (pending |
  45004. // available | deleting | deleted).
  45005. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45006. // The maximum number of results to return with a single call. To retrieve the
  45007. // remaining results, make another call with the returned nextToken value.
  45008. MaxResults *int64 `min:"5" type:"integer"`
  45009. // The token for the next page of results.
  45010. NextToken *string `type:"string"`
  45011. // The IDs of the transit gateways.
  45012. TransitGatewayIds []*string `locationNameList:"item" type:"list"`
  45013. }
  45014. // String returns the string representation
  45015. func (s DescribeTransitGatewaysInput) String() string {
  45016. return awsutil.Prettify(s)
  45017. }
  45018. // GoString returns the string representation
  45019. func (s DescribeTransitGatewaysInput) GoString() string {
  45020. return s.String()
  45021. }
  45022. // Validate inspects the fields of the type to determine if they are valid.
  45023. func (s *DescribeTransitGatewaysInput) Validate() error {
  45024. invalidParams := request.ErrInvalidParams{Context: "DescribeTransitGatewaysInput"}
  45025. if s.MaxResults != nil && *s.MaxResults < 5 {
  45026. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  45027. }
  45028. if invalidParams.Len() > 0 {
  45029. return invalidParams
  45030. }
  45031. return nil
  45032. }
  45033. // SetDryRun sets the DryRun field's value.
  45034. func (s *DescribeTransitGatewaysInput) SetDryRun(v bool) *DescribeTransitGatewaysInput {
  45035. s.DryRun = &v
  45036. return s
  45037. }
  45038. // SetFilters sets the Filters field's value.
  45039. func (s *DescribeTransitGatewaysInput) SetFilters(v []*Filter) *DescribeTransitGatewaysInput {
  45040. s.Filters = v
  45041. return s
  45042. }
  45043. // SetMaxResults sets the MaxResults field's value.
  45044. func (s *DescribeTransitGatewaysInput) SetMaxResults(v int64) *DescribeTransitGatewaysInput {
  45045. s.MaxResults = &v
  45046. return s
  45047. }
  45048. // SetNextToken sets the NextToken field's value.
  45049. func (s *DescribeTransitGatewaysInput) SetNextToken(v string) *DescribeTransitGatewaysInput {
  45050. s.NextToken = &v
  45051. return s
  45052. }
  45053. // SetTransitGatewayIds sets the TransitGatewayIds field's value.
  45054. func (s *DescribeTransitGatewaysInput) SetTransitGatewayIds(v []*string) *DescribeTransitGatewaysInput {
  45055. s.TransitGatewayIds = v
  45056. return s
  45057. }
  45058. type DescribeTransitGatewaysOutput struct {
  45059. _ struct{} `type:"structure"`
  45060. // The token to use to retrieve the next page of results. This value is null
  45061. // when there are no more results to return.
  45062. NextToken *string `locationName:"nextToken" type:"string"`
  45063. // Information about the transit gateways.
  45064. TransitGateways []*TransitGateway `locationName:"transitGatewaySet" locationNameList:"item" type:"list"`
  45065. }
  45066. // String returns the string representation
  45067. func (s DescribeTransitGatewaysOutput) String() string {
  45068. return awsutil.Prettify(s)
  45069. }
  45070. // GoString returns the string representation
  45071. func (s DescribeTransitGatewaysOutput) GoString() string {
  45072. return s.String()
  45073. }
  45074. // SetNextToken sets the NextToken field's value.
  45075. func (s *DescribeTransitGatewaysOutput) SetNextToken(v string) *DescribeTransitGatewaysOutput {
  45076. s.NextToken = &v
  45077. return s
  45078. }
  45079. // SetTransitGateways sets the TransitGateways field's value.
  45080. func (s *DescribeTransitGatewaysOutput) SetTransitGateways(v []*TransitGateway) *DescribeTransitGatewaysOutput {
  45081. s.TransitGateways = v
  45082. return s
  45083. }
  45084. // Contains the parameters for DescribeVolumeAttribute.
  45085. type DescribeVolumeAttributeInput struct {
  45086. _ struct{} `type:"structure"`
  45087. // The attribute of the volume. This parameter is required.
  45088. //
  45089. // Attribute is a required field
  45090. Attribute *string `type:"string" required:"true" enum:"VolumeAttributeName"`
  45091. // Checks whether you have the required permissions for the action, without
  45092. // actually making the request, and provides an error response. If you have
  45093. // the required permissions, the error response is DryRunOperation. Otherwise,
  45094. // it is UnauthorizedOperation.
  45095. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45096. // The ID of the volume.
  45097. //
  45098. // VolumeId is a required field
  45099. VolumeId *string `type:"string" required:"true"`
  45100. }
  45101. // String returns the string representation
  45102. func (s DescribeVolumeAttributeInput) String() string {
  45103. return awsutil.Prettify(s)
  45104. }
  45105. // GoString returns the string representation
  45106. func (s DescribeVolumeAttributeInput) GoString() string {
  45107. return s.String()
  45108. }
  45109. // Validate inspects the fields of the type to determine if they are valid.
  45110. func (s *DescribeVolumeAttributeInput) Validate() error {
  45111. invalidParams := request.ErrInvalidParams{Context: "DescribeVolumeAttributeInput"}
  45112. if s.Attribute == nil {
  45113. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  45114. }
  45115. if s.VolumeId == nil {
  45116. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  45117. }
  45118. if invalidParams.Len() > 0 {
  45119. return invalidParams
  45120. }
  45121. return nil
  45122. }
  45123. // SetAttribute sets the Attribute field's value.
  45124. func (s *DescribeVolumeAttributeInput) SetAttribute(v string) *DescribeVolumeAttributeInput {
  45125. s.Attribute = &v
  45126. return s
  45127. }
  45128. // SetDryRun sets the DryRun field's value.
  45129. func (s *DescribeVolumeAttributeInput) SetDryRun(v bool) *DescribeVolumeAttributeInput {
  45130. s.DryRun = &v
  45131. return s
  45132. }
  45133. // SetVolumeId sets the VolumeId field's value.
  45134. func (s *DescribeVolumeAttributeInput) SetVolumeId(v string) *DescribeVolumeAttributeInput {
  45135. s.VolumeId = &v
  45136. return s
  45137. }
  45138. // Contains the output of DescribeVolumeAttribute.
  45139. type DescribeVolumeAttributeOutput struct {
  45140. _ struct{} `type:"structure"`
  45141. // The state of autoEnableIO attribute.
  45142. AutoEnableIO *AttributeBooleanValue `locationName:"autoEnableIO" type:"structure"`
  45143. // A list of product codes.
  45144. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  45145. // The ID of the volume.
  45146. VolumeId *string `locationName:"volumeId" type:"string"`
  45147. }
  45148. // String returns the string representation
  45149. func (s DescribeVolumeAttributeOutput) String() string {
  45150. return awsutil.Prettify(s)
  45151. }
  45152. // GoString returns the string representation
  45153. func (s DescribeVolumeAttributeOutput) GoString() string {
  45154. return s.String()
  45155. }
  45156. // SetAutoEnableIO sets the AutoEnableIO field's value.
  45157. func (s *DescribeVolumeAttributeOutput) SetAutoEnableIO(v *AttributeBooleanValue) *DescribeVolumeAttributeOutput {
  45158. s.AutoEnableIO = v
  45159. return s
  45160. }
  45161. // SetProductCodes sets the ProductCodes field's value.
  45162. func (s *DescribeVolumeAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeVolumeAttributeOutput {
  45163. s.ProductCodes = v
  45164. return s
  45165. }
  45166. // SetVolumeId sets the VolumeId field's value.
  45167. func (s *DescribeVolumeAttributeOutput) SetVolumeId(v string) *DescribeVolumeAttributeOutput {
  45168. s.VolumeId = &v
  45169. return s
  45170. }
  45171. // Contains the parameters for DescribeVolumeStatus.
  45172. type DescribeVolumeStatusInput struct {
  45173. _ struct{} `type:"structure"`
  45174. // Checks whether you have the required permissions for the action, without
  45175. // actually making the request, and provides an error response. If you have
  45176. // the required permissions, the error response is DryRunOperation. Otherwise,
  45177. // it is UnauthorizedOperation.
  45178. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45179. // One or more filters.
  45180. //
  45181. // * action.code - The action code for the event (for example, enable-volume-io).
  45182. //
  45183. // * action.description - A description of the action.
  45184. //
  45185. // * action.event-id - The event ID associated with the action.
  45186. //
  45187. // * availability-zone - The Availability Zone of the instance.
  45188. //
  45189. // * event.description - A description of the event.
  45190. //
  45191. // * event.event-id - The event ID.
  45192. //
  45193. // * event.event-type - The event type (for io-enabled: passed | failed;
  45194. // for io-performance: io-performance:degraded | io-performance:severely-degraded
  45195. // | io-performance:stalled).
  45196. //
  45197. // * event.not-after - The latest end time for the event.
  45198. //
  45199. // * event.not-before - The earliest start time for the event.
  45200. //
  45201. // * volume-status.details-name - The cause for volume-status.status (io-enabled
  45202. // | io-performance).
  45203. //
  45204. // * volume-status.details-status - The status of volume-status.details-name
  45205. // (for io-enabled: passed | failed; for io-performance: normal | degraded
  45206. // | severely-degraded | stalled).
  45207. //
  45208. // * volume-status.status - The status of the volume (ok | impaired | warning
  45209. // | insufficient-data).
  45210. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45211. // The maximum number of volume results returned by DescribeVolumeStatus in
  45212. // paginated output. When this parameter is used, the request only returns MaxResults
  45213. // results in a single page along with a NextToken response element. The remaining
  45214. // results of the initial request can be seen by sending another request with
  45215. // the returned NextToken value. This value can be between 5 and 1000; if MaxResults
  45216. // is given a value larger than 1000, only 1000 results are returned. If this
  45217. // parameter is not used, then DescribeVolumeStatus returns all results. You
  45218. // cannot specify this parameter and the volume IDs parameter in the same request.
  45219. MaxResults *int64 `type:"integer"`
  45220. // The NextToken value to include in a future DescribeVolumeStatus request.
  45221. // When the results of the request exceed MaxResults, this value can be used
  45222. // to retrieve the next page of results. This value is null when there are no
  45223. // more results to return.
  45224. NextToken *string `type:"string"`
  45225. // One or more volume IDs.
  45226. //
  45227. // Default: Describes all your volumes.
  45228. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  45229. }
  45230. // String returns the string representation
  45231. func (s DescribeVolumeStatusInput) String() string {
  45232. return awsutil.Prettify(s)
  45233. }
  45234. // GoString returns the string representation
  45235. func (s DescribeVolumeStatusInput) GoString() string {
  45236. return s.String()
  45237. }
  45238. // SetDryRun sets the DryRun field's value.
  45239. func (s *DescribeVolumeStatusInput) SetDryRun(v bool) *DescribeVolumeStatusInput {
  45240. s.DryRun = &v
  45241. return s
  45242. }
  45243. // SetFilters sets the Filters field's value.
  45244. func (s *DescribeVolumeStatusInput) SetFilters(v []*Filter) *DescribeVolumeStatusInput {
  45245. s.Filters = v
  45246. return s
  45247. }
  45248. // SetMaxResults sets the MaxResults field's value.
  45249. func (s *DescribeVolumeStatusInput) SetMaxResults(v int64) *DescribeVolumeStatusInput {
  45250. s.MaxResults = &v
  45251. return s
  45252. }
  45253. // SetNextToken sets the NextToken field's value.
  45254. func (s *DescribeVolumeStatusInput) SetNextToken(v string) *DescribeVolumeStatusInput {
  45255. s.NextToken = &v
  45256. return s
  45257. }
  45258. // SetVolumeIds sets the VolumeIds field's value.
  45259. func (s *DescribeVolumeStatusInput) SetVolumeIds(v []*string) *DescribeVolumeStatusInput {
  45260. s.VolumeIds = v
  45261. return s
  45262. }
  45263. // Contains the output of DescribeVolumeStatus.
  45264. type DescribeVolumeStatusOutput struct {
  45265. _ struct{} `type:"structure"`
  45266. // The token to use to retrieve the next page of results. This value is null
  45267. // when there are no more results to return.
  45268. NextToken *string `locationName:"nextToken" type:"string"`
  45269. // A list of volumes.
  45270. VolumeStatuses []*VolumeStatusItem `locationName:"volumeStatusSet" locationNameList:"item" type:"list"`
  45271. }
  45272. // String returns the string representation
  45273. func (s DescribeVolumeStatusOutput) String() string {
  45274. return awsutil.Prettify(s)
  45275. }
  45276. // GoString returns the string representation
  45277. func (s DescribeVolumeStatusOutput) GoString() string {
  45278. return s.String()
  45279. }
  45280. // SetNextToken sets the NextToken field's value.
  45281. func (s *DescribeVolumeStatusOutput) SetNextToken(v string) *DescribeVolumeStatusOutput {
  45282. s.NextToken = &v
  45283. return s
  45284. }
  45285. // SetVolumeStatuses sets the VolumeStatuses field's value.
  45286. func (s *DescribeVolumeStatusOutput) SetVolumeStatuses(v []*VolumeStatusItem) *DescribeVolumeStatusOutput {
  45287. s.VolumeStatuses = v
  45288. return s
  45289. }
  45290. // Contains the parameters for DescribeVolumes.
  45291. type DescribeVolumesInput struct {
  45292. _ struct{} `type:"structure"`
  45293. // Checks whether you have the required permissions for the action, without
  45294. // actually making the request, and provides an error response. If you have
  45295. // the required permissions, the error response is DryRunOperation. Otherwise,
  45296. // it is UnauthorizedOperation.
  45297. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45298. // One or more filters.
  45299. //
  45300. // * attachment.attach-time - The time stamp when the attachment initiated.
  45301. //
  45302. // * attachment.delete-on-termination - Whether the volume is deleted on
  45303. // instance termination.
  45304. //
  45305. // * attachment.device - The device name specified in the block device mapping
  45306. // (for example, /dev/sda1).
  45307. //
  45308. // * attachment.instance-id - The ID of the instance the volume is attached
  45309. // to.
  45310. //
  45311. // * attachment.status - The attachment state (attaching | attached | detaching).
  45312. //
  45313. // * availability-zone - The Availability Zone in which the volume was created.
  45314. //
  45315. // * create-time - The time stamp when the volume was created.
  45316. //
  45317. // * encrypted - The encryption status of the volume.
  45318. //
  45319. // * size - The size of the volume, in GiB.
  45320. //
  45321. // * snapshot-id - The snapshot from which the volume was created.
  45322. //
  45323. // * status - The status of the volume (creating | available | in-use | deleting
  45324. // | deleted | error).
  45325. //
  45326. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  45327. // Use the tag key in the filter name and the tag value as the filter value.
  45328. // For example, to find all resources that have a tag with the key Owner
  45329. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  45330. // the filter value.
  45331. //
  45332. // * tag-key - The key of a tag assigned to the resource. Use this filter
  45333. // to find all resources assigned a tag with a specific key, regardless of
  45334. // the tag value.
  45335. //
  45336. // * volume-id - The volume ID.
  45337. //
  45338. // * volume-type - The Amazon EBS volume type. This can be gp2 for General
  45339. // Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized
  45340. // HDD, sc1 for Cold HDD, or standard for Magnetic volumes.
  45341. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45342. // The maximum number of volume results returned by DescribeVolumes in paginated
  45343. // output. When this parameter is used, DescribeVolumes only returns MaxResults
  45344. // results in a single page along with a NextToken response element. The remaining
  45345. // results of the initial request can be seen by sending another DescribeVolumes
  45346. // request with the returned NextToken value. This value can be between 5 and
  45347. // 500; if MaxResults is given a value larger than 500, only 500 results are
  45348. // returned. If this parameter is not used, then DescribeVolumes returns all
  45349. // results. You cannot specify this parameter and the volume IDs parameter in
  45350. // the same request.
  45351. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  45352. // The NextToken value returned from a previous paginated DescribeVolumes request
  45353. // where MaxResults was used and the results exceeded the value of that parameter.
  45354. // Pagination continues from the end of the previous results that returned the
  45355. // NextToken value. This value is null when there are no more results to return.
  45356. NextToken *string `locationName:"nextToken" type:"string"`
  45357. // One or more volume IDs.
  45358. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  45359. }
  45360. // String returns the string representation
  45361. func (s DescribeVolumesInput) String() string {
  45362. return awsutil.Prettify(s)
  45363. }
  45364. // GoString returns the string representation
  45365. func (s DescribeVolumesInput) GoString() string {
  45366. return s.String()
  45367. }
  45368. // SetDryRun sets the DryRun field's value.
  45369. func (s *DescribeVolumesInput) SetDryRun(v bool) *DescribeVolumesInput {
  45370. s.DryRun = &v
  45371. return s
  45372. }
  45373. // SetFilters sets the Filters field's value.
  45374. func (s *DescribeVolumesInput) SetFilters(v []*Filter) *DescribeVolumesInput {
  45375. s.Filters = v
  45376. return s
  45377. }
  45378. // SetMaxResults sets the MaxResults field's value.
  45379. func (s *DescribeVolumesInput) SetMaxResults(v int64) *DescribeVolumesInput {
  45380. s.MaxResults = &v
  45381. return s
  45382. }
  45383. // SetNextToken sets the NextToken field's value.
  45384. func (s *DescribeVolumesInput) SetNextToken(v string) *DescribeVolumesInput {
  45385. s.NextToken = &v
  45386. return s
  45387. }
  45388. // SetVolumeIds sets the VolumeIds field's value.
  45389. func (s *DescribeVolumesInput) SetVolumeIds(v []*string) *DescribeVolumesInput {
  45390. s.VolumeIds = v
  45391. return s
  45392. }
  45393. type DescribeVolumesModificationsInput struct {
  45394. _ struct{} `type:"structure"`
  45395. // Checks whether you have the required permissions for the action, without
  45396. // actually making the request, and provides an error response. If you have
  45397. // the required permissions, the error response is DryRunOperation. Otherwise,
  45398. // it is UnauthorizedOperation.
  45399. DryRun *bool `type:"boolean"`
  45400. // One or more filters. Supported filters: volume-id, modification-state, target-size,
  45401. // target-iops, target-volume-type, original-size, original-iops, original-volume-type,
  45402. // start-time.
  45403. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45404. // The maximum number of results (up to a limit of 500) to be returned in a
  45405. // paginated request.
  45406. MaxResults *int64 `type:"integer"`
  45407. // The nextToken value returned by a previous paginated request.
  45408. NextToken *string `type:"string"`
  45409. // One or more volume IDs for which in-progress modifications will be described.
  45410. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  45411. }
  45412. // String returns the string representation
  45413. func (s DescribeVolumesModificationsInput) String() string {
  45414. return awsutil.Prettify(s)
  45415. }
  45416. // GoString returns the string representation
  45417. func (s DescribeVolumesModificationsInput) GoString() string {
  45418. return s.String()
  45419. }
  45420. // SetDryRun sets the DryRun field's value.
  45421. func (s *DescribeVolumesModificationsInput) SetDryRun(v bool) *DescribeVolumesModificationsInput {
  45422. s.DryRun = &v
  45423. return s
  45424. }
  45425. // SetFilters sets the Filters field's value.
  45426. func (s *DescribeVolumesModificationsInput) SetFilters(v []*Filter) *DescribeVolumesModificationsInput {
  45427. s.Filters = v
  45428. return s
  45429. }
  45430. // SetMaxResults sets the MaxResults field's value.
  45431. func (s *DescribeVolumesModificationsInput) SetMaxResults(v int64) *DescribeVolumesModificationsInput {
  45432. s.MaxResults = &v
  45433. return s
  45434. }
  45435. // SetNextToken sets the NextToken field's value.
  45436. func (s *DescribeVolumesModificationsInput) SetNextToken(v string) *DescribeVolumesModificationsInput {
  45437. s.NextToken = &v
  45438. return s
  45439. }
  45440. // SetVolumeIds sets the VolumeIds field's value.
  45441. func (s *DescribeVolumesModificationsInput) SetVolumeIds(v []*string) *DescribeVolumesModificationsInput {
  45442. s.VolumeIds = v
  45443. return s
  45444. }
  45445. type DescribeVolumesModificationsOutput struct {
  45446. _ struct{} `type:"structure"`
  45447. // Token for pagination, null if there are no more results
  45448. NextToken *string `locationName:"nextToken" type:"string"`
  45449. // A list of returned VolumeModification objects.
  45450. VolumesModifications []*VolumeModification `locationName:"volumeModificationSet" locationNameList:"item" type:"list"`
  45451. }
  45452. // String returns the string representation
  45453. func (s DescribeVolumesModificationsOutput) String() string {
  45454. return awsutil.Prettify(s)
  45455. }
  45456. // GoString returns the string representation
  45457. func (s DescribeVolumesModificationsOutput) GoString() string {
  45458. return s.String()
  45459. }
  45460. // SetNextToken sets the NextToken field's value.
  45461. func (s *DescribeVolumesModificationsOutput) SetNextToken(v string) *DescribeVolumesModificationsOutput {
  45462. s.NextToken = &v
  45463. return s
  45464. }
  45465. // SetVolumesModifications sets the VolumesModifications field's value.
  45466. func (s *DescribeVolumesModificationsOutput) SetVolumesModifications(v []*VolumeModification) *DescribeVolumesModificationsOutput {
  45467. s.VolumesModifications = v
  45468. return s
  45469. }
  45470. // Contains the output of DescribeVolumes.
  45471. type DescribeVolumesOutput struct {
  45472. _ struct{} `type:"structure"`
  45473. // The NextToken value to include in a future DescribeVolumes request. When
  45474. // the results of a DescribeVolumes request exceed MaxResults, this value can
  45475. // be used to retrieve the next page of results. This value is null when there
  45476. // are no more results to return.
  45477. NextToken *string `locationName:"nextToken" type:"string"`
  45478. // Information about the volumes.
  45479. Volumes []*Volume `locationName:"volumeSet" locationNameList:"item" type:"list"`
  45480. }
  45481. // String returns the string representation
  45482. func (s DescribeVolumesOutput) String() string {
  45483. return awsutil.Prettify(s)
  45484. }
  45485. // GoString returns the string representation
  45486. func (s DescribeVolumesOutput) GoString() string {
  45487. return s.String()
  45488. }
  45489. // SetNextToken sets the NextToken field's value.
  45490. func (s *DescribeVolumesOutput) SetNextToken(v string) *DescribeVolumesOutput {
  45491. s.NextToken = &v
  45492. return s
  45493. }
  45494. // SetVolumes sets the Volumes field's value.
  45495. func (s *DescribeVolumesOutput) SetVolumes(v []*Volume) *DescribeVolumesOutput {
  45496. s.Volumes = v
  45497. return s
  45498. }
  45499. type DescribeVpcAttributeInput struct {
  45500. _ struct{} `type:"structure"`
  45501. // The VPC attribute.
  45502. //
  45503. // Attribute is a required field
  45504. Attribute *string `type:"string" required:"true" enum:"VpcAttributeName"`
  45505. // Checks whether you have the required permissions for the action, without
  45506. // actually making the request, and provides an error response. If you have
  45507. // the required permissions, the error response is DryRunOperation. Otherwise,
  45508. // it is UnauthorizedOperation.
  45509. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45510. // The ID of the VPC.
  45511. //
  45512. // VpcId is a required field
  45513. VpcId *string `type:"string" required:"true"`
  45514. }
  45515. // String returns the string representation
  45516. func (s DescribeVpcAttributeInput) String() string {
  45517. return awsutil.Prettify(s)
  45518. }
  45519. // GoString returns the string representation
  45520. func (s DescribeVpcAttributeInput) GoString() string {
  45521. return s.String()
  45522. }
  45523. // Validate inspects the fields of the type to determine if they are valid.
  45524. func (s *DescribeVpcAttributeInput) Validate() error {
  45525. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcAttributeInput"}
  45526. if s.Attribute == nil {
  45527. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  45528. }
  45529. if s.VpcId == nil {
  45530. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  45531. }
  45532. if invalidParams.Len() > 0 {
  45533. return invalidParams
  45534. }
  45535. return nil
  45536. }
  45537. // SetAttribute sets the Attribute field's value.
  45538. func (s *DescribeVpcAttributeInput) SetAttribute(v string) *DescribeVpcAttributeInput {
  45539. s.Attribute = &v
  45540. return s
  45541. }
  45542. // SetDryRun sets the DryRun field's value.
  45543. func (s *DescribeVpcAttributeInput) SetDryRun(v bool) *DescribeVpcAttributeInput {
  45544. s.DryRun = &v
  45545. return s
  45546. }
  45547. // SetVpcId sets the VpcId field's value.
  45548. func (s *DescribeVpcAttributeInput) SetVpcId(v string) *DescribeVpcAttributeInput {
  45549. s.VpcId = &v
  45550. return s
  45551. }
  45552. type DescribeVpcAttributeOutput struct {
  45553. _ struct{} `type:"structure"`
  45554. // Indicates whether the instances launched in the VPC get DNS hostnames. If
  45555. // this attribute is true, instances in the VPC get DNS hostnames; otherwise,
  45556. // they do not.
  45557. EnableDnsHostnames *AttributeBooleanValue `locationName:"enableDnsHostnames" type:"structure"`
  45558. // Indicates whether DNS resolution is enabled for the VPC. If this attribute
  45559. // is true, the Amazon DNS server resolves DNS hostnames for your instances
  45560. // to their corresponding IP addresses; otherwise, it does not.
  45561. EnableDnsSupport *AttributeBooleanValue `locationName:"enableDnsSupport" type:"structure"`
  45562. // The ID of the VPC.
  45563. VpcId *string `locationName:"vpcId" type:"string"`
  45564. }
  45565. // String returns the string representation
  45566. func (s DescribeVpcAttributeOutput) String() string {
  45567. return awsutil.Prettify(s)
  45568. }
  45569. // GoString returns the string representation
  45570. func (s DescribeVpcAttributeOutput) GoString() string {
  45571. return s.String()
  45572. }
  45573. // SetEnableDnsHostnames sets the EnableDnsHostnames field's value.
  45574. func (s *DescribeVpcAttributeOutput) SetEnableDnsHostnames(v *AttributeBooleanValue) *DescribeVpcAttributeOutput {
  45575. s.EnableDnsHostnames = v
  45576. return s
  45577. }
  45578. // SetEnableDnsSupport sets the EnableDnsSupport field's value.
  45579. func (s *DescribeVpcAttributeOutput) SetEnableDnsSupport(v *AttributeBooleanValue) *DescribeVpcAttributeOutput {
  45580. s.EnableDnsSupport = v
  45581. return s
  45582. }
  45583. // SetVpcId sets the VpcId field's value.
  45584. func (s *DescribeVpcAttributeOutput) SetVpcId(v string) *DescribeVpcAttributeOutput {
  45585. s.VpcId = &v
  45586. return s
  45587. }
  45588. type DescribeVpcClassicLinkDnsSupportInput struct {
  45589. _ struct{} `type:"structure"`
  45590. // The maximum number of items to return for this request. The request returns
  45591. // a token that you can specify in a subsequent call to get the next set of
  45592. // results.
  45593. MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`
  45594. // The token for the next set of items to return. (You received this token from
  45595. // a prior call.)
  45596. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  45597. // One or more VPC IDs.
  45598. VpcIds []*string `locationNameList:"VpcId" type:"list"`
  45599. }
  45600. // String returns the string representation
  45601. func (s DescribeVpcClassicLinkDnsSupportInput) String() string {
  45602. return awsutil.Prettify(s)
  45603. }
  45604. // GoString returns the string representation
  45605. func (s DescribeVpcClassicLinkDnsSupportInput) GoString() string {
  45606. return s.String()
  45607. }
  45608. // Validate inspects the fields of the type to determine if they are valid.
  45609. func (s *DescribeVpcClassicLinkDnsSupportInput) Validate() error {
  45610. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcClassicLinkDnsSupportInput"}
  45611. if s.MaxResults != nil && *s.MaxResults < 5 {
  45612. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  45613. }
  45614. if s.NextToken != nil && len(*s.NextToken) < 1 {
  45615. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  45616. }
  45617. if invalidParams.Len() > 0 {
  45618. return invalidParams
  45619. }
  45620. return nil
  45621. }
  45622. // SetMaxResults sets the MaxResults field's value.
  45623. func (s *DescribeVpcClassicLinkDnsSupportInput) SetMaxResults(v int64) *DescribeVpcClassicLinkDnsSupportInput {
  45624. s.MaxResults = &v
  45625. return s
  45626. }
  45627. // SetNextToken sets the NextToken field's value.
  45628. func (s *DescribeVpcClassicLinkDnsSupportInput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportInput {
  45629. s.NextToken = &v
  45630. return s
  45631. }
  45632. // SetVpcIds sets the VpcIds field's value.
  45633. func (s *DescribeVpcClassicLinkDnsSupportInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkDnsSupportInput {
  45634. s.VpcIds = v
  45635. return s
  45636. }
  45637. type DescribeVpcClassicLinkDnsSupportOutput struct {
  45638. _ struct{} `type:"structure"`
  45639. // The token to use when requesting the next set of items.
  45640. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  45641. // Information about the ClassicLink DNS support status of the VPCs.
  45642. Vpcs []*ClassicLinkDnsSupport `locationName:"vpcs" locationNameList:"item" type:"list"`
  45643. }
  45644. // String returns the string representation
  45645. func (s DescribeVpcClassicLinkDnsSupportOutput) String() string {
  45646. return awsutil.Prettify(s)
  45647. }
  45648. // GoString returns the string representation
  45649. func (s DescribeVpcClassicLinkDnsSupportOutput) GoString() string {
  45650. return s.String()
  45651. }
  45652. // SetNextToken sets the NextToken field's value.
  45653. func (s *DescribeVpcClassicLinkDnsSupportOutput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportOutput {
  45654. s.NextToken = &v
  45655. return s
  45656. }
  45657. // SetVpcs sets the Vpcs field's value.
  45658. func (s *DescribeVpcClassicLinkDnsSupportOutput) SetVpcs(v []*ClassicLinkDnsSupport) *DescribeVpcClassicLinkDnsSupportOutput {
  45659. s.Vpcs = v
  45660. return s
  45661. }
  45662. type DescribeVpcClassicLinkInput struct {
  45663. _ struct{} `type:"structure"`
  45664. // Checks whether you have the required permissions for the action, without
  45665. // actually making the request, and provides an error response. If you have
  45666. // the required permissions, the error response is DryRunOperation. Otherwise,
  45667. // it is UnauthorizedOperation.
  45668. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45669. // One or more filters.
  45670. //
  45671. // * is-classic-link-enabled - Whether the VPC is enabled for ClassicLink
  45672. // (true | false).
  45673. //
  45674. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  45675. // Use the tag key in the filter name and the tag value as the filter value.
  45676. // For example, to find all resources that have a tag with the key Owner
  45677. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  45678. // the filter value.
  45679. //
  45680. // * tag-key - The key of a tag assigned to the resource. Use this filter
  45681. // to find all resources assigned a tag with a specific key, regardless of
  45682. // the tag value.
  45683. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45684. // One or more VPCs for which you want to describe the ClassicLink status.
  45685. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
  45686. }
  45687. // String returns the string representation
  45688. func (s DescribeVpcClassicLinkInput) String() string {
  45689. return awsutil.Prettify(s)
  45690. }
  45691. // GoString returns the string representation
  45692. func (s DescribeVpcClassicLinkInput) GoString() string {
  45693. return s.String()
  45694. }
  45695. // SetDryRun sets the DryRun field's value.
  45696. func (s *DescribeVpcClassicLinkInput) SetDryRun(v bool) *DescribeVpcClassicLinkInput {
  45697. s.DryRun = &v
  45698. return s
  45699. }
  45700. // SetFilters sets the Filters field's value.
  45701. func (s *DescribeVpcClassicLinkInput) SetFilters(v []*Filter) *DescribeVpcClassicLinkInput {
  45702. s.Filters = v
  45703. return s
  45704. }
  45705. // SetVpcIds sets the VpcIds field's value.
  45706. func (s *DescribeVpcClassicLinkInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkInput {
  45707. s.VpcIds = v
  45708. return s
  45709. }
  45710. type DescribeVpcClassicLinkOutput struct {
  45711. _ struct{} `type:"structure"`
  45712. // The ClassicLink status of one or more VPCs.
  45713. Vpcs []*VpcClassicLink `locationName:"vpcSet" locationNameList:"item" type:"list"`
  45714. }
  45715. // String returns the string representation
  45716. func (s DescribeVpcClassicLinkOutput) String() string {
  45717. return awsutil.Prettify(s)
  45718. }
  45719. // GoString returns the string representation
  45720. func (s DescribeVpcClassicLinkOutput) GoString() string {
  45721. return s.String()
  45722. }
  45723. // SetVpcs sets the Vpcs field's value.
  45724. func (s *DescribeVpcClassicLinkOutput) SetVpcs(v []*VpcClassicLink) *DescribeVpcClassicLinkOutput {
  45725. s.Vpcs = v
  45726. return s
  45727. }
  45728. type DescribeVpcEndpointConnectionNotificationsInput struct {
  45729. _ struct{} `type:"structure"`
  45730. // The ID of the notification.
  45731. ConnectionNotificationId *string `type:"string"`
  45732. // Checks whether you have the required permissions for the action, without
  45733. // actually making the request, and provides an error response. If you have
  45734. // the required permissions, the error response is DryRunOperation. Otherwise,
  45735. // it is UnauthorizedOperation.
  45736. DryRun *bool `type:"boolean"`
  45737. // One or more filters.
  45738. //
  45739. // * connection-notification-arn - The ARN of SNS topic for the notification.
  45740. //
  45741. // * connection-notification-id - The ID of the notification.
  45742. //
  45743. // * connection-notification-state - The state of the notification (Enabled
  45744. // | Disabled).
  45745. //
  45746. // * connection-notification-type - The type of notification (Topic).
  45747. //
  45748. // * service-id - The ID of the endpoint service.
  45749. //
  45750. // * vpc-endpoint-id - The ID of the VPC endpoint.
  45751. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45752. // The maximum number of results to return in a single call. To retrieve the
  45753. // remaining results, make another request with the returned NextToken value.
  45754. MaxResults *int64 `type:"integer"`
  45755. // The token to request the next page of results.
  45756. NextToken *string `type:"string"`
  45757. }
  45758. // String returns the string representation
  45759. func (s DescribeVpcEndpointConnectionNotificationsInput) String() string {
  45760. return awsutil.Prettify(s)
  45761. }
  45762. // GoString returns the string representation
  45763. func (s DescribeVpcEndpointConnectionNotificationsInput) GoString() string {
  45764. return s.String()
  45765. }
  45766. // SetConnectionNotificationId sets the ConnectionNotificationId field's value.
  45767. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetConnectionNotificationId(v string) *DescribeVpcEndpointConnectionNotificationsInput {
  45768. s.ConnectionNotificationId = &v
  45769. return s
  45770. }
  45771. // SetDryRun sets the DryRun field's value.
  45772. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetDryRun(v bool) *DescribeVpcEndpointConnectionNotificationsInput {
  45773. s.DryRun = &v
  45774. return s
  45775. }
  45776. // SetFilters sets the Filters field's value.
  45777. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetFilters(v []*Filter) *DescribeVpcEndpointConnectionNotificationsInput {
  45778. s.Filters = v
  45779. return s
  45780. }
  45781. // SetMaxResults sets the MaxResults field's value.
  45782. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetMaxResults(v int64) *DescribeVpcEndpointConnectionNotificationsInput {
  45783. s.MaxResults = &v
  45784. return s
  45785. }
  45786. // SetNextToken sets the NextToken field's value.
  45787. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetNextToken(v string) *DescribeVpcEndpointConnectionNotificationsInput {
  45788. s.NextToken = &v
  45789. return s
  45790. }
  45791. type DescribeVpcEndpointConnectionNotificationsOutput struct {
  45792. _ struct{} `type:"structure"`
  45793. // One or more notifications.
  45794. ConnectionNotificationSet []*ConnectionNotification `locationName:"connectionNotificationSet" locationNameList:"item" type:"list"`
  45795. // The token to use to retrieve the next page of results. This value is null
  45796. // when there are no more results to return.
  45797. NextToken *string `locationName:"nextToken" type:"string"`
  45798. }
  45799. // String returns the string representation
  45800. func (s DescribeVpcEndpointConnectionNotificationsOutput) String() string {
  45801. return awsutil.Prettify(s)
  45802. }
  45803. // GoString returns the string representation
  45804. func (s DescribeVpcEndpointConnectionNotificationsOutput) GoString() string {
  45805. return s.String()
  45806. }
  45807. // SetConnectionNotificationSet sets the ConnectionNotificationSet field's value.
  45808. func (s *DescribeVpcEndpointConnectionNotificationsOutput) SetConnectionNotificationSet(v []*ConnectionNotification) *DescribeVpcEndpointConnectionNotificationsOutput {
  45809. s.ConnectionNotificationSet = v
  45810. return s
  45811. }
  45812. // SetNextToken sets the NextToken field's value.
  45813. func (s *DescribeVpcEndpointConnectionNotificationsOutput) SetNextToken(v string) *DescribeVpcEndpointConnectionNotificationsOutput {
  45814. s.NextToken = &v
  45815. return s
  45816. }
  45817. type DescribeVpcEndpointConnectionsInput struct {
  45818. _ struct{} `type:"structure"`
  45819. // Checks whether you have the required permissions for the action, without
  45820. // actually making the request, and provides an error response. If you have
  45821. // the required permissions, the error response is DryRunOperation. Otherwise,
  45822. // it is UnauthorizedOperation.
  45823. DryRun *bool `type:"boolean"`
  45824. // One or more filters.
  45825. //
  45826. // * service-id - The ID of the service.
  45827. //
  45828. // * vpc-endpoint-owner - The AWS account number of the owner of the endpoint.
  45829. //
  45830. // * vpc-endpoint-state - The state of the endpoint (pendingAcceptance |
  45831. // pending | available | deleting | deleted | rejected | failed).
  45832. //
  45833. // * vpc-endpoint-id - The ID of the endpoint.
  45834. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45835. // The maximum number of results to return for the request in a single page.
  45836. // The remaining results of the initial request can be seen by sending another
  45837. // request with the returned NextToken value. This value can be between 5 and
  45838. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  45839. // are returned.
  45840. MaxResults *int64 `type:"integer"`
  45841. // The token to retrieve the next page of results.
  45842. NextToken *string `type:"string"`
  45843. }
  45844. // String returns the string representation
  45845. func (s DescribeVpcEndpointConnectionsInput) String() string {
  45846. return awsutil.Prettify(s)
  45847. }
  45848. // GoString returns the string representation
  45849. func (s DescribeVpcEndpointConnectionsInput) GoString() string {
  45850. return s.String()
  45851. }
  45852. // SetDryRun sets the DryRun field's value.
  45853. func (s *DescribeVpcEndpointConnectionsInput) SetDryRun(v bool) *DescribeVpcEndpointConnectionsInput {
  45854. s.DryRun = &v
  45855. return s
  45856. }
  45857. // SetFilters sets the Filters field's value.
  45858. func (s *DescribeVpcEndpointConnectionsInput) SetFilters(v []*Filter) *DescribeVpcEndpointConnectionsInput {
  45859. s.Filters = v
  45860. return s
  45861. }
  45862. // SetMaxResults sets the MaxResults field's value.
  45863. func (s *DescribeVpcEndpointConnectionsInput) SetMaxResults(v int64) *DescribeVpcEndpointConnectionsInput {
  45864. s.MaxResults = &v
  45865. return s
  45866. }
  45867. // SetNextToken sets the NextToken field's value.
  45868. func (s *DescribeVpcEndpointConnectionsInput) SetNextToken(v string) *DescribeVpcEndpointConnectionsInput {
  45869. s.NextToken = &v
  45870. return s
  45871. }
  45872. type DescribeVpcEndpointConnectionsOutput struct {
  45873. _ struct{} `type:"structure"`
  45874. // The token to use to retrieve the next page of results. This value is null
  45875. // when there are no more results to return.
  45876. NextToken *string `locationName:"nextToken" type:"string"`
  45877. // Information about one or more VPC endpoint connections.
  45878. VpcEndpointConnections []*VpcEndpointConnection `locationName:"vpcEndpointConnectionSet" locationNameList:"item" type:"list"`
  45879. }
  45880. // String returns the string representation
  45881. func (s DescribeVpcEndpointConnectionsOutput) String() string {
  45882. return awsutil.Prettify(s)
  45883. }
  45884. // GoString returns the string representation
  45885. func (s DescribeVpcEndpointConnectionsOutput) GoString() string {
  45886. return s.String()
  45887. }
  45888. // SetNextToken sets the NextToken field's value.
  45889. func (s *DescribeVpcEndpointConnectionsOutput) SetNextToken(v string) *DescribeVpcEndpointConnectionsOutput {
  45890. s.NextToken = &v
  45891. return s
  45892. }
  45893. // SetVpcEndpointConnections sets the VpcEndpointConnections field's value.
  45894. func (s *DescribeVpcEndpointConnectionsOutput) SetVpcEndpointConnections(v []*VpcEndpointConnection) *DescribeVpcEndpointConnectionsOutput {
  45895. s.VpcEndpointConnections = v
  45896. return s
  45897. }
  45898. type DescribeVpcEndpointServiceConfigurationsInput struct {
  45899. _ struct{} `type:"structure"`
  45900. // Checks whether you have the required permissions for the action, without
  45901. // actually making the request, and provides an error response. If you have
  45902. // the required permissions, the error response is DryRunOperation. Otherwise,
  45903. // it is UnauthorizedOperation.
  45904. DryRun *bool `type:"boolean"`
  45905. // One or more filters.
  45906. //
  45907. // * service-name - The name of the service.
  45908. //
  45909. // * service-id - The ID of the service.
  45910. //
  45911. // * service-state - The state of the service (Pending | Available | Deleting
  45912. // | Deleted | Failed).
  45913. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45914. // The maximum number of results to return for the request in a single page.
  45915. // The remaining results of the initial request can be seen by sending another
  45916. // request with the returned NextToken value. This value can be between 5 and
  45917. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  45918. // are returned.
  45919. MaxResults *int64 `type:"integer"`
  45920. // The token to retrieve the next page of results.
  45921. NextToken *string `type:"string"`
  45922. // The IDs of one or more services.
  45923. ServiceIds []*string `locationName:"ServiceId" locationNameList:"item" type:"list"`
  45924. }
  45925. // String returns the string representation
  45926. func (s DescribeVpcEndpointServiceConfigurationsInput) String() string {
  45927. return awsutil.Prettify(s)
  45928. }
  45929. // GoString returns the string representation
  45930. func (s DescribeVpcEndpointServiceConfigurationsInput) GoString() string {
  45931. return s.String()
  45932. }
  45933. // SetDryRun sets the DryRun field's value.
  45934. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetDryRun(v bool) *DescribeVpcEndpointServiceConfigurationsInput {
  45935. s.DryRun = &v
  45936. return s
  45937. }
  45938. // SetFilters sets the Filters field's value.
  45939. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetFilters(v []*Filter) *DescribeVpcEndpointServiceConfigurationsInput {
  45940. s.Filters = v
  45941. return s
  45942. }
  45943. // SetMaxResults sets the MaxResults field's value.
  45944. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetMaxResults(v int64) *DescribeVpcEndpointServiceConfigurationsInput {
  45945. s.MaxResults = &v
  45946. return s
  45947. }
  45948. // SetNextToken sets the NextToken field's value.
  45949. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetNextToken(v string) *DescribeVpcEndpointServiceConfigurationsInput {
  45950. s.NextToken = &v
  45951. return s
  45952. }
  45953. // SetServiceIds sets the ServiceIds field's value.
  45954. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetServiceIds(v []*string) *DescribeVpcEndpointServiceConfigurationsInput {
  45955. s.ServiceIds = v
  45956. return s
  45957. }
  45958. type DescribeVpcEndpointServiceConfigurationsOutput struct {
  45959. _ struct{} `type:"structure"`
  45960. // The token to use to retrieve the next page of results. This value is null
  45961. // when there are no more results to return.
  45962. NextToken *string `locationName:"nextToken" type:"string"`
  45963. // Information about one or more services.
  45964. ServiceConfigurations []*ServiceConfiguration `locationName:"serviceConfigurationSet" locationNameList:"item" type:"list"`
  45965. }
  45966. // String returns the string representation
  45967. func (s DescribeVpcEndpointServiceConfigurationsOutput) String() string {
  45968. return awsutil.Prettify(s)
  45969. }
  45970. // GoString returns the string representation
  45971. func (s DescribeVpcEndpointServiceConfigurationsOutput) GoString() string {
  45972. return s.String()
  45973. }
  45974. // SetNextToken sets the NextToken field's value.
  45975. func (s *DescribeVpcEndpointServiceConfigurationsOutput) SetNextToken(v string) *DescribeVpcEndpointServiceConfigurationsOutput {
  45976. s.NextToken = &v
  45977. return s
  45978. }
  45979. // SetServiceConfigurations sets the ServiceConfigurations field's value.
  45980. func (s *DescribeVpcEndpointServiceConfigurationsOutput) SetServiceConfigurations(v []*ServiceConfiguration) *DescribeVpcEndpointServiceConfigurationsOutput {
  45981. s.ServiceConfigurations = v
  45982. return s
  45983. }
  45984. type DescribeVpcEndpointServicePermissionsInput struct {
  45985. _ struct{} `type:"structure"`
  45986. // Checks whether you have the required permissions for the action, without
  45987. // actually making the request, and provides an error response. If you have
  45988. // the required permissions, the error response is DryRunOperation. Otherwise,
  45989. // it is UnauthorizedOperation.
  45990. DryRun *bool `type:"boolean"`
  45991. // One or more filters.
  45992. //
  45993. // * principal - The ARN of the principal.
  45994. //
  45995. // * principal-type - The principal type (All | Service | OrganizationUnit
  45996. // | Account | User | Role).
  45997. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45998. // The maximum number of results to return for the request in a single page.
  45999. // The remaining results of the initial request can be seen by sending another
  46000. // request with the returned NextToken value. This value can be between 5 and
  46001. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  46002. // are returned.
  46003. MaxResults *int64 `type:"integer"`
  46004. // The token to retrieve the next page of results.
  46005. NextToken *string `type:"string"`
  46006. // The ID of the service.
  46007. //
  46008. // ServiceId is a required field
  46009. ServiceId *string `type:"string" required:"true"`
  46010. }
  46011. // String returns the string representation
  46012. func (s DescribeVpcEndpointServicePermissionsInput) String() string {
  46013. return awsutil.Prettify(s)
  46014. }
  46015. // GoString returns the string representation
  46016. func (s DescribeVpcEndpointServicePermissionsInput) GoString() string {
  46017. return s.String()
  46018. }
  46019. // Validate inspects the fields of the type to determine if they are valid.
  46020. func (s *DescribeVpcEndpointServicePermissionsInput) Validate() error {
  46021. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcEndpointServicePermissionsInput"}
  46022. if s.ServiceId == nil {
  46023. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  46024. }
  46025. if invalidParams.Len() > 0 {
  46026. return invalidParams
  46027. }
  46028. return nil
  46029. }
  46030. // SetDryRun sets the DryRun field's value.
  46031. func (s *DescribeVpcEndpointServicePermissionsInput) SetDryRun(v bool) *DescribeVpcEndpointServicePermissionsInput {
  46032. s.DryRun = &v
  46033. return s
  46034. }
  46035. // SetFilters sets the Filters field's value.
  46036. func (s *DescribeVpcEndpointServicePermissionsInput) SetFilters(v []*Filter) *DescribeVpcEndpointServicePermissionsInput {
  46037. s.Filters = v
  46038. return s
  46039. }
  46040. // SetMaxResults sets the MaxResults field's value.
  46041. func (s *DescribeVpcEndpointServicePermissionsInput) SetMaxResults(v int64) *DescribeVpcEndpointServicePermissionsInput {
  46042. s.MaxResults = &v
  46043. return s
  46044. }
  46045. // SetNextToken sets the NextToken field's value.
  46046. func (s *DescribeVpcEndpointServicePermissionsInput) SetNextToken(v string) *DescribeVpcEndpointServicePermissionsInput {
  46047. s.NextToken = &v
  46048. return s
  46049. }
  46050. // SetServiceId sets the ServiceId field's value.
  46051. func (s *DescribeVpcEndpointServicePermissionsInput) SetServiceId(v string) *DescribeVpcEndpointServicePermissionsInput {
  46052. s.ServiceId = &v
  46053. return s
  46054. }
  46055. type DescribeVpcEndpointServicePermissionsOutput struct {
  46056. _ struct{} `type:"structure"`
  46057. // Information about one or more allowed principals.
  46058. AllowedPrincipals []*AllowedPrincipal `locationName:"allowedPrincipals" locationNameList:"item" type:"list"`
  46059. // The token to use to retrieve the next page of results. This value is null
  46060. // when there are no more results to return.
  46061. NextToken *string `locationName:"nextToken" type:"string"`
  46062. }
  46063. // String returns the string representation
  46064. func (s DescribeVpcEndpointServicePermissionsOutput) String() string {
  46065. return awsutil.Prettify(s)
  46066. }
  46067. // GoString returns the string representation
  46068. func (s DescribeVpcEndpointServicePermissionsOutput) GoString() string {
  46069. return s.String()
  46070. }
  46071. // SetAllowedPrincipals sets the AllowedPrincipals field's value.
  46072. func (s *DescribeVpcEndpointServicePermissionsOutput) SetAllowedPrincipals(v []*AllowedPrincipal) *DescribeVpcEndpointServicePermissionsOutput {
  46073. s.AllowedPrincipals = v
  46074. return s
  46075. }
  46076. // SetNextToken sets the NextToken field's value.
  46077. func (s *DescribeVpcEndpointServicePermissionsOutput) SetNextToken(v string) *DescribeVpcEndpointServicePermissionsOutput {
  46078. s.NextToken = &v
  46079. return s
  46080. }
  46081. // Contains the parameters for DescribeVpcEndpointServices.
  46082. type DescribeVpcEndpointServicesInput struct {
  46083. _ struct{} `type:"structure"`
  46084. // Checks whether you have the required permissions for the action, without
  46085. // actually making the request, and provides an error response. If you have
  46086. // the required permissions, the error response is DryRunOperation. Otherwise,
  46087. // it is UnauthorizedOperation.
  46088. DryRun *bool `type:"boolean"`
  46089. // One or more filters.
  46090. //
  46091. // * service-name: The name of the service.
  46092. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  46093. // The maximum number of items to return for this request. The request returns
  46094. // a token that you can specify in a subsequent call to get the next set of
  46095. // results.
  46096. //
  46097. // Constraint: If the value is greater than 1000, we return only 1000 items.
  46098. MaxResults *int64 `type:"integer"`
  46099. // The token for the next set of items to return. (You received this token from
  46100. // a prior call.)
  46101. NextToken *string `type:"string"`
  46102. // One or more service names.
  46103. ServiceNames []*string `locationName:"ServiceName" locationNameList:"item" type:"list"`
  46104. }
  46105. // String returns the string representation
  46106. func (s DescribeVpcEndpointServicesInput) String() string {
  46107. return awsutil.Prettify(s)
  46108. }
  46109. // GoString returns the string representation
  46110. func (s DescribeVpcEndpointServicesInput) GoString() string {
  46111. return s.String()
  46112. }
  46113. // SetDryRun sets the DryRun field's value.
  46114. func (s *DescribeVpcEndpointServicesInput) SetDryRun(v bool) *DescribeVpcEndpointServicesInput {
  46115. s.DryRun = &v
  46116. return s
  46117. }
  46118. // SetFilters sets the Filters field's value.
  46119. func (s *DescribeVpcEndpointServicesInput) SetFilters(v []*Filter) *DescribeVpcEndpointServicesInput {
  46120. s.Filters = v
  46121. return s
  46122. }
  46123. // SetMaxResults sets the MaxResults field's value.
  46124. func (s *DescribeVpcEndpointServicesInput) SetMaxResults(v int64) *DescribeVpcEndpointServicesInput {
  46125. s.MaxResults = &v
  46126. return s
  46127. }
  46128. // SetNextToken sets the NextToken field's value.
  46129. func (s *DescribeVpcEndpointServicesInput) SetNextToken(v string) *DescribeVpcEndpointServicesInput {
  46130. s.NextToken = &v
  46131. return s
  46132. }
  46133. // SetServiceNames sets the ServiceNames field's value.
  46134. func (s *DescribeVpcEndpointServicesInput) SetServiceNames(v []*string) *DescribeVpcEndpointServicesInput {
  46135. s.ServiceNames = v
  46136. return s
  46137. }
  46138. // Contains the output of DescribeVpcEndpointServices.
  46139. type DescribeVpcEndpointServicesOutput struct {
  46140. _ struct{} `type:"structure"`
  46141. // The token to use when requesting the next set of items. If there are no additional
  46142. // items to return, the string is empty.
  46143. NextToken *string `locationName:"nextToken" type:"string"`
  46144. // Information about the service.
  46145. ServiceDetails []*ServiceDetail `locationName:"serviceDetailSet" locationNameList:"item" type:"list"`
  46146. // A list of supported services.
  46147. ServiceNames []*string `locationName:"serviceNameSet" locationNameList:"item" type:"list"`
  46148. }
  46149. // String returns the string representation
  46150. func (s DescribeVpcEndpointServicesOutput) String() string {
  46151. return awsutil.Prettify(s)
  46152. }
  46153. // GoString returns the string representation
  46154. func (s DescribeVpcEndpointServicesOutput) GoString() string {
  46155. return s.String()
  46156. }
  46157. // SetNextToken sets the NextToken field's value.
  46158. func (s *DescribeVpcEndpointServicesOutput) SetNextToken(v string) *DescribeVpcEndpointServicesOutput {
  46159. s.NextToken = &v
  46160. return s
  46161. }
  46162. // SetServiceDetails sets the ServiceDetails field's value.
  46163. func (s *DescribeVpcEndpointServicesOutput) SetServiceDetails(v []*ServiceDetail) *DescribeVpcEndpointServicesOutput {
  46164. s.ServiceDetails = v
  46165. return s
  46166. }
  46167. // SetServiceNames sets the ServiceNames field's value.
  46168. func (s *DescribeVpcEndpointServicesOutput) SetServiceNames(v []*string) *DescribeVpcEndpointServicesOutput {
  46169. s.ServiceNames = v
  46170. return s
  46171. }
  46172. // Contains the parameters for DescribeVpcEndpoints.
  46173. type DescribeVpcEndpointsInput struct {
  46174. _ struct{} `type:"structure"`
  46175. // Checks whether you have the required permissions for the action, without
  46176. // actually making the request, and provides an error response. If you have
  46177. // the required permissions, the error response is DryRunOperation. Otherwise,
  46178. // it is UnauthorizedOperation.
  46179. DryRun *bool `type:"boolean"`
  46180. // One or more filters.
  46181. //
  46182. // * service-name: The name of the service.
  46183. //
  46184. // * vpc-id: The ID of the VPC in which the endpoint resides.
  46185. //
  46186. // * vpc-endpoint-id: The ID of the endpoint.
  46187. //
  46188. // * vpc-endpoint-state: The state of the endpoint. (pending | available
  46189. // | deleting | deleted)
  46190. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  46191. // The maximum number of items to return for this request. The request returns
  46192. // a token that you can specify in a subsequent call to get the next set of
  46193. // results.
  46194. //
  46195. // Constraint: If the value is greater than 1000, we return only 1000 items.
  46196. MaxResults *int64 `type:"integer"`
  46197. // The token for the next set of items to return. (You received this token from
  46198. // a prior call.)
  46199. NextToken *string `type:"string"`
  46200. // One or more endpoint IDs.
  46201. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list"`
  46202. }
  46203. // String returns the string representation
  46204. func (s DescribeVpcEndpointsInput) String() string {
  46205. return awsutil.Prettify(s)
  46206. }
  46207. // GoString returns the string representation
  46208. func (s DescribeVpcEndpointsInput) GoString() string {
  46209. return s.String()
  46210. }
  46211. // SetDryRun sets the DryRun field's value.
  46212. func (s *DescribeVpcEndpointsInput) SetDryRun(v bool) *DescribeVpcEndpointsInput {
  46213. s.DryRun = &v
  46214. return s
  46215. }
  46216. // SetFilters sets the Filters field's value.
  46217. func (s *DescribeVpcEndpointsInput) SetFilters(v []*Filter) *DescribeVpcEndpointsInput {
  46218. s.Filters = v
  46219. return s
  46220. }
  46221. // SetMaxResults sets the MaxResults field's value.
  46222. func (s *DescribeVpcEndpointsInput) SetMaxResults(v int64) *DescribeVpcEndpointsInput {
  46223. s.MaxResults = &v
  46224. return s
  46225. }
  46226. // SetNextToken sets the NextToken field's value.
  46227. func (s *DescribeVpcEndpointsInput) SetNextToken(v string) *DescribeVpcEndpointsInput {
  46228. s.NextToken = &v
  46229. return s
  46230. }
  46231. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  46232. func (s *DescribeVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DescribeVpcEndpointsInput {
  46233. s.VpcEndpointIds = v
  46234. return s
  46235. }
  46236. // Contains the output of DescribeVpcEndpoints.
  46237. type DescribeVpcEndpointsOutput struct {
  46238. _ struct{} `type:"structure"`
  46239. // The token to use when requesting the next set of items. If there are no additional
  46240. // items to return, the string is empty.
  46241. NextToken *string `locationName:"nextToken" type:"string"`
  46242. // Information about the endpoints.
  46243. VpcEndpoints []*VpcEndpoint `locationName:"vpcEndpointSet" locationNameList:"item" type:"list"`
  46244. }
  46245. // String returns the string representation
  46246. func (s DescribeVpcEndpointsOutput) String() string {
  46247. return awsutil.Prettify(s)
  46248. }
  46249. // GoString returns the string representation
  46250. func (s DescribeVpcEndpointsOutput) GoString() string {
  46251. return s.String()
  46252. }
  46253. // SetNextToken sets the NextToken field's value.
  46254. func (s *DescribeVpcEndpointsOutput) SetNextToken(v string) *DescribeVpcEndpointsOutput {
  46255. s.NextToken = &v
  46256. return s
  46257. }
  46258. // SetVpcEndpoints sets the VpcEndpoints field's value.
  46259. func (s *DescribeVpcEndpointsOutput) SetVpcEndpoints(v []*VpcEndpoint) *DescribeVpcEndpointsOutput {
  46260. s.VpcEndpoints = v
  46261. return s
  46262. }
  46263. type DescribeVpcPeeringConnectionsInput struct {
  46264. _ struct{} `type:"structure"`
  46265. // Checks whether you have the required permissions for the action, without
  46266. // actually making the request, and provides an error response. If you have
  46267. // the required permissions, the error response is DryRunOperation. Otherwise,
  46268. // it is UnauthorizedOperation.
  46269. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46270. // One or more filters.
  46271. //
  46272. // * accepter-vpc-info.cidr-block - The IPv4 CIDR block of the accepter VPC.
  46273. //
  46274. // * accepter-vpc-info.owner-id - The AWS account ID of the owner of the
  46275. // accepter VPC.
  46276. //
  46277. // * accepter-vpc-info.vpc-id - The ID of the accepter VPC.
  46278. //
  46279. // * expiration-time - The expiration date and time for the VPC peering connection.
  46280. //
  46281. // * requester-vpc-info.cidr-block - The IPv4 CIDR block of the requester's
  46282. // VPC.
  46283. //
  46284. // * requester-vpc-info.owner-id - The AWS account ID of the owner of the
  46285. // requester VPC.
  46286. //
  46287. // * requester-vpc-info.vpc-id - The ID of the requester VPC.
  46288. //
  46289. // * status-code - The status of the VPC peering connection (pending-acceptance
  46290. // | failed | expired | provisioning | active | deleting | deleted | rejected).
  46291. //
  46292. // * status-message - A message that provides more information about the
  46293. // status of the VPC peering connection, if applicable.
  46294. //
  46295. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  46296. // Use the tag key in the filter name and the tag value as the filter value.
  46297. // For example, to find all resources that have a tag with the key Owner
  46298. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  46299. // the filter value.
  46300. //
  46301. // * tag-key - The key of a tag assigned to the resource. Use this filter
  46302. // to find all resources assigned a tag with a specific key, regardless of
  46303. // the tag value.
  46304. //
  46305. // * vpc-peering-connection-id - The ID of the VPC peering connection.
  46306. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  46307. // One or more VPC peering connection IDs.
  46308. //
  46309. // Default: Describes all your VPC peering connections.
  46310. VpcPeeringConnectionIds []*string `locationName:"VpcPeeringConnectionId" locationNameList:"item" type:"list"`
  46311. }
  46312. // String returns the string representation
  46313. func (s DescribeVpcPeeringConnectionsInput) String() string {
  46314. return awsutil.Prettify(s)
  46315. }
  46316. // GoString returns the string representation
  46317. func (s DescribeVpcPeeringConnectionsInput) GoString() string {
  46318. return s.String()
  46319. }
  46320. // SetDryRun sets the DryRun field's value.
  46321. func (s *DescribeVpcPeeringConnectionsInput) SetDryRun(v bool) *DescribeVpcPeeringConnectionsInput {
  46322. s.DryRun = &v
  46323. return s
  46324. }
  46325. // SetFilters sets the Filters field's value.
  46326. func (s *DescribeVpcPeeringConnectionsInput) SetFilters(v []*Filter) *DescribeVpcPeeringConnectionsInput {
  46327. s.Filters = v
  46328. return s
  46329. }
  46330. // SetVpcPeeringConnectionIds sets the VpcPeeringConnectionIds field's value.
  46331. func (s *DescribeVpcPeeringConnectionsInput) SetVpcPeeringConnectionIds(v []*string) *DescribeVpcPeeringConnectionsInput {
  46332. s.VpcPeeringConnectionIds = v
  46333. return s
  46334. }
  46335. type DescribeVpcPeeringConnectionsOutput struct {
  46336. _ struct{} `type:"structure"`
  46337. // Information about the VPC peering connections.
  46338. VpcPeeringConnections []*VpcPeeringConnection `locationName:"vpcPeeringConnectionSet" locationNameList:"item" type:"list"`
  46339. }
  46340. // String returns the string representation
  46341. func (s DescribeVpcPeeringConnectionsOutput) String() string {
  46342. return awsutil.Prettify(s)
  46343. }
  46344. // GoString returns the string representation
  46345. func (s DescribeVpcPeeringConnectionsOutput) GoString() string {
  46346. return s.String()
  46347. }
  46348. // SetVpcPeeringConnections sets the VpcPeeringConnections field's value.
  46349. func (s *DescribeVpcPeeringConnectionsOutput) SetVpcPeeringConnections(v []*VpcPeeringConnection) *DescribeVpcPeeringConnectionsOutput {
  46350. s.VpcPeeringConnections = v
  46351. return s
  46352. }
  46353. type DescribeVpcsInput struct {
  46354. _ struct{} `type:"structure"`
  46355. // Checks whether you have the required permissions for the action, without
  46356. // actually making the request, and provides an error response. If you have
  46357. // the required permissions, the error response is DryRunOperation. Otherwise,
  46358. // it is UnauthorizedOperation.
  46359. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46360. // One or more filters.
  46361. //
  46362. // * cidr - The primary IPv4 CIDR block of the VPC. The CIDR block you specify
  46363. // must exactly match the VPC's CIDR block for information to be returned
  46364. // for the VPC. Must contain the slash followed by one or two digits (for
  46365. // example, /28).
  46366. //
  46367. // * cidr-block-association.cidr-block - An IPv4 CIDR block associated with
  46368. // the VPC.
  46369. //
  46370. // * cidr-block-association.association-id - The association ID for an IPv4
  46371. // CIDR block associated with the VPC.
  46372. //
  46373. // * cidr-block-association.state - The state of an IPv4 CIDR block associated
  46374. // with the VPC.
  46375. //
  46376. // * dhcp-options-id - The ID of a set of DHCP options.
  46377. //
  46378. // * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
  46379. // with the VPC.
  46380. //
  46381. // * ipv6-cidr-block-association.association-id - The association ID for
  46382. // an IPv6 CIDR block associated with the VPC.
  46383. //
  46384. // * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
  46385. // associated with the VPC.
  46386. //
  46387. // * isDefault - Indicates whether the VPC is the default VPC.
  46388. //
  46389. // * owner-id - The ID of the AWS account that owns the VPC.
  46390. //
  46391. // * state - The state of the VPC (pending | available).
  46392. //
  46393. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  46394. // Use the tag key in the filter name and the tag value as the filter value.
  46395. // For example, to find all resources that have a tag with the key Owner
  46396. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  46397. // the filter value.
  46398. //
  46399. // * tag-key - The key of a tag assigned to the resource. Use this filter
  46400. // to find all resources assigned a tag with a specific key, regardless of
  46401. // the tag value.
  46402. //
  46403. // * vpc-id - The ID of the VPC.
  46404. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  46405. // One or more VPC IDs.
  46406. //
  46407. // Default: Describes all your VPCs.
  46408. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
  46409. }
  46410. // String returns the string representation
  46411. func (s DescribeVpcsInput) String() string {
  46412. return awsutil.Prettify(s)
  46413. }
  46414. // GoString returns the string representation
  46415. func (s DescribeVpcsInput) GoString() string {
  46416. return s.String()
  46417. }
  46418. // SetDryRun sets the DryRun field's value.
  46419. func (s *DescribeVpcsInput) SetDryRun(v bool) *DescribeVpcsInput {
  46420. s.DryRun = &v
  46421. return s
  46422. }
  46423. // SetFilters sets the Filters field's value.
  46424. func (s *DescribeVpcsInput) SetFilters(v []*Filter) *DescribeVpcsInput {
  46425. s.Filters = v
  46426. return s
  46427. }
  46428. // SetVpcIds sets the VpcIds field's value.
  46429. func (s *DescribeVpcsInput) SetVpcIds(v []*string) *DescribeVpcsInput {
  46430. s.VpcIds = v
  46431. return s
  46432. }
  46433. type DescribeVpcsOutput struct {
  46434. _ struct{} `type:"structure"`
  46435. // Information about one or more VPCs.
  46436. Vpcs []*Vpc `locationName:"vpcSet" locationNameList:"item" type:"list"`
  46437. }
  46438. // String returns the string representation
  46439. func (s DescribeVpcsOutput) String() string {
  46440. return awsutil.Prettify(s)
  46441. }
  46442. // GoString returns the string representation
  46443. func (s DescribeVpcsOutput) GoString() string {
  46444. return s.String()
  46445. }
  46446. // SetVpcs sets the Vpcs field's value.
  46447. func (s *DescribeVpcsOutput) SetVpcs(v []*Vpc) *DescribeVpcsOutput {
  46448. s.Vpcs = v
  46449. return s
  46450. }
  46451. // Contains the parameters for DescribeVpnConnections.
  46452. type DescribeVpnConnectionsInput struct {
  46453. _ struct{} `type:"structure"`
  46454. // Checks whether you have the required permissions for the action, without
  46455. // actually making the request, and provides an error response. If you have
  46456. // the required permissions, the error response is DryRunOperation. Otherwise,
  46457. // it is UnauthorizedOperation.
  46458. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46459. // One or more filters.
  46460. //
  46461. // * customer-gateway-configuration - The configuration information for the
  46462. // customer gateway.
  46463. //
  46464. // * customer-gateway-id - The ID of a customer gateway associated with the
  46465. // VPN connection.
  46466. //
  46467. // * state - The state of the VPN connection (pending | available | deleting
  46468. // | deleted).
  46469. //
  46470. // * option.static-routes-only - Indicates whether the connection has static
  46471. // routes only. Used for devices that do not support Border Gateway Protocol
  46472. // (BGP).
  46473. //
  46474. // * route.destination-cidr-block - The destination CIDR block. This corresponds
  46475. // to the subnet used in a customer data center.
  46476. //
  46477. // * bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP
  46478. // device.
  46479. //
  46480. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  46481. // Use the tag key in the filter name and the tag value as the filter value.
  46482. // For example, to find all resources that have a tag with the key Owner
  46483. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  46484. // the filter value.
  46485. //
  46486. // * tag-key - The key of a tag assigned to the resource. Use this filter
  46487. // to find all resources assigned a tag with a specific key, regardless of
  46488. // the tag value.
  46489. //
  46490. // * type - The type of VPN connection. Currently the only supported type
  46491. // is ipsec.1.
  46492. //
  46493. // * vpn-connection-id - The ID of the VPN connection.
  46494. //
  46495. // * vpn-gateway-id - The ID of a virtual private gateway associated with
  46496. // the VPN connection.
  46497. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  46498. // One or more VPN connection IDs.
  46499. //
  46500. // Default: Describes your VPN connections.
  46501. VpnConnectionIds []*string `locationName:"VpnConnectionId" locationNameList:"VpnConnectionId" type:"list"`
  46502. }
  46503. // String returns the string representation
  46504. func (s DescribeVpnConnectionsInput) String() string {
  46505. return awsutil.Prettify(s)
  46506. }
  46507. // GoString returns the string representation
  46508. func (s DescribeVpnConnectionsInput) GoString() string {
  46509. return s.String()
  46510. }
  46511. // SetDryRun sets the DryRun field's value.
  46512. func (s *DescribeVpnConnectionsInput) SetDryRun(v bool) *DescribeVpnConnectionsInput {
  46513. s.DryRun = &v
  46514. return s
  46515. }
  46516. // SetFilters sets the Filters field's value.
  46517. func (s *DescribeVpnConnectionsInput) SetFilters(v []*Filter) *DescribeVpnConnectionsInput {
  46518. s.Filters = v
  46519. return s
  46520. }
  46521. // SetVpnConnectionIds sets the VpnConnectionIds field's value.
  46522. func (s *DescribeVpnConnectionsInput) SetVpnConnectionIds(v []*string) *DescribeVpnConnectionsInput {
  46523. s.VpnConnectionIds = v
  46524. return s
  46525. }
  46526. // Contains the output of DescribeVpnConnections.
  46527. type DescribeVpnConnectionsOutput struct {
  46528. _ struct{} `type:"structure"`
  46529. // Information about one or more VPN connections.
  46530. VpnConnections []*VpnConnection `locationName:"vpnConnectionSet" locationNameList:"item" type:"list"`
  46531. }
  46532. // String returns the string representation
  46533. func (s DescribeVpnConnectionsOutput) String() string {
  46534. return awsutil.Prettify(s)
  46535. }
  46536. // GoString returns the string representation
  46537. func (s DescribeVpnConnectionsOutput) GoString() string {
  46538. return s.String()
  46539. }
  46540. // SetVpnConnections sets the VpnConnections field's value.
  46541. func (s *DescribeVpnConnectionsOutput) SetVpnConnections(v []*VpnConnection) *DescribeVpnConnectionsOutput {
  46542. s.VpnConnections = v
  46543. return s
  46544. }
  46545. // Contains the parameters for DescribeVpnGateways.
  46546. type DescribeVpnGatewaysInput struct {
  46547. _ struct{} `type:"structure"`
  46548. // Checks whether you have the required permissions for the action, without
  46549. // actually making the request, and provides an error response. If you have
  46550. // the required permissions, the error response is DryRunOperation. Otherwise,
  46551. // it is UnauthorizedOperation.
  46552. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46553. // One or more filters.
  46554. //
  46555. // * amazon-side-asn - The Autonomous System Number (ASN) for the Amazon
  46556. // side of the gateway.
  46557. //
  46558. // * attachment.state - The current state of the attachment between the gateway
  46559. // and the VPC (attaching | attached | detaching | detached).
  46560. //
  46561. // * attachment.vpc-id - The ID of an attached VPC.
  46562. //
  46563. // * availability-zone - The Availability Zone for the virtual private gateway
  46564. // (if applicable).
  46565. //
  46566. // * state - The state of the virtual private gateway (pending | available
  46567. // | deleting | deleted).
  46568. //
  46569. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  46570. // Use the tag key in the filter name and the tag value as the filter value.
  46571. // For example, to find all resources that have a tag with the key Owner
  46572. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  46573. // the filter value.
  46574. //
  46575. // * tag-key - The key of a tag assigned to the resource. Use this filter
  46576. // to find all resources assigned a tag with a specific key, regardless of
  46577. // the tag value.
  46578. //
  46579. // * type - The type of virtual private gateway. Currently the only supported
  46580. // type is ipsec.1.
  46581. //
  46582. // * vpn-gateway-id - The ID of the virtual private gateway.
  46583. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  46584. // One or more virtual private gateway IDs.
  46585. //
  46586. // Default: Describes all your virtual private gateways.
  46587. VpnGatewayIds []*string `locationName:"VpnGatewayId" locationNameList:"VpnGatewayId" type:"list"`
  46588. }
  46589. // String returns the string representation
  46590. func (s DescribeVpnGatewaysInput) String() string {
  46591. return awsutil.Prettify(s)
  46592. }
  46593. // GoString returns the string representation
  46594. func (s DescribeVpnGatewaysInput) GoString() string {
  46595. return s.String()
  46596. }
  46597. // SetDryRun sets the DryRun field's value.
  46598. func (s *DescribeVpnGatewaysInput) SetDryRun(v bool) *DescribeVpnGatewaysInput {
  46599. s.DryRun = &v
  46600. return s
  46601. }
  46602. // SetFilters sets the Filters field's value.
  46603. func (s *DescribeVpnGatewaysInput) SetFilters(v []*Filter) *DescribeVpnGatewaysInput {
  46604. s.Filters = v
  46605. return s
  46606. }
  46607. // SetVpnGatewayIds sets the VpnGatewayIds field's value.
  46608. func (s *DescribeVpnGatewaysInput) SetVpnGatewayIds(v []*string) *DescribeVpnGatewaysInput {
  46609. s.VpnGatewayIds = v
  46610. return s
  46611. }
  46612. // Contains the output of DescribeVpnGateways.
  46613. type DescribeVpnGatewaysOutput struct {
  46614. _ struct{} `type:"structure"`
  46615. // Information about one or more virtual private gateways.
  46616. VpnGateways []*VpnGateway `locationName:"vpnGatewaySet" locationNameList:"item" type:"list"`
  46617. }
  46618. // String returns the string representation
  46619. func (s DescribeVpnGatewaysOutput) String() string {
  46620. return awsutil.Prettify(s)
  46621. }
  46622. // GoString returns the string representation
  46623. func (s DescribeVpnGatewaysOutput) GoString() string {
  46624. return s.String()
  46625. }
  46626. // SetVpnGateways sets the VpnGateways field's value.
  46627. func (s *DescribeVpnGatewaysOutput) SetVpnGateways(v []*VpnGateway) *DescribeVpnGatewaysOutput {
  46628. s.VpnGateways = v
  46629. return s
  46630. }
  46631. type DetachClassicLinkVpcInput struct {
  46632. _ struct{} `type:"structure"`
  46633. // Checks whether you have the required permissions for the action, without
  46634. // actually making the request, and provides an error response. If you have
  46635. // the required permissions, the error response is DryRunOperation. Otherwise,
  46636. // it is UnauthorizedOperation.
  46637. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46638. // The ID of the instance to unlink from the VPC.
  46639. //
  46640. // InstanceId is a required field
  46641. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  46642. // The ID of the VPC to which the instance is linked.
  46643. //
  46644. // VpcId is a required field
  46645. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  46646. }
  46647. // String returns the string representation
  46648. func (s DetachClassicLinkVpcInput) String() string {
  46649. return awsutil.Prettify(s)
  46650. }
  46651. // GoString returns the string representation
  46652. func (s DetachClassicLinkVpcInput) GoString() string {
  46653. return s.String()
  46654. }
  46655. // Validate inspects the fields of the type to determine if they are valid.
  46656. func (s *DetachClassicLinkVpcInput) Validate() error {
  46657. invalidParams := request.ErrInvalidParams{Context: "DetachClassicLinkVpcInput"}
  46658. if s.InstanceId == nil {
  46659. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  46660. }
  46661. if s.VpcId == nil {
  46662. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  46663. }
  46664. if invalidParams.Len() > 0 {
  46665. return invalidParams
  46666. }
  46667. return nil
  46668. }
  46669. // SetDryRun sets the DryRun field's value.
  46670. func (s *DetachClassicLinkVpcInput) SetDryRun(v bool) *DetachClassicLinkVpcInput {
  46671. s.DryRun = &v
  46672. return s
  46673. }
  46674. // SetInstanceId sets the InstanceId field's value.
  46675. func (s *DetachClassicLinkVpcInput) SetInstanceId(v string) *DetachClassicLinkVpcInput {
  46676. s.InstanceId = &v
  46677. return s
  46678. }
  46679. // SetVpcId sets the VpcId field's value.
  46680. func (s *DetachClassicLinkVpcInput) SetVpcId(v string) *DetachClassicLinkVpcInput {
  46681. s.VpcId = &v
  46682. return s
  46683. }
  46684. type DetachClassicLinkVpcOutput struct {
  46685. _ struct{} `type:"structure"`
  46686. // Returns true if the request succeeds; otherwise, it returns an error.
  46687. Return *bool `locationName:"return" type:"boolean"`
  46688. }
  46689. // String returns the string representation
  46690. func (s DetachClassicLinkVpcOutput) String() string {
  46691. return awsutil.Prettify(s)
  46692. }
  46693. // GoString returns the string representation
  46694. func (s DetachClassicLinkVpcOutput) GoString() string {
  46695. return s.String()
  46696. }
  46697. // SetReturn sets the Return field's value.
  46698. func (s *DetachClassicLinkVpcOutput) SetReturn(v bool) *DetachClassicLinkVpcOutput {
  46699. s.Return = &v
  46700. return s
  46701. }
  46702. type DetachInternetGatewayInput struct {
  46703. _ struct{} `type:"structure"`
  46704. // Checks whether you have the required permissions for the action, without
  46705. // actually making the request, and provides an error response. If you have
  46706. // the required permissions, the error response is DryRunOperation. Otherwise,
  46707. // it is UnauthorizedOperation.
  46708. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46709. // The ID of the internet gateway.
  46710. //
  46711. // InternetGatewayId is a required field
  46712. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  46713. // The ID of the VPC.
  46714. //
  46715. // VpcId is a required field
  46716. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  46717. }
  46718. // String returns the string representation
  46719. func (s DetachInternetGatewayInput) String() string {
  46720. return awsutil.Prettify(s)
  46721. }
  46722. // GoString returns the string representation
  46723. func (s DetachInternetGatewayInput) GoString() string {
  46724. return s.String()
  46725. }
  46726. // Validate inspects the fields of the type to determine if they are valid.
  46727. func (s *DetachInternetGatewayInput) Validate() error {
  46728. invalidParams := request.ErrInvalidParams{Context: "DetachInternetGatewayInput"}
  46729. if s.InternetGatewayId == nil {
  46730. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  46731. }
  46732. if s.VpcId == nil {
  46733. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  46734. }
  46735. if invalidParams.Len() > 0 {
  46736. return invalidParams
  46737. }
  46738. return nil
  46739. }
  46740. // SetDryRun sets the DryRun field's value.
  46741. func (s *DetachInternetGatewayInput) SetDryRun(v bool) *DetachInternetGatewayInput {
  46742. s.DryRun = &v
  46743. return s
  46744. }
  46745. // SetInternetGatewayId sets the InternetGatewayId field's value.
  46746. func (s *DetachInternetGatewayInput) SetInternetGatewayId(v string) *DetachInternetGatewayInput {
  46747. s.InternetGatewayId = &v
  46748. return s
  46749. }
  46750. // SetVpcId sets the VpcId field's value.
  46751. func (s *DetachInternetGatewayInput) SetVpcId(v string) *DetachInternetGatewayInput {
  46752. s.VpcId = &v
  46753. return s
  46754. }
  46755. type DetachInternetGatewayOutput struct {
  46756. _ struct{} `type:"structure"`
  46757. }
  46758. // String returns the string representation
  46759. func (s DetachInternetGatewayOutput) String() string {
  46760. return awsutil.Prettify(s)
  46761. }
  46762. // GoString returns the string representation
  46763. func (s DetachInternetGatewayOutput) GoString() string {
  46764. return s.String()
  46765. }
  46766. // Contains the parameters for DetachNetworkInterface.
  46767. type DetachNetworkInterfaceInput struct {
  46768. _ struct{} `type:"structure"`
  46769. // The ID of the attachment.
  46770. //
  46771. // AttachmentId is a required field
  46772. AttachmentId *string `locationName:"attachmentId" type:"string" required:"true"`
  46773. // Checks whether you have the required permissions for the action, without
  46774. // actually making the request, and provides an error response. If you have
  46775. // the required permissions, the error response is DryRunOperation. Otherwise,
  46776. // it is UnauthorizedOperation.
  46777. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46778. // Specifies whether to force a detachment.
  46779. Force *bool `locationName:"force" type:"boolean"`
  46780. }
  46781. // String returns the string representation
  46782. func (s DetachNetworkInterfaceInput) String() string {
  46783. return awsutil.Prettify(s)
  46784. }
  46785. // GoString returns the string representation
  46786. func (s DetachNetworkInterfaceInput) GoString() string {
  46787. return s.String()
  46788. }
  46789. // Validate inspects the fields of the type to determine if they are valid.
  46790. func (s *DetachNetworkInterfaceInput) Validate() error {
  46791. invalidParams := request.ErrInvalidParams{Context: "DetachNetworkInterfaceInput"}
  46792. if s.AttachmentId == nil {
  46793. invalidParams.Add(request.NewErrParamRequired("AttachmentId"))
  46794. }
  46795. if invalidParams.Len() > 0 {
  46796. return invalidParams
  46797. }
  46798. return nil
  46799. }
  46800. // SetAttachmentId sets the AttachmentId field's value.
  46801. func (s *DetachNetworkInterfaceInput) SetAttachmentId(v string) *DetachNetworkInterfaceInput {
  46802. s.AttachmentId = &v
  46803. return s
  46804. }
  46805. // SetDryRun sets the DryRun field's value.
  46806. func (s *DetachNetworkInterfaceInput) SetDryRun(v bool) *DetachNetworkInterfaceInput {
  46807. s.DryRun = &v
  46808. return s
  46809. }
  46810. // SetForce sets the Force field's value.
  46811. func (s *DetachNetworkInterfaceInput) SetForce(v bool) *DetachNetworkInterfaceInput {
  46812. s.Force = &v
  46813. return s
  46814. }
  46815. type DetachNetworkInterfaceOutput struct {
  46816. _ struct{} `type:"structure"`
  46817. }
  46818. // String returns the string representation
  46819. func (s DetachNetworkInterfaceOutput) String() string {
  46820. return awsutil.Prettify(s)
  46821. }
  46822. // GoString returns the string representation
  46823. func (s DetachNetworkInterfaceOutput) GoString() string {
  46824. return s.String()
  46825. }
  46826. // Contains the parameters for DetachVolume.
  46827. type DetachVolumeInput struct {
  46828. _ struct{} `type:"structure"`
  46829. // The device name.
  46830. Device *string `type:"string"`
  46831. // Checks whether you have the required permissions for the action, without
  46832. // actually making the request, and provides an error response. If you have
  46833. // the required permissions, the error response is DryRunOperation. Otherwise,
  46834. // it is UnauthorizedOperation.
  46835. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46836. // Forces detachment if the previous detachment attempt did not occur cleanly
  46837. // (for example, logging into an instance, unmounting the volume, and detaching
  46838. // normally). This option can lead to data loss or a corrupted file system.
  46839. // Use this option only as a last resort to detach a volume from a failed instance.
  46840. // The instance won't have an opportunity to flush file system caches or file
  46841. // system metadata. If you use this option, you must perform file system check
  46842. // and repair procedures.
  46843. Force *bool `type:"boolean"`
  46844. // The ID of the instance.
  46845. InstanceId *string `type:"string"`
  46846. // The ID of the volume.
  46847. //
  46848. // VolumeId is a required field
  46849. VolumeId *string `type:"string" required:"true"`
  46850. }
  46851. // String returns the string representation
  46852. func (s DetachVolumeInput) String() string {
  46853. return awsutil.Prettify(s)
  46854. }
  46855. // GoString returns the string representation
  46856. func (s DetachVolumeInput) GoString() string {
  46857. return s.String()
  46858. }
  46859. // Validate inspects the fields of the type to determine if they are valid.
  46860. func (s *DetachVolumeInput) Validate() error {
  46861. invalidParams := request.ErrInvalidParams{Context: "DetachVolumeInput"}
  46862. if s.VolumeId == nil {
  46863. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  46864. }
  46865. if invalidParams.Len() > 0 {
  46866. return invalidParams
  46867. }
  46868. return nil
  46869. }
  46870. // SetDevice sets the Device field's value.
  46871. func (s *DetachVolumeInput) SetDevice(v string) *DetachVolumeInput {
  46872. s.Device = &v
  46873. return s
  46874. }
  46875. // SetDryRun sets the DryRun field's value.
  46876. func (s *DetachVolumeInput) SetDryRun(v bool) *DetachVolumeInput {
  46877. s.DryRun = &v
  46878. return s
  46879. }
  46880. // SetForce sets the Force field's value.
  46881. func (s *DetachVolumeInput) SetForce(v bool) *DetachVolumeInput {
  46882. s.Force = &v
  46883. return s
  46884. }
  46885. // SetInstanceId sets the InstanceId field's value.
  46886. func (s *DetachVolumeInput) SetInstanceId(v string) *DetachVolumeInput {
  46887. s.InstanceId = &v
  46888. return s
  46889. }
  46890. // SetVolumeId sets the VolumeId field's value.
  46891. func (s *DetachVolumeInput) SetVolumeId(v string) *DetachVolumeInput {
  46892. s.VolumeId = &v
  46893. return s
  46894. }
  46895. // Contains the parameters for DetachVpnGateway.
  46896. type DetachVpnGatewayInput struct {
  46897. _ struct{} `type:"structure"`
  46898. // Checks whether you have the required permissions for the action, without
  46899. // actually making the request, and provides an error response. If you have
  46900. // the required permissions, the error response is DryRunOperation. Otherwise,
  46901. // it is UnauthorizedOperation.
  46902. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46903. // The ID of the VPC.
  46904. //
  46905. // VpcId is a required field
  46906. VpcId *string `type:"string" required:"true"`
  46907. // The ID of the virtual private gateway.
  46908. //
  46909. // VpnGatewayId is a required field
  46910. VpnGatewayId *string `type:"string" required:"true"`
  46911. }
  46912. // String returns the string representation
  46913. func (s DetachVpnGatewayInput) String() string {
  46914. return awsutil.Prettify(s)
  46915. }
  46916. // GoString returns the string representation
  46917. func (s DetachVpnGatewayInput) GoString() string {
  46918. return s.String()
  46919. }
  46920. // Validate inspects the fields of the type to determine if they are valid.
  46921. func (s *DetachVpnGatewayInput) Validate() error {
  46922. invalidParams := request.ErrInvalidParams{Context: "DetachVpnGatewayInput"}
  46923. if s.VpcId == nil {
  46924. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  46925. }
  46926. if s.VpnGatewayId == nil {
  46927. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  46928. }
  46929. if invalidParams.Len() > 0 {
  46930. return invalidParams
  46931. }
  46932. return nil
  46933. }
  46934. // SetDryRun sets the DryRun field's value.
  46935. func (s *DetachVpnGatewayInput) SetDryRun(v bool) *DetachVpnGatewayInput {
  46936. s.DryRun = &v
  46937. return s
  46938. }
  46939. // SetVpcId sets the VpcId field's value.
  46940. func (s *DetachVpnGatewayInput) SetVpcId(v string) *DetachVpnGatewayInput {
  46941. s.VpcId = &v
  46942. return s
  46943. }
  46944. // SetVpnGatewayId sets the VpnGatewayId field's value.
  46945. func (s *DetachVpnGatewayInput) SetVpnGatewayId(v string) *DetachVpnGatewayInput {
  46946. s.VpnGatewayId = &v
  46947. return s
  46948. }
  46949. type DetachVpnGatewayOutput struct {
  46950. _ struct{} `type:"structure"`
  46951. }
  46952. // String returns the string representation
  46953. func (s DetachVpnGatewayOutput) String() string {
  46954. return awsutil.Prettify(s)
  46955. }
  46956. // GoString returns the string representation
  46957. func (s DetachVpnGatewayOutput) GoString() string {
  46958. return s.String()
  46959. }
  46960. // Describes a DHCP configuration option.
  46961. type DhcpConfiguration struct {
  46962. _ struct{} `type:"structure"`
  46963. // The name of a DHCP option.
  46964. Key *string `locationName:"key" type:"string"`
  46965. // One or more values for the DHCP option.
  46966. Values []*AttributeValue `locationName:"valueSet" locationNameList:"item" type:"list"`
  46967. }
  46968. // String returns the string representation
  46969. func (s DhcpConfiguration) String() string {
  46970. return awsutil.Prettify(s)
  46971. }
  46972. // GoString returns the string representation
  46973. func (s DhcpConfiguration) GoString() string {
  46974. return s.String()
  46975. }
  46976. // SetKey sets the Key field's value.
  46977. func (s *DhcpConfiguration) SetKey(v string) *DhcpConfiguration {
  46978. s.Key = &v
  46979. return s
  46980. }
  46981. // SetValues sets the Values field's value.
  46982. func (s *DhcpConfiguration) SetValues(v []*AttributeValue) *DhcpConfiguration {
  46983. s.Values = v
  46984. return s
  46985. }
  46986. // Describes a set of DHCP options.
  46987. type DhcpOptions struct {
  46988. _ struct{} `type:"structure"`
  46989. // One or more DHCP options in the set.
  46990. DhcpConfigurations []*DhcpConfiguration `locationName:"dhcpConfigurationSet" locationNameList:"item" type:"list"`
  46991. // The ID of the set of DHCP options.
  46992. DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`
  46993. // The ID of the AWS account that owns the DHCP options set.
  46994. OwnerId *string `locationName:"ownerId" type:"string"`
  46995. // Any tags assigned to the DHCP options set.
  46996. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  46997. }
  46998. // String returns the string representation
  46999. func (s DhcpOptions) String() string {
  47000. return awsutil.Prettify(s)
  47001. }
  47002. // GoString returns the string representation
  47003. func (s DhcpOptions) GoString() string {
  47004. return s.String()
  47005. }
  47006. // SetDhcpConfigurations sets the DhcpConfigurations field's value.
  47007. func (s *DhcpOptions) SetDhcpConfigurations(v []*DhcpConfiguration) *DhcpOptions {
  47008. s.DhcpConfigurations = v
  47009. return s
  47010. }
  47011. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  47012. func (s *DhcpOptions) SetDhcpOptionsId(v string) *DhcpOptions {
  47013. s.DhcpOptionsId = &v
  47014. return s
  47015. }
  47016. // SetOwnerId sets the OwnerId field's value.
  47017. func (s *DhcpOptions) SetOwnerId(v string) *DhcpOptions {
  47018. s.OwnerId = &v
  47019. return s
  47020. }
  47021. // SetTags sets the Tags field's value.
  47022. func (s *DhcpOptions) SetTags(v []*Tag) *DhcpOptions {
  47023. s.Tags = v
  47024. return s
  47025. }
  47026. // Describes an Active Directory.
  47027. type DirectoryServiceAuthentication struct {
  47028. _ struct{} `type:"structure"`
  47029. // The ID of the Active Directory used for authentication.
  47030. DirectoryId *string `locationName:"directoryId" type:"string"`
  47031. }
  47032. // String returns the string representation
  47033. func (s DirectoryServiceAuthentication) String() string {
  47034. return awsutil.Prettify(s)
  47035. }
  47036. // GoString returns the string representation
  47037. func (s DirectoryServiceAuthentication) GoString() string {
  47038. return s.String()
  47039. }
  47040. // SetDirectoryId sets the DirectoryId field's value.
  47041. func (s *DirectoryServiceAuthentication) SetDirectoryId(v string) *DirectoryServiceAuthentication {
  47042. s.DirectoryId = &v
  47043. return s
  47044. }
  47045. // Describes the Active Directory to be used for client authentication.
  47046. type DirectoryServiceAuthenticationRequest struct {
  47047. _ struct{} `type:"structure"`
  47048. // The ID of the Active Directory to be used for authentication.
  47049. DirectoryId *string `type:"string"`
  47050. }
  47051. // String returns the string representation
  47052. func (s DirectoryServiceAuthenticationRequest) String() string {
  47053. return awsutil.Prettify(s)
  47054. }
  47055. // GoString returns the string representation
  47056. func (s DirectoryServiceAuthenticationRequest) GoString() string {
  47057. return s.String()
  47058. }
  47059. // SetDirectoryId sets the DirectoryId field's value.
  47060. func (s *DirectoryServiceAuthenticationRequest) SetDirectoryId(v string) *DirectoryServiceAuthenticationRequest {
  47061. s.DirectoryId = &v
  47062. return s
  47063. }
  47064. type DisableTransitGatewayRouteTablePropagationInput struct {
  47065. _ struct{} `type:"structure"`
  47066. // Checks whether you have the required permissions for the action, without
  47067. // actually making the request, and provides an error response. If you have
  47068. // the required permissions, the error response is DryRunOperation. Otherwise,
  47069. // it is UnauthorizedOperation.
  47070. DryRun *bool `type:"boolean"`
  47071. // The ID of the attachment.
  47072. //
  47073. // TransitGatewayAttachmentId is a required field
  47074. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  47075. // The ID of the propagation route table.
  47076. //
  47077. // TransitGatewayRouteTableId is a required field
  47078. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  47079. }
  47080. // String returns the string representation
  47081. func (s DisableTransitGatewayRouteTablePropagationInput) String() string {
  47082. return awsutil.Prettify(s)
  47083. }
  47084. // GoString returns the string representation
  47085. func (s DisableTransitGatewayRouteTablePropagationInput) GoString() string {
  47086. return s.String()
  47087. }
  47088. // Validate inspects the fields of the type to determine if they are valid.
  47089. func (s *DisableTransitGatewayRouteTablePropagationInput) Validate() error {
  47090. invalidParams := request.ErrInvalidParams{Context: "DisableTransitGatewayRouteTablePropagationInput"}
  47091. if s.TransitGatewayAttachmentId == nil {
  47092. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  47093. }
  47094. if s.TransitGatewayRouteTableId == nil {
  47095. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  47096. }
  47097. if invalidParams.Len() > 0 {
  47098. return invalidParams
  47099. }
  47100. return nil
  47101. }
  47102. // SetDryRun sets the DryRun field's value.
  47103. func (s *DisableTransitGatewayRouteTablePropagationInput) SetDryRun(v bool) *DisableTransitGatewayRouteTablePropagationInput {
  47104. s.DryRun = &v
  47105. return s
  47106. }
  47107. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  47108. func (s *DisableTransitGatewayRouteTablePropagationInput) SetTransitGatewayAttachmentId(v string) *DisableTransitGatewayRouteTablePropagationInput {
  47109. s.TransitGatewayAttachmentId = &v
  47110. return s
  47111. }
  47112. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  47113. func (s *DisableTransitGatewayRouteTablePropagationInput) SetTransitGatewayRouteTableId(v string) *DisableTransitGatewayRouteTablePropagationInput {
  47114. s.TransitGatewayRouteTableId = &v
  47115. return s
  47116. }
  47117. type DisableTransitGatewayRouteTablePropagationOutput struct {
  47118. _ struct{} `type:"structure"`
  47119. // Information about route propagation.
  47120. Propagation *TransitGatewayPropagation `locationName:"propagation" type:"structure"`
  47121. }
  47122. // String returns the string representation
  47123. func (s DisableTransitGatewayRouteTablePropagationOutput) String() string {
  47124. return awsutil.Prettify(s)
  47125. }
  47126. // GoString returns the string representation
  47127. func (s DisableTransitGatewayRouteTablePropagationOutput) GoString() string {
  47128. return s.String()
  47129. }
  47130. // SetPropagation sets the Propagation field's value.
  47131. func (s *DisableTransitGatewayRouteTablePropagationOutput) SetPropagation(v *TransitGatewayPropagation) *DisableTransitGatewayRouteTablePropagationOutput {
  47132. s.Propagation = v
  47133. return s
  47134. }
  47135. // Contains the parameters for DisableVgwRoutePropagation.
  47136. type DisableVgwRoutePropagationInput struct {
  47137. _ struct{} `type:"structure"`
  47138. // The ID of the virtual private gateway.
  47139. //
  47140. // GatewayId is a required field
  47141. GatewayId *string `type:"string" required:"true"`
  47142. // The ID of the route table.
  47143. //
  47144. // RouteTableId is a required field
  47145. RouteTableId *string `type:"string" required:"true"`
  47146. }
  47147. // String returns the string representation
  47148. func (s DisableVgwRoutePropagationInput) String() string {
  47149. return awsutil.Prettify(s)
  47150. }
  47151. // GoString returns the string representation
  47152. func (s DisableVgwRoutePropagationInput) GoString() string {
  47153. return s.String()
  47154. }
  47155. // Validate inspects the fields of the type to determine if they are valid.
  47156. func (s *DisableVgwRoutePropagationInput) Validate() error {
  47157. invalidParams := request.ErrInvalidParams{Context: "DisableVgwRoutePropagationInput"}
  47158. if s.GatewayId == nil {
  47159. invalidParams.Add(request.NewErrParamRequired("GatewayId"))
  47160. }
  47161. if s.RouteTableId == nil {
  47162. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  47163. }
  47164. if invalidParams.Len() > 0 {
  47165. return invalidParams
  47166. }
  47167. return nil
  47168. }
  47169. // SetGatewayId sets the GatewayId field's value.
  47170. func (s *DisableVgwRoutePropagationInput) SetGatewayId(v string) *DisableVgwRoutePropagationInput {
  47171. s.GatewayId = &v
  47172. return s
  47173. }
  47174. // SetRouteTableId sets the RouteTableId field's value.
  47175. func (s *DisableVgwRoutePropagationInput) SetRouteTableId(v string) *DisableVgwRoutePropagationInput {
  47176. s.RouteTableId = &v
  47177. return s
  47178. }
  47179. type DisableVgwRoutePropagationOutput struct {
  47180. _ struct{} `type:"structure"`
  47181. }
  47182. // String returns the string representation
  47183. func (s DisableVgwRoutePropagationOutput) String() string {
  47184. return awsutil.Prettify(s)
  47185. }
  47186. // GoString returns the string representation
  47187. func (s DisableVgwRoutePropagationOutput) GoString() string {
  47188. return s.String()
  47189. }
  47190. type DisableVpcClassicLinkDnsSupportInput struct {
  47191. _ struct{} `type:"structure"`
  47192. // The ID of the VPC.
  47193. VpcId *string `type:"string"`
  47194. }
  47195. // String returns the string representation
  47196. func (s DisableVpcClassicLinkDnsSupportInput) String() string {
  47197. return awsutil.Prettify(s)
  47198. }
  47199. // GoString returns the string representation
  47200. func (s DisableVpcClassicLinkDnsSupportInput) GoString() string {
  47201. return s.String()
  47202. }
  47203. // SetVpcId sets the VpcId field's value.
  47204. func (s *DisableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *DisableVpcClassicLinkDnsSupportInput {
  47205. s.VpcId = &v
  47206. return s
  47207. }
  47208. type DisableVpcClassicLinkDnsSupportOutput struct {
  47209. _ struct{} `type:"structure"`
  47210. // Returns true if the request succeeds; otherwise, it returns an error.
  47211. Return *bool `locationName:"return" type:"boolean"`
  47212. }
  47213. // String returns the string representation
  47214. func (s DisableVpcClassicLinkDnsSupportOutput) String() string {
  47215. return awsutil.Prettify(s)
  47216. }
  47217. // GoString returns the string representation
  47218. func (s DisableVpcClassicLinkDnsSupportOutput) GoString() string {
  47219. return s.String()
  47220. }
  47221. // SetReturn sets the Return field's value.
  47222. func (s *DisableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *DisableVpcClassicLinkDnsSupportOutput {
  47223. s.Return = &v
  47224. return s
  47225. }
  47226. type DisableVpcClassicLinkInput struct {
  47227. _ struct{} `type:"structure"`
  47228. // Checks whether you have the required permissions for the action, without
  47229. // actually making the request, and provides an error response. If you have
  47230. // the required permissions, the error response is DryRunOperation. Otherwise,
  47231. // it is UnauthorizedOperation.
  47232. DryRun *bool `locationName:"dryRun" type:"boolean"`
  47233. // The ID of the VPC.
  47234. //
  47235. // VpcId is a required field
  47236. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  47237. }
  47238. // String returns the string representation
  47239. func (s DisableVpcClassicLinkInput) String() string {
  47240. return awsutil.Prettify(s)
  47241. }
  47242. // GoString returns the string representation
  47243. func (s DisableVpcClassicLinkInput) GoString() string {
  47244. return s.String()
  47245. }
  47246. // Validate inspects the fields of the type to determine if they are valid.
  47247. func (s *DisableVpcClassicLinkInput) Validate() error {
  47248. invalidParams := request.ErrInvalidParams{Context: "DisableVpcClassicLinkInput"}
  47249. if s.VpcId == nil {
  47250. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  47251. }
  47252. if invalidParams.Len() > 0 {
  47253. return invalidParams
  47254. }
  47255. return nil
  47256. }
  47257. // SetDryRun sets the DryRun field's value.
  47258. func (s *DisableVpcClassicLinkInput) SetDryRun(v bool) *DisableVpcClassicLinkInput {
  47259. s.DryRun = &v
  47260. return s
  47261. }
  47262. // SetVpcId sets the VpcId field's value.
  47263. func (s *DisableVpcClassicLinkInput) SetVpcId(v string) *DisableVpcClassicLinkInput {
  47264. s.VpcId = &v
  47265. return s
  47266. }
  47267. type DisableVpcClassicLinkOutput struct {
  47268. _ struct{} `type:"structure"`
  47269. // Returns true if the request succeeds; otherwise, it returns an error.
  47270. Return *bool `locationName:"return" type:"boolean"`
  47271. }
  47272. // String returns the string representation
  47273. func (s DisableVpcClassicLinkOutput) String() string {
  47274. return awsutil.Prettify(s)
  47275. }
  47276. // GoString returns the string representation
  47277. func (s DisableVpcClassicLinkOutput) GoString() string {
  47278. return s.String()
  47279. }
  47280. // SetReturn sets the Return field's value.
  47281. func (s *DisableVpcClassicLinkOutput) SetReturn(v bool) *DisableVpcClassicLinkOutput {
  47282. s.Return = &v
  47283. return s
  47284. }
  47285. type DisassociateAddressInput struct {
  47286. _ struct{} `type:"structure"`
  47287. // [EC2-VPC] The association ID. Required for EC2-VPC.
  47288. AssociationId *string `type:"string"`
  47289. // Checks whether you have the required permissions for the action, without
  47290. // actually making the request, and provides an error response. If you have
  47291. // the required permissions, the error response is DryRunOperation. Otherwise,
  47292. // it is UnauthorizedOperation.
  47293. DryRun *bool `locationName:"dryRun" type:"boolean"`
  47294. // [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
  47295. PublicIp *string `type:"string"`
  47296. }
  47297. // String returns the string representation
  47298. func (s DisassociateAddressInput) String() string {
  47299. return awsutil.Prettify(s)
  47300. }
  47301. // GoString returns the string representation
  47302. func (s DisassociateAddressInput) GoString() string {
  47303. return s.String()
  47304. }
  47305. // SetAssociationId sets the AssociationId field's value.
  47306. func (s *DisassociateAddressInput) SetAssociationId(v string) *DisassociateAddressInput {
  47307. s.AssociationId = &v
  47308. return s
  47309. }
  47310. // SetDryRun sets the DryRun field's value.
  47311. func (s *DisassociateAddressInput) SetDryRun(v bool) *DisassociateAddressInput {
  47312. s.DryRun = &v
  47313. return s
  47314. }
  47315. // SetPublicIp sets the PublicIp field's value.
  47316. func (s *DisassociateAddressInput) SetPublicIp(v string) *DisassociateAddressInput {
  47317. s.PublicIp = &v
  47318. return s
  47319. }
  47320. type DisassociateAddressOutput struct {
  47321. _ struct{} `type:"structure"`
  47322. }
  47323. // String returns the string representation
  47324. func (s DisassociateAddressOutput) String() string {
  47325. return awsutil.Prettify(s)
  47326. }
  47327. // GoString returns the string representation
  47328. func (s DisassociateAddressOutput) GoString() string {
  47329. return s.String()
  47330. }
  47331. type DisassociateClientVpnTargetNetworkInput struct {
  47332. _ struct{} `type:"structure"`
  47333. // The ID of the target network association.
  47334. //
  47335. // AssociationId is a required field
  47336. AssociationId *string `type:"string" required:"true"`
  47337. // The ID of the Client VPN endpoint from which to disassociate the target network.
  47338. //
  47339. // ClientVpnEndpointId is a required field
  47340. ClientVpnEndpointId *string `type:"string" required:"true"`
  47341. // Checks whether you have the required permissions for the action, without
  47342. // actually making the request, and provides an error response. If you have
  47343. // the required permissions, the error response is DryRunOperation. Otherwise,
  47344. // it is UnauthorizedOperation.
  47345. DryRun *bool `type:"boolean"`
  47346. }
  47347. // String returns the string representation
  47348. func (s DisassociateClientVpnTargetNetworkInput) String() string {
  47349. return awsutil.Prettify(s)
  47350. }
  47351. // GoString returns the string representation
  47352. func (s DisassociateClientVpnTargetNetworkInput) GoString() string {
  47353. return s.String()
  47354. }
  47355. // Validate inspects the fields of the type to determine if they are valid.
  47356. func (s *DisassociateClientVpnTargetNetworkInput) Validate() error {
  47357. invalidParams := request.ErrInvalidParams{Context: "DisassociateClientVpnTargetNetworkInput"}
  47358. if s.AssociationId == nil {
  47359. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  47360. }
  47361. if s.ClientVpnEndpointId == nil {
  47362. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  47363. }
  47364. if invalidParams.Len() > 0 {
  47365. return invalidParams
  47366. }
  47367. return nil
  47368. }
  47369. // SetAssociationId sets the AssociationId field's value.
  47370. func (s *DisassociateClientVpnTargetNetworkInput) SetAssociationId(v string) *DisassociateClientVpnTargetNetworkInput {
  47371. s.AssociationId = &v
  47372. return s
  47373. }
  47374. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  47375. func (s *DisassociateClientVpnTargetNetworkInput) SetClientVpnEndpointId(v string) *DisassociateClientVpnTargetNetworkInput {
  47376. s.ClientVpnEndpointId = &v
  47377. return s
  47378. }
  47379. // SetDryRun sets the DryRun field's value.
  47380. func (s *DisassociateClientVpnTargetNetworkInput) SetDryRun(v bool) *DisassociateClientVpnTargetNetworkInput {
  47381. s.DryRun = &v
  47382. return s
  47383. }
  47384. type DisassociateClientVpnTargetNetworkOutput struct {
  47385. _ struct{} `type:"structure"`
  47386. // The ID of the target network association.
  47387. AssociationId *string `locationName:"associationId" type:"string"`
  47388. // The current state of the target network association.
  47389. Status *AssociationStatus `locationName:"status" type:"structure"`
  47390. }
  47391. // String returns the string representation
  47392. func (s DisassociateClientVpnTargetNetworkOutput) String() string {
  47393. return awsutil.Prettify(s)
  47394. }
  47395. // GoString returns the string representation
  47396. func (s DisassociateClientVpnTargetNetworkOutput) GoString() string {
  47397. return s.String()
  47398. }
  47399. // SetAssociationId sets the AssociationId field's value.
  47400. func (s *DisassociateClientVpnTargetNetworkOutput) SetAssociationId(v string) *DisassociateClientVpnTargetNetworkOutput {
  47401. s.AssociationId = &v
  47402. return s
  47403. }
  47404. // SetStatus sets the Status field's value.
  47405. func (s *DisassociateClientVpnTargetNetworkOutput) SetStatus(v *AssociationStatus) *DisassociateClientVpnTargetNetworkOutput {
  47406. s.Status = v
  47407. return s
  47408. }
  47409. type DisassociateIamInstanceProfileInput struct {
  47410. _ struct{} `type:"structure"`
  47411. // The ID of the IAM instance profile association.
  47412. //
  47413. // AssociationId is a required field
  47414. AssociationId *string `type:"string" required:"true"`
  47415. }
  47416. // String returns the string representation
  47417. func (s DisassociateIamInstanceProfileInput) String() string {
  47418. return awsutil.Prettify(s)
  47419. }
  47420. // GoString returns the string representation
  47421. func (s DisassociateIamInstanceProfileInput) GoString() string {
  47422. return s.String()
  47423. }
  47424. // Validate inspects the fields of the type to determine if they are valid.
  47425. func (s *DisassociateIamInstanceProfileInput) Validate() error {
  47426. invalidParams := request.ErrInvalidParams{Context: "DisassociateIamInstanceProfileInput"}
  47427. if s.AssociationId == nil {
  47428. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  47429. }
  47430. if invalidParams.Len() > 0 {
  47431. return invalidParams
  47432. }
  47433. return nil
  47434. }
  47435. // SetAssociationId sets the AssociationId field's value.
  47436. func (s *DisassociateIamInstanceProfileInput) SetAssociationId(v string) *DisassociateIamInstanceProfileInput {
  47437. s.AssociationId = &v
  47438. return s
  47439. }
  47440. type DisassociateIamInstanceProfileOutput struct {
  47441. _ struct{} `type:"structure"`
  47442. // Information about the IAM instance profile association.
  47443. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  47444. }
  47445. // String returns the string representation
  47446. func (s DisassociateIamInstanceProfileOutput) String() string {
  47447. return awsutil.Prettify(s)
  47448. }
  47449. // GoString returns the string representation
  47450. func (s DisassociateIamInstanceProfileOutput) GoString() string {
  47451. return s.String()
  47452. }
  47453. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  47454. func (s *DisassociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *DisassociateIamInstanceProfileOutput {
  47455. s.IamInstanceProfileAssociation = v
  47456. return s
  47457. }
  47458. type DisassociateRouteTableInput struct {
  47459. _ struct{} `type:"structure"`
  47460. // The association ID representing the current association between the route
  47461. // table and subnet.
  47462. //
  47463. // AssociationId is a required field
  47464. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  47465. // Checks whether you have the required permissions for the action, without
  47466. // actually making the request, and provides an error response. If you have
  47467. // the required permissions, the error response is DryRunOperation. Otherwise,
  47468. // it is UnauthorizedOperation.
  47469. DryRun *bool `locationName:"dryRun" type:"boolean"`
  47470. }
  47471. // String returns the string representation
  47472. func (s DisassociateRouteTableInput) String() string {
  47473. return awsutil.Prettify(s)
  47474. }
  47475. // GoString returns the string representation
  47476. func (s DisassociateRouteTableInput) GoString() string {
  47477. return s.String()
  47478. }
  47479. // Validate inspects the fields of the type to determine if they are valid.
  47480. func (s *DisassociateRouteTableInput) Validate() error {
  47481. invalidParams := request.ErrInvalidParams{Context: "DisassociateRouteTableInput"}
  47482. if s.AssociationId == nil {
  47483. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  47484. }
  47485. if invalidParams.Len() > 0 {
  47486. return invalidParams
  47487. }
  47488. return nil
  47489. }
  47490. // SetAssociationId sets the AssociationId field's value.
  47491. func (s *DisassociateRouteTableInput) SetAssociationId(v string) *DisassociateRouteTableInput {
  47492. s.AssociationId = &v
  47493. return s
  47494. }
  47495. // SetDryRun sets the DryRun field's value.
  47496. func (s *DisassociateRouteTableInput) SetDryRun(v bool) *DisassociateRouteTableInput {
  47497. s.DryRun = &v
  47498. return s
  47499. }
  47500. type DisassociateRouteTableOutput struct {
  47501. _ struct{} `type:"structure"`
  47502. }
  47503. // String returns the string representation
  47504. func (s DisassociateRouteTableOutput) String() string {
  47505. return awsutil.Prettify(s)
  47506. }
  47507. // GoString returns the string representation
  47508. func (s DisassociateRouteTableOutput) GoString() string {
  47509. return s.String()
  47510. }
  47511. type DisassociateSubnetCidrBlockInput struct {
  47512. _ struct{} `type:"structure"`
  47513. // The association ID for the CIDR block.
  47514. //
  47515. // AssociationId is a required field
  47516. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  47517. }
  47518. // String returns the string representation
  47519. func (s DisassociateSubnetCidrBlockInput) String() string {
  47520. return awsutil.Prettify(s)
  47521. }
  47522. // GoString returns the string representation
  47523. func (s DisassociateSubnetCidrBlockInput) GoString() string {
  47524. return s.String()
  47525. }
  47526. // Validate inspects the fields of the type to determine if they are valid.
  47527. func (s *DisassociateSubnetCidrBlockInput) Validate() error {
  47528. invalidParams := request.ErrInvalidParams{Context: "DisassociateSubnetCidrBlockInput"}
  47529. if s.AssociationId == nil {
  47530. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  47531. }
  47532. if invalidParams.Len() > 0 {
  47533. return invalidParams
  47534. }
  47535. return nil
  47536. }
  47537. // SetAssociationId sets the AssociationId field's value.
  47538. func (s *DisassociateSubnetCidrBlockInput) SetAssociationId(v string) *DisassociateSubnetCidrBlockInput {
  47539. s.AssociationId = &v
  47540. return s
  47541. }
  47542. type DisassociateSubnetCidrBlockOutput struct {
  47543. _ struct{} `type:"structure"`
  47544. // Information about the IPv6 CIDR block association.
  47545. Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  47546. // The ID of the subnet.
  47547. SubnetId *string `locationName:"subnetId" type:"string"`
  47548. }
  47549. // String returns the string representation
  47550. func (s DisassociateSubnetCidrBlockOutput) String() string {
  47551. return awsutil.Prettify(s)
  47552. }
  47553. // GoString returns the string representation
  47554. func (s DisassociateSubnetCidrBlockOutput) GoString() string {
  47555. return s.String()
  47556. }
  47557. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  47558. func (s *DisassociateSubnetCidrBlockOutput) SetIpv6CidrBlockAssociation(v *SubnetIpv6CidrBlockAssociation) *DisassociateSubnetCidrBlockOutput {
  47559. s.Ipv6CidrBlockAssociation = v
  47560. return s
  47561. }
  47562. // SetSubnetId sets the SubnetId field's value.
  47563. func (s *DisassociateSubnetCidrBlockOutput) SetSubnetId(v string) *DisassociateSubnetCidrBlockOutput {
  47564. s.SubnetId = &v
  47565. return s
  47566. }
  47567. type DisassociateTransitGatewayRouteTableInput struct {
  47568. _ struct{} `type:"structure"`
  47569. // Checks whether you have the required permissions for the action, without
  47570. // actually making the request, and provides an error response. If you have
  47571. // the required permissions, the error response is DryRunOperation. Otherwise,
  47572. // it is UnauthorizedOperation.
  47573. DryRun *bool `type:"boolean"`
  47574. // The ID of the attachment.
  47575. //
  47576. // TransitGatewayAttachmentId is a required field
  47577. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  47578. // The ID of the transit gateway route table.
  47579. //
  47580. // TransitGatewayRouteTableId is a required field
  47581. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  47582. }
  47583. // String returns the string representation
  47584. func (s DisassociateTransitGatewayRouteTableInput) String() string {
  47585. return awsutil.Prettify(s)
  47586. }
  47587. // GoString returns the string representation
  47588. func (s DisassociateTransitGatewayRouteTableInput) GoString() string {
  47589. return s.String()
  47590. }
  47591. // Validate inspects the fields of the type to determine if they are valid.
  47592. func (s *DisassociateTransitGatewayRouteTableInput) Validate() error {
  47593. invalidParams := request.ErrInvalidParams{Context: "DisassociateTransitGatewayRouteTableInput"}
  47594. if s.TransitGatewayAttachmentId == nil {
  47595. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  47596. }
  47597. if s.TransitGatewayRouteTableId == nil {
  47598. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  47599. }
  47600. if invalidParams.Len() > 0 {
  47601. return invalidParams
  47602. }
  47603. return nil
  47604. }
  47605. // SetDryRun sets the DryRun field's value.
  47606. func (s *DisassociateTransitGatewayRouteTableInput) SetDryRun(v bool) *DisassociateTransitGatewayRouteTableInput {
  47607. s.DryRun = &v
  47608. return s
  47609. }
  47610. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  47611. func (s *DisassociateTransitGatewayRouteTableInput) SetTransitGatewayAttachmentId(v string) *DisassociateTransitGatewayRouteTableInput {
  47612. s.TransitGatewayAttachmentId = &v
  47613. return s
  47614. }
  47615. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  47616. func (s *DisassociateTransitGatewayRouteTableInput) SetTransitGatewayRouteTableId(v string) *DisassociateTransitGatewayRouteTableInput {
  47617. s.TransitGatewayRouteTableId = &v
  47618. return s
  47619. }
  47620. type DisassociateTransitGatewayRouteTableOutput struct {
  47621. _ struct{} `type:"structure"`
  47622. // Information about the association.
  47623. Association *TransitGatewayAssociation `locationName:"association" type:"structure"`
  47624. }
  47625. // String returns the string representation
  47626. func (s DisassociateTransitGatewayRouteTableOutput) String() string {
  47627. return awsutil.Prettify(s)
  47628. }
  47629. // GoString returns the string representation
  47630. func (s DisassociateTransitGatewayRouteTableOutput) GoString() string {
  47631. return s.String()
  47632. }
  47633. // SetAssociation sets the Association field's value.
  47634. func (s *DisassociateTransitGatewayRouteTableOutput) SetAssociation(v *TransitGatewayAssociation) *DisassociateTransitGatewayRouteTableOutput {
  47635. s.Association = v
  47636. return s
  47637. }
  47638. type DisassociateVpcCidrBlockInput struct {
  47639. _ struct{} `type:"structure"`
  47640. // The association ID for the CIDR block.
  47641. //
  47642. // AssociationId is a required field
  47643. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  47644. }
  47645. // String returns the string representation
  47646. func (s DisassociateVpcCidrBlockInput) String() string {
  47647. return awsutil.Prettify(s)
  47648. }
  47649. // GoString returns the string representation
  47650. func (s DisassociateVpcCidrBlockInput) GoString() string {
  47651. return s.String()
  47652. }
  47653. // Validate inspects the fields of the type to determine if they are valid.
  47654. func (s *DisassociateVpcCidrBlockInput) Validate() error {
  47655. invalidParams := request.ErrInvalidParams{Context: "DisassociateVpcCidrBlockInput"}
  47656. if s.AssociationId == nil {
  47657. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  47658. }
  47659. if invalidParams.Len() > 0 {
  47660. return invalidParams
  47661. }
  47662. return nil
  47663. }
  47664. // SetAssociationId sets the AssociationId field's value.
  47665. func (s *DisassociateVpcCidrBlockInput) SetAssociationId(v string) *DisassociateVpcCidrBlockInput {
  47666. s.AssociationId = &v
  47667. return s
  47668. }
  47669. type DisassociateVpcCidrBlockOutput struct {
  47670. _ struct{} `type:"structure"`
  47671. // Information about the IPv4 CIDR block association.
  47672. CidrBlockAssociation *VpcCidrBlockAssociation `locationName:"cidrBlockAssociation" type:"structure"`
  47673. // Information about the IPv6 CIDR block association.
  47674. Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  47675. // The ID of the VPC.
  47676. VpcId *string `locationName:"vpcId" type:"string"`
  47677. }
  47678. // String returns the string representation
  47679. func (s DisassociateVpcCidrBlockOutput) String() string {
  47680. return awsutil.Prettify(s)
  47681. }
  47682. // GoString returns the string representation
  47683. func (s DisassociateVpcCidrBlockOutput) GoString() string {
  47684. return s.String()
  47685. }
  47686. // SetCidrBlockAssociation sets the CidrBlockAssociation field's value.
  47687. func (s *DisassociateVpcCidrBlockOutput) SetCidrBlockAssociation(v *VpcCidrBlockAssociation) *DisassociateVpcCidrBlockOutput {
  47688. s.CidrBlockAssociation = v
  47689. return s
  47690. }
  47691. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  47692. func (s *DisassociateVpcCidrBlockOutput) SetIpv6CidrBlockAssociation(v *VpcIpv6CidrBlockAssociation) *DisassociateVpcCidrBlockOutput {
  47693. s.Ipv6CidrBlockAssociation = v
  47694. return s
  47695. }
  47696. // SetVpcId sets the VpcId field's value.
  47697. func (s *DisassociateVpcCidrBlockOutput) SetVpcId(v string) *DisassociateVpcCidrBlockOutput {
  47698. s.VpcId = &v
  47699. return s
  47700. }
  47701. // Describes a disk image.
  47702. type DiskImage struct {
  47703. _ struct{} `type:"structure"`
  47704. // A description of the disk image.
  47705. Description *string `type:"string"`
  47706. // Information about the disk image.
  47707. Image *DiskImageDetail `type:"structure"`
  47708. // Information about the volume.
  47709. Volume *VolumeDetail `type:"structure"`
  47710. }
  47711. // String returns the string representation
  47712. func (s DiskImage) String() string {
  47713. return awsutil.Prettify(s)
  47714. }
  47715. // GoString returns the string representation
  47716. func (s DiskImage) GoString() string {
  47717. return s.String()
  47718. }
  47719. // Validate inspects the fields of the type to determine if they are valid.
  47720. func (s *DiskImage) Validate() error {
  47721. invalidParams := request.ErrInvalidParams{Context: "DiskImage"}
  47722. if s.Image != nil {
  47723. if err := s.Image.Validate(); err != nil {
  47724. invalidParams.AddNested("Image", err.(request.ErrInvalidParams))
  47725. }
  47726. }
  47727. if s.Volume != nil {
  47728. if err := s.Volume.Validate(); err != nil {
  47729. invalidParams.AddNested("Volume", err.(request.ErrInvalidParams))
  47730. }
  47731. }
  47732. if invalidParams.Len() > 0 {
  47733. return invalidParams
  47734. }
  47735. return nil
  47736. }
  47737. // SetDescription sets the Description field's value.
  47738. func (s *DiskImage) SetDescription(v string) *DiskImage {
  47739. s.Description = &v
  47740. return s
  47741. }
  47742. // SetImage sets the Image field's value.
  47743. func (s *DiskImage) SetImage(v *DiskImageDetail) *DiskImage {
  47744. s.Image = v
  47745. return s
  47746. }
  47747. // SetVolume sets the Volume field's value.
  47748. func (s *DiskImage) SetVolume(v *VolumeDetail) *DiskImage {
  47749. s.Volume = v
  47750. return s
  47751. }
  47752. // Describes a disk image.
  47753. type DiskImageDescription struct {
  47754. _ struct{} `type:"structure"`
  47755. // The checksum computed for the disk image.
  47756. Checksum *string `locationName:"checksum" type:"string"`
  47757. // The disk image format.
  47758. Format *string `locationName:"format" type:"string" enum:"DiskImageFormat"`
  47759. // A presigned URL for the import manifest stored in Amazon S3. For information
  47760. // about creating a presigned URL for an Amazon S3 object, read the "Query String
  47761. // Request Authentication Alternative" section of the Authenticating REST Requests
  47762. // (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
  47763. // topic in the Amazon Simple Storage Service Developer Guide.
  47764. //
  47765. // For information about the import manifest referenced by this API action,
  47766. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  47767. ImportManifestUrl *string `locationName:"importManifestUrl" type:"string"`
  47768. // The size of the disk image, in GiB.
  47769. Size *int64 `locationName:"size" type:"long"`
  47770. }
  47771. // String returns the string representation
  47772. func (s DiskImageDescription) String() string {
  47773. return awsutil.Prettify(s)
  47774. }
  47775. // GoString returns the string representation
  47776. func (s DiskImageDescription) GoString() string {
  47777. return s.String()
  47778. }
  47779. // SetChecksum sets the Checksum field's value.
  47780. func (s *DiskImageDescription) SetChecksum(v string) *DiskImageDescription {
  47781. s.Checksum = &v
  47782. return s
  47783. }
  47784. // SetFormat sets the Format field's value.
  47785. func (s *DiskImageDescription) SetFormat(v string) *DiskImageDescription {
  47786. s.Format = &v
  47787. return s
  47788. }
  47789. // SetImportManifestUrl sets the ImportManifestUrl field's value.
  47790. func (s *DiskImageDescription) SetImportManifestUrl(v string) *DiskImageDescription {
  47791. s.ImportManifestUrl = &v
  47792. return s
  47793. }
  47794. // SetSize sets the Size field's value.
  47795. func (s *DiskImageDescription) SetSize(v int64) *DiskImageDescription {
  47796. s.Size = &v
  47797. return s
  47798. }
  47799. // Describes a disk image.
  47800. type DiskImageDetail struct {
  47801. _ struct{} `type:"structure"`
  47802. // The size of the disk image, in GiB.
  47803. //
  47804. // Bytes is a required field
  47805. Bytes *int64 `locationName:"bytes" type:"long" required:"true"`
  47806. // The disk image format.
  47807. //
  47808. // Format is a required field
  47809. Format *string `locationName:"format" type:"string" required:"true" enum:"DiskImageFormat"`
  47810. // A presigned URL for the import manifest stored in Amazon S3 and presented
  47811. // here as an Amazon S3 presigned URL. For information about creating a presigned
  47812. // URL for an Amazon S3 object, read the "Query String Request Authentication
  47813. // Alternative" section of the Authenticating REST Requests (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
  47814. // topic in the Amazon Simple Storage Service Developer Guide.
  47815. //
  47816. // For information about the import manifest referenced by this API action,
  47817. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  47818. //
  47819. // ImportManifestUrl is a required field
  47820. ImportManifestUrl *string `locationName:"importManifestUrl" type:"string" required:"true"`
  47821. }
  47822. // String returns the string representation
  47823. func (s DiskImageDetail) String() string {
  47824. return awsutil.Prettify(s)
  47825. }
  47826. // GoString returns the string representation
  47827. func (s DiskImageDetail) GoString() string {
  47828. return s.String()
  47829. }
  47830. // Validate inspects the fields of the type to determine if they are valid.
  47831. func (s *DiskImageDetail) Validate() error {
  47832. invalidParams := request.ErrInvalidParams{Context: "DiskImageDetail"}
  47833. if s.Bytes == nil {
  47834. invalidParams.Add(request.NewErrParamRequired("Bytes"))
  47835. }
  47836. if s.Format == nil {
  47837. invalidParams.Add(request.NewErrParamRequired("Format"))
  47838. }
  47839. if s.ImportManifestUrl == nil {
  47840. invalidParams.Add(request.NewErrParamRequired("ImportManifestUrl"))
  47841. }
  47842. if invalidParams.Len() > 0 {
  47843. return invalidParams
  47844. }
  47845. return nil
  47846. }
  47847. // SetBytes sets the Bytes field's value.
  47848. func (s *DiskImageDetail) SetBytes(v int64) *DiskImageDetail {
  47849. s.Bytes = &v
  47850. return s
  47851. }
  47852. // SetFormat sets the Format field's value.
  47853. func (s *DiskImageDetail) SetFormat(v string) *DiskImageDetail {
  47854. s.Format = &v
  47855. return s
  47856. }
  47857. // SetImportManifestUrl sets the ImportManifestUrl field's value.
  47858. func (s *DiskImageDetail) SetImportManifestUrl(v string) *DiskImageDetail {
  47859. s.ImportManifestUrl = &v
  47860. return s
  47861. }
  47862. // Describes a disk image volume.
  47863. type DiskImageVolumeDescription struct {
  47864. _ struct{} `type:"structure"`
  47865. // The volume identifier.
  47866. Id *string `locationName:"id" type:"string"`
  47867. // The size of the volume, in GiB.
  47868. Size *int64 `locationName:"size" type:"long"`
  47869. }
  47870. // String returns the string representation
  47871. func (s DiskImageVolumeDescription) String() string {
  47872. return awsutil.Prettify(s)
  47873. }
  47874. // GoString returns the string representation
  47875. func (s DiskImageVolumeDescription) GoString() string {
  47876. return s.String()
  47877. }
  47878. // SetId sets the Id field's value.
  47879. func (s *DiskImageVolumeDescription) SetId(v string) *DiskImageVolumeDescription {
  47880. s.Id = &v
  47881. return s
  47882. }
  47883. // SetSize sets the Size field's value.
  47884. func (s *DiskImageVolumeDescription) SetSize(v int64) *DiskImageVolumeDescription {
  47885. s.Size = &v
  47886. return s
  47887. }
  47888. // Describes a DNS entry.
  47889. type DnsEntry struct {
  47890. _ struct{} `type:"structure"`
  47891. // The DNS name.
  47892. DnsName *string `locationName:"dnsName" type:"string"`
  47893. // The ID of the private hosted zone.
  47894. HostedZoneId *string `locationName:"hostedZoneId" type:"string"`
  47895. }
  47896. // String returns the string representation
  47897. func (s DnsEntry) String() string {
  47898. return awsutil.Prettify(s)
  47899. }
  47900. // GoString returns the string representation
  47901. func (s DnsEntry) GoString() string {
  47902. return s.String()
  47903. }
  47904. // SetDnsName sets the DnsName field's value.
  47905. func (s *DnsEntry) SetDnsName(v string) *DnsEntry {
  47906. s.DnsName = &v
  47907. return s
  47908. }
  47909. // SetHostedZoneId sets the HostedZoneId field's value.
  47910. func (s *DnsEntry) SetHostedZoneId(v string) *DnsEntry {
  47911. s.HostedZoneId = &v
  47912. return s
  47913. }
  47914. // Information about the DNS server to be used.
  47915. type DnsServersOptionsModifyStructure struct {
  47916. _ struct{} `type:"structure"`
  47917. // The IPv4 address range, in CIDR notation, of the DNS servers to be used.
  47918. // You can specify up to two DNS servers. Ensure that the DNS servers can be
  47919. // reached by the clients. The specified values overwrite the existing values.
  47920. CustomDnsServers []*string `locationNameList:"item" type:"list"`
  47921. // Indicates whether DNS servers should be used. Specify False to delete the
  47922. // existing DNS servers.
  47923. Enabled *bool `type:"boolean"`
  47924. }
  47925. // String returns the string representation
  47926. func (s DnsServersOptionsModifyStructure) String() string {
  47927. return awsutil.Prettify(s)
  47928. }
  47929. // GoString returns the string representation
  47930. func (s DnsServersOptionsModifyStructure) GoString() string {
  47931. return s.String()
  47932. }
  47933. // SetCustomDnsServers sets the CustomDnsServers field's value.
  47934. func (s *DnsServersOptionsModifyStructure) SetCustomDnsServers(v []*string) *DnsServersOptionsModifyStructure {
  47935. s.CustomDnsServers = v
  47936. return s
  47937. }
  47938. // SetEnabled sets the Enabled field's value.
  47939. func (s *DnsServersOptionsModifyStructure) SetEnabled(v bool) *DnsServersOptionsModifyStructure {
  47940. s.Enabled = &v
  47941. return s
  47942. }
  47943. // Describes a block device for an EBS volume.
  47944. type EbsBlockDevice struct {
  47945. _ struct{} `type:"structure"`
  47946. // Indicates whether the EBS volume is deleted on instance termination.
  47947. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  47948. // Indicates whether the EBS volume is encrypted. Encrypted volumes can only
  47949. // be attached to instances that support Amazon EBS encryption.
  47950. //
  47951. // If you are creating a volume from a snapshot, you cannot specify an encryption
  47952. // value. This is because only blank volumes can be encrypted on creation. If
  47953. // you are creating a snapshot from an existing EBS volume, you cannot specify
  47954. // an encryption value that differs from that of the EBS volume. We recommend
  47955. // that you omit the encryption value from the block device mappings when creating
  47956. // an image from an instance.
  47957. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  47958. // The number of I/O operations per second (IOPS) that the volume supports.
  47959. // For io1, this represents the number of IOPS that are provisioned for the
  47960. // volume. For gp2, this represents the baseline performance of the volume and
  47961. // the rate at which the volume accumulates I/O credits for bursting. For more
  47962. // information about General Purpose SSD baseline performance, I/O credits,
  47963. // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  47964. // in the Amazon Elastic Compute Cloud User Guide.
  47965. //
  47966. // Constraints: Range is 100-16,000 IOPS for gp2 volumes and 100 to 64,000IOPS
  47967. // for io1 volumes in most Regions. Maximum io1IOPS of 64,000 is guaranteed
  47968. // only on Nitro-based instances (AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances).
  47969. // Other instance families guarantee performance up to 32,000 IOPS. For more
  47970. // information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  47971. // in the Amazon Elastic Compute Cloud User Guide.
  47972. //
  47973. // Condition: This parameter is required for requests to create io1 volumes;
  47974. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  47975. Iops *int64 `locationName:"iops" type:"integer"`
  47976. // Identifier (key ID, key alias, ID ARN, or alias ARN) for a user-managed CMK
  47977. // under which the EBS volume is encrypted.
  47978. //
  47979. // This parameter is only supported on BlockDeviceMapping objects called by
  47980. // RunInstances (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html),
  47981. // RequestSpotFleet (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html),
  47982. // and RequestSpotInstances (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html).
  47983. KmsKeyId *string `type:"string"`
  47984. // The ID of the snapshot.
  47985. SnapshotId *string `locationName:"snapshotId" type:"string"`
  47986. // The size of the volume, in GiB.
  47987. //
  47988. // Constraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned
  47989. // IOPS SSD (io1), 500-16384 for Throughput Optimized HDD (st1), 500-16384 for
  47990. // Cold HDD (sc1), and 1-1024 for Magnetic (standard) volumes. If you specify
  47991. // a snapshot, the volume size must be equal to or larger than the snapshot
  47992. // size.
  47993. //
  47994. // Default: If you're creating the volume from a snapshot and don't specify
  47995. // a volume size, the default is the snapshot size.
  47996. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  47997. // The volume type: gp2, io1, st1, sc1, or standard.
  47998. //
  47999. // Default: standard
  48000. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  48001. }
  48002. // String returns the string representation
  48003. func (s EbsBlockDevice) String() string {
  48004. return awsutil.Prettify(s)
  48005. }
  48006. // GoString returns the string representation
  48007. func (s EbsBlockDevice) GoString() string {
  48008. return s.String()
  48009. }
  48010. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  48011. func (s *EbsBlockDevice) SetDeleteOnTermination(v bool) *EbsBlockDevice {
  48012. s.DeleteOnTermination = &v
  48013. return s
  48014. }
  48015. // SetEncrypted sets the Encrypted field's value.
  48016. func (s *EbsBlockDevice) SetEncrypted(v bool) *EbsBlockDevice {
  48017. s.Encrypted = &v
  48018. return s
  48019. }
  48020. // SetIops sets the Iops field's value.
  48021. func (s *EbsBlockDevice) SetIops(v int64) *EbsBlockDevice {
  48022. s.Iops = &v
  48023. return s
  48024. }
  48025. // SetKmsKeyId sets the KmsKeyId field's value.
  48026. func (s *EbsBlockDevice) SetKmsKeyId(v string) *EbsBlockDevice {
  48027. s.KmsKeyId = &v
  48028. return s
  48029. }
  48030. // SetSnapshotId sets the SnapshotId field's value.
  48031. func (s *EbsBlockDevice) SetSnapshotId(v string) *EbsBlockDevice {
  48032. s.SnapshotId = &v
  48033. return s
  48034. }
  48035. // SetVolumeSize sets the VolumeSize field's value.
  48036. func (s *EbsBlockDevice) SetVolumeSize(v int64) *EbsBlockDevice {
  48037. s.VolumeSize = &v
  48038. return s
  48039. }
  48040. // SetVolumeType sets the VolumeType field's value.
  48041. func (s *EbsBlockDevice) SetVolumeType(v string) *EbsBlockDevice {
  48042. s.VolumeType = &v
  48043. return s
  48044. }
  48045. // Describes a parameter used to set up an EBS volume in a block device mapping.
  48046. type EbsInstanceBlockDevice struct {
  48047. _ struct{} `type:"structure"`
  48048. // The time stamp when the attachment initiated.
  48049. AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
  48050. // Indicates whether the volume is deleted on instance termination.
  48051. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  48052. // The attachment state.
  48053. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  48054. // The ID of the EBS volume.
  48055. VolumeId *string `locationName:"volumeId" type:"string"`
  48056. }
  48057. // String returns the string representation
  48058. func (s EbsInstanceBlockDevice) String() string {
  48059. return awsutil.Prettify(s)
  48060. }
  48061. // GoString returns the string representation
  48062. func (s EbsInstanceBlockDevice) GoString() string {
  48063. return s.String()
  48064. }
  48065. // SetAttachTime sets the AttachTime field's value.
  48066. func (s *EbsInstanceBlockDevice) SetAttachTime(v time.Time) *EbsInstanceBlockDevice {
  48067. s.AttachTime = &v
  48068. return s
  48069. }
  48070. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  48071. func (s *EbsInstanceBlockDevice) SetDeleteOnTermination(v bool) *EbsInstanceBlockDevice {
  48072. s.DeleteOnTermination = &v
  48073. return s
  48074. }
  48075. // SetStatus sets the Status field's value.
  48076. func (s *EbsInstanceBlockDevice) SetStatus(v string) *EbsInstanceBlockDevice {
  48077. s.Status = &v
  48078. return s
  48079. }
  48080. // SetVolumeId sets the VolumeId field's value.
  48081. func (s *EbsInstanceBlockDevice) SetVolumeId(v string) *EbsInstanceBlockDevice {
  48082. s.VolumeId = &v
  48083. return s
  48084. }
  48085. // Describes information used to set up an EBS volume specified in a block device
  48086. // mapping.
  48087. type EbsInstanceBlockDeviceSpecification struct {
  48088. _ struct{} `type:"structure"`
  48089. // Indicates whether the volume is deleted on instance termination.
  48090. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  48091. // The ID of the EBS volume.
  48092. VolumeId *string `locationName:"volumeId" type:"string"`
  48093. }
  48094. // String returns the string representation
  48095. func (s EbsInstanceBlockDeviceSpecification) String() string {
  48096. return awsutil.Prettify(s)
  48097. }
  48098. // GoString returns the string representation
  48099. func (s EbsInstanceBlockDeviceSpecification) GoString() string {
  48100. return s.String()
  48101. }
  48102. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  48103. func (s *EbsInstanceBlockDeviceSpecification) SetDeleteOnTermination(v bool) *EbsInstanceBlockDeviceSpecification {
  48104. s.DeleteOnTermination = &v
  48105. return s
  48106. }
  48107. // SetVolumeId sets the VolumeId field's value.
  48108. func (s *EbsInstanceBlockDeviceSpecification) SetVolumeId(v string) *EbsInstanceBlockDeviceSpecification {
  48109. s.VolumeId = &v
  48110. return s
  48111. }
  48112. // Describes an egress-only internet gateway.
  48113. type EgressOnlyInternetGateway struct {
  48114. _ struct{} `type:"structure"`
  48115. // Information about the attachment of the egress-only internet gateway.
  48116. Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  48117. // The ID of the egress-only internet gateway.
  48118. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  48119. }
  48120. // String returns the string representation
  48121. func (s EgressOnlyInternetGateway) String() string {
  48122. return awsutil.Prettify(s)
  48123. }
  48124. // GoString returns the string representation
  48125. func (s EgressOnlyInternetGateway) GoString() string {
  48126. return s.String()
  48127. }
  48128. // SetAttachments sets the Attachments field's value.
  48129. func (s *EgressOnlyInternetGateway) SetAttachments(v []*InternetGatewayAttachment) *EgressOnlyInternetGateway {
  48130. s.Attachments = v
  48131. return s
  48132. }
  48133. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  48134. func (s *EgressOnlyInternetGateway) SetEgressOnlyInternetGatewayId(v string) *EgressOnlyInternetGateway {
  48135. s.EgressOnlyInternetGatewayId = &v
  48136. return s
  48137. }
  48138. // Describes the association between an instance and an Elastic Graphics accelerator.
  48139. type ElasticGpuAssociation struct {
  48140. _ struct{} `type:"structure"`
  48141. // The ID of the association.
  48142. ElasticGpuAssociationId *string `locationName:"elasticGpuAssociationId" type:"string"`
  48143. // The state of the association between the instance and the Elastic Graphics
  48144. // accelerator.
  48145. ElasticGpuAssociationState *string `locationName:"elasticGpuAssociationState" type:"string"`
  48146. // The time the Elastic Graphics accelerator was associated with the instance.
  48147. ElasticGpuAssociationTime *string `locationName:"elasticGpuAssociationTime" type:"string"`
  48148. // The ID of the Elastic Graphics accelerator.
  48149. ElasticGpuId *string `locationName:"elasticGpuId" type:"string"`
  48150. }
  48151. // String returns the string representation
  48152. func (s ElasticGpuAssociation) String() string {
  48153. return awsutil.Prettify(s)
  48154. }
  48155. // GoString returns the string representation
  48156. func (s ElasticGpuAssociation) GoString() string {
  48157. return s.String()
  48158. }
  48159. // SetElasticGpuAssociationId sets the ElasticGpuAssociationId field's value.
  48160. func (s *ElasticGpuAssociation) SetElasticGpuAssociationId(v string) *ElasticGpuAssociation {
  48161. s.ElasticGpuAssociationId = &v
  48162. return s
  48163. }
  48164. // SetElasticGpuAssociationState sets the ElasticGpuAssociationState field's value.
  48165. func (s *ElasticGpuAssociation) SetElasticGpuAssociationState(v string) *ElasticGpuAssociation {
  48166. s.ElasticGpuAssociationState = &v
  48167. return s
  48168. }
  48169. // SetElasticGpuAssociationTime sets the ElasticGpuAssociationTime field's value.
  48170. func (s *ElasticGpuAssociation) SetElasticGpuAssociationTime(v string) *ElasticGpuAssociation {
  48171. s.ElasticGpuAssociationTime = &v
  48172. return s
  48173. }
  48174. // SetElasticGpuId sets the ElasticGpuId field's value.
  48175. func (s *ElasticGpuAssociation) SetElasticGpuId(v string) *ElasticGpuAssociation {
  48176. s.ElasticGpuId = &v
  48177. return s
  48178. }
  48179. // Describes the status of an Elastic Graphics accelerator.
  48180. type ElasticGpuHealth struct {
  48181. _ struct{} `type:"structure"`
  48182. // The health status.
  48183. Status *string `locationName:"status" type:"string" enum:"ElasticGpuStatus"`
  48184. }
  48185. // String returns the string representation
  48186. func (s ElasticGpuHealth) String() string {
  48187. return awsutil.Prettify(s)
  48188. }
  48189. // GoString returns the string representation
  48190. func (s ElasticGpuHealth) GoString() string {
  48191. return s.String()
  48192. }
  48193. // SetStatus sets the Status field's value.
  48194. func (s *ElasticGpuHealth) SetStatus(v string) *ElasticGpuHealth {
  48195. s.Status = &v
  48196. return s
  48197. }
  48198. // A specification for an Elastic Graphics accelerator.
  48199. type ElasticGpuSpecification struct {
  48200. _ struct{} `type:"structure"`
  48201. // The type of Elastic Graphics accelerator.
  48202. //
  48203. // Type is a required field
  48204. Type *string `type:"string" required:"true"`
  48205. }
  48206. // String returns the string representation
  48207. func (s ElasticGpuSpecification) String() string {
  48208. return awsutil.Prettify(s)
  48209. }
  48210. // GoString returns the string representation
  48211. func (s ElasticGpuSpecification) GoString() string {
  48212. return s.String()
  48213. }
  48214. // Validate inspects the fields of the type to determine if they are valid.
  48215. func (s *ElasticGpuSpecification) Validate() error {
  48216. invalidParams := request.ErrInvalidParams{Context: "ElasticGpuSpecification"}
  48217. if s.Type == nil {
  48218. invalidParams.Add(request.NewErrParamRequired("Type"))
  48219. }
  48220. if invalidParams.Len() > 0 {
  48221. return invalidParams
  48222. }
  48223. return nil
  48224. }
  48225. // SetType sets the Type field's value.
  48226. func (s *ElasticGpuSpecification) SetType(v string) *ElasticGpuSpecification {
  48227. s.Type = &v
  48228. return s
  48229. }
  48230. // Describes an elastic GPU.
  48231. type ElasticGpuSpecificationResponse struct {
  48232. _ struct{} `type:"structure"`
  48233. // The elastic GPU type.
  48234. Type *string `locationName:"type" type:"string"`
  48235. }
  48236. // String returns the string representation
  48237. func (s ElasticGpuSpecificationResponse) String() string {
  48238. return awsutil.Prettify(s)
  48239. }
  48240. // GoString returns the string representation
  48241. func (s ElasticGpuSpecificationResponse) GoString() string {
  48242. return s.String()
  48243. }
  48244. // SetType sets the Type field's value.
  48245. func (s *ElasticGpuSpecificationResponse) SetType(v string) *ElasticGpuSpecificationResponse {
  48246. s.Type = &v
  48247. return s
  48248. }
  48249. // Describes an Elastic Graphics accelerator.
  48250. type ElasticGpus struct {
  48251. _ struct{} `type:"structure"`
  48252. // The Availability Zone in the which the Elastic Graphics accelerator resides.
  48253. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  48254. // The status of the Elastic Graphics accelerator.
  48255. ElasticGpuHealth *ElasticGpuHealth `locationName:"elasticGpuHealth" type:"structure"`
  48256. // The ID of the Elastic Graphics accelerator.
  48257. ElasticGpuId *string `locationName:"elasticGpuId" type:"string"`
  48258. // The state of the Elastic Graphics accelerator.
  48259. ElasticGpuState *string `locationName:"elasticGpuState" type:"string" enum:"ElasticGpuState"`
  48260. // The type of Elastic Graphics accelerator.
  48261. ElasticGpuType *string `locationName:"elasticGpuType" type:"string"`
  48262. // The ID of the instance to which the Elastic Graphics accelerator is attached.
  48263. InstanceId *string `locationName:"instanceId" type:"string"`
  48264. }
  48265. // String returns the string representation
  48266. func (s ElasticGpus) String() string {
  48267. return awsutil.Prettify(s)
  48268. }
  48269. // GoString returns the string representation
  48270. func (s ElasticGpus) GoString() string {
  48271. return s.String()
  48272. }
  48273. // SetAvailabilityZone sets the AvailabilityZone field's value.
  48274. func (s *ElasticGpus) SetAvailabilityZone(v string) *ElasticGpus {
  48275. s.AvailabilityZone = &v
  48276. return s
  48277. }
  48278. // SetElasticGpuHealth sets the ElasticGpuHealth field's value.
  48279. func (s *ElasticGpus) SetElasticGpuHealth(v *ElasticGpuHealth) *ElasticGpus {
  48280. s.ElasticGpuHealth = v
  48281. return s
  48282. }
  48283. // SetElasticGpuId sets the ElasticGpuId field's value.
  48284. func (s *ElasticGpus) SetElasticGpuId(v string) *ElasticGpus {
  48285. s.ElasticGpuId = &v
  48286. return s
  48287. }
  48288. // SetElasticGpuState sets the ElasticGpuState field's value.
  48289. func (s *ElasticGpus) SetElasticGpuState(v string) *ElasticGpus {
  48290. s.ElasticGpuState = &v
  48291. return s
  48292. }
  48293. // SetElasticGpuType sets the ElasticGpuType field's value.
  48294. func (s *ElasticGpus) SetElasticGpuType(v string) *ElasticGpus {
  48295. s.ElasticGpuType = &v
  48296. return s
  48297. }
  48298. // SetInstanceId sets the InstanceId field's value.
  48299. func (s *ElasticGpus) SetInstanceId(v string) *ElasticGpus {
  48300. s.InstanceId = &v
  48301. return s
  48302. }
  48303. // Describes an elastic inference accelerator.
  48304. type ElasticInferenceAccelerator struct {
  48305. _ struct{} `type:"structure"`
  48306. // The type of elastic inference accelerator. The possible values are eia1.small,
  48307. // eia1.medium, and eia1.large.
  48308. //
  48309. // Type is a required field
  48310. Type *string `type:"string" required:"true"`
  48311. }
  48312. // String returns the string representation
  48313. func (s ElasticInferenceAccelerator) String() string {
  48314. return awsutil.Prettify(s)
  48315. }
  48316. // GoString returns the string representation
  48317. func (s ElasticInferenceAccelerator) GoString() string {
  48318. return s.String()
  48319. }
  48320. // Validate inspects the fields of the type to determine if they are valid.
  48321. func (s *ElasticInferenceAccelerator) Validate() error {
  48322. invalidParams := request.ErrInvalidParams{Context: "ElasticInferenceAccelerator"}
  48323. if s.Type == nil {
  48324. invalidParams.Add(request.NewErrParamRequired("Type"))
  48325. }
  48326. if invalidParams.Len() > 0 {
  48327. return invalidParams
  48328. }
  48329. return nil
  48330. }
  48331. // SetType sets the Type field's value.
  48332. func (s *ElasticInferenceAccelerator) SetType(v string) *ElasticInferenceAccelerator {
  48333. s.Type = &v
  48334. return s
  48335. }
  48336. // Describes the association between an instance and an elastic inference accelerator.
  48337. type ElasticInferenceAcceleratorAssociation struct {
  48338. _ struct{} `type:"structure"`
  48339. // The Amazon Resource Name (ARN) of the elastic inference accelerator.
  48340. ElasticInferenceAcceleratorArn *string `locationName:"elasticInferenceAcceleratorArn" type:"string"`
  48341. // The ID of the association.
  48342. ElasticInferenceAcceleratorAssociationId *string `locationName:"elasticInferenceAcceleratorAssociationId" type:"string"`
  48343. // The state of the elastic inference accelerator.
  48344. ElasticInferenceAcceleratorAssociationState *string `locationName:"elasticInferenceAcceleratorAssociationState" type:"string"`
  48345. // The time at which the elastic inference accelerator is associated with an
  48346. // instance.
  48347. ElasticInferenceAcceleratorAssociationTime *time.Time `locationName:"elasticInferenceAcceleratorAssociationTime" type:"timestamp"`
  48348. }
  48349. // String returns the string representation
  48350. func (s ElasticInferenceAcceleratorAssociation) String() string {
  48351. return awsutil.Prettify(s)
  48352. }
  48353. // GoString returns the string representation
  48354. func (s ElasticInferenceAcceleratorAssociation) GoString() string {
  48355. return s.String()
  48356. }
  48357. // SetElasticInferenceAcceleratorArn sets the ElasticInferenceAcceleratorArn field's value.
  48358. func (s *ElasticInferenceAcceleratorAssociation) SetElasticInferenceAcceleratorArn(v string) *ElasticInferenceAcceleratorAssociation {
  48359. s.ElasticInferenceAcceleratorArn = &v
  48360. return s
  48361. }
  48362. // SetElasticInferenceAcceleratorAssociationId sets the ElasticInferenceAcceleratorAssociationId field's value.
  48363. func (s *ElasticInferenceAcceleratorAssociation) SetElasticInferenceAcceleratorAssociationId(v string) *ElasticInferenceAcceleratorAssociation {
  48364. s.ElasticInferenceAcceleratorAssociationId = &v
  48365. return s
  48366. }
  48367. // SetElasticInferenceAcceleratorAssociationState sets the ElasticInferenceAcceleratorAssociationState field's value.
  48368. func (s *ElasticInferenceAcceleratorAssociation) SetElasticInferenceAcceleratorAssociationState(v string) *ElasticInferenceAcceleratorAssociation {
  48369. s.ElasticInferenceAcceleratorAssociationState = &v
  48370. return s
  48371. }
  48372. // SetElasticInferenceAcceleratorAssociationTime sets the ElasticInferenceAcceleratorAssociationTime field's value.
  48373. func (s *ElasticInferenceAcceleratorAssociation) SetElasticInferenceAcceleratorAssociationTime(v time.Time) *ElasticInferenceAcceleratorAssociation {
  48374. s.ElasticInferenceAcceleratorAssociationTime = &v
  48375. return s
  48376. }
  48377. type EnableTransitGatewayRouteTablePropagationInput struct {
  48378. _ struct{} `type:"structure"`
  48379. // Checks whether you have the required permissions for the action, without
  48380. // actually making the request, and provides an error response. If you have
  48381. // the required permissions, the error response is DryRunOperation. Otherwise,
  48382. // it is UnauthorizedOperation.
  48383. DryRun *bool `type:"boolean"`
  48384. // The ID of the attachment.
  48385. //
  48386. // TransitGatewayAttachmentId is a required field
  48387. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  48388. // The ID of the propagation route table.
  48389. //
  48390. // TransitGatewayRouteTableId is a required field
  48391. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  48392. }
  48393. // String returns the string representation
  48394. func (s EnableTransitGatewayRouteTablePropagationInput) String() string {
  48395. return awsutil.Prettify(s)
  48396. }
  48397. // GoString returns the string representation
  48398. func (s EnableTransitGatewayRouteTablePropagationInput) GoString() string {
  48399. return s.String()
  48400. }
  48401. // Validate inspects the fields of the type to determine if they are valid.
  48402. func (s *EnableTransitGatewayRouteTablePropagationInput) Validate() error {
  48403. invalidParams := request.ErrInvalidParams{Context: "EnableTransitGatewayRouteTablePropagationInput"}
  48404. if s.TransitGatewayAttachmentId == nil {
  48405. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  48406. }
  48407. if s.TransitGatewayRouteTableId == nil {
  48408. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  48409. }
  48410. if invalidParams.Len() > 0 {
  48411. return invalidParams
  48412. }
  48413. return nil
  48414. }
  48415. // SetDryRun sets the DryRun field's value.
  48416. func (s *EnableTransitGatewayRouteTablePropagationInput) SetDryRun(v bool) *EnableTransitGatewayRouteTablePropagationInput {
  48417. s.DryRun = &v
  48418. return s
  48419. }
  48420. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  48421. func (s *EnableTransitGatewayRouteTablePropagationInput) SetTransitGatewayAttachmentId(v string) *EnableTransitGatewayRouteTablePropagationInput {
  48422. s.TransitGatewayAttachmentId = &v
  48423. return s
  48424. }
  48425. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  48426. func (s *EnableTransitGatewayRouteTablePropagationInput) SetTransitGatewayRouteTableId(v string) *EnableTransitGatewayRouteTablePropagationInput {
  48427. s.TransitGatewayRouteTableId = &v
  48428. return s
  48429. }
  48430. type EnableTransitGatewayRouteTablePropagationOutput struct {
  48431. _ struct{} `type:"structure"`
  48432. // Information about route propagation.
  48433. Propagation *TransitGatewayPropagation `locationName:"propagation" type:"structure"`
  48434. }
  48435. // String returns the string representation
  48436. func (s EnableTransitGatewayRouteTablePropagationOutput) String() string {
  48437. return awsutil.Prettify(s)
  48438. }
  48439. // GoString returns the string representation
  48440. func (s EnableTransitGatewayRouteTablePropagationOutput) GoString() string {
  48441. return s.String()
  48442. }
  48443. // SetPropagation sets the Propagation field's value.
  48444. func (s *EnableTransitGatewayRouteTablePropagationOutput) SetPropagation(v *TransitGatewayPropagation) *EnableTransitGatewayRouteTablePropagationOutput {
  48445. s.Propagation = v
  48446. return s
  48447. }
  48448. // Contains the parameters for EnableVgwRoutePropagation.
  48449. type EnableVgwRoutePropagationInput struct {
  48450. _ struct{} `type:"structure"`
  48451. // The ID of the virtual private gateway.
  48452. //
  48453. // GatewayId is a required field
  48454. GatewayId *string `type:"string" required:"true"`
  48455. // The ID of the route table.
  48456. //
  48457. // RouteTableId is a required field
  48458. RouteTableId *string `type:"string" required:"true"`
  48459. }
  48460. // String returns the string representation
  48461. func (s EnableVgwRoutePropagationInput) String() string {
  48462. return awsutil.Prettify(s)
  48463. }
  48464. // GoString returns the string representation
  48465. func (s EnableVgwRoutePropagationInput) GoString() string {
  48466. return s.String()
  48467. }
  48468. // Validate inspects the fields of the type to determine if they are valid.
  48469. func (s *EnableVgwRoutePropagationInput) Validate() error {
  48470. invalidParams := request.ErrInvalidParams{Context: "EnableVgwRoutePropagationInput"}
  48471. if s.GatewayId == nil {
  48472. invalidParams.Add(request.NewErrParamRequired("GatewayId"))
  48473. }
  48474. if s.RouteTableId == nil {
  48475. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  48476. }
  48477. if invalidParams.Len() > 0 {
  48478. return invalidParams
  48479. }
  48480. return nil
  48481. }
  48482. // SetGatewayId sets the GatewayId field's value.
  48483. func (s *EnableVgwRoutePropagationInput) SetGatewayId(v string) *EnableVgwRoutePropagationInput {
  48484. s.GatewayId = &v
  48485. return s
  48486. }
  48487. // SetRouteTableId sets the RouteTableId field's value.
  48488. func (s *EnableVgwRoutePropagationInput) SetRouteTableId(v string) *EnableVgwRoutePropagationInput {
  48489. s.RouteTableId = &v
  48490. return s
  48491. }
  48492. type EnableVgwRoutePropagationOutput struct {
  48493. _ struct{} `type:"structure"`
  48494. }
  48495. // String returns the string representation
  48496. func (s EnableVgwRoutePropagationOutput) String() string {
  48497. return awsutil.Prettify(s)
  48498. }
  48499. // GoString returns the string representation
  48500. func (s EnableVgwRoutePropagationOutput) GoString() string {
  48501. return s.String()
  48502. }
  48503. // Contains the parameters for EnableVolumeIO.
  48504. type EnableVolumeIOInput struct {
  48505. _ struct{} `type:"structure"`
  48506. // Checks whether you have the required permissions for the action, without
  48507. // actually making the request, and provides an error response. If you have
  48508. // the required permissions, the error response is DryRunOperation. Otherwise,
  48509. // it is UnauthorizedOperation.
  48510. DryRun *bool `locationName:"dryRun" type:"boolean"`
  48511. // The ID of the volume.
  48512. //
  48513. // VolumeId is a required field
  48514. VolumeId *string `locationName:"volumeId" type:"string" required:"true"`
  48515. }
  48516. // String returns the string representation
  48517. func (s EnableVolumeIOInput) String() string {
  48518. return awsutil.Prettify(s)
  48519. }
  48520. // GoString returns the string representation
  48521. func (s EnableVolumeIOInput) GoString() string {
  48522. return s.String()
  48523. }
  48524. // Validate inspects the fields of the type to determine if they are valid.
  48525. func (s *EnableVolumeIOInput) Validate() error {
  48526. invalidParams := request.ErrInvalidParams{Context: "EnableVolumeIOInput"}
  48527. if s.VolumeId == nil {
  48528. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  48529. }
  48530. if invalidParams.Len() > 0 {
  48531. return invalidParams
  48532. }
  48533. return nil
  48534. }
  48535. // SetDryRun sets the DryRun field's value.
  48536. func (s *EnableVolumeIOInput) SetDryRun(v bool) *EnableVolumeIOInput {
  48537. s.DryRun = &v
  48538. return s
  48539. }
  48540. // SetVolumeId sets the VolumeId field's value.
  48541. func (s *EnableVolumeIOInput) SetVolumeId(v string) *EnableVolumeIOInput {
  48542. s.VolumeId = &v
  48543. return s
  48544. }
  48545. type EnableVolumeIOOutput struct {
  48546. _ struct{} `type:"structure"`
  48547. }
  48548. // String returns the string representation
  48549. func (s EnableVolumeIOOutput) String() string {
  48550. return awsutil.Prettify(s)
  48551. }
  48552. // GoString returns the string representation
  48553. func (s EnableVolumeIOOutput) GoString() string {
  48554. return s.String()
  48555. }
  48556. type EnableVpcClassicLinkDnsSupportInput struct {
  48557. _ struct{} `type:"structure"`
  48558. // The ID of the VPC.
  48559. VpcId *string `type:"string"`
  48560. }
  48561. // String returns the string representation
  48562. func (s EnableVpcClassicLinkDnsSupportInput) String() string {
  48563. return awsutil.Prettify(s)
  48564. }
  48565. // GoString returns the string representation
  48566. func (s EnableVpcClassicLinkDnsSupportInput) GoString() string {
  48567. return s.String()
  48568. }
  48569. // SetVpcId sets the VpcId field's value.
  48570. func (s *EnableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *EnableVpcClassicLinkDnsSupportInput {
  48571. s.VpcId = &v
  48572. return s
  48573. }
  48574. type EnableVpcClassicLinkDnsSupportOutput struct {
  48575. _ struct{} `type:"structure"`
  48576. // Returns true if the request succeeds; otherwise, it returns an error.
  48577. Return *bool `locationName:"return" type:"boolean"`
  48578. }
  48579. // String returns the string representation
  48580. func (s EnableVpcClassicLinkDnsSupportOutput) String() string {
  48581. return awsutil.Prettify(s)
  48582. }
  48583. // GoString returns the string representation
  48584. func (s EnableVpcClassicLinkDnsSupportOutput) GoString() string {
  48585. return s.String()
  48586. }
  48587. // SetReturn sets the Return field's value.
  48588. func (s *EnableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *EnableVpcClassicLinkDnsSupportOutput {
  48589. s.Return = &v
  48590. return s
  48591. }
  48592. type EnableVpcClassicLinkInput struct {
  48593. _ struct{} `type:"structure"`
  48594. // Checks whether you have the required permissions for the action, without
  48595. // actually making the request, and provides an error response. If you have
  48596. // the required permissions, the error response is DryRunOperation. Otherwise,
  48597. // it is UnauthorizedOperation.
  48598. DryRun *bool `locationName:"dryRun" type:"boolean"`
  48599. // The ID of the VPC.
  48600. //
  48601. // VpcId is a required field
  48602. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  48603. }
  48604. // String returns the string representation
  48605. func (s EnableVpcClassicLinkInput) String() string {
  48606. return awsutil.Prettify(s)
  48607. }
  48608. // GoString returns the string representation
  48609. func (s EnableVpcClassicLinkInput) GoString() string {
  48610. return s.String()
  48611. }
  48612. // Validate inspects the fields of the type to determine if they are valid.
  48613. func (s *EnableVpcClassicLinkInput) Validate() error {
  48614. invalidParams := request.ErrInvalidParams{Context: "EnableVpcClassicLinkInput"}
  48615. if s.VpcId == nil {
  48616. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  48617. }
  48618. if invalidParams.Len() > 0 {
  48619. return invalidParams
  48620. }
  48621. return nil
  48622. }
  48623. // SetDryRun sets the DryRun field's value.
  48624. func (s *EnableVpcClassicLinkInput) SetDryRun(v bool) *EnableVpcClassicLinkInput {
  48625. s.DryRun = &v
  48626. return s
  48627. }
  48628. // SetVpcId sets the VpcId field's value.
  48629. func (s *EnableVpcClassicLinkInput) SetVpcId(v string) *EnableVpcClassicLinkInput {
  48630. s.VpcId = &v
  48631. return s
  48632. }
  48633. type EnableVpcClassicLinkOutput struct {
  48634. _ struct{} `type:"structure"`
  48635. // Returns true if the request succeeds; otherwise, it returns an error.
  48636. Return *bool `locationName:"return" type:"boolean"`
  48637. }
  48638. // String returns the string representation
  48639. func (s EnableVpcClassicLinkOutput) String() string {
  48640. return awsutil.Prettify(s)
  48641. }
  48642. // GoString returns the string representation
  48643. func (s EnableVpcClassicLinkOutput) GoString() string {
  48644. return s.String()
  48645. }
  48646. // SetReturn sets the Return field's value.
  48647. func (s *EnableVpcClassicLinkOutput) SetReturn(v bool) *EnableVpcClassicLinkOutput {
  48648. s.Return = &v
  48649. return s
  48650. }
  48651. // Describes a Spot Fleet event.
  48652. type EventInformation struct {
  48653. _ struct{} `type:"structure"`
  48654. // The description of the event.
  48655. EventDescription *string `locationName:"eventDescription" type:"string"`
  48656. // The event.
  48657. //
  48658. // The following are the error events:
  48659. //
  48660. // * iamFleetRoleInvalid - The Spot Fleet did not have the required permissions
  48661. // either to launch or terminate an instance.
  48662. //
  48663. // * launchSpecTemporarilyBlacklisted - The configuration is not valid and
  48664. // several attempts to launch instances have failed. For more information,
  48665. // see the description of the event.
  48666. //
  48667. // * spotFleetRequestConfigurationInvalid - The configuration is not valid.
  48668. // For more information, see the description of the event.
  48669. //
  48670. // * spotInstanceCountLimitExceeded - You've reached the limit on the number
  48671. // of Spot Instances that you can launch.
  48672. //
  48673. // The following are the fleetRequestChange events:
  48674. //
  48675. // * active - The Spot Fleet has been validated and Amazon EC2 is attempting
  48676. // to maintain the target number of running Spot Instances.
  48677. //
  48678. // * cancelled - The Spot Fleet is canceled and has no running Spot Instances.
  48679. // The Spot Fleet will be deleted two days after its instances were terminated.
  48680. //
  48681. // * cancelled_running - The Spot Fleet is canceled and does not launch additional
  48682. // Spot Instances. Existing Spot Instances continue to run until they are
  48683. // interrupted or terminated.
  48684. //
  48685. // * cancelled_terminating - The Spot Fleet is canceled and its Spot Instances
  48686. // are terminating.
  48687. //
  48688. // * expired - The Spot Fleet request has expired. A subsequent event indicates
  48689. // that the instances were terminated, if the request was created with TerminateInstancesWithExpiration
  48690. // set.
  48691. //
  48692. // * modify_in_progress - A request to modify the Spot Fleet request was
  48693. // accepted and is in progress.
  48694. //
  48695. // * modify_successful - The Spot Fleet request was modified.
  48696. //
  48697. // * price_update - The price for a launch configuration was adjusted because
  48698. // it was too high. This change is permanent.
  48699. //
  48700. // * submitted - The Spot Fleet request is being evaluated and Amazon EC2
  48701. // is preparing to launch the target number of Spot Instances.
  48702. //
  48703. // The following are the instanceChange events:
  48704. //
  48705. // * launched - A request was fulfilled and a new instance was launched.
  48706. //
  48707. // * terminated - An instance was terminated by the user.
  48708. //
  48709. // The following are the Information events:
  48710. //
  48711. // * launchSpecUnusable - The price in a launch specification is not valid
  48712. // because it is below the Spot price or the Spot price is above the On-Demand
  48713. // price.
  48714. //
  48715. // * fleetProgressHalted - The price in every launch specification is not
  48716. // valid. A launch specification might become valid if the Spot price changes.
  48717. EventSubType *string `locationName:"eventSubType" type:"string"`
  48718. // The ID of the instance. This information is available only for instanceChange
  48719. // events.
  48720. InstanceId *string `locationName:"instanceId" type:"string"`
  48721. }
  48722. // String returns the string representation
  48723. func (s EventInformation) String() string {
  48724. return awsutil.Prettify(s)
  48725. }
  48726. // GoString returns the string representation
  48727. func (s EventInformation) GoString() string {
  48728. return s.String()
  48729. }
  48730. // SetEventDescription sets the EventDescription field's value.
  48731. func (s *EventInformation) SetEventDescription(v string) *EventInformation {
  48732. s.EventDescription = &v
  48733. return s
  48734. }
  48735. // SetEventSubType sets the EventSubType field's value.
  48736. func (s *EventInformation) SetEventSubType(v string) *EventInformation {
  48737. s.EventSubType = &v
  48738. return s
  48739. }
  48740. // SetInstanceId sets the InstanceId field's value.
  48741. func (s *EventInformation) SetInstanceId(v string) *EventInformation {
  48742. s.InstanceId = &v
  48743. return s
  48744. }
  48745. type ExportClientVpnClientCertificateRevocationListInput struct {
  48746. _ struct{} `type:"structure"`
  48747. // The ID of the Client VPN endpoint.
  48748. //
  48749. // ClientVpnEndpointId is a required field
  48750. ClientVpnEndpointId *string `type:"string" required:"true"`
  48751. // Checks whether you have the required permissions for the action, without
  48752. // actually making the request, and provides an error response. If you have
  48753. // the required permissions, the error response is DryRunOperation. Otherwise,
  48754. // it is UnauthorizedOperation.
  48755. DryRun *bool `type:"boolean"`
  48756. }
  48757. // String returns the string representation
  48758. func (s ExportClientVpnClientCertificateRevocationListInput) String() string {
  48759. return awsutil.Prettify(s)
  48760. }
  48761. // GoString returns the string representation
  48762. func (s ExportClientVpnClientCertificateRevocationListInput) GoString() string {
  48763. return s.String()
  48764. }
  48765. // Validate inspects the fields of the type to determine if they are valid.
  48766. func (s *ExportClientVpnClientCertificateRevocationListInput) Validate() error {
  48767. invalidParams := request.ErrInvalidParams{Context: "ExportClientVpnClientCertificateRevocationListInput"}
  48768. if s.ClientVpnEndpointId == nil {
  48769. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  48770. }
  48771. if invalidParams.Len() > 0 {
  48772. return invalidParams
  48773. }
  48774. return nil
  48775. }
  48776. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  48777. func (s *ExportClientVpnClientCertificateRevocationListInput) SetClientVpnEndpointId(v string) *ExportClientVpnClientCertificateRevocationListInput {
  48778. s.ClientVpnEndpointId = &v
  48779. return s
  48780. }
  48781. // SetDryRun sets the DryRun field's value.
  48782. func (s *ExportClientVpnClientCertificateRevocationListInput) SetDryRun(v bool) *ExportClientVpnClientCertificateRevocationListInput {
  48783. s.DryRun = &v
  48784. return s
  48785. }
  48786. type ExportClientVpnClientCertificateRevocationListOutput struct {
  48787. _ struct{} `type:"structure"`
  48788. // Information about the client certificate revocation list.
  48789. CertificateRevocationList *string `locationName:"certificateRevocationList" type:"string"`
  48790. // The current state of the client certificate revocation list.
  48791. Status *ClientCertificateRevocationListStatus `locationName:"status" type:"structure"`
  48792. }
  48793. // String returns the string representation
  48794. func (s ExportClientVpnClientCertificateRevocationListOutput) String() string {
  48795. return awsutil.Prettify(s)
  48796. }
  48797. // GoString returns the string representation
  48798. func (s ExportClientVpnClientCertificateRevocationListOutput) GoString() string {
  48799. return s.String()
  48800. }
  48801. // SetCertificateRevocationList sets the CertificateRevocationList field's value.
  48802. func (s *ExportClientVpnClientCertificateRevocationListOutput) SetCertificateRevocationList(v string) *ExportClientVpnClientCertificateRevocationListOutput {
  48803. s.CertificateRevocationList = &v
  48804. return s
  48805. }
  48806. // SetStatus sets the Status field's value.
  48807. func (s *ExportClientVpnClientCertificateRevocationListOutput) SetStatus(v *ClientCertificateRevocationListStatus) *ExportClientVpnClientCertificateRevocationListOutput {
  48808. s.Status = v
  48809. return s
  48810. }
  48811. type ExportClientVpnClientConfigurationInput struct {
  48812. _ struct{} `type:"structure"`
  48813. // The ID of the Client VPN endpoint.
  48814. //
  48815. // ClientVpnEndpointId is a required field
  48816. ClientVpnEndpointId *string `type:"string" required:"true"`
  48817. // Checks whether you have the required permissions for the action, without
  48818. // actually making the request, and provides an error response. If you have
  48819. // the required permissions, the error response is DryRunOperation. Otherwise,
  48820. // it is UnauthorizedOperation.
  48821. DryRun *bool `type:"boolean"`
  48822. }
  48823. // String returns the string representation
  48824. func (s ExportClientVpnClientConfigurationInput) String() string {
  48825. return awsutil.Prettify(s)
  48826. }
  48827. // GoString returns the string representation
  48828. func (s ExportClientVpnClientConfigurationInput) GoString() string {
  48829. return s.String()
  48830. }
  48831. // Validate inspects the fields of the type to determine if they are valid.
  48832. func (s *ExportClientVpnClientConfigurationInput) Validate() error {
  48833. invalidParams := request.ErrInvalidParams{Context: "ExportClientVpnClientConfigurationInput"}
  48834. if s.ClientVpnEndpointId == nil {
  48835. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  48836. }
  48837. if invalidParams.Len() > 0 {
  48838. return invalidParams
  48839. }
  48840. return nil
  48841. }
  48842. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  48843. func (s *ExportClientVpnClientConfigurationInput) SetClientVpnEndpointId(v string) *ExportClientVpnClientConfigurationInput {
  48844. s.ClientVpnEndpointId = &v
  48845. return s
  48846. }
  48847. // SetDryRun sets the DryRun field's value.
  48848. func (s *ExportClientVpnClientConfigurationInput) SetDryRun(v bool) *ExportClientVpnClientConfigurationInput {
  48849. s.DryRun = &v
  48850. return s
  48851. }
  48852. type ExportClientVpnClientConfigurationOutput struct {
  48853. _ struct{} `type:"structure"`
  48854. // The contents of the Client VPN endpoint configuration file.
  48855. ClientConfiguration *string `locationName:"clientConfiguration" type:"string"`
  48856. }
  48857. // String returns the string representation
  48858. func (s ExportClientVpnClientConfigurationOutput) String() string {
  48859. return awsutil.Prettify(s)
  48860. }
  48861. // GoString returns the string representation
  48862. func (s ExportClientVpnClientConfigurationOutput) GoString() string {
  48863. return s.String()
  48864. }
  48865. // SetClientConfiguration sets the ClientConfiguration field's value.
  48866. func (s *ExportClientVpnClientConfigurationOutput) SetClientConfiguration(v string) *ExportClientVpnClientConfigurationOutput {
  48867. s.ClientConfiguration = &v
  48868. return s
  48869. }
  48870. // Describes an instance export task.
  48871. type ExportTask struct {
  48872. _ struct{} `type:"structure"`
  48873. // A description of the resource being exported.
  48874. Description *string `locationName:"description" type:"string"`
  48875. // The ID of the export task.
  48876. ExportTaskId *string `locationName:"exportTaskId" type:"string"`
  48877. // Information about the export task.
  48878. ExportToS3Task *ExportToS3Task `locationName:"exportToS3" type:"structure"`
  48879. // Information about the instance to export.
  48880. InstanceExportDetails *InstanceExportDetails `locationName:"instanceExport" type:"structure"`
  48881. // The state of the export task.
  48882. State *string `locationName:"state" type:"string" enum:"ExportTaskState"`
  48883. // The status message related to the export task.
  48884. StatusMessage *string `locationName:"statusMessage" type:"string"`
  48885. }
  48886. // String returns the string representation
  48887. func (s ExportTask) String() string {
  48888. return awsutil.Prettify(s)
  48889. }
  48890. // GoString returns the string representation
  48891. func (s ExportTask) GoString() string {
  48892. return s.String()
  48893. }
  48894. // SetDescription sets the Description field's value.
  48895. func (s *ExportTask) SetDescription(v string) *ExportTask {
  48896. s.Description = &v
  48897. return s
  48898. }
  48899. // SetExportTaskId sets the ExportTaskId field's value.
  48900. func (s *ExportTask) SetExportTaskId(v string) *ExportTask {
  48901. s.ExportTaskId = &v
  48902. return s
  48903. }
  48904. // SetExportToS3Task sets the ExportToS3Task field's value.
  48905. func (s *ExportTask) SetExportToS3Task(v *ExportToS3Task) *ExportTask {
  48906. s.ExportToS3Task = v
  48907. return s
  48908. }
  48909. // SetInstanceExportDetails sets the InstanceExportDetails field's value.
  48910. func (s *ExportTask) SetInstanceExportDetails(v *InstanceExportDetails) *ExportTask {
  48911. s.InstanceExportDetails = v
  48912. return s
  48913. }
  48914. // SetState sets the State field's value.
  48915. func (s *ExportTask) SetState(v string) *ExportTask {
  48916. s.State = &v
  48917. return s
  48918. }
  48919. // SetStatusMessage sets the StatusMessage field's value.
  48920. func (s *ExportTask) SetStatusMessage(v string) *ExportTask {
  48921. s.StatusMessage = &v
  48922. return s
  48923. }
  48924. // Describes the format and location for an instance export task.
  48925. type ExportToS3Task struct {
  48926. _ struct{} `type:"structure"`
  48927. // The container format used to combine disk images with metadata (such as OVF).
  48928. // If absent, only the disk image is exported.
  48929. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"`
  48930. // The format for the exported image.
  48931. DiskImageFormat *string `locationName:"diskImageFormat" type:"string" enum:"DiskImageFormat"`
  48932. // The S3 bucket for the destination image. The destination bucket must exist
  48933. // and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
  48934. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  48935. // The encryption key for your S3 bucket.
  48936. S3Key *string `locationName:"s3Key" type:"string"`
  48937. }
  48938. // String returns the string representation
  48939. func (s ExportToS3Task) String() string {
  48940. return awsutil.Prettify(s)
  48941. }
  48942. // GoString returns the string representation
  48943. func (s ExportToS3Task) GoString() string {
  48944. return s.String()
  48945. }
  48946. // SetContainerFormat sets the ContainerFormat field's value.
  48947. func (s *ExportToS3Task) SetContainerFormat(v string) *ExportToS3Task {
  48948. s.ContainerFormat = &v
  48949. return s
  48950. }
  48951. // SetDiskImageFormat sets the DiskImageFormat field's value.
  48952. func (s *ExportToS3Task) SetDiskImageFormat(v string) *ExportToS3Task {
  48953. s.DiskImageFormat = &v
  48954. return s
  48955. }
  48956. // SetS3Bucket sets the S3Bucket field's value.
  48957. func (s *ExportToS3Task) SetS3Bucket(v string) *ExportToS3Task {
  48958. s.S3Bucket = &v
  48959. return s
  48960. }
  48961. // SetS3Key sets the S3Key field's value.
  48962. func (s *ExportToS3Task) SetS3Key(v string) *ExportToS3Task {
  48963. s.S3Key = &v
  48964. return s
  48965. }
  48966. // Describes an instance export task.
  48967. type ExportToS3TaskSpecification struct {
  48968. _ struct{} `type:"structure"`
  48969. // The container format used to combine disk images with metadata (such as OVF).
  48970. // If absent, only the disk image is exported.
  48971. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"`
  48972. // The format for the exported image.
  48973. DiskImageFormat *string `locationName:"diskImageFormat" type:"string" enum:"DiskImageFormat"`
  48974. // The S3 bucket for the destination image. The destination bucket must exist
  48975. // and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
  48976. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  48977. // The image is written to a single object in the S3 bucket at the S3 key s3prefix
  48978. // + exportTaskId + '.' + diskImageFormat.
  48979. S3Prefix *string `locationName:"s3Prefix" type:"string"`
  48980. }
  48981. // String returns the string representation
  48982. func (s ExportToS3TaskSpecification) String() string {
  48983. return awsutil.Prettify(s)
  48984. }
  48985. // GoString returns the string representation
  48986. func (s ExportToS3TaskSpecification) GoString() string {
  48987. return s.String()
  48988. }
  48989. // SetContainerFormat sets the ContainerFormat field's value.
  48990. func (s *ExportToS3TaskSpecification) SetContainerFormat(v string) *ExportToS3TaskSpecification {
  48991. s.ContainerFormat = &v
  48992. return s
  48993. }
  48994. // SetDiskImageFormat sets the DiskImageFormat field's value.
  48995. func (s *ExportToS3TaskSpecification) SetDiskImageFormat(v string) *ExportToS3TaskSpecification {
  48996. s.DiskImageFormat = &v
  48997. return s
  48998. }
  48999. // SetS3Bucket sets the S3Bucket field's value.
  49000. func (s *ExportToS3TaskSpecification) SetS3Bucket(v string) *ExportToS3TaskSpecification {
  49001. s.S3Bucket = &v
  49002. return s
  49003. }
  49004. // SetS3Prefix sets the S3Prefix field's value.
  49005. func (s *ExportToS3TaskSpecification) SetS3Prefix(v string) *ExportToS3TaskSpecification {
  49006. s.S3Prefix = &v
  49007. return s
  49008. }
  49009. type ExportTransitGatewayRoutesInput struct {
  49010. _ struct{} `type:"structure"`
  49011. // Checks whether you have the required permissions for the action, without
  49012. // actually making the request, and provides an error response. If you have
  49013. // the required permissions, the error response is DryRunOperation. Otherwise,
  49014. // it is UnauthorizedOperation.
  49015. DryRun *bool `type:"boolean"`
  49016. // One or more filters. The possible values are:
  49017. //
  49018. // * transit-gateway-route-destination-cidr-block - The CIDR range.
  49019. //
  49020. // * transit-gateway-route-state - The state of the route (active | blackhole).
  49021. //
  49022. // * transit-gateway-route-transit-gateway-attachment-id - The ID of the
  49023. // attachment.
  49024. //
  49025. // * transit-gateway-route-type - The route type (static | propagated).
  49026. //
  49027. // * transit-gateway-route-vpn-connection-id - The ID of the VPN connection.
  49028. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  49029. // The name of the S3 bucket.
  49030. //
  49031. // S3Bucket is a required field
  49032. S3Bucket *string `type:"string" required:"true"`
  49033. // The ID of the route table.
  49034. //
  49035. // TransitGatewayRouteTableId is a required field
  49036. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  49037. }
  49038. // String returns the string representation
  49039. func (s ExportTransitGatewayRoutesInput) String() string {
  49040. return awsutil.Prettify(s)
  49041. }
  49042. // GoString returns the string representation
  49043. func (s ExportTransitGatewayRoutesInput) GoString() string {
  49044. return s.String()
  49045. }
  49046. // Validate inspects the fields of the type to determine if they are valid.
  49047. func (s *ExportTransitGatewayRoutesInput) Validate() error {
  49048. invalidParams := request.ErrInvalidParams{Context: "ExportTransitGatewayRoutesInput"}
  49049. if s.S3Bucket == nil {
  49050. invalidParams.Add(request.NewErrParamRequired("S3Bucket"))
  49051. }
  49052. if s.TransitGatewayRouteTableId == nil {
  49053. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  49054. }
  49055. if invalidParams.Len() > 0 {
  49056. return invalidParams
  49057. }
  49058. return nil
  49059. }
  49060. // SetDryRun sets the DryRun field's value.
  49061. func (s *ExportTransitGatewayRoutesInput) SetDryRun(v bool) *ExportTransitGatewayRoutesInput {
  49062. s.DryRun = &v
  49063. return s
  49064. }
  49065. // SetFilters sets the Filters field's value.
  49066. func (s *ExportTransitGatewayRoutesInput) SetFilters(v []*Filter) *ExportTransitGatewayRoutesInput {
  49067. s.Filters = v
  49068. return s
  49069. }
  49070. // SetS3Bucket sets the S3Bucket field's value.
  49071. func (s *ExportTransitGatewayRoutesInput) SetS3Bucket(v string) *ExportTransitGatewayRoutesInput {
  49072. s.S3Bucket = &v
  49073. return s
  49074. }
  49075. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  49076. func (s *ExportTransitGatewayRoutesInput) SetTransitGatewayRouteTableId(v string) *ExportTransitGatewayRoutesInput {
  49077. s.TransitGatewayRouteTableId = &v
  49078. return s
  49079. }
  49080. type ExportTransitGatewayRoutesOutput struct {
  49081. _ struct{} `type:"structure"`
  49082. // The URL of the exported file in Amazon S3. For example, s3://bucket_name/VPCTransitGateway/TransitGatewayRouteTables/file_name.
  49083. S3Location *string `locationName:"s3Location" type:"string"`
  49084. }
  49085. // String returns the string representation
  49086. func (s ExportTransitGatewayRoutesOutput) String() string {
  49087. return awsutil.Prettify(s)
  49088. }
  49089. // GoString returns the string representation
  49090. func (s ExportTransitGatewayRoutesOutput) GoString() string {
  49091. return s.String()
  49092. }
  49093. // SetS3Location sets the S3Location field's value.
  49094. func (s *ExportTransitGatewayRoutesOutput) SetS3Location(v string) *ExportTransitGatewayRoutesOutput {
  49095. s.S3Location = &v
  49096. return s
  49097. }
  49098. // A filter name and value pair that is used to return a more specific list
  49099. // of results from a describe operation. Filters can be used to match a set
  49100. // of resources by specific criteria, such as tags, attributes, or IDs. The
  49101. // filters supported by a describe operation are documented with the describe
  49102. // operation. For example:
  49103. //
  49104. // * DescribeAvailabilityZones
  49105. //
  49106. // * DescribeImages
  49107. //
  49108. // * DescribeInstances
  49109. //
  49110. // * DescribeKeyPairs
  49111. //
  49112. // * DescribeSecurityGroups
  49113. //
  49114. // * DescribeSnapshots
  49115. //
  49116. // * DescribeSubnets
  49117. //
  49118. // * DescribeTags
  49119. //
  49120. // * DescribeVolumes
  49121. //
  49122. // * DescribeVpcs
  49123. type Filter struct {
  49124. _ struct{} `type:"structure"`
  49125. // The name of the filter. Filter names are case-sensitive.
  49126. Name *string `type:"string"`
  49127. // One or more filter values. Filter values are case-sensitive.
  49128. Values []*string `locationName:"Value" locationNameList:"item" type:"list"`
  49129. }
  49130. // String returns the string representation
  49131. func (s Filter) String() string {
  49132. return awsutil.Prettify(s)
  49133. }
  49134. // GoString returns the string representation
  49135. func (s Filter) GoString() string {
  49136. return s.String()
  49137. }
  49138. // SetName sets the Name field's value.
  49139. func (s *Filter) SetName(v string) *Filter {
  49140. s.Name = &v
  49141. return s
  49142. }
  49143. // SetValues sets the Values field's value.
  49144. func (s *Filter) SetValues(v []*string) *Filter {
  49145. s.Values = v
  49146. return s
  49147. }
  49148. // Describes an EC2 Fleet.
  49149. type FleetData struct {
  49150. _ struct{} `type:"structure"`
  49151. // The progress of the EC2 Fleet. If there is an error, the status is error.
  49152. // After all requests are placed, the status is pending_fulfillment. If the
  49153. // size of the EC2 Fleet is equal to or greater than its target capacity, the
  49154. // status is fulfilled. If the size of the EC2 Fleet is decreased, the status
  49155. // is pending_termination while instances are terminating.
  49156. ActivityStatus *string `locationName:"activityStatus" type:"string" enum:"FleetActivityStatus"`
  49157. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  49158. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  49159. //
  49160. // Constraints: Maximum 64 ASCII characters
  49161. ClientToken *string `locationName:"clientToken" type:"string"`
  49162. // The creation date and time of the EC2 Fleet.
  49163. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  49164. // Information about the instances that could not be launched by the fleet.
  49165. // Valid only when Type is set to instant.
  49166. Errors []*DescribeFleetError `locationName:"errorSet" locationNameList:"item" type:"list"`
  49167. // Indicates whether running instances should be terminated if the target capacity
  49168. // of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
  49169. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"FleetExcessCapacityTerminationPolicy"`
  49170. // The ID of the EC2 Fleet.
  49171. FleetId *string `locationName:"fleetId" type:"string"`
  49172. // The state of the EC2 Fleet.
  49173. FleetState *string `locationName:"fleetState" type:"string" enum:"FleetStateCode"`
  49174. // The number of units fulfilled by this request compared to the set target
  49175. // capacity.
  49176. FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"`
  49177. // The number of units fulfilled by this request compared to the set target
  49178. // On-Demand capacity.
  49179. FulfilledOnDemandCapacity *float64 `locationName:"fulfilledOnDemandCapacity" type:"double"`
  49180. // Information about the instances that were launched by the fleet. Valid only
  49181. // when Type is set to instant.
  49182. Instances []*DescribeFleetsInstances `locationName:"fleetInstanceSet" locationNameList:"item" type:"list"`
  49183. // The launch template and overrides.
  49184. LaunchTemplateConfigs []*FleetLaunchTemplateConfig `locationName:"launchTemplateConfigs" locationNameList:"item" type:"list"`
  49185. // The allocation strategy of On-Demand Instances in an EC2 Fleet.
  49186. OnDemandOptions *OnDemandOptions `locationName:"onDemandOptions" type:"structure"`
  49187. // Indicates whether EC2 Fleet should replace unhealthy instances.
  49188. ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"`
  49189. // The configuration of Spot Instances in an EC2 Fleet.
  49190. SpotOptions *SpotOptions `locationName:"spotOptions" type:"structure"`
  49191. // The tags for an EC2 Fleet resource.
  49192. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  49193. // The number of units to request. You can choose to set the target capacity
  49194. // in terms of instances or a performance characteristic that is important to
  49195. // your application workload, such as vCPUs, memory, or I/O. If the request
  49196. // type is maintain, you can specify a target capacity of 0 and add capacity
  49197. // later.
  49198. TargetCapacitySpecification *TargetCapacitySpecification `locationName:"targetCapacitySpecification" type:"structure"`
  49199. // Indicates whether running instances should be terminated when the EC2 Fleet
  49200. // expires.
  49201. TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"`
  49202. // The type of request. Indicates whether the EC2 Fleet only requests the target
  49203. // capacity, or also attempts to maintain it. If you request a certain target
  49204. // capacity, EC2 Fleet only places the required requests; it does not attempt
  49205. // to replenish instances if capacity is diminished, and does not submit requests
  49206. // in alternative capacity pools if capacity is unavailable. To maintain a certain
  49207. // target capacity, EC2 Fleet places the required requests to meet this target
  49208. // capacity. It also automatically replenishes any interrupted Spot Instances.
  49209. // Default: maintain.
  49210. Type *string `locationName:"type" type:"string" enum:"FleetType"`
  49211. // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  49212. // The default is to start fulfilling the request immediately.
  49213. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`
  49214. // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  49215. // At this point, no new instance requests are placed or able to fulfill the
  49216. // request. The default end date is 7 days from the current date.
  49217. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
  49218. }
  49219. // String returns the string representation
  49220. func (s FleetData) String() string {
  49221. return awsutil.Prettify(s)
  49222. }
  49223. // GoString returns the string representation
  49224. func (s FleetData) GoString() string {
  49225. return s.String()
  49226. }
  49227. // SetActivityStatus sets the ActivityStatus field's value.
  49228. func (s *FleetData) SetActivityStatus(v string) *FleetData {
  49229. s.ActivityStatus = &v
  49230. return s
  49231. }
  49232. // SetClientToken sets the ClientToken field's value.
  49233. func (s *FleetData) SetClientToken(v string) *FleetData {
  49234. s.ClientToken = &v
  49235. return s
  49236. }
  49237. // SetCreateTime sets the CreateTime field's value.
  49238. func (s *FleetData) SetCreateTime(v time.Time) *FleetData {
  49239. s.CreateTime = &v
  49240. return s
  49241. }
  49242. // SetErrors sets the Errors field's value.
  49243. func (s *FleetData) SetErrors(v []*DescribeFleetError) *FleetData {
  49244. s.Errors = v
  49245. return s
  49246. }
  49247. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  49248. func (s *FleetData) SetExcessCapacityTerminationPolicy(v string) *FleetData {
  49249. s.ExcessCapacityTerminationPolicy = &v
  49250. return s
  49251. }
  49252. // SetFleetId sets the FleetId field's value.
  49253. func (s *FleetData) SetFleetId(v string) *FleetData {
  49254. s.FleetId = &v
  49255. return s
  49256. }
  49257. // SetFleetState sets the FleetState field's value.
  49258. func (s *FleetData) SetFleetState(v string) *FleetData {
  49259. s.FleetState = &v
  49260. return s
  49261. }
  49262. // SetFulfilledCapacity sets the FulfilledCapacity field's value.
  49263. func (s *FleetData) SetFulfilledCapacity(v float64) *FleetData {
  49264. s.FulfilledCapacity = &v
  49265. return s
  49266. }
  49267. // SetFulfilledOnDemandCapacity sets the FulfilledOnDemandCapacity field's value.
  49268. func (s *FleetData) SetFulfilledOnDemandCapacity(v float64) *FleetData {
  49269. s.FulfilledOnDemandCapacity = &v
  49270. return s
  49271. }
  49272. // SetInstances sets the Instances field's value.
  49273. func (s *FleetData) SetInstances(v []*DescribeFleetsInstances) *FleetData {
  49274. s.Instances = v
  49275. return s
  49276. }
  49277. // SetLaunchTemplateConfigs sets the LaunchTemplateConfigs field's value.
  49278. func (s *FleetData) SetLaunchTemplateConfigs(v []*FleetLaunchTemplateConfig) *FleetData {
  49279. s.LaunchTemplateConfigs = v
  49280. return s
  49281. }
  49282. // SetOnDemandOptions sets the OnDemandOptions field's value.
  49283. func (s *FleetData) SetOnDemandOptions(v *OnDemandOptions) *FleetData {
  49284. s.OnDemandOptions = v
  49285. return s
  49286. }
  49287. // SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value.
  49288. func (s *FleetData) SetReplaceUnhealthyInstances(v bool) *FleetData {
  49289. s.ReplaceUnhealthyInstances = &v
  49290. return s
  49291. }
  49292. // SetSpotOptions sets the SpotOptions field's value.
  49293. func (s *FleetData) SetSpotOptions(v *SpotOptions) *FleetData {
  49294. s.SpotOptions = v
  49295. return s
  49296. }
  49297. // SetTags sets the Tags field's value.
  49298. func (s *FleetData) SetTags(v []*Tag) *FleetData {
  49299. s.Tags = v
  49300. return s
  49301. }
  49302. // SetTargetCapacitySpecification sets the TargetCapacitySpecification field's value.
  49303. func (s *FleetData) SetTargetCapacitySpecification(v *TargetCapacitySpecification) *FleetData {
  49304. s.TargetCapacitySpecification = v
  49305. return s
  49306. }
  49307. // SetTerminateInstancesWithExpiration sets the TerminateInstancesWithExpiration field's value.
  49308. func (s *FleetData) SetTerminateInstancesWithExpiration(v bool) *FleetData {
  49309. s.TerminateInstancesWithExpiration = &v
  49310. return s
  49311. }
  49312. // SetType sets the Type field's value.
  49313. func (s *FleetData) SetType(v string) *FleetData {
  49314. s.Type = &v
  49315. return s
  49316. }
  49317. // SetValidFrom sets the ValidFrom field's value.
  49318. func (s *FleetData) SetValidFrom(v time.Time) *FleetData {
  49319. s.ValidFrom = &v
  49320. return s
  49321. }
  49322. // SetValidUntil sets the ValidUntil field's value.
  49323. func (s *FleetData) SetValidUntil(v time.Time) *FleetData {
  49324. s.ValidUntil = &v
  49325. return s
  49326. }
  49327. // Describes a launch template and overrides.
  49328. type FleetLaunchTemplateConfig struct {
  49329. _ struct{} `type:"structure"`
  49330. // The launch template.
  49331. LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"`
  49332. // Any parameters that you specify override the same parameters in the launch
  49333. // template.
  49334. Overrides []*FleetLaunchTemplateOverrides `locationName:"overrides" locationNameList:"item" type:"list"`
  49335. }
  49336. // String returns the string representation
  49337. func (s FleetLaunchTemplateConfig) String() string {
  49338. return awsutil.Prettify(s)
  49339. }
  49340. // GoString returns the string representation
  49341. func (s FleetLaunchTemplateConfig) GoString() string {
  49342. return s.String()
  49343. }
  49344. // SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value.
  49345. func (s *FleetLaunchTemplateConfig) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecification) *FleetLaunchTemplateConfig {
  49346. s.LaunchTemplateSpecification = v
  49347. return s
  49348. }
  49349. // SetOverrides sets the Overrides field's value.
  49350. func (s *FleetLaunchTemplateConfig) SetOverrides(v []*FleetLaunchTemplateOverrides) *FleetLaunchTemplateConfig {
  49351. s.Overrides = v
  49352. return s
  49353. }
  49354. // Describes a launch template and overrides.
  49355. type FleetLaunchTemplateConfigRequest struct {
  49356. _ struct{} `type:"structure"`
  49357. // The launch template to use. You must specify either the launch template ID
  49358. // or launch template name in the request.
  49359. LaunchTemplateSpecification *FleetLaunchTemplateSpecificationRequest `type:"structure"`
  49360. // Any parameters that you specify override the same parameters in the launch
  49361. // template.
  49362. Overrides []*FleetLaunchTemplateOverridesRequest `locationNameList:"item" type:"list"`
  49363. }
  49364. // String returns the string representation
  49365. func (s FleetLaunchTemplateConfigRequest) String() string {
  49366. return awsutil.Prettify(s)
  49367. }
  49368. // GoString returns the string representation
  49369. func (s FleetLaunchTemplateConfigRequest) GoString() string {
  49370. return s.String()
  49371. }
  49372. // Validate inspects the fields of the type to determine if they are valid.
  49373. func (s *FleetLaunchTemplateConfigRequest) Validate() error {
  49374. invalidParams := request.ErrInvalidParams{Context: "FleetLaunchTemplateConfigRequest"}
  49375. if s.LaunchTemplateSpecification != nil {
  49376. if err := s.LaunchTemplateSpecification.Validate(); err != nil {
  49377. invalidParams.AddNested("LaunchTemplateSpecification", err.(request.ErrInvalidParams))
  49378. }
  49379. }
  49380. if invalidParams.Len() > 0 {
  49381. return invalidParams
  49382. }
  49383. return nil
  49384. }
  49385. // SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value.
  49386. func (s *FleetLaunchTemplateConfigRequest) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecificationRequest) *FleetLaunchTemplateConfigRequest {
  49387. s.LaunchTemplateSpecification = v
  49388. return s
  49389. }
  49390. // SetOverrides sets the Overrides field's value.
  49391. func (s *FleetLaunchTemplateConfigRequest) SetOverrides(v []*FleetLaunchTemplateOverridesRequest) *FleetLaunchTemplateConfigRequest {
  49392. s.Overrides = v
  49393. return s
  49394. }
  49395. // Describes overrides for a launch template.
  49396. type FleetLaunchTemplateOverrides struct {
  49397. _ struct{} `type:"structure"`
  49398. // The Availability Zone in which to launch the instances.
  49399. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  49400. // The instance type.
  49401. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  49402. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  49403. MaxPrice *string `locationName:"maxPrice" type:"string"`
  49404. // The location where the instance launched, if applicable.
  49405. Placement *PlacementResponse `locationName:"placement" type:"structure"`
  49406. // The priority for the launch template override. If AllocationStrategy is set
  49407. // to prioritized, EC2 Fleet uses priority to determine which launch template
  49408. // override to use first in fulfilling On-Demand capacity. The highest priority
  49409. // is launched first. Valid values are whole numbers starting at 0. The lower
  49410. // the number, the higher the priority. If no number is set, the override has
  49411. // the lowest priority.
  49412. Priority *float64 `locationName:"priority" type:"double"`
  49413. // The ID of the subnet in which to launch the instances.
  49414. SubnetId *string `locationName:"subnetId" type:"string"`
  49415. // The number of units provided by the specified instance type.
  49416. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
  49417. }
  49418. // String returns the string representation
  49419. func (s FleetLaunchTemplateOverrides) String() string {
  49420. return awsutil.Prettify(s)
  49421. }
  49422. // GoString returns the string representation
  49423. func (s FleetLaunchTemplateOverrides) GoString() string {
  49424. return s.String()
  49425. }
  49426. // SetAvailabilityZone sets the AvailabilityZone field's value.
  49427. func (s *FleetLaunchTemplateOverrides) SetAvailabilityZone(v string) *FleetLaunchTemplateOverrides {
  49428. s.AvailabilityZone = &v
  49429. return s
  49430. }
  49431. // SetInstanceType sets the InstanceType field's value.
  49432. func (s *FleetLaunchTemplateOverrides) SetInstanceType(v string) *FleetLaunchTemplateOverrides {
  49433. s.InstanceType = &v
  49434. return s
  49435. }
  49436. // SetMaxPrice sets the MaxPrice field's value.
  49437. func (s *FleetLaunchTemplateOverrides) SetMaxPrice(v string) *FleetLaunchTemplateOverrides {
  49438. s.MaxPrice = &v
  49439. return s
  49440. }
  49441. // SetPlacement sets the Placement field's value.
  49442. func (s *FleetLaunchTemplateOverrides) SetPlacement(v *PlacementResponse) *FleetLaunchTemplateOverrides {
  49443. s.Placement = v
  49444. return s
  49445. }
  49446. // SetPriority sets the Priority field's value.
  49447. func (s *FleetLaunchTemplateOverrides) SetPriority(v float64) *FleetLaunchTemplateOverrides {
  49448. s.Priority = &v
  49449. return s
  49450. }
  49451. // SetSubnetId sets the SubnetId field's value.
  49452. func (s *FleetLaunchTemplateOverrides) SetSubnetId(v string) *FleetLaunchTemplateOverrides {
  49453. s.SubnetId = &v
  49454. return s
  49455. }
  49456. // SetWeightedCapacity sets the WeightedCapacity field's value.
  49457. func (s *FleetLaunchTemplateOverrides) SetWeightedCapacity(v float64) *FleetLaunchTemplateOverrides {
  49458. s.WeightedCapacity = &v
  49459. return s
  49460. }
  49461. // Describes overrides for a launch template.
  49462. type FleetLaunchTemplateOverridesRequest struct {
  49463. _ struct{} `type:"structure"`
  49464. // The Availability Zone in which to launch the instances.
  49465. AvailabilityZone *string `type:"string"`
  49466. // The instance type.
  49467. InstanceType *string `type:"string" enum:"InstanceType"`
  49468. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  49469. MaxPrice *string `type:"string"`
  49470. // The location where the instance launched, if applicable.
  49471. Placement *Placement `type:"structure"`
  49472. // The priority for the launch template override. If AllocationStrategy is set
  49473. // to prioritized, EC2 Fleet uses priority to determine which launch template
  49474. // override to use first in fulfilling On-Demand capacity. The highest priority
  49475. // is launched first. Valid values are whole numbers starting at 0. The lower
  49476. // the number, the higher the priority. If no number is set, the launch template
  49477. // override has the lowest priority.
  49478. Priority *float64 `type:"double"`
  49479. // The ID of the subnet in which to launch the instances.
  49480. SubnetId *string `type:"string"`
  49481. // The number of units provided by the specified instance type.
  49482. WeightedCapacity *float64 `type:"double"`
  49483. }
  49484. // String returns the string representation
  49485. func (s FleetLaunchTemplateOverridesRequest) String() string {
  49486. return awsutil.Prettify(s)
  49487. }
  49488. // GoString returns the string representation
  49489. func (s FleetLaunchTemplateOverridesRequest) GoString() string {
  49490. return s.String()
  49491. }
  49492. // SetAvailabilityZone sets the AvailabilityZone field's value.
  49493. func (s *FleetLaunchTemplateOverridesRequest) SetAvailabilityZone(v string) *FleetLaunchTemplateOverridesRequest {
  49494. s.AvailabilityZone = &v
  49495. return s
  49496. }
  49497. // SetInstanceType sets the InstanceType field's value.
  49498. func (s *FleetLaunchTemplateOverridesRequest) SetInstanceType(v string) *FleetLaunchTemplateOverridesRequest {
  49499. s.InstanceType = &v
  49500. return s
  49501. }
  49502. // SetMaxPrice sets the MaxPrice field's value.
  49503. func (s *FleetLaunchTemplateOverridesRequest) SetMaxPrice(v string) *FleetLaunchTemplateOverridesRequest {
  49504. s.MaxPrice = &v
  49505. return s
  49506. }
  49507. // SetPlacement sets the Placement field's value.
  49508. func (s *FleetLaunchTemplateOverridesRequest) SetPlacement(v *Placement) *FleetLaunchTemplateOverridesRequest {
  49509. s.Placement = v
  49510. return s
  49511. }
  49512. // SetPriority sets the Priority field's value.
  49513. func (s *FleetLaunchTemplateOverridesRequest) SetPriority(v float64) *FleetLaunchTemplateOverridesRequest {
  49514. s.Priority = &v
  49515. return s
  49516. }
  49517. // SetSubnetId sets the SubnetId field's value.
  49518. func (s *FleetLaunchTemplateOverridesRequest) SetSubnetId(v string) *FleetLaunchTemplateOverridesRequest {
  49519. s.SubnetId = &v
  49520. return s
  49521. }
  49522. // SetWeightedCapacity sets the WeightedCapacity field's value.
  49523. func (s *FleetLaunchTemplateOverridesRequest) SetWeightedCapacity(v float64) *FleetLaunchTemplateOverridesRequest {
  49524. s.WeightedCapacity = &v
  49525. return s
  49526. }
  49527. // Describes a launch template.
  49528. type FleetLaunchTemplateSpecification struct {
  49529. _ struct{} `type:"structure"`
  49530. // The ID of the launch template. You must specify either a template ID or a
  49531. // template name.
  49532. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  49533. // The name of the launch template. You must specify either a template name
  49534. // or a template ID.
  49535. LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`
  49536. // The version number of the launch template. You must specify a version number.
  49537. Version *string `locationName:"version" type:"string"`
  49538. }
  49539. // String returns the string representation
  49540. func (s FleetLaunchTemplateSpecification) String() string {
  49541. return awsutil.Prettify(s)
  49542. }
  49543. // GoString returns the string representation
  49544. func (s FleetLaunchTemplateSpecification) GoString() string {
  49545. return s.String()
  49546. }
  49547. // Validate inspects the fields of the type to determine if they are valid.
  49548. func (s *FleetLaunchTemplateSpecification) Validate() error {
  49549. invalidParams := request.ErrInvalidParams{Context: "FleetLaunchTemplateSpecification"}
  49550. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  49551. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  49552. }
  49553. if invalidParams.Len() > 0 {
  49554. return invalidParams
  49555. }
  49556. return nil
  49557. }
  49558. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  49559. func (s *FleetLaunchTemplateSpecification) SetLaunchTemplateId(v string) *FleetLaunchTemplateSpecification {
  49560. s.LaunchTemplateId = &v
  49561. return s
  49562. }
  49563. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  49564. func (s *FleetLaunchTemplateSpecification) SetLaunchTemplateName(v string) *FleetLaunchTemplateSpecification {
  49565. s.LaunchTemplateName = &v
  49566. return s
  49567. }
  49568. // SetVersion sets the Version field's value.
  49569. func (s *FleetLaunchTemplateSpecification) SetVersion(v string) *FleetLaunchTemplateSpecification {
  49570. s.Version = &v
  49571. return s
  49572. }
  49573. // The launch template to use. You must specify either the launch template ID
  49574. // or launch template name in the request.
  49575. type FleetLaunchTemplateSpecificationRequest struct {
  49576. _ struct{} `type:"structure"`
  49577. // The ID of the launch template.
  49578. LaunchTemplateId *string `type:"string"`
  49579. // The name of the launch template.
  49580. LaunchTemplateName *string `min:"3" type:"string"`
  49581. // The version number of the launch template.
  49582. Version *string `type:"string"`
  49583. }
  49584. // String returns the string representation
  49585. func (s FleetLaunchTemplateSpecificationRequest) String() string {
  49586. return awsutil.Prettify(s)
  49587. }
  49588. // GoString returns the string representation
  49589. func (s FleetLaunchTemplateSpecificationRequest) GoString() string {
  49590. return s.String()
  49591. }
  49592. // Validate inspects the fields of the type to determine if they are valid.
  49593. func (s *FleetLaunchTemplateSpecificationRequest) Validate() error {
  49594. invalidParams := request.ErrInvalidParams{Context: "FleetLaunchTemplateSpecificationRequest"}
  49595. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  49596. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  49597. }
  49598. if invalidParams.Len() > 0 {
  49599. return invalidParams
  49600. }
  49601. return nil
  49602. }
  49603. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  49604. func (s *FleetLaunchTemplateSpecificationRequest) SetLaunchTemplateId(v string) *FleetLaunchTemplateSpecificationRequest {
  49605. s.LaunchTemplateId = &v
  49606. return s
  49607. }
  49608. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  49609. func (s *FleetLaunchTemplateSpecificationRequest) SetLaunchTemplateName(v string) *FleetLaunchTemplateSpecificationRequest {
  49610. s.LaunchTemplateName = &v
  49611. return s
  49612. }
  49613. // SetVersion sets the Version field's value.
  49614. func (s *FleetLaunchTemplateSpecificationRequest) SetVersion(v string) *FleetLaunchTemplateSpecificationRequest {
  49615. s.Version = &v
  49616. return s
  49617. }
  49618. // Describes a flow log.
  49619. type FlowLog struct {
  49620. _ struct{} `type:"structure"`
  49621. // The date and time the flow log was created.
  49622. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  49623. // Information about the error that occurred. Rate limited indicates that CloudWatch
  49624. // Logs throttling has been applied for one or more network interfaces, or that
  49625. // you've reached the limit on the number of log groups that you can create.
  49626. // Access error indicates that the IAM role associated with the flow log does
  49627. // not have sufficient permissions to publish to CloudWatch Logs. Unknown error
  49628. // indicates an internal error.
  49629. DeliverLogsErrorMessage *string `locationName:"deliverLogsErrorMessage" type:"string"`
  49630. // The ARN of the IAM role that posts logs to CloudWatch Logs.
  49631. DeliverLogsPermissionArn *string `locationName:"deliverLogsPermissionArn" type:"string"`
  49632. // The status of the logs delivery (SUCCESS | FAILED).
  49633. DeliverLogsStatus *string `locationName:"deliverLogsStatus" type:"string"`
  49634. // The flow log ID.
  49635. FlowLogId *string `locationName:"flowLogId" type:"string"`
  49636. // The status of the flow log (ACTIVE).
  49637. FlowLogStatus *string `locationName:"flowLogStatus" type:"string"`
  49638. // Specifies the destination to which the flow log data is published. Flow log
  49639. // data can be published to an CloudWatch Logs log group or an Amazon S3 bucket.
  49640. // If the flow log publishes to CloudWatch Logs, this element indicates the
  49641. // Amazon Resource Name (ARN) of the CloudWatch Logs log group to which the
  49642. // data is published. If the flow log publishes to Amazon S3, this element indicates
  49643. // the ARN of the Amazon S3 bucket to which the data is published.
  49644. LogDestination *string `locationName:"logDestination" type:"string"`
  49645. // Specifies the type of destination to which the flow log data is published.
  49646. // Flow log data can be published to CloudWatch Logs or Amazon S3.
  49647. LogDestinationType *string `locationName:"logDestinationType" type:"string" enum:"LogDestinationType"`
  49648. // The name of the flow log group.
  49649. LogGroupName *string `locationName:"logGroupName" type:"string"`
  49650. // The ID of the resource on which the flow log was created.
  49651. ResourceId *string `locationName:"resourceId" type:"string"`
  49652. // The type of traffic captured for the flow log.
  49653. TrafficType *string `locationName:"trafficType" type:"string" enum:"TrafficType"`
  49654. }
  49655. // String returns the string representation
  49656. func (s FlowLog) String() string {
  49657. return awsutil.Prettify(s)
  49658. }
  49659. // GoString returns the string representation
  49660. func (s FlowLog) GoString() string {
  49661. return s.String()
  49662. }
  49663. // SetCreationTime sets the CreationTime field's value.
  49664. func (s *FlowLog) SetCreationTime(v time.Time) *FlowLog {
  49665. s.CreationTime = &v
  49666. return s
  49667. }
  49668. // SetDeliverLogsErrorMessage sets the DeliverLogsErrorMessage field's value.
  49669. func (s *FlowLog) SetDeliverLogsErrorMessage(v string) *FlowLog {
  49670. s.DeliverLogsErrorMessage = &v
  49671. return s
  49672. }
  49673. // SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value.
  49674. func (s *FlowLog) SetDeliverLogsPermissionArn(v string) *FlowLog {
  49675. s.DeliverLogsPermissionArn = &v
  49676. return s
  49677. }
  49678. // SetDeliverLogsStatus sets the DeliverLogsStatus field's value.
  49679. func (s *FlowLog) SetDeliverLogsStatus(v string) *FlowLog {
  49680. s.DeliverLogsStatus = &v
  49681. return s
  49682. }
  49683. // SetFlowLogId sets the FlowLogId field's value.
  49684. func (s *FlowLog) SetFlowLogId(v string) *FlowLog {
  49685. s.FlowLogId = &v
  49686. return s
  49687. }
  49688. // SetFlowLogStatus sets the FlowLogStatus field's value.
  49689. func (s *FlowLog) SetFlowLogStatus(v string) *FlowLog {
  49690. s.FlowLogStatus = &v
  49691. return s
  49692. }
  49693. // SetLogDestination sets the LogDestination field's value.
  49694. func (s *FlowLog) SetLogDestination(v string) *FlowLog {
  49695. s.LogDestination = &v
  49696. return s
  49697. }
  49698. // SetLogDestinationType sets the LogDestinationType field's value.
  49699. func (s *FlowLog) SetLogDestinationType(v string) *FlowLog {
  49700. s.LogDestinationType = &v
  49701. return s
  49702. }
  49703. // SetLogGroupName sets the LogGroupName field's value.
  49704. func (s *FlowLog) SetLogGroupName(v string) *FlowLog {
  49705. s.LogGroupName = &v
  49706. return s
  49707. }
  49708. // SetResourceId sets the ResourceId field's value.
  49709. func (s *FlowLog) SetResourceId(v string) *FlowLog {
  49710. s.ResourceId = &v
  49711. return s
  49712. }
  49713. // SetTrafficType sets the TrafficType field's value.
  49714. func (s *FlowLog) SetTrafficType(v string) *FlowLog {
  49715. s.TrafficType = &v
  49716. return s
  49717. }
  49718. // Describes an Amazon FPGA image (AFI).
  49719. type FpgaImage struct {
  49720. _ struct{} `type:"structure"`
  49721. // The date and time the AFI was created.
  49722. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  49723. // The description of the AFI.
  49724. Description *string `locationName:"description" type:"string"`
  49725. // The global FPGA image identifier (AGFI ID).
  49726. FpgaImageGlobalId *string `locationName:"fpgaImageGlobalId" type:"string"`
  49727. // The FPGA image identifier (AFI ID).
  49728. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  49729. // The name of the AFI.
  49730. Name *string `locationName:"name" type:"string"`
  49731. // The alias of the AFI owner. Possible values include self, amazon, and aws-marketplace.
  49732. OwnerAlias *string `locationName:"ownerAlias" type:"string"`
  49733. // The AWS account ID of the AFI owner.
  49734. OwnerId *string `locationName:"ownerId" type:"string"`
  49735. // Information about the PCI bus.
  49736. PciId *PciId `locationName:"pciId" type:"structure"`
  49737. // The product codes for the AFI.
  49738. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  49739. // Indicates whether the AFI is public.
  49740. Public *bool `locationName:"public" type:"boolean"`
  49741. // The version of the AWS Shell that was used to create the bitstream.
  49742. ShellVersion *string `locationName:"shellVersion" type:"string"`
  49743. // Information about the state of the AFI.
  49744. State *FpgaImageState `locationName:"state" type:"structure"`
  49745. // Any tags assigned to the AFI.
  49746. Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list"`
  49747. // The time of the most recent update to the AFI.
  49748. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp"`
  49749. }
  49750. // String returns the string representation
  49751. func (s FpgaImage) String() string {
  49752. return awsutil.Prettify(s)
  49753. }
  49754. // GoString returns the string representation
  49755. func (s FpgaImage) GoString() string {
  49756. return s.String()
  49757. }
  49758. // SetCreateTime sets the CreateTime field's value.
  49759. func (s *FpgaImage) SetCreateTime(v time.Time) *FpgaImage {
  49760. s.CreateTime = &v
  49761. return s
  49762. }
  49763. // SetDescription sets the Description field's value.
  49764. func (s *FpgaImage) SetDescription(v string) *FpgaImage {
  49765. s.Description = &v
  49766. return s
  49767. }
  49768. // SetFpgaImageGlobalId sets the FpgaImageGlobalId field's value.
  49769. func (s *FpgaImage) SetFpgaImageGlobalId(v string) *FpgaImage {
  49770. s.FpgaImageGlobalId = &v
  49771. return s
  49772. }
  49773. // SetFpgaImageId sets the FpgaImageId field's value.
  49774. func (s *FpgaImage) SetFpgaImageId(v string) *FpgaImage {
  49775. s.FpgaImageId = &v
  49776. return s
  49777. }
  49778. // SetName sets the Name field's value.
  49779. func (s *FpgaImage) SetName(v string) *FpgaImage {
  49780. s.Name = &v
  49781. return s
  49782. }
  49783. // SetOwnerAlias sets the OwnerAlias field's value.
  49784. func (s *FpgaImage) SetOwnerAlias(v string) *FpgaImage {
  49785. s.OwnerAlias = &v
  49786. return s
  49787. }
  49788. // SetOwnerId sets the OwnerId field's value.
  49789. func (s *FpgaImage) SetOwnerId(v string) *FpgaImage {
  49790. s.OwnerId = &v
  49791. return s
  49792. }
  49793. // SetPciId sets the PciId field's value.
  49794. func (s *FpgaImage) SetPciId(v *PciId) *FpgaImage {
  49795. s.PciId = v
  49796. return s
  49797. }
  49798. // SetProductCodes sets the ProductCodes field's value.
  49799. func (s *FpgaImage) SetProductCodes(v []*ProductCode) *FpgaImage {
  49800. s.ProductCodes = v
  49801. return s
  49802. }
  49803. // SetPublic sets the Public field's value.
  49804. func (s *FpgaImage) SetPublic(v bool) *FpgaImage {
  49805. s.Public = &v
  49806. return s
  49807. }
  49808. // SetShellVersion sets the ShellVersion field's value.
  49809. func (s *FpgaImage) SetShellVersion(v string) *FpgaImage {
  49810. s.ShellVersion = &v
  49811. return s
  49812. }
  49813. // SetState sets the State field's value.
  49814. func (s *FpgaImage) SetState(v *FpgaImageState) *FpgaImage {
  49815. s.State = v
  49816. return s
  49817. }
  49818. // SetTags sets the Tags field's value.
  49819. func (s *FpgaImage) SetTags(v []*Tag) *FpgaImage {
  49820. s.Tags = v
  49821. return s
  49822. }
  49823. // SetUpdateTime sets the UpdateTime field's value.
  49824. func (s *FpgaImage) SetUpdateTime(v time.Time) *FpgaImage {
  49825. s.UpdateTime = &v
  49826. return s
  49827. }
  49828. // Describes an Amazon FPGA image (AFI) attribute.
  49829. type FpgaImageAttribute struct {
  49830. _ struct{} `type:"structure"`
  49831. // The description of the AFI.
  49832. Description *string `locationName:"description" type:"string"`
  49833. // The ID of the AFI.
  49834. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  49835. // One or more load permissions.
  49836. LoadPermissions []*LoadPermission `locationName:"loadPermissions" locationNameList:"item" type:"list"`
  49837. // The name of the AFI.
  49838. Name *string `locationName:"name" type:"string"`
  49839. // One or more product codes.
  49840. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  49841. }
  49842. // String returns the string representation
  49843. func (s FpgaImageAttribute) String() string {
  49844. return awsutil.Prettify(s)
  49845. }
  49846. // GoString returns the string representation
  49847. func (s FpgaImageAttribute) GoString() string {
  49848. return s.String()
  49849. }
  49850. // SetDescription sets the Description field's value.
  49851. func (s *FpgaImageAttribute) SetDescription(v string) *FpgaImageAttribute {
  49852. s.Description = &v
  49853. return s
  49854. }
  49855. // SetFpgaImageId sets the FpgaImageId field's value.
  49856. func (s *FpgaImageAttribute) SetFpgaImageId(v string) *FpgaImageAttribute {
  49857. s.FpgaImageId = &v
  49858. return s
  49859. }
  49860. // SetLoadPermissions sets the LoadPermissions field's value.
  49861. func (s *FpgaImageAttribute) SetLoadPermissions(v []*LoadPermission) *FpgaImageAttribute {
  49862. s.LoadPermissions = v
  49863. return s
  49864. }
  49865. // SetName sets the Name field's value.
  49866. func (s *FpgaImageAttribute) SetName(v string) *FpgaImageAttribute {
  49867. s.Name = &v
  49868. return s
  49869. }
  49870. // SetProductCodes sets the ProductCodes field's value.
  49871. func (s *FpgaImageAttribute) SetProductCodes(v []*ProductCode) *FpgaImageAttribute {
  49872. s.ProductCodes = v
  49873. return s
  49874. }
  49875. // Describes the state of the bitstream generation process for an Amazon FPGA
  49876. // image (AFI).
  49877. type FpgaImageState struct {
  49878. _ struct{} `type:"structure"`
  49879. // The state. The following are the possible values:
  49880. //
  49881. // * pending - AFI bitstream generation is in progress.
  49882. //
  49883. // * available - The AFI is available for use.
  49884. //
  49885. // * failed - AFI bitstream generation failed.
  49886. //
  49887. // * unavailable - The AFI is no longer available for use.
  49888. Code *string `locationName:"code" type:"string" enum:"FpgaImageStateCode"`
  49889. // If the state is failed, this is the error message.
  49890. Message *string `locationName:"message" type:"string"`
  49891. }
  49892. // String returns the string representation
  49893. func (s FpgaImageState) String() string {
  49894. return awsutil.Prettify(s)
  49895. }
  49896. // GoString returns the string representation
  49897. func (s FpgaImageState) GoString() string {
  49898. return s.String()
  49899. }
  49900. // SetCode sets the Code field's value.
  49901. func (s *FpgaImageState) SetCode(v string) *FpgaImageState {
  49902. s.Code = &v
  49903. return s
  49904. }
  49905. // SetMessage sets the Message field's value.
  49906. func (s *FpgaImageState) SetMessage(v string) *FpgaImageState {
  49907. s.Message = &v
  49908. return s
  49909. }
  49910. type GetConsoleOutputInput struct {
  49911. _ struct{} `type:"structure"`
  49912. // Checks whether you have the required permissions for the action, without
  49913. // actually making the request, and provides an error response. If you have
  49914. // the required permissions, the error response is DryRunOperation. Otherwise,
  49915. // it is UnauthorizedOperation.
  49916. DryRun *bool `locationName:"dryRun" type:"boolean"`
  49917. // The ID of the instance.
  49918. //
  49919. // InstanceId is a required field
  49920. InstanceId *string `type:"string" required:"true"`
  49921. // When enabled, retrieves the latest console output for the instance.
  49922. //
  49923. // Default: disabled (false)
  49924. Latest *bool `type:"boolean"`
  49925. }
  49926. // String returns the string representation
  49927. func (s GetConsoleOutputInput) String() string {
  49928. return awsutil.Prettify(s)
  49929. }
  49930. // GoString returns the string representation
  49931. func (s GetConsoleOutputInput) GoString() string {
  49932. return s.String()
  49933. }
  49934. // Validate inspects the fields of the type to determine if they are valid.
  49935. func (s *GetConsoleOutputInput) Validate() error {
  49936. invalidParams := request.ErrInvalidParams{Context: "GetConsoleOutputInput"}
  49937. if s.InstanceId == nil {
  49938. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  49939. }
  49940. if invalidParams.Len() > 0 {
  49941. return invalidParams
  49942. }
  49943. return nil
  49944. }
  49945. // SetDryRun sets the DryRun field's value.
  49946. func (s *GetConsoleOutputInput) SetDryRun(v bool) *GetConsoleOutputInput {
  49947. s.DryRun = &v
  49948. return s
  49949. }
  49950. // SetInstanceId sets the InstanceId field's value.
  49951. func (s *GetConsoleOutputInput) SetInstanceId(v string) *GetConsoleOutputInput {
  49952. s.InstanceId = &v
  49953. return s
  49954. }
  49955. // SetLatest sets the Latest field's value.
  49956. func (s *GetConsoleOutputInput) SetLatest(v bool) *GetConsoleOutputInput {
  49957. s.Latest = &v
  49958. return s
  49959. }
  49960. type GetConsoleOutputOutput struct {
  49961. _ struct{} `type:"structure"`
  49962. // The ID of the instance.
  49963. InstanceId *string `locationName:"instanceId" type:"string"`
  49964. // The console output, base64-encoded. If you are using a command line tool,
  49965. // the tool decodes the output for you.
  49966. Output *string `locationName:"output" type:"string"`
  49967. // The time at which the output was last updated.
  49968. Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
  49969. }
  49970. // String returns the string representation
  49971. func (s GetConsoleOutputOutput) String() string {
  49972. return awsutil.Prettify(s)
  49973. }
  49974. // GoString returns the string representation
  49975. func (s GetConsoleOutputOutput) GoString() string {
  49976. return s.String()
  49977. }
  49978. // SetInstanceId sets the InstanceId field's value.
  49979. func (s *GetConsoleOutputOutput) SetInstanceId(v string) *GetConsoleOutputOutput {
  49980. s.InstanceId = &v
  49981. return s
  49982. }
  49983. // SetOutput sets the Output field's value.
  49984. func (s *GetConsoleOutputOutput) SetOutput(v string) *GetConsoleOutputOutput {
  49985. s.Output = &v
  49986. return s
  49987. }
  49988. // SetTimestamp sets the Timestamp field's value.
  49989. func (s *GetConsoleOutputOutput) SetTimestamp(v time.Time) *GetConsoleOutputOutput {
  49990. s.Timestamp = &v
  49991. return s
  49992. }
  49993. type GetConsoleScreenshotInput struct {
  49994. _ struct{} `type:"structure"`
  49995. // Checks whether you have the required permissions for the action, without
  49996. // actually making the request, and provides an error response. If you have
  49997. // the required permissions, the error response is DryRunOperation. Otherwise,
  49998. // it is UnauthorizedOperation.
  49999. DryRun *bool `type:"boolean"`
  50000. // The ID of the instance.
  50001. //
  50002. // InstanceId is a required field
  50003. InstanceId *string `type:"string" required:"true"`
  50004. // When set to true, acts as keystroke input and wakes up an instance that's
  50005. // in standby or "sleep" mode.
  50006. WakeUp *bool `type:"boolean"`
  50007. }
  50008. // String returns the string representation
  50009. func (s GetConsoleScreenshotInput) String() string {
  50010. return awsutil.Prettify(s)
  50011. }
  50012. // GoString returns the string representation
  50013. func (s GetConsoleScreenshotInput) GoString() string {
  50014. return s.String()
  50015. }
  50016. // Validate inspects the fields of the type to determine if they are valid.
  50017. func (s *GetConsoleScreenshotInput) Validate() error {
  50018. invalidParams := request.ErrInvalidParams{Context: "GetConsoleScreenshotInput"}
  50019. if s.InstanceId == nil {
  50020. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  50021. }
  50022. if invalidParams.Len() > 0 {
  50023. return invalidParams
  50024. }
  50025. return nil
  50026. }
  50027. // SetDryRun sets the DryRun field's value.
  50028. func (s *GetConsoleScreenshotInput) SetDryRun(v bool) *GetConsoleScreenshotInput {
  50029. s.DryRun = &v
  50030. return s
  50031. }
  50032. // SetInstanceId sets the InstanceId field's value.
  50033. func (s *GetConsoleScreenshotInput) SetInstanceId(v string) *GetConsoleScreenshotInput {
  50034. s.InstanceId = &v
  50035. return s
  50036. }
  50037. // SetWakeUp sets the WakeUp field's value.
  50038. func (s *GetConsoleScreenshotInput) SetWakeUp(v bool) *GetConsoleScreenshotInput {
  50039. s.WakeUp = &v
  50040. return s
  50041. }
  50042. type GetConsoleScreenshotOutput struct {
  50043. _ struct{} `type:"structure"`
  50044. // The data that comprises the image.
  50045. ImageData *string `locationName:"imageData" type:"string"`
  50046. // The ID of the instance.
  50047. InstanceId *string `locationName:"instanceId" type:"string"`
  50048. }
  50049. // String returns the string representation
  50050. func (s GetConsoleScreenshotOutput) String() string {
  50051. return awsutil.Prettify(s)
  50052. }
  50053. // GoString returns the string representation
  50054. func (s GetConsoleScreenshotOutput) GoString() string {
  50055. return s.String()
  50056. }
  50057. // SetImageData sets the ImageData field's value.
  50058. func (s *GetConsoleScreenshotOutput) SetImageData(v string) *GetConsoleScreenshotOutput {
  50059. s.ImageData = &v
  50060. return s
  50061. }
  50062. // SetInstanceId sets the InstanceId field's value.
  50063. func (s *GetConsoleScreenshotOutput) SetInstanceId(v string) *GetConsoleScreenshotOutput {
  50064. s.InstanceId = &v
  50065. return s
  50066. }
  50067. type GetHostReservationPurchasePreviewInput struct {
  50068. _ struct{} `type:"structure"`
  50069. // The IDs of the Dedicated Hosts with which the reservation is associated.
  50070. //
  50071. // HostIdSet is a required field
  50072. HostIdSet []*string `locationNameList:"item" type:"list" required:"true"`
  50073. // The offering ID of the reservation.
  50074. //
  50075. // OfferingId is a required field
  50076. OfferingId *string `type:"string" required:"true"`
  50077. }
  50078. // String returns the string representation
  50079. func (s GetHostReservationPurchasePreviewInput) String() string {
  50080. return awsutil.Prettify(s)
  50081. }
  50082. // GoString returns the string representation
  50083. func (s GetHostReservationPurchasePreviewInput) GoString() string {
  50084. return s.String()
  50085. }
  50086. // Validate inspects the fields of the type to determine if they are valid.
  50087. func (s *GetHostReservationPurchasePreviewInput) Validate() error {
  50088. invalidParams := request.ErrInvalidParams{Context: "GetHostReservationPurchasePreviewInput"}
  50089. if s.HostIdSet == nil {
  50090. invalidParams.Add(request.NewErrParamRequired("HostIdSet"))
  50091. }
  50092. if s.OfferingId == nil {
  50093. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  50094. }
  50095. if invalidParams.Len() > 0 {
  50096. return invalidParams
  50097. }
  50098. return nil
  50099. }
  50100. // SetHostIdSet sets the HostIdSet field's value.
  50101. func (s *GetHostReservationPurchasePreviewInput) SetHostIdSet(v []*string) *GetHostReservationPurchasePreviewInput {
  50102. s.HostIdSet = v
  50103. return s
  50104. }
  50105. // SetOfferingId sets the OfferingId field's value.
  50106. func (s *GetHostReservationPurchasePreviewInput) SetOfferingId(v string) *GetHostReservationPurchasePreviewInput {
  50107. s.OfferingId = &v
  50108. return s
  50109. }
  50110. type GetHostReservationPurchasePreviewOutput struct {
  50111. _ struct{} `type:"structure"`
  50112. // The currency in which the totalUpfrontPrice and totalHourlyPrice amounts
  50113. // are specified. At this time, the only supported currency is USD.
  50114. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  50115. // The purchase information of the Dedicated Host reservation and the Dedicated
  50116. // Hosts associated with it.
  50117. Purchase []*Purchase `locationName:"purchase" locationNameList:"item" type:"list"`
  50118. // The potential total hourly price of the reservation per hour.
  50119. TotalHourlyPrice *string `locationName:"totalHourlyPrice" type:"string"`
  50120. // The potential total upfront price. This is billed immediately.
  50121. TotalUpfrontPrice *string `locationName:"totalUpfrontPrice" type:"string"`
  50122. }
  50123. // String returns the string representation
  50124. func (s GetHostReservationPurchasePreviewOutput) String() string {
  50125. return awsutil.Prettify(s)
  50126. }
  50127. // GoString returns the string representation
  50128. func (s GetHostReservationPurchasePreviewOutput) GoString() string {
  50129. return s.String()
  50130. }
  50131. // SetCurrencyCode sets the CurrencyCode field's value.
  50132. func (s *GetHostReservationPurchasePreviewOutput) SetCurrencyCode(v string) *GetHostReservationPurchasePreviewOutput {
  50133. s.CurrencyCode = &v
  50134. return s
  50135. }
  50136. // SetPurchase sets the Purchase field's value.
  50137. func (s *GetHostReservationPurchasePreviewOutput) SetPurchase(v []*Purchase) *GetHostReservationPurchasePreviewOutput {
  50138. s.Purchase = v
  50139. return s
  50140. }
  50141. // SetTotalHourlyPrice sets the TotalHourlyPrice field's value.
  50142. func (s *GetHostReservationPurchasePreviewOutput) SetTotalHourlyPrice(v string) *GetHostReservationPurchasePreviewOutput {
  50143. s.TotalHourlyPrice = &v
  50144. return s
  50145. }
  50146. // SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value.
  50147. func (s *GetHostReservationPurchasePreviewOutput) SetTotalUpfrontPrice(v string) *GetHostReservationPurchasePreviewOutput {
  50148. s.TotalUpfrontPrice = &v
  50149. return s
  50150. }
  50151. type GetLaunchTemplateDataInput struct {
  50152. _ struct{} `type:"structure"`
  50153. // Checks whether you have the required permissions for the action, without
  50154. // actually making the request, and provides an error response. If you have
  50155. // the required permissions, the error response is DryRunOperation. Otherwise,
  50156. // it is UnauthorizedOperation.
  50157. DryRun *bool `type:"boolean"`
  50158. // The ID of the instance.
  50159. //
  50160. // InstanceId is a required field
  50161. InstanceId *string `type:"string" required:"true"`
  50162. }
  50163. // String returns the string representation
  50164. func (s GetLaunchTemplateDataInput) String() string {
  50165. return awsutil.Prettify(s)
  50166. }
  50167. // GoString returns the string representation
  50168. func (s GetLaunchTemplateDataInput) GoString() string {
  50169. return s.String()
  50170. }
  50171. // Validate inspects the fields of the type to determine if they are valid.
  50172. func (s *GetLaunchTemplateDataInput) Validate() error {
  50173. invalidParams := request.ErrInvalidParams{Context: "GetLaunchTemplateDataInput"}
  50174. if s.InstanceId == nil {
  50175. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  50176. }
  50177. if invalidParams.Len() > 0 {
  50178. return invalidParams
  50179. }
  50180. return nil
  50181. }
  50182. // SetDryRun sets the DryRun field's value.
  50183. func (s *GetLaunchTemplateDataInput) SetDryRun(v bool) *GetLaunchTemplateDataInput {
  50184. s.DryRun = &v
  50185. return s
  50186. }
  50187. // SetInstanceId sets the InstanceId field's value.
  50188. func (s *GetLaunchTemplateDataInput) SetInstanceId(v string) *GetLaunchTemplateDataInput {
  50189. s.InstanceId = &v
  50190. return s
  50191. }
  50192. type GetLaunchTemplateDataOutput struct {
  50193. _ struct{} `type:"structure"`
  50194. // The instance data.
  50195. LaunchTemplateData *ResponseLaunchTemplateData `locationName:"launchTemplateData" type:"structure"`
  50196. }
  50197. // String returns the string representation
  50198. func (s GetLaunchTemplateDataOutput) String() string {
  50199. return awsutil.Prettify(s)
  50200. }
  50201. // GoString returns the string representation
  50202. func (s GetLaunchTemplateDataOutput) GoString() string {
  50203. return s.String()
  50204. }
  50205. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  50206. func (s *GetLaunchTemplateDataOutput) SetLaunchTemplateData(v *ResponseLaunchTemplateData) *GetLaunchTemplateDataOutput {
  50207. s.LaunchTemplateData = v
  50208. return s
  50209. }
  50210. type GetPasswordDataInput struct {
  50211. _ struct{} `type:"structure"`
  50212. // Checks whether you have the required permissions for the action, without
  50213. // actually making the request, and provides an error response. If you have
  50214. // the required permissions, the error response is DryRunOperation. Otherwise,
  50215. // it is UnauthorizedOperation.
  50216. DryRun *bool `locationName:"dryRun" type:"boolean"`
  50217. // The ID of the Windows instance.
  50218. //
  50219. // InstanceId is a required field
  50220. InstanceId *string `type:"string" required:"true"`
  50221. }
  50222. // String returns the string representation
  50223. func (s GetPasswordDataInput) String() string {
  50224. return awsutil.Prettify(s)
  50225. }
  50226. // GoString returns the string representation
  50227. func (s GetPasswordDataInput) GoString() string {
  50228. return s.String()
  50229. }
  50230. // Validate inspects the fields of the type to determine if they are valid.
  50231. func (s *GetPasswordDataInput) Validate() error {
  50232. invalidParams := request.ErrInvalidParams{Context: "GetPasswordDataInput"}
  50233. if s.InstanceId == nil {
  50234. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  50235. }
  50236. if invalidParams.Len() > 0 {
  50237. return invalidParams
  50238. }
  50239. return nil
  50240. }
  50241. // SetDryRun sets the DryRun field's value.
  50242. func (s *GetPasswordDataInput) SetDryRun(v bool) *GetPasswordDataInput {
  50243. s.DryRun = &v
  50244. return s
  50245. }
  50246. // SetInstanceId sets the InstanceId field's value.
  50247. func (s *GetPasswordDataInput) SetInstanceId(v string) *GetPasswordDataInput {
  50248. s.InstanceId = &v
  50249. return s
  50250. }
  50251. type GetPasswordDataOutput struct {
  50252. _ struct{} `type:"structure"`
  50253. // The ID of the Windows instance.
  50254. InstanceId *string `locationName:"instanceId" type:"string"`
  50255. // The password of the instance. Returns an empty string if the password is
  50256. // not available.
  50257. PasswordData *string `locationName:"passwordData" type:"string"`
  50258. // The time the data was last updated.
  50259. Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
  50260. }
  50261. // String returns the string representation
  50262. func (s GetPasswordDataOutput) String() string {
  50263. return awsutil.Prettify(s)
  50264. }
  50265. // GoString returns the string representation
  50266. func (s GetPasswordDataOutput) GoString() string {
  50267. return s.String()
  50268. }
  50269. // SetInstanceId sets the InstanceId field's value.
  50270. func (s *GetPasswordDataOutput) SetInstanceId(v string) *GetPasswordDataOutput {
  50271. s.InstanceId = &v
  50272. return s
  50273. }
  50274. // SetPasswordData sets the PasswordData field's value.
  50275. func (s *GetPasswordDataOutput) SetPasswordData(v string) *GetPasswordDataOutput {
  50276. s.PasswordData = &v
  50277. return s
  50278. }
  50279. // SetTimestamp sets the Timestamp field's value.
  50280. func (s *GetPasswordDataOutput) SetTimestamp(v time.Time) *GetPasswordDataOutput {
  50281. s.Timestamp = &v
  50282. return s
  50283. }
  50284. // Contains the parameters for GetReservedInstanceExchangeQuote.
  50285. type GetReservedInstancesExchangeQuoteInput struct {
  50286. _ struct{} `type:"structure"`
  50287. // Checks whether you have the required permissions for the action, without
  50288. // actually making the request, and provides an error response. If you have
  50289. // the required permissions, the error response is DryRunOperation. Otherwise,
  50290. // it is UnauthorizedOperation.
  50291. DryRun *bool `type:"boolean"`
  50292. // The IDs of the Convertible Reserved Instances to exchange.
  50293. //
  50294. // ReservedInstanceIds is a required field
  50295. ReservedInstanceIds []*string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"`
  50296. // The configuration of the target Convertible Reserved Instance to exchange
  50297. // for your current Convertible Reserved Instances.
  50298. TargetConfigurations []*TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"`
  50299. }
  50300. // String returns the string representation
  50301. func (s GetReservedInstancesExchangeQuoteInput) String() string {
  50302. return awsutil.Prettify(s)
  50303. }
  50304. // GoString returns the string representation
  50305. func (s GetReservedInstancesExchangeQuoteInput) GoString() string {
  50306. return s.String()
  50307. }
  50308. // Validate inspects the fields of the type to determine if they are valid.
  50309. func (s *GetReservedInstancesExchangeQuoteInput) Validate() error {
  50310. invalidParams := request.ErrInvalidParams{Context: "GetReservedInstancesExchangeQuoteInput"}
  50311. if s.ReservedInstanceIds == nil {
  50312. invalidParams.Add(request.NewErrParamRequired("ReservedInstanceIds"))
  50313. }
  50314. if s.TargetConfigurations != nil {
  50315. for i, v := range s.TargetConfigurations {
  50316. if v == nil {
  50317. continue
  50318. }
  50319. if err := v.Validate(); err != nil {
  50320. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetConfigurations", i), err.(request.ErrInvalidParams))
  50321. }
  50322. }
  50323. }
  50324. if invalidParams.Len() > 0 {
  50325. return invalidParams
  50326. }
  50327. return nil
  50328. }
  50329. // SetDryRun sets the DryRun field's value.
  50330. func (s *GetReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *GetReservedInstancesExchangeQuoteInput {
  50331. s.DryRun = &v
  50332. return s
  50333. }
  50334. // SetReservedInstanceIds sets the ReservedInstanceIds field's value.
  50335. func (s *GetReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *GetReservedInstancesExchangeQuoteInput {
  50336. s.ReservedInstanceIds = v
  50337. return s
  50338. }
  50339. // SetTargetConfigurations sets the TargetConfigurations field's value.
  50340. func (s *GetReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *GetReservedInstancesExchangeQuoteInput {
  50341. s.TargetConfigurations = v
  50342. return s
  50343. }
  50344. // Contains the output of GetReservedInstancesExchangeQuote.
  50345. type GetReservedInstancesExchangeQuoteOutput struct {
  50346. _ struct{} `type:"structure"`
  50347. // The currency of the transaction.
  50348. CurrencyCode *string `locationName:"currencyCode" type:"string"`
  50349. // If true, the exchange is valid. If false, the exchange cannot be completed.
  50350. IsValidExchange *bool `locationName:"isValidExchange" type:"boolean"`
  50351. // The new end date of the reservation term.
  50352. OutputReservedInstancesWillExpireAt *time.Time `locationName:"outputReservedInstancesWillExpireAt" type:"timestamp"`
  50353. // The total true upfront charge for the exchange.
  50354. PaymentDue *string `locationName:"paymentDue" type:"string"`
  50355. // The cost associated with the Reserved Instance.
  50356. ReservedInstanceValueRollup *ReservationValue `locationName:"reservedInstanceValueRollup" type:"structure"`
  50357. // The configuration of your Convertible Reserved Instances.
  50358. ReservedInstanceValueSet []*ReservedInstanceReservationValue `locationName:"reservedInstanceValueSet" locationNameList:"item" type:"list"`
  50359. // The cost associated with the Reserved Instance.
  50360. TargetConfigurationValueRollup *ReservationValue `locationName:"targetConfigurationValueRollup" type:"structure"`
  50361. // The values of the target Convertible Reserved Instances.
  50362. TargetConfigurationValueSet []*TargetReservationValue `locationName:"targetConfigurationValueSet" locationNameList:"item" type:"list"`
  50363. // Describes the reason why the exchange cannot be completed.
  50364. ValidationFailureReason *string `locationName:"validationFailureReason" type:"string"`
  50365. }
  50366. // String returns the string representation
  50367. func (s GetReservedInstancesExchangeQuoteOutput) String() string {
  50368. return awsutil.Prettify(s)
  50369. }
  50370. // GoString returns the string representation
  50371. func (s GetReservedInstancesExchangeQuoteOutput) GoString() string {
  50372. return s.String()
  50373. }
  50374. // SetCurrencyCode sets the CurrencyCode field's value.
  50375. func (s *GetReservedInstancesExchangeQuoteOutput) SetCurrencyCode(v string) *GetReservedInstancesExchangeQuoteOutput {
  50376. s.CurrencyCode = &v
  50377. return s
  50378. }
  50379. // SetIsValidExchange sets the IsValidExchange field's value.
  50380. func (s *GetReservedInstancesExchangeQuoteOutput) SetIsValidExchange(v bool) *GetReservedInstancesExchangeQuoteOutput {
  50381. s.IsValidExchange = &v
  50382. return s
  50383. }
  50384. // SetOutputReservedInstancesWillExpireAt sets the OutputReservedInstancesWillExpireAt field's value.
  50385. func (s *GetReservedInstancesExchangeQuoteOutput) SetOutputReservedInstancesWillExpireAt(v time.Time) *GetReservedInstancesExchangeQuoteOutput {
  50386. s.OutputReservedInstancesWillExpireAt = &v
  50387. return s
  50388. }
  50389. // SetPaymentDue sets the PaymentDue field's value.
  50390. func (s *GetReservedInstancesExchangeQuoteOutput) SetPaymentDue(v string) *GetReservedInstancesExchangeQuoteOutput {
  50391. s.PaymentDue = &v
  50392. return s
  50393. }
  50394. // SetReservedInstanceValueRollup sets the ReservedInstanceValueRollup field's value.
  50395. func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  50396. s.ReservedInstanceValueRollup = v
  50397. return s
  50398. }
  50399. // SetReservedInstanceValueSet sets the ReservedInstanceValueSet field's value.
  50400. func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueSet(v []*ReservedInstanceReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  50401. s.ReservedInstanceValueSet = v
  50402. return s
  50403. }
  50404. // SetTargetConfigurationValueRollup sets the TargetConfigurationValueRollup field's value.
  50405. func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  50406. s.TargetConfigurationValueRollup = v
  50407. return s
  50408. }
  50409. // SetTargetConfigurationValueSet sets the TargetConfigurationValueSet field's value.
  50410. func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueSet(v []*TargetReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  50411. s.TargetConfigurationValueSet = v
  50412. return s
  50413. }
  50414. // SetValidationFailureReason sets the ValidationFailureReason field's value.
  50415. func (s *GetReservedInstancesExchangeQuoteOutput) SetValidationFailureReason(v string) *GetReservedInstancesExchangeQuoteOutput {
  50416. s.ValidationFailureReason = &v
  50417. return s
  50418. }
  50419. type GetTransitGatewayAttachmentPropagationsInput struct {
  50420. _ struct{} `type:"structure"`
  50421. // Checks whether you have the required permissions for the action, without
  50422. // actually making the request, and provides an error response. If you have
  50423. // the required permissions, the error response is DryRunOperation. Otherwise,
  50424. // it is UnauthorizedOperation.
  50425. DryRun *bool `type:"boolean"`
  50426. // One or more filters. The possible values are:
  50427. //
  50428. // * transit-gateway-route-table-id - The ID of the transit gateway route
  50429. // table.
  50430. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  50431. // The maximum number of results to return with a single call. To retrieve the
  50432. // remaining results, make another call with the returned nextToken value.
  50433. MaxResults *int64 `min:"5" type:"integer"`
  50434. // The token for the next page of results.
  50435. NextToken *string `type:"string"`
  50436. // The ID of the attachment.
  50437. //
  50438. // TransitGatewayAttachmentId is a required field
  50439. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  50440. }
  50441. // String returns the string representation
  50442. func (s GetTransitGatewayAttachmentPropagationsInput) String() string {
  50443. return awsutil.Prettify(s)
  50444. }
  50445. // GoString returns the string representation
  50446. func (s GetTransitGatewayAttachmentPropagationsInput) GoString() string {
  50447. return s.String()
  50448. }
  50449. // Validate inspects the fields of the type to determine if they are valid.
  50450. func (s *GetTransitGatewayAttachmentPropagationsInput) Validate() error {
  50451. invalidParams := request.ErrInvalidParams{Context: "GetTransitGatewayAttachmentPropagationsInput"}
  50452. if s.MaxResults != nil && *s.MaxResults < 5 {
  50453. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  50454. }
  50455. if s.TransitGatewayAttachmentId == nil {
  50456. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  50457. }
  50458. if invalidParams.Len() > 0 {
  50459. return invalidParams
  50460. }
  50461. return nil
  50462. }
  50463. // SetDryRun sets the DryRun field's value.
  50464. func (s *GetTransitGatewayAttachmentPropagationsInput) SetDryRun(v bool) *GetTransitGatewayAttachmentPropagationsInput {
  50465. s.DryRun = &v
  50466. return s
  50467. }
  50468. // SetFilters sets the Filters field's value.
  50469. func (s *GetTransitGatewayAttachmentPropagationsInput) SetFilters(v []*Filter) *GetTransitGatewayAttachmentPropagationsInput {
  50470. s.Filters = v
  50471. return s
  50472. }
  50473. // SetMaxResults sets the MaxResults field's value.
  50474. func (s *GetTransitGatewayAttachmentPropagationsInput) SetMaxResults(v int64) *GetTransitGatewayAttachmentPropagationsInput {
  50475. s.MaxResults = &v
  50476. return s
  50477. }
  50478. // SetNextToken sets the NextToken field's value.
  50479. func (s *GetTransitGatewayAttachmentPropagationsInput) SetNextToken(v string) *GetTransitGatewayAttachmentPropagationsInput {
  50480. s.NextToken = &v
  50481. return s
  50482. }
  50483. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  50484. func (s *GetTransitGatewayAttachmentPropagationsInput) SetTransitGatewayAttachmentId(v string) *GetTransitGatewayAttachmentPropagationsInput {
  50485. s.TransitGatewayAttachmentId = &v
  50486. return s
  50487. }
  50488. type GetTransitGatewayAttachmentPropagationsOutput struct {
  50489. _ struct{} `type:"structure"`
  50490. // The token to use to retrieve the next page of results. This value is null
  50491. // when there are no more results to return.
  50492. NextToken *string `locationName:"nextToken" type:"string"`
  50493. // Information about the propagation route tables.
  50494. TransitGatewayAttachmentPropagations []*TransitGatewayAttachmentPropagation `locationName:"transitGatewayAttachmentPropagations" locationNameList:"item" type:"list"`
  50495. }
  50496. // String returns the string representation
  50497. func (s GetTransitGatewayAttachmentPropagationsOutput) String() string {
  50498. return awsutil.Prettify(s)
  50499. }
  50500. // GoString returns the string representation
  50501. func (s GetTransitGatewayAttachmentPropagationsOutput) GoString() string {
  50502. return s.String()
  50503. }
  50504. // SetNextToken sets the NextToken field's value.
  50505. func (s *GetTransitGatewayAttachmentPropagationsOutput) SetNextToken(v string) *GetTransitGatewayAttachmentPropagationsOutput {
  50506. s.NextToken = &v
  50507. return s
  50508. }
  50509. // SetTransitGatewayAttachmentPropagations sets the TransitGatewayAttachmentPropagations field's value.
  50510. func (s *GetTransitGatewayAttachmentPropagationsOutput) SetTransitGatewayAttachmentPropagations(v []*TransitGatewayAttachmentPropagation) *GetTransitGatewayAttachmentPropagationsOutput {
  50511. s.TransitGatewayAttachmentPropagations = v
  50512. return s
  50513. }
  50514. type GetTransitGatewayRouteTableAssociationsInput struct {
  50515. _ struct{} `type:"structure"`
  50516. // Checks whether you have the required permissions for the action, without
  50517. // actually making the request, and provides an error response. If you have
  50518. // the required permissions, the error response is DryRunOperation. Otherwise,
  50519. // it is UnauthorizedOperation.
  50520. DryRun *bool `type:"boolean"`
  50521. // One or more filters. The possible values are:
  50522. //
  50523. // * association-id - The ID of the association.
  50524. //
  50525. // * resource-id - The ID of the resource.
  50526. //
  50527. // * resource-type - The resource type (vpc | vpn).
  50528. //
  50529. // * transit-gateway-attachment-id - The ID of the attachment.
  50530. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  50531. // The maximum number of results to return with a single call. To retrieve the
  50532. // remaining results, make another call with the returned nextToken value.
  50533. MaxResults *int64 `min:"5" type:"integer"`
  50534. // The token for the next page of results.
  50535. NextToken *string `type:"string"`
  50536. // The ID of the transit gateway route table.
  50537. //
  50538. // TransitGatewayRouteTableId is a required field
  50539. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  50540. }
  50541. // String returns the string representation
  50542. func (s GetTransitGatewayRouteTableAssociationsInput) String() string {
  50543. return awsutil.Prettify(s)
  50544. }
  50545. // GoString returns the string representation
  50546. func (s GetTransitGatewayRouteTableAssociationsInput) GoString() string {
  50547. return s.String()
  50548. }
  50549. // Validate inspects the fields of the type to determine if they are valid.
  50550. func (s *GetTransitGatewayRouteTableAssociationsInput) Validate() error {
  50551. invalidParams := request.ErrInvalidParams{Context: "GetTransitGatewayRouteTableAssociationsInput"}
  50552. if s.MaxResults != nil && *s.MaxResults < 5 {
  50553. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  50554. }
  50555. if s.TransitGatewayRouteTableId == nil {
  50556. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  50557. }
  50558. if invalidParams.Len() > 0 {
  50559. return invalidParams
  50560. }
  50561. return nil
  50562. }
  50563. // SetDryRun sets the DryRun field's value.
  50564. func (s *GetTransitGatewayRouteTableAssociationsInput) SetDryRun(v bool) *GetTransitGatewayRouteTableAssociationsInput {
  50565. s.DryRun = &v
  50566. return s
  50567. }
  50568. // SetFilters sets the Filters field's value.
  50569. func (s *GetTransitGatewayRouteTableAssociationsInput) SetFilters(v []*Filter) *GetTransitGatewayRouteTableAssociationsInput {
  50570. s.Filters = v
  50571. return s
  50572. }
  50573. // SetMaxResults sets the MaxResults field's value.
  50574. func (s *GetTransitGatewayRouteTableAssociationsInput) SetMaxResults(v int64) *GetTransitGatewayRouteTableAssociationsInput {
  50575. s.MaxResults = &v
  50576. return s
  50577. }
  50578. // SetNextToken sets the NextToken field's value.
  50579. func (s *GetTransitGatewayRouteTableAssociationsInput) SetNextToken(v string) *GetTransitGatewayRouteTableAssociationsInput {
  50580. s.NextToken = &v
  50581. return s
  50582. }
  50583. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  50584. func (s *GetTransitGatewayRouteTableAssociationsInput) SetTransitGatewayRouteTableId(v string) *GetTransitGatewayRouteTableAssociationsInput {
  50585. s.TransitGatewayRouteTableId = &v
  50586. return s
  50587. }
  50588. type GetTransitGatewayRouteTableAssociationsOutput struct {
  50589. _ struct{} `type:"structure"`
  50590. // Information about the associations.
  50591. Associations []*TransitGatewayRouteTableAssociation `locationName:"associations" locationNameList:"item" type:"list"`
  50592. // The token to use to retrieve the next page of results. This value is null
  50593. // when there are no more results to return.
  50594. NextToken *string `locationName:"nextToken" type:"string"`
  50595. }
  50596. // String returns the string representation
  50597. func (s GetTransitGatewayRouteTableAssociationsOutput) String() string {
  50598. return awsutil.Prettify(s)
  50599. }
  50600. // GoString returns the string representation
  50601. func (s GetTransitGatewayRouteTableAssociationsOutput) GoString() string {
  50602. return s.String()
  50603. }
  50604. // SetAssociations sets the Associations field's value.
  50605. func (s *GetTransitGatewayRouteTableAssociationsOutput) SetAssociations(v []*TransitGatewayRouteTableAssociation) *GetTransitGatewayRouteTableAssociationsOutput {
  50606. s.Associations = v
  50607. return s
  50608. }
  50609. // SetNextToken sets the NextToken field's value.
  50610. func (s *GetTransitGatewayRouteTableAssociationsOutput) SetNextToken(v string) *GetTransitGatewayRouteTableAssociationsOutput {
  50611. s.NextToken = &v
  50612. return s
  50613. }
  50614. type GetTransitGatewayRouteTablePropagationsInput struct {
  50615. _ struct{} `type:"structure"`
  50616. // Checks whether you have the required permissions for the action, without
  50617. // actually making the request, and provides an error response. If you have
  50618. // the required permissions, the error response is DryRunOperation. Otherwise,
  50619. // it is UnauthorizedOperation.
  50620. DryRun *bool `type:"boolean"`
  50621. // One or more filters. The possible values are:
  50622. //
  50623. // * resource-id - The ID of the resource.
  50624. //
  50625. // * resource-type - The resource type (vpc | vpn).
  50626. //
  50627. // * transit-gateway-attachment-id - The ID of the attachment.
  50628. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  50629. // The maximum number of results to return with a single call. To retrieve the
  50630. // remaining results, make another call with the returned nextToken value.
  50631. MaxResults *int64 `min:"5" type:"integer"`
  50632. // The token for the next page of results.
  50633. NextToken *string `type:"string"`
  50634. // The ID of the transit gateway route table.
  50635. //
  50636. // TransitGatewayRouteTableId is a required field
  50637. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  50638. }
  50639. // String returns the string representation
  50640. func (s GetTransitGatewayRouteTablePropagationsInput) String() string {
  50641. return awsutil.Prettify(s)
  50642. }
  50643. // GoString returns the string representation
  50644. func (s GetTransitGatewayRouteTablePropagationsInput) GoString() string {
  50645. return s.String()
  50646. }
  50647. // Validate inspects the fields of the type to determine if they are valid.
  50648. func (s *GetTransitGatewayRouteTablePropagationsInput) Validate() error {
  50649. invalidParams := request.ErrInvalidParams{Context: "GetTransitGatewayRouteTablePropagationsInput"}
  50650. if s.MaxResults != nil && *s.MaxResults < 5 {
  50651. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  50652. }
  50653. if s.TransitGatewayRouteTableId == nil {
  50654. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  50655. }
  50656. if invalidParams.Len() > 0 {
  50657. return invalidParams
  50658. }
  50659. return nil
  50660. }
  50661. // SetDryRun sets the DryRun field's value.
  50662. func (s *GetTransitGatewayRouteTablePropagationsInput) SetDryRun(v bool) *GetTransitGatewayRouteTablePropagationsInput {
  50663. s.DryRun = &v
  50664. return s
  50665. }
  50666. // SetFilters sets the Filters field's value.
  50667. func (s *GetTransitGatewayRouteTablePropagationsInput) SetFilters(v []*Filter) *GetTransitGatewayRouteTablePropagationsInput {
  50668. s.Filters = v
  50669. return s
  50670. }
  50671. // SetMaxResults sets the MaxResults field's value.
  50672. func (s *GetTransitGatewayRouteTablePropagationsInput) SetMaxResults(v int64) *GetTransitGatewayRouteTablePropagationsInput {
  50673. s.MaxResults = &v
  50674. return s
  50675. }
  50676. // SetNextToken sets the NextToken field's value.
  50677. func (s *GetTransitGatewayRouteTablePropagationsInput) SetNextToken(v string) *GetTransitGatewayRouteTablePropagationsInput {
  50678. s.NextToken = &v
  50679. return s
  50680. }
  50681. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  50682. func (s *GetTransitGatewayRouteTablePropagationsInput) SetTransitGatewayRouteTableId(v string) *GetTransitGatewayRouteTablePropagationsInput {
  50683. s.TransitGatewayRouteTableId = &v
  50684. return s
  50685. }
  50686. type GetTransitGatewayRouteTablePropagationsOutput struct {
  50687. _ struct{} `type:"structure"`
  50688. // The token to use to retrieve the next page of results. This value is null
  50689. // when there are no more results to return.
  50690. NextToken *string `locationName:"nextToken" type:"string"`
  50691. // Information about the route table propagations.
  50692. TransitGatewayRouteTablePropagations []*TransitGatewayRouteTablePropagation `locationName:"transitGatewayRouteTablePropagations" locationNameList:"item" type:"list"`
  50693. }
  50694. // String returns the string representation
  50695. func (s GetTransitGatewayRouteTablePropagationsOutput) String() string {
  50696. return awsutil.Prettify(s)
  50697. }
  50698. // GoString returns the string representation
  50699. func (s GetTransitGatewayRouteTablePropagationsOutput) GoString() string {
  50700. return s.String()
  50701. }
  50702. // SetNextToken sets the NextToken field's value.
  50703. func (s *GetTransitGatewayRouteTablePropagationsOutput) SetNextToken(v string) *GetTransitGatewayRouteTablePropagationsOutput {
  50704. s.NextToken = &v
  50705. return s
  50706. }
  50707. // SetTransitGatewayRouteTablePropagations sets the TransitGatewayRouteTablePropagations field's value.
  50708. func (s *GetTransitGatewayRouteTablePropagationsOutput) SetTransitGatewayRouteTablePropagations(v []*TransitGatewayRouteTablePropagation) *GetTransitGatewayRouteTablePropagationsOutput {
  50709. s.TransitGatewayRouteTablePropagations = v
  50710. return s
  50711. }
  50712. // Describes a security group.
  50713. type GroupIdentifier struct {
  50714. _ struct{} `type:"structure"`
  50715. // The ID of the security group.
  50716. GroupId *string `locationName:"groupId" type:"string"`
  50717. // The name of the security group.
  50718. GroupName *string `locationName:"groupName" type:"string"`
  50719. }
  50720. // String returns the string representation
  50721. func (s GroupIdentifier) String() string {
  50722. return awsutil.Prettify(s)
  50723. }
  50724. // GoString returns the string representation
  50725. func (s GroupIdentifier) GoString() string {
  50726. return s.String()
  50727. }
  50728. // SetGroupId sets the GroupId field's value.
  50729. func (s *GroupIdentifier) SetGroupId(v string) *GroupIdentifier {
  50730. s.GroupId = &v
  50731. return s
  50732. }
  50733. // SetGroupName sets the GroupName field's value.
  50734. func (s *GroupIdentifier) SetGroupName(v string) *GroupIdentifier {
  50735. s.GroupName = &v
  50736. return s
  50737. }
  50738. // Indicates whether your instance is configured for hibernation. This parameter
  50739. // is valid only if the instance meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites).
  50740. // Hibernation is currently supported only for Amazon Linux. For more information,
  50741. // see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  50742. // in the Amazon Elastic Compute Cloud User Guide.
  50743. type HibernationOptions struct {
  50744. _ struct{} `type:"structure"`
  50745. // If this parameter is set to true, your instance is enabled for hibernation;
  50746. // otherwise, it is not enabled for hibernation.
  50747. Configured *bool `locationName:"configured" type:"boolean"`
  50748. }
  50749. // String returns the string representation
  50750. func (s HibernationOptions) String() string {
  50751. return awsutil.Prettify(s)
  50752. }
  50753. // GoString returns the string representation
  50754. func (s HibernationOptions) GoString() string {
  50755. return s.String()
  50756. }
  50757. // SetConfigured sets the Configured field's value.
  50758. func (s *HibernationOptions) SetConfigured(v bool) *HibernationOptions {
  50759. s.Configured = &v
  50760. return s
  50761. }
  50762. // Indicates whether your instance is configured for hibernation. This parameter
  50763. // is valid only if the instance meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites).
  50764. // Hibernation is currently supported only for Amazon Linux. For more information,
  50765. // see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  50766. // in the Amazon Elastic Compute Cloud User Guide.
  50767. type HibernationOptionsRequest struct {
  50768. _ struct{} `type:"structure"`
  50769. // If you set this parameter to true, your instance is enabled for hibernation.
  50770. //
  50771. // Default: false
  50772. Configured *bool `type:"boolean"`
  50773. }
  50774. // String returns the string representation
  50775. func (s HibernationOptionsRequest) String() string {
  50776. return awsutil.Prettify(s)
  50777. }
  50778. // GoString returns the string representation
  50779. func (s HibernationOptionsRequest) GoString() string {
  50780. return s.String()
  50781. }
  50782. // SetConfigured sets the Configured field's value.
  50783. func (s *HibernationOptionsRequest) SetConfigured(v bool) *HibernationOptionsRequest {
  50784. s.Configured = &v
  50785. return s
  50786. }
  50787. // Describes an event in the history of the Spot Fleet request.
  50788. type HistoryRecord struct {
  50789. _ struct{} `type:"structure"`
  50790. // Information about the event.
  50791. EventInformation *EventInformation `locationName:"eventInformation" type:"structure"`
  50792. // The event type.
  50793. //
  50794. // * error - An error with the Spot Fleet request.
  50795. //
  50796. // * fleetRequestChange - A change in the status or configuration of the
  50797. // Spot Fleet request.
  50798. //
  50799. // * instanceChange - An instance was launched or terminated.
  50800. //
  50801. // * Information - An informational event.
  50802. EventType *string `locationName:"eventType" type:"string" enum:"EventType"`
  50803. // The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  50804. Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
  50805. }
  50806. // String returns the string representation
  50807. func (s HistoryRecord) String() string {
  50808. return awsutil.Prettify(s)
  50809. }
  50810. // GoString returns the string representation
  50811. func (s HistoryRecord) GoString() string {
  50812. return s.String()
  50813. }
  50814. // SetEventInformation sets the EventInformation field's value.
  50815. func (s *HistoryRecord) SetEventInformation(v *EventInformation) *HistoryRecord {
  50816. s.EventInformation = v
  50817. return s
  50818. }
  50819. // SetEventType sets the EventType field's value.
  50820. func (s *HistoryRecord) SetEventType(v string) *HistoryRecord {
  50821. s.EventType = &v
  50822. return s
  50823. }
  50824. // SetTimestamp sets the Timestamp field's value.
  50825. func (s *HistoryRecord) SetTimestamp(v time.Time) *HistoryRecord {
  50826. s.Timestamp = &v
  50827. return s
  50828. }
  50829. // Describes an event in the history of an EC2 Fleet.
  50830. type HistoryRecordEntry struct {
  50831. _ struct{} `type:"structure"`
  50832. // Information about the event.
  50833. EventInformation *EventInformation `locationName:"eventInformation" type:"structure"`
  50834. // The event type.
  50835. EventType *string `locationName:"eventType" type:"string" enum:"FleetEventType"`
  50836. // The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  50837. Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
  50838. }
  50839. // String returns the string representation
  50840. func (s HistoryRecordEntry) String() string {
  50841. return awsutil.Prettify(s)
  50842. }
  50843. // GoString returns the string representation
  50844. func (s HistoryRecordEntry) GoString() string {
  50845. return s.String()
  50846. }
  50847. // SetEventInformation sets the EventInformation field's value.
  50848. func (s *HistoryRecordEntry) SetEventInformation(v *EventInformation) *HistoryRecordEntry {
  50849. s.EventInformation = v
  50850. return s
  50851. }
  50852. // SetEventType sets the EventType field's value.
  50853. func (s *HistoryRecordEntry) SetEventType(v string) *HistoryRecordEntry {
  50854. s.EventType = &v
  50855. return s
  50856. }
  50857. // SetTimestamp sets the Timestamp field's value.
  50858. func (s *HistoryRecordEntry) SetTimestamp(v time.Time) *HistoryRecordEntry {
  50859. s.Timestamp = &v
  50860. return s
  50861. }
  50862. // Describes the properties of the Dedicated Host.
  50863. type Host struct {
  50864. _ struct{} `type:"structure"`
  50865. // The time that the Dedicated Host was allocated.
  50866. AllocationTime *time.Time `locationName:"allocationTime" type:"timestamp"`
  50867. // Whether auto-placement is on or off.
  50868. AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"`
  50869. // The Availability Zone of the Dedicated Host.
  50870. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  50871. // The number of new instances that can be launched onto the Dedicated Host.
  50872. AvailableCapacity *AvailableCapacity `locationName:"availableCapacity" type:"structure"`
  50873. // Unique, case-sensitive identifier that you provide to ensure idempotency
  50874. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  50875. // in the Amazon Elastic Compute Cloud User Guide.
  50876. ClientToken *string `locationName:"clientToken" type:"string"`
  50877. // The ID of the Dedicated Host.
  50878. HostId *string `locationName:"hostId" type:"string"`
  50879. // The hardware specifications of the Dedicated Host.
  50880. HostProperties *HostProperties `locationName:"hostProperties" type:"structure"`
  50881. // The reservation ID of the Dedicated Host. This returns a null response if
  50882. // the Dedicated Host doesn't have an associated reservation.
  50883. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  50884. // The IDs and instance type that are currently running on the Dedicated Host.
  50885. Instances []*HostInstance `locationName:"instances" locationNameList:"item" type:"list"`
  50886. // The time that the Dedicated Host was released.
  50887. ReleaseTime *time.Time `locationName:"releaseTime" type:"timestamp"`
  50888. // The Dedicated Host's state.
  50889. State *string `locationName:"state" type:"string" enum:"AllocationState"`
  50890. // Any tags assigned to the Dedicated Host.
  50891. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  50892. }
  50893. // String returns the string representation
  50894. func (s Host) String() string {
  50895. return awsutil.Prettify(s)
  50896. }
  50897. // GoString returns the string representation
  50898. func (s Host) GoString() string {
  50899. return s.String()
  50900. }
  50901. // SetAllocationTime sets the AllocationTime field's value.
  50902. func (s *Host) SetAllocationTime(v time.Time) *Host {
  50903. s.AllocationTime = &v
  50904. return s
  50905. }
  50906. // SetAutoPlacement sets the AutoPlacement field's value.
  50907. func (s *Host) SetAutoPlacement(v string) *Host {
  50908. s.AutoPlacement = &v
  50909. return s
  50910. }
  50911. // SetAvailabilityZone sets the AvailabilityZone field's value.
  50912. func (s *Host) SetAvailabilityZone(v string) *Host {
  50913. s.AvailabilityZone = &v
  50914. return s
  50915. }
  50916. // SetAvailableCapacity sets the AvailableCapacity field's value.
  50917. func (s *Host) SetAvailableCapacity(v *AvailableCapacity) *Host {
  50918. s.AvailableCapacity = v
  50919. return s
  50920. }
  50921. // SetClientToken sets the ClientToken field's value.
  50922. func (s *Host) SetClientToken(v string) *Host {
  50923. s.ClientToken = &v
  50924. return s
  50925. }
  50926. // SetHostId sets the HostId field's value.
  50927. func (s *Host) SetHostId(v string) *Host {
  50928. s.HostId = &v
  50929. return s
  50930. }
  50931. // SetHostProperties sets the HostProperties field's value.
  50932. func (s *Host) SetHostProperties(v *HostProperties) *Host {
  50933. s.HostProperties = v
  50934. return s
  50935. }
  50936. // SetHostReservationId sets the HostReservationId field's value.
  50937. func (s *Host) SetHostReservationId(v string) *Host {
  50938. s.HostReservationId = &v
  50939. return s
  50940. }
  50941. // SetInstances sets the Instances field's value.
  50942. func (s *Host) SetInstances(v []*HostInstance) *Host {
  50943. s.Instances = v
  50944. return s
  50945. }
  50946. // SetReleaseTime sets the ReleaseTime field's value.
  50947. func (s *Host) SetReleaseTime(v time.Time) *Host {
  50948. s.ReleaseTime = &v
  50949. return s
  50950. }
  50951. // SetState sets the State field's value.
  50952. func (s *Host) SetState(v string) *Host {
  50953. s.State = &v
  50954. return s
  50955. }
  50956. // SetTags sets the Tags field's value.
  50957. func (s *Host) SetTags(v []*Tag) *Host {
  50958. s.Tags = v
  50959. return s
  50960. }
  50961. // Describes an instance running on a Dedicated Host.
  50962. type HostInstance struct {
  50963. _ struct{} `type:"structure"`
  50964. // the IDs of instances that are running on the Dedicated Host.
  50965. InstanceId *string `locationName:"instanceId" type:"string"`
  50966. // The instance type size (for example, m3.medium) of the running instance.
  50967. InstanceType *string `locationName:"instanceType" type:"string"`
  50968. }
  50969. // String returns the string representation
  50970. func (s HostInstance) String() string {
  50971. return awsutil.Prettify(s)
  50972. }
  50973. // GoString returns the string representation
  50974. func (s HostInstance) GoString() string {
  50975. return s.String()
  50976. }
  50977. // SetInstanceId sets the InstanceId field's value.
  50978. func (s *HostInstance) SetInstanceId(v string) *HostInstance {
  50979. s.InstanceId = &v
  50980. return s
  50981. }
  50982. // SetInstanceType sets the InstanceType field's value.
  50983. func (s *HostInstance) SetInstanceType(v string) *HostInstance {
  50984. s.InstanceType = &v
  50985. return s
  50986. }
  50987. // Details about the Dedicated Host Reservation offering.
  50988. type HostOffering struct {
  50989. _ struct{} `type:"structure"`
  50990. // The currency of the offering.
  50991. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  50992. // The duration of the offering (in seconds).
  50993. Duration *int64 `locationName:"duration" type:"integer"`
  50994. // The hourly price of the offering.
  50995. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  50996. // The instance family of the offering.
  50997. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  50998. // The ID of the offering.
  50999. OfferingId *string `locationName:"offeringId" type:"string"`
  51000. // The available payment option.
  51001. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  51002. // The upfront price of the offering. Does not apply to No Upfront offerings.
  51003. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  51004. }
  51005. // String returns the string representation
  51006. func (s HostOffering) String() string {
  51007. return awsutil.Prettify(s)
  51008. }
  51009. // GoString returns the string representation
  51010. func (s HostOffering) GoString() string {
  51011. return s.String()
  51012. }
  51013. // SetCurrencyCode sets the CurrencyCode field's value.
  51014. func (s *HostOffering) SetCurrencyCode(v string) *HostOffering {
  51015. s.CurrencyCode = &v
  51016. return s
  51017. }
  51018. // SetDuration sets the Duration field's value.
  51019. func (s *HostOffering) SetDuration(v int64) *HostOffering {
  51020. s.Duration = &v
  51021. return s
  51022. }
  51023. // SetHourlyPrice sets the HourlyPrice field's value.
  51024. func (s *HostOffering) SetHourlyPrice(v string) *HostOffering {
  51025. s.HourlyPrice = &v
  51026. return s
  51027. }
  51028. // SetInstanceFamily sets the InstanceFamily field's value.
  51029. func (s *HostOffering) SetInstanceFamily(v string) *HostOffering {
  51030. s.InstanceFamily = &v
  51031. return s
  51032. }
  51033. // SetOfferingId sets the OfferingId field's value.
  51034. func (s *HostOffering) SetOfferingId(v string) *HostOffering {
  51035. s.OfferingId = &v
  51036. return s
  51037. }
  51038. // SetPaymentOption sets the PaymentOption field's value.
  51039. func (s *HostOffering) SetPaymentOption(v string) *HostOffering {
  51040. s.PaymentOption = &v
  51041. return s
  51042. }
  51043. // SetUpfrontPrice sets the UpfrontPrice field's value.
  51044. func (s *HostOffering) SetUpfrontPrice(v string) *HostOffering {
  51045. s.UpfrontPrice = &v
  51046. return s
  51047. }
  51048. // Describes properties of a Dedicated Host.
  51049. type HostProperties struct {
  51050. _ struct{} `type:"structure"`
  51051. // The number of cores on the Dedicated Host.
  51052. Cores *int64 `locationName:"cores" type:"integer"`
  51053. // The instance type size that the Dedicated Host supports (for example, m3.medium).
  51054. InstanceType *string `locationName:"instanceType" type:"string"`
  51055. // The number of sockets on the Dedicated Host.
  51056. Sockets *int64 `locationName:"sockets" type:"integer"`
  51057. // The number of vCPUs on the Dedicated Host.
  51058. TotalVCpus *int64 `locationName:"totalVCpus" type:"integer"`
  51059. }
  51060. // String returns the string representation
  51061. func (s HostProperties) String() string {
  51062. return awsutil.Prettify(s)
  51063. }
  51064. // GoString returns the string representation
  51065. func (s HostProperties) GoString() string {
  51066. return s.String()
  51067. }
  51068. // SetCores sets the Cores field's value.
  51069. func (s *HostProperties) SetCores(v int64) *HostProperties {
  51070. s.Cores = &v
  51071. return s
  51072. }
  51073. // SetInstanceType sets the InstanceType field's value.
  51074. func (s *HostProperties) SetInstanceType(v string) *HostProperties {
  51075. s.InstanceType = &v
  51076. return s
  51077. }
  51078. // SetSockets sets the Sockets field's value.
  51079. func (s *HostProperties) SetSockets(v int64) *HostProperties {
  51080. s.Sockets = &v
  51081. return s
  51082. }
  51083. // SetTotalVCpus sets the TotalVCpus field's value.
  51084. func (s *HostProperties) SetTotalVCpus(v int64) *HostProperties {
  51085. s.TotalVCpus = &v
  51086. return s
  51087. }
  51088. // Details about the Dedicated Host Reservation and associated Dedicated Hosts.
  51089. type HostReservation struct {
  51090. _ struct{} `type:"structure"`
  51091. // The number of Dedicated Hosts the reservation is associated with.
  51092. Count *int64 `locationName:"count" type:"integer"`
  51093. // The currency in which the upfrontPrice and hourlyPrice amounts are specified.
  51094. // At this time, the only supported currency is USD.
  51095. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  51096. // The length of the reservation's term, specified in seconds. Can be 31536000
  51097. // (1 year) | 94608000 (3 years).
  51098. Duration *int64 `locationName:"duration" type:"integer"`
  51099. // The date and time that the reservation ends.
  51100. End *time.Time `locationName:"end" type:"timestamp"`
  51101. // The IDs of the Dedicated Hosts associated with the reservation.
  51102. HostIdSet []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  51103. // The ID of the reservation that specifies the associated Dedicated Hosts.
  51104. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  51105. // The hourly price of the reservation.
  51106. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  51107. // The instance family of the Dedicated Host Reservation. The instance family
  51108. // on the Dedicated Host must be the same in order for it to benefit from the
  51109. // reservation.
  51110. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  51111. // The ID of the reservation. This remains the same regardless of which Dedicated
  51112. // Hosts are associated with it.
  51113. OfferingId *string `locationName:"offeringId" type:"string"`
  51114. // The payment option selected for this reservation.
  51115. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  51116. // The date and time that the reservation started.
  51117. Start *time.Time `locationName:"start" type:"timestamp"`
  51118. // The state of the reservation.
  51119. State *string `locationName:"state" type:"string" enum:"ReservationState"`
  51120. // The upfront price of the reservation.
  51121. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  51122. }
  51123. // String returns the string representation
  51124. func (s HostReservation) String() string {
  51125. return awsutil.Prettify(s)
  51126. }
  51127. // GoString returns the string representation
  51128. func (s HostReservation) GoString() string {
  51129. return s.String()
  51130. }
  51131. // SetCount sets the Count field's value.
  51132. func (s *HostReservation) SetCount(v int64) *HostReservation {
  51133. s.Count = &v
  51134. return s
  51135. }
  51136. // SetCurrencyCode sets the CurrencyCode field's value.
  51137. func (s *HostReservation) SetCurrencyCode(v string) *HostReservation {
  51138. s.CurrencyCode = &v
  51139. return s
  51140. }
  51141. // SetDuration sets the Duration field's value.
  51142. func (s *HostReservation) SetDuration(v int64) *HostReservation {
  51143. s.Duration = &v
  51144. return s
  51145. }
  51146. // SetEnd sets the End field's value.
  51147. func (s *HostReservation) SetEnd(v time.Time) *HostReservation {
  51148. s.End = &v
  51149. return s
  51150. }
  51151. // SetHostIdSet sets the HostIdSet field's value.
  51152. func (s *HostReservation) SetHostIdSet(v []*string) *HostReservation {
  51153. s.HostIdSet = v
  51154. return s
  51155. }
  51156. // SetHostReservationId sets the HostReservationId field's value.
  51157. func (s *HostReservation) SetHostReservationId(v string) *HostReservation {
  51158. s.HostReservationId = &v
  51159. return s
  51160. }
  51161. // SetHourlyPrice sets the HourlyPrice field's value.
  51162. func (s *HostReservation) SetHourlyPrice(v string) *HostReservation {
  51163. s.HourlyPrice = &v
  51164. return s
  51165. }
  51166. // SetInstanceFamily sets the InstanceFamily field's value.
  51167. func (s *HostReservation) SetInstanceFamily(v string) *HostReservation {
  51168. s.InstanceFamily = &v
  51169. return s
  51170. }
  51171. // SetOfferingId sets the OfferingId field's value.
  51172. func (s *HostReservation) SetOfferingId(v string) *HostReservation {
  51173. s.OfferingId = &v
  51174. return s
  51175. }
  51176. // SetPaymentOption sets the PaymentOption field's value.
  51177. func (s *HostReservation) SetPaymentOption(v string) *HostReservation {
  51178. s.PaymentOption = &v
  51179. return s
  51180. }
  51181. // SetStart sets the Start field's value.
  51182. func (s *HostReservation) SetStart(v time.Time) *HostReservation {
  51183. s.Start = &v
  51184. return s
  51185. }
  51186. // SetState sets the State field's value.
  51187. func (s *HostReservation) SetState(v string) *HostReservation {
  51188. s.State = &v
  51189. return s
  51190. }
  51191. // SetUpfrontPrice sets the UpfrontPrice field's value.
  51192. func (s *HostReservation) SetUpfrontPrice(v string) *HostReservation {
  51193. s.UpfrontPrice = &v
  51194. return s
  51195. }
  51196. // Describes an IAM instance profile.
  51197. type IamInstanceProfile struct {
  51198. _ struct{} `type:"structure"`
  51199. // The Amazon Resource Name (ARN) of the instance profile.
  51200. Arn *string `locationName:"arn" type:"string"`
  51201. // The ID of the instance profile.
  51202. Id *string `locationName:"id" type:"string"`
  51203. }
  51204. // String returns the string representation
  51205. func (s IamInstanceProfile) String() string {
  51206. return awsutil.Prettify(s)
  51207. }
  51208. // GoString returns the string representation
  51209. func (s IamInstanceProfile) GoString() string {
  51210. return s.String()
  51211. }
  51212. // SetArn sets the Arn field's value.
  51213. func (s *IamInstanceProfile) SetArn(v string) *IamInstanceProfile {
  51214. s.Arn = &v
  51215. return s
  51216. }
  51217. // SetId sets the Id field's value.
  51218. func (s *IamInstanceProfile) SetId(v string) *IamInstanceProfile {
  51219. s.Id = &v
  51220. return s
  51221. }
  51222. // Describes an association between an IAM instance profile and an instance.
  51223. type IamInstanceProfileAssociation struct {
  51224. _ struct{} `type:"structure"`
  51225. // The ID of the association.
  51226. AssociationId *string `locationName:"associationId" type:"string"`
  51227. // The IAM instance profile.
  51228. IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"`
  51229. // The ID of the instance.
  51230. InstanceId *string `locationName:"instanceId" type:"string"`
  51231. // The state of the association.
  51232. State *string `locationName:"state" type:"string" enum:"IamInstanceProfileAssociationState"`
  51233. // The time the IAM instance profile was associated with the instance.
  51234. Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
  51235. }
  51236. // String returns the string representation
  51237. func (s IamInstanceProfileAssociation) String() string {
  51238. return awsutil.Prettify(s)
  51239. }
  51240. // GoString returns the string representation
  51241. func (s IamInstanceProfileAssociation) GoString() string {
  51242. return s.String()
  51243. }
  51244. // SetAssociationId sets the AssociationId field's value.
  51245. func (s *IamInstanceProfileAssociation) SetAssociationId(v string) *IamInstanceProfileAssociation {
  51246. s.AssociationId = &v
  51247. return s
  51248. }
  51249. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  51250. func (s *IamInstanceProfileAssociation) SetIamInstanceProfile(v *IamInstanceProfile) *IamInstanceProfileAssociation {
  51251. s.IamInstanceProfile = v
  51252. return s
  51253. }
  51254. // SetInstanceId sets the InstanceId field's value.
  51255. func (s *IamInstanceProfileAssociation) SetInstanceId(v string) *IamInstanceProfileAssociation {
  51256. s.InstanceId = &v
  51257. return s
  51258. }
  51259. // SetState sets the State field's value.
  51260. func (s *IamInstanceProfileAssociation) SetState(v string) *IamInstanceProfileAssociation {
  51261. s.State = &v
  51262. return s
  51263. }
  51264. // SetTimestamp sets the Timestamp field's value.
  51265. func (s *IamInstanceProfileAssociation) SetTimestamp(v time.Time) *IamInstanceProfileAssociation {
  51266. s.Timestamp = &v
  51267. return s
  51268. }
  51269. // Describes an IAM instance profile.
  51270. type IamInstanceProfileSpecification struct {
  51271. _ struct{} `type:"structure"`
  51272. // The Amazon Resource Name (ARN) of the instance profile.
  51273. Arn *string `locationName:"arn" type:"string"`
  51274. // The name of the instance profile.
  51275. Name *string `locationName:"name" type:"string"`
  51276. }
  51277. // String returns the string representation
  51278. func (s IamInstanceProfileSpecification) String() string {
  51279. return awsutil.Prettify(s)
  51280. }
  51281. // GoString returns the string representation
  51282. func (s IamInstanceProfileSpecification) GoString() string {
  51283. return s.String()
  51284. }
  51285. // SetArn sets the Arn field's value.
  51286. func (s *IamInstanceProfileSpecification) SetArn(v string) *IamInstanceProfileSpecification {
  51287. s.Arn = &v
  51288. return s
  51289. }
  51290. // SetName sets the Name field's value.
  51291. func (s *IamInstanceProfileSpecification) SetName(v string) *IamInstanceProfileSpecification {
  51292. s.Name = &v
  51293. return s
  51294. }
  51295. // Describes the ICMP type and code.
  51296. type IcmpTypeCode struct {
  51297. _ struct{} `type:"structure"`
  51298. // The ICMP code. A value of -1 means all codes for the specified ICMP type.
  51299. Code *int64 `locationName:"code" type:"integer"`
  51300. // The ICMP type. A value of -1 means all types.
  51301. Type *int64 `locationName:"type" type:"integer"`
  51302. }
  51303. // String returns the string representation
  51304. func (s IcmpTypeCode) String() string {
  51305. return awsutil.Prettify(s)
  51306. }
  51307. // GoString returns the string representation
  51308. func (s IcmpTypeCode) GoString() string {
  51309. return s.String()
  51310. }
  51311. // SetCode sets the Code field's value.
  51312. func (s *IcmpTypeCode) SetCode(v int64) *IcmpTypeCode {
  51313. s.Code = &v
  51314. return s
  51315. }
  51316. // SetType sets the Type field's value.
  51317. func (s *IcmpTypeCode) SetType(v int64) *IcmpTypeCode {
  51318. s.Type = &v
  51319. return s
  51320. }
  51321. // Describes the ID format for a resource.
  51322. type IdFormat struct {
  51323. _ struct{} `type:"structure"`
  51324. // The date in UTC at which you are permanently switched over to using longer
  51325. // IDs. If a deadline is not yet available for this resource type, this field
  51326. // is not returned.
  51327. Deadline *time.Time `locationName:"deadline" type:"timestamp"`
  51328. // The type of resource.
  51329. Resource *string `locationName:"resource" type:"string"`
  51330. // Indicates whether longer IDs (17-character IDs) are enabled for the resource.
  51331. UseLongIds *bool `locationName:"useLongIds" type:"boolean"`
  51332. }
  51333. // String returns the string representation
  51334. func (s IdFormat) String() string {
  51335. return awsutil.Prettify(s)
  51336. }
  51337. // GoString returns the string representation
  51338. func (s IdFormat) GoString() string {
  51339. return s.String()
  51340. }
  51341. // SetDeadline sets the Deadline field's value.
  51342. func (s *IdFormat) SetDeadline(v time.Time) *IdFormat {
  51343. s.Deadline = &v
  51344. return s
  51345. }
  51346. // SetResource sets the Resource field's value.
  51347. func (s *IdFormat) SetResource(v string) *IdFormat {
  51348. s.Resource = &v
  51349. return s
  51350. }
  51351. // SetUseLongIds sets the UseLongIds field's value.
  51352. func (s *IdFormat) SetUseLongIds(v bool) *IdFormat {
  51353. s.UseLongIds = &v
  51354. return s
  51355. }
  51356. // Describes an image.
  51357. type Image struct {
  51358. _ struct{} `type:"structure"`
  51359. // The architecture of the image.
  51360. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  51361. // Any block device mapping entries.
  51362. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  51363. // The date and time the image was created.
  51364. CreationDate *string `locationName:"creationDate" type:"string"`
  51365. // The description of the AMI that was provided during image creation.
  51366. Description *string `locationName:"description" type:"string"`
  51367. // Specifies whether enhanced networking with ENA is enabled.
  51368. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  51369. // The hypervisor type of the image.
  51370. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"`
  51371. // The ID of the AMI.
  51372. ImageId *string `locationName:"imageId" type:"string"`
  51373. // The location of the AMI.
  51374. ImageLocation *string `locationName:"imageLocation" type:"string"`
  51375. // The AWS account alias (for example, amazon, self) or the AWS account ID of
  51376. // the AMI owner.
  51377. ImageOwnerAlias *string `locationName:"imageOwnerAlias" type:"string"`
  51378. // The type of image.
  51379. ImageType *string `locationName:"imageType" type:"string" enum:"ImageTypeValues"`
  51380. // The kernel associated with the image, if any. Only applicable for machine
  51381. // images.
  51382. KernelId *string `locationName:"kernelId" type:"string"`
  51383. // The name of the AMI that was provided during image creation.
  51384. Name *string `locationName:"name" type:"string"`
  51385. // The AWS account ID of the image owner.
  51386. OwnerId *string `locationName:"imageOwnerId" type:"string"`
  51387. // The value is Windows for Windows AMIs; otherwise blank.
  51388. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  51389. // Any product codes associated with the AMI.
  51390. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  51391. // Indicates whether the image has public launch permissions. The value is true
  51392. // if this image has public launch permissions or false if it has only implicit
  51393. // and explicit launch permissions.
  51394. Public *bool `locationName:"isPublic" type:"boolean"`
  51395. // The RAM disk associated with the image, if any. Only applicable for machine
  51396. // images.
  51397. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  51398. // The device name of the root device volume (for example, /dev/sda1).
  51399. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  51400. // The type of root device used by the AMI. The AMI can use an EBS volume or
  51401. // an instance store volume.
  51402. RootDeviceType *string `locationName:"rootDeviceType" type:"string" enum:"DeviceType"`
  51403. // Specifies whether enhanced networking with the Intel 82599 Virtual Function
  51404. // interface is enabled.
  51405. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  51406. // The current state of the AMI. If the state is available, the image is successfully
  51407. // registered and can be used to launch an instance.
  51408. State *string `locationName:"imageState" type:"string" enum:"ImageState"`
  51409. // The reason for the state change.
  51410. StateReason *StateReason `locationName:"stateReason" type:"structure"`
  51411. // Any tags assigned to the image.
  51412. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  51413. // The type of virtualization of the AMI.
  51414. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"`
  51415. }
  51416. // String returns the string representation
  51417. func (s Image) String() string {
  51418. return awsutil.Prettify(s)
  51419. }
  51420. // GoString returns the string representation
  51421. func (s Image) GoString() string {
  51422. return s.String()
  51423. }
  51424. // SetArchitecture sets the Architecture field's value.
  51425. func (s *Image) SetArchitecture(v string) *Image {
  51426. s.Architecture = &v
  51427. return s
  51428. }
  51429. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  51430. func (s *Image) SetBlockDeviceMappings(v []*BlockDeviceMapping) *Image {
  51431. s.BlockDeviceMappings = v
  51432. return s
  51433. }
  51434. // SetCreationDate sets the CreationDate field's value.
  51435. func (s *Image) SetCreationDate(v string) *Image {
  51436. s.CreationDate = &v
  51437. return s
  51438. }
  51439. // SetDescription sets the Description field's value.
  51440. func (s *Image) SetDescription(v string) *Image {
  51441. s.Description = &v
  51442. return s
  51443. }
  51444. // SetEnaSupport sets the EnaSupport field's value.
  51445. func (s *Image) SetEnaSupport(v bool) *Image {
  51446. s.EnaSupport = &v
  51447. return s
  51448. }
  51449. // SetHypervisor sets the Hypervisor field's value.
  51450. func (s *Image) SetHypervisor(v string) *Image {
  51451. s.Hypervisor = &v
  51452. return s
  51453. }
  51454. // SetImageId sets the ImageId field's value.
  51455. func (s *Image) SetImageId(v string) *Image {
  51456. s.ImageId = &v
  51457. return s
  51458. }
  51459. // SetImageLocation sets the ImageLocation field's value.
  51460. func (s *Image) SetImageLocation(v string) *Image {
  51461. s.ImageLocation = &v
  51462. return s
  51463. }
  51464. // SetImageOwnerAlias sets the ImageOwnerAlias field's value.
  51465. func (s *Image) SetImageOwnerAlias(v string) *Image {
  51466. s.ImageOwnerAlias = &v
  51467. return s
  51468. }
  51469. // SetImageType sets the ImageType field's value.
  51470. func (s *Image) SetImageType(v string) *Image {
  51471. s.ImageType = &v
  51472. return s
  51473. }
  51474. // SetKernelId sets the KernelId field's value.
  51475. func (s *Image) SetKernelId(v string) *Image {
  51476. s.KernelId = &v
  51477. return s
  51478. }
  51479. // SetName sets the Name field's value.
  51480. func (s *Image) SetName(v string) *Image {
  51481. s.Name = &v
  51482. return s
  51483. }
  51484. // SetOwnerId sets the OwnerId field's value.
  51485. func (s *Image) SetOwnerId(v string) *Image {
  51486. s.OwnerId = &v
  51487. return s
  51488. }
  51489. // SetPlatform sets the Platform field's value.
  51490. func (s *Image) SetPlatform(v string) *Image {
  51491. s.Platform = &v
  51492. return s
  51493. }
  51494. // SetProductCodes sets the ProductCodes field's value.
  51495. func (s *Image) SetProductCodes(v []*ProductCode) *Image {
  51496. s.ProductCodes = v
  51497. return s
  51498. }
  51499. // SetPublic sets the Public field's value.
  51500. func (s *Image) SetPublic(v bool) *Image {
  51501. s.Public = &v
  51502. return s
  51503. }
  51504. // SetRamdiskId sets the RamdiskId field's value.
  51505. func (s *Image) SetRamdiskId(v string) *Image {
  51506. s.RamdiskId = &v
  51507. return s
  51508. }
  51509. // SetRootDeviceName sets the RootDeviceName field's value.
  51510. func (s *Image) SetRootDeviceName(v string) *Image {
  51511. s.RootDeviceName = &v
  51512. return s
  51513. }
  51514. // SetRootDeviceType sets the RootDeviceType field's value.
  51515. func (s *Image) SetRootDeviceType(v string) *Image {
  51516. s.RootDeviceType = &v
  51517. return s
  51518. }
  51519. // SetSriovNetSupport sets the SriovNetSupport field's value.
  51520. func (s *Image) SetSriovNetSupport(v string) *Image {
  51521. s.SriovNetSupport = &v
  51522. return s
  51523. }
  51524. // SetState sets the State field's value.
  51525. func (s *Image) SetState(v string) *Image {
  51526. s.State = &v
  51527. return s
  51528. }
  51529. // SetStateReason sets the StateReason field's value.
  51530. func (s *Image) SetStateReason(v *StateReason) *Image {
  51531. s.StateReason = v
  51532. return s
  51533. }
  51534. // SetTags sets the Tags field's value.
  51535. func (s *Image) SetTags(v []*Tag) *Image {
  51536. s.Tags = v
  51537. return s
  51538. }
  51539. // SetVirtualizationType sets the VirtualizationType field's value.
  51540. func (s *Image) SetVirtualizationType(v string) *Image {
  51541. s.VirtualizationType = &v
  51542. return s
  51543. }
  51544. // Describes the disk container object for an import image task.
  51545. type ImageDiskContainer struct {
  51546. _ struct{} `type:"structure"`
  51547. // The description of the disk image.
  51548. Description *string `type:"string"`
  51549. // The block device mapping for the disk.
  51550. DeviceName *string `type:"string"`
  51551. // The format of the disk image being imported.
  51552. //
  51553. // Valid values: VHD | VMDK | OVA
  51554. Format *string `type:"string"`
  51555. // The ID of the EBS snapshot to be used for importing the snapshot.
  51556. SnapshotId *string `type:"string"`
  51557. // The URL to the Amazon S3-based disk image being imported. The URL can either
  51558. // be a https URL (https://..) or an Amazon S3 URL (s3://..)
  51559. Url *string `type:"string"`
  51560. // The S3 bucket for the disk image.
  51561. UserBucket *UserBucket `type:"structure"`
  51562. }
  51563. // String returns the string representation
  51564. func (s ImageDiskContainer) String() string {
  51565. return awsutil.Prettify(s)
  51566. }
  51567. // GoString returns the string representation
  51568. func (s ImageDiskContainer) GoString() string {
  51569. return s.String()
  51570. }
  51571. // SetDescription sets the Description field's value.
  51572. func (s *ImageDiskContainer) SetDescription(v string) *ImageDiskContainer {
  51573. s.Description = &v
  51574. return s
  51575. }
  51576. // SetDeviceName sets the DeviceName field's value.
  51577. func (s *ImageDiskContainer) SetDeviceName(v string) *ImageDiskContainer {
  51578. s.DeviceName = &v
  51579. return s
  51580. }
  51581. // SetFormat sets the Format field's value.
  51582. func (s *ImageDiskContainer) SetFormat(v string) *ImageDiskContainer {
  51583. s.Format = &v
  51584. return s
  51585. }
  51586. // SetSnapshotId sets the SnapshotId field's value.
  51587. func (s *ImageDiskContainer) SetSnapshotId(v string) *ImageDiskContainer {
  51588. s.SnapshotId = &v
  51589. return s
  51590. }
  51591. // SetUrl sets the Url field's value.
  51592. func (s *ImageDiskContainer) SetUrl(v string) *ImageDiskContainer {
  51593. s.Url = &v
  51594. return s
  51595. }
  51596. // SetUserBucket sets the UserBucket field's value.
  51597. func (s *ImageDiskContainer) SetUserBucket(v *UserBucket) *ImageDiskContainer {
  51598. s.UserBucket = v
  51599. return s
  51600. }
  51601. type ImportClientVpnClientCertificateRevocationListInput struct {
  51602. _ struct{} `type:"structure"`
  51603. // The client certificate revocation list file. For more information, see Generate
  51604. // a Client Certificate Revocation List (vpn/latest/clientvpn-admin/cvpn-working-certificates.html#cvpn-working-certificates-generate)
  51605. // in the AWS Client VPN Admin Guide.
  51606. //
  51607. // CertificateRevocationList is a required field
  51608. CertificateRevocationList *string `type:"string" required:"true"`
  51609. // The ID of the Client VPN endpoint to which the client certificate revocation
  51610. // list applies.
  51611. //
  51612. // ClientVpnEndpointId is a required field
  51613. ClientVpnEndpointId *string `type:"string" required:"true"`
  51614. // Checks whether you have the required permissions for the action, without
  51615. // actually making the request, and provides an error response. If you have
  51616. // the required permissions, the error response is DryRunOperation. Otherwise,
  51617. // it is UnauthorizedOperation.
  51618. DryRun *bool `type:"boolean"`
  51619. }
  51620. // String returns the string representation
  51621. func (s ImportClientVpnClientCertificateRevocationListInput) String() string {
  51622. return awsutil.Prettify(s)
  51623. }
  51624. // GoString returns the string representation
  51625. func (s ImportClientVpnClientCertificateRevocationListInput) GoString() string {
  51626. return s.String()
  51627. }
  51628. // Validate inspects the fields of the type to determine if they are valid.
  51629. func (s *ImportClientVpnClientCertificateRevocationListInput) Validate() error {
  51630. invalidParams := request.ErrInvalidParams{Context: "ImportClientVpnClientCertificateRevocationListInput"}
  51631. if s.CertificateRevocationList == nil {
  51632. invalidParams.Add(request.NewErrParamRequired("CertificateRevocationList"))
  51633. }
  51634. if s.ClientVpnEndpointId == nil {
  51635. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  51636. }
  51637. if invalidParams.Len() > 0 {
  51638. return invalidParams
  51639. }
  51640. return nil
  51641. }
  51642. // SetCertificateRevocationList sets the CertificateRevocationList field's value.
  51643. func (s *ImportClientVpnClientCertificateRevocationListInput) SetCertificateRevocationList(v string) *ImportClientVpnClientCertificateRevocationListInput {
  51644. s.CertificateRevocationList = &v
  51645. return s
  51646. }
  51647. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  51648. func (s *ImportClientVpnClientCertificateRevocationListInput) SetClientVpnEndpointId(v string) *ImportClientVpnClientCertificateRevocationListInput {
  51649. s.ClientVpnEndpointId = &v
  51650. return s
  51651. }
  51652. // SetDryRun sets the DryRun field's value.
  51653. func (s *ImportClientVpnClientCertificateRevocationListInput) SetDryRun(v bool) *ImportClientVpnClientCertificateRevocationListInput {
  51654. s.DryRun = &v
  51655. return s
  51656. }
  51657. type ImportClientVpnClientCertificateRevocationListOutput struct {
  51658. _ struct{} `type:"structure"`
  51659. // Returns true if the request succeeds; otherwise, it returns an error.
  51660. Return *bool `locationName:"return" type:"boolean"`
  51661. }
  51662. // String returns the string representation
  51663. func (s ImportClientVpnClientCertificateRevocationListOutput) String() string {
  51664. return awsutil.Prettify(s)
  51665. }
  51666. // GoString returns the string representation
  51667. func (s ImportClientVpnClientCertificateRevocationListOutput) GoString() string {
  51668. return s.String()
  51669. }
  51670. // SetReturn sets the Return field's value.
  51671. func (s *ImportClientVpnClientCertificateRevocationListOutput) SetReturn(v bool) *ImportClientVpnClientCertificateRevocationListOutput {
  51672. s.Return = &v
  51673. return s
  51674. }
  51675. // Contains the parameters for ImportImage.
  51676. type ImportImageInput struct {
  51677. _ struct{} `type:"structure"`
  51678. // The architecture of the virtual machine.
  51679. //
  51680. // Valid values: i386 | x86_64
  51681. Architecture *string `type:"string"`
  51682. // The client-specific data.
  51683. ClientData *ClientData `type:"structure"`
  51684. // The token to enable idempotency for VM import requests.
  51685. ClientToken *string `type:"string"`
  51686. // A description string for the import image task.
  51687. Description *string `type:"string"`
  51688. // Information about the disk containers.
  51689. DiskContainers []*ImageDiskContainer `locationName:"DiskContainer" locationNameList:"item" type:"list"`
  51690. // Checks whether you have the required permissions for the action, without
  51691. // actually making the request, and provides an error response. If you have
  51692. // the required permissions, the error response is DryRunOperation. Otherwise,
  51693. // it is UnauthorizedOperation.
  51694. DryRun *bool `type:"boolean"`
  51695. // Specifies whether the destination AMI of the imported image should be encrypted.
  51696. // The default CMK for EBS is used unless you specify a non-default AWS Key
  51697. // Management Service (AWS KMS) CMK using KmsKeyId. For more information, see
  51698. // Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  51699. // in the Amazon Elastic Compute Cloud User Guide.
  51700. Encrypted *bool `type:"boolean"`
  51701. // The target hypervisor platform.
  51702. //
  51703. // Valid values: xen
  51704. Hypervisor *string `type:"string"`
  51705. // An identifier for the AWS Key Management Service (AWS KMS) customer master
  51706. // key (CMK) to use when creating the encrypted AMI. This parameter is only
  51707. // required if you want to use a non-default CMK; if this parameter is not specified,
  51708. // the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted
  51709. // flag must also be set.
  51710. //
  51711. // The CMK identifier may be provided in any of the following formats:
  51712. //
  51713. // * Key ID
  51714. //
  51715. // * Key alias, in the form alias/ExampleAlias
  51716. //
  51717. // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
  51718. // by the region of the CMK, the AWS account ID of the CMK owner, the key
  51719. // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  51720. //
  51721. // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
  51722. // followed by the region of the CMK, the AWS account ID of the CMK owner,
  51723. // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
  51724. //
  51725. //
  51726. // AWS parses KmsKeyId asynchronously, meaning that the action you call may
  51727. // appear to complete even though you provided an invalid identifier. This action
  51728. // will eventually report failure.
  51729. //
  51730. // The specified CMK must exist in the region that the AMI is being copied to.
  51731. KmsKeyId *string `type:"string"`
  51732. // The license type to be used for the Amazon Machine Image (AMI) after importing.
  51733. //
  51734. // Note: You may only use BYOL if you have existing licenses with rights to
  51735. // use these licenses in a third party cloud like AWS. For more information,
  51736. // see Prerequisites (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image)
  51737. // in the VM Import/Export User Guide.
  51738. //
  51739. // Valid values: AWS | BYOL
  51740. LicenseType *string `type:"string"`
  51741. // The operating system of the virtual machine.
  51742. //
  51743. // Valid values: Windows | Linux
  51744. Platform *string `type:"string"`
  51745. // The name of the role to use when not using the default role, 'vmimport'.
  51746. RoleName *string `type:"string"`
  51747. }
  51748. // String returns the string representation
  51749. func (s ImportImageInput) String() string {
  51750. return awsutil.Prettify(s)
  51751. }
  51752. // GoString returns the string representation
  51753. func (s ImportImageInput) GoString() string {
  51754. return s.String()
  51755. }
  51756. // SetArchitecture sets the Architecture field's value.
  51757. func (s *ImportImageInput) SetArchitecture(v string) *ImportImageInput {
  51758. s.Architecture = &v
  51759. return s
  51760. }
  51761. // SetClientData sets the ClientData field's value.
  51762. func (s *ImportImageInput) SetClientData(v *ClientData) *ImportImageInput {
  51763. s.ClientData = v
  51764. return s
  51765. }
  51766. // SetClientToken sets the ClientToken field's value.
  51767. func (s *ImportImageInput) SetClientToken(v string) *ImportImageInput {
  51768. s.ClientToken = &v
  51769. return s
  51770. }
  51771. // SetDescription sets the Description field's value.
  51772. func (s *ImportImageInput) SetDescription(v string) *ImportImageInput {
  51773. s.Description = &v
  51774. return s
  51775. }
  51776. // SetDiskContainers sets the DiskContainers field's value.
  51777. func (s *ImportImageInput) SetDiskContainers(v []*ImageDiskContainer) *ImportImageInput {
  51778. s.DiskContainers = v
  51779. return s
  51780. }
  51781. // SetDryRun sets the DryRun field's value.
  51782. func (s *ImportImageInput) SetDryRun(v bool) *ImportImageInput {
  51783. s.DryRun = &v
  51784. return s
  51785. }
  51786. // SetEncrypted sets the Encrypted field's value.
  51787. func (s *ImportImageInput) SetEncrypted(v bool) *ImportImageInput {
  51788. s.Encrypted = &v
  51789. return s
  51790. }
  51791. // SetHypervisor sets the Hypervisor field's value.
  51792. func (s *ImportImageInput) SetHypervisor(v string) *ImportImageInput {
  51793. s.Hypervisor = &v
  51794. return s
  51795. }
  51796. // SetKmsKeyId sets the KmsKeyId field's value.
  51797. func (s *ImportImageInput) SetKmsKeyId(v string) *ImportImageInput {
  51798. s.KmsKeyId = &v
  51799. return s
  51800. }
  51801. // SetLicenseType sets the LicenseType field's value.
  51802. func (s *ImportImageInput) SetLicenseType(v string) *ImportImageInput {
  51803. s.LicenseType = &v
  51804. return s
  51805. }
  51806. // SetPlatform sets the Platform field's value.
  51807. func (s *ImportImageInput) SetPlatform(v string) *ImportImageInput {
  51808. s.Platform = &v
  51809. return s
  51810. }
  51811. // SetRoleName sets the RoleName field's value.
  51812. func (s *ImportImageInput) SetRoleName(v string) *ImportImageInput {
  51813. s.RoleName = &v
  51814. return s
  51815. }
  51816. // Contains the output for ImportImage.
  51817. type ImportImageOutput struct {
  51818. _ struct{} `type:"structure"`
  51819. // The architecture of the virtual machine.
  51820. Architecture *string `locationName:"architecture" type:"string"`
  51821. // A description of the import task.
  51822. Description *string `locationName:"description" type:"string"`
  51823. // Indicates whether the AMI is encypted.
  51824. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  51825. // The target hypervisor of the import task.
  51826. Hypervisor *string `locationName:"hypervisor" type:"string"`
  51827. // The ID of the Amazon Machine Image (AMI) created by the import task.
  51828. ImageId *string `locationName:"imageId" type:"string"`
  51829. // The task ID of the import image task.
  51830. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  51831. // The identifier for the AWS Key Management Service (AWS KMS) customer master
  51832. // key (CMK) that was used to create the encrypted AMI.
  51833. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  51834. // The license type of the virtual machine.
  51835. LicenseType *string `locationName:"licenseType" type:"string"`
  51836. // The operating system of the virtual machine.
  51837. Platform *string `locationName:"platform" type:"string"`
  51838. // The progress of the task.
  51839. Progress *string `locationName:"progress" type:"string"`
  51840. // Information about the snapshots.
  51841. SnapshotDetails []*SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`
  51842. // A brief status of the task.
  51843. Status *string `locationName:"status" type:"string"`
  51844. // A detailed status message of the import task.
  51845. StatusMessage *string `locationName:"statusMessage" type:"string"`
  51846. }
  51847. // String returns the string representation
  51848. func (s ImportImageOutput) String() string {
  51849. return awsutil.Prettify(s)
  51850. }
  51851. // GoString returns the string representation
  51852. func (s ImportImageOutput) GoString() string {
  51853. return s.String()
  51854. }
  51855. // SetArchitecture sets the Architecture field's value.
  51856. func (s *ImportImageOutput) SetArchitecture(v string) *ImportImageOutput {
  51857. s.Architecture = &v
  51858. return s
  51859. }
  51860. // SetDescription sets the Description field's value.
  51861. func (s *ImportImageOutput) SetDescription(v string) *ImportImageOutput {
  51862. s.Description = &v
  51863. return s
  51864. }
  51865. // SetEncrypted sets the Encrypted field's value.
  51866. func (s *ImportImageOutput) SetEncrypted(v bool) *ImportImageOutput {
  51867. s.Encrypted = &v
  51868. return s
  51869. }
  51870. // SetHypervisor sets the Hypervisor field's value.
  51871. func (s *ImportImageOutput) SetHypervisor(v string) *ImportImageOutput {
  51872. s.Hypervisor = &v
  51873. return s
  51874. }
  51875. // SetImageId sets the ImageId field's value.
  51876. func (s *ImportImageOutput) SetImageId(v string) *ImportImageOutput {
  51877. s.ImageId = &v
  51878. return s
  51879. }
  51880. // SetImportTaskId sets the ImportTaskId field's value.
  51881. func (s *ImportImageOutput) SetImportTaskId(v string) *ImportImageOutput {
  51882. s.ImportTaskId = &v
  51883. return s
  51884. }
  51885. // SetKmsKeyId sets the KmsKeyId field's value.
  51886. func (s *ImportImageOutput) SetKmsKeyId(v string) *ImportImageOutput {
  51887. s.KmsKeyId = &v
  51888. return s
  51889. }
  51890. // SetLicenseType sets the LicenseType field's value.
  51891. func (s *ImportImageOutput) SetLicenseType(v string) *ImportImageOutput {
  51892. s.LicenseType = &v
  51893. return s
  51894. }
  51895. // SetPlatform sets the Platform field's value.
  51896. func (s *ImportImageOutput) SetPlatform(v string) *ImportImageOutput {
  51897. s.Platform = &v
  51898. return s
  51899. }
  51900. // SetProgress sets the Progress field's value.
  51901. func (s *ImportImageOutput) SetProgress(v string) *ImportImageOutput {
  51902. s.Progress = &v
  51903. return s
  51904. }
  51905. // SetSnapshotDetails sets the SnapshotDetails field's value.
  51906. func (s *ImportImageOutput) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageOutput {
  51907. s.SnapshotDetails = v
  51908. return s
  51909. }
  51910. // SetStatus sets the Status field's value.
  51911. func (s *ImportImageOutput) SetStatus(v string) *ImportImageOutput {
  51912. s.Status = &v
  51913. return s
  51914. }
  51915. // SetStatusMessage sets the StatusMessage field's value.
  51916. func (s *ImportImageOutput) SetStatusMessage(v string) *ImportImageOutput {
  51917. s.StatusMessage = &v
  51918. return s
  51919. }
  51920. // Describes an import image task.
  51921. type ImportImageTask struct {
  51922. _ struct{} `type:"structure"`
  51923. // The architecture of the virtual machine.
  51924. //
  51925. // Valid values: i386 | x86_64
  51926. Architecture *string `locationName:"architecture" type:"string"`
  51927. // A description of the import task.
  51928. Description *string `locationName:"description" type:"string"`
  51929. // Indicates whether the image is encrypted.
  51930. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  51931. // The target hypervisor for the import task.
  51932. //
  51933. // Valid values: xen
  51934. Hypervisor *string `locationName:"hypervisor" type:"string"`
  51935. // The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
  51936. ImageId *string `locationName:"imageId" type:"string"`
  51937. // The ID of the import image task.
  51938. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  51939. // The identifier for the AWS Key Management Service (AWS KMS) customer master
  51940. // key (CMK) that was used to create the encrypted image.
  51941. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  51942. // The license type of the virtual machine.
  51943. LicenseType *string `locationName:"licenseType" type:"string"`
  51944. // The description string for the import image task.
  51945. Platform *string `locationName:"platform" type:"string"`
  51946. // The percentage of progress of the import image task.
  51947. Progress *string `locationName:"progress" type:"string"`
  51948. // Information about the snapshots.
  51949. SnapshotDetails []*SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`
  51950. // A brief status for the import image task.
  51951. Status *string `locationName:"status" type:"string"`
  51952. // A descriptive status message for the import image task.
  51953. StatusMessage *string `locationName:"statusMessage" type:"string"`
  51954. }
  51955. // String returns the string representation
  51956. func (s ImportImageTask) String() string {
  51957. return awsutil.Prettify(s)
  51958. }
  51959. // GoString returns the string representation
  51960. func (s ImportImageTask) GoString() string {
  51961. return s.String()
  51962. }
  51963. // SetArchitecture sets the Architecture field's value.
  51964. func (s *ImportImageTask) SetArchitecture(v string) *ImportImageTask {
  51965. s.Architecture = &v
  51966. return s
  51967. }
  51968. // SetDescription sets the Description field's value.
  51969. func (s *ImportImageTask) SetDescription(v string) *ImportImageTask {
  51970. s.Description = &v
  51971. return s
  51972. }
  51973. // SetEncrypted sets the Encrypted field's value.
  51974. func (s *ImportImageTask) SetEncrypted(v bool) *ImportImageTask {
  51975. s.Encrypted = &v
  51976. return s
  51977. }
  51978. // SetHypervisor sets the Hypervisor field's value.
  51979. func (s *ImportImageTask) SetHypervisor(v string) *ImportImageTask {
  51980. s.Hypervisor = &v
  51981. return s
  51982. }
  51983. // SetImageId sets the ImageId field's value.
  51984. func (s *ImportImageTask) SetImageId(v string) *ImportImageTask {
  51985. s.ImageId = &v
  51986. return s
  51987. }
  51988. // SetImportTaskId sets the ImportTaskId field's value.
  51989. func (s *ImportImageTask) SetImportTaskId(v string) *ImportImageTask {
  51990. s.ImportTaskId = &v
  51991. return s
  51992. }
  51993. // SetKmsKeyId sets the KmsKeyId field's value.
  51994. func (s *ImportImageTask) SetKmsKeyId(v string) *ImportImageTask {
  51995. s.KmsKeyId = &v
  51996. return s
  51997. }
  51998. // SetLicenseType sets the LicenseType field's value.
  51999. func (s *ImportImageTask) SetLicenseType(v string) *ImportImageTask {
  52000. s.LicenseType = &v
  52001. return s
  52002. }
  52003. // SetPlatform sets the Platform field's value.
  52004. func (s *ImportImageTask) SetPlatform(v string) *ImportImageTask {
  52005. s.Platform = &v
  52006. return s
  52007. }
  52008. // SetProgress sets the Progress field's value.
  52009. func (s *ImportImageTask) SetProgress(v string) *ImportImageTask {
  52010. s.Progress = &v
  52011. return s
  52012. }
  52013. // SetSnapshotDetails sets the SnapshotDetails field's value.
  52014. func (s *ImportImageTask) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageTask {
  52015. s.SnapshotDetails = v
  52016. return s
  52017. }
  52018. // SetStatus sets the Status field's value.
  52019. func (s *ImportImageTask) SetStatus(v string) *ImportImageTask {
  52020. s.Status = &v
  52021. return s
  52022. }
  52023. // SetStatusMessage sets the StatusMessage field's value.
  52024. func (s *ImportImageTask) SetStatusMessage(v string) *ImportImageTask {
  52025. s.StatusMessage = &v
  52026. return s
  52027. }
  52028. // Contains the parameters for ImportInstance.
  52029. type ImportInstanceInput struct {
  52030. _ struct{} `type:"structure"`
  52031. // A description for the instance being imported.
  52032. Description *string `locationName:"description" type:"string"`
  52033. // The disk image.
  52034. DiskImages []*DiskImage `locationName:"diskImage" type:"list"`
  52035. // Checks whether you have the required permissions for the action, without
  52036. // actually making the request, and provides an error response. If you have
  52037. // the required permissions, the error response is DryRunOperation. Otherwise,
  52038. // it is UnauthorizedOperation.
  52039. DryRun *bool `locationName:"dryRun" type:"boolean"`
  52040. // The launch specification.
  52041. LaunchSpecification *ImportInstanceLaunchSpecification `locationName:"launchSpecification" type:"structure"`
  52042. // The instance operating system.
  52043. //
  52044. // Platform is a required field
  52045. Platform *string `locationName:"platform" type:"string" required:"true" enum:"PlatformValues"`
  52046. }
  52047. // String returns the string representation
  52048. func (s ImportInstanceInput) String() string {
  52049. return awsutil.Prettify(s)
  52050. }
  52051. // GoString returns the string representation
  52052. func (s ImportInstanceInput) GoString() string {
  52053. return s.String()
  52054. }
  52055. // Validate inspects the fields of the type to determine if they are valid.
  52056. func (s *ImportInstanceInput) Validate() error {
  52057. invalidParams := request.ErrInvalidParams{Context: "ImportInstanceInput"}
  52058. if s.Platform == nil {
  52059. invalidParams.Add(request.NewErrParamRequired("Platform"))
  52060. }
  52061. if s.DiskImages != nil {
  52062. for i, v := range s.DiskImages {
  52063. if v == nil {
  52064. continue
  52065. }
  52066. if err := v.Validate(); err != nil {
  52067. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DiskImages", i), err.(request.ErrInvalidParams))
  52068. }
  52069. }
  52070. }
  52071. if invalidParams.Len() > 0 {
  52072. return invalidParams
  52073. }
  52074. return nil
  52075. }
  52076. // SetDescription sets the Description field's value.
  52077. func (s *ImportInstanceInput) SetDescription(v string) *ImportInstanceInput {
  52078. s.Description = &v
  52079. return s
  52080. }
  52081. // SetDiskImages sets the DiskImages field's value.
  52082. func (s *ImportInstanceInput) SetDiskImages(v []*DiskImage) *ImportInstanceInput {
  52083. s.DiskImages = v
  52084. return s
  52085. }
  52086. // SetDryRun sets the DryRun field's value.
  52087. func (s *ImportInstanceInput) SetDryRun(v bool) *ImportInstanceInput {
  52088. s.DryRun = &v
  52089. return s
  52090. }
  52091. // SetLaunchSpecification sets the LaunchSpecification field's value.
  52092. func (s *ImportInstanceInput) SetLaunchSpecification(v *ImportInstanceLaunchSpecification) *ImportInstanceInput {
  52093. s.LaunchSpecification = v
  52094. return s
  52095. }
  52096. // SetPlatform sets the Platform field's value.
  52097. func (s *ImportInstanceInput) SetPlatform(v string) *ImportInstanceInput {
  52098. s.Platform = &v
  52099. return s
  52100. }
  52101. // Describes the launch specification for VM import.
  52102. type ImportInstanceLaunchSpecification struct {
  52103. _ struct{} `type:"structure"`
  52104. // Reserved.
  52105. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  52106. // The architecture of the instance.
  52107. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  52108. // One or more security group IDs.
  52109. GroupIds []*string `locationName:"GroupId" locationNameList:"SecurityGroupId" type:"list"`
  52110. // One or more security group names.
  52111. GroupNames []*string `locationName:"GroupName" locationNameList:"SecurityGroup" type:"list"`
  52112. // Indicates whether an instance stops or terminates when you initiate shutdown
  52113. // from the instance (using the operating system command for system shutdown).
  52114. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  52115. // The instance type. For more information about the instance types that you
  52116. // can import, see Instance Types (http://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#vmimport-instance-types)
  52117. // in the VM Import/Export User Guide.
  52118. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  52119. // Indicates whether monitoring is enabled.
  52120. Monitoring *bool `locationName:"monitoring" type:"boolean"`
  52121. // The placement information for the instance.
  52122. Placement *Placement `locationName:"placement" type:"structure"`
  52123. // [EC2-VPC] An available IP address from the IP address range of the subnet.
  52124. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  52125. // [EC2-VPC] The ID of the subnet in which to launch the instance.
  52126. SubnetId *string `locationName:"subnetId" type:"string"`
  52127. // The Base64-encoded user data to make available to the instance.
  52128. UserData *UserData `locationName:"userData" type:"structure"`
  52129. }
  52130. // String returns the string representation
  52131. func (s ImportInstanceLaunchSpecification) String() string {
  52132. return awsutil.Prettify(s)
  52133. }
  52134. // GoString returns the string representation
  52135. func (s ImportInstanceLaunchSpecification) GoString() string {
  52136. return s.String()
  52137. }
  52138. // SetAdditionalInfo sets the AdditionalInfo field's value.
  52139. func (s *ImportInstanceLaunchSpecification) SetAdditionalInfo(v string) *ImportInstanceLaunchSpecification {
  52140. s.AdditionalInfo = &v
  52141. return s
  52142. }
  52143. // SetArchitecture sets the Architecture field's value.
  52144. func (s *ImportInstanceLaunchSpecification) SetArchitecture(v string) *ImportInstanceLaunchSpecification {
  52145. s.Architecture = &v
  52146. return s
  52147. }
  52148. // SetGroupIds sets the GroupIds field's value.
  52149. func (s *ImportInstanceLaunchSpecification) SetGroupIds(v []*string) *ImportInstanceLaunchSpecification {
  52150. s.GroupIds = v
  52151. return s
  52152. }
  52153. // SetGroupNames sets the GroupNames field's value.
  52154. func (s *ImportInstanceLaunchSpecification) SetGroupNames(v []*string) *ImportInstanceLaunchSpecification {
  52155. s.GroupNames = v
  52156. return s
  52157. }
  52158. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  52159. func (s *ImportInstanceLaunchSpecification) SetInstanceInitiatedShutdownBehavior(v string) *ImportInstanceLaunchSpecification {
  52160. s.InstanceInitiatedShutdownBehavior = &v
  52161. return s
  52162. }
  52163. // SetInstanceType sets the InstanceType field's value.
  52164. func (s *ImportInstanceLaunchSpecification) SetInstanceType(v string) *ImportInstanceLaunchSpecification {
  52165. s.InstanceType = &v
  52166. return s
  52167. }
  52168. // SetMonitoring sets the Monitoring field's value.
  52169. func (s *ImportInstanceLaunchSpecification) SetMonitoring(v bool) *ImportInstanceLaunchSpecification {
  52170. s.Monitoring = &v
  52171. return s
  52172. }
  52173. // SetPlacement sets the Placement field's value.
  52174. func (s *ImportInstanceLaunchSpecification) SetPlacement(v *Placement) *ImportInstanceLaunchSpecification {
  52175. s.Placement = v
  52176. return s
  52177. }
  52178. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  52179. func (s *ImportInstanceLaunchSpecification) SetPrivateIpAddress(v string) *ImportInstanceLaunchSpecification {
  52180. s.PrivateIpAddress = &v
  52181. return s
  52182. }
  52183. // SetSubnetId sets the SubnetId field's value.
  52184. func (s *ImportInstanceLaunchSpecification) SetSubnetId(v string) *ImportInstanceLaunchSpecification {
  52185. s.SubnetId = &v
  52186. return s
  52187. }
  52188. // SetUserData sets the UserData field's value.
  52189. func (s *ImportInstanceLaunchSpecification) SetUserData(v *UserData) *ImportInstanceLaunchSpecification {
  52190. s.UserData = v
  52191. return s
  52192. }
  52193. // Contains the output for ImportInstance.
  52194. type ImportInstanceOutput struct {
  52195. _ struct{} `type:"structure"`
  52196. // Information about the conversion task.
  52197. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
  52198. }
  52199. // String returns the string representation
  52200. func (s ImportInstanceOutput) String() string {
  52201. return awsutil.Prettify(s)
  52202. }
  52203. // GoString returns the string representation
  52204. func (s ImportInstanceOutput) GoString() string {
  52205. return s.String()
  52206. }
  52207. // SetConversionTask sets the ConversionTask field's value.
  52208. func (s *ImportInstanceOutput) SetConversionTask(v *ConversionTask) *ImportInstanceOutput {
  52209. s.ConversionTask = v
  52210. return s
  52211. }
  52212. // Describes an import instance task.
  52213. type ImportInstanceTaskDetails struct {
  52214. _ struct{} `type:"structure"`
  52215. // A description of the task.
  52216. Description *string `locationName:"description" type:"string"`
  52217. // The ID of the instance.
  52218. InstanceId *string `locationName:"instanceId" type:"string"`
  52219. // The instance operating system.
  52220. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  52221. // One or more volumes.
  52222. Volumes []*ImportInstanceVolumeDetailItem `locationName:"volumes" locationNameList:"item" type:"list"`
  52223. }
  52224. // String returns the string representation
  52225. func (s ImportInstanceTaskDetails) String() string {
  52226. return awsutil.Prettify(s)
  52227. }
  52228. // GoString returns the string representation
  52229. func (s ImportInstanceTaskDetails) GoString() string {
  52230. return s.String()
  52231. }
  52232. // SetDescription sets the Description field's value.
  52233. func (s *ImportInstanceTaskDetails) SetDescription(v string) *ImportInstanceTaskDetails {
  52234. s.Description = &v
  52235. return s
  52236. }
  52237. // SetInstanceId sets the InstanceId field's value.
  52238. func (s *ImportInstanceTaskDetails) SetInstanceId(v string) *ImportInstanceTaskDetails {
  52239. s.InstanceId = &v
  52240. return s
  52241. }
  52242. // SetPlatform sets the Platform field's value.
  52243. func (s *ImportInstanceTaskDetails) SetPlatform(v string) *ImportInstanceTaskDetails {
  52244. s.Platform = &v
  52245. return s
  52246. }
  52247. // SetVolumes sets the Volumes field's value.
  52248. func (s *ImportInstanceTaskDetails) SetVolumes(v []*ImportInstanceVolumeDetailItem) *ImportInstanceTaskDetails {
  52249. s.Volumes = v
  52250. return s
  52251. }
  52252. // Describes an import volume task.
  52253. type ImportInstanceVolumeDetailItem struct {
  52254. _ struct{} `type:"structure"`
  52255. // The Availability Zone where the resulting instance will reside.
  52256. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  52257. // The number of bytes converted so far.
  52258. BytesConverted *int64 `locationName:"bytesConverted" type:"long"`
  52259. // A description of the task.
  52260. Description *string `locationName:"description" type:"string"`
  52261. // The image.
  52262. Image *DiskImageDescription `locationName:"image" type:"structure"`
  52263. // The status of the import of this particular disk image.
  52264. Status *string `locationName:"status" type:"string"`
  52265. // The status information or errors related to the disk image.
  52266. StatusMessage *string `locationName:"statusMessage" type:"string"`
  52267. // The volume.
  52268. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure"`
  52269. }
  52270. // String returns the string representation
  52271. func (s ImportInstanceVolumeDetailItem) String() string {
  52272. return awsutil.Prettify(s)
  52273. }
  52274. // GoString returns the string representation
  52275. func (s ImportInstanceVolumeDetailItem) GoString() string {
  52276. return s.String()
  52277. }
  52278. // SetAvailabilityZone sets the AvailabilityZone field's value.
  52279. func (s *ImportInstanceVolumeDetailItem) SetAvailabilityZone(v string) *ImportInstanceVolumeDetailItem {
  52280. s.AvailabilityZone = &v
  52281. return s
  52282. }
  52283. // SetBytesConverted sets the BytesConverted field's value.
  52284. func (s *ImportInstanceVolumeDetailItem) SetBytesConverted(v int64) *ImportInstanceVolumeDetailItem {
  52285. s.BytesConverted = &v
  52286. return s
  52287. }
  52288. // SetDescription sets the Description field's value.
  52289. func (s *ImportInstanceVolumeDetailItem) SetDescription(v string) *ImportInstanceVolumeDetailItem {
  52290. s.Description = &v
  52291. return s
  52292. }
  52293. // SetImage sets the Image field's value.
  52294. func (s *ImportInstanceVolumeDetailItem) SetImage(v *DiskImageDescription) *ImportInstanceVolumeDetailItem {
  52295. s.Image = v
  52296. return s
  52297. }
  52298. // SetStatus sets the Status field's value.
  52299. func (s *ImportInstanceVolumeDetailItem) SetStatus(v string) *ImportInstanceVolumeDetailItem {
  52300. s.Status = &v
  52301. return s
  52302. }
  52303. // SetStatusMessage sets the StatusMessage field's value.
  52304. func (s *ImportInstanceVolumeDetailItem) SetStatusMessage(v string) *ImportInstanceVolumeDetailItem {
  52305. s.StatusMessage = &v
  52306. return s
  52307. }
  52308. // SetVolume sets the Volume field's value.
  52309. func (s *ImportInstanceVolumeDetailItem) SetVolume(v *DiskImageVolumeDescription) *ImportInstanceVolumeDetailItem {
  52310. s.Volume = v
  52311. return s
  52312. }
  52313. type ImportKeyPairInput struct {
  52314. _ struct{} `type:"structure"`
  52315. // Checks whether you have the required permissions for the action, without
  52316. // actually making the request, and provides an error response. If you have
  52317. // the required permissions, the error response is DryRunOperation. Otherwise,
  52318. // it is UnauthorizedOperation.
  52319. DryRun *bool `locationName:"dryRun" type:"boolean"`
  52320. // A unique name for the key pair.
  52321. //
  52322. // KeyName is a required field
  52323. KeyName *string `locationName:"keyName" type:"string" required:"true"`
  52324. // The public key. For API calls, the text must be base64-encoded. For command
  52325. // line tools, base64 encoding is performed for you.
  52326. //
  52327. // PublicKeyMaterial is automatically base64 encoded/decoded by the SDK.
  52328. //
  52329. // PublicKeyMaterial is a required field
  52330. PublicKeyMaterial []byte `locationName:"publicKeyMaterial" type:"blob" required:"true"`
  52331. }
  52332. // String returns the string representation
  52333. func (s ImportKeyPairInput) String() string {
  52334. return awsutil.Prettify(s)
  52335. }
  52336. // GoString returns the string representation
  52337. func (s ImportKeyPairInput) GoString() string {
  52338. return s.String()
  52339. }
  52340. // Validate inspects the fields of the type to determine if they are valid.
  52341. func (s *ImportKeyPairInput) Validate() error {
  52342. invalidParams := request.ErrInvalidParams{Context: "ImportKeyPairInput"}
  52343. if s.KeyName == nil {
  52344. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  52345. }
  52346. if s.PublicKeyMaterial == nil {
  52347. invalidParams.Add(request.NewErrParamRequired("PublicKeyMaterial"))
  52348. }
  52349. if invalidParams.Len() > 0 {
  52350. return invalidParams
  52351. }
  52352. return nil
  52353. }
  52354. // SetDryRun sets the DryRun field's value.
  52355. func (s *ImportKeyPairInput) SetDryRun(v bool) *ImportKeyPairInput {
  52356. s.DryRun = &v
  52357. return s
  52358. }
  52359. // SetKeyName sets the KeyName field's value.
  52360. func (s *ImportKeyPairInput) SetKeyName(v string) *ImportKeyPairInput {
  52361. s.KeyName = &v
  52362. return s
  52363. }
  52364. // SetPublicKeyMaterial sets the PublicKeyMaterial field's value.
  52365. func (s *ImportKeyPairInput) SetPublicKeyMaterial(v []byte) *ImportKeyPairInput {
  52366. s.PublicKeyMaterial = v
  52367. return s
  52368. }
  52369. type ImportKeyPairOutput struct {
  52370. _ struct{} `type:"structure"`
  52371. // The MD5 public key fingerprint as specified in section 4 of RFC 4716.
  52372. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  52373. // The key pair name you provided.
  52374. KeyName *string `locationName:"keyName" type:"string"`
  52375. }
  52376. // String returns the string representation
  52377. func (s ImportKeyPairOutput) String() string {
  52378. return awsutil.Prettify(s)
  52379. }
  52380. // GoString returns the string representation
  52381. func (s ImportKeyPairOutput) GoString() string {
  52382. return s.String()
  52383. }
  52384. // SetKeyFingerprint sets the KeyFingerprint field's value.
  52385. func (s *ImportKeyPairOutput) SetKeyFingerprint(v string) *ImportKeyPairOutput {
  52386. s.KeyFingerprint = &v
  52387. return s
  52388. }
  52389. // SetKeyName sets the KeyName field's value.
  52390. func (s *ImportKeyPairOutput) SetKeyName(v string) *ImportKeyPairOutput {
  52391. s.KeyName = &v
  52392. return s
  52393. }
  52394. // Contains the parameters for ImportSnapshot.
  52395. type ImportSnapshotInput struct {
  52396. _ struct{} `type:"structure"`
  52397. // The client-specific data.
  52398. ClientData *ClientData `type:"structure"`
  52399. // Token to enable idempotency for VM import requests.
  52400. ClientToken *string `type:"string"`
  52401. // The description string for the import snapshot task.
  52402. Description *string `type:"string"`
  52403. // Information about the disk container.
  52404. DiskContainer *SnapshotDiskContainer `type:"structure"`
  52405. // Checks whether you have the required permissions for the action, without
  52406. // actually making the request, and provides an error response. If you have
  52407. // the required permissions, the error response is DryRunOperation. Otherwise,
  52408. // it is UnauthorizedOperation.
  52409. DryRun *bool `type:"boolean"`
  52410. // Specifies whether the destination snapshot of the imported image should be
  52411. // encrypted. The default CMK for EBS is used unless you specify a non-default
  52412. // AWS Key Management Service (AWS KMS) CMK using KmsKeyId. For more information,
  52413. // see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  52414. // in the Amazon Elastic Compute Cloud User Guide.
  52415. Encrypted *bool `type:"boolean"`
  52416. // An identifier for the AWS Key Management Service (AWS KMS) customer master
  52417. // key (CMK) to use when creating the encrypted snapshot. This parameter is
  52418. // only required if you want to use a non-default CMK; if this parameter is
  52419. // not specified, the default CMK for EBS is used. If a KmsKeyId is specified,
  52420. // the Encrypted flag must also be set.
  52421. //
  52422. // The CMK identifier may be provided in any of the following formats:
  52423. //
  52424. // * Key ID
  52425. //
  52426. // * Key alias, in the form alias/ExampleAlias
  52427. //
  52428. // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
  52429. // by the region of the CMK, the AWS account ID of the CMK owner, the key
  52430. // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  52431. //
  52432. // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
  52433. // followed by the region of the CMK, the AWS account ID of the CMK owner,
  52434. // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
  52435. //
  52436. //
  52437. // AWS parses KmsKeyId asynchronously, meaning that the action you call may
  52438. // appear to complete even though you provided an invalid identifier. This action
  52439. // will eventually report failure.
  52440. //
  52441. // The specified CMK must exist in the region that the snapshot is being copied
  52442. // to.
  52443. KmsKeyId *string `type:"string"`
  52444. // The name of the role to use when not using the default role, 'vmimport'.
  52445. RoleName *string `type:"string"`
  52446. }
  52447. // String returns the string representation
  52448. func (s ImportSnapshotInput) String() string {
  52449. return awsutil.Prettify(s)
  52450. }
  52451. // GoString returns the string representation
  52452. func (s ImportSnapshotInput) GoString() string {
  52453. return s.String()
  52454. }
  52455. // SetClientData sets the ClientData field's value.
  52456. func (s *ImportSnapshotInput) SetClientData(v *ClientData) *ImportSnapshotInput {
  52457. s.ClientData = v
  52458. return s
  52459. }
  52460. // SetClientToken sets the ClientToken field's value.
  52461. func (s *ImportSnapshotInput) SetClientToken(v string) *ImportSnapshotInput {
  52462. s.ClientToken = &v
  52463. return s
  52464. }
  52465. // SetDescription sets the Description field's value.
  52466. func (s *ImportSnapshotInput) SetDescription(v string) *ImportSnapshotInput {
  52467. s.Description = &v
  52468. return s
  52469. }
  52470. // SetDiskContainer sets the DiskContainer field's value.
  52471. func (s *ImportSnapshotInput) SetDiskContainer(v *SnapshotDiskContainer) *ImportSnapshotInput {
  52472. s.DiskContainer = v
  52473. return s
  52474. }
  52475. // SetDryRun sets the DryRun field's value.
  52476. func (s *ImportSnapshotInput) SetDryRun(v bool) *ImportSnapshotInput {
  52477. s.DryRun = &v
  52478. return s
  52479. }
  52480. // SetEncrypted sets the Encrypted field's value.
  52481. func (s *ImportSnapshotInput) SetEncrypted(v bool) *ImportSnapshotInput {
  52482. s.Encrypted = &v
  52483. return s
  52484. }
  52485. // SetKmsKeyId sets the KmsKeyId field's value.
  52486. func (s *ImportSnapshotInput) SetKmsKeyId(v string) *ImportSnapshotInput {
  52487. s.KmsKeyId = &v
  52488. return s
  52489. }
  52490. // SetRoleName sets the RoleName field's value.
  52491. func (s *ImportSnapshotInput) SetRoleName(v string) *ImportSnapshotInput {
  52492. s.RoleName = &v
  52493. return s
  52494. }
  52495. // Contains the output for ImportSnapshot.
  52496. type ImportSnapshotOutput struct {
  52497. _ struct{} `type:"structure"`
  52498. // A description of the import snapshot task.
  52499. Description *string `locationName:"description" type:"string"`
  52500. // The ID of the import snapshot task.
  52501. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  52502. // Information about the import snapshot task.
  52503. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`
  52504. }
  52505. // String returns the string representation
  52506. func (s ImportSnapshotOutput) String() string {
  52507. return awsutil.Prettify(s)
  52508. }
  52509. // GoString returns the string representation
  52510. func (s ImportSnapshotOutput) GoString() string {
  52511. return s.String()
  52512. }
  52513. // SetDescription sets the Description field's value.
  52514. func (s *ImportSnapshotOutput) SetDescription(v string) *ImportSnapshotOutput {
  52515. s.Description = &v
  52516. return s
  52517. }
  52518. // SetImportTaskId sets the ImportTaskId field's value.
  52519. func (s *ImportSnapshotOutput) SetImportTaskId(v string) *ImportSnapshotOutput {
  52520. s.ImportTaskId = &v
  52521. return s
  52522. }
  52523. // SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value.
  52524. func (s *ImportSnapshotOutput) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotOutput {
  52525. s.SnapshotTaskDetail = v
  52526. return s
  52527. }
  52528. // Describes an import snapshot task.
  52529. type ImportSnapshotTask struct {
  52530. _ struct{} `type:"structure"`
  52531. // A description of the import snapshot task.
  52532. Description *string `locationName:"description" type:"string"`
  52533. // The ID of the import snapshot task.
  52534. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  52535. // Describes an import snapshot task.
  52536. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`
  52537. }
  52538. // String returns the string representation
  52539. func (s ImportSnapshotTask) String() string {
  52540. return awsutil.Prettify(s)
  52541. }
  52542. // GoString returns the string representation
  52543. func (s ImportSnapshotTask) GoString() string {
  52544. return s.String()
  52545. }
  52546. // SetDescription sets the Description field's value.
  52547. func (s *ImportSnapshotTask) SetDescription(v string) *ImportSnapshotTask {
  52548. s.Description = &v
  52549. return s
  52550. }
  52551. // SetImportTaskId sets the ImportTaskId field's value.
  52552. func (s *ImportSnapshotTask) SetImportTaskId(v string) *ImportSnapshotTask {
  52553. s.ImportTaskId = &v
  52554. return s
  52555. }
  52556. // SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value.
  52557. func (s *ImportSnapshotTask) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotTask {
  52558. s.SnapshotTaskDetail = v
  52559. return s
  52560. }
  52561. // Contains the parameters for ImportVolume.
  52562. type ImportVolumeInput struct {
  52563. _ struct{} `type:"structure"`
  52564. // The Availability Zone for the resulting EBS volume.
  52565. //
  52566. // AvailabilityZone is a required field
  52567. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  52568. // A description of the volume.
  52569. Description *string `locationName:"description" type:"string"`
  52570. // Checks whether you have the required permissions for the action, without
  52571. // actually making the request, and provides an error response. If you have
  52572. // the required permissions, the error response is DryRunOperation. Otherwise,
  52573. // it is UnauthorizedOperation.
  52574. DryRun *bool `locationName:"dryRun" type:"boolean"`
  52575. // The disk image.
  52576. //
  52577. // Image is a required field
  52578. Image *DiskImageDetail `locationName:"image" type:"structure" required:"true"`
  52579. // The volume size.
  52580. //
  52581. // Volume is a required field
  52582. Volume *VolumeDetail `locationName:"volume" type:"structure" required:"true"`
  52583. }
  52584. // String returns the string representation
  52585. func (s ImportVolumeInput) String() string {
  52586. return awsutil.Prettify(s)
  52587. }
  52588. // GoString returns the string representation
  52589. func (s ImportVolumeInput) GoString() string {
  52590. return s.String()
  52591. }
  52592. // Validate inspects the fields of the type to determine if they are valid.
  52593. func (s *ImportVolumeInput) Validate() error {
  52594. invalidParams := request.ErrInvalidParams{Context: "ImportVolumeInput"}
  52595. if s.AvailabilityZone == nil {
  52596. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  52597. }
  52598. if s.Image == nil {
  52599. invalidParams.Add(request.NewErrParamRequired("Image"))
  52600. }
  52601. if s.Volume == nil {
  52602. invalidParams.Add(request.NewErrParamRequired("Volume"))
  52603. }
  52604. if s.Image != nil {
  52605. if err := s.Image.Validate(); err != nil {
  52606. invalidParams.AddNested("Image", err.(request.ErrInvalidParams))
  52607. }
  52608. }
  52609. if s.Volume != nil {
  52610. if err := s.Volume.Validate(); err != nil {
  52611. invalidParams.AddNested("Volume", err.(request.ErrInvalidParams))
  52612. }
  52613. }
  52614. if invalidParams.Len() > 0 {
  52615. return invalidParams
  52616. }
  52617. return nil
  52618. }
  52619. // SetAvailabilityZone sets the AvailabilityZone field's value.
  52620. func (s *ImportVolumeInput) SetAvailabilityZone(v string) *ImportVolumeInput {
  52621. s.AvailabilityZone = &v
  52622. return s
  52623. }
  52624. // SetDescription sets the Description field's value.
  52625. func (s *ImportVolumeInput) SetDescription(v string) *ImportVolumeInput {
  52626. s.Description = &v
  52627. return s
  52628. }
  52629. // SetDryRun sets the DryRun field's value.
  52630. func (s *ImportVolumeInput) SetDryRun(v bool) *ImportVolumeInput {
  52631. s.DryRun = &v
  52632. return s
  52633. }
  52634. // SetImage sets the Image field's value.
  52635. func (s *ImportVolumeInput) SetImage(v *DiskImageDetail) *ImportVolumeInput {
  52636. s.Image = v
  52637. return s
  52638. }
  52639. // SetVolume sets the Volume field's value.
  52640. func (s *ImportVolumeInput) SetVolume(v *VolumeDetail) *ImportVolumeInput {
  52641. s.Volume = v
  52642. return s
  52643. }
  52644. // Contains the output for ImportVolume.
  52645. type ImportVolumeOutput struct {
  52646. _ struct{} `type:"structure"`
  52647. // Information about the conversion task.
  52648. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
  52649. }
  52650. // String returns the string representation
  52651. func (s ImportVolumeOutput) String() string {
  52652. return awsutil.Prettify(s)
  52653. }
  52654. // GoString returns the string representation
  52655. func (s ImportVolumeOutput) GoString() string {
  52656. return s.String()
  52657. }
  52658. // SetConversionTask sets the ConversionTask field's value.
  52659. func (s *ImportVolumeOutput) SetConversionTask(v *ConversionTask) *ImportVolumeOutput {
  52660. s.ConversionTask = v
  52661. return s
  52662. }
  52663. // Describes an import volume task.
  52664. type ImportVolumeTaskDetails struct {
  52665. _ struct{} `type:"structure"`
  52666. // The Availability Zone where the resulting volume will reside.
  52667. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  52668. // The number of bytes converted so far.
  52669. BytesConverted *int64 `locationName:"bytesConverted" type:"long"`
  52670. // The description you provided when starting the import volume task.
  52671. Description *string `locationName:"description" type:"string"`
  52672. // The image.
  52673. Image *DiskImageDescription `locationName:"image" type:"structure"`
  52674. // The volume.
  52675. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure"`
  52676. }
  52677. // String returns the string representation
  52678. func (s ImportVolumeTaskDetails) String() string {
  52679. return awsutil.Prettify(s)
  52680. }
  52681. // GoString returns the string representation
  52682. func (s ImportVolumeTaskDetails) GoString() string {
  52683. return s.String()
  52684. }
  52685. // SetAvailabilityZone sets the AvailabilityZone field's value.
  52686. func (s *ImportVolumeTaskDetails) SetAvailabilityZone(v string) *ImportVolumeTaskDetails {
  52687. s.AvailabilityZone = &v
  52688. return s
  52689. }
  52690. // SetBytesConverted sets the BytesConverted field's value.
  52691. func (s *ImportVolumeTaskDetails) SetBytesConverted(v int64) *ImportVolumeTaskDetails {
  52692. s.BytesConverted = &v
  52693. return s
  52694. }
  52695. // SetDescription sets the Description field's value.
  52696. func (s *ImportVolumeTaskDetails) SetDescription(v string) *ImportVolumeTaskDetails {
  52697. s.Description = &v
  52698. return s
  52699. }
  52700. // SetImage sets the Image field's value.
  52701. func (s *ImportVolumeTaskDetails) SetImage(v *DiskImageDescription) *ImportVolumeTaskDetails {
  52702. s.Image = v
  52703. return s
  52704. }
  52705. // SetVolume sets the Volume field's value.
  52706. func (s *ImportVolumeTaskDetails) SetVolume(v *DiskImageVolumeDescription) *ImportVolumeTaskDetails {
  52707. s.Volume = v
  52708. return s
  52709. }
  52710. // Describes an instance.
  52711. type Instance struct {
  52712. _ struct{} `type:"structure"`
  52713. // The AMI launch index, which can be used to find this instance in the launch
  52714. // group.
  52715. AmiLaunchIndex *int64 `locationName:"amiLaunchIndex" type:"integer"`
  52716. // The architecture of the image.
  52717. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  52718. // Any block device mapping entries for the instance.
  52719. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  52720. // The ID of the Capacity Reservation.
  52721. CapacityReservationId *string `locationName:"capacityReservationId" type:"string"`
  52722. // Information about the Capacity Reservation targeting option.
  52723. CapacityReservationSpecification *CapacityReservationSpecificationResponse `locationName:"capacityReservationSpecification" type:"structure"`
  52724. // The idempotency token you provided when you launched the instance, if applicable.
  52725. ClientToken *string `locationName:"clientToken" type:"string"`
  52726. // The CPU options for the instance.
  52727. CpuOptions *CpuOptions `locationName:"cpuOptions" type:"structure"`
  52728. // Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
  52729. // provides dedicated throughput to Amazon EBS and an optimized configuration
  52730. // stack to provide optimal I/O performance. This optimization isn't available
  52731. // with all instance types. Additional usage charges apply when using an EBS
  52732. // Optimized instance.
  52733. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  52734. // The Elastic GPU associated with the instance.
  52735. ElasticGpuAssociations []*ElasticGpuAssociation `locationName:"elasticGpuAssociationSet" locationNameList:"item" type:"list"`
  52736. // The elastic inference accelerator associated with the instance.
  52737. ElasticInferenceAcceleratorAssociations []*ElasticInferenceAcceleratorAssociation `locationName:"elasticInferenceAcceleratorAssociationSet" locationNameList:"item" type:"list"`
  52738. // Specifies whether enhanced networking with ENA is enabled.
  52739. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  52740. // Indicates whether the instance is enabled for hibernation.
  52741. HibernationOptions *HibernationOptions `locationName:"hibernationOptions" type:"structure"`
  52742. // The hypervisor type of the instance.
  52743. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"`
  52744. // The IAM instance profile associated with the instance, if applicable.
  52745. IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"`
  52746. // The ID of the AMI used to launch the instance.
  52747. ImageId *string `locationName:"imageId" type:"string"`
  52748. // The ID of the instance.
  52749. InstanceId *string `locationName:"instanceId" type:"string"`
  52750. // Indicates whether this is a Spot Instance or a Scheduled Instance.
  52751. InstanceLifecycle *string `locationName:"instanceLifecycle" type:"string" enum:"InstanceLifecycleType"`
  52752. // The instance type.
  52753. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  52754. // The kernel associated with this instance, if applicable.
  52755. KernelId *string `locationName:"kernelId" type:"string"`
  52756. // The name of the key pair, if this instance was launched with an associated
  52757. // key pair.
  52758. KeyName *string `locationName:"keyName" type:"string"`
  52759. // The time the instance was launched.
  52760. LaunchTime *time.Time `locationName:"launchTime" type:"timestamp"`
  52761. // The license configurations.
  52762. Licenses []*LicenseConfiguration `locationName:"licenseSet" locationNameList:"item" type:"list"`
  52763. // The monitoring for the instance.
  52764. Monitoring *Monitoring `locationName:"monitoring" type:"structure"`
  52765. // [EC2-VPC] One or more network interfaces for the instance.
  52766. NetworkInterfaces []*InstanceNetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  52767. // The location where the instance launched, if applicable.
  52768. Placement *Placement `locationName:"placement" type:"structure"`
  52769. // The value is Windows for Windows instances; otherwise blank.
  52770. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  52771. // (IPv4 only) The private DNS hostname name assigned to the instance. This
  52772. // DNS hostname can only be used inside the Amazon EC2 network. This name is
  52773. // not available until the instance enters the running state.
  52774. //
  52775. // [EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private
  52776. // DNS hostnames if you've enabled DNS resolution and DNS hostnames in your
  52777. // VPC. If you are not using the Amazon-provided DNS server in your VPC, your
  52778. // custom domain name servers must resolve the hostname as appropriate.
  52779. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  52780. // The private IPv4 address assigned to the instance.
  52781. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  52782. // The product codes attached to this instance, if applicable.
  52783. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  52784. // (IPv4 only) The public DNS name assigned to the instance. This name is not
  52785. // available until the instance enters the running state. For EC2-VPC, this
  52786. // name is only available if you've enabled DNS hostnames for your VPC.
  52787. PublicDnsName *string `locationName:"dnsName" type:"string"`
  52788. // The public IPv4 address assigned to the instance, if applicable.
  52789. PublicIpAddress *string `locationName:"ipAddress" type:"string"`
  52790. // The RAM disk associated with this instance, if applicable.
  52791. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  52792. // The device name of the root device volume (for example, /dev/sda1).
  52793. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  52794. // The root device type used by the AMI. The AMI can use an EBS volume or an
  52795. // instance store volume.
  52796. RootDeviceType *string `locationName:"rootDeviceType" type:"string" enum:"DeviceType"`
  52797. // One or more security groups for the instance.
  52798. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  52799. // Specifies whether to enable an instance launched in a VPC to perform NAT.
  52800. // This controls whether source/destination checking is enabled on the instance.
  52801. // A value of true means that checking is enabled, and false means that checking
  52802. // is disabled. The value must be false for the instance to perform NAT. For
  52803. // more information, see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  52804. // in the Amazon Virtual Private Cloud User Guide.
  52805. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  52806. // If the request is a Spot Instance request, the ID of the request.
  52807. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  52808. // Specifies whether enhanced networking with the Intel 82599 Virtual Function
  52809. // interface is enabled.
  52810. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  52811. // The current state of the instance.
  52812. State *InstanceState `locationName:"instanceState" type:"structure"`
  52813. // The reason for the most recent state transition.
  52814. StateReason *StateReason `locationName:"stateReason" type:"structure"`
  52815. // The reason for the most recent state transition. This might be an empty string.
  52816. StateTransitionReason *string `locationName:"reason" type:"string"`
  52817. // [EC2-VPC] The ID of the subnet in which the instance is running.
  52818. SubnetId *string `locationName:"subnetId" type:"string"`
  52819. // Any tags assigned to the instance.
  52820. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  52821. // The virtualization type of the instance.
  52822. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"`
  52823. // [EC2-VPC] The ID of the VPC in which the instance is running.
  52824. VpcId *string `locationName:"vpcId" type:"string"`
  52825. }
  52826. // String returns the string representation
  52827. func (s Instance) String() string {
  52828. return awsutil.Prettify(s)
  52829. }
  52830. // GoString returns the string representation
  52831. func (s Instance) GoString() string {
  52832. return s.String()
  52833. }
  52834. // SetAmiLaunchIndex sets the AmiLaunchIndex field's value.
  52835. func (s *Instance) SetAmiLaunchIndex(v int64) *Instance {
  52836. s.AmiLaunchIndex = &v
  52837. return s
  52838. }
  52839. // SetArchitecture sets the Architecture field's value.
  52840. func (s *Instance) SetArchitecture(v string) *Instance {
  52841. s.Architecture = &v
  52842. return s
  52843. }
  52844. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  52845. func (s *Instance) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *Instance {
  52846. s.BlockDeviceMappings = v
  52847. return s
  52848. }
  52849. // SetCapacityReservationId sets the CapacityReservationId field's value.
  52850. func (s *Instance) SetCapacityReservationId(v string) *Instance {
  52851. s.CapacityReservationId = &v
  52852. return s
  52853. }
  52854. // SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value.
  52855. func (s *Instance) SetCapacityReservationSpecification(v *CapacityReservationSpecificationResponse) *Instance {
  52856. s.CapacityReservationSpecification = v
  52857. return s
  52858. }
  52859. // SetClientToken sets the ClientToken field's value.
  52860. func (s *Instance) SetClientToken(v string) *Instance {
  52861. s.ClientToken = &v
  52862. return s
  52863. }
  52864. // SetCpuOptions sets the CpuOptions field's value.
  52865. func (s *Instance) SetCpuOptions(v *CpuOptions) *Instance {
  52866. s.CpuOptions = v
  52867. return s
  52868. }
  52869. // SetEbsOptimized sets the EbsOptimized field's value.
  52870. func (s *Instance) SetEbsOptimized(v bool) *Instance {
  52871. s.EbsOptimized = &v
  52872. return s
  52873. }
  52874. // SetElasticGpuAssociations sets the ElasticGpuAssociations field's value.
  52875. func (s *Instance) SetElasticGpuAssociations(v []*ElasticGpuAssociation) *Instance {
  52876. s.ElasticGpuAssociations = v
  52877. return s
  52878. }
  52879. // SetElasticInferenceAcceleratorAssociations sets the ElasticInferenceAcceleratorAssociations field's value.
  52880. func (s *Instance) SetElasticInferenceAcceleratorAssociations(v []*ElasticInferenceAcceleratorAssociation) *Instance {
  52881. s.ElasticInferenceAcceleratorAssociations = v
  52882. return s
  52883. }
  52884. // SetEnaSupport sets the EnaSupport field's value.
  52885. func (s *Instance) SetEnaSupport(v bool) *Instance {
  52886. s.EnaSupport = &v
  52887. return s
  52888. }
  52889. // SetHibernationOptions sets the HibernationOptions field's value.
  52890. func (s *Instance) SetHibernationOptions(v *HibernationOptions) *Instance {
  52891. s.HibernationOptions = v
  52892. return s
  52893. }
  52894. // SetHypervisor sets the Hypervisor field's value.
  52895. func (s *Instance) SetHypervisor(v string) *Instance {
  52896. s.Hypervisor = &v
  52897. return s
  52898. }
  52899. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  52900. func (s *Instance) SetIamInstanceProfile(v *IamInstanceProfile) *Instance {
  52901. s.IamInstanceProfile = v
  52902. return s
  52903. }
  52904. // SetImageId sets the ImageId field's value.
  52905. func (s *Instance) SetImageId(v string) *Instance {
  52906. s.ImageId = &v
  52907. return s
  52908. }
  52909. // SetInstanceId sets the InstanceId field's value.
  52910. func (s *Instance) SetInstanceId(v string) *Instance {
  52911. s.InstanceId = &v
  52912. return s
  52913. }
  52914. // SetInstanceLifecycle sets the InstanceLifecycle field's value.
  52915. func (s *Instance) SetInstanceLifecycle(v string) *Instance {
  52916. s.InstanceLifecycle = &v
  52917. return s
  52918. }
  52919. // SetInstanceType sets the InstanceType field's value.
  52920. func (s *Instance) SetInstanceType(v string) *Instance {
  52921. s.InstanceType = &v
  52922. return s
  52923. }
  52924. // SetKernelId sets the KernelId field's value.
  52925. func (s *Instance) SetKernelId(v string) *Instance {
  52926. s.KernelId = &v
  52927. return s
  52928. }
  52929. // SetKeyName sets the KeyName field's value.
  52930. func (s *Instance) SetKeyName(v string) *Instance {
  52931. s.KeyName = &v
  52932. return s
  52933. }
  52934. // SetLaunchTime sets the LaunchTime field's value.
  52935. func (s *Instance) SetLaunchTime(v time.Time) *Instance {
  52936. s.LaunchTime = &v
  52937. return s
  52938. }
  52939. // SetLicenses sets the Licenses field's value.
  52940. func (s *Instance) SetLicenses(v []*LicenseConfiguration) *Instance {
  52941. s.Licenses = v
  52942. return s
  52943. }
  52944. // SetMonitoring sets the Monitoring field's value.
  52945. func (s *Instance) SetMonitoring(v *Monitoring) *Instance {
  52946. s.Monitoring = v
  52947. return s
  52948. }
  52949. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  52950. func (s *Instance) SetNetworkInterfaces(v []*InstanceNetworkInterface) *Instance {
  52951. s.NetworkInterfaces = v
  52952. return s
  52953. }
  52954. // SetPlacement sets the Placement field's value.
  52955. func (s *Instance) SetPlacement(v *Placement) *Instance {
  52956. s.Placement = v
  52957. return s
  52958. }
  52959. // SetPlatform sets the Platform field's value.
  52960. func (s *Instance) SetPlatform(v string) *Instance {
  52961. s.Platform = &v
  52962. return s
  52963. }
  52964. // SetPrivateDnsName sets the PrivateDnsName field's value.
  52965. func (s *Instance) SetPrivateDnsName(v string) *Instance {
  52966. s.PrivateDnsName = &v
  52967. return s
  52968. }
  52969. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  52970. func (s *Instance) SetPrivateIpAddress(v string) *Instance {
  52971. s.PrivateIpAddress = &v
  52972. return s
  52973. }
  52974. // SetProductCodes sets the ProductCodes field's value.
  52975. func (s *Instance) SetProductCodes(v []*ProductCode) *Instance {
  52976. s.ProductCodes = v
  52977. return s
  52978. }
  52979. // SetPublicDnsName sets the PublicDnsName field's value.
  52980. func (s *Instance) SetPublicDnsName(v string) *Instance {
  52981. s.PublicDnsName = &v
  52982. return s
  52983. }
  52984. // SetPublicIpAddress sets the PublicIpAddress field's value.
  52985. func (s *Instance) SetPublicIpAddress(v string) *Instance {
  52986. s.PublicIpAddress = &v
  52987. return s
  52988. }
  52989. // SetRamdiskId sets the RamdiskId field's value.
  52990. func (s *Instance) SetRamdiskId(v string) *Instance {
  52991. s.RamdiskId = &v
  52992. return s
  52993. }
  52994. // SetRootDeviceName sets the RootDeviceName field's value.
  52995. func (s *Instance) SetRootDeviceName(v string) *Instance {
  52996. s.RootDeviceName = &v
  52997. return s
  52998. }
  52999. // SetRootDeviceType sets the RootDeviceType field's value.
  53000. func (s *Instance) SetRootDeviceType(v string) *Instance {
  53001. s.RootDeviceType = &v
  53002. return s
  53003. }
  53004. // SetSecurityGroups sets the SecurityGroups field's value.
  53005. func (s *Instance) SetSecurityGroups(v []*GroupIdentifier) *Instance {
  53006. s.SecurityGroups = v
  53007. return s
  53008. }
  53009. // SetSourceDestCheck sets the SourceDestCheck field's value.
  53010. func (s *Instance) SetSourceDestCheck(v bool) *Instance {
  53011. s.SourceDestCheck = &v
  53012. return s
  53013. }
  53014. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  53015. func (s *Instance) SetSpotInstanceRequestId(v string) *Instance {
  53016. s.SpotInstanceRequestId = &v
  53017. return s
  53018. }
  53019. // SetSriovNetSupport sets the SriovNetSupport field's value.
  53020. func (s *Instance) SetSriovNetSupport(v string) *Instance {
  53021. s.SriovNetSupport = &v
  53022. return s
  53023. }
  53024. // SetState sets the State field's value.
  53025. func (s *Instance) SetState(v *InstanceState) *Instance {
  53026. s.State = v
  53027. return s
  53028. }
  53029. // SetStateReason sets the StateReason field's value.
  53030. func (s *Instance) SetStateReason(v *StateReason) *Instance {
  53031. s.StateReason = v
  53032. return s
  53033. }
  53034. // SetStateTransitionReason sets the StateTransitionReason field's value.
  53035. func (s *Instance) SetStateTransitionReason(v string) *Instance {
  53036. s.StateTransitionReason = &v
  53037. return s
  53038. }
  53039. // SetSubnetId sets the SubnetId field's value.
  53040. func (s *Instance) SetSubnetId(v string) *Instance {
  53041. s.SubnetId = &v
  53042. return s
  53043. }
  53044. // SetTags sets the Tags field's value.
  53045. func (s *Instance) SetTags(v []*Tag) *Instance {
  53046. s.Tags = v
  53047. return s
  53048. }
  53049. // SetVirtualizationType sets the VirtualizationType field's value.
  53050. func (s *Instance) SetVirtualizationType(v string) *Instance {
  53051. s.VirtualizationType = &v
  53052. return s
  53053. }
  53054. // SetVpcId sets the VpcId field's value.
  53055. func (s *Instance) SetVpcId(v string) *Instance {
  53056. s.VpcId = &v
  53057. return s
  53058. }
  53059. // Describes a block device mapping.
  53060. type InstanceBlockDeviceMapping struct {
  53061. _ struct{} `type:"structure"`
  53062. // The device name (for example, /dev/sdh or xvdh).
  53063. DeviceName *string `locationName:"deviceName" type:"string"`
  53064. // Parameters used to automatically set up EBS volumes when the instance is
  53065. // launched.
  53066. Ebs *EbsInstanceBlockDevice `locationName:"ebs" type:"structure"`
  53067. }
  53068. // String returns the string representation
  53069. func (s InstanceBlockDeviceMapping) String() string {
  53070. return awsutil.Prettify(s)
  53071. }
  53072. // GoString returns the string representation
  53073. func (s InstanceBlockDeviceMapping) GoString() string {
  53074. return s.String()
  53075. }
  53076. // SetDeviceName sets the DeviceName field's value.
  53077. func (s *InstanceBlockDeviceMapping) SetDeviceName(v string) *InstanceBlockDeviceMapping {
  53078. s.DeviceName = &v
  53079. return s
  53080. }
  53081. // SetEbs sets the Ebs field's value.
  53082. func (s *InstanceBlockDeviceMapping) SetEbs(v *EbsInstanceBlockDevice) *InstanceBlockDeviceMapping {
  53083. s.Ebs = v
  53084. return s
  53085. }
  53086. // Describes a block device mapping entry.
  53087. type InstanceBlockDeviceMappingSpecification struct {
  53088. _ struct{} `type:"structure"`
  53089. // The device name (for example, /dev/sdh or xvdh).
  53090. DeviceName *string `locationName:"deviceName" type:"string"`
  53091. // Parameters used to automatically set up EBS volumes when the instance is
  53092. // launched.
  53093. Ebs *EbsInstanceBlockDeviceSpecification `locationName:"ebs" type:"structure"`
  53094. // suppress the specified device included in the block device mapping.
  53095. NoDevice *string `locationName:"noDevice" type:"string"`
  53096. // The virtual device name.
  53097. VirtualName *string `locationName:"virtualName" type:"string"`
  53098. }
  53099. // String returns the string representation
  53100. func (s InstanceBlockDeviceMappingSpecification) String() string {
  53101. return awsutil.Prettify(s)
  53102. }
  53103. // GoString returns the string representation
  53104. func (s InstanceBlockDeviceMappingSpecification) GoString() string {
  53105. return s.String()
  53106. }
  53107. // SetDeviceName sets the DeviceName field's value.
  53108. func (s *InstanceBlockDeviceMappingSpecification) SetDeviceName(v string) *InstanceBlockDeviceMappingSpecification {
  53109. s.DeviceName = &v
  53110. return s
  53111. }
  53112. // SetEbs sets the Ebs field's value.
  53113. func (s *InstanceBlockDeviceMappingSpecification) SetEbs(v *EbsInstanceBlockDeviceSpecification) *InstanceBlockDeviceMappingSpecification {
  53114. s.Ebs = v
  53115. return s
  53116. }
  53117. // SetNoDevice sets the NoDevice field's value.
  53118. func (s *InstanceBlockDeviceMappingSpecification) SetNoDevice(v string) *InstanceBlockDeviceMappingSpecification {
  53119. s.NoDevice = &v
  53120. return s
  53121. }
  53122. // SetVirtualName sets the VirtualName field's value.
  53123. func (s *InstanceBlockDeviceMappingSpecification) SetVirtualName(v string) *InstanceBlockDeviceMappingSpecification {
  53124. s.VirtualName = &v
  53125. return s
  53126. }
  53127. // Information about the instance type that the Dedicated Host supports.
  53128. type InstanceCapacity struct {
  53129. _ struct{} `type:"structure"`
  53130. // The number of instances that can still be launched onto the Dedicated Host.
  53131. AvailableCapacity *int64 `locationName:"availableCapacity" type:"integer"`
  53132. // The instance type size supported by the Dedicated Host.
  53133. InstanceType *string `locationName:"instanceType" type:"string"`
  53134. // The total number of instances that can be launched onto the Dedicated Host.
  53135. TotalCapacity *int64 `locationName:"totalCapacity" type:"integer"`
  53136. }
  53137. // String returns the string representation
  53138. func (s InstanceCapacity) String() string {
  53139. return awsutil.Prettify(s)
  53140. }
  53141. // GoString returns the string representation
  53142. func (s InstanceCapacity) GoString() string {
  53143. return s.String()
  53144. }
  53145. // SetAvailableCapacity sets the AvailableCapacity field's value.
  53146. func (s *InstanceCapacity) SetAvailableCapacity(v int64) *InstanceCapacity {
  53147. s.AvailableCapacity = &v
  53148. return s
  53149. }
  53150. // SetInstanceType sets the InstanceType field's value.
  53151. func (s *InstanceCapacity) SetInstanceType(v string) *InstanceCapacity {
  53152. s.InstanceType = &v
  53153. return s
  53154. }
  53155. // SetTotalCapacity sets the TotalCapacity field's value.
  53156. func (s *InstanceCapacity) SetTotalCapacity(v int64) *InstanceCapacity {
  53157. s.TotalCapacity = &v
  53158. return s
  53159. }
  53160. // Describes a Reserved Instance listing state.
  53161. type InstanceCount struct {
  53162. _ struct{} `type:"structure"`
  53163. // The number of listed Reserved Instances in the state specified by the state.
  53164. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  53165. // The states of the listed Reserved Instances.
  53166. State *string `locationName:"state" type:"string" enum:"ListingState"`
  53167. }
  53168. // String returns the string representation
  53169. func (s InstanceCount) String() string {
  53170. return awsutil.Prettify(s)
  53171. }
  53172. // GoString returns the string representation
  53173. func (s InstanceCount) GoString() string {
  53174. return s.String()
  53175. }
  53176. // SetInstanceCount sets the InstanceCount field's value.
  53177. func (s *InstanceCount) SetInstanceCount(v int64) *InstanceCount {
  53178. s.InstanceCount = &v
  53179. return s
  53180. }
  53181. // SetState sets the State field's value.
  53182. func (s *InstanceCount) SetState(v string) *InstanceCount {
  53183. s.State = &v
  53184. return s
  53185. }
  53186. // Describes the credit option for CPU usage of a T2 or T3 instance.
  53187. type InstanceCreditSpecification struct {
  53188. _ struct{} `type:"structure"`
  53189. // The credit option for CPU usage of the instance. Valid values are standard
  53190. // and unlimited.
  53191. CpuCredits *string `locationName:"cpuCredits" type:"string"`
  53192. // The ID of the instance.
  53193. InstanceId *string `locationName:"instanceId" type:"string"`
  53194. }
  53195. // String returns the string representation
  53196. func (s InstanceCreditSpecification) String() string {
  53197. return awsutil.Prettify(s)
  53198. }
  53199. // GoString returns the string representation
  53200. func (s InstanceCreditSpecification) GoString() string {
  53201. return s.String()
  53202. }
  53203. // SetCpuCredits sets the CpuCredits field's value.
  53204. func (s *InstanceCreditSpecification) SetCpuCredits(v string) *InstanceCreditSpecification {
  53205. s.CpuCredits = &v
  53206. return s
  53207. }
  53208. // SetInstanceId sets the InstanceId field's value.
  53209. func (s *InstanceCreditSpecification) SetInstanceId(v string) *InstanceCreditSpecification {
  53210. s.InstanceId = &v
  53211. return s
  53212. }
  53213. // Describes the credit option for CPU usage of a T2 or T3 instance.
  53214. type InstanceCreditSpecificationRequest struct {
  53215. _ struct{} `type:"structure"`
  53216. // The credit option for CPU usage of the instance. Valid values are standard
  53217. // and unlimited.
  53218. CpuCredits *string `type:"string"`
  53219. // The ID of the instance.
  53220. InstanceId *string `type:"string"`
  53221. }
  53222. // String returns the string representation
  53223. func (s InstanceCreditSpecificationRequest) String() string {
  53224. return awsutil.Prettify(s)
  53225. }
  53226. // GoString returns the string representation
  53227. func (s InstanceCreditSpecificationRequest) GoString() string {
  53228. return s.String()
  53229. }
  53230. // SetCpuCredits sets the CpuCredits field's value.
  53231. func (s *InstanceCreditSpecificationRequest) SetCpuCredits(v string) *InstanceCreditSpecificationRequest {
  53232. s.CpuCredits = &v
  53233. return s
  53234. }
  53235. // SetInstanceId sets the InstanceId field's value.
  53236. func (s *InstanceCreditSpecificationRequest) SetInstanceId(v string) *InstanceCreditSpecificationRequest {
  53237. s.InstanceId = &v
  53238. return s
  53239. }
  53240. // Describes an instance to export.
  53241. type InstanceExportDetails struct {
  53242. _ struct{} `type:"structure"`
  53243. // The ID of the resource being exported.
  53244. InstanceId *string `locationName:"instanceId" type:"string"`
  53245. // The target virtualization environment.
  53246. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"`
  53247. }
  53248. // String returns the string representation
  53249. func (s InstanceExportDetails) String() string {
  53250. return awsutil.Prettify(s)
  53251. }
  53252. // GoString returns the string representation
  53253. func (s InstanceExportDetails) GoString() string {
  53254. return s.String()
  53255. }
  53256. // SetInstanceId sets the InstanceId field's value.
  53257. func (s *InstanceExportDetails) SetInstanceId(v string) *InstanceExportDetails {
  53258. s.InstanceId = &v
  53259. return s
  53260. }
  53261. // SetTargetEnvironment sets the TargetEnvironment field's value.
  53262. func (s *InstanceExportDetails) SetTargetEnvironment(v string) *InstanceExportDetails {
  53263. s.TargetEnvironment = &v
  53264. return s
  53265. }
  53266. // Describes an IPv6 address.
  53267. type InstanceIpv6Address struct {
  53268. _ struct{} `type:"structure"`
  53269. // The IPv6 address.
  53270. Ipv6Address *string `locationName:"ipv6Address" type:"string"`
  53271. }
  53272. // String returns the string representation
  53273. func (s InstanceIpv6Address) String() string {
  53274. return awsutil.Prettify(s)
  53275. }
  53276. // GoString returns the string representation
  53277. func (s InstanceIpv6Address) GoString() string {
  53278. return s.String()
  53279. }
  53280. // SetIpv6Address sets the Ipv6Address field's value.
  53281. func (s *InstanceIpv6Address) SetIpv6Address(v string) *InstanceIpv6Address {
  53282. s.Ipv6Address = &v
  53283. return s
  53284. }
  53285. // Describes an IPv6 address.
  53286. type InstanceIpv6AddressRequest struct {
  53287. _ struct{} `type:"structure"`
  53288. // The IPv6 address.
  53289. Ipv6Address *string `type:"string"`
  53290. }
  53291. // String returns the string representation
  53292. func (s InstanceIpv6AddressRequest) String() string {
  53293. return awsutil.Prettify(s)
  53294. }
  53295. // GoString returns the string representation
  53296. func (s InstanceIpv6AddressRequest) GoString() string {
  53297. return s.String()
  53298. }
  53299. // SetIpv6Address sets the Ipv6Address field's value.
  53300. func (s *InstanceIpv6AddressRequest) SetIpv6Address(v string) *InstanceIpv6AddressRequest {
  53301. s.Ipv6Address = &v
  53302. return s
  53303. }
  53304. // Describes the market (purchasing) option for the instances.
  53305. type InstanceMarketOptionsRequest struct {
  53306. _ struct{} `type:"structure"`
  53307. // The market type.
  53308. MarketType *string `type:"string" enum:"MarketType"`
  53309. // The options for Spot Instances.
  53310. SpotOptions *SpotMarketOptions `type:"structure"`
  53311. }
  53312. // String returns the string representation
  53313. func (s InstanceMarketOptionsRequest) String() string {
  53314. return awsutil.Prettify(s)
  53315. }
  53316. // GoString returns the string representation
  53317. func (s InstanceMarketOptionsRequest) GoString() string {
  53318. return s.String()
  53319. }
  53320. // SetMarketType sets the MarketType field's value.
  53321. func (s *InstanceMarketOptionsRequest) SetMarketType(v string) *InstanceMarketOptionsRequest {
  53322. s.MarketType = &v
  53323. return s
  53324. }
  53325. // SetSpotOptions sets the SpotOptions field's value.
  53326. func (s *InstanceMarketOptionsRequest) SetSpotOptions(v *SpotMarketOptions) *InstanceMarketOptionsRequest {
  53327. s.SpotOptions = v
  53328. return s
  53329. }
  53330. // Describes the monitoring of an instance.
  53331. type InstanceMonitoring struct {
  53332. _ struct{} `type:"structure"`
  53333. // The ID of the instance.
  53334. InstanceId *string `locationName:"instanceId" type:"string"`
  53335. // The monitoring for the instance.
  53336. Monitoring *Monitoring `locationName:"monitoring" type:"structure"`
  53337. }
  53338. // String returns the string representation
  53339. func (s InstanceMonitoring) String() string {
  53340. return awsutil.Prettify(s)
  53341. }
  53342. // GoString returns the string representation
  53343. func (s InstanceMonitoring) GoString() string {
  53344. return s.String()
  53345. }
  53346. // SetInstanceId sets the InstanceId field's value.
  53347. func (s *InstanceMonitoring) SetInstanceId(v string) *InstanceMonitoring {
  53348. s.InstanceId = &v
  53349. return s
  53350. }
  53351. // SetMonitoring sets the Monitoring field's value.
  53352. func (s *InstanceMonitoring) SetMonitoring(v *Monitoring) *InstanceMonitoring {
  53353. s.Monitoring = v
  53354. return s
  53355. }
  53356. // Describes a network interface.
  53357. type InstanceNetworkInterface struct {
  53358. _ struct{} `type:"structure"`
  53359. // The association information for an Elastic IPv4 associated with the network
  53360. // interface.
  53361. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`
  53362. // The network interface attachment.
  53363. Attachment *InstanceNetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  53364. // The description.
  53365. Description *string `locationName:"description" type:"string"`
  53366. // One or more security groups.
  53367. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  53368. // One or more IPv6 addresses associated with the network interface.
  53369. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  53370. // The MAC address.
  53371. MacAddress *string `locationName:"macAddress" type:"string"`
  53372. // The ID of the network interface.
  53373. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  53374. // The ID of the AWS account that created the network interface.
  53375. OwnerId *string `locationName:"ownerId" type:"string"`
  53376. // The private DNS name.
  53377. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  53378. // The IPv4 address of the network interface within the subnet.
  53379. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  53380. // One or more private IPv4 addresses associated with the network interface.
  53381. PrivateIpAddresses []*InstancePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  53382. // Indicates whether to validate network traffic to or from this network interface.
  53383. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  53384. // The status of the network interface.
  53385. Status *string `locationName:"status" type:"string" enum:"NetworkInterfaceStatus"`
  53386. // The ID of the subnet.
  53387. SubnetId *string `locationName:"subnetId" type:"string"`
  53388. // The ID of the VPC.
  53389. VpcId *string `locationName:"vpcId" type:"string"`
  53390. }
  53391. // String returns the string representation
  53392. func (s InstanceNetworkInterface) String() string {
  53393. return awsutil.Prettify(s)
  53394. }
  53395. // GoString returns the string representation
  53396. func (s InstanceNetworkInterface) GoString() string {
  53397. return s.String()
  53398. }
  53399. // SetAssociation sets the Association field's value.
  53400. func (s *InstanceNetworkInterface) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstanceNetworkInterface {
  53401. s.Association = v
  53402. return s
  53403. }
  53404. // SetAttachment sets the Attachment field's value.
  53405. func (s *InstanceNetworkInterface) SetAttachment(v *InstanceNetworkInterfaceAttachment) *InstanceNetworkInterface {
  53406. s.Attachment = v
  53407. return s
  53408. }
  53409. // SetDescription sets the Description field's value.
  53410. func (s *InstanceNetworkInterface) SetDescription(v string) *InstanceNetworkInterface {
  53411. s.Description = &v
  53412. return s
  53413. }
  53414. // SetGroups sets the Groups field's value.
  53415. func (s *InstanceNetworkInterface) SetGroups(v []*GroupIdentifier) *InstanceNetworkInterface {
  53416. s.Groups = v
  53417. return s
  53418. }
  53419. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  53420. func (s *InstanceNetworkInterface) SetIpv6Addresses(v []*InstanceIpv6Address) *InstanceNetworkInterface {
  53421. s.Ipv6Addresses = v
  53422. return s
  53423. }
  53424. // SetMacAddress sets the MacAddress field's value.
  53425. func (s *InstanceNetworkInterface) SetMacAddress(v string) *InstanceNetworkInterface {
  53426. s.MacAddress = &v
  53427. return s
  53428. }
  53429. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  53430. func (s *InstanceNetworkInterface) SetNetworkInterfaceId(v string) *InstanceNetworkInterface {
  53431. s.NetworkInterfaceId = &v
  53432. return s
  53433. }
  53434. // SetOwnerId sets the OwnerId field's value.
  53435. func (s *InstanceNetworkInterface) SetOwnerId(v string) *InstanceNetworkInterface {
  53436. s.OwnerId = &v
  53437. return s
  53438. }
  53439. // SetPrivateDnsName sets the PrivateDnsName field's value.
  53440. func (s *InstanceNetworkInterface) SetPrivateDnsName(v string) *InstanceNetworkInterface {
  53441. s.PrivateDnsName = &v
  53442. return s
  53443. }
  53444. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  53445. func (s *InstanceNetworkInterface) SetPrivateIpAddress(v string) *InstanceNetworkInterface {
  53446. s.PrivateIpAddress = &v
  53447. return s
  53448. }
  53449. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  53450. func (s *InstanceNetworkInterface) SetPrivateIpAddresses(v []*InstancePrivateIpAddress) *InstanceNetworkInterface {
  53451. s.PrivateIpAddresses = v
  53452. return s
  53453. }
  53454. // SetSourceDestCheck sets the SourceDestCheck field's value.
  53455. func (s *InstanceNetworkInterface) SetSourceDestCheck(v bool) *InstanceNetworkInterface {
  53456. s.SourceDestCheck = &v
  53457. return s
  53458. }
  53459. // SetStatus sets the Status field's value.
  53460. func (s *InstanceNetworkInterface) SetStatus(v string) *InstanceNetworkInterface {
  53461. s.Status = &v
  53462. return s
  53463. }
  53464. // SetSubnetId sets the SubnetId field's value.
  53465. func (s *InstanceNetworkInterface) SetSubnetId(v string) *InstanceNetworkInterface {
  53466. s.SubnetId = &v
  53467. return s
  53468. }
  53469. // SetVpcId sets the VpcId field's value.
  53470. func (s *InstanceNetworkInterface) SetVpcId(v string) *InstanceNetworkInterface {
  53471. s.VpcId = &v
  53472. return s
  53473. }
  53474. // Describes association information for an Elastic IP address (IPv4).
  53475. type InstanceNetworkInterfaceAssociation struct {
  53476. _ struct{} `type:"structure"`
  53477. // The ID of the owner of the Elastic IP address.
  53478. IpOwnerId *string `locationName:"ipOwnerId" type:"string"`
  53479. // The public DNS name.
  53480. PublicDnsName *string `locationName:"publicDnsName" type:"string"`
  53481. // The public IP address or Elastic IP address bound to the network interface.
  53482. PublicIp *string `locationName:"publicIp" type:"string"`
  53483. }
  53484. // String returns the string representation
  53485. func (s InstanceNetworkInterfaceAssociation) String() string {
  53486. return awsutil.Prettify(s)
  53487. }
  53488. // GoString returns the string representation
  53489. func (s InstanceNetworkInterfaceAssociation) GoString() string {
  53490. return s.String()
  53491. }
  53492. // SetIpOwnerId sets the IpOwnerId field's value.
  53493. func (s *InstanceNetworkInterfaceAssociation) SetIpOwnerId(v string) *InstanceNetworkInterfaceAssociation {
  53494. s.IpOwnerId = &v
  53495. return s
  53496. }
  53497. // SetPublicDnsName sets the PublicDnsName field's value.
  53498. func (s *InstanceNetworkInterfaceAssociation) SetPublicDnsName(v string) *InstanceNetworkInterfaceAssociation {
  53499. s.PublicDnsName = &v
  53500. return s
  53501. }
  53502. // SetPublicIp sets the PublicIp field's value.
  53503. func (s *InstanceNetworkInterfaceAssociation) SetPublicIp(v string) *InstanceNetworkInterfaceAssociation {
  53504. s.PublicIp = &v
  53505. return s
  53506. }
  53507. // Describes a network interface attachment.
  53508. type InstanceNetworkInterfaceAttachment struct {
  53509. _ struct{} `type:"structure"`
  53510. // The time stamp when the attachment initiated.
  53511. AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
  53512. // The ID of the network interface attachment.
  53513. AttachmentId *string `locationName:"attachmentId" type:"string"`
  53514. // Indicates whether the network interface is deleted when the instance is terminated.
  53515. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  53516. // The index of the device on the instance for the network interface attachment.
  53517. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  53518. // The attachment state.
  53519. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  53520. }
  53521. // String returns the string representation
  53522. func (s InstanceNetworkInterfaceAttachment) String() string {
  53523. return awsutil.Prettify(s)
  53524. }
  53525. // GoString returns the string representation
  53526. func (s InstanceNetworkInterfaceAttachment) GoString() string {
  53527. return s.String()
  53528. }
  53529. // SetAttachTime sets the AttachTime field's value.
  53530. func (s *InstanceNetworkInterfaceAttachment) SetAttachTime(v time.Time) *InstanceNetworkInterfaceAttachment {
  53531. s.AttachTime = &v
  53532. return s
  53533. }
  53534. // SetAttachmentId sets the AttachmentId field's value.
  53535. func (s *InstanceNetworkInterfaceAttachment) SetAttachmentId(v string) *InstanceNetworkInterfaceAttachment {
  53536. s.AttachmentId = &v
  53537. return s
  53538. }
  53539. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  53540. func (s *InstanceNetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceAttachment {
  53541. s.DeleteOnTermination = &v
  53542. return s
  53543. }
  53544. // SetDeviceIndex sets the DeviceIndex field's value.
  53545. func (s *InstanceNetworkInterfaceAttachment) SetDeviceIndex(v int64) *InstanceNetworkInterfaceAttachment {
  53546. s.DeviceIndex = &v
  53547. return s
  53548. }
  53549. // SetStatus sets the Status field's value.
  53550. func (s *InstanceNetworkInterfaceAttachment) SetStatus(v string) *InstanceNetworkInterfaceAttachment {
  53551. s.Status = &v
  53552. return s
  53553. }
  53554. // Describes a network interface.
  53555. type InstanceNetworkInterfaceSpecification struct {
  53556. _ struct{} `type:"structure"`
  53557. // Indicates whether to assign a public IPv4 address to an instance you launch
  53558. // in a VPC. The public IP address can only be assigned to a network interface
  53559. // for eth0, and can only be assigned to a new network interface, not an existing
  53560. // one. You cannot specify more than one network interface in the request. If
  53561. // launching into a default subnet, the default value is true.
  53562. AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`
  53563. // If set to true, the interface is deleted when the instance is terminated.
  53564. // You can specify true only if creating a new network interface when launching
  53565. // an instance.
  53566. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  53567. // The description of the network interface. Applies only if creating a network
  53568. // interface when launching an instance.
  53569. Description *string `locationName:"description" type:"string"`
  53570. // The index of the device on the instance for the network interface attachment.
  53571. // If you are specifying a network interface in a RunInstances request, you
  53572. // must provide the device index.
  53573. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  53574. // The IDs of the security groups for the network interface. Applies only if
  53575. // creating a network interface when launching an instance.
  53576. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  53577. // A number of IPv6 addresses to assign to the network interface. Amazon EC2
  53578. // chooses the IPv6 addresses from the range of the subnet. You cannot specify
  53579. // this option and the option to assign specific IPv6 addresses in the same
  53580. // request. You can specify this option if you've specified a minimum number
  53581. // of instances to launch.
  53582. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  53583. // One or more IPv6 addresses to assign to the network interface. You cannot
  53584. // specify this option and the option to assign a number of IPv6 addresses in
  53585. // the same request. You cannot specify this option if you've specified a minimum
  53586. // number of instances to launch.
  53587. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" queryName:"Ipv6Addresses" locationNameList:"item" type:"list"`
  53588. // The ID of the network interface.
  53589. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  53590. // The private IPv4 address of the network interface. Applies only if creating
  53591. // a network interface when launching an instance. You cannot specify this option
  53592. // if you're launching more than one instance in a RunInstances request.
  53593. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  53594. // One or more private IPv4 addresses to assign to the network interface. Only
  53595. // one private IPv4 address can be designated as primary. You cannot specify
  53596. // this option if you're launching more than one instance in a RunInstances
  53597. // request.
  53598. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" queryName:"PrivateIpAddresses" locationNameList:"item" type:"list"`
  53599. // The number of secondary private IPv4 addresses. You can't specify this option
  53600. // and specify more than one private IP address using the private IP addresses
  53601. // option. You cannot specify this option if you're launching more than one
  53602. // instance in a RunInstances request.
  53603. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  53604. // The ID of the subnet associated with the network string. Applies only if
  53605. // creating a network interface when launching an instance.
  53606. SubnetId *string `locationName:"subnetId" type:"string"`
  53607. }
  53608. // String returns the string representation
  53609. func (s InstanceNetworkInterfaceSpecification) String() string {
  53610. return awsutil.Prettify(s)
  53611. }
  53612. // GoString returns the string representation
  53613. func (s InstanceNetworkInterfaceSpecification) GoString() string {
  53614. return s.String()
  53615. }
  53616. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  53617. func (s *InstanceNetworkInterfaceSpecification) SetAssociatePublicIpAddress(v bool) *InstanceNetworkInterfaceSpecification {
  53618. s.AssociatePublicIpAddress = &v
  53619. return s
  53620. }
  53621. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  53622. func (s *InstanceNetworkInterfaceSpecification) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceSpecification {
  53623. s.DeleteOnTermination = &v
  53624. return s
  53625. }
  53626. // SetDescription sets the Description field's value.
  53627. func (s *InstanceNetworkInterfaceSpecification) SetDescription(v string) *InstanceNetworkInterfaceSpecification {
  53628. s.Description = &v
  53629. return s
  53630. }
  53631. // SetDeviceIndex sets the DeviceIndex field's value.
  53632. func (s *InstanceNetworkInterfaceSpecification) SetDeviceIndex(v int64) *InstanceNetworkInterfaceSpecification {
  53633. s.DeviceIndex = &v
  53634. return s
  53635. }
  53636. // SetGroups sets the Groups field's value.
  53637. func (s *InstanceNetworkInterfaceSpecification) SetGroups(v []*string) *InstanceNetworkInterfaceSpecification {
  53638. s.Groups = v
  53639. return s
  53640. }
  53641. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  53642. func (s *InstanceNetworkInterfaceSpecification) SetIpv6AddressCount(v int64) *InstanceNetworkInterfaceSpecification {
  53643. s.Ipv6AddressCount = &v
  53644. return s
  53645. }
  53646. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  53647. func (s *InstanceNetworkInterfaceSpecification) SetIpv6Addresses(v []*InstanceIpv6Address) *InstanceNetworkInterfaceSpecification {
  53648. s.Ipv6Addresses = v
  53649. return s
  53650. }
  53651. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  53652. func (s *InstanceNetworkInterfaceSpecification) SetNetworkInterfaceId(v string) *InstanceNetworkInterfaceSpecification {
  53653. s.NetworkInterfaceId = &v
  53654. return s
  53655. }
  53656. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  53657. func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddress(v string) *InstanceNetworkInterfaceSpecification {
  53658. s.PrivateIpAddress = &v
  53659. return s
  53660. }
  53661. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  53662. func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *InstanceNetworkInterfaceSpecification {
  53663. s.PrivateIpAddresses = v
  53664. return s
  53665. }
  53666. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  53667. func (s *InstanceNetworkInterfaceSpecification) SetSecondaryPrivateIpAddressCount(v int64) *InstanceNetworkInterfaceSpecification {
  53668. s.SecondaryPrivateIpAddressCount = &v
  53669. return s
  53670. }
  53671. // SetSubnetId sets the SubnetId field's value.
  53672. func (s *InstanceNetworkInterfaceSpecification) SetSubnetId(v string) *InstanceNetworkInterfaceSpecification {
  53673. s.SubnetId = &v
  53674. return s
  53675. }
  53676. // Describes a private IPv4 address.
  53677. type InstancePrivateIpAddress struct {
  53678. _ struct{} `type:"structure"`
  53679. // The association information for an Elastic IP address for the network interface.
  53680. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`
  53681. // Indicates whether this IPv4 address is the primary private IP address of
  53682. // the network interface.
  53683. Primary *bool `locationName:"primary" type:"boolean"`
  53684. // The private IPv4 DNS name.
  53685. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  53686. // The private IPv4 address of the network interface.
  53687. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  53688. }
  53689. // String returns the string representation
  53690. func (s InstancePrivateIpAddress) String() string {
  53691. return awsutil.Prettify(s)
  53692. }
  53693. // GoString returns the string representation
  53694. func (s InstancePrivateIpAddress) GoString() string {
  53695. return s.String()
  53696. }
  53697. // SetAssociation sets the Association field's value.
  53698. func (s *InstancePrivateIpAddress) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstancePrivateIpAddress {
  53699. s.Association = v
  53700. return s
  53701. }
  53702. // SetPrimary sets the Primary field's value.
  53703. func (s *InstancePrivateIpAddress) SetPrimary(v bool) *InstancePrivateIpAddress {
  53704. s.Primary = &v
  53705. return s
  53706. }
  53707. // SetPrivateDnsName sets the PrivateDnsName field's value.
  53708. func (s *InstancePrivateIpAddress) SetPrivateDnsName(v string) *InstancePrivateIpAddress {
  53709. s.PrivateDnsName = &v
  53710. return s
  53711. }
  53712. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  53713. func (s *InstancePrivateIpAddress) SetPrivateIpAddress(v string) *InstancePrivateIpAddress {
  53714. s.PrivateIpAddress = &v
  53715. return s
  53716. }
  53717. // Describes the current state of an instance.
  53718. type InstanceState struct {
  53719. _ struct{} `type:"structure"`
  53720. // The low byte represents the state. The high byte is used for internal purposes
  53721. // and should be ignored.
  53722. //
  53723. // * 0 : pending
  53724. //
  53725. // * 16 : running
  53726. //
  53727. // * 32 : shutting-down
  53728. //
  53729. // * 48 : terminated
  53730. //
  53731. // * 64 : stopping
  53732. //
  53733. // * 80 : stopped
  53734. Code *int64 `locationName:"code" type:"integer"`
  53735. // The current state of the instance.
  53736. Name *string `locationName:"name" type:"string" enum:"InstanceStateName"`
  53737. }
  53738. // String returns the string representation
  53739. func (s InstanceState) String() string {
  53740. return awsutil.Prettify(s)
  53741. }
  53742. // GoString returns the string representation
  53743. func (s InstanceState) GoString() string {
  53744. return s.String()
  53745. }
  53746. // SetCode sets the Code field's value.
  53747. func (s *InstanceState) SetCode(v int64) *InstanceState {
  53748. s.Code = &v
  53749. return s
  53750. }
  53751. // SetName sets the Name field's value.
  53752. func (s *InstanceState) SetName(v string) *InstanceState {
  53753. s.Name = &v
  53754. return s
  53755. }
  53756. // Describes an instance state change.
  53757. type InstanceStateChange struct {
  53758. _ struct{} `type:"structure"`
  53759. // The current state of the instance.
  53760. CurrentState *InstanceState `locationName:"currentState" type:"structure"`
  53761. // The ID of the instance.
  53762. InstanceId *string `locationName:"instanceId" type:"string"`
  53763. // The previous state of the instance.
  53764. PreviousState *InstanceState `locationName:"previousState" type:"structure"`
  53765. }
  53766. // String returns the string representation
  53767. func (s InstanceStateChange) String() string {
  53768. return awsutil.Prettify(s)
  53769. }
  53770. // GoString returns the string representation
  53771. func (s InstanceStateChange) GoString() string {
  53772. return s.String()
  53773. }
  53774. // SetCurrentState sets the CurrentState field's value.
  53775. func (s *InstanceStateChange) SetCurrentState(v *InstanceState) *InstanceStateChange {
  53776. s.CurrentState = v
  53777. return s
  53778. }
  53779. // SetInstanceId sets the InstanceId field's value.
  53780. func (s *InstanceStateChange) SetInstanceId(v string) *InstanceStateChange {
  53781. s.InstanceId = &v
  53782. return s
  53783. }
  53784. // SetPreviousState sets the PreviousState field's value.
  53785. func (s *InstanceStateChange) SetPreviousState(v *InstanceState) *InstanceStateChange {
  53786. s.PreviousState = v
  53787. return s
  53788. }
  53789. // Describes the status of an instance.
  53790. type InstanceStatus struct {
  53791. _ struct{} `type:"structure"`
  53792. // The Availability Zone of the instance.
  53793. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  53794. // Any scheduled events associated with the instance.
  53795. Events []*InstanceStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`
  53796. // The ID of the instance.
  53797. InstanceId *string `locationName:"instanceId" type:"string"`
  53798. // The intended state of the instance. DescribeInstanceStatus requires that
  53799. // an instance be in the running state.
  53800. InstanceState *InstanceState `locationName:"instanceState" type:"structure"`
  53801. // Reports impaired functionality that stems from issues internal to the instance,
  53802. // such as impaired reachability.
  53803. InstanceStatus *InstanceStatusSummary `locationName:"instanceStatus" type:"structure"`
  53804. // Reports impaired functionality that stems from issues related to the systems
  53805. // that support an instance, such as hardware failures and network connectivity
  53806. // problems.
  53807. SystemStatus *InstanceStatusSummary `locationName:"systemStatus" type:"structure"`
  53808. }
  53809. // String returns the string representation
  53810. func (s InstanceStatus) String() string {
  53811. return awsutil.Prettify(s)
  53812. }
  53813. // GoString returns the string representation
  53814. func (s InstanceStatus) GoString() string {
  53815. return s.String()
  53816. }
  53817. // SetAvailabilityZone sets the AvailabilityZone field's value.
  53818. func (s *InstanceStatus) SetAvailabilityZone(v string) *InstanceStatus {
  53819. s.AvailabilityZone = &v
  53820. return s
  53821. }
  53822. // SetEvents sets the Events field's value.
  53823. func (s *InstanceStatus) SetEvents(v []*InstanceStatusEvent) *InstanceStatus {
  53824. s.Events = v
  53825. return s
  53826. }
  53827. // SetInstanceId sets the InstanceId field's value.
  53828. func (s *InstanceStatus) SetInstanceId(v string) *InstanceStatus {
  53829. s.InstanceId = &v
  53830. return s
  53831. }
  53832. // SetInstanceState sets the InstanceState field's value.
  53833. func (s *InstanceStatus) SetInstanceState(v *InstanceState) *InstanceStatus {
  53834. s.InstanceState = v
  53835. return s
  53836. }
  53837. // SetInstanceStatus sets the InstanceStatus field's value.
  53838. func (s *InstanceStatus) SetInstanceStatus(v *InstanceStatusSummary) *InstanceStatus {
  53839. s.InstanceStatus = v
  53840. return s
  53841. }
  53842. // SetSystemStatus sets the SystemStatus field's value.
  53843. func (s *InstanceStatus) SetSystemStatus(v *InstanceStatusSummary) *InstanceStatus {
  53844. s.SystemStatus = v
  53845. return s
  53846. }
  53847. // Describes the instance status.
  53848. type InstanceStatusDetails struct {
  53849. _ struct{} `type:"structure"`
  53850. // The time when a status check failed. For an instance that was launched and
  53851. // impaired, this is the time when the instance was launched.
  53852. ImpairedSince *time.Time `locationName:"impairedSince" type:"timestamp"`
  53853. // The type of instance status.
  53854. Name *string `locationName:"name" type:"string" enum:"StatusName"`
  53855. // The status.
  53856. Status *string `locationName:"status" type:"string" enum:"StatusType"`
  53857. }
  53858. // String returns the string representation
  53859. func (s InstanceStatusDetails) String() string {
  53860. return awsutil.Prettify(s)
  53861. }
  53862. // GoString returns the string representation
  53863. func (s InstanceStatusDetails) GoString() string {
  53864. return s.String()
  53865. }
  53866. // SetImpairedSince sets the ImpairedSince field's value.
  53867. func (s *InstanceStatusDetails) SetImpairedSince(v time.Time) *InstanceStatusDetails {
  53868. s.ImpairedSince = &v
  53869. return s
  53870. }
  53871. // SetName sets the Name field's value.
  53872. func (s *InstanceStatusDetails) SetName(v string) *InstanceStatusDetails {
  53873. s.Name = &v
  53874. return s
  53875. }
  53876. // SetStatus sets the Status field's value.
  53877. func (s *InstanceStatusDetails) SetStatus(v string) *InstanceStatusDetails {
  53878. s.Status = &v
  53879. return s
  53880. }
  53881. // Describes a scheduled event for an instance.
  53882. type InstanceStatusEvent struct {
  53883. _ struct{} `type:"structure"`
  53884. // The event code.
  53885. Code *string `locationName:"code" type:"string" enum:"EventCode"`
  53886. // A description of the event.
  53887. //
  53888. // After a scheduled event is completed, it can still be described for up to
  53889. // a week. If the event has been completed, this description starts with the
  53890. // following text: [Completed].
  53891. Description *string `locationName:"description" type:"string"`
  53892. // The latest scheduled end time for the event.
  53893. NotAfter *time.Time `locationName:"notAfter" type:"timestamp"`
  53894. // The earliest scheduled start time for the event.
  53895. NotBefore *time.Time `locationName:"notBefore" type:"timestamp"`
  53896. }
  53897. // String returns the string representation
  53898. func (s InstanceStatusEvent) String() string {
  53899. return awsutil.Prettify(s)
  53900. }
  53901. // GoString returns the string representation
  53902. func (s InstanceStatusEvent) GoString() string {
  53903. return s.String()
  53904. }
  53905. // SetCode sets the Code field's value.
  53906. func (s *InstanceStatusEvent) SetCode(v string) *InstanceStatusEvent {
  53907. s.Code = &v
  53908. return s
  53909. }
  53910. // SetDescription sets the Description field's value.
  53911. func (s *InstanceStatusEvent) SetDescription(v string) *InstanceStatusEvent {
  53912. s.Description = &v
  53913. return s
  53914. }
  53915. // SetNotAfter sets the NotAfter field's value.
  53916. func (s *InstanceStatusEvent) SetNotAfter(v time.Time) *InstanceStatusEvent {
  53917. s.NotAfter = &v
  53918. return s
  53919. }
  53920. // SetNotBefore sets the NotBefore field's value.
  53921. func (s *InstanceStatusEvent) SetNotBefore(v time.Time) *InstanceStatusEvent {
  53922. s.NotBefore = &v
  53923. return s
  53924. }
  53925. // Describes the status of an instance.
  53926. type InstanceStatusSummary struct {
  53927. _ struct{} `type:"structure"`
  53928. // The system instance health or application instance health.
  53929. Details []*InstanceStatusDetails `locationName:"details" locationNameList:"item" type:"list"`
  53930. // The status.
  53931. Status *string `locationName:"status" type:"string" enum:"SummaryStatus"`
  53932. }
  53933. // String returns the string representation
  53934. func (s InstanceStatusSummary) String() string {
  53935. return awsutil.Prettify(s)
  53936. }
  53937. // GoString returns the string representation
  53938. func (s InstanceStatusSummary) GoString() string {
  53939. return s.String()
  53940. }
  53941. // SetDetails sets the Details field's value.
  53942. func (s *InstanceStatusSummary) SetDetails(v []*InstanceStatusDetails) *InstanceStatusSummary {
  53943. s.Details = v
  53944. return s
  53945. }
  53946. // SetStatus sets the Status field's value.
  53947. func (s *InstanceStatusSummary) SetStatus(v string) *InstanceStatusSummary {
  53948. s.Status = &v
  53949. return s
  53950. }
  53951. // Describes an internet gateway.
  53952. type InternetGateway struct {
  53953. _ struct{} `type:"structure"`
  53954. // Any VPCs attached to the internet gateway.
  53955. Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  53956. // The ID of the internet gateway.
  53957. InternetGatewayId *string `locationName:"internetGatewayId" type:"string"`
  53958. // The ID of the AWS account that owns the internet gateway.
  53959. OwnerId *string `locationName:"ownerId" type:"string"`
  53960. // Any tags assigned to the internet gateway.
  53961. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  53962. }
  53963. // String returns the string representation
  53964. func (s InternetGateway) String() string {
  53965. return awsutil.Prettify(s)
  53966. }
  53967. // GoString returns the string representation
  53968. func (s InternetGateway) GoString() string {
  53969. return s.String()
  53970. }
  53971. // SetAttachments sets the Attachments field's value.
  53972. func (s *InternetGateway) SetAttachments(v []*InternetGatewayAttachment) *InternetGateway {
  53973. s.Attachments = v
  53974. return s
  53975. }
  53976. // SetInternetGatewayId sets the InternetGatewayId field's value.
  53977. func (s *InternetGateway) SetInternetGatewayId(v string) *InternetGateway {
  53978. s.InternetGatewayId = &v
  53979. return s
  53980. }
  53981. // SetOwnerId sets the OwnerId field's value.
  53982. func (s *InternetGateway) SetOwnerId(v string) *InternetGateway {
  53983. s.OwnerId = &v
  53984. return s
  53985. }
  53986. // SetTags sets the Tags field's value.
  53987. func (s *InternetGateway) SetTags(v []*Tag) *InternetGateway {
  53988. s.Tags = v
  53989. return s
  53990. }
  53991. // Describes the attachment of a VPC to an internet gateway or an egress-only
  53992. // internet gateway.
  53993. type InternetGatewayAttachment struct {
  53994. _ struct{} `type:"structure"`
  53995. // The current state of the attachment. For an internet gateway, the state is
  53996. // available when attached to a VPC; otherwise, this value is not returned.
  53997. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"`
  53998. // The ID of the VPC.
  53999. VpcId *string `locationName:"vpcId" type:"string"`
  54000. }
  54001. // String returns the string representation
  54002. func (s InternetGatewayAttachment) String() string {
  54003. return awsutil.Prettify(s)
  54004. }
  54005. // GoString returns the string representation
  54006. func (s InternetGatewayAttachment) GoString() string {
  54007. return s.String()
  54008. }
  54009. // SetState sets the State field's value.
  54010. func (s *InternetGatewayAttachment) SetState(v string) *InternetGatewayAttachment {
  54011. s.State = &v
  54012. return s
  54013. }
  54014. // SetVpcId sets the VpcId field's value.
  54015. func (s *InternetGatewayAttachment) SetVpcId(v string) *InternetGatewayAttachment {
  54016. s.VpcId = &v
  54017. return s
  54018. }
  54019. // Describes a set of permissions for a security group rule.
  54020. type IpPermission struct {
  54021. _ struct{} `type:"structure"`
  54022. // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
  54023. // type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify
  54024. // all ICMP/ICMPv6 types, you must specify all codes.
  54025. FromPort *int64 `locationName:"fromPort" type:"integer"`
  54026. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  54027. //
  54028. // [EC2-VPC only] Use -1 to specify all protocols. When authorizing security
  54029. // group rules, specifying -1 or a protocol number other than tcp, udp, icmp,
  54030. // or 58 (ICMPv6) allows traffic on all ports, regardless of any port range
  54031. // you specify. For tcp, udp, and icmp, you must specify a port range. For 58
  54032. // (ICMPv6), you can optionally specify a port range; if you don't, traffic
  54033. // for all types and codes is allowed when authorizing rules.
  54034. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  54035. // One or more IPv4 ranges.
  54036. IpRanges []*IpRange `locationName:"ipRanges" locationNameList:"item" type:"list"`
  54037. // [EC2-VPC only] One or more IPv6 ranges.
  54038. Ipv6Ranges []*Ipv6Range `locationName:"ipv6Ranges" locationNameList:"item" type:"list"`
  54039. // [EC2-VPC only] One or more prefix list IDs for an AWS service. With AuthorizeSecurityGroupEgress,
  54040. // this is the AWS service that you want to access through a VPC endpoint from
  54041. // instances associated with the security group.
  54042. PrefixListIds []*PrefixListId `locationName:"prefixListIds" locationNameList:"item" type:"list"`
  54043. // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
  54044. // A value of -1 indicates all ICMP/ICMPv6 codes for the specified ICMP type.
  54045. // If you specify all ICMP/ICMPv6 types, you must specify all codes.
  54046. ToPort *int64 `locationName:"toPort" type:"integer"`
  54047. // One or more security group and AWS account ID pairs.
  54048. UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
  54049. }
  54050. // String returns the string representation
  54051. func (s IpPermission) String() string {
  54052. return awsutil.Prettify(s)
  54053. }
  54054. // GoString returns the string representation
  54055. func (s IpPermission) GoString() string {
  54056. return s.String()
  54057. }
  54058. // SetFromPort sets the FromPort field's value.
  54059. func (s *IpPermission) SetFromPort(v int64) *IpPermission {
  54060. s.FromPort = &v
  54061. return s
  54062. }
  54063. // SetIpProtocol sets the IpProtocol field's value.
  54064. func (s *IpPermission) SetIpProtocol(v string) *IpPermission {
  54065. s.IpProtocol = &v
  54066. return s
  54067. }
  54068. // SetIpRanges sets the IpRanges field's value.
  54069. func (s *IpPermission) SetIpRanges(v []*IpRange) *IpPermission {
  54070. s.IpRanges = v
  54071. return s
  54072. }
  54073. // SetIpv6Ranges sets the Ipv6Ranges field's value.
  54074. func (s *IpPermission) SetIpv6Ranges(v []*Ipv6Range) *IpPermission {
  54075. s.Ipv6Ranges = v
  54076. return s
  54077. }
  54078. // SetPrefixListIds sets the PrefixListIds field's value.
  54079. func (s *IpPermission) SetPrefixListIds(v []*PrefixListId) *IpPermission {
  54080. s.PrefixListIds = v
  54081. return s
  54082. }
  54083. // SetToPort sets the ToPort field's value.
  54084. func (s *IpPermission) SetToPort(v int64) *IpPermission {
  54085. s.ToPort = &v
  54086. return s
  54087. }
  54088. // SetUserIdGroupPairs sets the UserIdGroupPairs field's value.
  54089. func (s *IpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *IpPermission {
  54090. s.UserIdGroupPairs = v
  54091. return s
  54092. }
  54093. // Describes an IPv4 range.
  54094. type IpRange struct {
  54095. _ struct{} `type:"structure"`
  54096. // The IPv4 CIDR range. You can either specify a CIDR range or a source security
  54097. // group, not both. To specify a single IPv4 address, use the /32 prefix length.
  54098. CidrIp *string `locationName:"cidrIp" type:"string"`
  54099. // A description for the security group rule that references this IPv4 address
  54100. // range.
  54101. //
  54102. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  54103. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  54104. Description *string `locationName:"description" type:"string"`
  54105. }
  54106. // String returns the string representation
  54107. func (s IpRange) String() string {
  54108. return awsutil.Prettify(s)
  54109. }
  54110. // GoString returns the string representation
  54111. func (s IpRange) GoString() string {
  54112. return s.String()
  54113. }
  54114. // SetCidrIp sets the CidrIp field's value.
  54115. func (s *IpRange) SetCidrIp(v string) *IpRange {
  54116. s.CidrIp = &v
  54117. return s
  54118. }
  54119. // SetDescription sets the Description field's value.
  54120. func (s *IpRange) SetDescription(v string) *IpRange {
  54121. s.Description = &v
  54122. return s
  54123. }
  54124. // Describes an IPv6 CIDR block.
  54125. type Ipv6CidrBlock struct {
  54126. _ struct{} `type:"structure"`
  54127. // The IPv6 CIDR block.
  54128. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  54129. }
  54130. // String returns the string representation
  54131. func (s Ipv6CidrBlock) String() string {
  54132. return awsutil.Prettify(s)
  54133. }
  54134. // GoString returns the string representation
  54135. func (s Ipv6CidrBlock) GoString() string {
  54136. return s.String()
  54137. }
  54138. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  54139. func (s *Ipv6CidrBlock) SetIpv6CidrBlock(v string) *Ipv6CidrBlock {
  54140. s.Ipv6CidrBlock = &v
  54141. return s
  54142. }
  54143. // [EC2-VPC only] Describes an IPv6 range.
  54144. type Ipv6Range struct {
  54145. _ struct{} `type:"structure"`
  54146. // The IPv6 CIDR range. You can either specify a CIDR range or a source security
  54147. // group, not both. To specify a single IPv6 address, use the /128 prefix length.
  54148. CidrIpv6 *string `locationName:"cidrIpv6" type:"string"`
  54149. // A description for the security group rule that references this IPv6 address
  54150. // range.
  54151. //
  54152. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  54153. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  54154. Description *string `locationName:"description" type:"string"`
  54155. }
  54156. // String returns the string representation
  54157. func (s Ipv6Range) String() string {
  54158. return awsutil.Prettify(s)
  54159. }
  54160. // GoString returns the string representation
  54161. func (s Ipv6Range) GoString() string {
  54162. return s.String()
  54163. }
  54164. // SetCidrIpv6 sets the CidrIpv6 field's value.
  54165. func (s *Ipv6Range) SetCidrIpv6(v string) *Ipv6Range {
  54166. s.CidrIpv6 = &v
  54167. return s
  54168. }
  54169. // SetDescription sets the Description field's value.
  54170. func (s *Ipv6Range) SetDescription(v string) *Ipv6Range {
  54171. s.Description = &v
  54172. return s
  54173. }
  54174. // Describes a key pair.
  54175. type KeyPairInfo struct {
  54176. _ struct{} `type:"structure"`
  54177. // If you used CreateKeyPair to create the key pair, this is the SHA-1 digest
  54178. // of the DER encoded private key. If you used ImportKeyPair to provide AWS
  54179. // the public key, this is the MD5 public key fingerprint as specified in section
  54180. // 4 of RFC4716.
  54181. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  54182. // The name of the key pair.
  54183. KeyName *string `locationName:"keyName" type:"string"`
  54184. }
  54185. // String returns the string representation
  54186. func (s KeyPairInfo) String() string {
  54187. return awsutil.Prettify(s)
  54188. }
  54189. // GoString returns the string representation
  54190. func (s KeyPairInfo) GoString() string {
  54191. return s.String()
  54192. }
  54193. // SetKeyFingerprint sets the KeyFingerprint field's value.
  54194. func (s *KeyPairInfo) SetKeyFingerprint(v string) *KeyPairInfo {
  54195. s.KeyFingerprint = &v
  54196. return s
  54197. }
  54198. // SetKeyName sets the KeyName field's value.
  54199. func (s *KeyPairInfo) SetKeyName(v string) *KeyPairInfo {
  54200. s.KeyName = &v
  54201. return s
  54202. }
  54203. // Describes a launch permission.
  54204. type LaunchPermission struct {
  54205. _ struct{} `type:"structure"`
  54206. // The name of the group.
  54207. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  54208. // The AWS account ID.
  54209. UserId *string `locationName:"userId" type:"string"`
  54210. }
  54211. // String returns the string representation
  54212. func (s LaunchPermission) String() string {
  54213. return awsutil.Prettify(s)
  54214. }
  54215. // GoString returns the string representation
  54216. func (s LaunchPermission) GoString() string {
  54217. return s.String()
  54218. }
  54219. // SetGroup sets the Group field's value.
  54220. func (s *LaunchPermission) SetGroup(v string) *LaunchPermission {
  54221. s.Group = &v
  54222. return s
  54223. }
  54224. // SetUserId sets the UserId field's value.
  54225. func (s *LaunchPermission) SetUserId(v string) *LaunchPermission {
  54226. s.UserId = &v
  54227. return s
  54228. }
  54229. // Describes a launch permission modification.
  54230. type LaunchPermissionModifications struct {
  54231. _ struct{} `type:"structure"`
  54232. // The AWS account ID to add to the list of launch permissions for the AMI.
  54233. Add []*LaunchPermission `locationNameList:"item" type:"list"`
  54234. // The AWS account ID to remove from the list of launch permissions for the
  54235. // AMI.
  54236. Remove []*LaunchPermission `locationNameList:"item" type:"list"`
  54237. }
  54238. // String returns the string representation
  54239. func (s LaunchPermissionModifications) String() string {
  54240. return awsutil.Prettify(s)
  54241. }
  54242. // GoString returns the string representation
  54243. func (s LaunchPermissionModifications) GoString() string {
  54244. return s.String()
  54245. }
  54246. // SetAdd sets the Add field's value.
  54247. func (s *LaunchPermissionModifications) SetAdd(v []*LaunchPermission) *LaunchPermissionModifications {
  54248. s.Add = v
  54249. return s
  54250. }
  54251. // SetRemove sets the Remove field's value.
  54252. func (s *LaunchPermissionModifications) SetRemove(v []*LaunchPermission) *LaunchPermissionModifications {
  54253. s.Remove = v
  54254. return s
  54255. }
  54256. // Describes the launch specification for an instance.
  54257. type LaunchSpecification struct {
  54258. _ struct{} `type:"structure"`
  54259. // Deprecated.
  54260. AddressingType *string `locationName:"addressingType" type:"string"`
  54261. // One or more block device mapping entries.
  54262. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  54263. // Indicates whether the instance is optimized for EBS I/O. This optimization
  54264. // provides dedicated throughput to Amazon EBS and an optimized configuration
  54265. // stack to provide optimal EBS I/O performance. This optimization isn't available
  54266. // with all instance types. Additional usage charges apply when using an EBS
  54267. // Optimized instance.
  54268. //
  54269. // Default: false
  54270. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  54271. // The IAM instance profile.
  54272. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  54273. // The ID of the AMI.
  54274. ImageId *string `locationName:"imageId" type:"string"`
  54275. // The instance type.
  54276. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  54277. // The ID of the kernel.
  54278. KernelId *string `locationName:"kernelId" type:"string"`
  54279. // The name of the key pair.
  54280. KeyName *string `locationName:"keyName" type:"string"`
  54281. // Describes the monitoring of an instance.
  54282. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`
  54283. // One or more network interfaces. If you specify a network interface, you must
  54284. // specify subnet IDs and security group IDs using the network interface.
  54285. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  54286. // The placement information for the instance.
  54287. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  54288. // The ID of the RAM disk.
  54289. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  54290. // One or more security groups. When requesting instances in a VPC, you must
  54291. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  54292. // you can specify the names or the IDs of the security groups.
  54293. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  54294. // The ID of the subnet in which to launch the instance.
  54295. SubnetId *string `locationName:"subnetId" type:"string"`
  54296. // The Base64-encoded user data for the instance.
  54297. UserData *string `locationName:"userData" type:"string"`
  54298. }
  54299. // String returns the string representation
  54300. func (s LaunchSpecification) String() string {
  54301. return awsutil.Prettify(s)
  54302. }
  54303. // GoString returns the string representation
  54304. func (s LaunchSpecification) GoString() string {
  54305. return s.String()
  54306. }
  54307. // SetAddressingType sets the AddressingType field's value.
  54308. func (s *LaunchSpecification) SetAddressingType(v string) *LaunchSpecification {
  54309. s.AddressingType = &v
  54310. return s
  54311. }
  54312. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  54313. func (s *LaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *LaunchSpecification {
  54314. s.BlockDeviceMappings = v
  54315. return s
  54316. }
  54317. // SetEbsOptimized sets the EbsOptimized field's value.
  54318. func (s *LaunchSpecification) SetEbsOptimized(v bool) *LaunchSpecification {
  54319. s.EbsOptimized = &v
  54320. return s
  54321. }
  54322. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  54323. func (s *LaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *LaunchSpecification {
  54324. s.IamInstanceProfile = v
  54325. return s
  54326. }
  54327. // SetImageId sets the ImageId field's value.
  54328. func (s *LaunchSpecification) SetImageId(v string) *LaunchSpecification {
  54329. s.ImageId = &v
  54330. return s
  54331. }
  54332. // SetInstanceType sets the InstanceType field's value.
  54333. func (s *LaunchSpecification) SetInstanceType(v string) *LaunchSpecification {
  54334. s.InstanceType = &v
  54335. return s
  54336. }
  54337. // SetKernelId sets the KernelId field's value.
  54338. func (s *LaunchSpecification) SetKernelId(v string) *LaunchSpecification {
  54339. s.KernelId = &v
  54340. return s
  54341. }
  54342. // SetKeyName sets the KeyName field's value.
  54343. func (s *LaunchSpecification) SetKeyName(v string) *LaunchSpecification {
  54344. s.KeyName = &v
  54345. return s
  54346. }
  54347. // SetMonitoring sets the Monitoring field's value.
  54348. func (s *LaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *LaunchSpecification {
  54349. s.Monitoring = v
  54350. return s
  54351. }
  54352. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  54353. func (s *LaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *LaunchSpecification {
  54354. s.NetworkInterfaces = v
  54355. return s
  54356. }
  54357. // SetPlacement sets the Placement field's value.
  54358. func (s *LaunchSpecification) SetPlacement(v *SpotPlacement) *LaunchSpecification {
  54359. s.Placement = v
  54360. return s
  54361. }
  54362. // SetRamdiskId sets the RamdiskId field's value.
  54363. func (s *LaunchSpecification) SetRamdiskId(v string) *LaunchSpecification {
  54364. s.RamdiskId = &v
  54365. return s
  54366. }
  54367. // SetSecurityGroups sets the SecurityGroups field's value.
  54368. func (s *LaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *LaunchSpecification {
  54369. s.SecurityGroups = v
  54370. return s
  54371. }
  54372. // SetSubnetId sets the SubnetId field's value.
  54373. func (s *LaunchSpecification) SetSubnetId(v string) *LaunchSpecification {
  54374. s.SubnetId = &v
  54375. return s
  54376. }
  54377. // SetUserData sets the UserData field's value.
  54378. func (s *LaunchSpecification) SetUserData(v string) *LaunchSpecification {
  54379. s.UserData = &v
  54380. return s
  54381. }
  54382. // Describes a launch template.
  54383. type LaunchTemplate struct {
  54384. _ struct{} `type:"structure"`
  54385. // The time launch template was created.
  54386. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  54387. // The principal that created the launch template.
  54388. CreatedBy *string `locationName:"createdBy" type:"string"`
  54389. // The version number of the default version of the launch template.
  54390. DefaultVersionNumber *int64 `locationName:"defaultVersionNumber" type:"long"`
  54391. // The version number of the latest version of the launch template.
  54392. LatestVersionNumber *int64 `locationName:"latestVersionNumber" type:"long"`
  54393. // The ID of the launch template.
  54394. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  54395. // The name of the launch template.
  54396. LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`
  54397. // The tags for the launch template.
  54398. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  54399. }
  54400. // String returns the string representation
  54401. func (s LaunchTemplate) String() string {
  54402. return awsutil.Prettify(s)
  54403. }
  54404. // GoString returns the string representation
  54405. func (s LaunchTemplate) GoString() string {
  54406. return s.String()
  54407. }
  54408. // SetCreateTime sets the CreateTime field's value.
  54409. func (s *LaunchTemplate) SetCreateTime(v time.Time) *LaunchTemplate {
  54410. s.CreateTime = &v
  54411. return s
  54412. }
  54413. // SetCreatedBy sets the CreatedBy field's value.
  54414. func (s *LaunchTemplate) SetCreatedBy(v string) *LaunchTemplate {
  54415. s.CreatedBy = &v
  54416. return s
  54417. }
  54418. // SetDefaultVersionNumber sets the DefaultVersionNumber field's value.
  54419. func (s *LaunchTemplate) SetDefaultVersionNumber(v int64) *LaunchTemplate {
  54420. s.DefaultVersionNumber = &v
  54421. return s
  54422. }
  54423. // SetLatestVersionNumber sets the LatestVersionNumber field's value.
  54424. func (s *LaunchTemplate) SetLatestVersionNumber(v int64) *LaunchTemplate {
  54425. s.LatestVersionNumber = &v
  54426. return s
  54427. }
  54428. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  54429. func (s *LaunchTemplate) SetLaunchTemplateId(v string) *LaunchTemplate {
  54430. s.LaunchTemplateId = &v
  54431. return s
  54432. }
  54433. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  54434. func (s *LaunchTemplate) SetLaunchTemplateName(v string) *LaunchTemplate {
  54435. s.LaunchTemplateName = &v
  54436. return s
  54437. }
  54438. // SetTags sets the Tags field's value.
  54439. func (s *LaunchTemplate) SetTags(v []*Tag) *LaunchTemplate {
  54440. s.Tags = v
  54441. return s
  54442. }
  54443. // Describes a launch template and overrides.
  54444. type LaunchTemplateAndOverridesResponse struct {
  54445. _ struct{} `type:"structure"`
  54446. // The launch template.
  54447. LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"`
  54448. // Any parameters that you specify override the same parameters in the launch
  54449. // template.
  54450. Overrides *FleetLaunchTemplateOverrides `locationName:"overrides" type:"structure"`
  54451. }
  54452. // String returns the string representation
  54453. func (s LaunchTemplateAndOverridesResponse) String() string {
  54454. return awsutil.Prettify(s)
  54455. }
  54456. // GoString returns the string representation
  54457. func (s LaunchTemplateAndOverridesResponse) GoString() string {
  54458. return s.String()
  54459. }
  54460. // SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value.
  54461. func (s *LaunchTemplateAndOverridesResponse) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecification) *LaunchTemplateAndOverridesResponse {
  54462. s.LaunchTemplateSpecification = v
  54463. return s
  54464. }
  54465. // SetOverrides sets the Overrides field's value.
  54466. func (s *LaunchTemplateAndOverridesResponse) SetOverrides(v *FleetLaunchTemplateOverrides) *LaunchTemplateAndOverridesResponse {
  54467. s.Overrides = v
  54468. return s
  54469. }
  54470. // Describes a block device mapping.
  54471. type LaunchTemplateBlockDeviceMapping struct {
  54472. _ struct{} `type:"structure"`
  54473. // The device name.
  54474. DeviceName *string `locationName:"deviceName" type:"string"`
  54475. // Information about the block device for an EBS volume.
  54476. Ebs *LaunchTemplateEbsBlockDevice `locationName:"ebs" type:"structure"`
  54477. // Suppresses the specified device included in the block device mapping of the
  54478. // AMI.
  54479. NoDevice *string `locationName:"noDevice" type:"string"`
  54480. // The virtual device name (ephemeralN).
  54481. VirtualName *string `locationName:"virtualName" type:"string"`
  54482. }
  54483. // String returns the string representation
  54484. func (s LaunchTemplateBlockDeviceMapping) String() string {
  54485. return awsutil.Prettify(s)
  54486. }
  54487. // GoString returns the string representation
  54488. func (s LaunchTemplateBlockDeviceMapping) GoString() string {
  54489. return s.String()
  54490. }
  54491. // SetDeviceName sets the DeviceName field's value.
  54492. func (s *LaunchTemplateBlockDeviceMapping) SetDeviceName(v string) *LaunchTemplateBlockDeviceMapping {
  54493. s.DeviceName = &v
  54494. return s
  54495. }
  54496. // SetEbs sets the Ebs field's value.
  54497. func (s *LaunchTemplateBlockDeviceMapping) SetEbs(v *LaunchTemplateEbsBlockDevice) *LaunchTemplateBlockDeviceMapping {
  54498. s.Ebs = v
  54499. return s
  54500. }
  54501. // SetNoDevice sets the NoDevice field's value.
  54502. func (s *LaunchTemplateBlockDeviceMapping) SetNoDevice(v string) *LaunchTemplateBlockDeviceMapping {
  54503. s.NoDevice = &v
  54504. return s
  54505. }
  54506. // SetVirtualName sets the VirtualName field's value.
  54507. func (s *LaunchTemplateBlockDeviceMapping) SetVirtualName(v string) *LaunchTemplateBlockDeviceMapping {
  54508. s.VirtualName = &v
  54509. return s
  54510. }
  54511. // Describes a block device mapping.
  54512. type LaunchTemplateBlockDeviceMappingRequest struct {
  54513. _ struct{} `type:"structure"`
  54514. // The device name (for example, /dev/sdh or xvdh).
  54515. DeviceName *string `type:"string"`
  54516. // Parameters used to automatically set up EBS volumes when the instance is
  54517. // launched.
  54518. Ebs *LaunchTemplateEbsBlockDeviceRequest `type:"structure"`
  54519. // Suppresses the specified device included in the block device mapping of the
  54520. // AMI.
  54521. NoDevice *string `type:"string"`
  54522. // The virtual device name (ephemeralN). Instance store volumes are numbered
  54523. // starting from 0. An instance type with 2 available instance store volumes
  54524. // can specify mappings for ephemeral0 and ephemeral1. The number of available
  54525. // instance store volumes depends on the instance type. After you connect to
  54526. // the instance, you must mount the volume.
  54527. VirtualName *string `type:"string"`
  54528. }
  54529. // String returns the string representation
  54530. func (s LaunchTemplateBlockDeviceMappingRequest) String() string {
  54531. return awsutil.Prettify(s)
  54532. }
  54533. // GoString returns the string representation
  54534. func (s LaunchTemplateBlockDeviceMappingRequest) GoString() string {
  54535. return s.String()
  54536. }
  54537. // SetDeviceName sets the DeviceName field's value.
  54538. func (s *LaunchTemplateBlockDeviceMappingRequest) SetDeviceName(v string) *LaunchTemplateBlockDeviceMappingRequest {
  54539. s.DeviceName = &v
  54540. return s
  54541. }
  54542. // SetEbs sets the Ebs field's value.
  54543. func (s *LaunchTemplateBlockDeviceMappingRequest) SetEbs(v *LaunchTemplateEbsBlockDeviceRequest) *LaunchTemplateBlockDeviceMappingRequest {
  54544. s.Ebs = v
  54545. return s
  54546. }
  54547. // SetNoDevice sets the NoDevice field's value.
  54548. func (s *LaunchTemplateBlockDeviceMappingRequest) SetNoDevice(v string) *LaunchTemplateBlockDeviceMappingRequest {
  54549. s.NoDevice = &v
  54550. return s
  54551. }
  54552. // SetVirtualName sets the VirtualName field's value.
  54553. func (s *LaunchTemplateBlockDeviceMappingRequest) SetVirtualName(v string) *LaunchTemplateBlockDeviceMappingRequest {
  54554. s.VirtualName = &v
  54555. return s
  54556. }
  54557. // Describes an instance's Capacity Reservation targeting option. You can specify
  54558. // only one option at a time. Use the CapacityReservationPreference parameter
  54559. // to configure the instance to run in On-Demand capacity or to run in any open
  54560. // Capacity Reservation that has matching attributes (instance type, platform,
  54561. // Availability Zone). Use the CapacityReservationTarget parameter to explicitly
  54562. // target a specific Capacity Reservation.
  54563. type LaunchTemplateCapacityReservationSpecificationRequest struct {
  54564. _ struct{} `type:"structure"`
  54565. // Indicates the instance's Capacity Reservation preferences. Possible preferences
  54566. // include:
  54567. //
  54568. // * open - The instance can run in any open Capacity Reservation that has
  54569. // matching attributes (instance type, platform, Availability Zone).
  54570. //
  54571. // * none - The instance avoids running in a Capacity Reservation even if
  54572. // one is available. The instance runs in On-Demand capacity.
  54573. CapacityReservationPreference *string `type:"string" enum:"CapacityReservationPreference"`
  54574. // Information about the target Capacity Reservation.
  54575. CapacityReservationTarget *CapacityReservationTarget `type:"structure"`
  54576. }
  54577. // String returns the string representation
  54578. func (s LaunchTemplateCapacityReservationSpecificationRequest) String() string {
  54579. return awsutil.Prettify(s)
  54580. }
  54581. // GoString returns the string representation
  54582. func (s LaunchTemplateCapacityReservationSpecificationRequest) GoString() string {
  54583. return s.String()
  54584. }
  54585. // SetCapacityReservationPreference sets the CapacityReservationPreference field's value.
  54586. func (s *LaunchTemplateCapacityReservationSpecificationRequest) SetCapacityReservationPreference(v string) *LaunchTemplateCapacityReservationSpecificationRequest {
  54587. s.CapacityReservationPreference = &v
  54588. return s
  54589. }
  54590. // SetCapacityReservationTarget sets the CapacityReservationTarget field's value.
  54591. func (s *LaunchTemplateCapacityReservationSpecificationRequest) SetCapacityReservationTarget(v *CapacityReservationTarget) *LaunchTemplateCapacityReservationSpecificationRequest {
  54592. s.CapacityReservationTarget = v
  54593. return s
  54594. }
  54595. // Information about the Capacity Reservation targeting option.
  54596. type LaunchTemplateCapacityReservationSpecificationResponse struct {
  54597. _ struct{} `type:"structure"`
  54598. // Indicates the instance's Capacity Reservation preferences. Possible preferences
  54599. // include:
  54600. //
  54601. // * open - The instance can run in any open Capacity Reservation that has
  54602. // matching attributes (instance type, platform, Availability Zone).
  54603. //
  54604. // * none - The instance avoids running in a Capacity Reservation even if
  54605. // one is available. The instance runs in On-Demand capacity.
  54606. CapacityReservationPreference *string `locationName:"capacityReservationPreference" type:"string" enum:"CapacityReservationPreference"`
  54607. // Information about the target Capacity Reservation.
  54608. CapacityReservationTarget *CapacityReservationTargetResponse `locationName:"capacityReservationTarget" type:"structure"`
  54609. }
  54610. // String returns the string representation
  54611. func (s LaunchTemplateCapacityReservationSpecificationResponse) String() string {
  54612. return awsutil.Prettify(s)
  54613. }
  54614. // GoString returns the string representation
  54615. func (s LaunchTemplateCapacityReservationSpecificationResponse) GoString() string {
  54616. return s.String()
  54617. }
  54618. // SetCapacityReservationPreference sets the CapacityReservationPreference field's value.
  54619. func (s *LaunchTemplateCapacityReservationSpecificationResponse) SetCapacityReservationPreference(v string) *LaunchTemplateCapacityReservationSpecificationResponse {
  54620. s.CapacityReservationPreference = &v
  54621. return s
  54622. }
  54623. // SetCapacityReservationTarget sets the CapacityReservationTarget field's value.
  54624. func (s *LaunchTemplateCapacityReservationSpecificationResponse) SetCapacityReservationTarget(v *CapacityReservationTargetResponse) *LaunchTemplateCapacityReservationSpecificationResponse {
  54625. s.CapacityReservationTarget = v
  54626. return s
  54627. }
  54628. // Describes a launch template and overrides.
  54629. type LaunchTemplateConfig struct {
  54630. _ struct{} `type:"structure"`
  54631. // The launch template.
  54632. LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"`
  54633. // Any parameters that you specify override the same parameters in the launch
  54634. // template.
  54635. Overrides []*LaunchTemplateOverrides `locationName:"overrides" locationNameList:"item" type:"list"`
  54636. }
  54637. // String returns the string representation
  54638. func (s LaunchTemplateConfig) String() string {
  54639. return awsutil.Prettify(s)
  54640. }
  54641. // GoString returns the string representation
  54642. func (s LaunchTemplateConfig) GoString() string {
  54643. return s.String()
  54644. }
  54645. // Validate inspects the fields of the type to determine if they are valid.
  54646. func (s *LaunchTemplateConfig) Validate() error {
  54647. invalidParams := request.ErrInvalidParams{Context: "LaunchTemplateConfig"}
  54648. if s.LaunchTemplateSpecification != nil {
  54649. if err := s.LaunchTemplateSpecification.Validate(); err != nil {
  54650. invalidParams.AddNested("LaunchTemplateSpecification", err.(request.ErrInvalidParams))
  54651. }
  54652. }
  54653. if invalidParams.Len() > 0 {
  54654. return invalidParams
  54655. }
  54656. return nil
  54657. }
  54658. // SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value.
  54659. func (s *LaunchTemplateConfig) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecification) *LaunchTemplateConfig {
  54660. s.LaunchTemplateSpecification = v
  54661. return s
  54662. }
  54663. // SetOverrides sets the Overrides field's value.
  54664. func (s *LaunchTemplateConfig) SetOverrides(v []*LaunchTemplateOverrides) *LaunchTemplateConfig {
  54665. s.Overrides = v
  54666. return s
  54667. }
  54668. // The CPU options for the instance.
  54669. type LaunchTemplateCpuOptions struct {
  54670. _ struct{} `type:"structure"`
  54671. // The number of CPU cores for the instance.
  54672. CoreCount *int64 `locationName:"coreCount" type:"integer"`
  54673. // The number of threads per CPU core.
  54674. ThreadsPerCore *int64 `locationName:"threadsPerCore" type:"integer"`
  54675. }
  54676. // String returns the string representation
  54677. func (s LaunchTemplateCpuOptions) String() string {
  54678. return awsutil.Prettify(s)
  54679. }
  54680. // GoString returns the string representation
  54681. func (s LaunchTemplateCpuOptions) GoString() string {
  54682. return s.String()
  54683. }
  54684. // SetCoreCount sets the CoreCount field's value.
  54685. func (s *LaunchTemplateCpuOptions) SetCoreCount(v int64) *LaunchTemplateCpuOptions {
  54686. s.CoreCount = &v
  54687. return s
  54688. }
  54689. // SetThreadsPerCore sets the ThreadsPerCore field's value.
  54690. func (s *LaunchTemplateCpuOptions) SetThreadsPerCore(v int64) *LaunchTemplateCpuOptions {
  54691. s.ThreadsPerCore = &v
  54692. return s
  54693. }
  54694. // The CPU options for the instance. Both the core count and threads per core
  54695. // must be specified in the request.
  54696. type LaunchTemplateCpuOptionsRequest struct {
  54697. _ struct{} `type:"structure"`
  54698. // The number of CPU cores for the instance.
  54699. CoreCount *int64 `type:"integer"`
  54700. // The number of threads per CPU core. To disable Intel Hyper-Threading Technology
  54701. // for the instance, specify a value of 1. Otherwise, specify the default value
  54702. // of 2.
  54703. ThreadsPerCore *int64 `type:"integer"`
  54704. }
  54705. // String returns the string representation
  54706. func (s LaunchTemplateCpuOptionsRequest) String() string {
  54707. return awsutil.Prettify(s)
  54708. }
  54709. // GoString returns the string representation
  54710. func (s LaunchTemplateCpuOptionsRequest) GoString() string {
  54711. return s.String()
  54712. }
  54713. // SetCoreCount sets the CoreCount field's value.
  54714. func (s *LaunchTemplateCpuOptionsRequest) SetCoreCount(v int64) *LaunchTemplateCpuOptionsRequest {
  54715. s.CoreCount = &v
  54716. return s
  54717. }
  54718. // SetThreadsPerCore sets the ThreadsPerCore field's value.
  54719. func (s *LaunchTemplateCpuOptionsRequest) SetThreadsPerCore(v int64) *LaunchTemplateCpuOptionsRequest {
  54720. s.ThreadsPerCore = &v
  54721. return s
  54722. }
  54723. // Describes a block device for an EBS volume.
  54724. type LaunchTemplateEbsBlockDevice struct {
  54725. _ struct{} `type:"structure"`
  54726. // Indicates whether the EBS volume is deleted on instance termination.
  54727. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  54728. // Indicates whether the EBS volume is encrypted.
  54729. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  54730. // The number of I/O operations per second (IOPS) that the volume supports.
  54731. Iops *int64 `locationName:"iops" type:"integer"`
  54732. // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
  54733. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  54734. // The ID of the snapshot.
  54735. SnapshotId *string `locationName:"snapshotId" type:"string"`
  54736. // The size of the volume, in GiB.
  54737. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  54738. // The volume type.
  54739. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  54740. }
  54741. // String returns the string representation
  54742. func (s LaunchTemplateEbsBlockDevice) String() string {
  54743. return awsutil.Prettify(s)
  54744. }
  54745. // GoString returns the string representation
  54746. func (s LaunchTemplateEbsBlockDevice) GoString() string {
  54747. return s.String()
  54748. }
  54749. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  54750. func (s *LaunchTemplateEbsBlockDevice) SetDeleteOnTermination(v bool) *LaunchTemplateEbsBlockDevice {
  54751. s.DeleteOnTermination = &v
  54752. return s
  54753. }
  54754. // SetEncrypted sets the Encrypted field's value.
  54755. func (s *LaunchTemplateEbsBlockDevice) SetEncrypted(v bool) *LaunchTemplateEbsBlockDevice {
  54756. s.Encrypted = &v
  54757. return s
  54758. }
  54759. // SetIops sets the Iops field's value.
  54760. func (s *LaunchTemplateEbsBlockDevice) SetIops(v int64) *LaunchTemplateEbsBlockDevice {
  54761. s.Iops = &v
  54762. return s
  54763. }
  54764. // SetKmsKeyId sets the KmsKeyId field's value.
  54765. func (s *LaunchTemplateEbsBlockDevice) SetKmsKeyId(v string) *LaunchTemplateEbsBlockDevice {
  54766. s.KmsKeyId = &v
  54767. return s
  54768. }
  54769. // SetSnapshotId sets the SnapshotId field's value.
  54770. func (s *LaunchTemplateEbsBlockDevice) SetSnapshotId(v string) *LaunchTemplateEbsBlockDevice {
  54771. s.SnapshotId = &v
  54772. return s
  54773. }
  54774. // SetVolumeSize sets the VolumeSize field's value.
  54775. func (s *LaunchTemplateEbsBlockDevice) SetVolumeSize(v int64) *LaunchTemplateEbsBlockDevice {
  54776. s.VolumeSize = &v
  54777. return s
  54778. }
  54779. // SetVolumeType sets the VolumeType field's value.
  54780. func (s *LaunchTemplateEbsBlockDevice) SetVolumeType(v string) *LaunchTemplateEbsBlockDevice {
  54781. s.VolumeType = &v
  54782. return s
  54783. }
  54784. // The parameters for a block device for an EBS volume.
  54785. type LaunchTemplateEbsBlockDeviceRequest struct {
  54786. _ struct{} `type:"structure"`
  54787. // Indicates whether the EBS volume is deleted on instance termination.
  54788. DeleteOnTermination *bool `type:"boolean"`
  54789. // Indicates whether the EBS volume is encrypted. Encrypted volumes can only
  54790. // be attached to instances that support Amazon EBS encryption. If you are creating
  54791. // a volume from a snapshot, you can't specify an encryption value.
  54792. Encrypted *bool `type:"boolean"`
  54793. // The number of I/O operations per second (IOPS) that the volume supports.
  54794. // For io1, this represents the number of IOPS that are provisioned for the
  54795. // volume. For gp2, this represents the baseline performance of the volume and
  54796. // the rate at which the volume accumulates I/O credits for bursting. For more
  54797. // information about General Purpose SSD baseline performance, I/O credits,
  54798. // and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud
  54799. // User Guide.
  54800. //
  54801. // Condition: This parameter is required for requests to create io1 volumes;
  54802. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  54803. Iops *int64 `type:"integer"`
  54804. // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
  54805. KmsKeyId *string `type:"string"`
  54806. // The ID of the snapshot.
  54807. SnapshotId *string `type:"string"`
  54808. // The size of the volume, in GiB.
  54809. //
  54810. // Default: If you're creating the volume from a snapshot and don't specify
  54811. // a volume size, the default is the snapshot size.
  54812. VolumeSize *int64 `type:"integer"`
  54813. // The volume type.
  54814. VolumeType *string `type:"string" enum:"VolumeType"`
  54815. }
  54816. // String returns the string representation
  54817. func (s LaunchTemplateEbsBlockDeviceRequest) String() string {
  54818. return awsutil.Prettify(s)
  54819. }
  54820. // GoString returns the string representation
  54821. func (s LaunchTemplateEbsBlockDeviceRequest) GoString() string {
  54822. return s.String()
  54823. }
  54824. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  54825. func (s *LaunchTemplateEbsBlockDeviceRequest) SetDeleteOnTermination(v bool) *LaunchTemplateEbsBlockDeviceRequest {
  54826. s.DeleteOnTermination = &v
  54827. return s
  54828. }
  54829. // SetEncrypted sets the Encrypted field's value.
  54830. func (s *LaunchTemplateEbsBlockDeviceRequest) SetEncrypted(v bool) *LaunchTemplateEbsBlockDeviceRequest {
  54831. s.Encrypted = &v
  54832. return s
  54833. }
  54834. // SetIops sets the Iops field's value.
  54835. func (s *LaunchTemplateEbsBlockDeviceRequest) SetIops(v int64) *LaunchTemplateEbsBlockDeviceRequest {
  54836. s.Iops = &v
  54837. return s
  54838. }
  54839. // SetKmsKeyId sets the KmsKeyId field's value.
  54840. func (s *LaunchTemplateEbsBlockDeviceRequest) SetKmsKeyId(v string) *LaunchTemplateEbsBlockDeviceRequest {
  54841. s.KmsKeyId = &v
  54842. return s
  54843. }
  54844. // SetSnapshotId sets the SnapshotId field's value.
  54845. func (s *LaunchTemplateEbsBlockDeviceRequest) SetSnapshotId(v string) *LaunchTemplateEbsBlockDeviceRequest {
  54846. s.SnapshotId = &v
  54847. return s
  54848. }
  54849. // SetVolumeSize sets the VolumeSize field's value.
  54850. func (s *LaunchTemplateEbsBlockDeviceRequest) SetVolumeSize(v int64) *LaunchTemplateEbsBlockDeviceRequest {
  54851. s.VolumeSize = &v
  54852. return s
  54853. }
  54854. // SetVolumeType sets the VolumeType field's value.
  54855. func (s *LaunchTemplateEbsBlockDeviceRequest) SetVolumeType(v string) *LaunchTemplateEbsBlockDeviceRequest {
  54856. s.VolumeType = &v
  54857. return s
  54858. }
  54859. // Describes an elastic inference accelerator.
  54860. type LaunchTemplateElasticInferenceAccelerator struct {
  54861. _ struct{} `type:"structure"`
  54862. // The type of elastic inference accelerator. The possible values are eia1.medium,
  54863. // eia1.large, and eia1.xlarge.
  54864. //
  54865. // Type is a required field
  54866. Type *string `type:"string" required:"true"`
  54867. }
  54868. // String returns the string representation
  54869. func (s LaunchTemplateElasticInferenceAccelerator) String() string {
  54870. return awsutil.Prettify(s)
  54871. }
  54872. // GoString returns the string representation
  54873. func (s LaunchTemplateElasticInferenceAccelerator) GoString() string {
  54874. return s.String()
  54875. }
  54876. // Validate inspects the fields of the type to determine if they are valid.
  54877. func (s *LaunchTemplateElasticInferenceAccelerator) Validate() error {
  54878. invalidParams := request.ErrInvalidParams{Context: "LaunchTemplateElasticInferenceAccelerator"}
  54879. if s.Type == nil {
  54880. invalidParams.Add(request.NewErrParamRequired("Type"))
  54881. }
  54882. if invalidParams.Len() > 0 {
  54883. return invalidParams
  54884. }
  54885. return nil
  54886. }
  54887. // SetType sets the Type field's value.
  54888. func (s *LaunchTemplateElasticInferenceAccelerator) SetType(v string) *LaunchTemplateElasticInferenceAccelerator {
  54889. s.Type = &v
  54890. return s
  54891. }
  54892. // Describes an elastic inference accelerator.
  54893. type LaunchTemplateElasticInferenceAcceleratorResponse struct {
  54894. _ struct{} `type:"structure"`
  54895. // The type of elastic inference accelerator. The possible values are eia1.medium,
  54896. // eia1.large, and eia1.xlarge.
  54897. Type *string `locationName:"type" type:"string"`
  54898. }
  54899. // String returns the string representation
  54900. func (s LaunchTemplateElasticInferenceAcceleratorResponse) String() string {
  54901. return awsutil.Prettify(s)
  54902. }
  54903. // GoString returns the string representation
  54904. func (s LaunchTemplateElasticInferenceAcceleratorResponse) GoString() string {
  54905. return s.String()
  54906. }
  54907. // SetType sets the Type field's value.
  54908. func (s *LaunchTemplateElasticInferenceAcceleratorResponse) SetType(v string) *LaunchTemplateElasticInferenceAcceleratorResponse {
  54909. s.Type = &v
  54910. return s
  54911. }
  54912. // Indicates whether an instance is configured for hibernation.
  54913. type LaunchTemplateHibernationOptions struct {
  54914. _ struct{} `type:"structure"`
  54915. // If this parameter is set to true, the instance is enabled for hibernation;
  54916. // otherwise, it is not enabled for hibernation.
  54917. Configured *bool `locationName:"configured" type:"boolean"`
  54918. }
  54919. // String returns the string representation
  54920. func (s LaunchTemplateHibernationOptions) String() string {
  54921. return awsutil.Prettify(s)
  54922. }
  54923. // GoString returns the string representation
  54924. func (s LaunchTemplateHibernationOptions) GoString() string {
  54925. return s.String()
  54926. }
  54927. // SetConfigured sets the Configured field's value.
  54928. func (s *LaunchTemplateHibernationOptions) SetConfigured(v bool) *LaunchTemplateHibernationOptions {
  54929. s.Configured = &v
  54930. return s
  54931. }
  54932. // Indicates whether the instance is configured for hibernation. This parameter
  54933. // is valid only if the instance meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites).
  54934. // Hibernation is currently supported only for Amazon Linux.
  54935. type LaunchTemplateHibernationOptionsRequest struct {
  54936. _ struct{} `type:"structure"`
  54937. // If you set this parameter to true, the instance is enabled for hibernation.
  54938. //
  54939. // Default: false
  54940. Configured *bool `type:"boolean"`
  54941. }
  54942. // String returns the string representation
  54943. func (s LaunchTemplateHibernationOptionsRequest) String() string {
  54944. return awsutil.Prettify(s)
  54945. }
  54946. // GoString returns the string representation
  54947. func (s LaunchTemplateHibernationOptionsRequest) GoString() string {
  54948. return s.String()
  54949. }
  54950. // SetConfigured sets the Configured field's value.
  54951. func (s *LaunchTemplateHibernationOptionsRequest) SetConfigured(v bool) *LaunchTemplateHibernationOptionsRequest {
  54952. s.Configured = &v
  54953. return s
  54954. }
  54955. // Describes an IAM instance profile.
  54956. type LaunchTemplateIamInstanceProfileSpecification struct {
  54957. _ struct{} `type:"structure"`
  54958. // The Amazon Resource Name (ARN) of the instance profile.
  54959. Arn *string `locationName:"arn" type:"string"`
  54960. // The name of the instance profile.
  54961. Name *string `locationName:"name" type:"string"`
  54962. }
  54963. // String returns the string representation
  54964. func (s LaunchTemplateIamInstanceProfileSpecification) String() string {
  54965. return awsutil.Prettify(s)
  54966. }
  54967. // GoString returns the string representation
  54968. func (s LaunchTemplateIamInstanceProfileSpecification) GoString() string {
  54969. return s.String()
  54970. }
  54971. // SetArn sets the Arn field's value.
  54972. func (s *LaunchTemplateIamInstanceProfileSpecification) SetArn(v string) *LaunchTemplateIamInstanceProfileSpecification {
  54973. s.Arn = &v
  54974. return s
  54975. }
  54976. // SetName sets the Name field's value.
  54977. func (s *LaunchTemplateIamInstanceProfileSpecification) SetName(v string) *LaunchTemplateIamInstanceProfileSpecification {
  54978. s.Name = &v
  54979. return s
  54980. }
  54981. // An IAM instance profile.
  54982. type LaunchTemplateIamInstanceProfileSpecificationRequest struct {
  54983. _ struct{} `type:"structure"`
  54984. // The Amazon Resource Name (ARN) of the instance profile.
  54985. Arn *string `type:"string"`
  54986. // The name of the instance profile.
  54987. Name *string `type:"string"`
  54988. }
  54989. // String returns the string representation
  54990. func (s LaunchTemplateIamInstanceProfileSpecificationRequest) String() string {
  54991. return awsutil.Prettify(s)
  54992. }
  54993. // GoString returns the string representation
  54994. func (s LaunchTemplateIamInstanceProfileSpecificationRequest) GoString() string {
  54995. return s.String()
  54996. }
  54997. // SetArn sets the Arn field's value.
  54998. func (s *LaunchTemplateIamInstanceProfileSpecificationRequest) SetArn(v string) *LaunchTemplateIamInstanceProfileSpecificationRequest {
  54999. s.Arn = &v
  55000. return s
  55001. }
  55002. // SetName sets the Name field's value.
  55003. func (s *LaunchTemplateIamInstanceProfileSpecificationRequest) SetName(v string) *LaunchTemplateIamInstanceProfileSpecificationRequest {
  55004. s.Name = &v
  55005. return s
  55006. }
  55007. // The market (purchasing) option for the instances.
  55008. type LaunchTemplateInstanceMarketOptions struct {
  55009. _ struct{} `type:"structure"`
  55010. // The market type.
  55011. MarketType *string `locationName:"marketType" type:"string" enum:"MarketType"`
  55012. // The options for Spot Instances.
  55013. SpotOptions *LaunchTemplateSpotMarketOptions `locationName:"spotOptions" type:"structure"`
  55014. }
  55015. // String returns the string representation
  55016. func (s LaunchTemplateInstanceMarketOptions) String() string {
  55017. return awsutil.Prettify(s)
  55018. }
  55019. // GoString returns the string representation
  55020. func (s LaunchTemplateInstanceMarketOptions) GoString() string {
  55021. return s.String()
  55022. }
  55023. // SetMarketType sets the MarketType field's value.
  55024. func (s *LaunchTemplateInstanceMarketOptions) SetMarketType(v string) *LaunchTemplateInstanceMarketOptions {
  55025. s.MarketType = &v
  55026. return s
  55027. }
  55028. // SetSpotOptions sets the SpotOptions field's value.
  55029. func (s *LaunchTemplateInstanceMarketOptions) SetSpotOptions(v *LaunchTemplateSpotMarketOptions) *LaunchTemplateInstanceMarketOptions {
  55030. s.SpotOptions = v
  55031. return s
  55032. }
  55033. // The market (purchasing) option for the instances.
  55034. type LaunchTemplateInstanceMarketOptionsRequest struct {
  55035. _ struct{} `type:"structure"`
  55036. // The market type.
  55037. MarketType *string `type:"string" enum:"MarketType"`
  55038. // The options for Spot Instances.
  55039. SpotOptions *LaunchTemplateSpotMarketOptionsRequest `type:"structure"`
  55040. }
  55041. // String returns the string representation
  55042. func (s LaunchTemplateInstanceMarketOptionsRequest) String() string {
  55043. return awsutil.Prettify(s)
  55044. }
  55045. // GoString returns the string representation
  55046. func (s LaunchTemplateInstanceMarketOptionsRequest) GoString() string {
  55047. return s.String()
  55048. }
  55049. // SetMarketType sets the MarketType field's value.
  55050. func (s *LaunchTemplateInstanceMarketOptionsRequest) SetMarketType(v string) *LaunchTemplateInstanceMarketOptionsRequest {
  55051. s.MarketType = &v
  55052. return s
  55053. }
  55054. // SetSpotOptions sets the SpotOptions field's value.
  55055. func (s *LaunchTemplateInstanceMarketOptionsRequest) SetSpotOptions(v *LaunchTemplateSpotMarketOptionsRequest) *LaunchTemplateInstanceMarketOptionsRequest {
  55056. s.SpotOptions = v
  55057. return s
  55058. }
  55059. // Describes a network interface.
  55060. type LaunchTemplateInstanceNetworkInterfaceSpecification struct {
  55061. _ struct{} `type:"structure"`
  55062. // Indicates whether to associate a public IPv4 address with eth0 for a new
  55063. // network interface.
  55064. AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`
  55065. // Indicates whether the network interface is deleted when the instance is terminated.
  55066. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  55067. // A description for the network interface.
  55068. Description *string `locationName:"description" type:"string"`
  55069. // The device index for the network interface attachment.
  55070. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  55071. // The IDs of one or more security groups.
  55072. Groups []*string `locationName:"groupSet" locationNameList:"groupId" type:"list"`
  55073. // The number of IPv6 addresses for the network interface.
  55074. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  55075. // The IPv6 addresses for the network interface.
  55076. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  55077. // The ID of the network interface.
  55078. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  55079. // The primary private IPv4 address of the network interface.
  55080. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  55081. // One or more private IPv4 addresses.
  55082. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  55083. // The number of secondary private IPv4 addresses for the network interface.
  55084. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  55085. // The ID of the subnet for the network interface.
  55086. SubnetId *string `locationName:"subnetId" type:"string"`
  55087. }
  55088. // String returns the string representation
  55089. func (s LaunchTemplateInstanceNetworkInterfaceSpecification) String() string {
  55090. return awsutil.Prettify(s)
  55091. }
  55092. // GoString returns the string representation
  55093. func (s LaunchTemplateInstanceNetworkInterfaceSpecification) GoString() string {
  55094. return s.String()
  55095. }
  55096. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  55097. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetAssociatePublicIpAddress(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55098. s.AssociatePublicIpAddress = &v
  55099. return s
  55100. }
  55101. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  55102. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDeleteOnTermination(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55103. s.DeleteOnTermination = &v
  55104. return s
  55105. }
  55106. // SetDescription sets the Description field's value.
  55107. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDescription(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55108. s.Description = &v
  55109. return s
  55110. }
  55111. // SetDeviceIndex sets the DeviceIndex field's value.
  55112. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDeviceIndex(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55113. s.DeviceIndex = &v
  55114. return s
  55115. }
  55116. // SetGroups sets the Groups field's value.
  55117. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetGroups(v []*string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55118. s.Groups = v
  55119. return s
  55120. }
  55121. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  55122. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetIpv6AddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55123. s.Ipv6AddressCount = &v
  55124. return s
  55125. }
  55126. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  55127. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetIpv6Addresses(v []*InstanceIpv6Address) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55128. s.Ipv6Addresses = v
  55129. return s
  55130. }
  55131. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  55132. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetNetworkInterfaceId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55133. s.NetworkInterfaceId = &v
  55134. return s
  55135. }
  55136. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  55137. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetPrivateIpAddress(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55138. s.PrivateIpAddress = &v
  55139. return s
  55140. }
  55141. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  55142. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55143. s.PrivateIpAddresses = v
  55144. return s
  55145. }
  55146. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  55147. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetSecondaryPrivateIpAddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55148. s.SecondaryPrivateIpAddressCount = &v
  55149. return s
  55150. }
  55151. // SetSubnetId sets the SubnetId field's value.
  55152. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetSubnetId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55153. s.SubnetId = &v
  55154. return s
  55155. }
  55156. // The parameters for a network interface.
  55157. type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct {
  55158. _ struct{} `type:"structure"`
  55159. // Associates a public IPv4 address with eth0 for a new network interface.
  55160. AssociatePublicIpAddress *bool `type:"boolean"`
  55161. // Indicates whether the network interface is deleted when the instance is terminated.
  55162. DeleteOnTermination *bool `type:"boolean"`
  55163. // A description for the network interface.
  55164. Description *string `type:"string"`
  55165. // The device index for the network interface attachment.
  55166. DeviceIndex *int64 `type:"integer"`
  55167. // The IDs of one or more security groups.
  55168. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  55169. // The number of IPv6 addresses to assign to a network interface. Amazon EC2
  55170. // automatically selects the IPv6 addresses from the subnet range. You can't
  55171. // use this option if specifying specific IPv6 addresses.
  55172. Ipv6AddressCount *int64 `type:"integer"`
  55173. // One or more specific IPv6 addresses from the IPv6 CIDR block range of your
  55174. // subnet. You can't use this option if you're specifying a number of IPv6 addresses.
  55175. Ipv6Addresses []*InstanceIpv6AddressRequest `locationNameList:"InstanceIpv6Address" type:"list"`
  55176. // The ID of the network interface.
  55177. NetworkInterfaceId *string `type:"string"`
  55178. // The primary private IPv4 address of the network interface.
  55179. PrivateIpAddress *string `type:"string"`
  55180. // One or more private IPv4 addresses.
  55181. PrivateIpAddresses []*PrivateIpAddressSpecification `locationNameList:"item" type:"list"`
  55182. // The number of secondary private IPv4 addresses to assign to a network interface.
  55183. SecondaryPrivateIpAddressCount *int64 `type:"integer"`
  55184. // The ID of the subnet for the network interface.
  55185. SubnetId *string `type:"string"`
  55186. }
  55187. // String returns the string representation
  55188. func (s LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) String() string {
  55189. return awsutil.Prettify(s)
  55190. }
  55191. // GoString returns the string representation
  55192. func (s LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) GoString() string {
  55193. return s.String()
  55194. }
  55195. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  55196. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetAssociatePublicIpAddress(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55197. s.AssociatePublicIpAddress = &v
  55198. return s
  55199. }
  55200. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  55201. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDeleteOnTermination(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55202. s.DeleteOnTermination = &v
  55203. return s
  55204. }
  55205. // SetDescription sets the Description field's value.
  55206. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDescription(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55207. s.Description = &v
  55208. return s
  55209. }
  55210. // SetDeviceIndex sets the DeviceIndex field's value.
  55211. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDeviceIndex(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55212. s.DeviceIndex = &v
  55213. return s
  55214. }
  55215. // SetGroups sets the Groups field's value.
  55216. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetGroups(v []*string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55217. s.Groups = v
  55218. return s
  55219. }
  55220. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  55221. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetIpv6AddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55222. s.Ipv6AddressCount = &v
  55223. return s
  55224. }
  55225. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  55226. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetIpv6Addresses(v []*InstanceIpv6AddressRequest) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55227. s.Ipv6Addresses = v
  55228. return s
  55229. }
  55230. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  55231. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetNetworkInterfaceId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55232. s.NetworkInterfaceId = &v
  55233. return s
  55234. }
  55235. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  55236. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetPrivateIpAddress(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55237. s.PrivateIpAddress = &v
  55238. return s
  55239. }
  55240. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  55241. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55242. s.PrivateIpAddresses = v
  55243. return s
  55244. }
  55245. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  55246. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetSecondaryPrivateIpAddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55247. s.SecondaryPrivateIpAddressCount = &v
  55248. return s
  55249. }
  55250. // SetSubnetId sets the SubnetId field's value.
  55251. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetSubnetId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55252. s.SubnetId = &v
  55253. return s
  55254. }
  55255. // Describes a license configuration.
  55256. type LaunchTemplateLicenseConfiguration struct {
  55257. _ struct{} `type:"structure"`
  55258. // The Amazon Resource Name (ARN) of the license configuration.
  55259. LicenseConfigurationArn *string `locationName:"licenseConfigurationArn" type:"string"`
  55260. }
  55261. // String returns the string representation
  55262. func (s LaunchTemplateLicenseConfiguration) String() string {
  55263. return awsutil.Prettify(s)
  55264. }
  55265. // GoString returns the string representation
  55266. func (s LaunchTemplateLicenseConfiguration) GoString() string {
  55267. return s.String()
  55268. }
  55269. // SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.
  55270. func (s *LaunchTemplateLicenseConfiguration) SetLicenseConfigurationArn(v string) *LaunchTemplateLicenseConfiguration {
  55271. s.LicenseConfigurationArn = &v
  55272. return s
  55273. }
  55274. // Describes a license configuration.
  55275. type LaunchTemplateLicenseConfigurationRequest struct {
  55276. _ struct{} `type:"structure"`
  55277. // The Amazon Resource Name (ARN) of the license configuration.
  55278. LicenseConfigurationArn *string `type:"string"`
  55279. }
  55280. // String returns the string representation
  55281. func (s LaunchTemplateLicenseConfigurationRequest) String() string {
  55282. return awsutil.Prettify(s)
  55283. }
  55284. // GoString returns the string representation
  55285. func (s LaunchTemplateLicenseConfigurationRequest) GoString() string {
  55286. return s.String()
  55287. }
  55288. // SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.
  55289. func (s *LaunchTemplateLicenseConfigurationRequest) SetLicenseConfigurationArn(v string) *LaunchTemplateLicenseConfigurationRequest {
  55290. s.LicenseConfigurationArn = &v
  55291. return s
  55292. }
  55293. // Describes overrides for a launch template.
  55294. type LaunchTemplateOverrides struct {
  55295. _ struct{} `type:"structure"`
  55296. // The Availability Zone in which to launch the instances.
  55297. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  55298. // The instance type.
  55299. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  55300. // The priority for the launch template override. If OnDemandAllocationStrategy
  55301. // is set to prioritized, Spot Fleet uses priority to determine which launch
  55302. // template override to use first in fulfilling On-Demand capacity. The highest
  55303. // priority is launched first. Valid values are whole numbers starting at 0.
  55304. // The lower the number, the higher the priority. If no number is set, the launch
  55305. // template override has the lowest priority.
  55306. Priority *float64 `locationName:"priority" type:"double"`
  55307. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  55308. SpotPrice *string `locationName:"spotPrice" type:"string"`
  55309. // The ID of the subnet in which to launch the instances.
  55310. SubnetId *string `locationName:"subnetId" type:"string"`
  55311. // The number of units provided by the specified instance type.
  55312. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
  55313. }
  55314. // String returns the string representation
  55315. func (s LaunchTemplateOverrides) String() string {
  55316. return awsutil.Prettify(s)
  55317. }
  55318. // GoString returns the string representation
  55319. func (s LaunchTemplateOverrides) GoString() string {
  55320. return s.String()
  55321. }
  55322. // SetAvailabilityZone sets the AvailabilityZone field's value.
  55323. func (s *LaunchTemplateOverrides) SetAvailabilityZone(v string) *LaunchTemplateOverrides {
  55324. s.AvailabilityZone = &v
  55325. return s
  55326. }
  55327. // SetInstanceType sets the InstanceType field's value.
  55328. func (s *LaunchTemplateOverrides) SetInstanceType(v string) *LaunchTemplateOverrides {
  55329. s.InstanceType = &v
  55330. return s
  55331. }
  55332. // SetPriority sets the Priority field's value.
  55333. func (s *LaunchTemplateOverrides) SetPriority(v float64) *LaunchTemplateOverrides {
  55334. s.Priority = &v
  55335. return s
  55336. }
  55337. // SetSpotPrice sets the SpotPrice field's value.
  55338. func (s *LaunchTemplateOverrides) SetSpotPrice(v string) *LaunchTemplateOverrides {
  55339. s.SpotPrice = &v
  55340. return s
  55341. }
  55342. // SetSubnetId sets the SubnetId field's value.
  55343. func (s *LaunchTemplateOverrides) SetSubnetId(v string) *LaunchTemplateOverrides {
  55344. s.SubnetId = &v
  55345. return s
  55346. }
  55347. // SetWeightedCapacity sets the WeightedCapacity field's value.
  55348. func (s *LaunchTemplateOverrides) SetWeightedCapacity(v float64) *LaunchTemplateOverrides {
  55349. s.WeightedCapacity = &v
  55350. return s
  55351. }
  55352. // Describes the placement of an instance.
  55353. type LaunchTemplatePlacement struct {
  55354. _ struct{} `type:"structure"`
  55355. // The affinity setting for the instance on the Dedicated Host.
  55356. Affinity *string `locationName:"affinity" type:"string"`
  55357. // The Availability Zone of the instance.
  55358. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  55359. // The name of the placement group for the instance.
  55360. GroupName *string `locationName:"groupName" type:"string"`
  55361. // The ID of the Dedicated Host for the instance.
  55362. HostId *string `locationName:"hostId" type:"string"`
  55363. // Reserved for future use.
  55364. SpreadDomain *string `locationName:"spreadDomain" type:"string"`
  55365. // The tenancy of the instance (if the instance is running in a VPC). An instance
  55366. // with a tenancy of dedicated runs on single-tenant hardware.
  55367. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  55368. }
  55369. // String returns the string representation
  55370. func (s LaunchTemplatePlacement) String() string {
  55371. return awsutil.Prettify(s)
  55372. }
  55373. // GoString returns the string representation
  55374. func (s LaunchTemplatePlacement) GoString() string {
  55375. return s.String()
  55376. }
  55377. // SetAffinity sets the Affinity field's value.
  55378. func (s *LaunchTemplatePlacement) SetAffinity(v string) *LaunchTemplatePlacement {
  55379. s.Affinity = &v
  55380. return s
  55381. }
  55382. // SetAvailabilityZone sets the AvailabilityZone field's value.
  55383. func (s *LaunchTemplatePlacement) SetAvailabilityZone(v string) *LaunchTemplatePlacement {
  55384. s.AvailabilityZone = &v
  55385. return s
  55386. }
  55387. // SetGroupName sets the GroupName field's value.
  55388. func (s *LaunchTemplatePlacement) SetGroupName(v string) *LaunchTemplatePlacement {
  55389. s.GroupName = &v
  55390. return s
  55391. }
  55392. // SetHostId sets the HostId field's value.
  55393. func (s *LaunchTemplatePlacement) SetHostId(v string) *LaunchTemplatePlacement {
  55394. s.HostId = &v
  55395. return s
  55396. }
  55397. // SetSpreadDomain sets the SpreadDomain field's value.
  55398. func (s *LaunchTemplatePlacement) SetSpreadDomain(v string) *LaunchTemplatePlacement {
  55399. s.SpreadDomain = &v
  55400. return s
  55401. }
  55402. // SetTenancy sets the Tenancy field's value.
  55403. func (s *LaunchTemplatePlacement) SetTenancy(v string) *LaunchTemplatePlacement {
  55404. s.Tenancy = &v
  55405. return s
  55406. }
  55407. // Describes the placement of an instance.
  55408. type LaunchTemplatePlacementRequest struct {
  55409. _ struct{} `type:"structure"`
  55410. // The affinity setting for an instance on a Dedicated Host.
  55411. Affinity *string `type:"string"`
  55412. // The Availability Zone for the instance.
  55413. AvailabilityZone *string `type:"string"`
  55414. // The name of the placement group for the instance.
  55415. GroupName *string `type:"string"`
  55416. // The ID of the Dedicated Host for the instance.
  55417. HostId *string `type:"string"`
  55418. // Reserved for future use.
  55419. SpreadDomain *string `type:"string"`
  55420. // The tenancy of the instance (if the instance is running in a VPC). An instance
  55421. // with a tenancy of dedicated runs on single-tenant hardware.
  55422. Tenancy *string `type:"string" enum:"Tenancy"`
  55423. }
  55424. // String returns the string representation
  55425. func (s LaunchTemplatePlacementRequest) String() string {
  55426. return awsutil.Prettify(s)
  55427. }
  55428. // GoString returns the string representation
  55429. func (s LaunchTemplatePlacementRequest) GoString() string {
  55430. return s.String()
  55431. }
  55432. // SetAffinity sets the Affinity field's value.
  55433. func (s *LaunchTemplatePlacementRequest) SetAffinity(v string) *LaunchTemplatePlacementRequest {
  55434. s.Affinity = &v
  55435. return s
  55436. }
  55437. // SetAvailabilityZone sets the AvailabilityZone field's value.
  55438. func (s *LaunchTemplatePlacementRequest) SetAvailabilityZone(v string) *LaunchTemplatePlacementRequest {
  55439. s.AvailabilityZone = &v
  55440. return s
  55441. }
  55442. // SetGroupName sets the GroupName field's value.
  55443. func (s *LaunchTemplatePlacementRequest) SetGroupName(v string) *LaunchTemplatePlacementRequest {
  55444. s.GroupName = &v
  55445. return s
  55446. }
  55447. // SetHostId sets the HostId field's value.
  55448. func (s *LaunchTemplatePlacementRequest) SetHostId(v string) *LaunchTemplatePlacementRequest {
  55449. s.HostId = &v
  55450. return s
  55451. }
  55452. // SetSpreadDomain sets the SpreadDomain field's value.
  55453. func (s *LaunchTemplatePlacementRequest) SetSpreadDomain(v string) *LaunchTemplatePlacementRequest {
  55454. s.SpreadDomain = &v
  55455. return s
  55456. }
  55457. // SetTenancy sets the Tenancy field's value.
  55458. func (s *LaunchTemplatePlacementRequest) SetTenancy(v string) *LaunchTemplatePlacementRequest {
  55459. s.Tenancy = &v
  55460. return s
  55461. }
  55462. // The launch template to use. You must specify either the launch template ID
  55463. // or launch template name in the request, but not both.
  55464. type LaunchTemplateSpecification struct {
  55465. _ struct{} `type:"structure"`
  55466. // The ID of the launch template.
  55467. LaunchTemplateId *string `type:"string"`
  55468. // The name of the launch template.
  55469. LaunchTemplateName *string `type:"string"`
  55470. // The version number of the launch template.
  55471. //
  55472. // Default: The default version for the launch template.
  55473. Version *string `type:"string"`
  55474. }
  55475. // String returns the string representation
  55476. func (s LaunchTemplateSpecification) String() string {
  55477. return awsutil.Prettify(s)
  55478. }
  55479. // GoString returns the string representation
  55480. func (s LaunchTemplateSpecification) GoString() string {
  55481. return s.String()
  55482. }
  55483. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  55484. func (s *LaunchTemplateSpecification) SetLaunchTemplateId(v string) *LaunchTemplateSpecification {
  55485. s.LaunchTemplateId = &v
  55486. return s
  55487. }
  55488. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  55489. func (s *LaunchTemplateSpecification) SetLaunchTemplateName(v string) *LaunchTemplateSpecification {
  55490. s.LaunchTemplateName = &v
  55491. return s
  55492. }
  55493. // SetVersion sets the Version field's value.
  55494. func (s *LaunchTemplateSpecification) SetVersion(v string) *LaunchTemplateSpecification {
  55495. s.Version = &v
  55496. return s
  55497. }
  55498. // The options for Spot Instances.
  55499. type LaunchTemplateSpotMarketOptions struct {
  55500. _ struct{} `type:"structure"`
  55501. // The required duration for the Spot Instances (also known as Spot blocks),
  55502. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  55503. // or 360).
  55504. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  55505. // The behavior when a Spot Instance is interrupted.
  55506. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"`
  55507. // The maximum hourly price you're willing to pay for the Spot Instances.
  55508. MaxPrice *string `locationName:"maxPrice" type:"string"`
  55509. // The Spot Instance request type.
  55510. SpotInstanceType *string `locationName:"spotInstanceType" type:"string" enum:"SpotInstanceType"`
  55511. // The end date of the request. For a one-time request, the request remains
  55512. // active until all instances launch, the request is canceled, or this date
  55513. // is reached. If the request is persistent, it remains active until it is canceled
  55514. // or this date and time is reached.
  55515. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
  55516. }
  55517. // String returns the string representation
  55518. func (s LaunchTemplateSpotMarketOptions) String() string {
  55519. return awsutil.Prettify(s)
  55520. }
  55521. // GoString returns the string representation
  55522. func (s LaunchTemplateSpotMarketOptions) GoString() string {
  55523. return s.String()
  55524. }
  55525. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  55526. func (s *LaunchTemplateSpotMarketOptions) SetBlockDurationMinutes(v int64) *LaunchTemplateSpotMarketOptions {
  55527. s.BlockDurationMinutes = &v
  55528. return s
  55529. }
  55530. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  55531. func (s *LaunchTemplateSpotMarketOptions) SetInstanceInterruptionBehavior(v string) *LaunchTemplateSpotMarketOptions {
  55532. s.InstanceInterruptionBehavior = &v
  55533. return s
  55534. }
  55535. // SetMaxPrice sets the MaxPrice field's value.
  55536. func (s *LaunchTemplateSpotMarketOptions) SetMaxPrice(v string) *LaunchTemplateSpotMarketOptions {
  55537. s.MaxPrice = &v
  55538. return s
  55539. }
  55540. // SetSpotInstanceType sets the SpotInstanceType field's value.
  55541. func (s *LaunchTemplateSpotMarketOptions) SetSpotInstanceType(v string) *LaunchTemplateSpotMarketOptions {
  55542. s.SpotInstanceType = &v
  55543. return s
  55544. }
  55545. // SetValidUntil sets the ValidUntil field's value.
  55546. func (s *LaunchTemplateSpotMarketOptions) SetValidUntil(v time.Time) *LaunchTemplateSpotMarketOptions {
  55547. s.ValidUntil = &v
  55548. return s
  55549. }
  55550. // The options for Spot Instances.
  55551. type LaunchTemplateSpotMarketOptionsRequest struct {
  55552. _ struct{} `type:"structure"`
  55553. // The required duration for the Spot Instances (also known as Spot blocks),
  55554. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  55555. // or 360).
  55556. BlockDurationMinutes *int64 `type:"integer"`
  55557. // The behavior when a Spot Instance is interrupted. The default is terminate.
  55558. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"`
  55559. // The maximum hourly price you're willing to pay for the Spot Instances.
  55560. MaxPrice *string `type:"string"`
  55561. // The Spot Instance request type.
  55562. SpotInstanceType *string `type:"string" enum:"SpotInstanceType"`
  55563. // The end date of the request. For a one-time request, the request remains
  55564. // active until all instances launch, the request is canceled, or this date
  55565. // is reached. If the request is persistent, it remains active until it is canceled
  55566. // or this date and time is reached. The default end date is 7 days from the
  55567. // current date.
  55568. ValidUntil *time.Time `type:"timestamp"`
  55569. }
  55570. // String returns the string representation
  55571. func (s LaunchTemplateSpotMarketOptionsRequest) String() string {
  55572. return awsutil.Prettify(s)
  55573. }
  55574. // GoString returns the string representation
  55575. func (s LaunchTemplateSpotMarketOptionsRequest) GoString() string {
  55576. return s.String()
  55577. }
  55578. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  55579. func (s *LaunchTemplateSpotMarketOptionsRequest) SetBlockDurationMinutes(v int64) *LaunchTemplateSpotMarketOptionsRequest {
  55580. s.BlockDurationMinutes = &v
  55581. return s
  55582. }
  55583. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  55584. func (s *LaunchTemplateSpotMarketOptionsRequest) SetInstanceInterruptionBehavior(v string) *LaunchTemplateSpotMarketOptionsRequest {
  55585. s.InstanceInterruptionBehavior = &v
  55586. return s
  55587. }
  55588. // SetMaxPrice sets the MaxPrice field's value.
  55589. func (s *LaunchTemplateSpotMarketOptionsRequest) SetMaxPrice(v string) *LaunchTemplateSpotMarketOptionsRequest {
  55590. s.MaxPrice = &v
  55591. return s
  55592. }
  55593. // SetSpotInstanceType sets the SpotInstanceType field's value.
  55594. func (s *LaunchTemplateSpotMarketOptionsRequest) SetSpotInstanceType(v string) *LaunchTemplateSpotMarketOptionsRequest {
  55595. s.SpotInstanceType = &v
  55596. return s
  55597. }
  55598. // SetValidUntil sets the ValidUntil field's value.
  55599. func (s *LaunchTemplateSpotMarketOptionsRequest) SetValidUntil(v time.Time) *LaunchTemplateSpotMarketOptionsRequest {
  55600. s.ValidUntil = &v
  55601. return s
  55602. }
  55603. // The tag specification for the launch template.
  55604. type LaunchTemplateTagSpecification struct {
  55605. _ struct{} `type:"structure"`
  55606. // The type of resource.
  55607. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  55608. // The tags for the resource.
  55609. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  55610. }
  55611. // String returns the string representation
  55612. func (s LaunchTemplateTagSpecification) String() string {
  55613. return awsutil.Prettify(s)
  55614. }
  55615. // GoString returns the string representation
  55616. func (s LaunchTemplateTagSpecification) GoString() string {
  55617. return s.String()
  55618. }
  55619. // SetResourceType sets the ResourceType field's value.
  55620. func (s *LaunchTemplateTagSpecification) SetResourceType(v string) *LaunchTemplateTagSpecification {
  55621. s.ResourceType = &v
  55622. return s
  55623. }
  55624. // SetTags sets the Tags field's value.
  55625. func (s *LaunchTemplateTagSpecification) SetTags(v []*Tag) *LaunchTemplateTagSpecification {
  55626. s.Tags = v
  55627. return s
  55628. }
  55629. // The tags specification for the launch template.
  55630. type LaunchTemplateTagSpecificationRequest struct {
  55631. _ struct{} `type:"structure"`
  55632. // The type of resource to tag. Currently, the resource types that support tagging
  55633. // on creation are instance and volume. To tag a resource after it has been
  55634. // created, see CreateTags.
  55635. ResourceType *string `type:"string" enum:"ResourceType"`
  55636. // The tags to apply to the resource.
  55637. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list"`
  55638. }
  55639. // String returns the string representation
  55640. func (s LaunchTemplateTagSpecificationRequest) String() string {
  55641. return awsutil.Prettify(s)
  55642. }
  55643. // GoString returns the string representation
  55644. func (s LaunchTemplateTagSpecificationRequest) GoString() string {
  55645. return s.String()
  55646. }
  55647. // SetResourceType sets the ResourceType field's value.
  55648. func (s *LaunchTemplateTagSpecificationRequest) SetResourceType(v string) *LaunchTemplateTagSpecificationRequest {
  55649. s.ResourceType = &v
  55650. return s
  55651. }
  55652. // SetTags sets the Tags field's value.
  55653. func (s *LaunchTemplateTagSpecificationRequest) SetTags(v []*Tag) *LaunchTemplateTagSpecificationRequest {
  55654. s.Tags = v
  55655. return s
  55656. }
  55657. // Describes a launch template version.
  55658. type LaunchTemplateVersion struct {
  55659. _ struct{} `type:"structure"`
  55660. // The time the version was created.
  55661. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  55662. // The principal that created the version.
  55663. CreatedBy *string `locationName:"createdBy" type:"string"`
  55664. // Indicates whether the version is the default version.
  55665. DefaultVersion *bool `locationName:"defaultVersion" type:"boolean"`
  55666. // Information about the launch template.
  55667. LaunchTemplateData *ResponseLaunchTemplateData `locationName:"launchTemplateData" type:"structure"`
  55668. // The ID of the launch template.
  55669. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  55670. // The name of the launch template.
  55671. LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`
  55672. // The description for the version.
  55673. VersionDescription *string `locationName:"versionDescription" type:"string"`
  55674. // The version number.
  55675. VersionNumber *int64 `locationName:"versionNumber" type:"long"`
  55676. }
  55677. // String returns the string representation
  55678. func (s LaunchTemplateVersion) String() string {
  55679. return awsutil.Prettify(s)
  55680. }
  55681. // GoString returns the string representation
  55682. func (s LaunchTemplateVersion) GoString() string {
  55683. return s.String()
  55684. }
  55685. // SetCreateTime sets the CreateTime field's value.
  55686. func (s *LaunchTemplateVersion) SetCreateTime(v time.Time) *LaunchTemplateVersion {
  55687. s.CreateTime = &v
  55688. return s
  55689. }
  55690. // SetCreatedBy sets the CreatedBy field's value.
  55691. func (s *LaunchTemplateVersion) SetCreatedBy(v string) *LaunchTemplateVersion {
  55692. s.CreatedBy = &v
  55693. return s
  55694. }
  55695. // SetDefaultVersion sets the DefaultVersion field's value.
  55696. func (s *LaunchTemplateVersion) SetDefaultVersion(v bool) *LaunchTemplateVersion {
  55697. s.DefaultVersion = &v
  55698. return s
  55699. }
  55700. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  55701. func (s *LaunchTemplateVersion) SetLaunchTemplateData(v *ResponseLaunchTemplateData) *LaunchTemplateVersion {
  55702. s.LaunchTemplateData = v
  55703. return s
  55704. }
  55705. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  55706. func (s *LaunchTemplateVersion) SetLaunchTemplateId(v string) *LaunchTemplateVersion {
  55707. s.LaunchTemplateId = &v
  55708. return s
  55709. }
  55710. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  55711. func (s *LaunchTemplateVersion) SetLaunchTemplateName(v string) *LaunchTemplateVersion {
  55712. s.LaunchTemplateName = &v
  55713. return s
  55714. }
  55715. // SetVersionDescription sets the VersionDescription field's value.
  55716. func (s *LaunchTemplateVersion) SetVersionDescription(v string) *LaunchTemplateVersion {
  55717. s.VersionDescription = &v
  55718. return s
  55719. }
  55720. // SetVersionNumber sets the VersionNumber field's value.
  55721. func (s *LaunchTemplateVersion) SetVersionNumber(v int64) *LaunchTemplateVersion {
  55722. s.VersionNumber = &v
  55723. return s
  55724. }
  55725. // Describes the monitoring for the instance.
  55726. type LaunchTemplatesMonitoring struct {
  55727. _ struct{} `type:"structure"`
  55728. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  55729. // is enabled.
  55730. Enabled *bool `locationName:"enabled" type:"boolean"`
  55731. }
  55732. // String returns the string representation
  55733. func (s LaunchTemplatesMonitoring) String() string {
  55734. return awsutil.Prettify(s)
  55735. }
  55736. // GoString returns the string representation
  55737. func (s LaunchTemplatesMonitoring) GoString() string {
  55738. return s.String()
  55739. }
  55740. // SetEnabled sets the Enabled field's value.
  55741. func (s *LaunchTemplatesMonitoring) SetEnabled(v bool) *LaunchTemplatesMonitoring {
  55742. s.Enabled = &v
  55743. return s
  55744. }
  55745. // Describes the monitoring for the instance.
  55746. type LaunchTemplatesMonitoringRequest struct {
  55747. _ struct{} `type:"structure"`
  55748. // Specify true to enable detailed monitoring. Otherwise, basic monitoring is
  55749. // enabled.
  55750. Enabled *bool `type:"boolean"`
  55751. }
  55752. // String returns the string representation
  55753. func (s LaunchTemplatesMonitoringRequest) String() string {
  55754. return awsutil.Prettify(s)
  55755. }
  55756. // GoString returns the string representation
  55757. func (s LaunchTemplatesMonitoringRequest) GoString() string {
  55758. return s.String()
  55759. }
  55760. // SetEnabled sets the Enabled field's value.
  55761. func (s *LaunchTemplatesMonitoringRequest) SetEnabled(v bool) *LaunchTemplatesMonitoringRequest {
  55762. s.Enabled = &v
  55763. return s
  55764. }
  55765. // Describes a license configuration.
  55766. type LicenseConfiguration struct {
  55767. _ struct{} `type:"structure"`
  55768. // The Amazon Resource Name (ARN) of the license configuration.
  55769. LicenseConfigurationArn *string `locationName:"licenseConfigurationArn" type:"string"`
  55770. }
  55771. // String returns the string representation
  55772. func (s LicenseConfiguration) String() string {
  55773. return awsutil.Prettify(s)
  55774. }
  55775. // GoString returns the string representation
  55776. func (s LicenseConfiguration) GoString() string {
  55777. return s.String()
  55778. }
  55779. // SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.
  55780. func (s *LicenseConfiguration) SetLicenseConfigurationArn(v string) *LicenseConfiguration {
  55781. s.LicenseConfigurationArn = &v
  55782. return s
  55783. }
  55784. // Describes a license configuration.
  55785. type LicenseConfigurationRequest struct {
  55786. _ struct{} `type:"structure"`
  55787. // The Amazon Resource Name (ARN) of the license configuration.
  55788. LicenseConfigurationArn *string `type:"string"`
  55789. }
  55790. // String returns the string representation
  55791. func (s LicenseConfigurationRequest) String() string {
  55792. return awsutil.Prettify(s)
  55793. }
  55794. // GoString returns the string representation
  55795. func (s LicenseConfigurationRequest) GoString() string {
  55796. return s.String()
  55797. }
  55798. // SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.
  55799. func (s *LicenseConfigurationRequest) SetLicenseConfigurationArn(v string) *LicenseConfigurationRequest {
  55800. s.LicenseConfigurationArn = &v
  55801. return s
  55802. }
  55803. // Describes the Classic Load Balancers and target groups to attach to a Spot
  55804. // Fleet request.
  55805. type LoadBalancersConfig struct {
  55806. _ struct{} `type:"structure"`
  55807. // The Classic Load Balancers.
  55808. ClassicLoadBalancersConfig *ClassicLoadBalancersConfig `locationName:"classicLoadBalancersConfig" type:"structure"`
  55809. // The target groups.
  55810. TargetGroupsConfig *TargetGroupsConfig `locationName:"targetGroupsConfig" type:"structure"`
  55811. }
  55812. // String returns the string representation
  55813. func (s LoadBalancersConfig) String() string {
  55814. return awsutil.Prettify(s)
  55815. }
  55816. // GoString returns the string representation
  55817. func (s LoadBalancersConfig) GoString() string {
  55818. return s.String()
  55819. }
  55820. // Validate inspects the fields of the type to determine if they are valid.
  55821. func (s *LoadBalancersConfig) Validate() error {
  55822. invalidParams := request.ErrInvalidParams{Context: "LoadBalancersConfig"}
  55823. if s.ClassicLoadBalancersConfig != nil {
  55824. if err := s.ClassicLoadBalancersConfig.Validate(); err != nil {
  55825. invalidParams.AddNested("ClassicLoadBalancersConfig", err.(request.ErrInvalidParams))
  55826. }
  55827. }
  55828. if s.TargetGroupsConfig != nil {
  55829. if err := s.TargetGroupsConfig.Validate(); err != nil {
  55830. invalidParams.AddNested("TargetGroupsConfig", err.(request.ErrInvalidParams))
  55831. }
  55832. }
  55833. if invalidParams.Len() > 0 {
  55834. return invalidParams
  55835. }
  55836. return nil
  55837. }
  55838. // SetClassicLoadBalancersConfig sets the ClassicLoadBalancersConfig field's value.
  55839. func (s *LoadBalancersConfig) SetClassicLoadBalancersConfig(v *ClassicLoadBalancersConfig) *LoadBalancersConfig {
  55840. s.ClassicLoadBalancersConfig = v
  55841. return s
  55842. }
  55843. // SetTargetGroupsConfig sets the TargetGroupsConfig field's value.
  55844. func (s *LoadBalancersConfig) SetTargetGroupsConfig(v *TargetGroupsConfig) *LoadBalancersConfig {
  55845. s.TargetGroupsConfig = v
  55846. return s
  55847. }
  55848. // Describes a load permission.
  55849. type LoadPermission struct {
  55850. _ struct{} `type:"structure"`
  55851. // The name of the group.
  55852. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  55853. // The AWS account ID.
  55854. UserId *string `locationName:"userId" type:"string"`
  55855. }
  55856. // String returns the string representation
  55857. func (s LoadPermission) String() string {
  55858. return awsutil.Prettify(s)
  55859. }
  55860. // GoString returns the string representation
  55861. func (s LoadPermission) GoString() string {
  55862. return s.String()
  55863. }
  55864. // SetGroup sets the Group field's value.
  55865. func (s *LoadPermission) SetGroup(v string) *LoadPermission {
  55866. s.Group = &v
  55867. return s
  55868. }
  55869. // SetUserId sets the UserId field's value.
  55870. func (s *LoadPermission) SetUserId(v string) *LoadPermission {
  55871. s.UserId = &v
  55872. return s
  55873. }
  55874. // Describes modifications to the load permissions of an Amazon FPGA image (AFI).
  55875. type LoadPermissionModifications struct {
  55876. _ struct{} `type:"structure"`
  55877. // The load permissions to add.
  55878. Add []*LoadPermissionRequest `locationNameList:"item" type:"list"`
  55879. // The load permissions to remove.
  55880. Remove []*LoadPermissionRequest `locationNameList:"item" type:"list"`
  55881. }
  55882. // String returns the string representation
  55883. func (s LoadPermissionModifications) String() string {
  55884. return awsutil.Prettify(s)
  55885. }
  55886. // GoString returns the string representation
  55887. func (s LoadPermissionModifications) GoString() string {
  55888. return s.String()
  55889. }
  55890. // SetAdd sets the Add field's value.
  55891. func (s *LoadPermissionModifications) SetAdd(v []*LoadPermissionRequest) *LoadPermissionModifications {
  55892. s.Add = v
  55893. return s
  55894. }
  55895. // SetRemove sets the Remove field's value.
  55896. func (s *LoadPermissionModifications) SetRemove(v []*LoadPermissionRequest) *LoadPermissionModifications {
  55897. s.Remove = v
  55898. return s
  55899. }
  55900. // Describes a load permission.
  55901. type LoadPermissionRequest struct {
  55902. _ struct{} `type:"structure"`
  55903. // The name of the group.
  55904. Group *string `type:"string" enum:"PermissionGroup"`
  55905. // The AWS account ID.
  55906. UserId *string `type:"string"`
  55907. }
  55908. // String returns the string representation
  55909. func (s LoadPermissionRequest) String() string {
  55910. return awsutil.Prettify(s)
  55911. }
  55912. // GoString returns the string representation
  55913. func (s LoadPermissionRequest) GoString() string {
  55914. return s.String()
  55915. }
  55916. // SetGroup sets the Group field's value.
  55917. func (s *LoadPermissionRequest) SetGroup(v string) *LoadPermissionRequest {
  55918. s.Group = &v
  55919. return s
  55920. }
  55921. // SetUserId sets the UserId field's value.
  55922. func (s *LoadPermissionRequest) SetUserId(v string) *LoadPermissionRequest {
  55923. s.UserId = &v
  55924. return s
  55925. }
  55926. type ModifyCapacityReservationInput struct {
  55927. _ struct{} `type:"structure"`
  55928. // The ID of the Capacity Reservation.
  55929. //
  55930. // CapacityReservationId is a required field
  55931. CapacityReservationId *string `type:"string" required:"true"`
  55932. // Checks whether you have the required permissions for the action, without
  55933. // actually making the request, and provides an error response. If you have
  55934. // the required permissions, the error response is DryRunOperation. Otherwise,
  55935. // it is UnauthorizedOperation.
  55936. DryRun *bool `type:"boolean"`
  55937. // The date and time at which the Capacity Reservation expires. When a Capacity
  55938. // Reservation expires, the reserved capacity is released and you can no longer
  55939. // launch instances into it. The Capacity Reservation's state changes to expired
  55940. // when it reaches its end date and time.
  55941. //
  55942. // The Capacity Reservation is cancelled within an hour from the specified time.
  55943. // For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation
  55944. // is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
  55945. //
  55946. // You must provide an EndDate value if EndDateType is limited. Omit EndDate
  55947. // if EndDateType is unlimited.
  55948. EndDate *time.Time `type:"timestamp"`
  55949. // Indicates the way in which the Capacity Reservation ends. A Capacity Reservation
  55950. // can have one of the following end types:
  55951. //
  55952. // * unlimited - The Capacity Reservation remains active until you explicitly
  55953. // cancel it. Do not provide an EndDate value if EndDateType is unlimited.
  55954. //
  55955. // * limited - The Capacity Reservation expires automatically at a specified
  55956. // date and time. You must provide an EndDate value if EndDateType is limited.
  55957. EndDateType *string `type:"string" enum:"EndDateType"`
  55958. // The number of instances for which to reserve capacity.
  55959. InstanceCount *int64 `type:"integer"`
  55960. }
  55961. // String returns the string representation
  55962. func (s ModifyCapacityReservationInput) String() string {
  55963. return awsutil.Prettify(s)
  55964. }
  55965. // GoString returns the string representation
  55966. func (s ModifyCapacityReservationInput) GoString() string {
  55967. return s.String()
  55968. }
  55969. // Validate inspects the fields of the type to determine if they are valid.
  55970. func (s *ModifyCapacityReservationInput) Validate() error {
  55971. invalidParams := request.ErrInvalidParams{Context: "ModifyCapacityReservationInput"}
  55972. if s.CapacityReservationId == nil {
  55973. invalidParams.Add(request.NewErrParamRequired("CapacityReservationId"))
  55974. }
  55975. if invalidParams.Len() > 0 {
  55976. return invalidParams
  55977. }
  55978. return nil
  55979. }
  55980. // SetCapacityReservationId sets the CapacityReservationId field's value.
  55981. func (s *ModifyCapacityReservationInput) SetCapacityReservationId(v string) *ModifyCapacityReservationInput {
  55982. s.CapacityReservationId = &v
  55983. return s
  55984. }
  55985. // SetDryRun sets the DryRun field's value.
  55986. func (s *ModifyCapacityReservationInput) SetDryRun(v bool) *ModifyCapacityReservationInput {
  55987. s.DryRun = &v
  55988. return s
  55989. }
  55990. // SetEndDate sets the EndDate field's value.
  55991. func (s *ModifyCapacityReservationInput) SetEndDate(v time.Time) *ModifyCapacityReservationInput {
  55992. s.EndDate = &v
  55993. return s
  55994. }
  55995. // SetEndDateType sets the EndDateType field's value.
  55996. func (s *ModifyCapacityReservationInput) SetEndDateType(v string) *ModifyCapacityReservationInput {
  55997. s.EndDateType = &v
  55998. return s
  55999. }
  56000. // SetInstanceCount sets the InstanceCount field's value.
  56001. func (s *ModifyCapacityReservationInput) SetInstanceCount(v int64) *ModifyCapacityReservationInput {
  56002. s.InstanceCount = &v
  56003. return s
  56004. }
  56005. type ModifyCapacityReservationOutput struct {
  56006. _ struct{} `type:"structure"`
  56007. // Information about the Capacity Reservation.
  56008. Return *bool `locationName:"return" type:"boolean"`
  56009. }
  56010. // String returns the string representation
  56011. func (s ModifyCapacityReservationOutput) String() string {
  56012. return awsutil.Prettify(s)
  56013. }
  56014. // GoString returns the string representation
  56015. func (s ModifyCapacityReservationOutput) GoString() string {
  56016. return s.String()
  56017. }
  56018. // SetReturn sets the Return field's value.
  56019. func (s *ModifyCapacityReservationOutput) SetReturn(v bool) *ModifyCapacityReservationOutput {
  56020. s.Return = &v
  56021. return s
  56022. }
  56023. type ModifyClientVpnEndpointInput struct {
  56024. _ struct{} `type:"structure"`
  56025. // The ID of the Client VPN endpoint to modify.
  56026. //
  56027. // ClientVpnEndpointId is a required field
  56028. ClientVpnEndpointId *string `type:"string" required:"true"`
  56029. // Information about the client connection logging options.
  56030. //
  56031. // If you enable client connection logging, data about client connections is
  56032. // sent to a Cloudwatch Logs log stream. The following information is logged:
  56033. //
  56034. // * Client connection requests
  56035. //
  56036. // * Client connection results (successful and unsuccessful)
  56037. //
  56038. // * Reasons for unsuccessful client connection requests
  56039. //
  56040. // * Client connection termination time
  56041. ConnectionLogOptions *ConnectionLogOptions `type:"structure"`
  56042. // A brief description of the Client VPN endpoint.
  56043. Description *string `type:"string"`
  56044. // Information about the DNS servers to be used by Client VPN connections. A
  56045. // Client VPN endpoint can have up to two DNS servers.
  56046. DnsServers *DnsServersOptionsModifyStructure `type:"structure"`
  56047. // Checks whether you have the required permissions for the action, without
  56048. // actually making the request, and provides an error response. If you have
  56049. // the required permissions, the error response is DryRunOperation. Otherwise,
  56050. // it is UnauthorizedOperation.
  56051. DryRun *bool `type:"boolean"`
  56052. // The ARN of the server certificate to be used. The server certificate must
  56053. // be provisioned in AWS Certificate Manager (ACM).
  56054. ServerCertificateArn *string `type:"string"`
  56055. }
  56056. // String returns the string representation
  56057. func (s ModifyClientVpnEndpointInput) String() string {
  56058. return awsutil.Prettify(s)
  56059. }
  56060. // GoString returns the string representation
  56061. func (s ModifyClientVpnEndpointInput) GoString() string {
  56062. return s.String()
  56063. }
  56064. // Validate inspects the fields of the type to determine if they are valid.
  56065. func (s *ModifyClientVpnEndpointInput) Validate() error {
  56066. invalidParams := request.ErrInvalidParams{Context: "ModifyClientVpnEndpointInput"}
  56067. if s.ClientVpnEndpointId == nil {
  56068. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  56069. }
  56070. if invalidParams.Len() > 0 {
  56071. return invalidParams
  56072. }
  56073. return nil
  56074. }
  56075. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  56076. func (s *ModifyClientVpnEndpointInput) SetClientVpnEndpointId(v string) *ModifyClientVpnEndpointInput {
  56077. s.ClientVpnEndpointId = &v
  56078. return s
  56079. }
  56080. // SetConnectionLogOptions sets the ConnectionLogOptions field's value.
  56081. func (s *ModifyClientVpnEndpointInput) SetConnectionLogOptions(v *ConnectionLogOptions) *ModifyClientVpnEndpointInput {
  56082. s.ConnectionLogOptions = v
  56083. return s
  56084. }
  56085. // SetDescription sets the Description field's value.
  56086. func (s *ModifyClientVpnEndpointInput) SetDescription(v string) *ModifyClientVpnEndpointInput {
  56087. s.Description = &v
  56088. return s
  56089. }
  56090. // SetDnsServers sets the DnsServers field's value.
  56091. func (s *ModifyClientVpnEndpointInput) SetDnsServers(v *DnsServersOptionsModifyStructure) *ModifyClientVpnEndpointInput {
  56092. s.DnsServers = v
  56093. return s
  56094. }
  56095. // SetDryRun sets the DryRun field's value.
  56096. func (s *ModifyClientVpnEndpointInput) SetDryRun(v bool) *ModifyClientVpnEndpointInput {
  56097. s.DryRun = &v
  56098. return s
  56099. }
  56100. // SetServerCertificateArn sets the ServerCertificateArn field's value.
  56101. func (s *ModifyClientVpnEndpointInput) SetServerCertificateArn(v string) *ModifyClientVpnEndpointInput {
  56102. s.ServerCertificateArn = &v
  56103. return s
  56104. }
  56105. type ModifyClientVpnEndpointOutput struct {
  56106. _ struct{} `type:"structure"`
  56107. // Returns true if the request succeeds; otherwise, it returns an error.
  56108. Return *bool `locationName:"return" type:"boolean"`
  56109. }
  56110. // String returns the string representation
  56111. func (s ModifyClientVpnEndpointOutput) String() string {
  56112. return awsutil.Prettify(s)
  56113. }
  56114. // GoString returns the string representation
  56115. func (s ModifyClientVpnEndpointOutput) GoString() string {
  56116. return s.String()
  56117. }
  56118. // SetReturn sets the Return field's value.
  56119. func (s *ModifyClientVpnEndpointOutput) SetReturn(v bool) *ModifyClientVpnEndpointOutput {
  56120. s.Return = &v
  56121. return s
  56122. }
  56123. type ModifyFleetInput struct {
  56124. _ struct{} `type:"structure"`
  56125. // Checks whether you have the required permissions for the action, without
  56126. // actually making the request, and provides an error response. If you have
  56127. // the required permissions, the error response is DryRunOperation. Otherwise,
  56128. // it is UnauthorizedOperation.
  56129. DryRun *bool `type:"boolean"`
  56130. // Indicates whether running instances should be terminated if the total target
  56131. // capacity of the EC2 Fleet is decreased below the current size of the EC2
  56132. // Fleet.
  56133. ExcessCapacityTerminationPolicy *string `type:"string" enum:"FleetExcessCapacityTerminationPolicy"`
  56134. // The ID of the EC2 Fleet.
  56135. //
  56136. // FleetId is a required field
  56137. FleetId *string `type:"string" required:"true"`
  56138. // The size of the EC2 Fleet.
  56139. //
  56140. // TargetCapacitySpecification is a required field
  56141. TargetCapacitySpecification *TargetCapacitySpecificationRequest `type:"structure" required:"true"`
  56142. }
  56143. // String returns the string representation
  56144. func (s ModifyFleetInput) String() string {
  56145. return awsutil.Prettify(s)
  56146. }
  56147. // GoString returns the string representation
  56148. func (s ModifyFleetInput) GoString() string {
  56149. return s.String()
  56150. }
  56151. // Validate inspects the fields of the type to determine if they are valid.
  56152. func (s *ModifyFleetInput) Validate() error {
  56153. invalidParams := request.ErrInvalidParams{Context: "ModifyFleetInput"}
  56154. if s.FleetId == nil {
  56155. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  56156. }
  56157. if s.TargetCapacitySpecification == nil {
  56158. invalidParams.Add(request.NewErrParamRequired("TargetCapacitySpecification"))
  56159. }
  56160. if s.TargetCapacitySpecification != nil {
  56161. if err := s.TargetCapacitySpecification.Validate(); err != nil {
  56162. invalidParams.AddNested("TargetCapacitySpecification", err.(request.ErrInvalidParams))
  56163. }
  56164. }
  56165. if invalidParams.Len() > 0 {
  56166. return invalidParams
  56167. }
  56168. return nil
  56169. }
  56170. // SetDryRun sets the DryRun field's value.
  56171. func (s *ModifyFleetInput) SetDryRun(v bool) *ModifyFleetInput {
  56172. s.DryRun = &v
  56173. return s
  56174. }
  56175. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  56176. func (s *ModifyFleetInput) SetExcessCapacityTerminationPolicy(v string) *ModifyFleetInput {
  56177. s.ExcessCapacityTerminationPolicy = &v
  56178. return s
  56179. }
  56180. // SetFleetId sets the FleetId field's value.
  56181. func (s *ModifyFleetInput) SetFleetId(v string) *ModifyFleetInput {
  56182. s.FleetId = &v
  56183. return s
  56184. }
  56185. // SetTargetCapacitySpecification sets the TargetCapacitySpecification field's value.
  56186. func (s *ModifyFleetInput) SetTargetCapacitySpecification(v *TargetCapacitySpecificationRequest) *ModifyFleetInput {
  56187. s.TargetCapacitySpecification = v
  56188. return s
  56189. }
  56190. type ModifyFleetOutput struct {
  56191. _ struct{} `type:"structure"`
  56192. // Is true if the request succeeds, and an error otherwise.
  56193. Return *bool `locationName:"return" type:"boolean"`
  56194. }
  56195. // String returns the string representation
  56196. func (s ModifyFleetOutput) String() string {
  56197. return awsutil.Prettify(s)
  56198. }
  56199. // GoString returns the string representation
  56200. func (s ModifyFleetOutput) GoString() string {
  56201. return s.String()
  56202. }
  56203. // SetReturn sets the Return field's value.
  56204. func (s *ModifyFleetOutput) SetReturn(v bool) *ModifyFleetOutput {
  56205. s.Return = &v
  56206. return s
  56207. }
  56208. type ModifyFpgaImageAttributeInput struct {
  56209. _ struct{} `type:"structure"`
  56210. // The name of the attribute.
  56211. Attribute *string `type:"string" enum:"FpgaImageAttributeName"`
  56212. // A description for the AFI.
  56213. Description *string `type:"string"`
  56214. // Checks whether you have the required permissions for the action, without
  56215. // actually making the request, and provides an error response. If you have
  56216. // the required permissions, the error response is DryRunOperation. Otherwise,
  56217. // it is UnauthorizedOperation.
  56218. DryRun *bool `type:"boolean"`
  56219. // The ID of the AFI.
  56220. //
  56221. // FpgaImageId is a required field
  56222. FpgaImageId *string `type:"string" required:"true"`
  56223. // The load permission for the AFI.
  56224. LoadPermission *LoadPermissionModifications `type:"structure"`
  56225. // A name for the AFI.
  56226. Name *string `type:"string"`
  56227. // The operation type.
  56228. OperationType *string `type:"string" enum:"OperationType"`
  56229. // One or more product codes. After you add a product code to an AFI, it can't
  56230. // be removed. This parameter is valid only when modifying the productCodes
  56231. // attribute.
  56232. ProductCodes []*string `locationName:"ProductCode" locationNameList:"ProductCode" type:"list"`
  56233. // One or more user groups. This parameter is valid only when modifying the
  56234. // loadPermission attribute.
  56235. UserGroups []*string `locationName:"UserGroup" locationNameList:"UserGroup" type:"list"`
  56236. // One or more AWS account IDs. This parameter is valid only when modifying
  56237. // the loadPermission attribute.
  56238. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  56239. }
  56240. // String returns the string representation
  56241. func (s ModifyFpgaImageAttributeInput) String() string {
  56242. return awsutil.Prettify(s)
  56243. }
  56244. // GoString returns the string representation
  56245. func (s ModifyFpgaImageAttributeInput) GoString() string {
  56246. return s.String()
  56247. }
  56248. // Validate inspects the fields of the type to determine if they are valid.
  56249. func (s *ModifyFpgaImageAttributeInput) Validate() error {
  56250. invalidParams := request.ErrInvalidParams{Context: "ModifyFpgaImageAttributeInput"}
  56251. if s.FpgaImageId == nil {
  56252. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  56253. }
  56254. if invalidParams.Len() > 0 {
  56255. return invalidParams
  56256. }
  56257. return nil
  56258. }
  56259. // SetAttribute sets the Attribute field's value.
  56260. func (s *ModifyFpgaImageAttributeInput) SetAttribute(v string) *ModifyFpgaImageAttributeInput {
  56261. s.Attribute = &v
  56262. return s
  56263. }
  56264. // SetDescription sets the Description field's value.
  56265. func (s *ModifyFpgaImageAttributeInput) SetDescription(v string) *ModifyFpgaImageAttributeInput {
  56266. s.Description = &v
  56267. return s
  56268. }
  56269. // SetDryRun sets the DryRun field's value.
  56270. func (s *ModifyFpgaImageAttributeInput) SetDryRun(v bool) *ModifyFpgaImageAttributeInput {
  56271. s.DryRun = &v
  56272. return s
  56273. }
  56274. // SetFpgaImageId sets the FpgaImageId field's value.
  56275. func (s *ModifyFpgaImageAttributeInput) SetFpgaImageId(v string) *ModifyFpgaImageAttributeInput {
  56276. s.FpgaImageId = &v
  56277. return s
  56278. }
  56279. // SetLoadPermission sets the LoadPermission field's value.
  56280. func (s *ModifyFpgaImageAttributeInput) SetLoadPermission(v *LoadPermissionModifications) *ModifyFpgaImageAttributeInput {
  56281. s.LoadPermission = v
  56282. return s
  56283. }
  56284. // SetName sets the Name field's value.
  56285. func (s *ModifyFpgaImageAttributeInput) SetName(v string) *ModifyFpgaImageAttributeInput {
  56286. s.Name = &v
  56287. return s
  56288. }
  56289. // SetOperationType sets the OperationType field's value.
  56290. func (s *ModifyFpgaImageAttributeInput) SetOperationType(v string) *ModifyFpgaImageAttributeInput {
  56291. s.OperationType = &v
  56292. return s
  56293. }
  56294. // SetProductCodes sets the ProductCodes field's value.
  56295. func (s *ModifyFpgaImageAttributeInput) SetProductCodes(v []*string) *ModifyFpgaImageAttributeInput {
  56296. s.ProductCodes = v
  56297. return s
  56298. }
  56299. // SetUserGroups sets the UserGroups field's value.
  56300. func (s *ModifyFpgaImageAttributeInput) SetUserGroups(v []*string) *ModifyFpgaImageAttributeInput {
  56301. s.UserGroups = v
  56302. return s
  56303. }
  56304. // SetUserIds sets the UserIds field's value.
  56305. func (s *ModifyFpgaImageAttributeInput) SetUserIds(v []*string) *ModifyFpgaImageAttributeInput {
  56306. s.UserIds = v
  56307. return s
  56308. }
  56309. type ModifyFpgaImageAttributeOutput struct {
  56310. _ struct{} `type:"structure"`
  56311. // Information about the attribute.
  56312. FpgaImageAttribute *FpgaImageAttribute `locationName:"fpgaImageAttribute" type:"structure"`
  56313. }
  56314. // String returns the string representation
  56315. func (s ModifyFpgaImageAttributeOutput) String() string {
  56316. return awsutil.Prettify(s)
  56317. }
  56318. // GoString returns the string representation
  56319. func (s ModifyFpgaImageAttributeOutput) GoString() string {
  56320. return s.String()
  56321. }
  56322. // SetFpgaImageAttribute sets the FpgaImageAttribute field's value.
  56323. func (s *ModifyFpgaImageAttributeOutput) SetFpgaImageAttribute(v *FpgaImageAttribute) *ModifyFpgaImageAttributeOutput {
  56324. s.FpgaImageAttribute = v
  56325. return s
  56326. }
  56327. type ModifyHostsInput struct {
  56328. _ struct{} `type:"structure"`
  56329. // Specify whether to enable or disable auto-placement.
  56330. //
  56331. // AutoPlacement is a required field
  56332. AutoPlacement *string `locationName:"autoPlacement" type:"string" required:"true" enum:"AutoPlacement"`
  56333. // The IDs of the Dedicated Hosts to modify.
  56334. //
  56335. // HostIds is a required field
  56336. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`
  56337. }
  56338. // String returns the string representation
  56339. func (s ModifyHostsInput) String() string {
  56340. return awsutil.Prettify(s)
  56341. }
  56342. // GoString returns the string representation
  56343. func (s ModifyHostsInput) GoString() string {
  56344. return s.String()
  56345. }
  56346. // Validate inspects the fields of the type to determine if they are valid.
  56347. func (s *ModifyHostsInput) Validate() error {
  56348. invalidParams := request.ErrInvalidParams{Context: "ModifyHostsInput"}
  56349. if s.AutoPlacement == nil {
  56350. invalidParams.Add(request.NewErrParamRequired("AutoPlacement"))
  56351. }
  56352. if s.HostIds == nil {
  56353. invalidParams.Add(request.NewErrParamRequired("HostIds"))
  56354. }
  56355. if invalidParams.Len() > 0 {
  56356. return invalidParams
  56357. }
  56358. return nil
  56359. }
  56360. // SetAutoPlacement sets the AutoPlacement field's value.
  56361. func (s *ModifyHostsInput) SetAutoPlacement(v string) *ModifyHostsInput {
  56362. s.AutoPlacement = &v
  56363. return s
  56364. }
  56365. // SetHostIds sets the HostIds field's value.
  56366. func (s *ModifyHostsInput) SetHostIds(v []*string) *ModifyHostsInput {
  56367. s.HostIds = v
  56368. return s
  56369. }
  56370. type ModifyHostsOutput struct {
  56371. _ struct{} `type:"structure"`
  56372. // The IDs of the Dedicated Hosts that were successfully modified.
  56373. Successful []*string `locationName:"successful" locationNameList:"item" type:"list"`
  56374. // The IDs of the Dedicated Hosts that could not be modified. Check whether
  56375. // the setting you requested can be used.
  56376. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  56377. }
  56378. // String returns the string representation
  56379. func (s ModifyHostsOutput) String() string {
  56380. return awsutil.Prettify(s)
  56381. }
  56382. // GoString returns the string representation
  56383. func (s ModifyHostsOutput) GoString() string {
  56384. return s.String()
  56385. }
  56386. // SetSuccessful sets the Successful field's value.
  56387. func (s *ModifyHostsOutput) SetSuccessful(v []*string) *ModifyHostsOutput {
  56388. s.Successful = v
  56389. return s
  56390. }
  56391. // SetUnsuccessful sets the Unsuccessful field's value.
  56392. func (s *ModifyHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ModifyHostsOutput {
  56393. s.Unsuccessful = v
  56394. return s
  56395. }
  56396. type ModifyIdFormatInput struct {
  56397. _ struct{} `type:"structure"`
  56398. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  56399. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  56400. // | image | import-task | internet-gateway | network-acl | network-acl-association
  56401. // | network-interface | network-interface-attachment | prefix-list | route-table
  56402. // | route-table-association | security-group | subnet | subnet-cidr-block-association
  56403. // | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection
  56404. // | vpn-connection | vpn-gateway.
  56405. //
  56406. // Alternatively, use the all-current option to include all resource types that
  56407. // are currently within their opt-in period for longer IDs.
  56408. //
  56409. // Resource is a required field
  56410. Resource *string `type:"string" required:"true"`
  56411. // Indicate whether the resource should use longer IDs (17-character IDs).
  56412. //
  56413. // UseLongIds is a required field
  56414. UseLongIds *bool `type:"boolean" required:"true"`
  56415. }
  56416. // String returns the string representation
  56417. func (s ModifyIdFormatInput) String() string {
  56418. return awsutil.Prettify(s)
  56419. }
  56420. // GoString returns the string representation
  56421. func (s ModifyIdFormatInput) GoString() string {
  56422. return s.String()
  56423. }
  56424. // Validate inspects the fields of the type to determine if they are valid.
  56425. func (s *ModifyIdFormatInput) Validate() error {
  56426. invalidParams := request.ErrInvalidParams{Context: "ModifyIdFormatInput"}
  56427. if s.Resource == nil {
  56428. invalidParams.Add(request.NewErrParamRequired("Resource"))
  56429. }
  56430. if s.UseLongIds == nil {
  56431. invalidParams.Add(request.NewErrParamRequired("UseLongIds"))
  56432. }
  56433. if invalidParams.Len() > 0 {
  56434. return invalidParams
  56435. }
  56436. return nil
  56437. }
  56438. // SetResource sets the Resource field's value.
  56439. func (s *ModifyIdFormatInput) SetResource(v string) *ModifyIdFormatInput {
  56440. s.Resource = &v
  56441. return s
  56442. }
  56443. // SetUseLongIds sets the UseLongIds field's value.
  56444. func (s *ModifyIdFormatInput) SetUseLongIds(v bool) *ModifyIdFormatInput {
  56445. s.UseLongIds = &v
  56446. return s
  56447. }
  56448. type ModifyIdFormatOutput struct {
  56449. _ struct{} `type:"structure"`
  56450. }
  56451. // String returns the string representation
  56452. func (s ModifyIdFormatOutput) String() string {
  56453. return awsutil.Prettify(s)
  56454. }
  56455. // GoString returns the string representation
  56456. func (s ModifyIdFormatOutput) GoString() string {
  56457. return s.String()
  56458. }
  56459. type ModifyIdentityIdFormatInput struct {
  56460. _ struct{} `type:"structure"`
  56461. // The ARN of the principal, which can be an IAM user, IAM role, or the root
  56462. // user. Specify all to modify the ID format for all IAM users, IAM roles, and
  56463. // the root user of the account.
  56464. //
  56465. // PrincipalArn is a required field
  56466. PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
  56467. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  56468. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  56469. // | image | import-task | internet-gateway | network-acl | network-acl-association
  56470. // | network-interface | network-interface-attachment | prefix-list | route-table
  56471. // | route-table-association | security-group | subnet | subnet-cidr-block-association
  56472. // | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection
  56473. // | vpn-connection | vpn-gateway.
  56474. //
  56475. // Alternatively, use the all-current option to include all resource types that
  56476. // are currently within their opt-in period for longer IDs.
  56477. //
  56478. // Resource is a required field
  56479. Resource *string `locationName:"resource" type:"string" required:"true"`
  56480. // Indicates whether the resource should use longer IDs (17-character IDs)
  56481. //
  56482. // UseLongIds is a required field
  56483. UseLongIds *bool `locationName:"useLongIds" type:"boolean" required:"true"`
  56484. }
  56485. // String returns the string representation
  56486. func (s ModifyIdentityIdFormatInput) String() string {
  56487. return awsutil.Prettify(s)
  56488. }
  56489. // GoString returns the string representation
  56490. func (s ModifyIdentityIdFormatInput) GoString() string {
  56491. return s.String()
  56492. }
  56493. // Validate inspects the fields of the type to determine if they are valid.
  56494. func (s *ModifyIdentityIdFormatInput) Validate() error {
  56495. invalidParams := request.ErrInvalidParams{Context: "ModifyIdentityIdFormatInput"}
  56496. if s.PrincipalArn == nil {
  56497. invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
  56498. }
  56499. if s.Resource == nil {
  56500. invalidParams.Add(request.NewErrParamRequired("Resource"))
  56501. }
  56502. if s.UseLongIds == nil {
  56503. invalidParams.Add(request.NewErrParamRequired("UseLongIds"))
  56504. }
  56505. if invalidParams.Len() > 0 {
  56506. return invalidParams
  56507. }
  56508. return nil
  56509. }
  56510. // SetPrincipalArn sets the PrincipalArn field's value.
  56511. func (s *ModifyIdentityIdFormatInput) SetPrincipalArn(v string) *ModifyIdentityIdFormatInput {
  56512. s.PrincipalArn = &v
  56513. return s
  56514. }
  56515. // SetResource sets the Resource field's value.
  56516. func (s *ModifyIdentityIdFormatInput) SetResource(v string) *ModifyIdentityIdFormatInput {
  56517. s.Resource = &v
  56518. return s
  56519. }
  56520. // SetUseLongIds sets the UseLongIds field's value.
  56521. func (s *ModifyIdentityIdFormatInput) SetUseLongIds(v bool) *ModifyIdentityIdFormatInput {
  56522. s.UseLongIds = &v
  56523. return s
  56524. }
  56525. type ModifyIdentityIdFormatOutput struct {
  56526. _ struct{} `type:"structure"`
  56527. }
  56528. // String returns the string representation
  56529. func (s ModifyIdentityIdFormatOutput) String() string {
  56530. return awsutil.Prettify(s)
  56531. }
  56532. // GoString returns the string representation
  56533. func (s ModifyIdentityIdFormatOutput) GoString() string {
  56534. return s.String()
  56535. }
  56536. // Contains the parameters for ModifyImageAttribute.
  56537. type ModifyImageAttributeInput struct {
  56538. _ struct{} `type:"structure"`
  56539. // The name of the attribute to modify. The valid values are description, launchPermission,
  56540. // and productCodes.
  56541. Attribute *string `type:"string"`
  56542. // A new description for the AMI.
  56543. Description *AttributeValue `type:"structure"`
  56544. // Checks whether you have the required permissions for the action, without
  56545. // actually making the request, and provides an error response. If you have
  56546. // the required permissions, the error response is DryRunOperation. Otherwise,
  56547. // it is UnauthorizedOperation.
  56548. DryRun *bool `locationName:"dryRun" type:"boolean"`
  56549. // The ID of the AMI.
  56550. //
  56551. // ImageId is a required field
  56552. ImageId *string `type:"string" required:"true"`
  56553. // A new launch permission for the AMI.
  56554. LaunchPermission *LaunchPermissionModifications `type:"structure"`
  56555. // The operation type. This parameter can be used only when the Attribute parameter
  56556. // is launchPermission.
  56557. OperationType *string `type:"string" enum:"OperationType"`
  56558. // One or more DevPay product codes. After you add a product code to an AMI,
  56559. // it can't be removed.
  56560. ProductCodes []*string `locationName:"ProductCode" locationNameList:"ProductCode" type:"list"`
  56561. // One or more user groups. This parameter can be used only when the Attribute
  56562. // parameter is launchPermission.
  56563. UserGroups []*string `locationName:"UserGroup" locationNameList:"UserGroup" type:"list"`
  56564. // One or more AWS account IDs. This parameter can be used only when the Attribute
  56565. // parameter is launchPermission.
  56566. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  56567. // The value of the attribute being modified. This parameter can be used only
  56568. // when the Attribute parameter is description or productCodes.
  56569. Value *string `type:"string"`
  56570. }
  56571. // String returns the string representation
  56572. func (s ModifyImageAttributeInput) String() string {
  56573. return awsutil.Prettify(s)
  56574. }
  56575. // GoString returns the string representation
  56576. func (s ModifyImageAttributeInput) GoString() string {
  56577. return s.String()
  56578. }
  56579. // Validate inspects the fields of the type to determine if they are valid.
  56580. func (s *ModifyImageAttributeInput) Validate() error {
  56581. invalidParams := request.ErrInvalidParams{Context: "ModifyImageAttributeInput"}
  56582. if s.ImageId == nil {
  56583. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  56584. }
  56585. if invalidParams.Len() > 0 {
  56586. return invalidParams
  56587. }
  56588. return nil
  56589. }
  56590. // SetAttribute sets the Attribute field's value.
  56591. func (s *ModifyImageAttributeInput) SetAttribute(v string) *ModifyImageAttributeInput {
  56592. s.Attribute = &v
  56593. return s
  56594. }
  56595. // SetDescription sets the Description field's value.
  56596. func (s *ModifyImageAttributeInput) SetDescription(v *AttributeValue) *ModifyImageAttributeInput {
  56597. s.Description = v
  56598. return s
  56599. }
  56600. // SetDryRun sets the DryRun field's value.
  56601. func (s *ModifyImageAttributeInput) SetDryRun(v bool) *ModifyImageAttributeInput {
  56602. s.DryRun = &v
  56603. return s
  56604. }
  56605. // SetImageId sets the ImageId field's value.
  56606. func (s *ModifyImageAttributeInput) SetImageId(v string) *ModifyImageAttributeInput {
  56607. s.ImageId = &v
  56608. return s
  56609. }
  56610. // SetLaunchPermission sets the LaunchPermission field's value.
  56611. func (s *ModifyImageAttributeInput) SetLaunchPermission(v *LaunchPermissionModifications) *ModifyImageAttributeInput {
  56612. s.LaunchPermission = v
  56613. return s
  56614. }
  56615. // SetOperationType sets the OperationType field's value.
  56616. func (s *ModifyImageAttributeInput) SetOperationType(v string) *ModifyImageAttributeInput {
  56617. s.OperationType = &v
  56618. return s
  56619. }
  56620. // SetProductCodes sets the ProductCodes field's value.
  56621. func (s *ModifyImageAttributeInput) SetProductCodes(v []*string) *ModifyImageAttributeInput {
  56622. s.ProductCodes = v
  56623. return s
  56624. }
  56625. // SetUserGroups sets the UserGroups field's value.
  56626. func (s *ModifyImageAttributeInput) SetUserGroups(v []*string) *ModifyImageAttributeInput {
  56627. s.UserGroups = v
  56628. return s
  56629. }
  56630. // SetUserIds sets the UserIds field's value.
  56631. func (s *ModifyImageAttributeInput) SetUserIds(v []*string) *ModifyImageAttributeInput {
  56632. s.UserIds = v
  56633. return s
  56634. }
  56635. // SetValue sets the Value field's value.
  56636. func (s *ModifyImageAttributeInput) SetValue(v string) *ModifyImageAttributeInput {
  56637. s.Value = &v
  56638. return s
  56639. }
  56640. type ModifyImageAttributeOutput struct {
  56641. _ struct{} `type:"structure"`
  56642. }
  56643. // String returns the string representation
  56644. func (s ModifyImageAttributeOutput) String() string {
  56645. return awsutil.Prettify(s)
  56646. }
  56647. // GoString returns the string representation
  56648. func (s ModifyImageAttributeOutput) GoString() string {
  56649. return s.String()
  56650. }
  56651. type ModifyInstanceAttributeInput struct {
  56652. _ struct{} `type:"structure"`
  56653. // The name of the attribute.
  56654. Attribute *string `locationName:"attribute" type:"string" enum:"InstanceAttributeName"`
  56655. // Modifies the DeleteOnTermination attribute for volumes that are currently
  56656. // attached. The volume must be owned by the caller. If no value is specified
  56657. // for DeleteOnTermination, the default is true and the volume is deleted when
  56658. // the instance is terminated.
  56659. //
  56660. // To add instance store volumes to an Amazon EBS-backed instance, you must
  56661. // add them when you launch the instance. For more information, see Updating
  56662. // the Block Device Mapping when Launching an Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM)
  56663. // in the Amazon Elastic Compute Cloud User Guide.
  56664. BlockDeviceMappings []*InstanceBlockDeviceMappingSpecification `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  56665. // If the value is true, you can't terminate the instance using the Amazon EC2
  56666. // console, CLI, or API; otherwise, you can. You cannot use this parameter for
  56667. // Spot Instances.
  56668. DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`
  56669. // Checks whether you have the required permissions for the action, without
  56670. // actually making the request, and provides an error response. If you have
  56671. // the required permissions, the error response is DryRunOperation. Otherwise,
  56672. // it is UnauthorizedOperation.
  56673. DryRun *bool `locationName:"dryRun" type:"boolean"`
  56674. // Specifies whether the instance is optimized for Amazon EBS I/O. This optimization
  56675. // provides dedicated throughput to Amazon EBS and an optimized configuration
  56676. // stack to provide optimal EBS I/O performance. This optimization isn't available
  56677. // with all instance types. Additional usage charges apply when using an EBS
  56678. // Optimized instance.
  56679. EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`
  56680. // Set to true to enable enhanced networking with ENA for the instance.
  56681. //
  56682. // This option is supported only for HVM instances. Specifying this option with
  56683. // a PV instance can make it unreachable.
  56684. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`
  56685. // [EC2-VPC] Changes the security groups of the instance. You must specify at
  56686. // least one security group, even if it's just the default security group for
  56687. // the VPC. You must specify the security group ID, not the security group name.
  56688. Groups []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"`
  56689. // The ID of the instance.
  56690. //
  56691. // InstanceId is a required field
  56692. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  56693. // Specifies whether an instance stops or terminates when you initiate shutdown
  56694. // from the instance (using the operating system command for system shutdown).
  56695. InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`
  56696. // Changes the instance type to the specified value. For more information, see
  56697. // Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  56698. // If the instance type is not valid, the error returned is InvalidInstanceAttributeValue.
  56699. InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`
  56700. // Changes the instance's kernel to the specified value. We recommend that you
  56701. // use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB
  56702. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
  56703. Kernel *AttributeValue `locationName:"kernel" type:"structure"`
  56704. // Changes the instance's RAM disk to the specified value. We recommend that
  56705. // you use PV-GRUB instead of kernels and RAM disks. For more information, see
  56706. // PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
  56707. Ramdisk *AttributeValue `locationName:"ramdisk" type:"structure"`
  56708. // Specifies whether source/destination checking is enabled. A value of true
  56709. // means that checking is enabled, and false means that checking is disabled.
  56710. // This value must be false for a NAT instance to perform NAT.
  56711. SourceDestCheck *AttributeBooleanValue `type:"structure"`
  56712. // Set to simple to enable enhanced networking with the Intel 82599 Virtual
  56713. // Function interface for the instance.
  56714. //
  56715. // There is no way to disable enhanced networking with the Intel 82599 Virtual
  56716. // Function interface at this time.
  56717. //
  56718. // This option is supported only for HVM instances. Specifying this option with
  56719. // a PV instance can make it unreachable.
  56720. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  56721. // Changes the instance's user data to the specified value. If you are using
  56722. // an AWS SDK or command line tool, base64-encoding is performed for you, and
  56723. // you can load the text from a file. Otherwise, you must provide base64-encoded
  56724. // text.
  56725. UserData *BlobAttributeValue `locationName:"userData" type:"structure"`
  56726. // A new value for the attribute. Use only with the kernel, ramdisk, userData,
  56727. // disableApiTermination, or instanceInitiatedShutdownBehavior attribute.
  56728. Value *string `locationName:"value" type:"string"`
  56729. }
  56730. // String returns the string representation
  56731. func (s ModifyInstanceAttributeInput) String() string {
  56732. return awsutil.Prettify(s)
  56733. }
  56734. // GoString returns the string representation
  56735. func (s ModifyInstanceAttributeInput) GoString() string {
  56736. return s.String()
  56737. }
  56738. // Validate inspects the fields of the type to determine if they are valid.
  56739. func (s *ModifyInstanceAttributeInput) Validate() error {
  56740. invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceAttributeInput"}
  56741. if s.InstanceId == nil {
  56742. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  56743. }
  56744. if invalidParams.Len() > 0 {
  56745. return invalidParams
  56746. }
  56747. return nil
  56748. }
  56749. // SetAttribute sets the Attribute field's value.
  56750. func (s *ModifyInstanceAttributeInput) SetAttribute(v string) *ModifyInstanceAttributeInput {
  56751. s.Attribute = &v
  56752. return s
  56753. }
  56754. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  56755. func (s *ModifyInstanceAttributeInput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMappingSpecification) *ModifyInstanceAttributeInput {
  56756. s.BlockDeviceMappings = v
  56757. return s
  56758. }
  56759. // SetDisableApiTermination sets the DisableApiTermination field's value.
  56760. func (s *ModifyInstanceAttributeInput) SetDisableApiTermination(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  56761. s.DisableApiTermination = v
  56762. return s
  56763. }
  56764. // SetDryRun sets the DryRun field's value.
  56765. func (s *ModifyInstanceAttributeInput) SetDryRun(v bool) *ModifyInstanceAttributeInput {
  56766. s.DryRun = &v
  56767. return s
  56768. }
  56769. // SetEbsOptimized sets the EbsOptimized field's value.
  56770. func (s *ModifyInstanceAttributeInput) SetEbsOptimized(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  56771. s.EbsOptimized = v
  56772. return s
  56773. }
  56774. // SetEnaSupport sets the EnaSupport field's value.
  56775. func (s *ModifyInstanceAttributeInput) SetEnaSupport(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  56776. s.EnaSupport = v
  56777. return s
  56778. }
  56779. // SetGroups sets the Groups field's value.
  56780. func (s *ModifyInstanceAttributeInput) SetGroups(v []*string) *ModifyInstanceAttributeInput {
  56781. s.Groups = v
  56782. return s
  56783. }
  56784. // SetInstanceId sets the InstanceId field's value.
  56785. func (s *ModifyInstanceAttributeInput) SetInstanceId(v string) *ModifyInstanceAttributeInput {
  56786. s.InstanceId = &v
  56787. return s
  56788. }
  56789. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  56790. func (s *ModifyInstanceAttributeInput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *ModifyInstanceAttributeInput {
  56791. s.InstanceInitiatedShutdownBehavior = v
  56792. return s
  56793. }
  56794. // SetInstanceType sets the InstanceType field's value.
  56795. func (s *ModifyInstanceAttributeInput) SetInstanceType(v *AttributeValue) *ModifyInstanceAttributeInput {
  56796. s.InstanceType = v
  56797. return s
  56798. }
  56799. // SetKernel sets the Kernel field's value.
  56800. func (s *ModifyInstanceAttributeInput) SetKernel(v *AttributeValue) *ModifyInstanceAttributeInput {
  56801. s.Kernel = v
  56802. return s
  56803. }
  56804. // SetRamdisk sets the Ramdisk field's value.
  56805. func (s *ModifyInstanceAttributeInput) SetRamdisk(v *AttributeValue) *ModifyInstanceAttributeInput {
  56806. s.Ramdisk = v
  56807. return s
  56808. }
  56809. // SetSourceDestCheck sets the SourceDestCheck field's value.
  56810. func (s *ModifyInstanceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  56811. s.SourceDestCheck = v
  56812. return s
  56813. }
  56814. // SetSriovNetSupport sets the SriovNetSupport field's value.
  56815. func (s *ModifyInstanceAttributeInput) SetSriovNetSupport(v *AttributeValue) *ModifyInstanceAttributeInput {
  56816. s.SriovNetSupport = v
  56817. return s
  56818. }
  56819. // SetUserData sets the UserData field's value.
  56820. func (s *ModifyInstanceAttributeInput) SetUserData(v *BlobAttributeValue) *ModifyInstanceAttributeInput {
  56821. s.UserData = v
  56822. return s
  56823. }
  56824. // SetValue sets the Value field's value.
  56825. func (s *ModifyInstanceAttributeInput) SetValue(v string) *ModifyInstanceAttributeInput {
  56826. s.Value = &v
  56827. return s
  56828. }
  56829. type ModifyInstanceAttributeOutput struct {
  56830. _ struct{} `type:"structure"`
  56831. }
  56832. // String returns the string representation
  56833. func (s ModifyInstanceAttributeOutput) String() string {
  56834. return awsutil.Prettify(s)
  56835. }
  56836. // GoString returns the string representation
  56837. func (s ModifyInstanceAttributeOutput) GoString() string {
  56838. return s.String()
  56839. }
  56840. type ModifyInstanceCapacityReservationAttributesInput struct {
  56841. _ struct{} `type:"structure"`
  56842. // Information about the Capacity Reservation targeting option.
  56843. //
  56844. // CapacityReservationSpecification is a required field
  56845. CapacityReservationSpecification *CapacityReservationSpecification `type:"structure" required:"true"`
  56846. // Checks whether you have the required permissions for the action, without
  56847. // actually making the request, and provides an error response. If you have
  56848. // the required permissions, the error response is DryRunOperation. Otherwise,
  56849. // it is UnauthorizedOperation.
  56850. DryRun *bool `type:"boolean"`
  56851. // The ID of the instance to be modified.
  56852. //
  56853. // InstanceId is a required field
  56854. InstanceId *string `type:"string" required:"true"`
  56855. }
  56856. // String returns the string representation
  56857. func (s ModifyInstanceCapacityReservationAttributesInput) String() string {
  56858. return awsutil.Prettify(s)
  56859. }
  56860. // GoString returns the string representation
  56861. func (s ModifyInstanceCapacityReservationAttributesInput) GoString() string {
  56862. return s.String()
  56863. }
  56864. // Validate inspects the fields of the type to determine if they are valid.
  56865. func (s *ModifyInstanceCapacityReservationAttributesInput) Validate() error {
  56866. invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceCapacityReservationAttributesInput"}
  56867. if s.CapacityReservationSpecification == nil {
  56868. invalidParams.Add(request.NewErrParamRequired("CapacityReservationSpecification"))
  56869. }
  56870. if s.InstanceId == nil {
  56871. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  56872. }
  56873. if invalidParams.Len() > 0 {
  56874. return invalidParams
  56875. }
  56876. return nil
  56877. }
  56878. // SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value.
  56879. func (s *ModifyInstanceCapacityReservationAttributesInput) SetCapacityReservationSpecification(v *CapacityReservationSpecification) *ModifyInstanceCapacityReservationAttributesInput {
  56880. s.CapacityReservationSpecification = v
  56881. return s
  56882. }
  56883. // SetDryRun sets the DryRun field's value.
  56884. func (s *ModifyInstanceCapacityReservationAttributesInput) SetDryRun(v bool) *ModifyInstanceCapacityReservationAttributesInput {
  56885. s.DryRun = &v
  56886. return s
  56887. }
  56888. // SetInstanceId sets the InstanceId field's value.
  56889. func (s *ModifyInstanceCapacityReservationAttributesInput) SetInstanceId(v string) *ModifyInstanceCapacityReservationAttributesInput {
  56890. s.InstanceId = &v
  56891. return s
  56892. }
  56893. type ModifyInstanceCapacityReservationAttributesOutput struct {
  56894. _ struct{} `type:"structure"`
  56895. // Returns true if the request succeeds; otherwise, it returns an error.
  56896. Return *bool `locationName:"return" type:"boolean"`
  56897. }
  56898. // String returns the string representation
  56899. func (s ModifyInstanceCapacityReservationAttributesOutput) String() string {
  56900. return awsutil.Prettify(s)
  56901. }
  56902. // GoString returns the string representation
  56903. func (s ModifyInstanceCapacityReservationAttributesOutput) GoString() string {
  56904. return s.String()
  56905. }
  56906. // SetReturn sets the Return field's value.
  56907. func (s *ModifyInstanceCapacityReservationAttributesOutput) SetReturn(v bool) *ModifyInstanceCapacityReservationAttributesOutput {
  56908. s.Return = &v
  56909. return s
  56910. }
  56911. type ModifyInstanceCreditSpecificationInput struct {
  56912. _ struct{} `type:"structure"`
  56913. // A unique, case-sensitive token that you provide to ensure idempotency of
  56914. // your modification request. For more information, see Ensuring Idempotency
  56915. // (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  56916. ClientToken *string `type:"string"`
  56917. // Checks whether you have the required permissions for the action, without
  56918. // actually making the request, and provides an error response. If you have
  56919. // the required permissions, the error response is DryRunOperation. Otherwise,
  56920. // it is UnauthorizedOperation.
  56921. DryRun *bool `type:"boolean"`
  56922. // Information about the credit option for CPU usage.
  56923. //
  56924. // InstanceCreditSpecifications is a required field
  56925. InstanceCreditSpecifications []*InstanceCreditSpecificationRequest `locationName:"InstanceCreditSpecification" locationNameList:"item" type:"list" required:"true"`
  56926. }
  56927. // String returns the string representation
  56928. func (s ModifyInstanceCreditSpecificationInput) String() string {
  56929. return awsutil.Prettify(s)
  56930. }
  56931. // GoString returns the string representation
  56932. func (s ModifyInstanceCreditSpecificationInput) GoString() string {
  56933. return s.String()
  56934. }
  56935. // Validate inspects the fields of the type to determine if they are valid.
  56936. func (s *ModifyInstanceCreditSpecificationInput) Validate() error {
  56937. invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceCreditSpecificationInput"}
  56938. if s.InstanceCreditSpecifications == nil {
  56939. invalidParams.Add(request.NewErrParamRequired("InstanceCreditSpecifications"))
  56940. }
  56941. if invalidParams.Len() > 0 {
  56942. return invalidParams
  56943. }
  56944. return nil
  56945. }
  56946. // SetClientToken sets the ClientToken field's value.
  56947. func (s *ModifyInstanceCreditSpecificationInput) SetClientToken(v string) *ModifyInstanceCreditSpecificationInput {
  56948. s.ClientToken = &v
  56949. return s
  56950. }
  56951. // SetDryRun sets the DryRun field's value.
  56952. func (s *ModifyInstanceCreditSpecificationInput) SetDryRun(v bool) *ModifyInstanceCreditSpecificationInput {
  56953. s.DryRun = &v
  56954. return s
  56955. }
  56956. // SetInstanceCreditSpecifications sets the InstanceCreditSpecifications field's value.
  56957. func (s *ModifyInstanceCreditSpecificationInput) SetInstanceCreditSpecifications(v []*InstanceCreditSpecificationRequest) *ModifyInstanceCreditSpecificationInput {
  56958. s.InstanceCreditSpecifications = v
  56959. return s
  56960. }
  56961. type ModifyInstanceCreditSpecificationOutput struct {
  56962. _ struct{} `type:"structure"`
  56963. // Information about the instances whose credit option for CPU usage was successfully
  56964. // modified.
  56965. SuccessfulInstanceCreditSpecifications []*SuccessfulInstanceCreditSpecificationItem `locationName:"successfulInstanceCreditSpecificationSet" locationNameList:"item" type:"list"`
  56966. // Information about the instances whose credit option for CPU usage was not
  56967. // modified.
  56968. UnsuccessfulInstanceCreditSpecifications []*UnsuccessfulInstanceCreditSpecificationItem `locationName:"unsuccessfulInstanceCreditSpecificationSet" locationNameList:"item" type:"list"`
  56969. }
  56970. // String returns the string representation
  56971. func (s ModifyInstanceCreditSpecificationOutput) String() string {
  56972. return awsutil.Prettify(s)
  56973. }
  56974. // GoString returns the string representation
  56975. func (s ModifyInstanceCreditSpecificationOutput) GoString() string {
  56976. return s.String()
  56977. }
  56978. // SetSuccessfulInstanceCreditSpecifications sets the SuccessfulInstanceCreditSpecifications field's value.
  56979. func (s *ModifyInstanceCreditSpecificationOutput) SetSuccessfulInstanceCreditSpecifications(v []*SuccessfulInstanceCreditSpecificationItem) *ModifyInstanceCreditSpecificationOutput {
  56980. s.SuccessfulInstanceCreditSpecifications = v
  56981. return s
  56982. }
  56983. // SetUnsuccessfulInstanceCreditSpecifications sets the UnsuccessfulInstanceCreditSpecifications field's value.
  56984. func (s *ModifyInstanceCreditSpecificationOutput) SetUnsuccessfulInstanceCreditSpecifications(v []*UnsuccessfulInstanceCreditSpecificationItem) *ModifyInstanceCreditSpecificationOutput {
  56985. s.UnsuccessfulInstanceCreditSpecifications = v
  56986. return s
  56987. }
  56988. type ModifyInstancePlacementInput struct {
  56989. _ struct{} `type:"structure"`
  56990. // The affinity setting for the instance.
  56991. Affinity *string `locationName:"affinity" type:"string" enum:"Affinity"`
  56992. // The name of the placement group in which to place the instance. For spread
  56993. // placement groups, the instance must have a tenancy of default. For cluster
  56994. // and partition placement groups, the instance must have a tenancy of default
  56995. // or dedicated.
  56996. //
  56997. // To remove an instance from a placement group, specify an empty string ("").
  56998. GroupName *string `type:"string"`
  56999. // The ID of the Dedicated Host with which to associate the instance.
  57000. HostId *string `locationName:"hostId" type:"string"`
  57001. // The ID of the instance that you are modifying.
  57002. //
  57003. // InstanceId is a required field
  57004. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  57005. // Reserved for future use.
  57006. PartitionNumber *int64 `type:"integer"`
  57007. // The tenancy for the instance.
  57008. Tenancy *string `locationName:"tenancy" type:"string" enum:"HostTenancy"`
  57009. }
  57010. // String returns the string representation
  57011. func (s ModifyInstancePlacementInput) String() string {
  57012. return awsutil.Prettify(s)
  57013. }
  57014. // GoString returns the string representation
  57015. func (s ModifyInstancePlacementInput) GoString() string {
  57016. return s.String()
  57017. }
  57018. // Validate inspects the fields of the type to determine if they are valid.
  57019. func (s *ModifyInstancePlacementInput) Validate() error {
  57020. invalidParams := request.ErrInvalidParams{Context: "ModifyInstancePlacementInput"}
  57021. if s.InstanceId == nil {
  57022. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  57023. }
  57024. if invalidParams.Len() > 0 {
  57025. return invalidParams
  57026. }
  57027. return nil
  57028. }
  57029. // SetAffinity sets the Affinity field's value.
  57030. func (s *ModifyInstancePlacementInput) SetAffinity(v string) *ModifyInstancePlacementInput {
  57031. s.Affinity = &v
  57032. return s
  57033. }
  57034. // SetGroupName sets the GroupName field's value.
  57035. func (s *ModifyInstancePlacementInput) SetGroupName(v string) *ModifyInstancePlacementInput {
  57036. s.GroupName = &v
  57037. return s
  57038. }
  57039. // SetHostId sets the HostId field's value.
  57040. func (s *ModifyInstancePlacementInput) SetHostId(v string) *ModifyInstancePlacementInput {
  57041. s.HostId = &v
  57042. return s
  57043. }
  57044. // SetInstanceId sets the InstanceId field's value.
  57045. func (s *ModifyInstancePlacementInput) SetInstanceId(v string) *ModifyInstancePlacementInput {
  57046. s.InstanceId = &v
  57047. return s
  57048. }
  57049. // SetPartitionNumber sets the PartitionNumber field's value.
  57050. func (s *ModifyInstancePlacementInput) SetPartitionNumber(v int64) *ModifyInstancePlacementInput {
  57051. s.PartitionNumber = &v
  57052. return s
  57053. }
  57054. // SetTenancy sets the Tenancy field's value.
  57055. func (s *ModifyInstancePlacementInput) SetTenancy(v string) *ModifyInstancePlacementInput {
  57056. s.Tenancy = &v
  57057. return s
  57058. }
  57059. type ModifyInstancePlacementOutput struct {
  57060. _ struct{} `type:"structure"`
  57061. // Is true if the request succeeds, and an error otherwise.
  57062. Return *bool `locationName:"return" type:"boolean"`
  57063. }
  57064. // String returns the string representation
  57065. func (s ModifyInstancePlacementOutput) String() string {
  57066. return awsutil.Prettify(s)
  57067. }
  57068. // GoString returns the string representation
  57069. func (s ModifyInstancePlacementOutput) GoString() string {
  57070. return s.String()
  57071. }
  57072. // SetReturn sets the Return field's value.
  57073. func (s *ModifyInstancePlacementOutput) SetReturn(v bool) *ModifyInstancePlacementOutput {
  57074. s.Return = &v
  57075. return s
  57076. }
  57077. type ModifyLaunchTemplateInput struct {
  57078. _ struct{} `type:"structure"`
  57079. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  57080. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  57081. ClientToken *string `type:"string"`
  57082. // The version number of the launch template to set as the default version.
  57083. DefaultVersion *string `locationName:"SetDefaultVersion" type:"string"`
  57084. // Checks whether you have the required permissions for the action, without
  57085. // actually making the request, and provides an error response. If you have
  57086. // the required permissions, the error response is DryRunOperation. Otherwise,
  57087. // it is UnauthorizedOperation.
  57088. DryRun *bool `type:"boolean"`
  57089. // The ID of the launch template. You must specify either the launch template
  57090. // ID or launch template name in the request.
  57091. LaunchTemplateId *string `type:"string"`
  57092. // The name of the launch template. You must specify either the launch template
  57093. // ID or launch template name in the request.
  57094. LaunchTemplateName *string `min:"3" type:"string"`
  57095. }
  57096. // String returns the string representation
  57097. func (s ModifyLaunchTemplateInput) String() string {
  57098. return awsutil.Prettify(s)
  57099. }
  57100. // GoString returns the string representation
  57101. func (s ModifyLaunchTemplateInput) GoString() string {
  57102. return s.String()
  57103. }
  57104. // Validate inspects the fields of the type to determine if they are valid.
  57105. func (s *ModifyLaunchTemplateInput) Validate() error {
  57106. invalidParams := request.ErrInvalidParams{Context: "ModifyLaunchTemplateInput"}
  57107. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  57108. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  57109. }
  57110. if invalidParams.Len() > 0 {
  57111. return invalidParams
  57112. }
  57113. return nil
  57114. }
  57115. // SetClientToken sets the ClientToken field's value.
  57116. func (s *ModifyLaunchTemplateInput) SetClientToken(v string) *ModifyLaunchTemplateInput {
  57117. s.ClientToken = &v
  57118. return s
  57119. }
  57120. // SetDefaultVersion sets the DefaultVersion field's value.
  57121. func (s *ModifyLaunchTemplateInput) SetDefaultVersion(v string) *ModifyLaunchTemplateInput {
  57122. s.DefaultVersion = &v
  57123. return s
  57124. }
  57125. // SetDryRun sets the DryRun field's value.
  57126. func (s *ModifyLaunchTemplateInput) SetDryRun(v bool) *ModifyLaunchTemplateInput {
  57127. s.DryRun = &v
  57128. return s
  57129. }
  57130. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  57131. func (s *ModifyLaunchTemplateInput) SetLaunchTemplateId(v string) *ModifyLaunchTemplateInput {
  57132. s.LaunchTemplateId = &v
  57133. return s
  57134. }
  57135. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  57136. func (s *ModifyLaunchTemplateInput) SetLaunchTemplateName(v string) *ModifyLaunchTemplateInput {
  57137. s.LaunchTemplateName = &v
  57138. return s
  57139. }
  57140. type ModifyLaunchTemplateOutput struct {
  57141. _ struct{} `type:"structure"`
  57142. // Information about the launch template.
  57143. LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
  57144. }
  57145. // String returns the string representation
  57146. func (s ModifyLaunchTemplateOutput) String() string {
  57147. return awsutil.Prettify(s)
  57148. }
  57149. // GoString returns the string representation
  57150. func (s ModifyLaunchTemplateOutput) GoString() string {
  57151. return s.String()
  57152. }
  57153. // SetLaunchTemplate sets the LaunchTemplate field's value.
  57154. func (s *ModifyLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *ModifyLaunchTemplateOutput {
  57155. s.LaunchTemplate = v
  57156. return s
  57157. }
  57158. // Contains the parameters for ModifyNetworkInterfaceAttribute.
  57159. type ModifyNetworkInterfaceAttributeInput struct {
  57160. _ struct{} `type:"structure"`
  57161. // Information about the interface attachment. If modifying the 'delete on termination'
  57162. // attribute, you must specify the ID of the interface attachment.
  57163. Attachment *NetworkInterfaceAttachmentChanges `locationName:"attachment" type:"structure"`
  57164. // A description for the network interface.
  57165. Description *AttributeValue `locationName:"description" type:"structure"`
  57166. // Checks whether you have the required permissions for the action, without
  57167. // actually making the request, and provides an error response. If you have
  57168. // the required permissions, the error response is DryRunOperation. Otherwise,
  57169. // it is UnauthorizedOperation.
  57170. DryRun *bool `locationName:"dryRun" type:"boolean"`
  57171. // Changes the security groups for the network interface. The new set of groups
  57172. // you specify replaces the current set. You must specify at least one group,
  57173. // even if it's just the default security group in the VPC. You must specify
  57174. // the ID of the security group, not the name.
  57175. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  57176. // The ID of the network interface.
  57177. //
  57178. // NetworkInterfaceId is a required field
  57179. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  57180. // Indicates whether source/destination checking is enabled. A value of true
  57181. // means checking is enabled, and false means checking is disabled. This value
  57182. // must be false for a NAT instance to perform NAT. For more information, see
  57183. // NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  57184. // in the Amazon Virtual Private Cloud User Guide.
  57185. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  57186. }
  57187. // String returns the string representation
  57188. func (s ModifyNetworkInterfaceAttributeInput) String() string {
  57189. return awsutil.Prettify(s)
  57190. }
  57191. // GoString returns the string representation
  57192. func (s ModifyNetworkInterfaceAttributeInput) GoString() string {
  57193. return s.String()
  57194. }
  57195. // Validate inspects the fields of the type to determine if they are valid.
  57196. func (s *ModifyNetworkInterfaceAttributeInput) Validate() error {
  57197. invalidParams := request.ErrInvalidParams{Context: "ModifyNetworkInterfaceAttributeInput"}
  57198. if s.NetworkInterfaceId == nil {
  57199. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  57200. }
  57201. if invalidParams.Len() > 0 {
  57202. return invalidParams
  57203. }
  57204. return nil
  57205. }
  57206. // SetAttachment sets the Attachment field's value.
  57207. func (s *ModifyNetworkInterfaceAttributeInput) SetAttachment(v *NetworkInterfaceAttachmentChanges) *ModifyNetworkInterfaceAttributeInput {
  57208. s.Attachment = v
  57209. return s
  57210. }
  57211. // SetDescription sets the Description field's value.
  57212. func (s *ModifyNetworkInterfaceAttributeInput) SetDescription(v *AttributeValue) *ModifyNetworkInterfaceAttributeInput {
  57213. s.Description = v
  57214. return s
  57215. }
  57216. // SetDryRun sets the DryRun field's value.
  57217. func (s *ModifyNetworkInterfaceAttributeInput) SetDryRun(v bool) *ModifyNetworkInterfaceAttributeInput {
  57218. s.DryRun = &v
  57219. return s
  57220. }
  57221. // SetGroups sets the Groups field's value.
  57222. func (s *ModifyNetworkInterfaceAttributeInput) SetGroups(v []*string) *ModifyNetworkInterfaceAttributeInput {
  57223. s.Groups = v
  57224. return s
  57225. }
  57226. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  57227. func (s *ModifyNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ModifyNetworkInterfaceAttributeInput {
  57228. s.NetworkInterfaceId = &v
  57229. return s
  57230. }
  57231. // SetSourceDestCheck sets the SourceDestCheck field's value.
  57232. func (s *ModifyNetworkInterfaceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyNetworkInterfaceAttributeInput {
  57233. s.SourceDestCheck = v
  57234. return s
  57235. }
  57236. type ModifyNetworkInterfaceAttributeOutput struct {
  57237. _ struct{} `type:"structure"`
  57238. }
  57239. // String returns the string representation
  57240. func (s ModifyNetworkInterfaceAttributeOutput) String() string {
  57241. return awsutil.Prettify(s)
  57242. }
  57243. // GoString returns the string representation
  57244. func (s ModifyNetworkInterfaceAttributeOutput) GoString() string {
  57245. return s.String()
  57246. }
  57247. // Contains the parameters for ModifyReservedInstances.
  57248. type ModifyReservedInstancesInput struct {
  57249. _ struct{} `type:"structure"`
  57250. // A unique, case-sensitive token you provide to ensure idempotency of your
  57251. // modification request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  57252. ClientToken *string `locationName:"clientToken" type:"string"`
  57253. // The IDs of the Reserved Instances to modify.
  57254. //
  57255. // ReservedInstancesIds is a required field
  57256. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list" required:"true"`
  57257. // The configuration settings for the Reserved Instances to modify.
  57258. //
  57259. // TargetConfigurations is a required field
  57260. TargetConfigurations []*ReservedInstancesConfiguration `locationName:"ReservedInstancesConfigurationSetItemType" locationNameList:"item" type:"list" required:"true"`
  57261. }
  57262. // String returns the string representation
  57263. func (s ModifyReservedInstancesInput) String() string {
  57264. return awsutil.Prettify(s)
  57265. }
  57266. // GoString returns the string representation
  57267. func (s ModifyReservedInstancesInput) GoString() string {
  57268. return s.String()
  57269. }
  57270. // Validate inspects the fields of the type to determine if they are valid.
  57271. func (s *ModifyReservedInstancesInput) Validate() error {
  57272. invalidParams := request.ErrInvalidParams{Context: "ModifyReservedInstancesInput"}
  57273. if s.ReservedInstancesIds == nil {
  57274. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesIds"))
  57275. }
  57276. if s.TargetConfigurations == nil {
  57277. invalidParams.Add(request.NewErrParamRequired("TargetConfigurations"))
  57278. }
  57279. if invalidParams.Len() > 0 {
  57280. return invalidParams
  57281. }
  57282. return nil
  57283. }
  57284. // SetClientToken sets the ClientToken field's value.
  57285. func (s *ModifyReservedInstancesInput) SetClientToken(v string) *ModifyReservedInstancesInput {
  57286. s.ClientToken = &v
  57287. return s
  57288. }
  57289. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  57290. func (s *ModifyReservedInstancesInput) SetReservedInstancesIds(v []*string) *ModifyReservedInstancesInput {
  57291. s.ReservedInstancesIds = v
  57292. return s
  57293. }
  57294. // SetTargetConfigurations sets the TargetConfigurations field's value.
  57295. func (s *ModifyReservedInstancesInput) SetTargetConfigurations(v []*ReservedInstancesConfiguration) *ModifyReservedInstancesInput {
  57296. s.TargetConfigurations = v
  57297. return s
  57298. }
  57299. // Contains the output of ModifyReservedInstances.
  57300. type ModifyReservedInstancesOutput struct {
  57301. _ struct{} `type:"structure"`
  57302. // The ID for the modification.
  57303. ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`
  57304. }
  57305. // String returns the string representation
  57306. func (s ModifyReservedInstancesOutput) String() string {
  57307. return awsutil.Prettify(s)
  57308. }
  57309. // GoString returns the string representation
  57310. func (s ModifyReservedInstancesOutput) GoString() string {
  57311. return s.String()
  57312. }
  57313. // SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value.
  57314. func (s *ModifyReservedInstancesOutput) SetReservedInstancesModificationId(v string) *ModifyReservedInstancesOutput {
  57315. s.ReservedInstancesModificationId = &v
  57316. return s
  57317. }
  57318. // Contains the parameters for ModifySnapshotAttribute.
  57319. type ModifySnapshotAttributeInput struct {
  57320. _ struct{} `type:"structure"`
  57321. // The snapshot attribute to modify. Only volume creation permissions can be
  57322. // modified.
  57323. Attribute *string `type:"string" enum:"SnapshotAttributeName"`
  57324. // A JSON representation of the snapshot attribute modification.
  57325. CreateVolumePermission *CreateVolumePermissionModifications `type:"structure"`
  57326. // Checks whether you have the required permissions for the action, without
  57327. // actually making the request, and provides an error response. If you have
  57328. // the required permissions, the error response is DryRunOperation. Otherwise,
  57329. // it is UnauthorizedOperation.
  57330. DryRun *bool `locationName:"dryRun" type:"boolean"`
  57331. // The group to modify for the snapshot.
  57332. GroupNames []*string `locationName:"UserGroup" locationNameList:"GroupName" type:"list"`
  57333. // The type of operation to perform to the attribute.
  57334. OperationType *string `type:"string" enum:"OperationType"`
  57335. // The ID of the snapshot.
  57336. //
  57337. // SnapshotId is a required field
  57338. SnapshotId *string `type:"string" required:"true"`
  57339. // The account ID to modify for the snapshot.
  57340. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  57341. }
  57342. // String returns the string representation
  57343. func (s ModifySnapshotAttributeInput) String() string {
  57344. return awsutil.Prettify(s)
  57345. }
  57346. // GoString returns the string representation
  57347. func (s ModifySnapshotAttributeInput) GoString() string {
  57348. return s.String()
  57349. }
  57350. // Validate inspects the fields of the type to determine if they are valid.
  57351. func (s *ModifySnapshotAttributeInput) Validate() error {
  57352. invalidParams := request.ErrInvalidParams{Context: "ModifySnapshotAttributeInput"}
  57353. if s.SnapshotId == nil {
  57354. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  57355. }
  57356. if invalidParams.Len() > 0 {
  57357. return invalidParams
  57358. }
  57359. return nil
  57360. }
  57361. // SetAttribute sets the Attribute field's value.
  57362. func (s *ModifySnapshotAttributeInput) SetAttribute(v string) *ModifySnapshotAttributeInput {
  57363. s.Attribute = &v
  57364. return s
  57365. }
  57366. // SetCreateVolumePermission sets the CreateVolumePermission field's value.
  57367. func (s *ModifySnapshotAttributeInput) SetCreateVolumePermission(v *CreateVolumePermissionModifications) *ModifySnapshotAttributeInput {
  57368. s.CreateVolumePermission = v
  57369. return s
  57370. }
  57371. // SetDryRun sets the DryRun field's value.
  57372. func (s *ModifySnapshotAttributeInput) SetDryRun(v bool) *ModifySnapshotAttributeInput {
  57373. s.DryRun = &v
  57374. return s
  57375. }
  57376. // SetGroupNames sets the GroupNames field's value.
  57377. func (s *ModifySnapshotAttributeInput) SetGroupNames(v []*string) *ModifySnapshotAttributeInput {
  57378. s.GroupNames = v
  57379. return s
  57380. }
  57381. // SetOperationType sets the OperationType field's value.
  57382. func (s *ModifySnapshotAttributeInput) SetOperationType(v string) *ModifySnapshotAttributeInput {
  57383. s.OperationType = &v
  57384. return s
  57385. }
  57386. // SetSnapshotId sets the SnapshotId field's value.
  57387. func (s *ModifySnapshotAttributeInput) SetSnapshotId(v string) *ModifySnapshotAttributeInput {
  57388. s.SnapshotId = &v
  57389. return s
  57390. }
  57391. // SetUserIds sets the UserIds field's value.
  57392. func (s *ModifySnapshotAttributeInput) SetUserIds(v []*string) *ModifySnapshotAttributeInput {
  57393. s.UserIds = v
  57394. return s
  57395. }
  57396. type ModifySnapshotAttributeOutput struct {
  57397. _ struct{} `type:"structure"`
  57398. }
  57399. // String returns the string representation
  57400. func (s ModifySnapshotAttributeOutput) String() string {
  57401. return awsutil.Prettify(s)
  57402. }
  57403. // GoString returns the string representation
  57404. func (s ModifySnapshotAttributeOutput) GoString() string {
  57405. return s.String()
  57406. }
  57407. // Contains the parameters for ModifySpotFleetRequest.
  57408. type ModifySpotFleetRequestInput struct {
  57409. _ struct{} `type:"structure"`
  57410. // Indicates whether running Spot Instances should be terminated if the target
  57411. // capacity of the Spot Fleet request is decreased below the current size of
  57412. // the Spot Fleet.
  57413. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"`
  57414. // The ID of the Spot Fleet request.
  57415. //
  57416. // SpotFleetRequestId is a required field
  57417. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  57418. // The size of the fleet.
  57419. TargetCapacity *int64 `locationName:"targetCapacity" type:"integer"`
  57420. }
  57421. // String returns the string representation
  57422. func (s ModifySpotFleetRequestInput) String() string {
  57423. return awsutil.Prettify(s)
  57424. }
  57425. // GoString returns the string representation
  57426. func (s ModifySpotFleetRequestInput) GoString() string {
  57427. return s.String()
  57428. }
  57429. // Validate inspects the fields of the type to determine if they are valid.
  57430. func (s *ModifySpotFleetRequestInput) Validate() error {
  57431. invalidParams := request.ErrInvalidParams{Context: "ModifySpotFleetRequestInput"}
  57432. if s.SpotFleetRequestId == nil {
  57433. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  57434. }
  57435. if invalidParams.Len() > 0 {
  57436. return invalidParams
  57437. }
  57438. return nil
  57439. }
  57440. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  57441. func (s *ModifySpotFleetRequestInput) SetExcessCapacityTerminationPolicy(v string) *ModifySpotFleetRequestInput {
  57442. s.ExcessCapacityTerminationPolicy = &v
  57443. return s
  57444. }
  57445. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  57446. func (s *ModifySpotFleetRequestInput) SetSpotFleetRequestId(v string) *ModifySpotFleetRequestInput {
  57447. s.SpotFleetRequestId = &v
  57448. return s
  57449. }
  57450. // SetTargetCapacity sets the TargetCapacity field's value.
  57451. func (s *ModifySpotFleetRequestInput) SetTargetCapacity(v int64) *ModifySpotFleetRequestInput {
  57452. s.TargetCapacity = &v
  57453. return s
  57454. }
  57455. // Contains the output of ModifySpotFleetRequest.
  57456. type ModifySpotFleetRequestOutput struct {
  57457. _ struct{} `type:"structure"`
  57458. // Is true if the request succeeds, and an error otherwise.
  57459. Return *bool `locationName:"return" type:"boolean"`
  57460. }
  57461. // String returns the string representation
  57462. func (s ModifySpotFleetRequestOutput) String() string {
  57463. return awsutil.Prettify(s)
  57464. }
  57465. // GoString returns the string representation
  57466. func (s ModifySpotFleetRequestOutput) GoString() string {
  57467. return s.String()
  57468. }
  57469. // SetReturn sets the Return field's value.
  57470. func (s *ModifySpotFleetRequestOutput) SetReturn(v bool) *ModifySpotFleetRequestOutput {
  57471. s.Return = &v
  57472. return s
  57473. }
  57474. type ModifySubnetAttributeInput struct {
  57475. _ struct{} `type:"structure"`
  57476. // Specify true to indicate that network interfaces created in the specified
  57477. // subnet should be assigned an IPv6 address. This includes a network interface
  57478. // that's created when launching an instance into the subnet (the instance therefore
  57479. // receives an IPv6 address).
  57480. //
  57481. // If you enable the IPv6 addressing feature for your subnet, your network interface
  57482. // or instance only receives an IPv6 address if it's created using version 2016-11-15
  57483. // or later of the Amazon EC2 API.
  57484. AssignIpv6AddressOnCreation *AttributeBooleanValue `type:"structure"`
  57485. // Specify true to indicate that network interfaces created in the specified
  57486. // subnet should be assigned a public IPv4 address. This includes a network
  57487. // interface that's created when launching an instance into the subnet (the
  57488. // instance therefore receives a public IPv4 address).
  57489. MapPublicIpOnLaunch *AttributeBooleanValue `type:"structure"`
  57490. // The ID of the subnet.
  57491. //
  57492. // SubnetId is a required field
  57493. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  57494. }
  57495. // String returns the string representation
  57496. func (s ModifySubnetAttributeInput) String() string {
  57497. return awsutil.Prettify(s)
  57498. }
  57499. // GoString returns the string representation
  57500. func (s ModifySubnetAttributeInput) GoString() string {
  57501. return s.String()
  57502. }
  57503. // Validate inspects the fields of the type to determine if they are valid.
  57504. func (s *ModifySubnetAttributeInput) Validate() error {
  57505. invalidParams := request.ErrInvalidParams{Context: "ModifySubnetAttributeInput"}
  57506. if s.SubnetId == nil {
  57507. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  57508. }
  57509. if invalidParams.Len() > 0 {
  57510. return invalidParams
  57511. }
  57512. return nil
  57513. }
  57514. // SetAssignIpv6AddressOnCreation sets the AssignIpv6AddressOnCreation field's value.
  57515. func (s *ModifySubnetAttributeInput) SetAssignIpv6AddressOnCreation(v *AttributeBooleanValue) *ModifySubnetAttributeInput {
  57516. s.AssignIpv6AddressOnCreation = v
  57517. return s
  57518. }
  57519. // SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value.
  57520. func (s *ModifySubnetAttributeInput) SetMapPublicIpOnLaunch(v *AttributeBooleanValue) *ModifySubnetAttributeInput {
  57521. s.MapPublicIpOnLaunch = v
  57522. return s
  57523. }
  57524. // SetSubnetId sets the SubnetId field's value.
  57525. func (s *ModifySubnetAttributeInput) SetSubnetId(v string) *ModifySubnetAttributeInput {
  57526. s.SubnetId = &v
  57527. return s
  57528. }
  57529. type ModifySubnetAttributeOutput struct {
  57530. _ struct{} `type:"structure"`
  57531. }
  57532. // String returns the string representation
  57533. func (s ModifySubnetAttributeOutput) String() string {
  57534. return awsutil.Prettify(s)
  57535. }
  57536. // GoString returns the string representation
  57537. func (s ModifySubnetAttributeOutput) GoString() string {
  57538. return s.String()
  57539. }
  57540. type ModifyTransitGatewayVpcAttachmentInput struct {
  57541. _ struct{} `type:"structure"`
  57542. // The IDs of one or more subnets to add. You can specify at most one subnet
  57543. // per Availability Zone.
  57544. AddSubnetIds []*string `locationNameList:"item" type:"list"`
  57545. // Checks whether you have the required permissions for the action, without
  57546. // actually making the request, and provides an error response. If you have
  57547. // the required permissions, the error response is DryRunOperation. Otherwise,
  57548. // it is UnauthorizedOperation.
  57549. DryRun *bool `type:"boolean"`
  57550. // The new VPC attachment options.
  57551. Options *ModifyTransitGatewayVpcAttachmentRequestOptions `type:"structure"`
  57552. // The IDs of one or more subnets to remove.
  57553. RemoveSubnetIds []*string `locationNameList:"item" type:"list"`
  57554. // The ID of the attachment.
  57555. //
  57556. // TransitGatewayAttachmentId is a required field
  57557. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  57558. }
  57559. // String returns the string representation
  57560. func (s ModifyTransitGatewayVpcAttachmentInput) String() string {
  57561. return awsutil.Prettify(s)
  57562. }
  57563. // GoString returns the string representation
  57564. func (s ModifyTransitGatewayVpcAttachmentInput) GoString() string {
  57565. return s.String()
  57566. }
  57567. // Validate inspects the fields of the type to determine if they are valid.
  57568. func (s *ModifyTransitGatewayVpcAttachmentInput) Validate() error {
  57569. invalidParams := request.ErrInvalidParams{Context: "ModifyTransitGatewayVpcAttachmentInput"}
  57570. if s.TransitGatewayAttachmentId == nil {
  57571. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  57572. }
  57573. if invalidParams.Len() > 0 {
  57574. return invalidParams
  57575. }
  57576. return nil
  57577. }
  57578. // SetAddSubnetIds sets the AddSubnetIds field's value.
  57579. func (s *ModifyTransitGatewayVpcAttachmentInput) SetAddSubnetIds(v []*string) *ModifyTransitGatewayVpcAttachmentInput {
  57580. s.AddSubnetIds = v
  57581. return s
  57582. }
  57583. // SetDryRun sets the DryRun field's value.
  57584. func (s *ModifyTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *ModifyTransitGatewayVpcAttachmentInput {
  57585. s.DryRun = &v
  57586. return s
  57587. }
  57588. // SetOptions sets the Options field's value.
  57589. func (s *ModifyTransitGatewayVpcAttachmentInput) SetOptions(v *ModifyTransitGatewayVpcAttachmentRequestOptions) *ModifyTransitGatewayVpcAttachmentInput {
  57590. s.Options = v
  57591. return s
  57592. }
  57593. // SetRemoveSubnetIds sets the RemoveSubnetIds field's value.
  57594. func (s *ModifyTransitGatewayVpcAttachmentInput) SetRemoveSubnetIds(v []*string) *ModifyTransitGatewayVpcAttachmentInput {
  57595. s.RemoveSubnetIds = v
  57596. return s
  57597. }
  57598. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  57599. func (s *ModifyTransitGatewayVpcAttachmentInput) SetTransitGatewayAttachmentId(v string) *ModifyTransitGatewayVpcAttachmentInput {
  57600. s.TransitGatewayAttachmentId = &v
  57601. return s
  57602. }
  57603. type ModifyTransitGatewayVpcAttachmentOutput struct {
  57604. _ struct{} `type:"structure"`
  57605. // Information about the modified attachment.
  57606. TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
  57607. }
  57608. // String returns the string representation
  57609. func (s ModifyTransitGatewayVpcAttachmentOutput) String() string {
  57610. return awsutil.Prettify(s)
  57611. }
  57612. // GoString returns the string representation
  57613. func (s ModifyTransitGatewayVpcAttachmentOutput) GoString() string {
  57614. return s.String()
  57615. }
  57616. // SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value.
  57617. func (s *ModifyTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *ModifyTransitGatewayVpcAttachmentOutput {
  57618. s.TransitGatewayVpcAttachment = v
  57619. return s
  57620. }
  57621. // Describes the options for a VPC attachment.
  57622. type ModifyTransitGatewayVpcAttachmentRequestOptions struct {
  57623. _ struct{} `type:"structure"`
  57624. // Enable or disable DNS support. The default is enable.
  57625. DnsSupport *string `type:"string" enum:"DnsSupportValue"`
  57626. // Enable or disable IPv6 support. The default is enable.
  57627. Ipv6Support *string `type:"string" enum:"Ipv6SupportValue"`
  57628. }
  57629. // String returns the string representation
  57630. func (s ModifyTransitGatewayVpcAttachmentRequestOptions) String() string {
  57631. return awsutil.Prettify(s)
  57632. }
  57633. // GoString returns the string representation
  57634. func (s ModifyTransitGatewayVpcAttachmentRequestOptions) GoString() string {
  57635. return s.String()
  57636. }
  57637. // SetDnsSupport sets the DnsSupport field's value.
  57638. func (s *ModifyTransitGatewayVpcAttachmentRequestOptions) SetDnsSupport(v string) *ModifyTransitGatewayVpcAttachmentRequestOptions {
  57639. s.DnsSupport = &v
  57640. return s
  57641. }
  57642. // SetIpv6Support sets the Ipv6Support field's value.
  57643. func (s *ModifyTransitGatewayVpcAttachmentRequestOptions) SetIpv6Support(v string) *ModifyTransitGatewayVpcAttachmentRequestOptions {
  57644. s.Ipv6Support = &v
  57645. return s
  57646. }
  57647. // Contains the parameters for ModifyVolumeAttribute.
  57648. type ModifyVolumeAttributeInput struct {
  57649. _ struct{} `type:"structure"`
  57650. // Indicates whether the volume should be auto-enabled for I/O operations.
  57651. AutoEnableIO *AttributeBooleanValue `type:"structure"`
  57652. // Checks whether you have the required permissions for the action, without
  57653. // actually making the request, and provides an error response. If you have
  57654. // the required permissions, the error response is DryRunOperation. Otherwise,
  57655. // it is UnauthorizedOperation.
  57656. DryRun *bool `locationName:"dryRun" type:"boolean"`
  57657. // The ID of the volume.
  57658. //
  57659. // VolumeId is a required field
  57660. VolumeId *string `type:"string" required:"true"`
  57661. }
  57662. // String returns the string representation
  57663. func (s ModifyVolumeAttributeInput) String() string {
  57664. return awsutil.Prettify(s)
  57665. }
  57666. // GoString returns the string representation
  57667. func (s ModifyVolumeAttributeInput) GoString() string {
  57668. return s.String()
  57669. }
  57670. // Validate inspects the fields of the type to determine if they are valid.
  57671. func (s *ModifyVolumeAttributeInput) Validate() error {
  57672. invalidParams := request.ErrInvalidParams{Context: "ModifyVolumeAttributeInput"}
  57673. if s.VolumeId == nil {
  57674. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  57675. }
  57676. if invalidParams.Len() > 0 {
  57677. return invalidParams
  57678. }
  57679. return nil
  57680. }
  57681. // SetAutoEnableIO sets the AutoEnableIO field's value.
  57682. func (s *ModifyVolumeAttributeInput) SetAutoEnableIO(v *AttributeBooleanValue) *ModifyVolumeAttributeInput {
  57683. s.AutoEnableIO = v
  57684. return s
  57685. }
  57686. // SetDryRun sets the DryRun field's value.
  57687. func (s *ModifyVolumeAttributeInput) SetDryRun(v bool) *ModifyVolumeAttributeInput {
  57688. s.DryRun = &v
  57689. return s
  57690. }
  57691. // SetVolumeId sets the VolumeId field's value.
  57692. func (s *ModifyVolumeAttributeInput) SetVolumeId(v string) *ModifyVolumeAttributeInput {
  57693. s.VolumeId = &v
  57694. return s
  57695. }
  57696. type ModifyVolumeAttributeOutput struct {
  57697. _ struct{} `type:"structure"`
  57698. }
  57699. // String returns the string representation
  57700. func (s ModifyVolumeAttributeOutput) String() string {
  57701. return awsutil.Prettify(s)
  57702. }
  57703. // GoString returns the string representation
  57704. func (s ModifyVolumeAttributeOutput) GoString() string {
  57705. return s.String()
  57706. }
  57707. type ModifyVolumeInput struct {
  57708. _ struct{} `type:"structure"`
  57709. // Checks whether you have the required permissions for the action, without
  57710. // actually making the request, and provides an error response. If you have
  57711. // the required permissions, the error response is DryRunOperation. Otherwise,
  57712. // it is UnauthorizedOperation.
  57713. DryRun *bool `type:"boolean"`
  57714. // The target IOPS rate of the volume.
  57715. //
  57716. // This is only valid for Provisioned IOPS SSD (io1) volumes. For more information,
  57717. // see Provisioned IOPS SSD (io1) Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops).
  57718. //
  57719. // Default: If no IOPS value is specified, the existing value is retained.
  57720. Iops *int64 `type:"integer"`
  57721. // The target size of the volume, in GiB. The target volume size must be greater
  57722. // than or equal to than the existing size of the volume. For information about
  57723. // available EBS volume sizes, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
  57724. //
  57725. // Default: If no size is specified, the existing size is retained.
  57726. Size *int64 `type:"integer"`
  57727. // The ID of the volume.
  57728. //
  57729. // VolumeId is a required field
  57730. VolumeId *string `type:"string" required:"true"`
  57731. // The target EBS volume type of the volume.
  57732. //
  57733. // Default: If no type is specified, the existing type is retained.
  57734. VolumeType *string `type:"string" enum:"VolumeType"`
  57735. }
  57736. // String returns the string representation
  57737. func (s ModifyVolumeInput) String() string {
  57738. return awsutil.Prettify(s)
  57739. }
  57740. // GoString returns the string representation
  57741. func (s ModifyVolumeInput) GoString() string {
  57742. return s.String()
  57743. }
  57744. // Validate inspects the fields of the type to determine if they are valid.
  57745. func (s *ModifyVolumeInput) Validate() error {
  57746. invalidParams := request.ErrInvalidParams{Context: "ModifyVolumeInput"}
  57747. if s.VolumeId == nil {
  57748. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  57749. }
  57750. if invalidParams.Len() > 0 {
  57751. return invalidParams
  57752. }
  57753. return nil
  57754. }
  57755. // SetDryRun sets the DryRun field's value.
  57756. func (s *ModifyVolumeInput) SetDryRun(v bool) *ModifyVolumeInput {
  57757. s.DryRun = &v
  57758. return s
  57759. }
  57760. // SetIops sets the Iops field's value.
  57761. func (s *ModifyVolumeInput) SetIops(v int64) *ModifyVolumeInput {
  57762. s.Iops = &v
  57763. return s
  57764. }
  57765. // SetSize sets the Size field's value.
  57766. func (s *ModifyVolumeInput) SetSize(v int64) *ModifyVolumeInput {
  57767. s.Size = &v
  57768. return s
  57769. }
  57770. // SetVolumeId sets the VolumeId field's value.
  57771. func (s *ModifyVolumeInput) SetVolumeId(v string) *ModifyVolumeInput {
  57772. s.VolumeId = &v
  57773. return s
  57774. }
  57775. // SetVolumeType sets the VolumeType field's value.
  57776. func (s *ModifyVolumeInput) SetVolumeType(v string) *ModifyVolumeInput {
  57777. s.VolumeType = &v
  57778. return s
  57779. }
  57780. type ModifyVolumeOutput struct {
  57781. _ struct{} `type:"structure"`
  57782. // Information about the volume modification.
  57783. VolumeModification *VolumeModification `locationName:"volumeModification" type:"structure"`
  57784. }
  57785. // String returns the string representation
  57786. func (s ModifyVolumeOutput) String() string {
  57787. return awsutil.Prettify(s)
  57788. }
  57789. // GoString returns the string representation
  57790. func (s ModifyVolumeOutput) GoString() string {
  57791. return s.String()
  57792. }
  57793. // SetVolumeModification sets the VolumeModification field's value.
  57794. func (s *ModifyVolumeOutput) SetVolumeModification(v *VolumeModification) *ModifyVolumeOutput {
  57795. s.VolumeModification = v
  57796. return s
  57797. }
  57798. type ModifyVpcAttributeInput struct {
  57799. _ struct{} `type:"structure"`
  57800. // Indicates whether the instances launched in the VPC get DNS hostnames. If
  57801. // enabled, instances in the VPC get DNS hostnames; otherwise, they do not.
  57802. //
  57803. // You cannot modify the DNS resolution and DNS hostnames attributes in the
  57804. // same request. Use separate requests for each attribute. You can only enable
  57805. // DNS hostnames if you've enabled DNS support.
  57806. EnableDnsHostnames *AttributeBooleanValue `type:"structure"`
  57807. // Indicates whether the DNS resolution is supported for the VPC. If enabled,
  57808. // queries to the Amazon provided DNS server at the 169.254.169.253 IP address,
  57809. // or the reserved IP address at the base of the VPC network range "plus two"
  57810. // succeed. If disabled, the Amazon provided DNS service in the VPC that resolves
  57811. // public DNS hostnames to IP addresses is not enabled.
  57812. //
  57813. // You cannot modify the DNS resolution and DNS hostnames attributes in the
  57814. // same request. Use separate requests for each attribute.
  57815. EnableDnsSupport *AttributeBooleanValue `type:"structure"`
  57816. // The ID of the VPC.
  57817. //
  57818. // VpcId is a required field
  57819. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  57820. }
  57821. // String returns the string representation
  57822. func (s ModifyVpcAttributeInput) String() string {
  57823. return awsutil.Prettify(s)
  57824. }
  57825. // GoString returns the string representation
  57826. func (s ModifyVpcAttributeInput) GoString() string {
  57827. return s.String()
  57828. }
  57829. // Validate inspects the fields of the type to determine if they are valid.
  57830. func (s *ModifyVpcAttributeInput) Validate() error {
  57831. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcAttributeInput"}
  57832. if s.VpcId == nil {
  57833. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  57834. }
  57835. if invalidParams.Len() > 0 {
  57836. return invalidParams
  57837. }
  57838. return nil
  57839. }
  57840. // SetEnableDnsHostnames sets the EnableDnsHostnames field's value.
  57841. func (s *ModifyVpcAttributeInput) SetEnableDnsHostnames(v *AttributeBooleanValue) *ModifyVpcAttributeInput {
  57842. s.EnableDnsHostnames = v
  57843. return s
  57844. }
  57845. // SetEnableDnsSupport sets the EnableDnsSupport field's value.
  57846. func (s *ModifyVpcAttributeInput) SetEnableDnsSupport(v *AttributeBooleanValue) *ModifyVpcAttributeInput {
  57847. s.EnableDnsSupport = v
  57848. return s
  57849. }
  57850. // SetVpcId sets the VpcId field's value.
  57851. func (s *ModifyVpcAttributeInput) SetVpcId(v string) *ModifyVpcAttributeInput {
  57852. s.VpcId = &v
  57853. return s
  57854. }
  57855. type ModifyVpcAttributeOutput struct {
  57856. _ struct{} `type:"structure"`
  57857. }
  57858. // String returns the string representation
  57859. func (s ModifyVpcAttributeOutput) String() string {
  57860. return awsutil.Prettify(s)
  57861. }
  57862. // GoString returns the string representation
  57863. func (s ModifyVpcAttributeOutput) GoString() string {
  57864. return s.String()
  57865. }
  57866. type ModifyVpcEndpointConnectionNotificationInput struct {
  57867. _ struct{} `type:"structure"`
  57868. // One or more events for the endpoint. Valid values are Accept, Connect, Delete,
  57869. // and Reject.
  57870. ConnectionEvents []*string `locationNameList:"item" type:"list"`
  57871. // The ARN for the SNS topic for the notification.
  57872. ConnectionNotificationArn *string `type:"string"`
  57873. // The ID of the notification.
  57874. //
  57875. // ConnectionNotificationId is a required field
  57876. ConnectionNotificationId *string `type:"string" required:"true"`
  57877. // Checks whether you have the required permissions for the action, without
  57878. // actually making the request, and provides an error response. If you have
  57879. // the required permissions, the error response is DryRunOperation. Otherwise,
  57880. // it is UnauthorizedOperation.
  57881. DryRun *bool `type:"boolean"`
  57882. }
  57883. // String returns the string representation
  57884. func (s ModifyVpcEndpointConnectionNotificationInput) String() string {
  57885. return awsutil.Prettify(s)
  57886. }
  57887. // GoString returns the string representation
  57888. func (s ModifyVpcEndpointConnectionNotificationInput) GoString() string {
  57889. return s.String()
  57890. }
  57891. // Validate inspects the fields of the type to determine if they are valid.
  57892. func (s *ModifyVpcEndpointConnectionNotificationInput) Validate() error {
  57893. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointConnectionNotificationInput"}
  57894. if s.ConnectionNotificationId == nil {
  57895. invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationId"))
  57896. }
  57897. if invalidParams.Len() > 0 {
  57898. return invalidParams
  57899. }
  57900. return nil
  57901. }
  57902. // SetConnectionEvents sets the ConnectionEvents field's value.
  57903. func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionEvents(v []*string) *ModifyVpcEndpointConnectionNotificationInput {
  57904. s.ConnectionEvents = v
  57905. return s
  57906. }
  57907. // SetConnectionNotificationArn sets the ConnectionNotificationArn field's value.
  57908. func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionNotificationArn(v string) *ModifyVpcEndpointConnectionNotificationInput {
  57909. s.ConnectionNotificationArn = &v
  57910. return s
  57911. }
  57912. // SetConnectionNotificationId sets the ConnectionNotificationId field's value.
  57913. func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionNotificationId(v string) *ModifyVpcEndpointConnectionNotificationInput {
  57914. s.ConnectionNotificationId = &v
  57915. return s
  57916. }
  57917. // SetDryRun sets the DryRun field's value.
  57918. func (s *ModifyVpcEndpointConnectionNotificationInput) SetDryRun(v bool) *ModifyVpcEndpointConnectionNotificationInput {
  57919. s.DryRun = &v
  57920. return s
  57921. }
  57922. type ModifyVpcEndpointConnectionNotificationOutput struct {
  57923. _ struct{} `type:"structure"`
  57924. // Returns true if the request succeeds; otherwise, it returns an error.
  57925. ReturnValue *bool `locationName:"return" type:"boolean"`
  57926. }
  57927. // String returns the string representation
  57928. func (s ModifyVpcEndpointConnectionNotificationOutput) String() string {
  57929. return awsutil.Prettify(s)
  57930. }
  57931. // GoString returns the string representation
  57932. func (s ModifyVpcEndpointConnectionNotificationOutput) GoString() string {
  57933. return s.String()
  57934. }
  57935. // SetReturnValue sets the ReturnValue field's value.
  57936. func (s *ModifyVpcEndpointConnectionNotificationOutput) SetReturnValue(v bool) *ModifyVpcEndpointConnectionNotificationOutput {
  57937. s.ReturnValue = &v
  57938. return s
  57939. }
  57940. // Contains the parameters for ModifyVpcEndpoint.
  57941. type ModifyVpcEndpointInput struct {
  57942. _ struct{} `type:"structure"`
  57943. // (Gateway endpoint) One or more route tables IDs to associate with the endpoint.
  57944. AddRouteTableIds []*string `locationName:"AddRouteTableId" locationNameList:"item" type:"list"`
  57945. // (Interface endpoint) One or more security group IDs to associate with the
  57946. // network interface.
  57947. AddSecurityGroupIds []*string `locationName:"AddSecurityGroupId" locationNameList:"item" type:"list"`
  57948. // (Interface endpoint) One or more subnet IDs in which to serve the endpoint.
  57949. AddSubnetIds []*string `locationName:"AddSubnetId" locationNameList:"item" type:"list"`
  57950. // Checks whether you have the required permissions for the action, without
  57951. // actually making the request, and provides an error response. If you have
  57952. // the required permissions, the error response is DryRunOperation. Otherwise,
  57953. // it is UnauthorizedOperation.
  57954. DryRun *bool `type:"boolean"`
  57955. // (Gateway endpoint) A policy document to attach to the endpoint. The policy
  57956. // must be in valid JSON format.
  57957. PolicyDocument *string `type:"string"`
  57958. // (Interface endpoint) Indicate whether a private hosted zone is associated
  57959. // with the VPC.
  57960. PrivateDnsEnabled *bool `type:"boolean"`
  57961. // (Gateway endpoint) One or more route table IDs to disassociate from the endpoint.
  57962. RemoveRouteTableIds []*string `locationName:"RemoveRouteTableId" locationNameList:"item" type:"list"`
  57963. // (Interface endpoint) One or more security group IDs to disassociate from
  57964. // the network interface.
  57965. RemoveSecurityGroupIds []*string `locationName:"RemoveSecurityGroupId" locationNameList:"item" type:"list"`
  57966. // (Interface endpoint) One or more subnets IDs in which to remove the endpoint.
  57967. RemoveSubnetIds []*string `locationName:"RemoveSubnetId" locationNameList:"item" type:"list"`
  57968. // (Gateway endpoint) Specify true to reset the policy document to the default
  57969. // policy. The default policy allows full access to the service.
  57970. ResetPolicy *bool `type:"boolean"`
  57971. // The ID of the endpoint.
  57972. //
  57973. // VpcEndpointId is a required field
  57974. VpcEndpointId *string `type:"string" required:"true"`
  57975. }
  57976. // String returns the string representation
  57977. func (s ModifyVpcEndpointInput) String() string {
  57978. return awsutil.Prettify(s)
  57979. }
  57980. // GoString returns the string representation
  57981. func (s ModifyVpcEndpointInput) GoString() string {
  57982. return s.String()
  57983. }
  57984. // Validate inspects the fields of the type to determine if they are valid.
  57985. func (s *ModifyVpcEndpointInput) Validate() error {
  57986. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointInput"}
  57987. if s.VpcEndpointId == nil {
  57988. invalidParams.Add(request.NewErrParamRequired("VpcEndpointId"))
  57989. }
  57990. if invalidParams.Len() > 0 {
  57991. return invalidParams
  57992. }
  57993. return nil
  57994. }
  57995. // SetAddRouteTableIds sets the AddRouteTableIds field's value.
  57996. func (s *ModifyVpcEndpointInput) SetAddRouteTableIds(v []*string) *ModifyVpcEndpointInput {
  57997. s.AddRouteTableIds = v
  57998. return s
  57999. }
  58000. // SetAddSecurityGroupIds sets the AddSecurityGroupIds field's value.
  58001. func (s *ModifyVpcEndpointInput) SetAddSecurityGroupIds(v []*string) *ModifyVpcEndpointInput {
  58002. s.AddSecurityGroupIds = v
  58003. return s
  58004. }
  58005. // SetAddSubnetIds sets the AddSubnetIds field's value.
  58006. func (s *ModifyVpcEndpointInput) SetAddSubnetIds(v []*string) *ModifyVpcEndpointInput {
  58007. s.AddSubnetIds = v
  58008. return s
  58009. }
  58010. // SetDryRun sets the DryRun field's value.
  58011. func (s *ModifyVpcEndpointInput) SetDryRun(v bool) *ModifyVpcEndpointInput {
  58012. s.DryRun = &v
  58013. return s
  58014. }
  58015. // SetPolicyDocument sets the PolicyDocument field's value.
  58016. func (s *ModifyVpcEndpointInput) SetPolicyDocument(v string) *ModifyVpcEndpointInput {
  58017. s.PolicyDocument = &v
  58018. return s
  58019. }
  58020. // SetPrivateDnsEnabled sets the PrivateDnsEnabled field's value.
  58021. func (s *ModifyVpcEndpointInput) SetPrivateDnsEnabled(v bool) *ModifyVpcEndpointInput {
  58022. s.PrivateDnsEnabled = &v
  58023. return s
  58024. }
  58025. // SetRemoveRouteTableIds sets the RemoveRouteTableIds field's value.
  58026. func (s *ModifyVpcEndpointInput) SetRemoveRouteTableIds(v []*string) *ModifyVpcEndpointInput {
  58027. s.RemoveRouteTableIds = v
  58028. return s
  58029. }
  58030. // SetRemoveSecurityGroupIds sets the RemoveSecurityGroupIds field's value.
  58031. func (s *ModifyVpcEndpointInput) SetRemoveSecurityGroupIds(v []*string) *ModifyVpcEndpointInput {
  58032. s.RemoveSecurityGroupIds = v
  58033. return s
  58034. }
  58035. // SetRemoveSubnetIds sets the RemoveSubnetIds field's value.
  58036. func (s *ModifyVpcEndpointInput) SetRemoveSubnetIds(v []*string) *ModifyVpcEndpointInput {
  58037. s.RemoveSubnetIds = v
  58038. return s
  58039. }
  58040. // SetResetPolicy sets the ResetPolicy field's value.
  58041. func (s *ModifyVpcEndpointInput) SetResetPolicy(v bool) *ModifyVpcEndpointInput {
  58042. s.ResetPolicy = &v
  58043. return s
  58044. }
  58045. // SetVpcEndpointId sets the VpcEndpointId field's value.
  58046. func (s *ModifyVpcEndpointInput) SetVpcEndpointId(v string) *ModifyVpcEndpointInput {
  58047. s.VpcEndpointId = &v
  58048. return s
  58049. }
  58050. type ModifyVpcEndpointOutput struct {
  58051. _ struct{} `type:"structure"`
  58052. // Returns true if the request succeeds; otherwise, it returns an error.
  58053. Return *bool `locationName:"return" type:"boolean"`
  58054. }
  58055. // String returns the string representation
  58056. func (s ModifyVpcEndpointOutput) String() string {
  58057. return awsutil.Prettify(s)
  58058. }
  58059. // GoString returns the string representation
  58060. func (s ModifyVpcEndpointOutput) GoString() string {
  58061. return s.String()
  58062. }
  58063. // SetReturn sets the Return field's value.
  58064. func (s *ModifyVpcEndpointOutput) SetReturn(v bool) *ModifyVpcEndpointOutput {
  58065. s.Return = &v
  58066. return s
  58067. }
  58068. type ModifyVpcEndpointServiceConfigurationInput struct {
  58069. _ struct{} `type:"structure"`
  58070. // Indicate whether requests to create an endpoint to your service must be accepted.
  58071. AcceptanceRequired *bool `type:"boolean"`
  58072. // The Amazon Resource Names (ARNs) of Network Load Balancers to add to your
  58073. // service configuration.
  58074. AddNetworkLoadBalancerArns []*string `locationName:"AddNetworkLoadBalancerArn" locationNameList:"item" type:"list"`
  58075. // Checks whether you have the required permissions for the action, without
  58076. // actually making the request, and provides an error response. If you have
  58077. // the required permissions, the error response is DryRunOperation. Otherwise,
  58078. // it is UnauthorizedOperation.
  58079. DryRun *bool `type:"boolean"`
  58080. // The Amazon Resource Names (ARNs) of Network Load Balancers to remove from
  58081. // your service configuration.
  58082. RemoveNetworkLoadBalancerArns []*string `locationName:"RemoveNetworkLoadBalancerArn" locationNameList:"item" type:"list"`
  58083. // The ID of the service.
  58084. //
  58085. // ServiceId is a required field
  58086. ServiceId *string `type:"string" required:"true"`
  58087. }
  58088. // String returns the string representation
  58089. func (s ModifyVpcEndpointServiceConfigurationInput) String() string {
  58090. return awsutil.Prettify(s)
  58091. }
  58092. // GoString returns the string representation
  58093. func (s ModifyVpcEndpointServiceConfigurationInput) GoString() string {
  58094. return s.String()
  58095. }
  58096. // Validate inspects the fields of the type to determine if they are valid.
  58097. func (s *ModifyVpcEndpointServiceConfigurationInput) Validate() error {
  58098. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointServiceConfigurationInput"}
  58099. if s.ServiceId == nil {
  58100. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  58101. }
  58102. if invalidParams.Len() > 0 {
  58103. return invalidParams
  58104. }
  58105. return nil
  58106. }
  58107. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  58108. func (s *ModifyVpcEndpointServiceConfigurationInput) SetAcceptanceRequired(v bool) *ModifyVpcEndpointServiceConfigurationInput {
  58109. s.AcceptanceRequired = &v
  58110. return s
  58111. }
  58112. // SetAddNetworkLoadBalancerArns sets the AddNetworkLoadBalancerArns field's value.
  58113. func (s *ModifyVpcEndpointServiceConfigurationInput) SetAddNetworkLoadBalancerArns(v []*string) *ModifyVpcEndpointServiceConfigurationInput {
  58114. s.AddNetworkLoadBalancerArns = v
  58115. return s
  58116. }
  58117. // SetDryRun sets the DryRun field's value.
  58118. func (s *ModifyVpcEndpointServiceConfigurationInput) SetDryRun(v bool) *ModifyVpcEndpointServiceConfigurationInput {
  58119. s.DryRun = &v
  58120. return s
  58121. }
  58122. // SetRemoveNetworkLoadBalancerArns sets the RemoveNetworkLoadBalancerArns field's value.
  58123. func (s *ModifyVpcEndpointServiceConfigurationInput) SetRemoveNetworkLoadBalancerArns(v []*string) *ModifyVpcEndpointServiceConfigurationInput {
  58124. s.RemoveNetworkLoadBalancerArns = v
  58125. return s
  58126. }
  58127. // SetServiceId sets the ServiceId field's value.
  58128. func (s *ModifyVpcEndpointServiceConfigurationInput) SetServiceId(v string) *ModifyVpcEndpointServiceConfigurationInput {
  58129. s.ServiceId = &v
  58130. return s
  58131. }
  58132. type ModifyVpcEndpointServiceConfigurationOutput struct {
  58133. _ struct{} `type:"structure"`
  58134. // Returns true if the request succeeds; otherwise, it returns an error.
  58135. Return *bool `locationName:"return" type:"boolean"`
  58136. }
  58137. // String returns the string representation
  58138. func (s ModifyVpcEndpointServiceConfigurationOutput) String() string {
  58139. return awsutil.Prettify(s)
  58140. }
  58141. // GoString returns the string representation
  58142. func (s ModifyVpcEndpointServiceConfigurationOutput) GoString() string {
  58143. return s.String()
  58144. }
  58145. // SetReturn sets the Return field's value.
  58146. func (s *ModifyVpcEndpointServiceConfigurationOutput) SetReturn(v bool) *ModifyVpcEndpointServiceConfigurationOutput {
  58147. s.Return = &v
  58148. return s
  58149. }
  58150. type ModifyVpcEndpointServicePermissionsInput struct {
  58151. _ struct{} `type:"structure"`
  58152. // The Amazon Resource Names (ARN) of one or more principals. Permissions are
  58153. // granted to the principals in this list. To grant permissions to all principals,
  58154. // specify an asterisk (*).
  58155. AddAllowedPrincipals []*string `locationNameList:"item" type:"list"`
  58156. // Checks whether you have the required permissions for the action, without
  58157. // actually making the request, and provides an error response. If you have
  58158. // the required permissions, the error response is DryRunOperation. Otherwise,
  58159. // it is UnauthorizedOperation.
  58160. DryRun *bool `type:"boolean"`
  58161. // The Amazon Resource Names (ARN) of one or more principals. Permissions are
  58162. // revoked for principals in this list.
  58163. RemoveAllowedPrincipals []*string `locationNameList:"item" type:"list"`
  58164. // The ID of the service.
  58165. //
  58166. // ServiceId is a required field
  58167. ServiceId *string `type:"string" required:"true"`
  58168. }
  58169. // String returns the string representation
  58170. func (s ModifyVpcEndpointServicePermissionsInput) String() string {
  58171. return awsutil.Prettify(s)
  58172. }
  58173. // GoString returns the string representation
  58174. func (s ModifyVpcEndpointServicePermissionsInput) GoString() string {
  58175. return s.String()
  58176. }
  58177. // Validate inspects the fields of the type to determine if they are valid.
  58178. func (s *ModifyVpcEndpointServicePermissionsInput) Validate() error {
  58179. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointServicePermissionsInput"}
  58180. if s.ServiceId == nil {
  58181. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  58182. }
  58183. if invalidParams.Len() > 0 {
  58184. return invalidParams
  58185. }
  58186. return nil
  58187. }
  58188. // SetAddAllowedPrincipals sets the AddAllowedPrincipals field's value.
  58189. func (s *ModifyVpcEndpointServicePermissionsInput) SetAddAllowedPrincipals(v []*string) *ModifyVpcEndpointServicePermissionsInput {
  58190. s.AddAllowedPrincipals = v
  58191. return s
  58192. }
  58193. // SetDryRun sets the DryRun field's value.
  58194. func (s *ModifyVpcEndpointServicePermissionsInput) SetDryRun(v bool) *ModifyVpcEndpointServicePermissionsInput {
  58195. s.DryRun = &v
  58196. return s
  58197. }
  58198. // SetRemoveAllowedPrincipals sets the RemoveAllowedPrincipals field's value.
  58199. func (s *ModifyVpcEndpointServicePermissionsInput) SetRemoveAllowedPrincipals(v []*string) *ModifyVpcEndpointServicePermissionsInput {
  58200. s.RemoveAllowedPrincipals = v
  58201. return s
  58202. }
  58203. // SetServiceId sets the ServiceId field's value.
  58204. func (s *ModifyVpcEndpointServicePermissionsInput) SetServiceId(v string) *ModifyVpcEndpointServicePermissionsInput {
  58205. s.ServiceId = &v
  58206. return s
  58207. }
  58208. type ModifyVpcEndpointServicePermissionsOutput struct {
  58209. _ struct{} `type:"structure"`
  58210. // Returns true if the request succeeds; otherwise, it returns an error.
  58211. ReturnValue *bool `locationName:"return" type:"boolean"`
  58212. }
  58213. // String returns the string representation
  58214. func (s ModifyVpcEndpointServicePermissionsOutput) String() string {
  58215. return awsutil.Prettify(s)
  58216. }
  58217. // GoString returns the string representation
  58218. func (s ModifyVpcEndpointServicePermissionsOutput) GoString() string {
  58219. return s.String()
  58220. }
  58221. // SetReturnValue sets the ReturnValue field's value.
  58222. func (s *ModifyVpcEndpointServicePermissionsOutput) SetReturnValue(v bool) *ModifyVpcEndpointServicePermissionsOutput {
  58223. s.ReturnValue = &v
  58224. return s
  58225. }
  58226. type ModifyVpcPeeringConnectionOptionsInput struct {
  58227. _ struct{} `type:"structure"`
  58228. // The VPC peering connection options for the accepter VPC.
  58229. AccepterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`
  58230. // Checks whether you have the required permissions for the action, without
  58231. // actually making the request, and provides an error response. If you have
  58232. // the required permissions, the error response is DryRunOperation. Otherwise,
  58233. // it is UnauthorizedOperation.
  58234. DryRun *bool `type:"boolean"`
  58235. // The VPC peering connection options for the requester VPC.
  58236. RequesterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`
  58237. // The ID of the VPC peering connection.
  58238. //
  58239. // VpcPeeringConnectionId is a required field
  58240. VpcPeeringConnectionId *string `type:"string" required:"true"`
  58241. }
  58242. // String returns the string representation
  58243. func (s ModifyVpcPeeringConnectionOptionsInput) String() string {
  58244. return awsutil.Prettify(s)
  58245. }
  58246. // GoString returns the string representation
  58247. func (s ModifyVpcPeeringConnectionOptionsInput) GoString() string {
  58248. return s.String()
  58249. }
  58250. // Validate inspects the fields of the type to determine if they are valid.
  58251. func (s *ModifyVpcPeeringConnectionOptionsInput) Validate() error {
  58252. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcPeeringConnectionOptionsInput"}
  58253. if s.VpcPeeringConnectionId == nil {
  58254. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  58255. }
  58256. if invalidParams.Len() > 0 {
  58257. return invalidParams
  58258. }
  58259. return nil
  58260. }
  58261. // SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value.
  58262. func (s *ModifyVpcPeeringConnectionOptionsInput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput {
  58263. s.AccepterPeeringConnectionOptions = v
  58264. return s
  58265. }
  58266. // SetDryRun sets the DryRun field's value.
  58267. func (s *ModifyVpcPeeringConnectionOptionsInput) SetDryRun(v bool) *ModifyVpcPeeringConnectionOptionsInput {
  58268. s.DryRun = &v
  58269. return s
  58270. }
  58271. // SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value.
  58272. func (s *ModifyVpcPeeringConnectionOptionsInput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput {
  58273. s.RequesterPeeringConnectionOptions = v
  58274. return s
  58275. }
  58276. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  58277. func (s *ModifyVpcPeeringConnectionOptionsInput) SetVpcPeeringConnectionId(v string) *ModifyVpcPeeringConnectionOptionsInput {
  58278. s.VpcPeeringConnectionId = &v
  58279. return s
  58280. }
  58281. type ModifyVpcPeeringConnectionOptionsOutput struct {
  58282. _ struct{} `type:"structure"`
  58283. // Information about the VPC peering connection options for the accepter VPC.
  58284. AccepterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"accepterPeeringConnectionOptions" type:"structure"`
  58285. // Information about the VPC peering connection options for the requester VPC.
  58286. RequesterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"requesterPeeringConnectionOptions" type:"structure"`
  58287. }
  58288. // String returns the string representation
  58289. func (s ModifyVpcPeeringConnectionOptionsOutput) String() string {
  58290. return awsutil.Prettify(s)
  58291. }
  58292. // GoString returns the string representation
  58293. func (s ModifyVpcPeeringConnectionOptionsOutput) GoString() string {
  58294. return s.String()
  58295. }
  58296. // SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value.
  58297. func (s *ModifyVpcPeeringConnectionOptionsOutput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput {
  58298. s.AccepterPeeringConnectionOptions = v
  58299. return s
  58300. }
  58301. // SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value.
  58302. func (s *ModifyVpcPeeringConnectionOptionsOutput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput {
  58303. s.RequesterPeeringConnectionOptions = v
  58304. return s
  58305. }
  58306. type ModifyVpcTenancyInput struct {
  58307. _ struct{} `type:"structure"`
  58308. // Checks whether you have the required permissions for the action, without
  58309. // actually making the request, and provides an error response. If you have
  58310. // the required permissions, the error response is DryRunOperation. Otherwise,
  58311. // it is UnauthorizedOperation.
  58312. DryRun *bool `type:"boolean"`
  58313. // The instance tenancy attribute for the VPC.
  58314. //
  58315. // InstanceTenancy is a required field
  58316. InstanceTenancy *string `type:"string" required:"true" enum:"VpcTenancy"`
  58317. // The ID of the VPC.
  58318. //
  58319. // VpcId is a required field
  58320. VpcId *string `type:"string" required:"true"`
  58321. }
  58322. // String returns the string representation
  58323. func (s ModifyVpcTenancyInput) String() string {
  58324. return awsutil.Prettify(s)
  58325. }
  58326. // GoString returns the string representation
  58327. func (s ModifyVpcTenancyInput) GoString() string {
  58328. return s.String()
  58329. }
  58330. // Validate inspects the fields of the type to determine if they are valid.
  58331. func (s *ModifyVpcTenancyInput) Validate() error {
  58332. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcTenancyInput"}
  58333. if s.InstanceTenancy == nil {
  58334. invalidParams.Add(request.NewErrParamRequired("InstanceTenancy"))
  58335. }
  58336. if s.VpcId == nil {
  58337. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  58338. }
  58339. if invalidParams.Len() > 0 {
  58340. return invalidParams
  58341. }
  58342. return nil
  58343. }
  58344. // SetDryRun sets the DryRun field's value.
  58345. func (s *ModifyVpcTenancyInput) SetDryRun(v bool) *ModifyVpcTenancyInput {
  58346. s.DryRun = &v
  58347. return s
  58348. }
  58349. // SetInstanceTenancy sets the InstanceTenancy field's value.
  58350. func (s *ModifyVpcTenancyInput) SetInstanceTenancy(v string) *ModifyVpcTenancyInput {
  58351. s.InstanceTenancy = &v
  58352. return s
  58353. }
  58354. // SetVpcId sets the VpcId field's value.
  58355. func (s *ModifyVpcTenancyInput) SetVpcId(v string) *ModifyVpcTenancyInput {
  58356. s.VpcId = &v
  58357. return s
  58358. }
  58359. type ModifyVpcTenancyOutput struct {
  58360. _ struct{} `type:"structure"`
  58361. // Returns true if the request succeeds; otherwise, returns an error.
  58362. ReturnValue *bool `locationName:"return" type:"boolean"`
  58363. }
  58364. // String returns the string representation
  58365. func (s ModifyVpcTenancyOutput) String() string {
  58366. return awsutil.Prettify(s)
  58367. }
  58368. // GoString returns the string representation
  58369. func (s ModifyVpcTenancyOutput) GoString() string {
  58370. return s.String()
  58371. }
  58372. // SetReturnValue sets the ReturnValue field's value.
  58373. func (s *ModifyVpcTenancyOutput) SetReturnValue(v bool) *ModifyVpcTenancyOutput {
  58374. s.ReturnValue = &v
  58375. return s
  58376. }
  58377. type MonitorInstancesInput struct {
  58378. _ struct{} `type:"structure"`
  58379. // Checks whether you have the required permissions for the action, without
  58380. // actually making the request, and provides an error response. If you have
  58381. // the required permissions, the error response is DryRunOperation. Otherwise,
  58382. // it is UnauthorizedOperation.
  58383. DryRun *bool `locationName:"dryRun" type:"boolean"`
  58384. // One or more instance IDs.
  58385. //
  58386. // InstanceIds is a required field
  58387. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  58388. }
  58389. // String returns the string representation
  58390. func (s MonitorInstancesInput) String() string {
  58391. return awsutil.Prettify(s)
  58392. }
  58393. // GoString returns the string representation
  58394. func (s MonitorInstancesInput) GoString() string {
  58395. return s.String()
  58396. }
  58397. // Validate inspects the fields of the type to determine if they are valid.
  58398. func (s *MonitorInstancesInput) Validate() error {
  58399. invalidParams := request.ErrInvalidParams{Context: "MonitorInstancesInput"}
  58400. if s.InstanceIds == nil {
  58401. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  58402. }
  58403. if invalidParams.Len() > 0 {
  58404. return invalidParams
  58405. }
  58406. return nil
  58407. }
  58408. // SetDryRun sets the DryRun field's value.
  58409. func (s *MonitorInstancesInput) SetDryRun(v bool) *MonitorInstancesInput {
  58410. s.DryRun = &v
  58411. return s
  58412. }
  58413. // SetInstanceIds sets the InstanceIds field's value.
  58414. func (s *MonitorInstancesInput) SetInstanceIds(v []*string) *MonitorInstancesInput {
  58415. s.InstanceIds = v
  58416. return s
  58417. }
  58418. type MonitorInstancesOutput struct {
  58419. _ struct{} `type:"structure"`
  58420. // The monitoring information.
  58421. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
  58422. }
  58423. // String returns the string representation
  58424. func (s MonitorInstancesOutput) String() string {
  58425. return awsutil.Prettify(s)
  58426. }
  58427. // GoString returns the string representation
  58428. func (s MonitorInstancesOutput) GoString() string {
  58429. return s.String()
  58430. }
  58431. // SetInstanceMonitorings sets the InstanceMonitorings field's value.
  58432. func (s *MonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *MonitorInstancesOutput {
  58433. s.InstanceMonitorings = v
  58434. return s
  58435. }
  58436. // Describes the monitoring of an instance.
  58437. type Monitoring struct {
  58438. _ struct{} `type:"structure"`
  58439. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  58440. // is enabled.
  58441. State *string `locationName:"state" type:"string" enum:"MonitoringState"`
  58442. }
  58443. // String returns the string representation
  58444. func (s Monitoring) String() string {
  58445. return awsutil.Prettify(s)
  58446. }
  58447. // GoString returns the string representation
  58448. func (s Monitoring) GoString() string {
  58449. return s.String()
  58450. }
  58451. // SetState sets the State field's value.
  58452. func (s *Monitoring) SetState(v string) *Monitoring {
  58453. s.State = &v
  58454. return s
  58455. }
  58456. type MoveAddressToVpcInput struct {
  58457. _ struct{} `type:"structure"`
  58458. // Checks whether you have the required permissions for the action, without
  58459. // actually making the request, and provides an error response. If you have
  58460. // the required permissions, the error response is DryRunOperation. Otherwise,
  58461. // it is UnauthorizedOperation.
  58462. DryRun *bool `locationName:"dryRun" type:"boolean"`
  58463. // The Elastic IP address.
  58464. //
  58465. // PublicIp is a required field
  58466. PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
  58467. }
  58468. // String returns the string representation
  58469. func (s MoveAddressToVpcInput) String() string {
  58470. return awsutil.Prettify(s)
  58471. }
  58472. // GoString returns the string representation
  58473. func (s MoveAddressToVpcInput) GoString() string {
  58474. return s.String()
  58475. }
  58476. // Validate inspects the fields of the type to determine if they are valid.
  58477. func (s *MoveAddressToVpcInput) Validate() error {
  58478. invalidParams := request.ErrInvalidParams{Context: "MoveAddressToVpcInput"}
  58479. if s.PublicIp == nil {
  58480. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  58481. }
  58482. if invalidParams.Len() > 0 {
  58483. return invalidParams
  58484. }
  58485. return nil
  58486. }
  58487. // SetDryRun sets the DryRun field's value.
  58488. func (s *MoveAddressToVpcInput) SetDryRun(v bool) *MoveAddressToVpcInput {
  58489. s.DryRun = &v
  58490. return s
  58491. }
  58492. // SetPublicIp sets the PublicIp field's value.
  58493. func (s *MoveAddressToVpcInput) SetPublicIp(v string) *MoveAddressToVpcInput {
  58494. s.PublicIp = &v
  58495. return s
  58496. }
  58497. type MoveAddressToVpcOutput struct {
  58498. _ struct{} `type:"structure"`
  58499. // The allocation ID for the Elastic IP address.
  58500. AllocationId *string `locationName:"allocationId" type:"string"`
  58501. // The status of the move of the IP address.
  58502. Status *string `locationName:"status" type:"string" enum:"Status"`
  58503. }
  58504. // String returns the string representation
  58505. func (s MoveAddressToVpcOutput) String() string {
  58506. return awsutil.Prettify(s)
  58507. }
  58508. // GoString returns the string representation
  58509. func (s MoveAddressToVpcOutput) GoString() string {
  58510. return s.String()
  58511. }
  58512. // SetAllocationId sets the AllocationId field's value.
  58513. func (s *MoveAddressToVpcOutput) SetAllocationId(v string) *MoveAddressToVpcOutput {
  58514. s.AllocationId = &v
  58515. return s
  58516. }
  58517. // SetStatus sets the Status field's value.
  58518. func (s *MoveAddressToVpcOutput) SetStatus(v string) *MoveAddressToVpcOutput {
  58519. s.Status = &v
  58520. return s
  58521. }
  58522. // Describes the status of a moving Elastic IP address.
  58523. type MovingAddressStatus struct {
  58524. _ struct{} `type:"structure"`
  58525. // The status of the Elastic IP address that's being moved to the EC2-VPC platform,
  58526. // or restored to the EC2-Classic platform.
  58527. MoveStatus *string `locationName:"moveStatus" type:"string" enum:"MoveStatus"`
  58528. // The Elastic IP address.
  58529. PublicIp *string `locationName:"publicIp" type:"string"`
  58530. }
  58531. // String returns the string representation
  58532. func (s MovingAddressStatus) String() string {
  58533. return awsutil.Prettify(s)
  58534. }
  58535. // GoString returns the string representation
  58536. func (s MovingAddressStatus) GoString() string {
  58537. return s.String()
  58538. }
  58539. // SetMoveStatus sets the MoveStatus field's value.
  58540. func (s *MovingAddressStatus) SetMoveStatus(v string) *MovingAddressStatus {
  58541. s.MoveStatus = &v
  58542. return s
  58543. }
  58544. // SetPublicIp sets the PublicIp field's value.
  58545. func (s *MovingAddressStatus) SetPublicIp(v string) *MovingAddressStatus {
  58546. s.PublicIp = &v
  58547. return s
  58548. }
  58549. // Describes a NAT gateway.
  58550. type NatGateway struct {
  58551. _ struct{} `type:"structure"`
  58552. // The date and time the NAT gateway was created.
  58553. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  58554. // The date and time the NAT gateway was deleted, if applicable.
  58555. DeleteTime *time.Time `locationName:"deleteTime" type:"timestamp"`
  58556. // If the NAT gateway could not be created, specifies the error code for the
  58557. // failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound
  58558. // | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound)
  58559. FailureCode *string `locationName:"failureCode" type:"string"`
  58560. // If the NAT gateway could not be created, specifies the error message for
  58561. // the failure, that corresponds to the error code.
  58562. //
  58563. // * For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free
  58564. // addresses to create this NAT gateway"
  58565. //
  58566. // * For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway
  58567. // attached"
  58568. //
  58569. // * For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx
  58570. // could not be associated with this NAT gateway"
  58571. //
  58572. // * For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx
  58573. // is already associated"
  58574. //
  58575. // * For InternalError: "Network interface eni-xxxxxxxx, created and used
  58576. // internally by this NAT gateway is in an invalid state. Please try again."
  58577. //
  58578. // * For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx
  58579. // does not exist or could not be found."
  58580. FailureMessage *string `locationName:"failureMessage" type:"string"`
  58581. // Information about the IP addresses and network interface associated with
  58582. // the NAT gateway.
  58583. NatGatewayAddresses []*NatGatewayAddress `locationName:"natGatewayAddressSet" locationNameList:"item" type:"list"`
  58584. // The ID of the NAT gateway.
  58585. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  58586. // Reserved. If you need to sustain traffic greater than the documented limits
  58587. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  58588. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  58589. ProvisionedBandwidth *ProvisionedBandwidth `locationName:"provisionedBandwidth" type:"structure"`
  58590. // The state of the NAT gateway.
  58591. //
  58592. // * pending: The NAT gateway is being created and is not ready to process
  58593. // traffic.
  58594. //
  58595. // * failed: The NAT gateway could not be created. Check the failureCode
  58596. // and failureMessage fields for the reason.
  58597. //
  58598. // * available: The NAT gateway is able to process traffic. This status remains
  58599. // until you delete the NAT gateway, and does not indicate the health of
  58600. // the NAT gateway.
  58601. //
  58602. // * deleting: The NAT gateway is in the process of being terminated and
  58603. // may still be processing traffic.
  58604. //
  58605. // * deleted: The NAT gateway has been terminated and is no longer processing
  58606. // traffic.
  58607. State *string `locationName:"state" type:"string" enum:"NatGatewayState"`
  58608. // The ID of the subnet in which the NAT gateway is located.
  58609. SubnetId *string `locationName:"subnetId" type:"string"`
  58610. // The tags for the NAT gateway.
  58611. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  58612. // The ID of the VPC in which the NAT gateway is located.
  58613. VpcId *string `locationName:"vpcId" type:"string"`
  58614. }
  58615. // String returns the string representation
  58616. func (s NatGateway) String() string {
  58617. return awsutil.Prettify(s)
  58618. }
  58619. // GoString returns the string representation
  58620. func (s NatGateway) GoString() string {
  58621. return s.String()
  58622. }
  58623. // SetCreateTime sets the CreateTime field's value.
  58624. func (s *NatGateway) SetCreateTime(v time.Time) *NatGateway {
  58625. s.CreateTime = &v
  58626. return s
  58627. }
  58628. // SetDeleteTime sets the DeleteTime field's value.
  58629. func (s *NatGateway) SetDeleteTime(v time.Time) *NatGateway {
  58630. s.DeleteTime = &v
  58631. return s
  58632. }
  58633. // SetFailureCode sets the FailureCode field's value.
  58634. func (s *NatGateway) SetFailureCode(v string) *NatGateway {
  58635. s.FailureCode = &v
  58636. return s
  58637. }
  58638. // SetFailureMessage sets the FailureMessage field's value.
  58639. func (s *NatGateway) SetFailureMessage(v string) *NatGateway {
  58640. s.FailureMessage = &v
  58641. return s
  58642. }
  58643. // SetNatGatewayAddresses sets the NatGatewayAddresses field's value.
  58644. func (s *NatGateway) SetNatGatewayAddresses(v []*NatGatewayAddress) *NatGateway {
  58645. s.NatGatewayAddresses = v
  58646. return s
  58647. }
  58648. // SetNatGatewayId sets the NatGatewayId field's value.
  58649. func (s *NatGateway) SetNatGatewayId(v string) *NatGateway {
  58650. s.NatGatewayId = &v
  58651. return s
  58652. }
  58653. // SetProvisionedBandwidth sets the ProvisionedBandwidth field's value.
  58654. func (s *NatGateway) SetProvisionedBandwidth(v *ProvisionedBandwidth) *NatGateway {
  58655. s.ProvisionedBandwidth = v
  58656. return s
  58657. }
  58658. // SetState sets the State field's value.
  58659. func (s *NatGateway) SetState(v string) *NatGateway {
  58660. s.State = &v
  58661. return s
  58662. }
  58663. // SetSubnetId sets the SubnetId field's value.
  58664. func (s *NatGateway) SetSubnetId(v string) *NatGateway {
  58665. s.SubnetId = &v
  58666. return s
  58667. }
  58668. // SetTags sets the Tags field's value.
  58669. func (s *NatGateway) SetTags(v []*Tag) *NatGateway {
  58670. s.Tags = v
  58671. return s
  58672. }
  58673. // SetVpcId sets the VpcId field's value.
  58674. func (s *NatGateway) SetVpcId(v string) *NatGateway {
  58675. s.VpcId = &v
  58676. return s
  58677. }
  58678. // Describes the IP addresses and network interface associated with a NAT gateway.
  58679. type NatGatewayAddress struct {
  58680. _ struct{} `type:"structure"`
  58681. // The allocation ID of the Elastic IP address that's associated with the NAT
  58682. // gateway.
  58683. AllocationId *string `locationName:"allocationId" type:"string"`
  58684. // The ID of the network interface associated with the NAT gateway.
  58685. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  58686. // The private IP address associated with the Elastic IP address.
  58687. PrivateIp *string `locationName:"privateIp" type:"string"`
  58688. // The Elastic IP address associated with the NAT gateway.
  58689. PublicIp *string `locationName:"publicIp" type:"string"`
  58690. }
  58691. // String returns the string representation
  58692. func (s NatGatewayAddress) String() string {
  58693. return awsutil.Prettify(s)
  58694. }
  58695. // GoString returns the string representation
  58696. func (s NatGatewayAddress) GoString() string {
  58697. return s.String()
  58698. }
  58699. // SetAllocationId sets the AllocationId field's value.
  58700. func (s *NatGatewayAddress) SetAllocationId(v string) *NatGatewayAddress {
  58701. s.AllocationId = &v
  58702. return s
  58703. }
  58704. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  58705. func (s *NatGatewayAddress) SetNetworkInterfaceId(v string) *NatGatewayAddress {
  58706. s.NetworkInterfaceId = &v
  58707. return s
  58708. }
  58709. // SetPrivateIp sets the PrivateIp field's value.
  58710. func (s *NatGatewayAddress) SetPrivateIp(v string) *NatGatewayAddress {
  58711. s.PrivateIp = &v
  58712. return s
  58713. }
  58714. // SetPublicIp sets the PublicIp field's value.
  58715. func (s *NatGatewayAddress) SetPublicIp(v string) *NatGatewayAddress {
  58716. s.PublicIp = &v
  58717. return s
  58718. }
  58719. // Describes a network ACL.
  58720. type NetworkAcl struct {
  58721. _ struct{} `type:"structure"`
  58722. // Any associations between the network ACL and one or more subnets
  58723. Associations []*NetworkAclAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`
  58724. // One or more entries (rules) in the network ACL.
  58725. Entries []*NetworkAclEntry `locationName:"entrySet" locationNameList:"item" type:"list"`
  58726. // Indicates whether this is the default network ACL for the VPC.
  58727. IsDefault *bool `locationName:"default" type:"boolean"`
  58728. // The ID of the network ACL.
  58729. NetworkAclId *string `locationName:"networkAclId" type:"string"`
  58730. // The ID of the AWS account that owns the network ACL.
  58731. OwnerId *string `locationName:"ownerId" type:"string"`
  58732. // Any tags assigned to the network ACL.
  58733. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  58734. // The ID of the VPC for the network ACL.
  58735. VpcId *string `locationName:"vpcId" type:"string"`
  58736. }
  58737. // String returns the string representation
  58738. func (s NetworkAcl) String() string {
  58739. return awsutil.Prettify(s)
  58740. }
  58741. // GoString returns the string representation
  58742. func (s NetworkAcl) GoString() string {
  58743. return s.String()
  58744. }
  58745. // SetAssociations sets the Associations field's value.
  58746. func (s *NetworkAcl) SetAssociations(v []*NetworkAclAssociation) *NetworkAcl {
  58747. s.Associations = v
  58748. return s
  58749. }
  58750. // SetEntries sets the Entries field's value.
  58751. func (s *NetworkAcl) SetEntries(v []*NetworkAclEntry) *NetworkAcl {
  58752. s.Entries = v
  58753. return s
  58754. }
  58755. // SetIsDefault sets the IsDefault field's value.
  58756. func (s *NetworkAcl) SetIsDefault(v bool) *NetworkAcl {
  58757. s.IsDefault = &v
  58758. return s
  58759. }
  58760. // SetNetworkAclId sets the NetworkAclId field's value.
  58761. func (s *NetworkAcl) SetNetworkAclId(v string) *NetworkAcl {
  58762. s.NetworkAclId = &v
  58763. return s
  58764. }
  58765. // SetOwnerId sets the OwnerId field's value.
  58766. func (s *NetworkAcl) SetOwnerId(v string) *NetworkAcl {
  58767. s.OwnerId = &v
  58768. return s
  58769. }
  58770. // SetTags sets the Tags field's value.
  58771. func (s *NetworkAcl) SetTags(v []*Tag) *NetworkAcl {
  58772. s.Tags = v
  58773. return s
  58774. }
  58775. // SetVpcId sets the VpcId field's value.
  58776. func (s *NetworkAcl) SetVpcId(v string) *NetworkAcl {
  58777. s.VpcId = &v
  58778. return s
  58779. }
  58780. // Describes an association between a network ACL and a subnet.
  58781. type NetworkAclAssociation struct {
  58782. _ struct{} `type:"structure"`
  58783. // The ID of the association between a network ACL and a subnet.
  58784. NetworkAclAssociationId *string `locationName:"networkAclAssociationId" type:"string"`
  58785. // The ID of the network ACL.
  58786. NetworkAclId *string `locationName:"networkAclId" type:"string"`
  58787. // The ID of the subnet.
  58788. SubnetId *string `locationName:"subnetId" type:"string"`
  58789. }
  58790. // String returns the string representation
  58791. func (s NetworkAclAssociation) String() string {
  58792. return awsutil.Prettify(s)
  58793. }
  58794. // GoString returns the string representation
  58795. func (s NetworkAclAssociation) GoString() string {
  58796. return s.String()
  58797. }
  58798. // SetNetworkAclAssociationId sets the NetworkAclAssociationId field's value.
  58799. func (s *NetworkAclAssociation) SetNetworkAclAssociationId(v string) *NetworkAclAssociation {
  58800. s.NetworkAclAssociationId = &v
  58801. return s
  58802. }
  58803. // SetNetworkAclId sets the NetworkAclId field's value.
  58804. func (s *NetworkAclAssociation) SetNetworkAclId(v string) *NetworkAclAssociation {
  58805. s.NetworkAclId = &v
  58806. return s
  58807. }
  58808. // SetSubnetId sets the SubnetId field's value.
  58809. func (s *NetworkAclAssociation) SetSubnetId(v string) *NetworkAclAssociation {
  58810. s.SubnetId = &v
  58811. return s
  58812. }
  58813. // Describes an entry in a network ACL.
  58814. type NetworkAclEntry struct {
  58815. _ struct{} `type:"structure"`
  58816. // The IPv4 network range to allow or deny, in CIDR notation.
  58817. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  58818. // Indicates whether the rule is an egress rule (applied to traffic leaving
  58819. // the subnet).
  58820. Egress *bool `locationName:"egress" type:"boolean"`
  58821. // ICMP protocol: The ICMP type and code.
  58822. IcmpTypeCode *IcmpTypeCode `locationName:"icmpTypeCode" type:"structure"`
  58823. // The IPv6 network range to allow or deny, in CIDR notation.
  58824. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  58825. // TCP or UDP protocols: The range of ports the rule applies to.
  58826. PortRange *PortRange `locationName:"portRange" type:"structure"`
  58827. // The protocol number. A value of "-1" means all protocols.
  58828. Protocol *string `locationName:"protocol" type:"string"`
  58829. // Indicates whether to allow or deny the traffic that matches the rule.
  58830. RuleAction *string `locationName:"ruleAction" type:"string" enum:"RuleAction"`
  58831. // The rule number for the entry. ACL entries are processed in ascending order
  58832. // by rule number.
  58833. RuleNumber *int64 `locationName:"ruleNumber" type:"integer"`
  58834. }
  58835. // String returns the string representation
  58836. func (s NetworkAclEntry) String() string {
  58837. return awsutil.Prettify(s)
  58838. }
  58839. // GoString returns the string representation
  58840. func (s NetworkAclEntry) GoString() string {
  58841. return s.String()
  58842. }
  58843. // SetCidrBlock sets the CidrBlock field's value.
  58844. func (s *NetworkAclEntry) SetCidrBlock(v string) *NetworkAclEntry {
  58845. s.CidrBlock = &v
  58846. return s
  58847. }
  58848. // SetEgress sets the Egress field's value.
  58849. func (s *NetworkAclEntry) SetEgress(v bool) *NetworkAclEntry {
  58850. s.Egress = &v
  58851. return s
  58852. }
  58853. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  58854. func (s *NetworkAclEntry) SetIcmpTypeCode(v *IcmpTypeCode) *NetworkAclEntry {
  58855. s.IcmpTypeCode = v
  58856. return s
  58857. }
  58858. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  58859. func (s *NetworkAclEntry) SetIpv6CidrBlock(v string) *NetworkAclEntry {
  58860. s.Ipv6CidrBlock = &v
  58861. return s
  58862. }
  58863. // SetPortRange sets the PortRange field's value.
  58864. func (s *NetworkAclEntry) SetPortRange(v *PortRange) *NetworkAclEntry {
  58865. s.PortRange = v
  58866. return s
  58867. }
  58868. // SetProtocol sets the Protocol field's value.
  58869. func (s *NetworkAclEntry) SetProtocol(v string) *NetworkAclEntry {
  58870. s.Protocol = &v
  58871. return s
  58872. }
  58873. // SetRuleAction sets the RuleAction field's value.
  58874. func (s *NetworkAclEntry) SetRuleAction(v string) *NetworkAclEntry {
  58875. s.RuleAction = &v
  58876. return s
  58877. }
  58878. // SetRuleNumber sets the RuleNumber field's value.
  58879. func (s *NetworkAclEntry) SetRuleNumber(v int64) *NetworkAclEntry {
  58880. s.RuleNumber = &v
  58881. return s
  58882. }
  58883. // Describes a network interface.
  58884. type NetworkInterface struct {
  58885. _ struct{} `type:"structure"`
  58886. // The association information for an Elastic IP address (IPv4) associated with
  58887. // the network interface.
  58888. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`
  58889. // The network interface attachment.
  58890. Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  58891. // The Availability Zone.
  58892. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  58893. // A description.
  58894. Description *string `locationName:"description" type:"string"`
  58895. // Any security groups for the network interface.
  58896. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  58897. // The type of interface.
  58898. InterfaceType *string `locationName:"interfaceType" type:"string" enum:"NetworkInterfaceType"`
  58899. // The IPv6 addresses associated with the network interface.
  58900. Ipv6Addresses []*NetworkInterfaceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  58901. // The MAC address.
  58902. MacAddress *string `locationName:"macAddress" type:"string"`
  58903. // The ID of the network interface.
  58904. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  58905. // The AWS account ID of the owner of the network interface.
  58906. OwnerId *string `locationName:"ownerId" type:"string"`
  58907. // The private DNS name.
  58908. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  58909. // The IPv4 address of the network interface within the subnet.
  58910. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  58911. // The private IPv4 addresses associated with the network interface.
  58912. PrivateIpAddresses []*NetworkInterfacePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  58913. // The ID of the entity that launched the instance on your behalf (for example,
  58914. // AWS Management Console or Auto Scaling).
  58915. RequesterId *string `locationName:"requesterId" type:"string"`
  58916. // Indicates whether the network interface is being managed by AWS.
  58917. RequesterManaged *bool `locationName:"requesterManaged" type:"boolean"`
  58918. // Indicates whether traffic to or from the instance is validated.
  58919. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  58920. // The status of the network interface.
  58921. Status *string `locationName:"status" type:"string" enum:"NetworkInterfaceStatus"`
  58922. // The ID of the subnet.
  58923. SubnetId *string `locationName:"subnetId" type:"string"`
  58924. // Any tags assigned to the network interface.
  58925. TagSet []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  58926. // The ID of the VPC.
  58927. VpcId *string `locationName:"vpcId" type:"string"`
  58928. }
  58929. // String returns the string representation
  58930. func (s NetworkInterface) String() string {
  58931. return awsutil.Prettify(s)
  58932. }
  58933. // GoString returns the string representation
  58934. func (s NetworkInterface) GoString() string {
  58935. return s.String()
  58936. }
  58937. // SetAssociation sets the Association field's value.
  58938. func (s *NetworkInterface) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterface {
  58939. s.Association = v
  58940. return s
  58941. }
  58942. // SetAttachment sets the Attachment field's value.
  58943. func (s *NetworkInterface) SetAttachment(v *NetworkInterfaceAttachment) *NetworkInterface {
  58944. s.Attachment = v
  58945. return s
  58946. }
  58947. // SetAvailabilityZone sets the AvailabilityZone field's value.
  58948. func (s *NetworkInterface) SetAvailabilityZone(v string) *NetworkInterface {
  58949. s.AvailabilityZone = &v
  58950. return s
  58951. }
  58952. // SetDescription sets the Description field's value.
  58953. func (s *NetworkInterface) SetDescription(v string) *NetworkInterface {
  58954. s.Description = &v
  58955. return s
  58956. }
  58957. // SetGroups sets the Groups field's value.
  58958. func (s *NetworkInterface) SetGroups(v []*GroupIdentifier) *NetworkInterface {
  58959. s.Groups = v
  58960. return s
  58961. }
  58962. // SetInterfaceType sets the InterfaceType field's value.
  58963. func (s *NetworkInterface) SetInterfaceType(v string) *NetworkInterface {
  58964. s.InterfaceType = &v
  58965. return s
  58966. }
  58967. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  58968. func (s *NetworkInterface) SetIpv6Addresses(v []*NetworkInterfaceIpv6Address) *NetworkInterface {
  58969. s.Ipv6Addresses = v
  58970. return s
  58971. }
  58972. // SetMacAddress sets the MacAddress field's value.
  58973. func (s *NetworkInterface) SetMacAddress(v string) *NetworkInterface {
  58974. s.MacAddress = &v
  58975. return s
  58976. }
  58977. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  58978. func (s *NetworkInterface) SetNetworkInterfaceId(v string) *NetworkInterface {
  58979. s.NetworkInterfaceId = &v
  58980. return s
  58981. }
  58982. // SetOwnerId sets the OwnerId field's value.
  58983. func (s *NetworkInterface) SetOwnerId(v string) *NetworkInterface {
  58984. s.OwnerId = &v
  58985. return s
  58986. }
  58987. // SetPrivateDnsName sets the PrivateDnsName field's value.
  58988. func (s *NetworkInterface) SetPrivateDnsName(v string) *NetworkInterface {
  58989. s.PrivateDnsName = &v
  58990. return s
  58991. }
  58992. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  58993. func (s *NetworkInterface) SetPrivateIpAddress(v string) *NetworkInterface {
  58994. s.PrivateIpAddress = &v
  58995. return s
  58996. }
  58997. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  58998. func (s *NetworkInterface) SetPrivateIpAddresses(v []*NetworkInterfacePrivateIpAddress) *NetworkInterface {
  58999. s.PrivateIpAddresses = v
  59000. return s
  59001. }
  59002. // SetRequesterId sets the RequesterId field's value.
  59003. func (s *NetworkInterface) SetRequesterId(v string) *NetworkInterface {
  59004. s.RequesterId = &v
  59005. return s
  59006. }
  59007. // SetRequesterManaged sets the RequesterManaged field's value.
  59008. func (s *NetworkInterface) SetRequesterManaged(v bool) *NetworkInterface {
  59009. s.RequesterManaged = &v
  59010. return s
  59011. }
  59012. // SetSourceDestCheck sets the SourceDestCheck field's value.
  59013. func (s *NetworkInterface) SetSourceDestCheck(v bool) *NetworkInterface {
  59014. s.SourceDestCheck = &v
  59015. return s
  59016. }
  59017. // SetStatus sets the Status field's value.
  59018. func (s *NetworkInterface) SetStatus(v string) *NetworkInterface {
  59019. s.Status = &v
  59020. return s
  59021. }
  59022. // SetSubnetId sets the SubnetId field's value.
  59023. func (s *NetworkInterface) SetSubnetId(v string) *NetworkInterface {
  59024. s.SubnetId = &v
  59025. return s
  59026. }
  59027. // SetTagSet sets the TagSet field's value.
  59028. func (s *NetworkInterface) SetTagSet(v []*Tag) *NetworkInterface {
  59029. s.TagSet = v
  59030. return s
  59031. }
  59032. // SetVpcId sets the VpcId field's value.
  59033. func (s *NetworkInterface) SetVpcId(v string) *NetworkInterface {
  59034. s.VpcId = &v
  59035. return s
  59036. }
  59037. // Describes association information for an Elastic IP address (IPv4 only).
  59038. type NetworkInterfaceAssociation struct {
  59039. _ struct{} `type:"structure"`
  59040. // The allocation ID.
  59041. AllocationId *string `locationName:"allocationId" type:"string"`
  59042. // The association ID.
  59043. AssociationId *string `locationName:"associationId" type:"string"`
  59044. // The ID of the Elastic IP address owner.
  59045. IpOwnerId *string `locationName:"ipOwnerId" type:"string"`
  59046. // The public DNS name.
  59047. PublicDnsName *string `locationName:"publicDnsName" type:"string"`
  59048. // The address of the Elastic IP address bound to the network interface.
  59049. PublicIp *string `locationName:"publicIp" type:"string"`
  59050. }
  59051. // String returns the string representation
  59052. func (s NetworkInterfaceAssociation) String() string {
  59053. return awsutil.Prettify(s)
  59054. }
  59055. // GoString returns the string representation
  59056. func (s NetworkInterfaceAssociation) GoString() string {
  59057. return s.String()
  59058. }
  59059. // SetAllocationId sets the AllocationId field's value.
  59060. func (s *NetworkInterfaceAssociation) SetAllocationId(v string) *NetworkInterfaceAssociation {
  59061. s.AllocationId = &v
  59062. return s
  59063. }
  59064. // SetAssociationId sets the AssociationId field's value.
  59065. func (s *NetworkInterfaceAssociation) SetAssociationId(v string) *NetworkInterfaceAssociation {
  59066. s.AssociationId = &v
  59067. return s
  59068. }
  59069. // SetIpOwnerId sets the IpOwnerId field's value.
  59070. func (s *NetworkInterfaceAssociation) SetIpOwnerId(v string) *NetworkInterfaceAssociation {
  59071. s.IpOwnerId = &v
  59072. return s
  59073. }
  59074. // SetPublicDnsName sets the PublicDnsName field's value.
  59075. func (s *NetworkInterfaceAssociation) SetPublicDnsName(v string) *NetworkInterfaceAssociation {
  59076. s.PublicDnsName = &v
  59077. return s
  59078. }
  59079. // SetPublicIp sets the PublicIp field's value.
  59080. func (s *NetworkInterfaceAssociation) SetPublicIp(v string) *NetworkInterfaceAssociation {
  59081. s.PublicIp = &v
  59082. return s
  59083. }
  59084. // Describes a network interface attachment.
  59085. type NetworkInterfaceAttachment struct {
  59086. _ struct{} `type:"structure"`
  59087. // The timestamp indicating when the attachment initiated.
  59088. AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
  59089. // The ID of the network interface attachment.
  59090. AttachmentId *string `locationName:"attachmentId" type:"string"`
  59091. // Indicates whether the network interface is deleted when the instance is terminated.
  59092. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  59093. // The device index of the network interface attachment on the instance.
  59094. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  59095. // The ID of the instance.
  59096. InstanceId *string `locationName:"instanceId" type:"string"`
  59097. // The AWS account ID of the owner of the instance.
  59098. InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`
  59099. // The attachment state.
  59100. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  59101. }
  59102. // String returns the string representation
  59103. func (s NetworkInterfaceAttachment) String() string {
  59104. return awsutil.Prettify(s)
  59105. }
  59106. // GoString returns the string representation
  59107. func (s NetworkInterfaceAttachment) GoString() string {
  59108. return s.String()
  59109. }
  59110. // SetAttachTime sets the AttachTime field's value.
  59111. func (s *NetworkInterfaceAttachment) SetAttachTime(v time.Time) *NetworkInterfaceAttachment {
  59112. s.AttachTime = &v
  59113. return s
  59114. }
  59115. // SetAttachmentId sets the AttachmentId field's value.
  59116. func (s *NetworkInterfaceAttachment) SetAttachmentId(v string) *NetworkInterfaceAttachment {
  59117. s.AttachmentId = &v
  59118. return s
  59119. }
  59120. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  59121. func (s *NetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachment {
  59122. s.DeleteOnTermination = &v
  59123. return s
  59124. }
  59125. // SetDeviceIndex sets the DeviceIndex field's value.
  59126. func (s *NetworkInterfaceAttachment) SetDeviceIndex(v int64) *NetworkInterfaceAttachment {
  59127. s.DeviceIndex = &v
  59128. return s
  59129. }
  59130. // SetInstanceId sets the InstanceId field's value.
  59131. func (s *NetworkInterfaceAttachment) SetInstanceId(v string) *NetworkInterfaceAttachment {
  59132. s.InstanceId = &v
  59133. return s
  59134. }
  59135. // SetInstanceOwnerId sets the InstanceOwnerId field's value.
  59136. func (s *NetworkInterfaceAttachment) SetInstanceOwnerId(v string) *NetworkInterfaceAttachment {
  59137. s.InstanceOwnerId = &v
  59138. return s
  59139. }
  59140. // SetStatus sets the Status field's value.
  59141. func (s *NetworkInterfaceAttachment) SetStatus(v string) *NetworkInterfaceAttachment {
  59142. s.Status = &v
  59143. return s
  59144. }
  59145. // Describes an attachment change.
  59146. type NetworkInterfaceAttachmentChanges struct {
  59147. _ struct{} `type:"structure"`
  59148. // The ID of the network interface attachment.
  59149. AttachmentId *string `locationName:"attachmentId" type:"string"`
  59150. // Indicates whether the network interface is deleted when the instance is terminated.
  59151. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  59152. }
  59153. // String returns the string representation
  59154. func (s NetworkInterfaceAttachmentChanges) String() string {
  59155. return awsutil.Prettify(s)
  59156. }
  59157. // GoString returns the string representation
  59158. func (s NetworkInterfaceAttachmentChanges) GoString() string {
  59159. return s.String()
  59160. }
  59161. // SetAttachmentId sets the AttachmentId field's value.
  59162. func (s *NetworkInterfaceAttachmentChanges) SetAttachmentId(v string) *NetworkInterfaceAttachmentChanges {
  59163. s.AttachmentId = &v
  59164. return s
  59165. }
  59166. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  59167. func (s *NetworkInterfaceAttachmentChanges) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachmentChanges {
  59168. s.DeleteOnTermination = &v
  59169. return s
  59170. }
  59171. // Describes an IPv6 address associated with a network interface.
  59172. type NetworkInterfaceIpv6Address struct {
  59173. _ struct{} `type:"structure"`
  59174. // The IPv6 address.
  59175. Ipv6Address *string `locationName:"ipv6Address" type:"string"`
  59176. }
  59177. // String returns the string representation
  59178. func (s NetworkInterfaceIpv6Address) String() string {
  59179. return awsutil.Prettify(s)
  59180. }
  59181. // GoString returns the string representation
  59182. func (s NetworkInterfaceIpv6Address) GoString() string {
  59183. return s.String()
  59184. }
  59185. // SetIpv6Address sets the Ipv6Address field's value.
  59186. func (s *NetworkInterfaceIpv6Address) SetIpv6Address(v string) *NetworkInterfaceIpv6Address {
  59187. s.Ipv6Address = &v
  59188. return s
  59189. }
  59190. // Describes a permission for a network interface.
  59191. type NetworkInterfacePermission struct {
  59192. _ struct{} `type:"structure"`
  59193. // The AWS account ID.
  59194. AwsAccountId *string `locationName:"awsAccountId" type:"string"`
  59195. // The AWS service.
  59196. AwsService *string `locationName:"awsService" type:"string"`
  59197. // The ID of the network interface.
  59198. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  59199. // The ID of the network interface permission.
  59200. NetworkInterfacePermissionId *string `locationName:"networkInterfacePermissionId" type:"string"`
  59201. // The type of permission.
  59202. Permission *string `locationName:"permission" type:"string" enum:"InterfacePermissionType"`
  59203. // Information about the state of the permission.
  59204. PermissionState *NetworkInterfacePermissionState `locationName:"permissionState" type:"structure"`
  59205. }
  59206. // String returns the string representation
  59207. func (s NetworkInterfacePermission) String() string {
  59208. return awsutil.Prettify(s)
  59209. }
  59210. // GoString returns the string representation
  59211. func (s NetworkInterfacePermission) GoString() string {
  59212. return s.String()
  59213. }
  59214. // SetAwsAccountId sets the AwsAccountId field's value.
  59215. func (s *NetworkInterfacePermission) SetAwsAccountId(v string) *NetworkInterfacePermission {
  59216. s.AwsAccountId = &v
  59217. return s
  59218. }
  59219. // SetAwsService sets the AwsService field's value.
  59220. func (s *NetworkInterfacePermission) SetAwsService(v string) *NetworkInterfacePermission {
  59221. s.AwsService = &v
  59222. return s
  59223. }
  59224. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  59225. func (s *NetworkInterfacePermission) SetNetworkInterfaceId(v string) *NetworkInterfacePermission {
  59226. s.NetworkInterfaceId = &v
  59227. return s
  59228. }
  59229. // SetNetworkInterfacePermissionId sets the NetworkInterfacePermissionId field's value.
  59230. func (s *NetworkInterfacePermission) SetNetworkInterfacePermissionId(v string) *NetworkInterfacePermission {
  59231. s.NetworkInterfacePermissionId = &v
  59232. return s
  59233. }
  59234. // SetPermission sets the Permission field's value.
  59235. func (s *NetworkInterfacePermission) SetPermission(v string) *NetworkInterfacePermission {
  59236. s.Permission = &v
  59237. return s
  59238. }
  59239. // SetPermissionState sets the PermissionState field's value.
  59240. func (s *NetworkInterfacePermission) SetPermissionState(v *NetworkInterfacePermissionState) *NetworkInterfacePermission {
  59241. s.PermissionState = v
  59242. return s
  59243. }
  59244. // Describes the state of a network interface permission.
  59245. type NetworkInterfacePermissionState struct {
  59246. _ struct{} `type:"structure"`
  59247. // The state of the permission.
  59248. State *string `locationName:"state" type:"string" enum:"NetworkInterfacePermissionStateCode"`
  59249. // A status message, if applicable.
  59250. StatusMessage *string `locationName:"statusMessage" type:"string"`
  59251. }
  59252. // String returns the string representation
  59253. func (s NetworkInterfacePermissionState) String() string {
  59254. return awsutil.Prettify(s)
  59255. }
  59256. // GoString returns the string representation
  59257. func (s NetworkInterfacePermissionState) GoString() string {
  59258. return s.String()
  59259. }
  59260. // SetState sets the State field's value.
  59261. func (s *NetworkInterfacePermissionState) SetState(v string) *NetworkInterfacePermissionState {
  59262. s.State = &v
  59263. return s
  59264. }
  59265. // SetStatusMessage sets the StatusMessage field's value.
  59266. func (s *NetworkInterfacePermissionState) SetStatusMessage(v string) *NetworkInterfacePermissionState {
  59267. s.StatusMessage = &v
  59268. return s
  59269. }
  59270. // Describes the private IPv4 address of a network interface.
  59271. type NetworkInterfacePrivateIpAddress struct {
  59272. _ struct{} `type:"structure"`
  59273. // The association information for an Elastic IP address (IPv4) associated with
  59274. // the network interface.
  59275. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`
  59276. // Indicates whether this IPv4 address is the primary private IPv4 address of
  59277. // the network interface.
  59278. Primary *bool `locationName:"primary" type:"boolean"`
  59279. // The private DNS name.
  59280. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  59281. // The private IPv4 address.
  59282. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  59283. }
  59284. // String returns the string representation
  59285. func (s NetworkInterfacePrivateIpAddress) String() string {
  59286. return awsutil.Prettify(s)
  59287. }
  59288. // GoString returns the string representation
  59289. func (s NetworkInterfacePrivateIpAddress) GoString() string {
  59290. return s.String()
  59291. }
  59292. // SetAssociation sets the Association field's value.
  59293. func (s *NetworkInterfacePrivateIpAddress) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterfacePrivateIpAddress {
  59294. s.Association = v
  59295. return s
  59296. }
  59297. // SetPrimary sets the Primary field's value.
  59298. func (s *NetworkInterfacePrivateIpAddress) SetPrimary(v bool) *NetworkInterfacePrivateIpAddress {
  59299. s.Primary = &v
  59300. return s
  59301. }
  59302. // SetPrivateDnsName sets the PrivateDnsName field's value.
  59303. func (s *NetworkInterfacePrivateIpAddress) SetPrivateDnsName(v string) *NetworkInterfacePrivateIpAddress {
  59304. s.PrivateDnsName = &v
  59305. return s
  59306. }
  59307. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  59308. func (s *NetworkInterfacePrivateIpAddress) SetPrivateIpAddress(v string) *NetworkInterfacePrivateIpAddress {
  59309. s.PrivateIpAddress = &v
  59310. return s
  59311. }
  59312. type NewDhcpConfiguration struct {
  59313. _ struct{} `type:"structure"`
  59314. Key *string `locationName:"key" type:"string"`
  59315. Values []*string `locationName:"Value" locationNameList:"item" type:"list"`
  59316. }
  59317. // String returns the string representation
  59318. func (s NewDhcpConfiguration) String() string {
  59319. return awsutil.Prettify(s)
  59320. }
  59321. // GoString returns the string representation
  59322. func (s NewDhcpConfiguration) GoString() string {
  59323. return s.String()
  59324. }
  59325. // SetKey sets the Key field's value.
  59326. func (s *NewDhcpConfiguration) SetKey(v string) *NewDhcpConfiguration {
  59327. s.Key = &v
  59328. return s
  59329. }
  59330. // SetValues sets the Values field's value.
  59331. func (s *NewDhcpConfiguration) SetValues(v []*string) *NewDhcpConfiguration {
  59332. s.Values = v
  59333. return s
  59334. }
  59335. // The allocation strategy of On-Demand Instances in an EC2 Fleet.
  59336. type OnDemandOptions struct {
  59337. _ struct{} `type:"structure"`
  59338. // The order of the launch template overrides to use in fulfilling On-Demand
  59339. // capacity. If you specify lowest-price, EC2 Fleet uses price to determine
  59340. // the order, launching the lowest price first. If you specify prioritized,
  59341. // EC2 Fleet uses the priority that you assigned to each launch template override,
  59342. // launching the highest priority first. If you do not specify a value, EC2
  59343. // Fleet defaults to lowest-price.
  59344. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"FleetOnDemandAllocationStrategy"`
  59345. // The minimum target capacity for On-Demand Instances in the fleet. If the
  59346. // minimum target capacity is not reached, the fleet launches no instances.
  59347. MinTargetCapacity *int64 `locationName:"minTargetCapacity" type:"integer"`
  59348. // Indicates that the fleet uses a single instance type to launch all On-Demand
  59349. // Instances in the fleet.
  59350. SingleInstanceType *bool `locationName:"singleInstanceType" type:"boolean"`
  59351. }
  59352. // String returns the string representation
  59353. func (s OnDemandOptions) String() string {
  59354. return awsutil.Prettify(s)
  59355. }
  59356. // GoString returns the string representation
  59357. func (s OnDemandOptions) GoString() string {
  59358. return s.String()
  59359. }
  59360. // SetAllocationStrategy sets the AllocationStrategy field's value.
  59361. func (s *OnDemandOptions) SetAllocationStrategy(v string) *OnDemandOptions {
  59362. s.AllocationStrategy = &v
  59363. return s
  59364. }
  59365. // SetMinTargetCapacity sets the MinTargetCapacity field's value.
  59366. func (s *OnDemandOptions) SetMinTargetCapacity(v int64) *OnDemandOptions {
  59367. s.MinTargetCapacity = &v
  59368. return s
  59369. }
  59370. // SetSingleInstanceType sets the SingleInstanceType field's value.
  59371. func (s *OnDemandOptions) SetSingleInstanceType(v bool) *OnDemandOptions {
  59372. s.SingleInstanceType = &v
  59373. return s
  59374. }
  59375. // The allocation strategy of On-Demand Instances in an EC2 Fleet.
  59376. type OnDemandOptionsRequest struct {
  59377. _ struct{} `type:"structure"`
  59378. // The order of the launch template overrides to use in fulfilling On-Demand
  59379. // capacity. If you specify lowest-price, EC2 Fleet uses price to determine
  59380. // the order, launching the lowest price first. If you specify prioritized,
  59381. // EC2 Fleet uses the priority that you assigned to each launch template override,
  59382. // launching the highest priority first. If you do not specify a value, EC2
  59383. // Fleet defaults to lowest-price.
  59384. AllocationStrategy *string `type:"string" enum:"FleetOnDemandAllocationStrategy"`
  59385. // The minimum target capacity for On-Demand Instances in the fleet. If the
  59386. // minimum target capacity is not reached, the fleet launches no instances.
  59387. MinTargetCapacity *int64 `type:"integer"`
  59388. // Indicates that the fleet uses a single instance type to launch all On-Demand
  59389. // Instances in the fleet.
  59390. SingleInstanceType *bool `type:"boolean"`
  59391. }
  59392. // String returns the string representation
  59393. func (s OnDemandOptionsRequest) String() string {
  59394. return awsutil.Prettify(s)
  59395. }
  59396. // GoString returns the string representation
  59397. func (s OnDemandOptionsRequest) GoString() string {
  59398. return s.String()
  59399. }
  59400. // SetAllocationStrategy sets the AllocationStrategy field's value.
  59401. func (s *OnDemandOptionsRequest) SetAllocationStrategy(v string) *OnDemandOptionsRequest {
  59402. s.AllocationStrategy = &v
  59403. return s
  59404. }
  59405. // SetMinTargetCapacity sets the MinTargetCapacity field's value.
  59406. func (s *OnDemandOptionsRequest) SetMinTargetCapacity(v int64) *OnDemandOptionsRequest {
  59407. s.MinTargetCapacity = &v
  59408. return s
  59409. }
  59410. // SetSingleInstanceType sets the SingleInstanceType field's value.
  59411. func (s *OnDemandOptionsRequest) SetSingleInstanceType(v bool) *OnDemandOptionsRequest {
  59412. s.SingleInstanceType = &v
  59413. return s
  59414. }
  59415. // Describes the data that identifies an Amazon FPGA image (AFI) on the PCI
  59416. // bus.
  59417. type PciId struct {
  59418. _ struct{} `type:"structure"`
  59419. // The ID of the device.
  59420. DeviceId *string `type:"string"`
  59421. // The ID of the subsystem.
  59422. SubsystemId *string `type:"string"`
  59423. // The ID of the vendor for the subsystem.
  59424. SubsystemVendorId *string `type:"string"`
  59425. // The ID of the vendor.
  59426. VendorId *string `type:"string"`
  59427. }
  59428. // String returns the string representation
  59429. func (s PciId) String() string {
  59430. return awsutil.Prettify(s)
  59431. }
  59432. // GoString returns the string representation
  59433. func (s PciId) GoString() string {
  59434. return s.String()
  59435. }
  59436. // SetDeviceId sets the DeviceId field's value.
  59437. func (s *PciId) SetDeviceId(v string) *PciId {
  59438. s.DeviceId = &v
  59439. return s
  59440. }
  59441. // SetSubsystemId sets the SubsystemId field's value.
  59442. func (s *PciId) SetSubsystemId(v string) *PciId {
  59443. s.SubsystemId = &v
  59444. return s
  59445. }
  59446. // SetSubsystemVendorId sets the SubsystemVendorId field's value.
  59447. func (s *PciId) SetSubsystemVendorId(v string) *PciId {
  59448. s.SubsystemVendorId = &v
  59449. return s
  59450. }
  59451. // SetVendorId sets the VendorId field's value.
  59452. func (s *PciId) SetVendorId(v string) *PciId {
  59453. s.VendorId = &v
  59454. return s
  59455. }
  59456. // Describes the VPC peering connection options.
  59457. type PeeringConnectionOptions struct {
  59458. _ struct{} `type:"structure"`
  59459. // If true, the public DNS hostnames of instances in the specified VPC resolve
  59460. // to private IP addresses when queried from instances in the peer VPC.
  59461. AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`
  59462. // If true, enables outbound communication from an EC2-Classic instance that's
  59463. // linked to a local VPC using ClassicLink to instances in a peer VPC.
  59464. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`
  59465. // If true, enables outbound communication from instances in a local VPC to
  59466. // an EC2-Classic instance that's linked to a peer VPC using ClassicLink.
  59467. AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
  59468. }
  59469. // String returns the string representation
  59470. func (s PeeringConnectionOptions) String() string {
  59471. return awsutil.Prettify(s)
  59472. }
  59473. // GoString returns the string representation
  59474. func (s PeeringConnectionOptions) GoString() string {
  59475. return s.String()
  59476. }
  59477. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  59478. func (s *PeeringConnectionOptions) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptions {
  59479. s.AllowDnsResolutionFromRemoteVpc = &v
  59480. return s
  59481. }
  59482. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  59483. func (s *PeeringConnectionOptions) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptions {
  59484. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  59485. return s
  59486. }
  59487. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  59488. func (s *PeeringConnectionOptions) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptions {
  59489. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  59490. return s
  59491. }
  59492. // The VPC peering connection options.
  59493. type PeeringConnectionOptionsRequest struct {
  59494. _ struct{} `type:"structure"`
  59495. // If true, enables a local VPC to resolve public DNS hostnames to private IP
  59496. // addresses when queried from instances in the peer VPC.
  59497. AllowDnsResolutionFromRemoteVpc *bool `type:"boolean"`
  59498. // If true, enables outbound communication from an EC2-Classic instance that's
  59499. // linked to a local VPC using ClassicLink to instances in a peer VPC.
  59500. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `type:"boolean"`
  59501. // If true, enables outbound communication from instances in a local VPC to
  59502. // an EC2-Classic instance that's linked to a peer VPC using ClassicLink.
  59503. AllowEgressFromLocalVpcToRemoteClassicLink *bool `type:"boolean"`
  59504. }
  59505. // String returns the string representation
  59506. func (s PeeringConnectionOptionsRequest) String() string {
  59507. return awsutil.Prettify(s)
  59508. }
  59509. // GoString returns the string representation
  59510. func (s PeeringConnectionOptionsRequest) GoString() string {
  59511. return s.String()
  59512. }
  59513. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  59514. func (s *PeeringConnectionOptionsRequest) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptionsRequest {
  59515. s.AllowDnsResolutionFromRemoteVpc = &v
  59516. return s
  59517. }
  59518. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  59519. func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptionsRequest {
  59520. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  59521. return s
  59522. }
  59523. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  59524. func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptionsRequest {
  59525. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  59526. return s
  59527. }
  59528. // Describes the placement of an instance.
  59529. type Placement struct {
  59530. _ struct{} `type:"structure"`
  59531. // The affinity setting for the instance on the Dedicated Host. This parameter
  59532. // is not supported for the ImportInstance command.
  59533. Affinity *string `locationName:"affinity" type:"string"`
  59534. // The Availability Zone of the instance.
  59535. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  59536. // The name of the placement group the instance is in.
  59537. GroupName *string `locationName:"groupName" type:"string"`
  59538. // The ID of the Dedicated Host on which the instance resides. This parameter
  59539. // is not supported for the ImportInstance command.
  59540. HostId *string `locationName:"hostId" type:"string"`
  59541. // The number of the partition the instance is in. Valid only if the placement
  59542. // group strategy is set to partition.
  59543. PartitionNumber *int64 `locationName:"partitionNumber" type:"integer"`
  59544. // Reserved for future use.
  59545. SpreadDomain *string `locationName:"spreadDomain" type:"string"`
  59546. // The tenancy of the instance (if the instance is running in a VPC). An instance
  59547. // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
  59548. // is not supported for the ImportInstance command.
  59549. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  59550. }
  59551. // String returns the string representation
  59552. func (s Placement) String() string {
  59553. return awsutil.Prettify(s)
  59554. }
  59555. // GoString returns the string representation
  59556. func (s Placement) GoString() string {
  59557. return s.String()
  59558. }
  59559. // SetAffinity sets the Affinity field's value.
  59560. func (s *Placement) SetAffinity(v string) *Placement {
  59561. s.Affinity = &v
  59562. return s
  59563. }
  59564. // SetAvailabilityZone sets the AvailabilityZone field's value.
  59565. func (s *Placement) SetAvailabilityZone(v string) *Placement {
  59566. s.AvailabilityZone = &v
  59567. return s
  59568. }
  59569. // SetGroupName sets the GroupName field's value.
  59570. func (s *Placement) SetGroupName(v string) *Placement {
  59571. s.GroupName = &v
  59572. return s
  59573. }
  59574. // SetHostId sets the HostId field's value.
  59575. func (s *Placement) SetHostId(v string) *Placement {
  59576. s.HostId = &v
  59577. return s
  59578. }
  59579. // SetPartitionNumber sets the PartitionNumber field's value.
  59580. func (s *Placement) SetPartitionNumber(v int64) *Placement {
  59581. s.PartitionNumber = &v
  59582. return s
  59583. }
  59584. // SetSpreadDomain sets the SpreadDomain field's value.
  59585. func (s *Placement) SetSpreadDomain(v string) *Placement {
  59586. s.SpreadDomain = &v
  59587. return s
  59588. }
  59589. // SetTenancy sets the Tenancy field's value.
  59590. func (s *Placement) SetTenancy(v string) *Placement {
  59591. s.Tenancy = &v
  59592. return s
  59593. }
  59594. // Describes a placement group.
  59595. type PlacementGroup struct {
  59596. _ struct{} `type:"structure"`
  59597. // The name of the placement group.
  59598. GroupName *string `locationName:"groupName" type:"string"`
  59599. // The number of partitions. Valid only if strategy is set to partition.
  59600. PartitionCount *int64 `locationName:"partitionCount" type:"integer"`
  59601. // The state of the placement group.
  59602. State *string `locationName:"state" type:"string" enum:"PlacementGroupState"`
  59603. // The placement strategy.
  59604. Strategy *string `locationName:"strategy" type:"string" enum:"PlacementStrategy"`
  59605. }
  59606. // String returns the string representation
  59607. func (s PlacementGroup) String() string {
  59608. return awsutil.Prettify(s)
  59609. }
  59610. // GoString returns the string representation
  59611. func (s PlacementGroup) GoString() string {
  59612. return s.String()
  59613. }
  59614. // SetGroupName sets the GroupName field's value.
  59615. func (s *PlacementGroup) SetGroupName(v string) *PlacementGroup {
  59616. s.GroupName = &v
  59617. return s
  59618. }
  59619. // SetPartitionCount sets the PartitionCount field's value.
  59620. func (s *PlacementGroup) SetPartitionCount(v int64) *PlacementGroup {
  59621. s.PartitionCount = &v
  59622. return s
  59623. }
  59624. // SetState sets the State field's value.
  59625. func (s *PlacementGroup) SetState(v string) *PlacementGroup {
  59626. s.State = &v
  59627. return s
  59628. }
  59629. // SetStrategy sets the Strategy field's value.
  59630. func (s *PlacementGroup) SetStrategy(v string) *PlacementGroup {
  59631. s.Strategy = &v
  59632. return s
  59633. }
  59634. // Describes the placement of an instance.
  59635. type PlacementResponse struct {
  59636. _ struct{} `type:"structure"`
  59637. // The name of the placement group the instance is in.
  59638. GroupName *string `locationName:"groupName" type:"string"`
  59639. }
  59640. // String returns the string representation
  59641. func (s PlacementResponse) String() string {
  59642. return awsutil.Prettify(s)
  59643. }
  59644. // GoString returns the string representation
  59645. func (s PlacementResponse) GoString() string {
  59646. return s.String()
  59647. }
  59648. // SetGroupName sets the GroupName field's value.
  59649. func (s *PlacementResponse) SetGroupName(v string) *PlacementResponse {
  59650. s.GroupName = &v
  59651. return s
  59652. }
  59653. // Describes a range of ports.
  59654. type PortRange struct {
  59655. _ struct{} `type:"structure"`
  59656. // The first port in the range.
  59657. From *int64 `locationName:"from" type:"integer"`
  59658. // The last port in the range.
  59659. To *int64 `locationName:"to" type:"integer"`
  59660. }
  59661. // String returns the string representation
  59662. func (s PortRange) String() string {
  59663. return awsutil.Prettify(s)
  59664. }
  59665. // GoString returns the string representation
  59666. func (s PortRange) GoString() string {
  59667. return s.String()
  59668. }
  59669. // SetFrom sets the From field's value.
  59670. func (s *PortRange) SetFrom(v int64) *PortRange {
  59671. s.From = &v
  59672. return s
  59673. }
  59674. // SetTo sets the To field's value.
  59675. func (s *PortRange) SetTo(v int64) *PortRange {
  59676. s.To = &v
  59677. return s
  59678. }
  59679. // Describes prefixes for AWS services.
  59680. type PrefixList struct {
  59681. _ struct{} `type:"structure"`
  59682. // The IP address range of the AWS service.
  59683. Cidrs []*string `locationName:"cidrSet" locationNameList:"item" type:"list"`
  59684. // The ID of the prefix.
  59685. PrefixListId *string `locationName:"prefixListId" type:"string"`
  59686. // The name of the prefix.
  59687. PrefixListName *string `locationName:"prefixListName" type:"string"`
  59688. }
  59689. // String returns the string representation
  59690. func (s PrefixList) String() string {
  59691. return awsutil.Prettify(s)
  59692. }
  59693. // GoString returns the string representation
  59694. func (s PrefixList) GoString() string {
  59695. return s.String()
  59696. }
  59697. // SetCidrs sets the Cidrs field's value.
  59698. func (s *PrefixList) SetCidrs(v []*string) *PrefixList {
  59699. s.Cidrs = v
  59700. return s
  59701. }
  59702. // SetPrefixListId sets the PrefixListId field's value.
  59703. func (s *PrefixList) SetPrefixListId(v string) *PrefixList {
  59704. s.PrefixListId = &v
  59705. return s
  59706. }
  59707. // SetPrefixListName sets the PrefixListName field's value.
  59708. func (s *PrefixList) SetPrefixListName(v string) *PrefixList {
  59709. s.PrefixListName = &v
  59710. return s
  59711. }
  59712. // Describes a prefix list ID.
  59713. type PrefixListId struct {
  59714. _ struct{} `type:"structure"`
  59715. // A description for the security group rule that references this prefix list
  59716. // ID.
  59717. //
  59718. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  59719. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  59720. Description *string `locationName:"description" type:"string"`
  59721. // The ID of the prefix.
  59722. PrefixListId *string `locationName:"prefixListId" type:"string"`
  59723. }
  59724. // String returns the string representation
  59725. func (s PrefixListId) String() string {
  59726. return awsutil.Prettify(s)
  59727. }
  59728. // GoString returns the string representation
  59729. func (s PrefixListId) GoString() string {
  59730. return s.String()
  59731. }
  59732. // SetDescription sets the Description field's value.
  59733. func (s *PrefixListId) SetDescription(v string) *PrefixListId {
  59734. s.Description = &v
  59735. return s
  59736. }
  59737. // SetPrefixListId sets the PrefixListId field's value.
  59738. func (s *PrefixListId) SetPrefixListId(v string) *PrefixListId {
  59739. s.PrefixListId = &v
  59740. return s
  59741. }
  59742. // Describes the price for a Reserved Instance.
  59743. type PriceSchedule struct {
  59744. _ struct{} `type:"structure"`
  59745. // The current price schedule, as determined by the term remaining for the Reserved
  59746. // Instance in the listing.
  59747. //
  59748. // A specific price schedule is always in effect, but only one price schedule
  59749. // can be active at any time. Take, for example, a Reserved Instance listing
  59750. // that has five months remaining in its term. When you specify price schedules
  59751. // for five months and two months, this means that schedule 1, covering the
  59752. // first three months of the remaining term, will be active during months 5,
  59753. // 4, and 3. Then schedule 2, covering the last two months of the term, will
  59754. // be active for months 2 and 1.
  59755. Active *bool `locationName:"active" type:"boolean"`
  59756. // The currency for transacting the Reserved Instance resale. At this time,
  59757. // the only supported currency is USD.
  59758. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  59759. // The fixed price for the term.
  59760. Price *float64 `locationName:"price" type:"double"`
  59761. // The number of months remaining in the reservation. For example, 2 is the
  59762. // second to the last month before the capacity reservation expires.
  59763. Term *int64 `locationName:"term" type:"long"`
  59764. }
  59765. // String returns the string representation
  59766. func (s PriceSchedule) String() string {
  59767. return awsutil.Prettify(s)
  59768. }
  59769. // GoString returns the string representation
  59770. func (s PriceSchedule) GoString() string {
  59771. return s.String()
  59772. }
  59773. // SetActive sets the Active field's value.
  59774. func (s *PriceSchedule) SetActive(v bool) *PriceSchedule {
  59775. s.Active = &v
  59776. return s
  59777. }
  59778. // SetCurrencyCode sets the CurrencyCode field's value.
  59779. func (s *PriceSchedule) SetCurrencyCode(v string) *PriceSchedule {
  59780. s.CurrencyCode = &v
  59781. return s
  59782. }
  59783. // SetPrice sets the Price field's value.
  59784. func (s *PriceSchedule) SetPrice(v float64) *PriceSchedule {
  59785. s.Price = &v
  59786. return s
  59787. }
  59788. // SetTerm sets the Term field's value.
  59789. func (s *PriceSchedule) SetTerm(v int64) *PriceSchedule {
  59790. s.Term = &v
  59791. return s
  59792. }
  59793. // Describes the price for a Reserved Instance.
  59794. type PriceScheduleSpecification struct {
  59795. _ struct{} `type:"structure"`
  59796. // The currency for transacting the Reserved Instance resale. At this time,
  59797. // the only supported currency is USD.
  59798. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  59799. // The fixed price for the term.
  59800. Price *float64 `locationName:"price" type:"double"`
  59801. // The number of months remaining in the reservation. For example, 2 is the
  59802. // second to the last month before the capacity reservation expires.
  59803. Term *int64 `locationName:"term" type:"long"`
  59804. }
  59805. // String returns the string representation
  59806. func (s PriceScheduleSpecification) String() string {
  59807. return awsutil.Prettify(s)
  59808. }
  59809. // GoString returns the string representation
  59810. func (s PriceScheduleSpecification) GoString() string {
  59811. return s.String()
  59812. }
  59813. // SetCurrencyCode sets the CurrencyCode field's value.
  59814. func (s *PriceScheduleSpecification) SetCurrencyCode(v string) *PriceScheduleSpecification {
  59815. s.CurrencyCode = &v
  59816. return s
  59817. }
  59818. // SetPrice sets the Price field's value.
  59819. func (s *PriceScheduleSpecification) SetPrice(v float64) *PriceScheduleSpecification {
  59820. s.Price = &v
  59821. return s
  59822. }
  59823. // SetTerm sets the Term field's value.
  59824. func (s *PriceScheduleSpecification) SetTerm(v int64) *PriceScheduleSpecification {
  59825. s.Term = &v
  59826. return s
  59827. }
  59828. // Describes a Reserved Instance offering.
  59829. type PricingDetail struct {
  59830. _ struct{} `type:"structure"`
  59831. // The number of reservations available for the price.
  59832. Count *int64 `locationName:"count" type:"integer"`
  59833. // The price per instance.
  59834. Price *float64 `locationName:"price" type:"double"`
  59835. }
  59836. // String returns the string representation
  59837. func (s PricingDetail) String() string {
  59838. return awsutil.Prettify(s)
  59839. }
  59840. // GoString returns the string representation
  59841. func (s PricingDetail) GoString() string {
  59842. return s.String()
  59843. }
  59844. // SetCount sets the Count field's value.
  59845. func (s *PricingDetail) SetCount(v int64) *PricingDetail {
  59846. s.Count = &v
  59847. return s
  59848. }
  59849. // SetPrice sets the Price field's value.
  59850. func (s *PricingDetail) SetPrice(v float64) *PricingDetail {
  59851. s.Price = &v
  59852. return s
  59853. }
  59854. // PrincipalIdFormat description
  59855. type PrincipalIdFormat struct {
  59856. _ struct{} `type:"structure"`
  59857. // PrincipalIdFormatARN description
  59858. Arn *string `locationName:"arn" type:"string"`
  59859. // PrincipalIdFormatStatuses description
  59860. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  59861. }
  59862. // String returns the string representation
  59863. func (s PrincipalIdFormat) String() string {
  59864. return awsutil.Prettify(s)
  59865. }
  59866. // GoString returns the string representation
  59867. func (s PrincipalIdFormat) GoString() string {
  59868. return s.String()
  59869. }
  59870. // SetArn sets the Arn field's value.
  59871. func (s *PrincipalIdFormat) SetArn(v string) *PrincipalIdFormat {
  59872. s.Arn = &v
  59873. return s
  59874. }
  59875. // SetStatuses sets the Statuses field's value.
  59876. func (s *PrincipalIdFormat) SetStatuses(v []*IdFormat) *PrincipalIdFormat {
  59877. s.Statuses = v
  59878. return s
  59879. }
  59880. // Describes a secondary private IPv4 address for a network interface.
  59881. type PrivateIpAddressSpecification struct {
  59882. _ struct{} `type:"structure"`
  59883. // Indicates whether the private IPv4 address is the primary private IPv4 address.
  59884. // Only one IPv4 address can be designated as primary.
  59885. Primary *bool `locationName:"primary" type:"boolean"`
  59886. // The private IPv4 addresses.
  59887. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  59888. }
  59889. // String returns the string representation
  59890. func (s PrivateIpAddressSpecification) String() string {
  59891. return awsutil.Prettify(s)
  59892. }
  59893. // GoString returns the string representation
  59894. func (s PrivateIpAddressSpecification) GoString() string {
  59895. return s.String()
  59896. }
  59897. // SetPrimary sets the Primary field's value.
  59898. func (s *PrivateIpAddressSpecification) SetPrimary(v bool) *PrivateIpAddressSpecification {
  59899. s.Primary = &v
  59900. return s
  59901. }
  59902. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  59903. func (s *PrivateIpAddressSpecification) SetPrivateIpAddress(v string) *PrivateIpAddressSpecification {
  59904. s.PrivateIpAddress = &v
  59905. return s
  59906. }
  59907. // Describes a product code.
  59908. type ProductCode struct {
  59909. _ struct{} `type:"structure"`
  59910. // The product code.
  59911. ProductCodeId *string `locationName:"productCode" type:"string"`
  59912. // The type of product code.
  59913. ProductCodeType *string `locationName:"type" type:"string" enum:"ProductCodeValues"`
  59914. }
  59915. // String returns the string representation
  59916. func (s ProductCode) String() string {
  59917. return awsutil.Prettify(s)
  59918. }
  59919. // GoString returns the string representation
  59920. func (s ProductCode) GoString() string {
  59921. return s.String()
  59922. }
  59923. // SetProductCodeId sets the ProductCodeId field's value.
  59924. func (s *ProductCode) SetProductCodeId(v string) *ProductCode {
  59925. s.ProductCodeId = &v
  59926. return s
  59927. }
  59928. // SetProductCodeType sets the ProductCodeType field's value.
  59929. func (s *ProductCode) SetProductCodeType(v string) *ProductCode {
  59930. s.ProductCodeType = &v
  59931. return s
  59932. }
  59933. // Describes a virtual private gateway propagating route.
  59934. type PropagatingVgw struct {
  59935. _ struct{} `type:"structure"`
  59936. // The ID of the virtual private gateway.
  59937. GatewayId *string `locationName:"gatewayId" type:"string"`
  59938. }
  59939. // String returns the string representation
  59940. func (s PropagatingVgw) String() string {
  59941. return awsutil.Prettify(s)
  59942. }
  59943. // GoString returns the string representation
  59944. func (s PropagatingVgw) GoString() string {
  59945. return s.String()
  59946. }
  59947. // SetGatewayId sets the GatewayId field's value.
  59948. func (s *PropagatingVgw) SetGatewayId(v string) *PropagatingVgw {
  59949. s.GatewayId = &v
  59950. return s
  59951. }
  59952. type ProvisionByoipCidrInput struct {
  59953. _ struct{} `type:"structure"`
  59954. // The public IPv4 address range, in CIDR notation. The most specific prefix
  59955. // that you can specify is /24. The address range cannot overlap with another
  59956. // address range that you've brought to this or another region.
  59957. //
  59958. // Cidr is a required field
  59959. Cidr *string `type:"string" required:"true"`
  59960. // A signed document that proves that you are authorized to bring the specified
  59961. // IP address range to Amazon using BYOIP.
  59962. CidrAuthorizationContext *CidrAuthorizationContext `type:"structure"`
  59963. // A description for the address range and the address pool.
  59964. Description *string `type:"string"`
  59965. // Checks whether you have the required permissions for the action, without
  59966. // actually making the request, and provides an error response. If you have
  59967. // the required permissions, the error response is DryRunOperation. Otherwise,
  59968. // it is UnauthorizedOperation.
  59969. DryRun *bool `type:"boolean"`
  59970. }
  59971. // String returns the string representation
  59972. func (s ProvisionByoipCidrInput) String() string {
  59973. return awsutil.Prettify(s)
  59974. }
  59975. // GoString returns the string representation
  59976. func (s ProvisionByoipCidrInput) GoString() string {
  59977. return s.String()
  59978. }
  59979. // Validate inspects the fields of the type to determine if they are valid.
  59980. func (s *ProvisionByoipCidrInput) Validate() error {
  59981. invalidParams := request.ErrInvalidParams{Context: "ProvisionByoipCidrInput"}
  59982. if s.Cidr == nil {
  59983. invalidParams.Add(request.NewErrParamRequired("Cidr"))
  59984. }
  59985. if s.CidrAuthorizationContext != nil {
  59986. if err := s.CidrAuthorizationContext.Validate(); err != nil {
  59987. invalidParams.AddNested("CidrAuthorizationContext", err.(request.ErrInvalidParams))
  59988. }
  59989. }
  59990. if invalidParams.Len() > 0 {
  59991. return invalidParams
  59992. }
  59993. return nil
  59994. }
  59995. // SetCidr sets the Cidr field's value.
  59996. func (s *ProvisionByoipCidrInput) SetCidr(v string) *ProvisionByoipCidrInput {
  59997. s.Cidr = &v
  59998. return s
  59999. }
  60000. // SetCidrAuthorizationContext sets the CidrAuthorizationContext field's value.
  60001. func (s *ProvisionByoipCidrInput) SetCidrAuthorizationContext(v *CidrAuthorizationContext) *ProvisionByoipCidrInput {
  60002. s.CidrAuthorizationContext = v
  60003. return s
  60004. }
  60005. // SetDescription sets the Description field's value.
  60006. func (s *ProvisionByoipCidrInput) SetDescription(v string) *ProvisionByoipCidrInput {
  60007. s.Description = &v
  60008. return s
  60009. }
  60010. // SetDryRun sets the DryRun field's value.
  60011. func (s *ProvisionByoipCidrInput) SetDryRun(v bool) *ProvisionByoipCidrInput {
  60012. s.DryRun = &v
  60013. return s
  60014. }
  60015. type ProvisionByoipCidrOutput struct {
  60016. _ struct{} `type:"structure"`
  60017. // Information about the address pool.
  60018. ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"`
  60019. }
  60020. // String returns the string representation
  60021. func (s ProvisionByoipCidrOutput) String() string {
  60022. return awsutil.Prettify(s)
  60023. }
  60024. // GoString returns the string representation
  60025. func (s ProvisionByoipCidrOutput) GoString() string {
  60026. return s.String()
  60027. }
  60028. // SetByoipCidr sets the ByoipCidr field's value.
  60029. func (s *ProvisionByoipCidrOutput) SetByoipCidr(v *ByoipCidr) *ProvisionByoipCidrOutput {
  60030. s.ByoipCidr = v
  60031. return s
  60032. }
  60033. // Reserved. If you need to sustain traffic greater than the documented limits
  60034. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  60035. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  60036. type ProvisionedBandwidth struct {
  60037. _ struct{} `type:"structure"`
  60038. // Reserved. If you need to sustain traffic greater than the documented limits
  60039. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  60040. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  60041. ProvisionTime *time.Time `locationName:"provisionTime" type:"timestamp"`
  60042. // Reserved. If you need to sustain traffic greater than the documented limits
  60043. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  60044. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  60045. Provisioned *string `locationName:"provisioned" type:"string"`
  60046. // Reserved. If you need to sustain traffic greater than the documented limits
  60047. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  60048. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  60049. RequestTime *time.Time `locationName:"requestTime" type:"timestamp"`
  60050. // Reserved. If you need to sustain traffic greater than the documented limits
  60051. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  60052. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  60053. Requested *string `locationName:"requested" type:"string"`
  60054. // Reserved. If you need to sustain traffic greater than the documented limits
  60055. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  60056. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  60057. Status *string `locationName:"status" type:"string"`
  60058. }
  60059. // String returns the string representation
  60060. func (s ProvisionedBandwidth) String() string {
  60061. return awsutil.Prettify(s)
  60062. }
  60063. // GoString returns the string representation
  60064. func (s ProvisionedBandwidth) GoString() string {
  60065. return s.String()
  60066. }
  60067. // SetProvisionTime sets the ProvisionTime field's value.
  60068. func (s *ProvisionedBandwidth) SetProvisionTime(v time.Time) *ProvisionedBandwidth {
  60069. s.ProvisionTime = &v
  60070. return s
  60071. }
  60072. // SetProvisioned sets the Provisioned field's value.
  60073. func (s *ProvisionedBandwidth) SetProvisioned(v string) *ProvisionedBandwidth {
  60074. s.Provisioned = &v
  60075. return s
  60076. }
  60077. // SetRequestTime sets the RequestTime field's value.
  60078. func (s *ProvisionedBandwidth) SetRequestTime(v time.Time) *ProvisionedBandwidth {
  60079. s.RequestTime = &v
  60080. return s
  60081. }
  60082. // SetRequested sets the Requested field's value.
  60083. func (s *ProvisionedBandwidth) SetRequested(v string) *ProvisionedBandwidth {
  60084. s.Requested = &v
  60085. return s
  60086. }
  60087. // SetStatus sets the Status field's value.
  60088. func (s *ProvisionedBandwidth) SetStatus(v string) *ProvisionedBandwidth {
  60089. s.Status = &v
  60090. return s
  60091. }
  60092. // Describes an address pool.
  60093. type PublicIpv4Pool struct {
  60094. _ struct{} `type:"structure"`
  60095. // A description of the address pool.
  60096. Description *string `locationName:"description" type:"string"`
  60097. // The address ranges.
  60098. PoolAddressRanges []*PublicIpv4PoolRange `locationName:"poolAddressRangeSet" locationNameList:"item" type:"list"`
  60099. // The ID of the IPv4 address pool.
  60100. PoolId *string `locationName:"poolId" type:"string"`
  60101. // The total number of addresses.
  60102. TotalAddressCount *int64 `locationName:"totalAddressCount" type:"integer"`
  60103. // The total number of available addresses.
  60104. TotalAvailableAddressCount *int64 `locationName:"totalAvailableAddressCount" type:"integer"`
  60105. }
  60106. // String returns the string representation
  60107. func (s PublicIpv4Pool) String() string {
  60108. return awsutil.Prettify(s)
  60109. }
  60110. // GoString returns the string representation
  60111. func (s PublicIpv4Pool) GoString() string {
  60112. return s.String()
  60113. }
  60114. // SetDescription sets the Description field's value.
  60115. func (s *PublicIpv4Pool) SetDescription(v string) *PublicIpv4Pool {
  60116. s.Description = &v
  60117. return s
  60118. }
  60119. // SetPoolAddressRanges sets the PoolAddressRanges field's value.
  60120. func (s *PublicIpv4Pool) SetPoolAddressRanges(v []*PublicIpv4PoolRange) *PublicIpv4Pool {
  60121. s.PoolAddressRanges = v
  60122. return s
  60123. }
  60124. // SetPoolId sets the PoolId field's value.
  60125. func (s *PublicIpv4Pool) SetPoolId(v string) *PublicIpv4Pool {
  60126. s.PoolId = &v
  60127. return s
  60128. }
  60129. // SetTotalAddressCount sets the TotalAddressCount field's value.
  60130. func (s *PublicIpv4Pool) SetTotalAddressCount(v int64) *PublicIpv4Pool {
  60131. s.TotalAddressCount = &v
  60132. return s
  60133. }
  60134. // SetTotalAvailableAddressCount sets the TotalAvailableAddressCount field's value.
  60135. func (s *PublicIpv4Pool) SetTotalAvailableAddressCount(v int64) *PublicIpv4Pool {
  60136. s.TotalAvailableAddressCount = &v
  60137. return s
  60138. }
  60139. // Describes an address range of an IPv4 address pool.
  60140. type PublicIpv4PoolRange struct {
  60141. _ struct{} `type:"structure"`
  60142. // The number of addresses in the range.
  60143. AddressCount *int64 `locationName:"addressCount" type:"integer"`
  60144. // The number of available addresses in the range.
  60145. AvailableAddressCount *int64 `locationName:"availableAddressCount" type:"integer"`
  60146. // The first IP address in the range.
  60147. FirstAddress *string `locationName:"firstAddress" type:"string"`
  60148. // The last IP address in the range.
  60149. LastAddress *string `locationName:"lastAddress" type:"string"`
  60150. }
  60151. // String returns the string representation
  60152. func (s PublicIpv4PoolRange) String() string {
  60153. return awsutil.Prettify(s)
  60154. }
  60155. // GoString returns the string representation
  60156. func (s PublicIpv4PoolRange) GoString() string {
  60157. return s.String()
  60158. }
  60159. // SetAddressCount sets the AddressCount field's value.
  60160. func (s *PublicIpv4PoolRange) SetAddressCount(v int64) *PublicIpv4PoolRange {
  60161. s.AddressCount = &v
  60162. return s
  60163. }
  60164. // SetAvailableAddressCount sets the AvailableAddressCount field's value.
  60165. func (s *PublicIpv4PoolRange) SetAvailableAddressCount(v int64) *PublicIpv4PoolRange {
  60166. s.AvailableAddressCount = &v
  60167. return s
  60168. }
  60169. // SetFirstAddress sets the FirstAddress field's value.
  60170. func (s *PublicIpv4PoolRange) SetFirstAddress(v string) *PublicIpv4PoolRange {
  60171. s.FirstAddress = &v
  60172. return s
  60173. }
  60174. // SetLastAddress sets the LastAddress field's value.
  60175. func (s *PublicIpv4PoolRange) SetLastAddress(v string) *PublicIpv4PoolRange {
  60176. s.LastAddress = &v
  60177. return s
  60178. }
  60179. // Describes the result of the purchase.
  60180. type Purchase struct {
  60181. _ struct{} `type:"structure"`
  60182. // The currency in which the UpfrontPrice and HourlyPrice amounts are specified.
  60183. // At this time, the only supported currency is USD.
  60184. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  60185. // The duration of the reservation's term in seconds.
  60186. Duration *int64 `locationName:"duration" type:"integer"`
  60187. // The IDs of the Dedicated Hosts associated with the reservation.
  60188. HostIdSet []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  60189. // The ID of the reservation.
  60190. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  60191. // The hourly price of the reservation per hour.
  60192. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  60193. // The instance family on the Dedicated Host that the reservation can be associated
  60194. // with.
  60195. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  60196. // The payment option for the reservation.
  60197. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  60198. // The upfront price of the reservation.
  60199. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  60200. }
  60201. // String returns the string representation
  60202. func (s Purchase) String() string {
  60203. return awsutil.Prettify(s)
  60204. }
  60205. // GoString returns the string representation
  60206. func (s Purchase) GoString() string {
  60207. return s.String()
  60208. }
  60209. // SetCurrencyCode sets the CurrencyCode field's value.
  60210. func (s *Purchase) SetCurrencyCode(v string) *Purchase {
  60211. s.CurrencyCode = &v
  60212. return s
  60213. }
  60214. // SetDuration sets the Duration field's value.
  60215. func (s *Purchase) SetDuration(v int64) *Purchase {
  60216. s.Duration = &v
  60217. return s
  60218. }
  60219. // SetHostIdSet sets the HostIdSet field's value.
  60220. func (s *Purchase) SetHostIdSet(v []*string) *Purchase {
  60221. s.HostIdSet = v
  60222. return s
  60223. }
  60224. // SetHostReservationId sets the HostReservationId field's value.
  60225. func (s *Purchase) SetHostReservationId(v string) *Purchase {
  60226. s.HostReservationId = &v
  60227. return s
  60228. }
  60229. // SetHourlyPrice sets the HourlyPrice field's value.
  60230. func (s *Purchase) SetHourlyPrice(v string) *Purchase {
  60231. s.HourlyPrice = &v
  60232. return s
  60233. }
  60234. // SetInstanceFamily sets the InstanceFamily field's value.
  60235. func (s *Purchase) SetInstanceFamily(v string) *Purchase {
  60236. s.InstanceFamily = &v
  60237. return s
  60238. }
  60239. // SetPaymentOption sets the PaymentOption field's value.
  60240. func (s *Purchase) SetPaymentOption(v string) *Purchase {
  60241. s.PaymentOption = &v
  60242. return s
  60243. }
  60244. // SetUpfrontPrice sets the UpfrontPrice field's value.
  60245. func (s *Purchase) SetUpfrontPrice(v string) *Purchase {
  60246. s.UpfrontPrice = &v
  60247. return s
  60248. }
  60249. type PurchaseHostReservationInput struct {
  60250. _ struct{} `type:"structure"`
  60251. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  60252. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  60253. // in the Amazon Elastic Compute Cloud User Guide.
  60254. ClientToken *string `type:"string"`
  60255. // The currency in which the totalUpfrontPrice, LimitPrice, and totalHourlyPrice
  60256. // amounts are specified. At this time, the only supported currency is USD.
  60257. CurrencyCode *string `type:"string" enum:"CurrencyCodeValues"`
  60258. // The IDs of the Dedicated Hosts with which the reservation will be associated.
  60259. //
  60260. // HostIdSet is a required field
  60261. HostIdSet []*string `locationNameList:"item" type:"list" required:"true"`
  60262. // The specified limit is checked against the total upfront cost of the reservation
  60263. // (calculated as the offering's upfront cost multiplied by the host count).
  60264. // If the total upfront cost is greater than the specified price limit, the
  60265. // request fails. This is used to ensure that the purchase does not exceed the
  60266. // expected upfront cost of the purchase. At this time, the only supported currency
  60267. // is USD. For example, to indicate a limit price of USD 100, specify 100.00.
  60268. LimitPrice *string `type:"string"`
  60269. // The ID of the offering.
  60270. //
  60271. // OfferingId is a required field
  60272. OfferingId *string `type:"string" required:"true"`
  60273. }
  60274. // String returns the string representation
  60275. func (s PurchaseHostReservationInput) String() string {
  60276. return awsutil.Prettify(s)
  60277. }
  60278. // GoString returns the string representation
  60279. func (s PurchaseHostReservationInput) GoString() string {
  60280. return s.String()
  60281. }
  60282. // Validate inspects the fields of the type to determine if they are valid.
  60283. func (s *PurchaseHostReservationInput) Validate() error {
  60284. invalidParams := request.ErrInvalidParams{Context: "PurchaseHostReservationInput"}
  60285. if s.HostIdSet == nil {
  60286. invalidParams.Add(request.NewErrParamRequired("HostIdSet"))
  60287. }
  60288. if s.OfferingId == nil {
  60289. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  60290. }
  60291. if invalidParams.Len() > 0 {
  60292. return invalidParams
  60293. }
  60294. return nil
  60295. }
  60296. // SetClientToken sets the ClientToken field's value.
  60297. func (s *PurchaseHostReservationInput) SetClientToken(v string) *PurchaseHostReservationInput {
  60298. s.ClientToken = &v
  60299. return s
  60300. }
  60301. // SetCurrencyCode sets the CurrencyCode field's value.
  60302. func (s *PurchaseHostReservationInput) SetCurrencyCode(v string) *PurchaseHostReservationInput {
  60303. s.CurrencyCode = &v
  60304. return s
  60305. }
  60306. // SetHostIdSet sets the HostIdSet field's value.
  60307. func (s *PurchaseHostReservationInput) SetHostIdSet(v []*string) *PurchaseHostReservationInput {
  60308. s.HostIdSet = v
  60309. return s
  60310. }
  60311. // SetLimitPrice sets the LimitPrice field's value.
  60312. func (s *PurchaseHostReservationInput) SetLimitPrice(v string) *PurchaseHostReservationInput {
  60313. s.LimitPrice = &v
  60314. return s
  60315. }
  60316. // SetOfferingId sets the OfferingId field's value.
  60317. func (s *PurchaseHostReservationInput) SetOfferingId(v string) *PurchaseHostReservationInput {
  60318. s.OfferingId = &v
  60319. return s
  60320. }
  60321. type PurchaseHostReservationOutput struct {
  60322. _ struct{} `type:"structure"`
  60323. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  60324. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  60325. // in the Amazon Elastic Compute Cloud User Guide.
  60326. ClientToken *string `locationName:"clientToken" type:"string"`
  60327. // The currency in which the totalUpfrontPrice and totalHourlyPrice amounts
  60328. // are specified. At this time, the only supported currency is USD.
  60329. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  60330. // Describes the details of the purchase.
  60331. Purchase []*Purchase `locationName:"purchase" locationNameList:"item" type:"list"`
  60332. // The total hourly price of the reservation calculated per hour.
  60333. TotalHourlyPrice *string `locationName:"totalHourlyPrice" type:"string"`
  60334. // The total amount charged to your account when you purchase the reservation.
  60335. TotalUpfrontPrice *string `locationName:"totalUpfrontPrice" type:"string"`
  60336. }
  60337. // String returns the string representation
  60338. func (s PurchaseHostReservationOutput) String() string {
  60339. return awsutil.Prettify(s)
  60340. }
  60341. // GoString returns the string representation
  60342. func (s PurchaseHostReservationOutput) GoString() string {
  60343. return s.String()
  60344. }
  60345. // SetClientToken sets the ClientToken field's value.
  60346. func (s *PurchaseHostReservationOutput) SetClientToken(v string) *PurchaseHostReservationOutput {
  60347. s.ClientToken = &v
  60348. return s
  60349. }
  60350. // SetCurrencyCode sets the CurrencyCode field's value.
  60351. func (s *PurchaseHostReservationOutput) SetCurrencyCode(v string) *PurchaseHostReservationOutput {
  60352. s.CurrencyCode = &v
  60353. return s
  60354. }
  60355. // SetPurchase sets the Purchase field's value.
  60356. func (s *PurchaseHostReservationOutput) SetPurchase(v []*Purchase) *PurchaseHostReservationOutput {
  60357. s.Purchase = v
  60358. return s
  60359. }
  60360. // SetTotalHourlyPrice sets the TotalHourlyPrice field's value.
  60361. func (s *PurchaseHostReservationOutput) SetTotalHourlyPrice(v string) *PurchaseHostReservationOutput {
  60362. s.TotalHourlyPrice = &v
  60363. return s
  60364. }
  60365. // SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value.
  60366. func (s *PurchaseHostReservationOutput) SetTotalUpfrontPrice(v string) *PurchaseHostReservationOutput {
  60367. s.TotalUpfrontPrice = &v
  60368. return s
  60369. }
  60370. // Describes a request to purchase Scheduled Instances.
  60371. type PurchaseRequest struct {
  60372. _ struct{} `type:"structure"`
  60373. // The number of instances.
  60374. //
  60375. // InstanceCount is a required field
  60376. InstanceCount *int64 `type:"integer" required:"true"`
  60377. // The purchase token.
  60378. //
  60379. // PurchaseToken is a required field
  60380. PurchaseToken *string `type:"string" required:"true"`
  60381. }
  60382. // String returns the string representation
  60383. func (s PurchaseRequest) String() string {
  60384. return awsutil.Prettify(s)
  60385. }
  60386. // GoString returns the string representation
  60387. func (s PurchaseRequest) GoString() string {
  60388. return s.String()
  60389. }
  60390. // Validate inspects the fields of the type to determine if they are valid.
  60391. func (s *PurchaseRequest) Validate() error {
  60392. invalidParams := request.ErrInvalidParams{Context: "PurchaseRequest"}
  60393. if s.InstanceCount == nil {
  60394. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  60395. }
  60396. if s.PurchaseToken == nil {
  60397. invalidParams.Add(request.NewErrParamRequired("PurchaseToken"))
  60398. }
  60399. if invalidParams.Len() > 0 {
  60400. return invalidParams
  60401. }
  60402. return nil
  60403. }
  60404. // SetInstanceCount sets the InstanceCount field's value.
  60405. func (s *PurchaseRequest) SetInstanceCount(v int64) *PurchaseRequest {
  60406. s.InstanceCount = &v
  60407. return s
  60408. }
  60409. // SetPurchaseToken sets the PurchaseToken field's value.
  60410. func (s *PurchaseRequest) SetPurchaseToken(v string) *PurchaseRequest {
  60411. s.PurchaseToken = &v
  60412. return s
  60413. }
  60414. // Contains the parameters for PurchaseReservedInstancesOffering.
  60415. type PurchaseReservedInstancesOfferingInput struct {
  60416. _ struct{} `type:"structure"`
  60417. // Checks whether you have the required permissions for the action, without
  60418. // actually making the request, and provides an error response. If you have
  60419. // the required permissions, the error response is DryRunOperation. Otherwise,
  60420. // it is UnauthorizedOperation.
  60421. DryRun *bool `locationName:"dryRun" type:"boolean"`
  60422. // The number of Reserved Instances to purchase.
  60423. //
  60424. // InstanceCount is a required field
  60425. InstanceCount *int64 `type:"integer" required:"true"`
  60426. // Specified for Reserved Instance Marketplace offerings to limit the total
  60427. // order and ensure that the Reserved Instances are not purchased at unexpected
  60428. // prices.
  60429. LimitPrice *ReservedInstanceLimitPrice `locationName:"limitPrice" type:"structure"`
  60430. // The ID of the Reserved Instance offering to purchase.
  60431. //
  60432. // ReservedInstancesOfferingId is a required field
  60433. ReservedInstancesOfferingId *string `type:"string" required:"true"`
  60434. }
  60435. // String returns the string representation
  60436. func (s PurchaseReservedInstancesOfferingInput) String() string {
  60437. return awsutil.Prettify(s)
  60438. }
  60439. // GoString returns the string representation
  60440. func (s PurchaseReservedInstancesOfferingInput) GoString() string {
  60441. return s.String()
  60442. }
  60443. // Validate inspects the fields of the type to determine if they are valid.
  60444. func (s *PurchaseReservedInstancesOfferingInput) Validate() error {
  60445. invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedInstancesOfferingInput"}
  60446. if s.InstanceCount == nil {
  60447. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  60448. }
  60449. if s.ReservedInstancesOfferingId == nil {
  60450. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesOfferingId"))
  60451. }
  60452. if invalidParams.Len() > 0 {
  60453. return invalidParams
  60454. }
  60455. return nil
  60456. }
  60457. // SetDryRun sets the DryRun field's value.
  60458. func (s *PurchaseReservedInstancesOfferingInput) SetDryRun(v bool) *PurchaseReservedInstancesOfferingInput {
  60459. s.DryRun = &v
  60460. return s
  60461. }
  60462. // SetInstanceCount sets the InstanceCount field's value.
  60463. func (s *PurchaseReservedInstancesOfferingInput) SetInstanceCount(v int64) *PurchaseReservedInstancesOfferingInput {
  60464. s.InstanceCount = &v
  60465. return s
  60466. }
  60467. // SetLimitPrice sets the LimitPrice field's value.
  60468. func (s *PurchaseReservedInstancesOfferingInput) SetLimitPrice(v *ReservedInstanceLimitPrice) *PurchaseReservedInstancesOfferingInput {
  60469. s.LimitPrice = v
  60470. return s
  60471. }
  60472. // SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value.
  60473. func (s *PurchaseReservedInstancesOfferingInput) SetReservedInstancesOfferingId(v string) *PurchaseReservedInstancesOfferingInput {
  60474. s.ReservedInstancesOfferingId = &v
  60475. return s
  60476. }
  60477. // Contains the output of PurchaseReservedInstancesOffering.
  60478. type PurchaseReservedInstancesOfferingOutput struct {
  60479. _ struct{} `type:"structure"`
  60480. // The IDs of the purchased Reserved Instances.
  60481. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  60482. }
  60483. // String returns the string representation
  60484. func (s PurchaseReservedInstancesOfferingOutput) String() string {
  60485. return awsutil.Prettify(s)
  60486. }
  60487. // GoString returns the string representation
  60488. func (s PurchaseReservedInstancesOfferingOutput) GoString() string {
  60489. return s.String()
  60490. }
  60491. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  60492. func (s *PurchaseReservedInstancesOfferingOutput) SetReservedInstancesId(v string) *PurchaseReservedInstancesOfferingOutput {
  60493. s.ReservedInstancesId = &v
  60494. return s
  60495. }
  60496. // Contains the parameters for PurchaseScheduledInstances.
  60497. type PurchaseScheduledInstancesInput struct {
  60498. _ struct{} `type:"structure"`
  60499. // Unique, case-sensitive identifier that ensures the idempotency of the request.
  60500. // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  60501. ClientToken *string `type:"string" idempotencyToken:"true"`
  60502. // Checks whether you have the required permissions for the action, without
  60503. // actually making the request, and provides an error response. If you have
  60504. // the required permissions, the error response is DryRunOperation. Otherwise,
  60505. // it is UnauthorizedOperation.
  60506. DryRun *bool `type:"boolean"`
  60507. // One or more purchase requests.
  60508. //
  60509. // PurchaseRequests is a required field
  60510. PurchaseRequests []*PurchaseRequest `locationName:"PurchaseRequest" locationNameList:"PurchaseRequest" min:"1" type:"list" required:"true"`
  60511. }
  60512. // String returns the string representation
  60513. func (s PurchaseScheduledInstancesInput) String() string {
  60514. return awsutil.Prettify(s)
  60515. }
  60516. // GoString returns the string representation
  60517. func (s PurchaseScheduledInstancesInput) GoString() string {
  60518. return s.String()
  60519. }
  60520. // Validate inspects the fields of the type to determine if they are valid.
  60521. func (s *PurchaseScheduledInstancesInput) Validate() error {
  60522. invalidParams := request.ErrInvalidParams{Context: "PurchaseScheduledInstancesInput"}
  60523. if s.PurchaseRequests == nil {
  60524. invalidParams.Add(request.NewErrParamRequired("PurchaseRequests"))
  60525. }
  60526. if s.PurchaseRequests != nil && len(s.PurchaseRequests) < 1 {
  60527. invalidParams.Add(request.NewErrParamMinLen("PurchaseRequests", 1))
  60528. }
  60529. if s.PurchaseRequests != nil {
  60530. for i, v := range s.PurchaseRequests {
  60531. if v == nil {
  60532. continue
  60533. }
  60534. if err := v.Validate(); err != nil {
  60535. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PurchaseRequests", i), err.(request.ErrInvalidParams))
  60536. }
  60537. }
  60538. }
  60539. if invalidParams.Len() > 0 {
  60540. return invalidParams
  60541. }
  60542. return nil
  60543. }
  60544. // SetClientToken sets the ClientToken field's value.
  60545. func (s *PurchaseScheduledInstancesInput) SetClientToken(v string) *PurchaseScheduledInstancesInput {
  60546. s.ClientToken = &v
  60547. return s
  60548. }
  60549. // SetDryRun sets the DryRun field's value.
  60550. func (s *PurchaseScheduledInstancesInput) SetDryRun(v bool) *PurchaseScheduledInstancesInput {
  60551. s.DryRun = &v
  60552. return s
  60553. }
  60554. // SetPurchaseRequests sets the PurchaseRequests field's value.
  60555. func (s *PurchaseScheduledInstancesInput) SetPurchaseRequests(v []*PurchaseRequest) *PurchaseScheduledInstancesInput {
  60556. s.PurchaseRequests = v
  60557. return s
  60558. }
  60559. // Contains the output of PurchaseScheduledInstances.
  60560. type PurchaseScheduledInstancesOutput struct {
  60561. _ struct{} `type:"structure"`
  60562. // Information about the Scheduled Instances.
  60563. ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
  60564. }
  60565. // String returns the string representation
  60566. func (s PurchaseScheduledInstancesOutput) String() string {
  60567. return awsutil.Prettify(s)
  60568. }
  60569. // GoString returns the string representation
  60570. func (s PurchaseScheduledInstancesOutput) GoString() string {
  60571. return s.String()
  60572. }
  60573. // SetScheduledInstanceSet sets the ScheduledInstanceSet field's value.
  60574. func (s *PurchaseScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *PurchaseScheduledInstancesOutput {
  60575. s.ScheduledInstanceSet = v
  60576. return s
  60577. }
  60578. type RebootInstancesInput struct {
  60579. _ struct{} `type:"structure"`
  60580. // Checks whether you have the required permissions for the action, without
  60581. // actually making the request, and provides an error response. If you have
  60582. // the required permissions, the error response is DryRunOperation. Otherwise,
  60583. // it is UnauthorizedOperation.
  60584. DryRun *bool `locationName:"dryRun" type:"boolean"`
  60585. // One or more instance IDs.
  60586. //
  60587. // InstanceIds is a required field
  60588. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  60589. }
  60590. // String returns the string representation
  60591. func (s RebootInstancesInput) String() string {
  60592. return awsutil.Prettify(s)
  60593. }
  60594. // GoString returns the string representation
  60595. func (s RebootInstancesInput) GoString() string {
  60596. return s.String()
  60597. }
  60598. // Validate inspects the fields of the type to determine if they are valid.
  60599. func (s *RebootInstancesInput) Validate() error {
  60600. invalidParams := request.ErrInvalidParams{Context: "RebootInstancesInput"}
  60601. if s.InstanceIds == nil {
  60602. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  60603. }
  60604. if invalidParams.Len() > 0 {
  60605. return invalidParams
  60606. }
  60607. return nil
  60608. }
  60609. // SetDryRun sets the DryRun field's value.
  60610. func (s *RebootInstancesInput) SetDryRun(v bool) *RebootInstancesInput {
  60611. s.DryRun = &v
  60612. return s
  60613. }
  60614. // SetInstanceIds sets the InstanceIds field's value.
  60615. func (s *RebootInstancesInput) SetInstanceIds(v []*string) *RebootInstancesInput {
  60616. s.InstanceIds = v
  60617. return s
  60618. }
  60619. type RebootInstancesOutput struct {
  60620. _ struct{} `type:"structure"`
  60621. }
  60622. // String returns the string representation
  60623. func (s RebootInstancesOutput) String() string {
  60624. return awsutil.Prettify(s)
  60625. }
  60626. // GoString returns the string representation
  60627. func (s RebootInstancesOutput) GoString() string {
  60628. return s.String()
  60629. }
  60630. // Describes a recurring charge.
  60631. type RecurringCharge struct {
  60632. _ struct{} `type:"structure"`
  60633. // The amount of the recurring charge.
  60634. Amount *float64 `locationName:"amount" type:"double"`
  60635. // The frequency of the recurring charge.
  60636. Frequency *string `locationName:"frequency" type:"string" enum:"RecurringChargeFrequency"`
  60637. }
  60638. // String returns the string representation
  60639. func (s RecurringCharge) String() string {
  60640. return awsutil.Prettify(s)
  60641. }
  60642. // GoString returns the string representation
  60643. func (s RecurringCharge) GoString() string {
  60644. return s.String()
  60645. }
  60646. // SetAmount sets the Amount field's value.
  60647. func (s *RecurringCharge) SetAmount(v float64) *RecurringCharge {
  60648. s.Amount = &v
  60649. return s
  60650. }
  60651. // SetFrequency sets the Frequency field's value.
  60652. func (s *RecurringCharge) SetFrequency(v string) *RecurringCharge {
  60653. s.Frequency = &v
  60654. return s
  60655. }
  60656. // Describes a region.
  60657. type Region struct {
  60658. _ struct{} `type:"structure"`
  60659. // The region service endpoint.
  60660. Endpoint *string `locationName:"regionEndpoint" type:"string"`
  60661. // The name of the region.
  60662. RegionName *string `locationName:"regionName" type:"string"`
  60663. }
  60664. // String returns the string representation
  60665. func (s Region) String() string {
  60666. return awsutil.Prettify(s)
  60667. }
  60668. // GoString returns the string representation
  60669. func (s Region) GoString() string {
  60670. return s.String()
  60671. }
  60672. // SetEndpoint sets the Endpoint field's value.
  60673. func (s *Region) SetEndpoint(v string) *Region {
  60674. s.Endpoint = &v
  60675. return s
  60676. }
  60677. // SetRegionName sets the RegionName field's value.
  60678. func (s *Region) SetRegionName(v string) *Region {
  60679. s.RegionName = &v
  60680. return s
  60681. }
  60682. // Contains the parameters for RegisterImage.
  60683. type RegisterImageInput struct {
  60684. _ struct{} `type:"structure"`
  60685. // The architecture of the AMI.
  60686. //
  60687. // Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs,
  60688. // the architecture specified in the manifest file.
  60689. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  60690. // The billing product codes. Your account must be authorized to specify billing
  60691. // product codes. Otherwise, you can use the AWS Marketplace to bill for the
  60692. // use of an AMI.
  60693. BillingProducts []*string `locationName:"BillingProduct" locationNameList:"item" type:"list"`
  60694. // One or more block device mapping entries.
  60695. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  60696. // A description for your AMI.
  60697. Description *string `locationName:"description" type:"string"`
  60698. // Checks whether you have the required permissions for the action, without
  60699. // actually making the request, and provides an error response. If you have
  60700. // the required permissions, the error response is DryRunOperation. Otherwise,
  60701. // it is UnauthorizedOperation.
  60702. DryRun *bool `locationName:"dryRun" type:"boolean"`
  60703. // Set to true to enable enhanced networking with ENA for the AMI and any instances
  60704. // that you launch from the AMI.
  60705. //
  60706. // This option is supported only for HVM AMIs. Specifying this option with a
  60707. // PV AMI can make instances launched from the AMI unreachable.
  60708. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  60709. // The full path to your AMI manifest in Amazon S3 storage.
  60710. ImageLocation *string `type:"string"`
  60711. // The ID of the kernel.
  60712. KernelId *string `locationName:"kernelId" type:"string"`
  60713. // A name for your AMI.
  60714. //
  60715. // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
  60716. // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
  60717. // at-signs (@), or underscores(_)
  60718. //
  60719. // Name is a required field
  60720. Name *string `locationName:"name" type:"string" required:"true"`
  60721. // The ID of the RAM disk.
  60722. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  60723. // The device name of the root device volume (for example, /dev/sda1).
  60724. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  60725. // Set to simple to enable enhanced networking with the Intel 82599 Virtual
  60726. // Function interface for the AMI and any instances that you launch from the
  60727. // AMI.
  60728. //
  60729. // There is no way to disable sriovNetSupport at this time.
  60730. //
  60731. // This option is supported only for HVM AMIs. Specifying this option with a
  60732. // PV AMI can make instances launched from the AMI unreachable.
  60733. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  60734. // The type of virtualization (hvm | paravirtual).
  60735. //
  60736. // Default: paravirtual
  60737. VirtualizationType *string `locationName:"virtualizationType" type:"string"`
  60738. }
  60739. // String returns the string representation
  60740. func (s RegisterImageInput) String() string {
  60741. return awsutil.Prettify(s)
  60742. }
  60743. // GoString returns the string representation
  60744. func (s RegisterImageInput) GoString() string {
  60745. return s.String()
  60746. }
  60747. // Validate inspects the fields of the type to determine if they are valid.
  60748. func (s *RegisterImageInput) Validate() error {
  60749. invalidParams := request.ErrInvalidParams{Context: "RegisterImageInput"}
  60750. if s.Name == nil {
  60751. invalidParams.Add(request.NewErrParamRequired("Name"))
  60752. }
  60753. if invalidParams.Len() > 0 {
  60754. return invalidParams
  60755. }
  60756. return nil
  60757. }
  60758. // SetArchitecture sets the Architecture field's value.
  60759. func (s *RegisterImageInput) SetArchitecture(v string) *RegisterImageInput {
  60760. s.Architecture = &v
  60761. return s
  60762. }
  60763. // SetBillingProducts sets the BillingProducts field's value.
  60764. func (s *RegisterImageInput) SetBillingProducts(v []*string) *RegisterImageInput {
  60765. s.BillingProducts = v
  60766. return s
  60767. }
  60768. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  60769. func (s *RegisterImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RegisterImageInput {
  60770. s.BlockDeviceMappings = v
  60771. return s
  60772. }
  60773. // SetDescription sets the Description field's value.
  60774. func (s *RegisterImageInput) SetDescription(v string) *RegisterImageInput {
  60775. s.Description = &v
  60776. return s
  60777. }
  60778. // SetDryRun sets the DryRun field's value.
  60779. func (s *RegisterImageInput) SetDryRun(v bool) *RegisterImageInput {
  60780. s.DryRun = &v
  60781. return s
  60782. }
  60783. // SetEnaSupport sets the EnaSupport field's value.
  60784. func (s *RegisterImageInput) SetEnaSupport(v bool) *RegisterImageInput {
  60785. s.EnaSupport = &v
  60786. return s
  60787. }
  60788. // SetImageLocation sets the ImageLocation field's value.
  60789. func (s *RegisterImageInput) SetImageLocation(v string) *RegisterImageInput {
  60790. s.ImageLocation = &v
  60791. return s
  60792. }
  60793. // SetKernelId sets the KernelId field's value.
  60794. func (s *RegisterImageInput) SetKernelId(v string) *RegisterImageInput {
  60795. s.KernelId = &v
  60796. return s
  60797. }
  60798. // SetName sets the Name field's value.
  60799. func (s *RegisterImageInput) SetName(v string) *RegisterImageInput {
  60800. s.Name = &v
  60801. return s
  60802. }
  60803. // SetRamdiskId sets the RamdiskId field's value.
  60804. func (s *RegisterImageInput) SetRamdiskId(v string) *RegisterImageInput {
  60805. s.RamdiskId = &v
  60806. return s
  60807. }
  60808. // SetRootDeviceName sets the RootDeviceName field's value.
  60809. func (s *RegisterImageInput) SetRootDeviceName(v string) *RegisterImageInput {
  60810. s.RootDeviceName = &v
  60811. return s
  60812. }
  60813. // SetSriovNetSupport sets the SriovNetSupport field's value.
  60814. func (s *RegisterImageInput) SetSriovNetSupport(v string) *RegisterImageInput {
  60815. s.SriovNetSupport = &v
  60816. return s
  60817. }
  60818. // SetVirtualizationType sets the VirtualizationType field's value.
  60819. func (s *RegisterImageInput) SetVirtualizationType(v string) *RegisterImageInput {
  60820. s.VirtualizationType = &v
  60821. return s
  60822. }
  60823. // Contains the output of RegisterImage.
  60824. type RegisterImageOutput struct {
  60825. _ struct{} `type:"structure"`
  60826. // The ID of the newly registered AMI.
  60827. ImageId *string `locationName:"imageId" type:"string"`
  60828. }
  60829. // String returns the string representation
  60830. func (s RegisterImageOutput) String() string {
  60831. return awsutil.Prettify(s)
  60832. }
  60833. // GoString returns the string representation
  60834. func (s RegisterImageOutput) GoString() string {
  60835. return s.String()
  60836. }
  60837. // SetImageId sets the ImageId field's value.
  60838. func (s *RegisterImageOutput) SetImageId(v string) *RegisterImageOutput {
  60839. s.ImageId = &v
  60840. return s
  60841. }
  60842. type RejectTransitGatewayVpcAttachmentInput struct {
  60843. _ struct{} `type:"structure"`
  60844. // Checks whether you have the required permissions for the action, without
  60845. // actually making the request, and provides an error response. If you have
  60846. // the required permissions, the error response is DryRunOperation. Otherwise,
  60847. // it is UnauthorizedOperation.
  60848. DryRun *bool `type:"boolean"`
  60849. // The ID of the attachment.
  60850. //
  60851. // TransitGatewayAttachmentId is a required field
  60852. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  60853. }
  60854. // String returns the string representation
  60855. func (s RejectTransitGatewayVpcAttachmentInput) String() string {
  60856. return awsutil.Prettify(s)
  60857. }
  60858. // GoString returns the string representation
  60859. func (s RejectTransitGatewayVpcAttachmentInput) GoString() string {
  60860. return s.String()
  60861. }
  60862. // Validate inspects the fields of the type to determine if they are valid.
  60863. func (s *RejectTransitGatewayVpcAttachmentInput) Validate() error {
  60864. invalidParams := request.ErrInvalidParams{Context: "RejectTransitGatewayVpcAttachmentInput"}
  60865. if s.TransitGatewayAttachmentId == nil {
  60866. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  60867. }
  60868. if invalidParams.Len() > 0 {
  60869. return invalidParams
  60870. }
  60871. return nil
  60872. }
  60873. // SetDryRun sets the DryRun field's value.
  60874. func (s *RejectTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *RejectTransitGatewayVpcAttachmentInput {
  60875. s.DryRun = &v
  60876. return s
  60877. }
  60878. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  60879. func (s *RejectTransitGatewayVpcAttachmentInput) SetTransitGatewayAttachmentId(v string) *RejectTransitGatewayVpcAttachmentInput {
  60880. s.TransitGatewayAttachmentId = &v
  60881. return s
  60882. }
  60883. type RejectTransitGatewayVpcAttachmentOutput struct {
  60884. _ struct{} `type:"structure"`
  60885. // Information about the attachment.
  60886. TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
  60887. }
  60888. // String returns the string representation
  60889. func (s RejectTransitGatewayVpcAttachmentOutput) String() string {
  60890. return awsutil.Prettify(s)
  60891. }
  60892. // GoString returns the string representation
  60893. func (s RejectTransitGatewayVpcAttachmentOutput) GoString() string {
  60894. return s.String()
  60895. }
  60896. // SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value.
  60897. func (s *RejectTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *RejectTransitGatewayVpcAttachmentOutput {
  60898. s.TransitGatewayVpcAttachment = v
  60899. return s
  60900. }
  60901. type RejectVpcEndpointConnectionsInput struct {
  60902. _ struct{} `type:"structure"`
  60903. // Checks whether you have the required permissions for the action, without
  60904. // actually making the request, and provides an error response. If you have
  60905. // the required permissions, the error response is DryRunOperation. Otherwise,
  60906. // it is UnauthorizedOperation.
  60907. DryRun *bool `type:"boolean"`
  60908. // The ID of the service.
  60909. //
  60910. // ServiceId is a required field
  60911. ServiceId *string `type:"string" required:"true"`
  60912. // The IDs of one or more VPC endpoints.
  60913. //
  60914. // VpcEndpointIds is a required field
  60915. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  60916. }
  60917. // String returns the string representation
  60918. func (s RejectVpcEndpointConnectionsInput) String() string {
  60919. return awsutil.Prettify(s)
  60920. }
  60921. // GoString returns the string representation
  60922. func (s RejectVpcEndpointConnectionsInput) GoString() string {
  60923. return s.String()
  60924. }
  60925. // Validate inspects the fields of the type to determine if they are valid.
  60926. func (s *RejectVpcEndpointConnectionsInput) Validate() error {
  60927. invalidParams := request.ErrInvalidParams{Context: "RejectVpcEndpointConnectionsInput"}
  60928. if s.ServiceId == nil {
  60929. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  60930. }
  60931. if s.VpcEndpointIds == nil {
  60932. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  60933. }
  60934. if invalidParams.Len() > 0 {
  60935. return invalidParams
  60936. }
  60937. return nil
  60938. }
  60939. // SetDryRun sets the DryRun field's value.
  60940. func (s *RejectVpcEndpointConnectionsInput) SetDryRun(v bool) *RejectVpcEndpointConnectionsInput {
  60941. s.DryRun = &v
  60942. return s
  60943. }
  60944. // SetServiceId sets the ServiceId field's value.
  60945. func (s *RejectVpcEndpointConnectionsInput) SetServiceId(v string) *RejectVpcEndpointConnectionsInput {
  60946. s.ServiceId = &v
  60947. return s
  60948. }
  60949. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  60950. func (s *RejectVpcEndpointConnectionsInput) SetVpcEndpointIds(v []*string) *RejectVpcEndpointConnectionsInput {
  60951. s.VpcEndpointIds = v
  60952. return s
  60953. }
  60954. type RejectVpcEndpointConnectionsOutput struct {
  60955. _ struct{} `type:"structure"`
  60956. // Information about the endpoints that were not rejected, if applicable.
  60957. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  60958. }
  60959. // String returns the string representation
  60960. func (s RejectVpcEndpointConnectionsOutput) String() string {
  60961. return awsutil.Prettify(s)
  60962. }
  60963. // GoString returns the string representation
  60964. func (s RejectVpcEndpointConnectionsOutput) GoString() string {
  60965. return s.String()
  60966. }
  60967. // SetUnsuccessful sets the Unsuccessful field's value.
  60968. func (s *RejectVpcEndpointConnectionsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *RejectVpcEndpointConnectionsOutput {
  60969. s.Unsuccessful = v
  60970. return s
  60971. }
  60972. type RejectVpcPeeringConnectionInput struct {
  60973. _ struct{} `type:"structure"`
  60974. // Checks whether you have the required permissions for the action, without
  60975. // actually making the request, and provides an error response. If you have
  60976. // the required permissions, the error response is DryRunOperation. Otherwise,
  60977. // it is UnauthorizedOperation.
  60978. DryRun *bool `locationName:"dryRun" type:"boolean"`
  60979. // The ID of the VPC peering connection.
  60980. //
  60981. // VpcPeeringConnectionId is a required field
  60982. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
  60983. }
  60984. // String returns the string representation
  60985. func (s RejectVpcPeeringConnectionInput) String() string {
  60986. return awsutil.Prettify(s)
  60987. }
  60988. // GoString returns the string representation
  60989. func (s RejectVpcPeeringConnectionInput) GoString() string {
  60990. return s.String()
  60991. }
  60992. // Validate inspects the fields of the type to determine if they are valid.
  60993. func (s *RejectVpcPeeringConnectionInput) Validate() error {
  60994. invalidParams := request.ErrInvalidParams{Context: "RejectVpcPeeringConnectionInput"}
  60995. if s.VpcPeeringConnectionId == nil {
  60996. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  60997. }
  60998. if invalidParams.Len() > 0 {
  60999. return invalidParams
  61000. }
  61001. return nil
  61002. }
  61003. // SetDryRun sets the DryRun field's value.
  61004. func (s *RejectVpcPeeringConnectionInput) SetDryRun(v bool) *RejectVpcPeeringConnectionInput {
  61005. s.DryRun = &v
  61006. return s
  61007. }
  61008. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  61009. func (s *RejectVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *RejectVpcPeeringConnectionInput {
  61010. s.VpcPeeringConnectionId = &v
  61011. return s
  61012. }
  61013. type RejectVpcPeeringConnectionOutput struct {
  61014. _ struct{} `type:"structure"`
  61015. // Returns true if the request succeeds; otherwise, it returns an error.
  61016. Return *bool `locationName:"return" type:"boolean"`
  61017. }
  61018. // String returns the string representation
  61019. func (s RejectVpcPeeringConnectionOutput) String() string {
  61020. return awsutil.Prettify(s)
  61021. }
  61022. // GoString returns the string representation
  61023. func (s RejectVpcPeeringConnectionOutput) GoString() string {
  61024. return s.String()
  61025. }
  61026. // SetReturn sets the Return field's value.
  61027. func (s *RejectVpcPeeringConnectionOutput) SetReturn(v bool) *RejectVpcPeeringConnectionOutput {
  61028. s.Return = &v
  61029. return s
  61030. }
  61031. type ReleaseAddressInput struct {
  61032. _ struct{} `type:"structure"`
  61033. // [EC2-VPC] The allocation ID. Required for EC2-VPC.
  61034. AllocationId *string `type:"string"`
  61035. // Checks whether you have the required permissions for the action, without
  61036. // actually making the request, and provides an error response. If you have
  61037. // the required permissions, the error response is DryRunOperation. Otherwise,
  61038. // it is UnauthorizedOperation.
  61039. DryRun *bool `locationName:"dryRun" type:"boolean"`
  61040. // [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
  61041. PublicIp *string `type:"string"`
  61042. }
  61043. // String returns the string representation
  61044. func (s ReleaseAddressInput) String() string {
  61045. return awsutil.Prettify(s)
  61046. }
  61047. // GoString returns the string representation
  61048. func (s ReleaseAddressInput) GoString() string {
  61049. return s.String()
  61050. }
  61051. // SetAllocationId sets the AllocationId field's value.
  61052. func (s *ReleaseAddressInput) SetAllocationId(v string) *ReleaseAddressInput {
  61053. s.AllocationId = &v
  61054. return s
  61055. }
  61056. // SetDryRun sets the DryRun field's value.
  61057. func (s *ReleaseAddressInput) SetDryRun(v bool) *ReleaseAddressInput {
  61058. s.DryRun = &v
  61059. return s
  61060. }
  61061. // SetPublicIp sets the PublicIp field's value.
  61062. func (s *ReleaseAddressInput) SetPublicIp(v string) *ReleaseAddressInput {
  61063. s.PublicIp = &v
  61064. return s
  61065. }
  61066. type ReleaseAddressOutput struct {
  61067. _ struct{} `type:"structure"`
  61068. }
  61069. // String returns the string representation
  61070. func (s ReleaseAddressOutput) String() string {
  61071. return awsutil.Prettify(s)
  61072. }
  61073. // GoString returns the string representation
  61074. func (s ReleaseAddressOutput) GoString() string {
  61075. return s.String()
  61076. }
  61077. type ReleaseHostsInput struct {
  61078. _ struct{} `type:"structure"`
  61079. // The IDs of the Dedicated Hosts to release.
  61080. //
  61081. // HostIds is a required field
  61082. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`
  61083. }
  61084. // String returns the string representation
  61085. func (s ReleaseHostsInput) String() string {
  61086. return awsutil.Prettify(s)
  61087. }
  61088. // GoString returns the string representation
  61089. func (s ReleaseHostsInput) GoString() string {
  61090. return s.String()
  61091. }
  61092. // Validate inspects the fields of the type to determine if they are valid.
  61093. func (s *ReleaseHostsInput) Validate() error {
  61094. invalidParams := request.ErrInvalidParams{Context: "ReleaseHostsInput"}
  61095. if s.HostIds == nil {
  61096. invalidParams.Add(request.NewErrParamRequired("HostIds"))
  61097. }
  61098. if invalidParams.Len() > 0 {
  61099. return invalidParams
  61100. }
  61101. return nil
  61102. }
  61103. // SetHostIds sets the HostIds field's value.
  61104. func (s *ReleaseHostsInput) SetHostIds(v []*string) *ReleaseHostsInput {
  61105. s.HostIds = v
  61106. return s
  61107. }
  61108. type ReleaseHostsOutput struct {
  61109. _ struct{} `type:"structure"`
  61110. // The IDs of the Dedicated Hosts that were successfully released.
  61111. Successful []*string `locationName:"successful" locationNameList:"item" type:"list"`
  61112. // The IDs of the Dedicated Hosts that could not be released, including an error
  61113. // message.
  61114. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  61115. }
  61116. // String returns the string representation
  61117. func (s ReleaseHostsOutput) String() string {
  61118. return awsutil.Prettify(s)
  61119. }
  61120. // GoString returns the string representation
  61121. func (s ReleaseHostsOutput) GoString() string {
  61122. return s.String()
  61123. }
  61124. // SetSuccessful sets the Successful field's value.
  61125. func (s *ReleaseHostsOutput) SetSuccessful(v []*string) *ReleaseHostsOutput {
  61126. s.Successful = v
  61127. return s
  61128. }
  61129. // SetUnsuccessful sets the Unsuccessful field's value.
  61130. func (s *ReleaseHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ReleaseHostsOutput {
  61131. s.Unsuccessful = v
  61132. return s
  61133. }
  61134. type ReplaceIamInstanceProfileAssociationInput struct {
  61135. _ struct{} `type:"structure"`
  61136. // The ID of the existing IAM instance profile association.
  61137. //
  61138. // AssociationId is a required field
  61139. AssociationId *string `type:"string" required:"true"`
  61140. // The IAM instance profile.
  61141. //
  61142. // IamInstanceProfile is a required field
  61143. IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"`
  61144. }
  61145. // String returns the string representation
  61146. func (s ReplaceIamInstanceProfileAssociationInput) String() string {
  61147. return awsutil.Prettify(s)
  61148. }
  61149. // GoString returns the string representation
  61150. func (s ReplaceIamInstanceProfileAssociationInput) GoString() string {
  61151. return s.String()
  61152. }
  61153. // Validate inspects the fields of the type to determine if they are valid.
  61154. func (s *ReplaceIamInstanceProfileAssociationInput) Validate() error {
  61155. invalidParams := request.ErrInvalidParams{Context: "ReplaceIamInstanceProfileAssociationInput"}
  61156. if s.AssociationId == nil {
  61157. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  61158. }
  61159. if s.IamInstanceProfile == nil {
  61160. invalidParams.Add(request.NewErrParamRequired("IamInstanceProfile"))
  61161. }
  61162. if invalidParams.Len() > 0 {
  61163. return invalidParams
  61164. }
  61165. return nil
  61166. }
  61167. // SetAssociationId sets the AssociationId field's value.
  61168. func (s *ReplaceIamInstanceProfileAssociationInput) SetAssociationId(v string) *ReplaceIamInstanceProfileAssociationInput {
  61169. s.AssociationId = &v
  61170. return s
  61171. }
  61172. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  61173. func (s *ReplaceIamInstanceProfileAssociationInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *ReplaceIamInstanceProfileAssociationInput {
  61174. s.IamInstanceProfile = v
  61175. return s
  61176. }
  61177. type ReplaceIamInstanceProfileAssociationOutput struct {
  61178. _ struct{} `type:"structure"`
  61179. // Information about the IAM instance profile association.
  61180. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  61181. }
  61182. // String returns the string representation
  61183. func (s ReplaceIamInstanceProfileAssociationOutput) String() string {
  61184. return awsutil.Prettify(s)
  61185. }
  61186. // GoString returns the string representation
  61187. func (s ReplaceIamInstanceProfileAssociationOutput) GoString() string {
  61188. return s.String()
  61189. }
  61190. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  61191. func (s *ReplaceIamInstanceProfileAssociationOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *ReplaceIamInstanceProfileAssociationOutput {
  61192. s.IamInstanceProfileAssociation = v
  61193. return s
  61194. }
  61195. type ReplaceNetworkAclAssociationInput struct {
  61196. _ struct{} `type:"structure"`
  61197. // The ID of the current association between the original network ACL and the
  61198. // subnet.
  61199. //
  61200. // AssociationId is a required field
  61201. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  61202. // Checks whether you have the required permissions for the action, without
  61203. // actually making the request, and provides an error response. If you have
  61204. // the required permissions, the error response is DryRunOperation. Otherwise,
  61205. // it is UnauthorizedOperation.
  61206. DryRun *bool `locationName:"dryRun" type:"boolean"`
  61207. // The ID of the new network ACL to associate with the subnet.
  61208. //
  61209. // NetworkAclId is a required field
  61210. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  61211. }
  61212. // String returns the string representation
  61213. func (s ReplaceNetworkAclAssociationInput) String() string {
  61214. return awsutil.Prettify(s)
  61215. }
  61216. // GoString returns the string representation
  61217. func (s ReplaceNetworkAclAssociationInput) GoString() string {
  61218. return s.String()
  61219. }
  61220. // Validate inspects the fields of the type to determine if they are valid.
  61221. func (s *ReplaceNetworkAclAssociationInput) Validate() error {
  61222. invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclAssociationInput"}
  61223. if s.AssociationId == nil {
  61224. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  61225. }
  61226. if s.NetworkAclId == nil {
  61227. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  61228. }
  61229. if invalidParams.Len() > 0 {
  61230. return invalidParams
  61231. }
  61232. return nil
  61233. }
  61234. // SetAssociationId sets the AssociationId field's value.
  61235. func (s *ReplaceNetworkAclAssociationInput) SetAssociationId(v string) *ReplaceNetworkAclAssociationInput {
  61236. s.AssociationId = &v
  61237. return s
  61238. }
  61239. // SetDryRun sets the DryRun field's value.
  61240. func (s *ReplaceNetworkAclAssociationInput) SetDryRun(v bool) *ReplaceNetworkAclAssociationInput {
  61241. s.DryRun = &v
  61242. return s
  61243. }
  61244. // SetNetworkAclId sets the NetworkAclId field's value.
  61245. func (s *ReplaceNetworkAclAssociationInput) SetNetworkAclId(v string) *ReplaceNetworkAclAssociationInput {
  61246. s.NetworkAclId = &v
  61247. return s
  61248. }
  61249. type ReplaceNetworkAclAssociationOutput struct {
  61250. _ struct{} `type:"structure"`
  61251. // The ID of the new association.
  61252. NewAssociationId *string `locationName:"newAssociationId" type:"string"`
  61253. }
  61254. // String returns the string representation
  61255. func (s ReplaceNetworkAclAssociationOutput) String() string {
  61256. return awsutil.Prettify(s)
  61257. }
  61258. // GoString returns the string representation
  61259. func (s ReplaceNetworkAclAssociationOutput) GoString() string {
  61260. return s.String()
  61261. }
  61262. // SetNewAssociationId sets the NewAssociationId field's value.
  61263. func (s *ReplaceNetworkAclAssociationOutput) SetNewAssociationId(v string) *ReplaceNetworkAclAssociationOutput {
  61264. s.NewAssociationId = &v
  61265. return s
  61266. }
  61267. type ReplaceNetworkAclEntryInput struct {
  61268. _ struct{} `type:"structure"`
  61269. // The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
  61270. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  61271. // Checks whether you have the required permissions for the action, without
  61272. // actually making the request, and provides an error response. If you have
  61273. // the required permissions, the error response is DryRunOperation. Otherwise,
  61274. // it is UnauthorizedOperation.
  61275. DryRun *bool `locationName:"dryRun" type:"boolean"`
  61276. // Indicates whether to replace the egress rule.
  61277. //
  61278. // Default: If no value is specified, we replace the ingress rule.
  61279. //
  61280. // Egress is a required field
  61281. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  61282. // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol
  61283. // 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block.
  61284. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`
  61285. // The IPv6 network range to allow or deny, in CIDR notation (for example 2001:bd8:1234:1a00::/64).
  61286. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  61287. // The ID of the ACL.
  61288. //
  61289. // NetworkAclId is a required field
  61290. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  61291. // TCP or UDP protocols: The range of ports the rule applies to. Required if
  61292. // specifying protocol 6 (TCP) or 17 (UDP).
  61293. PortRange *PortRange `locationName:"portRange" type:"structure"`
  61294. // The protocol number. A value of "-1" means all protocols. If you specify
  61295. // "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP),
  61296. // traffic on all ports is allowed, regardless of any ports or ICMP types or
  61297. // codes that you specify. If you specify protocol "58" (ICMPv6) and specify
  61298. // an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless
  61299. // of any that you specify. If you specify protocol "58" (ICMPv6) and specify
  61300. // an IPv6 CIDR block, you must specify an ICMP type and code.
  61301. //
  61302. // Protocol is a required field
  61303. Protocol *string `locationName:"protocol" type:"string" required:"true"`
  61304. // Indicates whether to allow or deny the traffic that matches the rule.
  61305. //
  61306. // RuleAction is a required field
  61307. RuleAction *string `locationName:"ruleAction" type:"string" required:"true" enum:"RuleAction"`
  61308. // The rule number of the entry to replace.
  61309. //
  61310. // RuleNumber is a required field
  61311. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  61312. }
  61313. // String returns the string representation
  61314. func (s ReplaceNetworkAclEntryInput) String() string {
  61315. return awsutil.Prettify(s)
  61316. }
  61317. // GoString returns the string representation
  61318. func (s ReplaceNetworkAclEntryInput) GoString() string {
  61319. return s.String()
  61320. }
  61321. // Validate inspects the fields of the type to determine if they are valid.
  61322. func (s *ReplaceNetworkAclEntryInput) Validate() error {
  61323. invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclEntryInput"}
  61324. if s.Egress == nil {
  61325. invalidParams.Add(request.NewErrParamRequired("Egress"))
  61326. }
  61327. if s.NetworkAclId == nil {
  61328. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  61329. }
  61330. if s.Protocol == nil {
  61331. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  61332. }
  61333. if s.RuleAction == nil {
  61334. invalidParams.Add(request.NewErrParamRequired("RuleAction"))
  61335. }
  61336. if s.RuleNumber == nil {
  61337. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  61338. }
  61339. if invalidParams.Len() > 0 {
  61340. return invalidParams
  61341. }
  61342. return nil
  61343. }
  61344. // SetCidrBlock sets the CidrBlock field's value.
  61345. func (s *ReplaceNetworkAclEntryInput) SetCidrBlock(v string) *ReplaceNetworkAclEntryInput {
  61346. s.CidrBlock = &v
  61347. return s
  61348. }
  61349. // SetDryRun sets the DryRun field's value.
  61350. func (s *ReplaceNetworkAclEntryInput) SetDryRun(v bool) *ReplaceNetworkAclEntryInput {
  61351. s.DryRun = &v
  61352. return s
  61353. }
  61354. // SetEgress sets the Egress field's value.
  61355. func (s *ReplaceNetworkAclEntryInput) SetEgress(v bool) *ReplaceNetworkAclEntryInput {
  61356. s.Egress = &v
  61357. return s
  61358. }
  61359. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  61360. func (s *ReplaceNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *ReplaceNetworkAclEntryInput {
  61361. s.IcmpTypeCode = v
  61362. return s
  61363. }
  61364. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  61365. func (s *ReplaceNetworkAclEntryInput) SetIpv6CidrBlock(v string) *ReplaceNetworkAclEntryInput {
  61366. s.Ipv6CidrBlock = &v
  61367. return s
  61368. }
  61369. // SetNetworkAclId sets the NetworkAclId field's value.
  61370. func (s *ReplaceNetworkAclEntryInput) SetNetworkAclId(v string) *ReplaceNetworkAclEntryInput {
  61371. s.NetworkAclId = &v
  61372. return s
  61373. }
  61374. // SetPortRange sets the PortRange field's value.
  61375. func (s *ReplaceNetworkAclEntryInput) SetPortRange(v *PortRange) *ReplaceNetworkAclEntryInput {
  61376. s.PortRange = v
  61377. return s
  61378. }
  61379. // SetProtocol sets the Protocol field's value.
  61380. func (s *ReplaceNetworkAclEntryInput) SetProtocol(v string) *ReplaceNetworkAclEntryInput {
  61381. s.Protocol = &v
  61382. return s
  61383. }
  61384. // SetRuleAction sets the RuleAction field's value.
  61385. func (s *ReplaceNetworkAclEntryInput) SetRuleAction(v string) *ReplaceNetworkAclEntryInput {
  61386. s.RuleAction = &v
  61387. return s
  61388. }
  61389. // SetRuleNumber sets the RuleNumber field's value.
  61390. func (s *ReplaceNetworkAclEntryInput) SetRuleNumber(v int64) *ReplaceNetworkAclEntryInput {
  61391. s.RuleNumber = &v
  61392. return s
  61393. }
  61394. type ReplaceNetworkAclEntryOutput struct {
  61395. _ struct{} `type:"structure"`
  61396. }
  61397. // String returns the string representation
  61398. func (s ReplaceNetworkAclEntryOutput) String() string {
  61399. return awsutil.Prettify(s)
  61400. }
  61401. // GoString returns the string representation
  61402. func (s ReplaceNetworkAclEntryOutput) GoString() string {
  61403. return s.String()
  61404. }
  61405. type ReplaceRouteInput struct {
  61406. _ struct{} `type:"structure"`
  61407. // The IPv4 CIDR address block used for the destination match. The value that
  61408. // you provide must match the CIDR of an existing route in the table.
  61409. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  61410. // The IPv6 CIDR address block used for the destination match. The value that
  61411. // you provide must match the CIDR of an existing route in the table.
  61412. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  61413. // Checks whether you have the required permissions for the action, without
  61414. // actually making the request, and provides an error response. If you have
  61415. // the required permissions, the error response is DryRunOperation. Otherwise,
  61416. // it is UnauthorizedOperation.
  61417. DryRun *bool `locationName:"dryRun" type:"boolean"`
  61418. // [IPv6 traffic only] The ID of an egress-only internet gateway.
  61419. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  61420. // The ID of an internet gateway or virtual private gateway.
  61421. GatewayId *string `locationName:"gatewayId" type:"string"`
  61422. // The ID of a NAT instance in your VPC.
  61423. InstanceId *string `locationName:"instanceId" type:"string"`
  61424. // [IPv4 traffic only] The ID of a NAT gateway.
  61425. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  61426. // The ID of a network interface.
  61427. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  61428. // The ID of the route table.
  61429. //
  61430. // RouteTableId is a required field
  61431. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  61432. // The ID of a transit gateway.
  61433. TransitGatewayId *string `type:"string"`
  61434. // The ID of a VPC peering connection.
  61435. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  61436. }
  61437. // String returns the string representation
  61438. func (s ReplaceRouteInput) String() string {
  61439. return awsutil.Prettify(s)
  61440. }
  61441. // GoString returns the string representation
  61442. func (s ReplaceRouteInput) GoString() string {
  61443. return s.String()
  61444. }
  61445. // Validate inspects the fields of the type to determine if they are valid.
  61446. func (s *ReplaceRouteInput) Validate() error {
  61447. invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteInput"}
  61448. if s.RouteTableId == nil {
  61449. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  61450. }
  61451. if invalidParams.Len() > 0 {
  61452. return invalidParams
  61453. }
  61454. return nil
  61455. }
  61456. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  61457. func (s *ReplaceRouteInput) SetDestinationCidrBlock(v string) *ReplaceRouteInput {
  61458. s.DestinationCidrBlock = &v
  61459. return s
  61460. }
  61461. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  61462. func (s *ReplaceRouteInput) SetDestinationIpv6CidrBlock(v string) *ReplaceRouteInput {
  61463. s.DestinationIpv6CidrBlock = &v
  61464. return s
  61465. }
  61466. // SetDryRun sets the DryRun field's value.
  61467. func (s *ReplaceRouteInput) SetDryRun(v bool) *ReplaceRouteInput {
  61468. s.DryRun = &v
  61469. return s
  61470. }
  61471. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  61472. func (s *ReplaceRouteInput) SetEgressOnlyInternetGatewayId(v string) *ReplaceRouteInput {
  61473. s.EgressOnlyInternetGatewayId = &v
  61474. return s
  61475. }
  61476. // SetGatewayId sets the GatewayId field's value.
  61477. func (s *ReplaceRouteInput) SetGatewayId(v string) *ReplaceRouteInput {
  61478. s.GatewayId = &v
  61479. return s
  61480. }
  61481. // SetInstanceId sets the InstanceId field's value.
  61482. func (s *ReplaceRouteInput) SetInstanceId(v string) *ReplaceRouteInput {
  61483. s.InstanceId = &v
  61484. return s
  61485. }
  61486. // SetNatGatewayId sets the NatGatewayId field's value.
  61487. func (s *ReplaceRouteInput) SetNatGatewayId(v string) *ReplaceRouteInput {
  61488. s.NatGatewayId = &v
  61489. return s
  61490. }
  61491. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  61492. func (s *ReplaceRouteInput) SetNetworkInterfaceId(v string) *ReplaceRouteInput {
  61493. s.NetworkInterfaceId = &v
  61494. return s
  61495. }
  61496. // SetRouteTableId sets the RouteTableId field's value.
  61497. func (s *ReplaceRouteInput) SetRouteTableId(v string) *ReplaceRouteInput {
  61498. s.RouteTableId = &v
  61499. return s
  61500. }
  61501. // SetTransitGatewayId sets the TransitGatewayId field's value.
  61502. func (s *ReplaceRouteInput) SetTransitGatewayId(v string) *ReplaceRouteInput {
  61503. s.TransitGatewayId = &v
  61504. return s
  61505. }
  61506. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  61507. func (s *ReplaceRouteInput) SetVpcPeeringConnectionId(v string) *ReplaceRouteInput {
  61508. s.VpcPeeringConnectionId = &v
  61509. return s
  61510. }
  61511. type ReplaceRouteOutput struct {
  61512. _ struct{} `type:"structure"`
  61513. }
  61514. // String returns the string representation
  61515. func (s ReplaceRouteOutput) String() string {
  61516. return awsutil.Prettify(s)
  61517. }
  61518. // GoString returns the string representation
  61519. func (s ReplaceRouteOutput) GoString() string {
  61520. return s.String()
  61521. }
  61522. type ReplaceRouteTableAssociationInput struct {
  61523. _ struct{} `type:"structure"`
  61524. // The association ID.
  61525. //
  61526. // AssociationId is a required field
  61527. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  61528. // Checks whether you have the required permissions for the action, without
  61529. // actually making the request, and provides an error response. If you have
  61530. // the required permissions, the error response is DryRunOperation. Otherwise,
  61531. // it is UnauthorizedOperation.
  61532. DryRun *bool `locationName:"dryRun" type:"boolean"`
  61533. // The ID of the new route table to associate with the subnet.
  61534. //
  61535. // RouteTableId is a required field
  61536. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  61537. }
  61538. // String returns the string representation
  61539. func (s ReplaceRouteTableAssociationInput) String() string {
  61540. return awsutil.Prettify(s)
  61541. }
  61542. // GoString returns the string representation
  61543. func (s ReplaceRouteTableAssociationInput) GoString() string {
  61544. return s.String()
  61545. }
  61546. // Validate inspects the fields of the type to determine if they are valid.
  61547. func (s *ReplaceRouteTableAssociationInput) Validate() error {
  61548. invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteTableAssociationInput"}
  61549. if s.AssociationId == nil {
  61550. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  61551. }
  61552. if s.RouteTableId == nil {
  61553. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  61554. }
  61555. if invalidParams.Len() > 0 {
  61556. return invalidParams
  61557. }
  61558. return nil
  61559. }
  61560. // SetAssociationId sets the AssociationId field's value.
  61561. func (s *ReplaceRouteTableAssociationInput) SetAssociationId(v string) *ReplaceRouteTableAssociationInput {
  61562. s.AssociationId = &v
  61563. return s
  61564. }
  61565. // SetDryRun sets the DryRun field's value.
  61566. func (s *ReplaceRouteTableAssociationInput) SetDryRun(v bool) *ReplaceRouteTableAssociationInput {
  61567. s.DryRun = &v
  61568. return s
  61569. }
  61570. // SetRouteTableId sets the RouteTableId field's value.
  61571. func (s *ReplaceRouteTableAssociationInput) SetRouteTableId(v string) *ReplaceRouteTableAssociationInput {
  61572. s.RouteTableId = &v
  61573. return s
  61574. }
  61575. type ReplaceRouteTableAssociationOutput struct {
  61576. _ struct{} `type:"structure"`
  61577. // The ID of the new association.
  61578. NewAssociationId *string `locationName:"newAssociationId" type:"string"`
  61579. }
  61580. // String returns the string representation
  61581. func (s ReplaceRouteTableAssociationOutput) String() string {
  61582. return awsutil.Prettify(s)
  61583. }
  61584. // GoString returns the string representation
  61585. func (s ReplaceRouteTableAssociationOutput) GoString() string {
  61586. return s.String()
  61587. }
  61588. // SetNewAssociationId sets the NewAssociationId field's value.
  61589. func (s *ReplaceRouteTableAssociationOutput) SetNewAssociationId(v string) *ReplaceRouteTableAssociationOutput {
  61590. s.NewAssociationId = &v
  61591. return s
  61592. }
  61593. type ReplaceTransitGatewayRouteInput struct {
  61594. _ struct{} `type:"structure"`
  61595. // Indicates whether traffic matching this route is to be dropped.
  61596. Blackhole *bool `type:"boolean"`
  61597. // The CIDR range used for the destination match. Routing decisions are based
  61598. // on the most specific match.
  61599. //
  61600. // DestinationCidrBlock is a required field
  61601. DestinationCidrBlock *string `type:"string" required:"true"`
  61602. // Checks whether you have the required permissions for the action, without
  61603. // actually making the request, and provides an error response. If you have
  61604. // the required permissions, the error response is DryRunOperation. Otherwise,
  61605. // it is UnauthorizedOperation.
  61606. DryRun *bool `type:"boolean"`
  61607. // The ID of the attachment.
  61608. TransitGatewayAttachmentId *string `type:"string"`
  61609. // The ID of the route table.
  61610. //
  61611. // TransitGatewayRouteTableId is a required field
  61612. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  61613. }
  61614. // String returns the string representation
  61615. func (s ReplaceTransitGatewayRouteInput) String() string {
  61616. return awsutil.Prettify(s)
  61617. }
  61618. // GoString returns the string representation
  61619. func (s ReplaceTransitGatewayRouteInput) GoString() string {
  61620. return s.String()
  61621. }
  61622. // Validate inspects the fields of the type to determine if they are valid.
  61623. func (s *ReplaceTransitGatewayRouteInput) Validate() error {
  61624. invalidParams := request.ErrInvalidParams{Context: "ReplaceTransitGatewayRouteInput"}
  61625. if s.DestinationCidrBlock == nil {
  61626. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  61627. }
  61628. if s.TransitGatewayRouteTableId == nil {
  61629. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  61630. }
  61631. if invalidParams.Len() > 0 {
  61632. return invalidParams
  61633. }
  61634. return nil
  61635. }
  61636. // SetBlackhole sets the Blackhole field's value.
  61637. func (s *ReplaceTransitGatewayRouteInput) SetBlackhole(v bool) *ReplaceTransitGatewayRouteInput {
  61638. s.Blackhole = &v
  61639. return s
  61640. }
  61641. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  61642. func (s *ReplaceTransitGatewayRouteInput) SetDestinationCidrBlock(v string) *ReplaceTransitGatewayRouteInput {
  61643. s.DestinationCidrBlock = &v
  61644. return s
  61645. }
  61646. // SetDryRun sets the DryRun field's value.
  61647. func (s *ReplaceTransitGatewayRouteInput) SetDryRun(v bool) *ReplaceTransitGatewayRouteInput {
  61648. s.DryRun = &v
  61649. return s
  61650. }
  61651. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  61652. func (s *ReplaceTransitGatewayRouteInput) SetTransitGatewayAttachmentId(v string) *ReplaceTransitGatewayRouteInput {
  61653. s.TransitGatewayAttachmentId = &v
  61654. return s
  61655. }
  61656. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  61657. func (s *ReplaceTransitGatewayRouteInput) SetTransitGatewayRouteTableId(v string) *ReplaceTransitGatewayRouteInput {
  61658. s.TransitGatewayRouteTableId = &v
  61659. return s
  61660. }
  61661. type ReplaceTransitGatewayRouteOutput struct {
  61662. _ struct{} `type:"structure"`
  61663. // Information about the modified route.
  61664. Route *TransitGatewayRoute `locationName:"route" type:"structure"`
  61665. }
  61666. // String returns the string representation
  61667. func (s ReplaceTransitGatewayRouteOutput) String() string {
  61668. return awsutil.Prettify(s)
  61669. }
  61670. // GoString returns the string representation
  61671. func (s ReplaceTransitGatewayRouteOutput) GoString() string {
  61672. return s.String()
  61673. }
  61674. // SetRoute sets the Route field's value.
  61675. func (s *ReplaceTransitGatewayRouteOutput) SetRoute(v *TransitGatewayRoute) *ReplaceTransitGatewayRouteOutput {
  61676. s.Route = v
  61677. return s
  61678. }
  61679. type ReportInstanceStatusInput struct {
  61680. _ struct{} `type:"structure"`
  61681. // Descriptive text about the health state of your instance.
  61682. Description *string `locationName:"description" type:"string"`
  61683. // Checks whether you have the required permissions for the action, without
  61684. // actually making the request, and provides an error response. If you have
  61685. // the required permissions, the error response is DryRunOperation. Otherwise,
  61686. // it is UnauthorizedOperation.
  61687. DryRun *bool `locationName:"dryRun" type:"boolean"`
  61688. // The time at which the reported instance health state ended.
  61689. EndTime *time.Time `locationName:"endTime" type:"timestamp"`
  61690. // One or more instances.
  61691. //
  61692. // Instances is a required field
  61693. Instances []*string `locationName:"instanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  61694. // One or more reason codes that describe the health state of your instance.
  61695. //
  61696. // * instance-stuck-in-state: My instance is stuck in a state.
  61697. //
  61698. // * unresponsive: My instance is unresponsive.
  61699. //
  61700. // * not-accepting-credentials: My instance is not accepting my credentials.
  61701. //
  61702. // * password-not-available: A password is not available for my instance.
  61703. //
  61704. // * performance-network: My instance is experiencing performance problems
  61705. // that I believe are network related.
  61706. //
  61707. // * performance-instance-store: My instance is experiencing performance
  61708. // problems that I believe are related to the instance stores.
  61709. //
  61710. // * performance-ebs-volume: My instance is experiencing performance problems
  61711. // that I believe are related to an EBS volume.
  61712. //
  61713. // * performance-other: My instance is experiencing performance problems.
  61714. //
  61715. // * other: [explain using the description parameter]
  61716. //
  61717. // ReasonCodes is a required field
  61718. ReasonCodes []*string `locationName:"reasonCode" locationNameList:"item" type:"list" required:"true"`
  61719. // The time at which the reported instance health state began.
  61720. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  61721. // The status of all instances listed.
  61722. //
  61723. // Status is a required field
  61724. Status *string `locationName:"status" type:"string" required:"true" enum:"ReportStatusType"`
  61725. }
  61726. // String returns the string representation
  61727. func (s ReportInstanceStatusInput) String() string {
  61728. return awsutil.Prettify(s)
  61729. }
  61730. // GoString returns the string representation
  61731. func (s ReportInstanceStatusInput) GoString() string {
  61732. return s.String()
  61733. }
  61734. // Validate inspects the fields of the type to determine if they are valid.
  61735. func (s *ReportInstanceStatusInput) Validate() error {
  61736. invalidParams := request.ErrInvalidParams{Context: "ReportInstanceStatusInput"}
  61737. if s.Instances == nil {
  61738. invalidParams.Add(request.NewErrParamRequired("Instances"))
  61739. }
  61740. if s.ReasonCodes == nil {
  61741. invalidParams.Add(request.NewErrParamRequired("ReasonCodes"))
  61742. }
  61743. if s.Status == nil {
  61744. invalidParams.Add(request.NewErrParamRequired("Status"))
  61745. }
  61746. if invalidParams.Len() > 0 {
  61747. return invalidParams
  61748. }
  61749. return nil
  61750. }
  61751. // SetDescription sets the Description field's value.
  61752. func (s *ReportInstanceStatusInput) SetDescription(v string) *ReportInstanceStatusInput {
  61753. s.Description = &v
  61754. return s
  61755. }
  61756. // SetDryRun sets the DryRun field's value.
  61757. func (s *ReportInstanceStatusInput) SetDryRun(v bool) *ReportInstanceStatusInput {
  61758. s.DryRun = &v
  61759. return s
  61760. }
  61761. // SetEndTime sets the EndTime field's value.
  61762. func (s *ReportInstanceStatusInput) SetEndTime(v time.Time) *ReportInstanceStatusInput {
  61763. s.EndTime = &v
  61764. return s
  61765. }
  61766. // SetInstances sets the Instances field's value.
  61767. func (s *ReportInstanceStatusInput) SetInstances(v []*string) *ReportInstanceStatusInput {
  61768. s.Instances = v
  61769. return s
  61770. }
  61771. // SetReasonCodes sets the ReasonCodes field's value.
  61772. func (s *ReportInstanceStatusInput) SetReasonCodes(v []*string) *ReportInstanceStatusInput {
  61773. s.ReasonCodes = v
  61774. return s
  61775. }
  61776. // SetStartTime sets the StartTime field's value.
  61777. func (s *ReportInstanceStatusInput) SetStartTime(v time.Time) *ReportInstanceStatusInput {
  61778. s.StartTime = &v
  61779. return s
  61780. }
  61781. // SetStatus sets the Status field's value.
  61782. func (s *ReportInstanceStatusInput) SetStatus(v string) *ReportInstanceStatusInput {
  61783. s.Status = &v
  61784. return s
  61785. }
  61786. type ReportInstanceStatusOutput struct {
  61787. _ struct{} `type:"structure"`
  61788. }
  61789. // String returns the string representation
  61790. func (s ReportInstanceStatusOutput) String() string {
  61791. return awsutil.Prettify(s)
  61792. }
  61793. // GoString returns the string representation
  61794. func (s ReportInstanceStatusOutput) GoString() string {
  61795. return s.String()
  61796. }
  61797. // The information to include in the launch template.
  61798. type RequestLaunchTemplateData struct {
  61799. _ struct{} `type:"structure"`
  61800. // The block device mapping.
  61801. //
  61802. // Supplying both a snapshot ID and an encryption value as arguments for block-device
  61803. // mapping results in an error. This is because only blank volumes can be encrypted
  61804. // on start, and these are not created from a snapshot. If a snapshot is the
  61805. // basis for the volume, it contains data by definition and its encryption status
  61806. // cannot be changed using this action.
  61807. BlockDeviceMappings []*LaunchTemplateBlockDeviceMappingRequest `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  61808. // The Capacity Reservation targeting option.
  61809. CapacityReservationSpecification *LaunchTemplateCapacityReservationSpecificationRequest `type:"structure"`
  61810. // The CPU options for the instance. For more information, see Optimizing CPU
  61811. // Options (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html)
  61812. // in the Amazon Elastic Compute Cloud User Guide.
  61813. CpuOptions *LaunchTemplateCpuOptionsRequest `type:"structure"`
  61814. // The credit option for CPU usage of the instance. Valid for T2 or T3 instances
  61815. // only.
  61816. CreditSpecification *CreditSpecificationRequest `type:"structure"`
  61817. // If set to true, you can't terminate the instance using the Amazon EC2 console,
  61818. // CLI, or API. To change this attribute to false after launch, use ModifyInstanceAttribute.
  61819. DisableApiTermination *bool `type:"boolean"`
  61820. // Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
  61821. // provides dedicated throughput to Amazon EBS and an optimized configuration
  61822. // stack to provide optimal Amazon EBS I/O performance. This optimization isn't
  61823. // available with all instance types. Additional usage charges apply when using
  61824. // an EBS-optimized instance.
  61825. EbsOptimized *bool `type:"boolean"`
  61826. // An elastic GPU to associate with the instance.
  61827. ElasticGpuSpecifications []*ElasticGpuSpecification `locationName:"ElasticGpuSpecification" locationNameList:"ElasticGpuSpecification" type:"list"`
  61828. // The elastic inference accelerator for the instance.
  61829. ElasticInferenceAccelerators []*LaunchTemplateElasticInferenceAccelerator `locationName:"ElasticInferenceAccelerator" locationNameList:"item" type:"list"`
  61830. // Indicates whether an instance is enabled for hibernation. This parameter
  61831. // is valid only if the instance meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites).
  61832. // Hibernation is currently supported only for Amazon Linux. For more information,
  61833. // see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  61834. // in the Amazon Elastic Compute Cloud User Guide.
  61835. HibernationOptions *LaunchTemplateHibernationOptionsRequest `type:"structure"`
  61836. // The IAM instance profile.
  61837. IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecificationRequest `type:"structure"`
  61838. // The ID of the AMI, which you can get by using DescribeImages.
  61839. ImageId *string `type:"string"`
  61840. // Indicates whether an instance stops or terminates when you initiate shutdown
  61841. // from the instance (using the operating system command for system shutdown).
  61842. //
  61843. // Default: stop
  61844. InstanceInitiatedShutdownBehavior *string `type:"string" enum:"ShutdownBehavior"`
  61845. // The market (purchasing) option for the instances.
  61846. InstanceMarketOptions *LaunchTemplateInstanceMarketOptionsRequest `type:"structure"`
  61847. // The instance type. For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  61848. // in the Amazon Elastic Compute Cloud User Guide.
  61849. InstanceType *string `type:"string" enum:"InstanceType"`
  61850. // The ID of the kernel.
  61851. //
  61852. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  61853. // information, see User Provided Kernels (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  61854. // in the Amazon Elastic Compute Cloud User Guide.
  61855. KernelId *string `type:"string"`
  61856. // The name of the key pair. You can create a key pair using CreateKeyPair or
  61857. // ImportKeyPair.
  61858. //
  61859. // If you do not specify a key pair, you can't connect to the instance unless
  61860. // you choose an AMI that is configured to allow users another way to log in.
  61861. KeyName *string `type:"string"`
  61862. // The license configurations.
  61863. LicenseSpecifications []*LaunchTemplateLicenseConfigurationRequest `locationName:"LicenseSpecification" locationNameList:"item" type:"list"`
  61864. // The monitoring for the instance.
  61865. Monitoring *LaunchTemplatesMonitoringRequest `type:"structure"`
  61866. // One or more network interfaces.
  61867. NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecificationRequest `locationName:"NetworkInterface" locationNameList:"InstanceNetworkInterfaceSpecification" type:"list"`
  61868. // The placement for the instance.
  61869. Placement *LaunchTemplatePlacementRequest `type:"structure"`
  61870. // The ID of the RAM disk.
  61871. //
  61872. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  61873. // information, see User Provided Kernels (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  61874. // in the Amazon Elastic Compute Cloud User Guide.
  61875. RamDiskId *string `type:"string"`
  61876. // One or more security group IDs. You can create a security group using CreateSecurityGroup.
  61877. // You cannot specify both a security group ID and security name in the same
  61878. // request.
  61879. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  61880. // [EC2-Classic, default VPC] One or more security group names. For a nondefault
  61881. // VPC, you must use security group IDs instead. You cannot specify both a security
  61882. // group ID and security name in the same request.
  61883. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"`
  61884. // The tags to apply to the resources during launch. You can only tag instances
  61885. // and volumes on launch. The specified tags are applied to all instances or
  61886. // volumes that are created during launch. To tag a resource after it has been
  61887. // created, see CreateTags.
  61888. TagSpecifications []*LaunchTemplateTagSpecificationRequest `locationName:"TagSpecification" locationNameList:"LaunchTemplateTagSpecificationRequest" type:"list"`
  61889. // The Base64-encoded user data to make available to the instance. For more
  61890. // information, see Running Commands on Your Linux Instance at Launch (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html)
  61891. // (Linux) and Adding User Data (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data)
  61892. // (Windows).
  61893. UserData *string `type:"string"`
  61894. }
  61895. // String returns the string representation
  61896. func (s RequestLaunchTemplateData) String() string {
  61897. return awsutil.Prettify(s)
  61898. }
  61899. // GoString returns the string representation
  61900. func (s RequestLaunchTemplateData) GoString() string {
  61901. return s.String()
  61902. }
  61903. // Validate inspects the fields of the type to determine if they are valid.
  61904. func (s *RequestLaunchTemplateData) Validate() error {
  61905. invalidParams := request.ErrInvalidParams{Context: "RequestLaunchTemplateData"}
  61906. if s.CreditSpecification != nil {
  61907. if err := s.CreditSpecification.Validate(); err != nil {
  61908. invalidParams.AddNested("CreditSpecification", err.(request.ErrInvalidParams))
  61909. }
  61910. }
  61911. if s.ElasticGpuSpecifications != nil {
  61912. for i, v := range s.ElasticGpuSpecifications {
  61913. if v == nil {
  61914. continue
  61915. }
  61916. if err := v.Validate(); err != nil {
  61917. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticGpuSpecifications", i), err.(request.ErrInvalidParams))
  61918. }
  61919. }
  61920. }
  61921. if s.ElasticInferenceAccelerators != nil {
  61922. for i, v := range s.ElasticInferenceAccelerators {
  61923. if v == nil {
  61924. continue
  61925. }
  61926. if err := v.Validate(); err != nil {
  61927. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticInferenceAccelerators", i), err.(request.ErrInvalidParams))
  61928. }
  61929. }
  61930. }
  61931. if invalidParams.Len() > 0 {
  61932. return invalidParams
  61933. }
  61934. return nil
  61935. }
  61936. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  61937. func (s *RequestLaunchTemplateData) SetBlockDeviceMappings(v []*LaunchTemplateBlockDeviceMappingRequest) *RequestLaunchTemplateData {
  61938. s.BlockDeviceMappings = v
  61939. return s
  61940. }
  61941. // SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value.
  61942. func (s *RequestLaunchTemplateData) SetCapacityReservationSpecification(v *LaunchTemplateCapacityReservationSpecificationRequest) *RequestLaunchTemplateData {
  61943. s.CapacityReservationSpecification = v
  61944. return s
  61945. }
  61946. // SetCpuOptions sets the CpuOptions field's value.
  61947. func (s *RequestLaunchTemplateData) SetCpuOptions(v *LaunchTemplateCpuOptionsRequest) *RequestLaunchTemplateData {
  61948. s.CpuOptions = v
  61949. return s
  61950. }
  61951. // SetCreditSpecification sets the CreditSpecification field's value.
  61952. func (s *RequestLaunchTemplateData) SetCreditSpecification(v *CreditSpecificationRequest) *RequestLaunchTemplateData {
  61953. s.CreditSpecification = v
  61954. return s
  61955. }
  61956. // SetDisableApiTermination sets the DisableApiTermination field's value.
  61957. func (s *RequestLaunchTemplateData) SetDisableApiTermination(v bool) *RequestLaunchTemplateData {
  61958. s.DisableApiTermination = &v
  61959. return s
  61960. }
  61961. // SetEbsOptimized sets the EbsOptimized field's value.
  61962. func (s *RequestLaunchTemplateData) SetEbsOptimized(v bool) *RequestLaunchTemplateData {
  61963. s.EbsOptimized = &v
  61964. return s
  61965. }
  61966. // SetElasticGpuSpecifications sets the ElasticGpuSpecifications field's value.
  61967. func (s *RequestLaunchTemplateData) SetElasticGpuSpecifications(v []*ElasticGpuSpecification) *RequestLaunchTemplateData {
  61968. s.ElasticGpuSpecifications = v
  61969. return s
  61970. }
  61971. // SetElasticInferenceAccelerators sets the ElasticInferenceAccelerators field's value.
  61972. func (s *RequestLaunchTemplateData) SetElasticInferenceAccelerators(v []*LaunchTemplateElasticInferenceAccelerator) *RequestLaunchTemplateData {
  61973. s.ElasticInferenceAccelerators = v
  61974. return s
  61975. }
  61976. // SetHibernationOptions sets the HibernationOptions field's value.
  61977. func (s *RequestLaunchTemplateData) SetHibernationOptions(v *LaunchTemplateHibernationOptionsRequest) *RequestLaunchTemplateData {
  61978. s.HibernationOptions = v
  61979. return s
  61980. }
  61981. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  61982. func (s *RequestLaunchTemplateData) SetIamInstanceProfile(v *LaunchTemplateIamInstanceProfileSpecificationRequest) *RequestLaunchTemplateData {
  61983. s.IamInstanceProfile = v
  61984. return s
  61985. }
  61986. // SetImageId sets the ImageId field's value.
  61987. func (s *RequestLaunchTemplateData) SetImageId(v string) *RequestLaunchTemplateData {
  61988. s.ImageId = &v
  61989. return s
  61990. }
  61991. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  61992. func (s *RequestLaunchTemplateData) SetInstanceInitiatedShutdownBehavior(v string) *RequestLaunchTemplateData {
  61993. s.InstanceInitiatedShutdownBehavior = &v
  61994. return s
  61995. }
  61996. // SetInstanceMarketOptions sets the InstanceMarketOptions field's value.
  61997. func (s *RequestLaunchTemplateData) SetInstanceMarketOptions(v *LaunchTemplateInstanceMarketOptionsRequest) *RequestLaunchTemplateData {
  61998. s.InstanceMarketOptions = v
  61999. return s
  62000. }
  62001. // SetInstanceType sets the InstanceType field's value.
  62002. func (s *RequestLaunchTemplateData) SetInstanceType(v string) *RequestLaunchTemplateData {
  62003. s.InstanceType = &v
  62004. return s
  62005. }
  62006. // SetKernelId sets the KernelId field's value.
  62007. func (s *RequestLaunchTemplateData) SetKernelId(v string) *RequestLaunchTemplateData {
  62008. s.KernelId = &v
  62009. return s
  62010. }
  62011. // SetKeyName sets the KeyName field's value.
  62012. func (s *RequestLaunchTemplateData) SetKeyName(v string) *RequestLaunchTemplateData {
  62013. s.KeyName = &v
  62014. return s
  62015. }
  62016. // SetLicenseSpecifications sets the LicenseSpecifications field's value.
  62017. func (s *RequestLaunchTemplateData) SetLicenseSpecifications(v []*LaunchTemplateLicenseConfigurationRequest) *RequestLaunchTemplateData {
  62018. s.LicenseSpecifications = v
  62019. return s
  62020. }
  62021. // SetMonitoring sets the Monitoring field's value.
  62022. func (s *RequestLaunchTemplateData) SetMonitoring(v *LaunchTemplatesMonitoringRequest) *RequestLaunchTemplateData {
  62023. s.Monitoring = v
  62024. return s
  62025. }
  62026. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  62027. func (s *RequestLaunchTemplateData) SetNetworkInterfaces(v []*LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) *RequestLaunchTemplateData {
  62028. s.NetworkInterfaces = v
  62029. return s
  62030. }
  62031. // SetPlacement sets the Placement field's value.
  62032. func (s *RequestLaunchTemplateData) SetPlacement(v *LaunchTemplatePlacementRequest) *RequestLaunchTemplateData {
  62033. s.Placement = v
  62034. return s
  62035. }
  62036. // SetRamDiskId sets the RamDiskId field's value.
  62037. func (s *RequestLaunchTemplateData) SetRamDiskId(v string) *RequestLaunchTemplateData {
  62038. s.RamDiskId = &v
  62039. return s
  62040. }
  62041. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  62042. func (s *RequestLaunchTemplateData) SetSecurityGroupIds(v []*string) *RequestLaunchTemplateData {
  62043. s.SecurityGroupIds = v
  62044. return s
  62045. }
  62046. // SetSecurityGroups sets the SecurityGroups field's value.
  62047. func (s *RequestLaunchTemplateData) SetSecurityGroups(v []*string) *RequestLaunchTemplateData {
  62048. s.SecurityGroups = v
  62049. return s
  62050. }
  62051. // SetTagSpecifications sets the TagSpecifications field's value.
  62052. func (s *RequestLaunchTemplateData) SetTagSpecifications(v []*LaunchTemplateTagSpecificationRequest) *RequestLaunchTemplateData {
  62053. s.TagSpecifications = v
  62054. return s
  62055. }
  62056. // SetUserData sets the UserData field's value.
  62057. func (s *RequestLaunchTemplateData) SetUserData(v string) *RequestLaunchTemplateData {
  62058. s.UserData = &v
  62059. return s
  62060. }
  62061. // Contains the parameters for RequestSpotFleet.
  62062. type RequestSpotFleetInput struct {
  62063. _ struct{} `type:"structure"`
  62064. // Checks whether you have the required permissions for the action, without
  62065. // actually making the request, and provides an error response. If you have
  62066. // the required permissions, the error response is DryRunOperation. Otherwise,
  62067. // it is UnauthorizedOperation.
  62068. DryRun *bool `locationName:"dryRun" type:"boolean"`
  62069. // The configuration for the Spot Fleet request.
  62070. //
  62071. // SpotFleetRequestConfig is a required field
  62072. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"`
  62073. }
  62074. // String returns the string representation
  62075. func (s RequestSpotFleetInput) String() string {
  62076. return awsutil.Prettify(s)
  62077. }
  62078. // GoString returns the string representation
  62079. func (s RequestSpotFleetInput) GoString() string {
  62080. return s.String()
  62081. }
  62082. // Validate inspects the fields of the type to determine if they are valid.
  62083. func (s *RequestSpotFleetInput) Validate() error {
  62084. invalidParams := request.ErrInvalidParams{Context: "RequestSpotFleetInput"}
  62085. if s.SpotFleetRequestConfig == nil {
  62086. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestConfig"))
  62087. }
  62088. if s.SpotFleetRequestConfig != nil {
  62089. if err := s.SpotFleetRequestConfig.Validate(); err != nil {
  62090. invalidParams.AddNested("SpotFleetRequestConfig", err.(request.ErrInvalidParams))
  62091. }
  62092. }
  62093. if invalidParams.Len() > 0 {
  62094. return invalidParams
  62095. }
  62096. return nil
  62097. }
  62098. // SetDryRun sets the DryRun field's value.
  62099. func (s *RequestSpotFleetInput) SetDryRun(v bool) *RequestSpotFleetInput {
  62100. s.DryRun = &v
  62101. return s
  62102. }
  62103. // SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value.
  62104. func (s *RequestSpotFleetInput) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *RequestSpotFleetInput {
  62105. s.SpotFleetRequestConfig = v
  62106. return s
  62107. }
  62108. // Contains the output of RequestSpotFleet.
  62109. type RequestSpotFleetOutput struct {
  62110. _ struct{} `type:"structure"`
  62111. // The ID of the Spot Fleet request.
  62112. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
  62113. }
  62114. // String returns the string representation
  62115. func (s RequestSpotFleetOutput) String() string {
  62116. return awsutil.Prettify(s)
  62117. }
  62118. // GoString returns the string representation
  62119. func (s RequestSpotFleetOutput) GoString() string {
  62120. return s.String()
  62121. }
  62122. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  62123. func (s *RequestSpotFleetOutput) SetSpotFleetRequestId(v string) *RequestSpotFleetOutput {
  62124. s.SpotFleetRequestId = &v
  62125. return s
  62126. }
  62127. // Contains the parameters for RequestSpotInstances.
  62128. type RequestSpotInstancesInput struct {
  62129. _ struct{} `type:"structure"`
  62130. // The user-specified name for a logical grouping of requests.
  62131. //
  62132. // When you specify an Availability Zone group in a Spot Instance request, all
  62133. // Spot Instances in the request are launched in the same Availability Zone.
  62134. // Instance proximity is maintained with this parameter, but the choice of Availability
  62135. // Zone is not. The group applies only to requests for Spot Instances of the
  62136. // same instance type. Any additional Spot Instance requests that are specified
  62137. // with the same Availability Zone group name are launched in that same Availability
  62138. // Zone, as long as at least one instance from the group is still active.
  62139. //
  62140. // If there is no active instance running in the Availability Zone group that
  62141. // you specify for a new Spot Instance request (all instances are terminated,
  62142. // the request is expired, or the maximum price you specified falls below current
  62143. // Spot price), then Amazon EC2 launches the instance in any Availability Zone
  62144. // where the constraint can be met. Consequently, the subsequent set of Spot
  62145. // Instances could be placed in a different zone from the original request,
  62146. // even if you specified the same Availability Zone group.
  62147. //
  62148. // Default: Instances are launched in any available Availability Zone.
  62149. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`
  62150. // The required duration for the Spot Instances (also known as Spot blocks),
  62151. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  62152. // or 360).
  62153. //
  62154. // The duration period starts as soon as your Spot Instance receives its instance
  62155. // ID. At the end of the duration period, Amazon EC2 marks the Spot Instance
  62156. // for termination and provides a Spot Instance termination notice, which gives
  62157. // the instance a two-minute warning before it terminates.
  62158. //
  62159. // You can't specify an Availability Zone group or a launch group if you specify
  62160. // a duration.
  62161. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  62162. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  62163. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  62164. // in the Amazon EC2 User Guide for Linux Instances.
  62165. ClientToken *string `locationName:"clientToken" type:"string"`
  62166. // Checks whether you have the required permissions for the action, without
  62167. // actually making the request, and provides an error response. If you have
  62168. // the required permissions, the error response is DryRunOperation. Otherwise,
  62169. // it is UnauthorizedOperation.
  62170. DryRun *bool `locationName:"dryRun" type:"boolean"`
  62171. // The maximum number of Spot Instances to launch.
  62172. //
  62173. // Default: 1
  62174. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  62175. // The behavior when a Spot Instance is interrupted. The default is terminate.
  62176. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"`
  62177. // The instance launch group. Launch groups are Spot Instances that launch together
  62178. // and terminate together.
  62179. //
  62180. // Default: Instances are launched and terminated individually
  62181. LaunchGroup *string `locationName:"launchGroup" type:"string"`
  62182. // The launch specification.
  62183. LaunchSpecification *RequestSpotLaunchSpecification `type:"structure"`
  62184. // The maximum price per hour that you are willing to pay for a Spot Instance.
  62185. // The default is the On-Demand price.
  62186. SpotPrice *string `locationName:"spotPrice" type:"string"`
  62187. // The Spot Instance request type.
  62188. //
  62189. // Default: one-time
  62190. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"`
  62191. // The start date of the request. If this is a one-time request, the request
  62192. // becomes active at this date and time and remains active until all instances
  62193. // launch, the request expires, or the request is canceled. If the request is
  62194. // persistent, the request becomes active at this date and time and remains
  62195. // active until it expires or is canceled.
  62196. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`
  62197. // The end date of the request. If this is a one-time request, the request remains
  62198. // active until all instances launch, the request is canceled, or this date
  62199. // is reached. If the request is persistent, it remains active until it is canceled
  62200. // or this date is reached. The default end date is 7 days from the current
  62201. // date.
  62202. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
  62203. }
  62204. // String returns the string representation
  62205. func (s RequestSpotInstancesInput) String() string {
  62206. return awsutil.Prettify(s)
  62207. }
  62208. // GoString returns the string representation
  62209. func (s RequestSpotInstancesInput) GoString() string {
  62210. return s.String()
  62211. }
  62212. // Validate inspects the fields of the type to determine if they are valid.
  62213. func (s *RequestSpotInstancesInput) Validate() error {
  62214. invalidParams := request.ErrInvalidParams{Context: "RequestSpotInstancesInput"}
  62215. if s.LaunchSpecification != nil {
  62216. if err := s.LaunchSpecification.Validate(); err != nil {
  62217. invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams))
  62218. }
  62219. }
  62220. if invalidParams.Len() > 0 {
  62221. return invalidParams
  62222. }
  62223. return nil
  62224. }
  62225. // SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value.
  62226. func (s *RequestSpotInstancesInput) SetAvailabilityZoneGroup(v string) *RequestSpotInstancesInput {
  62227. s.AvailabilityZoneGroup = &v
  62228. return s
  62229. }
  62230. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  62231. func (s *RequestSpotInstancesInput) SetBlockDurationMinutes(v int64) *RequestSpotInstancesInput {
  62232. s.BlockDurationMinutes = &v
  62233. return s
  62234. }
  62235. // SetClientToken sets the ClientToken field's value.
  62236. func (s *RequestSpotInstancesInput) SetClientToken(v string) *RequestSpotInstancesInput {
  62237. s.ClientToken = &v
  62238. return s
  62239. }
  62240. // SetDryRun sets the DryRun field's value.
  62241. func (s *RequestSpotInstancesInput) SetDryRun(v bool) *RequestSpotInstancesInput {
  62242. s.DryRun = &v
  62243. return s
  62244. }
  62245. // SetInstanceCount sets the InstanceCount field's value.
  62246. func (s *RequestSpotInstancesInput) SetInstanceCount(v int64) *RequestSpotInstancesInput {
  62247. s.InstanceCount = &v
  62248. return s
  62249. }
  62250. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  62251. func (s *RequestSpotInstancesInput) SetInstanceInterruptionBehavior(v string) *RequestSpotInstancesInput {
  62252. s.InstanceInterruptionBehavior = &v
  62253. return s
  62254. }
  62255. // SetLaunchGroup sets the LaunchGroup field's value.
  62256. func (s *RequestSpotInstancesInput) SetLaunchGroup(v string) *RequestSpotInstancesInput {
  62257. s.LaunchGroup = &v
  62258. return s
  62259. }
  62260. // SetLaunchSpecification sets the LaunchSpecification field's value.
  62261. func (s *RequestSpotInstancesInput) SetLaunchSpecification(v *RequestSpotLaunchSpecification) *RequestSpotInstancesInput {
  62262. s.LaunchSpecification = v
  62263. return s
  62264. }
  62265. // SetSpotPrice sets the SpotPrice field's value.
  62266. func (s *RequestSpotInstancesInput) SetSpotPrice(v string) *RequestSpotInstancesInput {
  62267. s.SpotPrice = &v
  62268. return s
  62269. }
  62270. // SetType sets the Type field's value.
  62271. func (s *RequestSpotInstancesInput) SetType(v string) *RequestSpotInstancesInput {
  62272. s.Type = &v
  62273. return s
  62274. }
  62275. // SetValidFrom sets the ValidFrom field's value.
  62276. func (s *RequestSpotInstancesInput) SetValidFrom(v time.Time) *RequestSpotInstancesInput {
  62277. s.ValidFrom = &v
  62278. return s
  62279. }
  62280. // SetValidUntil sets the ValidUntil field's value.
  62281. func (s *RequestSpotInstancesInput) SetValidUntil(v time.Time) *RequestSpotInstancesInput {
  62282. s.ValidUntil = &v
  62283. return s
  62284. }
  62285. // Contains the output of RequestSpotInstances.
  62286. type RequestSpotInstancesOutput struct {
  62287. _ struct{} `type:"structure"`
  62288. // One or more Spot Instance requests.
  62289. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  62290. }
  62291. // String returns the string representation
  62292. func (s RequestSpotInstancesOutput) String() string {
  62293. return awsutil.Prettify(s)
  62294. }
  62295. // GoString returns the string representation
  62296. func (s RequestSpotInstancesOutput) GoString() string {
  62297. return s.String()
  62298. }
  62299. // SetSpotInstanceRequests sets the SpotInstanceRequests field's value.
  62300. func (s *RequestSpotInstancesOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *RequestSpotInstancesOutput {
  62301. s.SpotInstanceRequests = v
  62302. return s
  62303. }
  62304. // Describes the launch specification for an instance.
  62305. type RequestSpotLaunchSpecification struct {
  62306. _ struct{} `type:"structure"`
  62307. // Deprecated.
  62308. AddressingType *string `locationName:"addressingType" type:"string"`
  62309. // One or more block device mapping entries. You can't specify both a snapshot
  62310. // ID and an encryption value. This is because only blank volumes can be encrypted
  62311. // on creation. If a snapshot is the basis for a volume, it is not blank and
  62312. // its encryption status is used for the volume encryption status.
  62313. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  62314. // Indicates whether the instance is optimized for EBS I/O. This optimization
  62315. // provides dedicated throughput to Amazon EBS and an optimized configuration
  62316. // stack to provide optimal EBS I/O performance. This optimization isn't available
  62317. // with all instance types. Additional usage charges apply when using an EBS
  62318. // Optimized instance.
  62319. //
  62320. // Default: false
  62321. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  62322. // The IAM instance profile.
  62323. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  62324. // The ID of the AMI.
  62325. ImageId *string `locationName:"imageId" type:"string"`
  62326. // The instance type.
  62327. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  62328. // The ID of the kernel.
  62329. KernelId *string `locationName:"kernelId" type:"string"`
  62330. // The name of the key pair.
  62331. KeyName *string `locationName:"keyName" type:"string"`
  62332. // Indicates whether basic or detailed monitoring is enabled for the instance.
  62333. //
  62334. // Default: Disabled
  62335. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`
  62336. // One or more network interfaces. If you specify a network interface, you must
  62337. // specify subnet IDs and security group IDs using the network interface.
  62338. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"NetworkInterface" locationNameList:"item" type:"list"`
  62339. // The placement information for the instance.
  62340. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  62341. // The ID of the RAM disk.
  62342. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  62343. // One or more security group IDs.
  62344. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`
  62345. // One or more security groups. When requesting instances in a VPC, you must
  62346. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  62347. // you can specify the names or the IDs of the security groups.
  62348. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"item" type:"list"`
  62349. // The ID of the subnet in which to launch the instance.
  62350. SubnetId *string `locationName:"subnetId" type:"string"`
  62351. // The Base64-encoded user data for the instance.
  62352. UserData *string `locationName:"userData" type:"string"`
  62353. }
  62354. // String returns the string representation
  62355. func (s RequestSpotLaunchSpecification) String() string {
  62356. return awsutil.Prettify(s)
  62357. }
  62358. // GoString returns the string representation
  62359. func (s RequestSpotLaunchSpecification) GoString() string {
  62360. return s.String()
  62361. }
  62362. // Validate inspects the fields of the type to determine if they are valid.
  62363. func (s *RequestSpotLaunchSpecification) Validate() error {
  62364. invalidParams := request.ErrInvalidParams{Context: "RequestSpotLaunchSpecification"}
  62365. if s.Monitoring != nil {
  62366. if err := s.Monitoring.Validate(); err != nil {
  62367. invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams))
  62368. }
  62369. }
  62370. if invalidParams.Len() > 0 {
  62371. return invalidParams
  62372. }
  62373. return nil
  62374. }
  62375. // SetAddressingType sets the AddressingType field's value.
  62376. func (s *RequestSpotLaunchSpecification) SetAddressingType(v string) *RequestSpotLaunchSpecification {
  62377. s.AddressingType = &v
  62378. return s
  62379. }
  62380. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  62381. func (s *RequestSpotLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RequestSpotLaunchSpecification {
  62382. s.BlockDeviceMappings = v
  62383. return s
  62384. }
  62385. // SetEbsOptimized sets the EbsOptimized field's value.
  62386. func (s *RequestSpotLaunchSpecification) SetEbsOptimized(v bool) *RequestSpotLaunchSpecification {
  62387. s.EbsOptimized = &v
  62388. return s
  62389. }
  62390. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  62391. func (s *RequestSpotLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RequestSpotLaunchSpecification {
  62392. s.IamInstanceProfile = v
  62393. return s
  62394. }
  62395. // SetImageId sets the ImageId field's value.
  62396. func (s *RequestSpotLaunchSpecification) SetImageId(v string) *RequestSpotLaunchSpecification {
  62397. s.ImageId = &v
  62398. return s
  62399. }
  62400. // SetInstanceType sets the InstanceType field's value.
  62401. func (s *RequestSpotLaunchSpecification) SetInstanceType(v string) *RequestSpotLaunchSpecification {
  62402. s.InstanceType = &v
  62403. return s
  62404. }
  62405. // SetKernelId sets the KernelId field's value.
  62406. func (s *RequestSpotLaunchSpecification) SetKernelId(v string) *RequestSpotLaunchSpecification {
  62407. s.KernelId = &v
  62408. return s
  62409. }
  62410. // SetKeyName sets the KeyName field's value.
  62411. func (s *RequestSpotLaunchSpecification) SetKeyName(v string) *RequestSpotLaunchSpecification {
  62412. s.KeyName = &v
  62413. return s
  62414. }
  62415. // SetMonitoring sets the Monitoring field's value.
  62416. func (s *RequestSpotLaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *RequestSpotLaunchSpecification {
  62417. s.Monitoring = v
  62418. return s
  62419. }
  62420. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  62421. func (s *RequestSpotLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RequestSpotLaunchSpecification {
  62422. s.NetworkInterfaces = v
  62423. return s
  62424. }
  62425. // SetPlacement sets the Placement field's value.
  62426. func (s *RequestSpotLaunchSpecification) SetPlacement(v *SpotPlacement) *RequestSpotLaunchSpecification {
  62427. s.Placement = v
  62428. return s
  62429. }
  62430. // SetRamdiskId sets the RamdiskId field's value.
  62431. func (s *RequestSpotLaunchSpecification) SetRamdiskId(v string) *RequestSpotLaunchSpecification {
  62432. s.RamdiskId = &v
  62433. return s
  62434. }
  62435. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  62436. func (s *RequestSpotLaunchSpecification) SetSecurityGroupIds(v []*string) *RequestSpotLaunchSpecification {
  62437. s.SecurityGroupIds = v
  62438. return s
  62439. }
  62440. // SetSecurityGroups sets the SecurityGroups field's value.
  62441. func (s *RequestSpotLaunchSpecification) SetSecurityGroups(v []*string) *RequestSpotLaunchSpecification {
  62442. s.SecurityGroups = v
  62443. return s
  62444. }
  62445. // SetSubnetId sets the SubnetId field's value.
  62446. func (s *RequestSpotLaunchSpecification) SetSubnetId(v string) *RequestSpotLaunchSpecification {
  62447. s.SubnetId = &v
  62448. return s
  62449. }
  62450. // SetUserData sets the UserData field's value.
  62451. func (s *RequestSpotLaunchSpecification) SetUserData(v string) *RequestSpotLaunchSpecification {
  62452. s.UserData = &v
  62453. return s
  62454. }
  62455. // Describes a reservation.
  62456. type Reservation struct {
  62457. _ struct{} `type:"structure"`
  62458. // [EC2-Classic only] One or more security groups.
  62459. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  62460. // One or more instances.
  62461. Instances []*Instance `locationName:"instancesSet" locationNameList:"item" type:"list"`
  62462. // The ID of the AWS account that owns the reservation.
  62463. OwnerId *string `locationName:"ownerId" type:"string"`
  62464. // The ID of the requester that launched the instances on your behalf (for example,
  62465. // AWS Management Console or Auto Scaling).
  62466. RequesterId *string `locationName:"requesterId" type:"string"`
  62467. // The ID of the reservation.
  62468. ReservationId *string `locationName:"reservationId" type:"string"`
  62469. }
  62470. // String returns the string representation
  62471. func (s Reservation) String() string {
  62472. return awsutil.Prettify(s)
  62473. }
  62474. // GoString returns the string representation
  62475. func (s Reservation) GoString() string {
  62476. return s.String()
  62477. }
  62478. // SetGroups sets the Groups field's value.
  62479. func (s *Reservation) SetGroups(v []*GroupIdentifier) *Reservation {
  62480. s.Groups = v
  62481. return s
  62482. }
  62483. // SetInstances sets the Instances field's value.
  62484. func (s *Reservation) SetInstances(v []*Instance) *Reservation {
  62485. s.Instances = v
  62486. return s
  62487. }
  62488. // SetOwnerId sets the OwnerId field's value.
  62489. func (s *Reservation) SetOwnerId(v string) *Reservation {
  62490. s.OwnerId = &v
  62491. return s
  62492. }
  62493. // SetRequesterId sets the RequesterId field's value.
  62494. func (s *Reservation) SetRequesterId(v string) *Reservation {
  62495. s.RequesterId = &v
  62496. return s
  62497. }
  62498. // SetReservationId sets the ReservationId field's value.
  62499. func (s *Reservation) SetReservationId(v string) *Reservation {
  62500. s.ReservationId = &v
  62501. return s
  62502. }
  62503. // The cost associated with the Reserved Instance.
  62504. type ReservationValue struct {
  62505. _ struct{} `type:"structure"`
  62506. // The hourly rate of the reservation.
  62507. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  62508. // The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice
  62509. // * number of hours remaining).
  62510. RemainingTotalValue *string `locationName:"remainingTotalValue" type:"string"`
  62511. // The remaining upfront cost of the reservation.
  62512. RemainingUpfrontValue *string `locationName:"remainingUpfrontValue" type:"string"`
  62513. }
  62514. // String returns the string representation
  62515. func (s ReservationValue) String() string {
  62516. return awsutil.Prettify(s)
  62517. }
  62518. // GoString returns the string representation
  62519. func (s ReservationValue) GoString() string {
  62520. return s.String()
  62521. }
  62522. // SetHourlyPrice sets the HourlyPrice field's value.
  62523. func (s *ReservationValue) SetHourlyPrice(v string) *ReservationValue {
  62524. s.HourlyPrice = &v
  62525. return s
  62526. }
  62527. // SetRemainingTotalValue sets the RemainingTotalValue field's value.
  62528. func (s *ReservationValue) SetRemainingTotalValue(v string) *ReservationValue {
  62529. s.RemainingTotalValue = &v
  62530. return s
  62531. }
  62532. // SetRemainingUpfrontValue sets the RemainingUpfrontValue field's value.
  62533. func (s *ReservationValue) SetRemainingUpfrontValue(v string) *ReservationValue {
  62534. s.RemainingUpfrontValue = &v
  62535. return s
  62536. }
  62537. // Describes the limit price of a Reserved Instance offering.
  62538. type ReservedInstanceLimitPrice struct {
  62539. _ struct{} `type:"structure"`
  62540. // Used for Reserved Instance Marketplace offerings. Specifies the limit price
  62541. // on the total order (instanceCount * price).
  62542. Amount *float64 `locationName:"amount" type:"double"`
  62543. // The currency in which the limitPrice amount is specified. At this time, the
  62544. // only supported currency is USD.
  62545. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  62546. }
  62547. // String returns the string representation
  62548. func (s ReservedInstanceLimitPrice) String() string {
  62549. return awsutil.Prettify(s)
  62550. }
  62551. // GoString returns the string representation
  62552. func (s ReservedInstanceLimitPrice) GoString() string {
  62553. return s.String()
  62554. }
  62555. // SetAmount sets the Amount field's value.
  62556. func (s *ReservedInstanceLimitPrice) SetAmount(v float64) *ReservedInstanceLimitPrice {
  62557. s.Amount = &v
  62558. return s
  62559. }
  62560. // SetCurrencyCode sets the CurrencyCode field's value.
  62561. func (s *ReservedInstanceLimitPrice) SetCurrencyCode(v string) *ReservedInstanceLimitPrice {
  62562. s.CurrencyCode = &v
  62563. return s
  62564. }
  62565. // The total value of the Convertible Reserved Instance.
  62566. type ReservedInstanceReservationValue struct {
  62567. _ struct{} `type:"structure"`
  62568. // The total value of the Convertible Reserved Instance that you are exchanging.
  62569. ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"`
  62570. // The ID of the Convertible Reserved Instance that you are exchanging.
  62571. ReservedInstanceId *string `locationName:"reservedInstanceId" type:"string"`
  62572. }
  62573. // String returns the string representation
  62574. func (s ReservedInstanceReservationValue) String() string {
  62575. return awsutil.Prettify(s)
  62576. }
  62577. // GoString returns the string representation
  62578. func (s ReservedInstanceReservationValue) GoString() string {
  62579. return s.String()
  62580. }
  62581. // SetReservationValue sets the ReservationValue field's value.
  62582. func (s *ReservedInstanceReservationValue) SetReservationValue(v *ReservationValue) *ReservedInstanceReservationValue {
  62583. s.ReservationValue = v
  62584. return s
  62585. }
  62586. // SetReservedInstanceId sets the ReservedInstanceId field's value.
  62587. func (s *ReservedInstanceReservationValue) SetReservedInstanceId(v string) *ReservedInstanceReservationValue {
  62588. s.ReservedInstanceId = &v
  62589. return s
  62590. }
  62591. // Describes a Reserved Instance.
  62592. type ReservedInstances struct {
  62593. _ struct{} `type:"structure"`
  62594. // The Availability Zone in which the Reserved Instance can be used.
  62595. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  62596. // The currency of the Reserved Instance. It's specified using ISO 4217 standard
  62597. // currency codes. At this time, the only supported currency is USD.
  62598. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  62599. // The duration of the Reserved Instance, in seconds.
  62600. Duration *int64 `locationName:"duration" type:"long"`
  62601. // The time when the Reserved Instance expires.
  62602. End *time.Time `locationName:"end" type:"timestamp"`
  62603. // The purchase price of the Reserved Instance.
  62604. FixedPrice *float64 `locationName:"fixedPrice" type:"float"`
  62605. // The number of reservations purchased.
  62606. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  62607. // The tenancy of the instance.
  62608. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  62609. // The instance type on which the Reserved Instance can be used.
  62610. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  62611. // The offering class of the Reserved Instance.
  62612. OfferingClass *string `locationName:"offeringClass" type:"string" enum:"OfferingClassType"`
  62613. // The Reserved Instance offering type.
  62614. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  62615. // The Reserved Instance product platform description.
  62616. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  62617. // The recurring charge tag assigned to the resource.
  62618. RecurringCharges []*RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`
  62619. // The ID of the Reserved Instance.
  62620. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  62621. // The scope of the Reserved Instance.
  62622. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  62623. // The date and time the Reserved Instance started.
  62624. Start *time.Time `locationName:"start" type:"timestamp"`
  62625. // The state of the Reserved Instance purchase.
  62626. State *string `locationName:"state" type:"string" enum:"ReservedInstanceState"`
  62627. // Any tags assigned to the resource.
  62628. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  62629. // The usage price of the Reserved Instance, per hour.
  62630. UsagePrice *float64 `locationName:"usagePrice" type:"float"`
  62631. }
  62632. // String returns the string representation
  62633. func (s ReservedInstances) String() string {
  62634. return awsutil.Prettify(s)
  62635. }
  62636. // GoString returns the string representation
  62637. func (s ReservedInstances) GoString() string {
  62638. return s.String()
  62639. }
  62640. // SetAvailabilityZone sets the AvailabilityZone field's value.
  62641. func (s *ReservedInstances) SetAvailabilityZone(v string) *ReservedInstances {
  62642. s.AvailabilityZone = &v
  62643. return s
  62644. }
  62645. // SetCurrencyCode sets the CurrencyCode field's value.
  62646. func (s *ReservedInstances) SetCurrencyCode(v string) *ReservedInstances {
  62647. s.CurrencyCode = &v
  62648. return s
  62649. }
  62650. // SetDuration sets the Duration field's value.
  62651. func (s *ReservedInstances) SetDuration(v int64) *ReservedInstances {
  62652. s.Duration = &v
  62653. return s
  62654. }
  62655. // SetEnd sets the End field's value.
  62656. func (s *ReservedInstances) SetEnd(v time.Time) *ReservedInstances {
  62657. s.End = &v
  62658. return s
  62659. }
  62660. // SetFixedPrice sets the FixedPrice field's value.
  62661. func (s *ReservedInstances) SetFixedPrice(v float64) *ReservedInstances {
  62662. s.FixedPrice = &v
  62663. return s
  62664. }
  62665. // SetInstanceCount sets the InstanceCount field's value.
  62666. func (s *ReservedInstances) SetInstanceCount(v int64) *ReservedInstances {
  62667. s.InstanceCount = &v
  62668. return s
  62669. }
  62670. // SetInstanceTenancy sets the InstanceTenancy field's value.
  62671. func (s *ReservedInstances) SetInstanceTenancy(v string) *ReservedInstances {
  62672. s.InstanceTenancy = &v
  62673. return s
  62674. }
  62675. // SetInstanceType sets the InstanceType field's value.
  62676. func (s *ReservedInstances) SetInstanceType(v string) *ReservedInstances {
  62677. s.InstanceType = &v
  62678. return s
  62679. }
  62680. // SetOfferingClass sets the OfferingClass field's value.
  62681. func (s *ReservedInstances) SetOfferingClass(v string) *ReservedInstances {
  62682. s.OfferingClass = &v
  62683. return s
  62684. }
  62685. // SetOfferingType sets the OfferingType field's value.
  62686. func (s *ReservedInstances) SetOfferingType(v string) *ReservedInstances {
  62687. s.OfferingType = &v
  62688. return s
  62689. }
  62690. // SetProductDescription sets the ProductDescription field's value.
  62691. func (s *ReservedInstances) SetProductDescription(v string) *ReservedInstances {
  62692. s.ProductDescription = &v
  62693. return s
  62694. }
  62695. // SetRecurringCharges sets the RecurringCharges field's value.
  62696. func (s *ReservedInstances) SetRecurringCharges(v []*RecurringCharge) *ReservedInstances {
  62697. s.RecurringCharges = v
  62698. return s
  62699. }
  62700. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  62701. func (s *ReservedInstances) SetReservedInstancesId(v string) *ReservedInstances {
  62702. s.ReservedInstancesId = &v
  62703. return s
  62704. }
  62705. // SetScope sets the Scope field's value.
  62706. func (s *ReservedInstances) SetScope(v string) *ReservedInstances {
  62707. s.Scope = &v
  62708. return s
  62709. }
  62710. // SetStart sets the Start field's value.
  62711. func (s *ReservedInstances) SetStart(v time.Time) *ReservedInstances {
  62712. s.Start = &v
  62713. return s
  62714. }
  62715. // SetState sets the State field's value.
  62716. func (s *ReservedInstances) SetState(v string) *ReservedInstances {
  62717. s.State = &v
  62718. return s
  62719. }
  62720. // SetTags sets the Tags field's value.
  62721. func (s *ReservedInstances) SetTags(v []*Tag) *ReservedInstances {
  62722. s.Tags = v
  62723. return s
  62724. }
  62725. // SetUsagePrice sets the UsagePrice field's value.
  62726. func (s *ReservedInstances) SetUsagePrice(v float64) *ReservedInstances {
  62727. s.UsagePrice = &v
  62728. return s
  62729. }
  62730. // Describes the configuration settings for the modified Reserved Instances.
  62731. type ReservedInstancesConfiguration struct {
  62732. _ struct{} `type:"structure"`
  62733. // The Availability Zone for the modified Reserved Instances.
  62734. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  62735. // The number of modified Reserved Instances.
  62736. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  62737. // The instance type for the modified Reserved Instances.
  62738. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  62739. // The network platform of the modified Reserved Instances, which is either
  62740. // EC2-Classic or EC2-VPC.
  62741. Platform *string `locationName:"platform" type:"string"`
  62742. // Whether the Reserved Instance is applied to instances in a region or instances
  62743. // in a specific Availability Zone.
  62744. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  62745. }
  62746. // String returns the string representation
  62747. func (s ReservedInstancesConfiguration) String() string {
  62748. return awsutil.Prettify(s)
  62749. }
  62750. // GoString returns the string representation
  62751. func (s ReservedInstancesConfiguration) GoString() string {
  62752. return s.String()
  62753. }
  62754. // SetAvailabilityZone sets the AvailabilityZone field's value.
  62755. func (s *ReservedInstancesConfiguration) SetAvailabilityZone(v string) *ReservedInstancesConfiguration {
  62756. s.AvailabilityZone = &v
  62757. return s
  62758. }
  62759. // SetInstanceCount sets the InstanceCount field's value.
  62760. func (s *ReservedInstancesConfiguration) SetInstanceCount(v int64) *ReservedInstancesConfiguration {
  62761. s.InstanceCount = &v
  62762. return s
  62763. }
  62764. // SetInstanceType sets the InstanceType field's value.
  62765. func (s *ReservedInstancesConfiguration) SetInstanceType(v string) *ReservedInstancesConfiguration {
  62766. s.InstanceType = &v
  62767. return s
  62768. }
  62769. // SetPlatform sets the Platform field's value.
  62770. func (s *ReservedInstancesConfiguration) SetPlatform(v string) *ReservedInstancesConfiguration {
  62771. s.Platform = &v
  62772. return s
  62773. }
  62774. // SetScope sets the Scope field's value.
  62775. func (s *ReservedInstancesConfiguration) SetScope(v string) *ReservedInstancesConfiguration {
  62776. s.Scope = &v
  62777. return s
  62778. }
  62779. // Describes the ID of a Reserved Instance.
  62780. type ReservedInstancesId struct {
  62781. _ struct{} `type:"structure"`
  62782. // The ID of the Reserved Instance.
  62783. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  62784. }
  62785. // String returns the string representation
  62786. func (s ReservedInstancesId) String() string {
  62787. return awsutil.Prettify(s)
  62788. }
  62789. // GoString returns the string representation
  62790. func (s ReservedInstancesId) GoString() string {
  62791. return s.String()
  62792. }
  62793. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  62794. func (s *ReservedInstancesId) SetReservedInstancesId(v string) *ReservedInstancesId {
  62795. s.ReservedInstancesId = &v
  62796. return s
  62797. }
  62798. // Describes a Reserved Instance listing.
  62799. type ReservedInstancesListing struct {
  62800. _ struct{} `type:"structure"`
  62801. // A unique, case-sensitive key supplied by the client to ensure that the request
  62802. // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  62803. ClientToken *string `locationName:"clientToken" type:"string"`
  62804. // The time the listing was created.
  62805. CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
  62806. // The number of instances in this state.
  62807. InstanceCounts []*InstanceCount `locationName:"instanceCounts" locationNameList:"item" type:"list"`
  62808. // The price of the Reserved Instance listing.
  62809. PriceSchedules []*PriceSchedule `locationName:"priceSchedules" locationNameList:"item" type:"list"`
  62810. // The ID of the Reserved Instance.
  62811. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  62812. // The ID of the Reserved Instance listing.
  62813. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`
  62814. // The status of the Reserved Instance listing.
  62815. Status *string `locationName:"status" type:"string" enum:"ListingStatus"`
  62816. // The reason for the current status of the Reserved Instance listing. The response
  62817. // can be blank.
  62818. StatusMessage *string `locationName:"statusMessage" type:"string"`
  62819. // Any tags assigned to the resource.
  62820. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  62821. // The last modified timestamp of the listing.
  62822. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp"`
  62823. }
  62824. // String returns the string representation
  62825. func (s ReservedInstancesListing) String() string {
  62826. return awsutil.Prettify(s)
  62827. }
  62828. // GoString returns the string representation
  62829. func (s ReservedInstancesListing) GoString() string {
  62830. return s.String()
  62831. }
  62832. // SetClientToken sets the ClientToken field's value.
  62833. func (s *ReservedInstancesListing) SetClientToken(v string) *ReservedInstancesListing {
  62834. s.ClientToken = &v
  62835. return s
  62836. }
  62837. // SetCreateDate sets the CreateDate field's value.
  62838. func (s *ReservedInstancesListing) SetCreateDate(v time.Time) *ReservedInstancesListing {
  62839. s.CreateDate = &v
  62840. return s
  62841. }
  62842. // SetInstanceCounts sets the InstanceCounts field's value.
  62843. func (s *ReservedInstancesListing) SetInstanceCounts(v []*InstanceCount) *ReservedInstancesListing {
  62844. s.InstanceCounts = v
  62845. return s
  62846. }
  62847. // SetPriceSchedules sets the PriceSchedules field's value.
  62848. func (s *ReservedInstancesListing) SetPriceSchedules(v []*PriceSchedule) *ReservedInstancesListing {
  62849. s.PriceSchedules = v
  62850. return s
  62851. }
  62852. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  62853. func (s *ReservedInstancesListing) SetReservedInstancesId(v string) *ReservedInstancesListing {
  62854. s.ReservedInstancesId = &v
  62855. return s
  62856. }
  62857. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  62858. func (s *ReservedInstancesListing) SetReservedInstancesListingId(v string) *ReservedInstancesListing {
  62859. s.ReservedInstancesListingId = &v
  62860. return s
  62861. }
  62862. // SetStatus sets the Status field's value.
  62863. func (s *ReservedInstancesListing) SetStatus(v string) *ReservedInstancesListing {
  62864. s.Status = &v
  62865. return s
  62866. }
  62867. // SetStatusMessage sets the StatusMessage field's value.
  62868. func (s *ReservedInstancesListing) SetStatusMessage(v string) *ReservedInstancesListing {
  62869. s.StatusMessage = &v
  62870. return s
  62871. }
  62872. // SetTags sets the Tags field's value.
  62873. func (s *ReservedInstancesListing) SetTags(v []*Tag) *ReservedInstancesListing {
  62874. s.Tags = v
  62875. return s
  62876. }
  62877. // SetUpdateDate sets the UpdateDate field's value.
  62878. func (s *ReservedInstancesListing) SetUpdateDate(v time.Time) *ReservedInstancesListing {
  62879. s.UpdateDate = &v
  62880. return s
  62881. }
  62882. // Describes a Reserved Instance modification.
  62883. type ReservedInstancesModification struct {
  62884. _ struct{} `type:"structure"`
  62885. // A unique, case-sensitive key supplied by the client to ensure that the request
  62886. // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  62887. ClientToken *string `locationName:"clientToken" type:"string"`
  62888. // The time when the modification request was created.
  62889. CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
  62890. // The time for the modification to become effective.
  62891. EffectiveDate *time.Time `locationName:"effectiveDate" type:"timestamp"`
  62892. // Contains target configurations along with their corresponding new Reserved
  62893. // Instance IDs.
  62894. ModificationResults []*ReservedInstancesModificationResult `locationName:"modificationResultSet" locationNameList:"item" type:"list"`
  62895. // The IDs of one or more Reserved Instances.
  62896. ReservedInstancesIds []*ReservedInstancesId `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`
  62897. // A unique ID for the Reserved Instance modification.
  62898. ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`
  62899. // The status of the Reserved Instances modification request.
  62900. Status *string `locationName:"status" type:"string"`
  62901. // The reason for the status.
  62902. StatusMessage *string `locationName:"statusMessage" type:"string"`
  62903. // The time when the modification request was last updated.
  62904. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp"`
  62905. }
  62906. // String returns the string representation
  62907. func (s ReservedInstancesModification) String() string {
  62908. return awsutil.Prettify(s)
  62909. }
  62910. // GoString returns the string representation
  62911. func (s ReservedInstancesModification) GoString() string {
  62912. return s.String()
  62913. }
  62914. // SetClientToken sets the ClientToken field's value.
  62915. func (s *ReservedInstancesModification) SetClientToken(v string) *ReservedInstancesModification {
  62916. s.ClientToken = &v
  62917. return s
  62918. }
  62919. // SetCreateDate sets the CreateDate field's value.
  62920. func (s *ReservedInstancesModification) SetCreateDate(v time.Time) *ReservedInstancesModification {
  62921. s.CreateDate = &v
  62922. return s
  62923. }
  62924. // SetEffectiveDate sets the EffectiveDate field's value.
  62925. func (s *ReservedInstancesModification) SetEffectiveDate(v time.Time) *ReservedInstancesModification {
  62926. s.EffectiveDate = &v
  62927. return s
  62928. }
  62929. // SetModificationResults sets the ModificationResults field's value.
  62930. func (s *ReservedInstancesModification) SetModificationResults(v []*ReservedInstancesModificationResult) *ReservedInstancesModification {
  62931. s.ModificationResults = v
  62932. return s
  62933. }
  62934. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  62935. func (s *ReservedInstancesModification) SetReservedInstancesIds(v []*ReservedInstancesId) *ReservedInstancesModification {
  62936. s.ReservedInstancesIds = v
  62937. return s
  62938. }
  62939. // SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value.
  62940. func (s *ReservedInstancesModification) SetReservedInstancesModificationId(v string) *ReservedInstancesModification {
  62941. s.ReservedInstancesModificationId = &v
  62942. return s
  62943. }
  62944. // SetStatus sets the Status field's value.
  62945. func (s *ReservedInstancesModification) SetStatus(v string) *ReservedInstancesModification {
  62946. s.Status = &v
  62947. return s
  62948. }
  62949. // SetStatusMessage sets the StatusMessage field's value.
  62950. func (s *ReservedInstancesModification) SetStatusMessage(v string) *ReservedInstancesModification {
  62951. s.StatusMessage = &v
  62952. return s
  62953. }
  62954. // SetUpdateDate sets the UpdateDate field's value.
  62955. func (s *ReservedInstancesModification) SetUpdateDate(v time.Time) *ReservedInstancesModification {
  62956. s.UpdateDate = &v
  62957. return s
  62958. }
  62959. // Describes the modification request/s.
  62960. type ReservedInstancesModificationResult struct {
  62961. _ struct{} `type:"structure"`
  62962. // The ID for the Reserved Instances that were created as part of the modification
  62963. // request. This field is only available when the modification is fulfilled.
  62964. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  62965. // The target Reserved Instances configurations supplied as part of the modification
  62966. // request.
  62967. TargetConfiguration *ReservedInstancesConfiguration `locationName:"targetConfiguration" type:"structure"`
  62968. }
  62969. // String returns the string representation
  62970. func (s ReservedInstancesModificationResult) String() string {
  62971. return awsutil.Prettify(s)
  62972. }
  62973. // GoString returns the string representation
  62974. func (s ReservedInstancesModificationResult) GoString() string {
  62975. return s.String()
  62976. }
  62977. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  62978. func (s *ReservedInstancesModificationResult) SetReservedInstancesId(v string) *ReservedInstancesModificationResult {
  62979. s.ReservedInstancesId = &v
  62980. return s
  62981. }
  62982. // SetTargetConfiguration sets the TargetConfiguration field's value.
  62983. func (s *ReservedInstancesModificationResult) SetTargetConfiguration(v *ReservedInstancesConfiguration) *ReservedInstancesModificationResult {
  62984. s.TargetConfiguration = v
  62985. return s
  62986. }
  62987. // Describes a Reserved Instance offering.
  62988. type ReservedInstancesOffering struct {
  62989. _ struct{} `type:"structure"`
  62990. // The Availability Zone in which the Reserved Instance can be used.
  62991. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  62992. // The currency of the Reserved Instance offering you are purchasing. It's specified
  62993. // using ISO 4217 standard currency codes. At this time, the only supported
  62994. // currency is USD.
  62995. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  62996. // The duration of the Reserved Instance, in seconds.
  62997. Duration *int64 `locationName:"duration" type:"long"`
  62998. // The purchase price of the Reserved Instance.
  62999. FixedPrice *float64 `locationName:"fixedPrice" type:"float"`
  63000. // The tenancy of the instance.
  63001. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  63002. // The instance type on which the Reserved Instance can be used.
  63003. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  63004. // Indicates whether the offering is available through the Reserved Instance
  63005. // Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering,
  63006. // this is true.
  63007. Marketplace *bool `locationName:"marketplace" type:"boolean"`
  63008. // If convertible it can be exchanged for Reserved Instances of the same or
  63009. // higher monetary value, with different configurations. If standard, it is
  63010. // not possible to perform an exchange.
  63011. OfferingClass *string `locationName:"offeringClass" type:"string" enum:"OfferingClassType"`
  63012. // The Reserved Instance offering type.
  63013. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  63014. // The pricing details of the Reserved Instance offering.
  63015. PricingDetails []*PricingDetail `locationName:"pricingDetailsSet" locationNameList:"item" type:"list"`
  63016. // The Reserved Instance product platform description.
  63017. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  63018. // The recurring charge tag assigned to the resource.
  63019. RecurringCharges []*RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`
  63020. // The ID of the Reserved Instance offering. This is the offering ID used in
  63021. // GetReservedInstancesExchangeQuote to confirm that an exchange can be made.
  63022. ReservedInstancesOfferingId *string `locationName:"reservedInstancesOfferingId" type:"string"`
  63023. // Whether the Reserved Instance is applied to instances in a region or an Availability
  63024. // Zone.
  63025. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  63026. // The usage price of the Reserved Instance, per hour.
  63027. UsagePrice *float64 `locationName:"usagePrice" type:"float"`
  63028. }
  63029. // String returns the string representation
  63030. func (s ReservedInstancesOffering) String() string {
  63031. return awsutil.Prettify(s)
  63032. }
  63033. // GoString returns the string representation
  63034. func (s ReservedInstancesOffering) GoString() string {
  63035. return s.String()
  63036. }
  63037. // SetAvailabilityZone sets the AvailabilityZone field's value.
  63038. func (s *ReservedInstancesOffering) SetAvailabilityZone(v string) *ReservedInstancesOffering {
  63039. s.AvailabilityZone = &v
  63040. return s
  63041. }
  63042. // SetCurrencyCode sets the CurrencyCode field's value.
  63043. func (s *ReservedInstancesOffering) SetCurrencyCode(v string) *ReservedInstancesOffering {
  63044. s.CurrencyCode = &v
  63045. return s
  63046. }
  63047. // SetDuration sets the Duration field's value.
  63048. func (s *ReservedInstancesOffering) SetDuration(v int64) *ReservedInstancesOffering {
  63049. s.Duration = &v
  63050. return s
  63051. }
  63052. // SetFixedPrice sets the FixedPrice field's value.
  63053. func (s *ReservedInstancesOffering) SetFixedPrice(v float64) *ReservedInstancesOffering {
  63054. s.FixedPrice = &v
  63055. return s
  63056. }
  63057. // SetInstanceTenancy sets the InstanceTenancy field's value.
  63058. func (s *ReservedInstancesOffering) SetInstanceTenancy(v string) *ReservedInstancesOffering {
  63059. s.InstanceTenancy = &v
  63060. return s
  63061. }
  63062. // SetInstanceType sets the InstanceType field's value.
  63063. func (s *ReservedInstancesOffering) SetInstanceType(v string) *ReservedInstancesOffering {
  63064. s.InstanceType = &v
  63065. return s
  63066. }
  63067. // SetMarketplace sets the Marketplace field's value.
  63068. func (s *ReservedInstancesOffering) SetMarketplace(v bool) *ReservedInstancesOffering {
  63069. s.Marketplace = &v
  63070. return s
  63071. }
  63072. // SetOfferingClass sets the OfferingClass field's value.
  63073. func (s *ReservedInstancesOffering) SetOfferingClass(v string) *ReservedInstancesOffering {
  63074. s.OfferingClass = &v
  63075. return s
  63076. }
  63077. // SetOfferingType sets the OfferingType field's value.
  63078. func (s *ReservedInstancesOffering) SetOfferingType(v string) *ReservedInstancesOffering {
  63079. s.OfferingType = &v
  63080. return s
  63081. }
  63082. // SetPricingDetails sets the PricingDetails field's value.
  63083. func (s *ReservedInstancesOffering) SetPricingDetails(v []*PricingDetail) *ReservedInstancesOffering {
  63084. s.PricingDetails = v
  63085. return s
  63086. }
  63087. // SetProductDescription sets the ProductDescription field's value.
  63088. func (s *ReservedInstancesOffering) SetProductDescription(v string) *ReservedInstancesOffering {
  63089. s.ProductDescription = &v
  63090. return s
  63091. }
  63092. // SetRecurringCharges sets the RecurringCharges field's value.
  63093. func (s *ReservedInstancesOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedInstancesOffering {
  63094. s.RecurringCharges = v
  63095. return s
  63096. }
  63097. // SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value.
  63098. func (s *ReservedInstancesOffering) SetReservedInstancesOfferingId(v string) *ReservedInstancesOffering {
  63099. s.ReservedInstancesOfferingId = &v
  63100. return s
  63101. }
  63102. // SetScope sets the Scope field's value.
  63103. func (s *ReservedInstancesOffering) SetScope(v string) *ReservedInstancesOffering {
  63104. s.Scope = &v
  63105. return s
  63106. }
  63107. // SetUsagePrice sets the UsagePrice field's value.
  63108. func (s *ReservedInstancesOffering) SetUsagePrice(v float64) *ReservedInstancesOffering {
  63109. s.UsagePrice = &v
  63110. return s
  63111. }
  63112. type ResetFpgaImageAttributeInput struct {
  63113. _ struct{} `type:"structure"`
  63114. // The attribute.
  63115. Attribute *string `type:"string" enum:"ResetFpgaImageAttributeName"`
  63116. // Checks whether you have the required permissions for the action, without
  63117. // actually making the request, and provides an error response. If you have
  63118. // the required permissions, the error response is DryRunOperation. Otherwise,
  63119. // it is UnauthorizedOperation.
  63120. DryRun *bool `type:"boolean"`
  63121. // The ID of the AFI.
  63122. //
  63123. // FpgaImageId is a required field
  63124. FpgaImageId *string `type:"string" required:"true"`
  63125. }
  63126. // String returns the string representation
  63127. func (s ResetFpgaImageAttributeInput) String() string {
  63128. return awsutil.Prettify(s)
  63129. }
  63130. // GoString returns the string representation
  63131. func (s ResetFpgaImageAttributeInput) GoString() string {
  63132. return s.String()
  63133. }
  63134. // Validate inspects the fields of the type to determine if they are valid.
  63135. func (s *ResetFpgaImageAttributeInput) Validate() error {
  63136. invalidParams := request.ErrInvalidParams{Context: "ResetFpgaImageAttributeInput"}
  63137. if s.FpgaImageId == nil {
  63138. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  63139. }
  63140. if invalidParams.Len() > 0 {
  63141. return invalidParams
  63142. }
  63143. return nil
  63144. }
  63145. // SetAttribute sets the Attribute field's value.
  63146. func (s *ResetFpgaImageAttributeInput) SetAttribute(v string) *ResetFpgaImageAttributeInput {
  63147. s.Attribute = &v
  63148. return s
  63149. }
  63150. // SetDryRun sets the DryRun field's value.
  63151. func (s *ResetFpgaImageAttributeInput) SetDryRun(v bool) *ResetFpgaImageAttributeInput {
  63152. s.DryRun = &v
  63153. return s
  63154. }
  63155. // SetFpgaImageId sets the FpgaImageId field's value.
  63156. func (s *ResetFpgaImageAttributeInput) SetFpgaImageId(v string) *ResetFpgaImageAttributeInput {
  63157. s.FpgaImageId = &v
  63158. return s
  63159. }
  63160. type ResetFpgaImageAttributeOutput struct {
  63161. _ struct{} `type:"structure"`
  63162. // Is true if the request succeeds, and an error otherwise.
  63163. Return *bool `locationName:"return" type:"boolean"`
  63164. }
  63165. // String returns the string representation
  63166. func (s ResetFpgaImageAttributeOutput) String() string {
  63167. return awsutil.Prettify(s)
  63168. }
  63169. // GoString returns the string representation
  63170. func (s ResetFpgaImageAttributeOutput) GoString() string {
  63171. return s.String()
  63172. }
  63173. // SetReturn sets the Return field's value.
  63174. func (s *ResetFpgaImageAttributeOutput) SetReturn(v bool) *ResetFpgaImageAttributeOutput {
  63175. s.Return = &v
  63176. return s
  63177. }
  63178. // Contains the parameters for ResetImageAttribute.
  63179. type ResetImageAttributeInput struct {
  63180. _ struct{} `type:"structure"`
  63181. // The attribute to reset (currently you can only reset the launch permission
  63182. // attribute).
  63183. //
  63184. // Attribute is a required field
  63185. Attribute *string `type:"string" required:"true" enum:"ResetImageAttributeName"`
  63186. // Checks whether you have the required permissions for the action, without
  63187. // actually making the request, and provides an error response. If you have
  63188. // the required permissions, the error response is DryRunOperation. Otherwise,
  63189. // it is UnauthorizedOperation.
  63190. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63191. // The ID of the AMI.
  63192. //
  63193. // ImageId is a required field
  63194. ImageId *string `type:"string" required:"true"`
  63195. }
  63196. // String returns the string representation
  63197. func (s ResetImageAttributeInput) String() string {
  63198. return awsutil.Prettify(s)
  63199. }
  63200. // GoString returns the string representation
  63201. func (s ResetImageAttributeInput) GoString() string {
  63202. return s.String()
  63203. }
  63204. // Validate inspects the fields of the type to determine if they are valid.
  63205. func (s *ResetImageAttributeInput) Validate() error {
  63206. invalidParams := request.ErrInvalidParams{Context: "ResetImageAttributeInput"}
  63207. if s.Attribute == nil {
  63208. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  63209. }
  63210. if s.ImageId == nil {
  63211. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  63212. }
  63213. if invalidParams.Len() > 0 {
  63214. return invalidParams
  63215. }
  63216. return nil
  63217. }
  63218. // SetAttribute sets the Attribute field's value.
  63219. func (s *ResetImageAttributeInput) SetAttribute(v string) *ResetImageAttributeInput {
  63220. s.Attribute = &v
  63221. return s
  63222. }
  63223. // SetDryRun sets the DryRun field's value.
  63224. func (s *ResetImageAttributeInput) SetDryRun(v bool) *ResetImageAttributeInput {
  63225. s.DryRun = &v
  63226. return s
  63227. }
  63228. // SetImageId sets the ImageId field's value.
  63229. func (s *ResetImageAttributeInput) SetImageId(v string) *ResetImageAttributeInput {
  63230. s.ImageId = &v
  63231. return s
  63232. }
  63233. type ResetImageAttributeOutput struct {
  63234. _ struct{} `type:"structure"`
  63235. }
  63236. // String returns the string representation
  63237. func (s ResetImageAttributeOutput) String() string {
  63238. return awsutil.Prettify(s)
  63239. }
  63240. // GoString returns the string representation
  63241. func (s ResetImageAttributeOutput) GoString() string {
  63242. return s.String()
  63243. }
  63244. type ResetInstanceAttributeInput struct {
  63245. _ struct{} `type:"structure"`
  63246. // The attribute to reset.
  63247. //
  63248. // You can only reset the following attributes: kernel | ramdisk | sourceDestCheck.
  63249. // To change an instance attribute, use ModifyInstanceAttribute.
  63250. //
  63251. // Attribute is a required field
  63252. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"`
  63253. // Checks whether you have the required permissions for the action, without
  63254. // actually making the request, and provides an error response. If you have
  63255. // the required permissions, the error response is DryRunOperation. Otherwise,
  63256. // it is UnauthorizedOperation.
  63257. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63258. // The ID of the instance.
  63259. //
  63260. // InstanceId is a required field
  63261. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  63262. }
  63263. // String returns the string representation
  63264. func (s ResetInstanceAttributeInput) String() string {
  63265. return awsutil.Prettify(s)
  63266. }
  63267. // GoString returns the string representation
  63268. func (s ResetInstanceAttributeInput) GoString() string {
  63269. return s.String()
  63270. }
  63271. // Validate inspects the fields of the type to determine if they are valid.
  63272. func (s *ResetInstanceAttributeInput) Validate() error {
  63273. invalidParams := request.ErrInvalidParams{Context: "ResetInstanceAttributeInput"}
  63274. if s.Attribute == nil {
  63275. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  63276. }
  63277. if s.InstanceId == nil {
  63278. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  63279. }
  63280. if invalidParams.Len() > 0 {
  63281. return invalidParams
  63282. }
  63283. return nil
  63284. }
  63285. // SetAttribute sets the Attribute field's value.
  63286. func (s *ResetInstanceAttributeInput) SetAttribute(v string) *ResetInstanceAttributeInput {
  63287. s.Attribute = &v
  63288. return s
  63289. }
  63290. // SetDryRun sets the DryRun field's value.
  63291. func (s *ResetInstanceAttributeInput) SetDryRun(v bool) *ResetInstanceAttributeInput {
  63292. s.DryRun = &v
  63293. return s
  63294. }
  63295. // SetInstanceId sets the InstanceId field's value.
  63296. func (s *ResetInstanceAttributeInput) SetInstanceId(v string) *ResetInstanceAttributeInput {
  63297. s.InstanceId = &v
  63298. return s
  63299. }
  63300. type ResetInstanceAttributeOutput struct {
  63301. _ struct{} `type:"structure"`
  63302. }
  63303. // String returns the string representation
  63304. func (s ResetInstanceAttributeOutput) String() string {
  63305. return awsutil.Prettify(s)
  63306. }
  63307. // GoString returns the string representation
  63308. func (s ResetInstanceAttributeOutput) GoString() string {
  63309. return s.String()
  63310. }
  63311. // Contains the parameters for ResetNetworkInterfaceAttribute.
  63312. type ResetNetworkInterfaceAttributeInput struct {
  63313. _ struct{} `type:"structure"`
  63314. // Checks whether you have the required permissions for the action, without
  63315. // actually making the request, and provides an error response. If you have
  63316. // the required permissions, the error response is DryRunOperation. Otherwise,
  63317. // it is UnauthorizedOperation.
  63318. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63319. // The ID of the network interface.
  63320. //
  63321. // NetworkInterfaceId is a required field
  63322. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  63323. // The source/destination checking attribute. Resets the value to true.
  63324. SourceDestCheck *string `locationName:"sourceDestCheck" type:"string"`
  63325. }
  63326. // String returns the string representation
  63327. func (s ResetNetworkInterfaceAttributeInput) String() string {
  63328. return awsutil.Prettify(s)
  63329. }
  63330. // GoString returns the string representation
  63331. func (s ResetNetworkInterfaceAttributeInput) GoString() string {
  63332. return s.String()
  63333. }
  63334. // Validate inspects the fields of the type to determine if they are valid.
  63335. func (s *ResetNetworkInterfaceAttributeInput) Validate() error {
  63336. invalidParams := request.ErrInvalidParams{Context: "ResetNetworkInterfaceAttributeInput"}
  63337. if s.NetworkInterfaceId == nil {
  63338. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  63339. }
  63340. if invalidParams.Len() > 0 {
  63341. return invalidParams
  63342. }
  63343. return nil
  63344. }
  63345. // SetDryRun sets the DryRun field's value.
  63346. func (s *ResetNetworkInterfaceAttributeInput) SetDryRun(v bool) *ResetNetworkInterfaceAttributeInput {
  63347. s.DryRun = &v
  63348. return s
  63349. }
  63350. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  63351. func (s *ResetNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ResetNetworkInterfaceAttributeInput {
  63352. s.NetworkInterfaceId = &v
  63353. return s
  63354. }
  63355. // SetSourceDestCheck sets the SourceDestCheck field's value.
  63356. func (s *ResetNetworkInterfaceAttributeInput) SetSourceDestCheck(v string) *ResetNetworkInterfaceAttributeInput {
  63357. s.SourceDestCheck = &v
  63358. return s
  63359. }
  63360. type ResetNetworkInterfaceAttributeOutput struct {
  63361. _ struct{} `type:"structure"`
  63362. }
  63363. // String returns the string representation
  63364. func (s ResetNetworkInterfaceAttributeOutput) String() string {
  63365. return awsutil.Prettify(s)
  63366. }
  63367. // GoString returns the string representation
  63368. func (s ResetNetworkInterfaceAttributeOutput) GoString() string {
  63369. return s.String()
  63370. }
  63371. // Contains the parameters for ResetSnapshotAttribute.
  63372. type ResetSnapshotAttributeInput struct {
  63373. _ struct{} `type:"structure"`
  63374. // The attribute to reset. Currently, only the attribute for permission to create
  63375. // volumes can be reset.
  63376. //
  63377. // Attribute is a required field
  63378. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"`
  63379. // Checks whether you have the required permissions for the action, without
  63380. // actually making the request, and provides an error response. If you have
  63381. // the required permissions, the error response is DryRunOperation. Otherwise,
  63382. // it is UnauthorizedOperation.
  63383. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63384. // The ID of the snapshot.
  63385. //
  63386. // SnapshotId is a required field
  63387. SnapshotId *string `type:"string" required:"true"`
  63388. }
  63389. // String returns the string representation
  63390. func (s ResetSnapshotAttributeInput) String() string {
  63391. return awsutil.Prettify(s)
  63392. }
  63393. // GoString returns the string representation
  63394. func (s ResetSnapshotAttributeInput) GoString() string {
  63395. return s.String()
  63396. }
  63397. // Validate inspects the fields of the type to determine if they are valid.
  63398. func (s *ResetSnapshotAttributeInput) Validate() error {
  63399. invalidParams := request.ErrInvalidParams{Context: "ResetSnapshotAttributeInput"}
  63400. if s.Attribute == nil {
  63401. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  63402. }
  63403. if s.SnapshotId == nil {
  63404. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  63405. }
  63406. if invalidParams.Len() > 0 {
  63407. return invalidParams
  63408. }
  63409. return nil
  63410. }
  63411. // SetAttribute sets the Attribute field's value.
  63412. func (s *ResetSnapshotAttributeInput) SetAttribute(v string) *ResetSnapshotAttributeInput {
  63413. s.Attribute = &v
  63414. return s
  63415. }
  63416. // SetDryRun sets the DryRun field's value.
  63417. func (s *ResetSnapshotAttributeInput) SetDryRun(v bool) *ResetSnapshotAttributeInput {
  63418. s.DryRun = &v
  63419. return s
  63420. }
  63421. // SetSnapshotId sets the SnapshotId field's value.
  63422. func (s *ResetSnapshotAttributeInput) SetSnapshotId(v string) *ResetSnapshotAttributeInput {
  63423. s.SnapshotId = &v
  63424. return s
  63425. }
  63426. type ResetSnapshotAttributeOutput struct {
  63427. _ struct{} `type:"structure"`
  63428. }
  63429. // String returns the string representation
  63430. func (s ResetSnapshotAttributeOutput) String() string {
  63431. return awsutil.Prettify(s)
  63432. }
  63433. // GoString returns the string representation
  63434. func (s ResetSnapshotAttributeOutput) GoString() string {
  63435. return s.String()
  63436. }
  63437. // Describes the error that's returned when you cannot delete a launch template
  63438. // version.
  63439. type ResponseError struct {
  63440. _ struct{} `type:"structure"`
  63441. // The error code.
  63442. Code *string `locationName:"code" type:"string" enum:"LaunchTemplateErrorCode"`
  63443. // The error message, if applicable.
  63444. Message *string `locationName:"message" type:"string"`
  63445. }
  63446. // String returns the string representation
  63447. func (s ResponseError) String() string {
  63448. return awsutil.Prettify(s)
  63449. }
  63450. // GoString returns the string representation
  63451. func (s ResponseError) GoString() string {
  63452. return s.String()
  63453. }
  63454. // SetCode sets the Code field's value.
  63455. func (s *ResponseError) SetCode(v string) *ResponseError {
  63456. s.Code = &v
  63457. return s
  63458. }
  63459. // SetMessage sets the Message field's value.
  63460. func (s *ResponseError) SetMessage(v string) *ResponseError {
  63461. s.Message = &v
  63462. return s
  63463. }
  63464. // The information for a launch template.
  63465. type ResponseLaunchTemplateData struct {
  63466. _ struct{} `type:"structure"`
  63467. // The block device mappings.
  63468. BlockDeviceMappings []*LaunchTemplateBlockDeviceMapping `locationName:"blockDeviceMappingSet" locationNameList:"item" type:"list"`
  63469. // Information about the Capacity Reservation targeting option.
  63470. CapacityReservationSpecification *LaunchTemplateCapacityReservationSpecificationResponse `locationName:"capacityReservationSpecification" type:"structure"`
  63471. // The CPU options for the instance. For more information, see Optimizing CPU
  63472. // Options (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html)
  63473. // in the Amazon Elastic Compute Cloud User Guide.
  63474. CpuOptions *LaunchTemplateCpuOptions `locationName:"cpuOptions" type:"structure"`
  63475. // The credit option for CPU usage of the instance.
  63476. CreditSpecification *CreditSpecification `locationName:"creditSpecification" type:"structure"`
  63477. // If set to true, indicates that the instance cannot be terminated using the
  63478. // Amazon EC2 console, command line tool, or API.
  63479. DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"`
  63480. // Indicates whether the instance is optimized for Amazon EBS I/O.
  63481. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  63482. // The elastic GPU specification.
  63483. ElasticGpuSpecifications []*ElasticGpuSpecificationResponse `locationName:"elasticGpuSpecificationSet" locationNameList:"item" type:"list"`
  63484. // The elastic inference accelerator for the instance.
  63485. ElasticInferenceAccelerators []*LaunchTemplateElasticInferenceAcceleratorResponse `locationName:"elasticInferenceAcceleratorSet" locationNameList:"item" type:"list"`
  63486. // Indicates whether an instance is configured for hibernation. For more information,
  63487. // see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  63488. // in the Amazon Elastic Compute Cloud User Guide.
  63489. HibernationOptions *LaunchTemplateHibernationOptions `locationName:"hibernationOptions" type:"structure"`
  63490. // The IAM instance profile.
  63491. IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  63492. // The ID of the AMI that was used to launch the instance.
  63493. ImageId *string `locationName:"imageId" type:"string"`
  63494. // Indicates whether an instance stops or terminates when you initiate shutdown
  63495. // from the instance (using the operating system command for system shutdown).
  63496. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  63497. // The market (purchasing) option for the instances.
  63498. InstanceMarketOptions *LaunchTemplateInstanceMarketOptions `locationName:"instanceMarketOptions" type:"structure"`
  63499. // The instance type.
  63500. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  63501. // The ID of the kernel, if applicable.
  63502. KernelId *string `locationName:"kernelId" type:"string"`
  63503. // The name of the key pair.
  63504. KeyName *string `locationName:"keyName" type:"string"`
  63505. // The license configurations.
  63506. LicenseSpecifications []*LaunchTemplateLicenseConfiguration `locationName:"licenseSet" locationNameList:"item" type:"list"`
  63507. // The monitoring for the instance.
  63508. Monitoring *LaunchTemplatesMonitoring `locationName:"monitoring" type:"structure"`
  63509. // The network interfaces.
  63510. NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  63511. // The placement of the instance.
  63512. Placement *LaunchTemplatePlacement `locationName:"placement" type:"structure"`
  63513. // The ID of the RAM disk, if applicable.
  63514. RamDiskId *string `locationName:"ramDiskId" type:"string"`
  63515. // The security group IDs.
  63516. SecurityGroupIds []*string `locationName:"securityGroupIdSet" locationNameList:"item" type:"list"`
  63517. // The security group names.
  63518. SecurityGroups []*string `locationName:"securityGroupSet" locationNameList:"item" type:"list"`
  63519. // The tags.
  63520. TagSpecifications []*LaunchTemplateTagSpecification `locationName:"tagSpecificationSet" locationNameList:"item" type:"list"`
  63521. // The user data for the instance.
  63522. UserData *string `locationName:"userData" type:"string"`
  63523. }
  63524. // String returns the string representation
  63525. func (s ResponseLaunchTemplateData) String() string {
  63526. return awsutil.Prettify(s)
  63527. }
  63528. // GoString returns the string representation
  63529. func (s ResponseLaunchTemplateData) GoString() string {
  63530. return s.String()
  63531. }
  63532. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  63533. func (s *ResponseLaunchTemplateData) SetBlockDeviceMappings(v []*LaunchTemplateBlockDeviceMapping) *ResponseLaunchTemplateData {
  63534. s.BlockDeviceMappings = v
  63535. return s
  63536. }
  63537. // SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value.
  63538. func (s *ResponseLaunchTemplateData) SetCapacityReservationSpecification(v *LaunchTemplateCapacityReservationSpecificationResponse) *ResponseLaunchTemplateData {
  63539. s.CapacityReservationSpecification = v
  63540. return s
  63541. }
  63542. // SetCpuOptions sets the CpuOptions field's value.
  63543. func (s *ResponseLaunchTemplateData) SetCpuOptions(v *LaunchTemplateCpuOptions) *ResponseLaunchTemplateData {
  63544. s.CpuOptions = v
  63545. return s
  63546. }
  63547. // SetCreditSpecification sets the CreditSpecification field's value.
  63548. func (s *ResponseLaunchTemplateData) SetCreditSpecification(v *CreditSpecification) *ResponseLaunchTemplateData {
  63549. s.CreditSpecification = v
  63550. return s
  63551. }
  63552. // SetDisableApiTermination sets the DisableApiTermination field's value.
  63553. func (s *ResponseLaunchTemplateData) SetDisableApiTermination(v bool) *ResponseLaunchTemplateData {
  63554. s.DisableApiTermination = &v
  63555. return s
  63556. }
  63557. // SetEbsOptimized sets the EbsOptimized field's value.
  63558. func (s *ResponseLaunchTemplateData) SetEbsOptimized(v bool) *ResponseLaunchTemplateData {
  63559. s.EbsOptimized = &v
  63560. return s
  63561. }
  63562. // SetElasticGpuSpecifications sets the ElasticGpuSpecifications field's value.
  63563. func (s *ResponseLaunchTemplateData) SetElasticGpuSpecifications(v []*ElasticGpuSpecificationResponse) *ResponseLaunchTemplateData {
  63564. s.ElasticGpuSpecifications = v
  63565. return s
  63566. }
  63567. // SetElasticInferenceAccelerators sets the ElasticInferenceAccelerators field's value.
  63568. func (s *ResponseLaunchTemplateData) SetElasticInferenceAccelerators(v []*LaunchTemplateElasticInferenceAcceleratorResponse) *ResponseLaunchTemplateData {
  63569. s.ElasticInferenceAccelerators = v
  63570. return s
  63571. }
  63572. // SetHibernationOptions sets the HibernationOptions field's value.
  63573. func (s *ResponseLaunchTemplateData) SetHibernationOptions(v *LaunchTemplateHibernationOptions) *ResponseLaunchTemplateData {
  63574. s.HibernationOptions = v
  63575. return s
  63576. }
  63577. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  63578. func (s *ResponseLaunchTemplateData) SetIamInstanceProfile(v *LaunchTemplateIamInstanceProfileSpecification) *ResponseLaunchTemplateData {
  63579. s.IamInstanceProfile = v
  63580. return s
  63581. }
  63582. // SetImageId sets the ImageId field's value.
  63583. func (s *ResponseLaunchTemplateData) SetImageId(v string) *ResponseLaunchTemplateData {
  63584. s.ImageId = &v
  63585. return s
  63586. }
  63587. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  63588. func (s *ResponseLaunchTemplateData) SetInstanceInitiatedShutdownBehavior(v string) *ResponseLaunchTemplateData {
  63589. s.InstanceInitiatedShutdownBehavior = &v
  63590. return s
  63591. }
  63592. // SetInstanceMarketOptions sets the InstanceMarketOptions field's value.
  63593. func (s *ResponseLaunchTemplateData) SetInstanceMarketOptions(v *LaunchTemplateInstanceMarketOptions) *ResponseLaunchTemplateData {
  63594. s.InstanceMarketOptions = v
  63595. return s
  63596. }
  63597. // SetInstanceType sets the InstanceType field's value.
  63598. func (s *ResponseLaunchTemplateData) SetInstanceType(v string) *ResponseLaunchTemplateData {
  63599. s.InstanceType = &v
  63600. return s
  63601. }
  63602. // SetKernelId sets the KernelId field's value.
  63603. func (s *ResponseLaunchTemplateData) SetKernelId(v string) *ResponseLaunchTemplateData {
  63604. s.KernelId = &v
  63605. return s
  63606. }
  63607. // SetKeyName sets the KeyName field's value.
  63608. func (s *ResponseLaunchTemplateData) SetKeyName(v string) *ResponseLaunchTemplateData {
  63609. s.KeyName = &v
  63610. return s
  63611. }
  63612. // SetLicenseSpecifications sets the LicenseSpecifications field's value.
  63613. func (s *ResponseLaunchTemplateData) SetLicenseSpecifications(v []*LaunchTemplateLicenseConfiguration) *ResponseLaunchTemplateData {
  63614. s.LicenseSpecifications = v
  63615. return s
  63616. }
  63617. // SetMonitoring sets the Monitoring field's value.
  63618. func (s *ResponseLaunchTemplateData) SetMonitoring(v *LaunchTemplatesMonitoring) *ResponseLaunchTemplateData {
  63619. s.Monitoring = v
  63620. return s
  63621. }
  63622. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  63623. func (s *ResponseLaunchTemplateData) SetNetworkInterfaces(v []*LaunchTemplateInstanceNetworkInterfaceSpecification) *ResponseLaunchTemplateData {
  63624. s.NetworkInterfaces = v
  63625. return s
  63626. }
  63627. // SetPlacement sets the Placement field's value.
  63628. func (s *ResponseLaunchTemplateData) SetPlacement(v *LaunchTemplatePlacement) *ResponseLaunchTemplateData {
  63629. s.Placement = v
  63630. return s
  63631. }
  63632. // SetRamDiskId sets the RamDiskId field's value.
  63633. func (s *ResponseLaunchTemplateData) SetRamDiskId(v string) *ResponseLaunchTemplateData {
  63634. s.RamDiskId = &v
  63635. return s
  63636. }
  63637. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  63638. func (s *ResponseLaunchTemplateData) SetSecurityGroupIds(v []*string) *ResponseLaunchTemplateData {
  63639. s.SecurityGroupIds = v
  63640. return s
  63641. }
  63642. // SetSecurityGroups sets the SecurityGroups field's value.
  63643. func (s *ResponseLaunchTemplateData) SetSecurityGroups(v []*string) *ResponseLaunchTemplateData {
  63644. s.SecurityGroups = v
  63645. return s
  63646. }
  63647. // SetTagSpecifications sets the TagSpecifications field's value.
  63648. func (s *ResponseLaunchTemplateData) SetTagSpecifications(v []*LaunchTemplateTagSpecification) *ResponseLaunchTemplateData {
  63649. s.TagSpecifications = v
  63650. return s
  63651. }
  63652. // SetUserData sets the UserData field's value.
  63653. func (s *ResponseLaunchTemplateData) SetUserData(v string) *ResponseLaunchTemplateData {
  63654. s.UserData = &v
  63655. return s
  63656. }
  63657. type RestoreAddressToClassicInput struct {
  63658. _ struct{} `type:"structure"`
  63659. // Checks whether you have the required permissions for the action, without
  63660. // actually making the request, and provides an error response. If you have
  63661. // the required permissions, the error response is DryRunOperation. Otherwise,
  63662. // it is UnauthorizedOperation.
  63663. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63664. // The Elastic IP address.
  63665. //
  63666. // PublicIp is a required field
  63667. PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
  63668. }
  63669. // String returns the string representation
  63670. func (s RestoreAddressToClassicInput) String() string {
  63671. return awsutil.Prettify(s)
  63672. }
  63673. // GoString returns the string representation
  63674. func (s RestoreAddressToClassicInput) GoString() string {
  63675. return s.String()
  63676. }
  63677. // Validate inspects the fields of the type to determine if they are valid.
  63678. func (s *RestoreAddressToClassicInput) Validate() error {
  63679. invalidParams := request.ErrInvalidParams{Context: "RestoreAddressToClassicInput"}
  63680. if s.PublicIp == nil {
  63681. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  63682. }
  63683. if invalidParams.Len() > 0 {
  63684. return invalidParams
  63685. }
  63686. return nil
  63687. }
  63688. // SetDryRun sets the DryRun field's value.
  63689. func (s *RestoreAddressToClassicInput) SetDryRun(v bool) *RestoreAddressToClassicInput {
  63690. s.DryRun = &v
  63691. return s
  63692. }
  63693. // SetPublicIp sets the PublicIp field's value.
  63694. func (s *RestoreAddressToClassicInput) SetPublicIp(v string) *RestoreAddressToClassicInput {
  63695. s.PublicIp = &v
  63696. return s
  63697. }
  63698. type RestoreAddressToClassicOutput struct {
  63699. _ struct{} `type:"structure"`
  63700. // The Elastic IP address.
  63701. PublicIp *string `locationName:"publicIp" type:"string"`
  63702. // The move status for the IP address.
  63703. Status *string `locationName:"status" type:"string" enum:"Status"`
  63704. }
  63705. // String returns the string representation
  63706. func (s RestoreAddressToClassicOutput) String() string {
  63707. return awsutil.Prettify(s)
  63708. }
  63709. // GoString returns the string representation
  63710. func (s RestoreAddressToClassicOutput) GoString() string {
  63711. return s.String()
  63712. }
  63713. // SetPublicIp sets the PublicIp field's value.
  63714. func (s *RestoreAddressToClassicOutput) SetPublicIp(v string) *RestoreAddressToClassicOutput {
  63715. s.PublicIp = &v
  63716. return s
  63717. }
  63718. // SetStatus sets the Status field's value.
  63719. func (s *RestoreAddressToClassicOutput) SetStatus(v string) *RestoreAddressToClassicOutput {
  63720. s.Status = &v
  63721. return s
  63722. }
  63723. type RevokeClientVpnIngressInput struct {
  63724. _ struct{} `type:"structure"`
  63725. // The ID of the Active Directory group for which to revoke access.
  63726. AccessGroupId *string `type:"string"`
  63727. // The ID of the Client VPN endpoint with which the authorization rule is associated.
  63728. //
  63729. // ClientVpnEndpointId is a required field
  63730. ClientVpnEndpointId *string `type:"string" required:"true"`
  63731. // Checks whether you have the required permissions for the action, without
  63732. // actually making the request, and provides an error response. If you have
  63733. // the required permissions, the error response is DryRunOperation. Otherwise,
  63734. // it is UnauthorizedOperation.
  63735. DryRun *bool `type:"boolean"`
  63736. // Indicates whether access should be revoked for all clients.
  63737. RevokeAllGroups *bool `type:"boolean"`
  63738. // The IPv4 address range, in CIDR notation, of the network for which access
  63739. // is being removed.
  63740. //
  63741. // TargetNetworkCidr is a required field
  63742. TargetNetworkCidr *string `type:"string" required:"true"`
  63743. }
  63744. // String returns the string representation
  63745. func (s RevokeClientVpnIngressInput) String() string {
  63746. return awsutil.Prettify(s)
  63747. }
  63748. // GoString returns the string representation
  63749. func (s RevokeClientVpnIngressInput) GoString() string {
  63750. return s.String()
  63751. }
  63752. // Validate inspects the fields of the type to determine if they are valid.
  63753. func (s *RevokeClientVpnIngressInput) Validate() error {
  63754. invalidParams := request.ErrInvalidParams{Context: "RevokeClientVpnIngressInput"}
  63755. if s.ClientVpnEndpointId == nil {
  63756. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  63757. }
  63758. if s.TargetNetworkCidr == nil {
  63759. invalidParams.Add(request.NewErrParamRequired("TargetNetworkCidr"))
  63760. }
  63761. if invalidParams.Len() > 0 {
  63762. return invalidParams
  63763. }
  63764. return nil
  63765. }
  63766. // SetAccessGroupId sets the AccessGroupId field's value.
  63767. func (s *RevokeClientVpnIngressInput) SetAccessGroupId(v string) *RevokeClientVpnIngressInput {
  63768. s.AccessGroupId = &v
  63769. return s
  63770. }
  63771. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  63772. func (s *RevokeClientVpnIngressInput) SetClientVpnEndpointId(v string) *RevokeClientVpnIngressInput {
  63773. s.ClientVpnEndpointId = &v
  63774. return s
  63775. }
  63776. // SetDryRun sets the DryRun field's value.
  63777. func (s *RevokeClientVpnIngressInput) SetDryRun(v bool) *RevokeClientVpnIngressInput {
  63778. s.DryRun = &v
  63779. return s
  63780. }
  63781. // SetRevokeAllGroups sets the RevokeAllGroups field's value.
  63782. func (s *RevokeClientVpnIngressInput) SetRevokeAllGroups(v bool) *RevokeClientVpnIngressInput {
  63783. s.RevokeAllGroups = &v
  63784. return s
  63785. }
  63786. // SetTargetNetworkCidr sets the TargetNetworkCidr field's value.
  63787. func (s *RevokeClientVpnIngressInput) SetTargetNetworkCidr(v string) *RevokeClientVpnIngressInput {
  63788. s.TargetNetworkCidr = &v
  63789. return s
  63790. }
  63791. type RevokeClientVpnIngressOutput struct {
  63792. _ struct{} `type:"structure"`
  63793. // The current state of the authorization rule.
  63794. Status *ClientVpnAuthorizationRuleStatus `locationName:"status" type:"structure"`
  63795. }
  63796. // String returns the string representation
  63797. func (s RevokeClientVpnIngressOutput) String() string {
  63798. return awsutil.Prettify(s)
  63799. }
  63800. // GoString returns the string representation
  63801. func (s RevokeClientVpnIngressOutput) GoString() string {
  63802. return s.String()
  63803. }
  63804. // SetStatus sets the Status field's value.
  63805. func (s *RevokeClientVpnIngressOutput) SetStatus(v *ClientVpnAuthorizationRuleStatus) *RevokeClientVpnIngressOutput {
  63806. s.Status = v
  63807. return s
  63808. }
  63809. type RevokeSecurityGroupEgressInput struct {
  63810. _ struct{} `type:"structure"`
  63811. // Not supported. Use a set of IP permissions to specify the CIDR.
  63812. CidrIp *string `locationName:"cidrIp" type:"string"`
  63813. // Checks whether you have the required permissions for the action, without
  63814. // actually making the request, and provides an error response. If you have
  63815. // the required permissions, the error response is DryRunOperation. Otherwise,
  63816. // it is UnauthorizedOperation.
  63817. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63818. // Not supported. Use a set of IP permissions to specify the port.
  63819. FromPort *int64 `locationName:"fromPort" type:"integer"`
  63820. // The ID of the security group.
  63821. //
  63822. // GroupId is a required field
  63823. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  63824. // One or more sets of IP permissions. You can't specify a destination security
  63825. // group and a CIDR IP address range in the same set of permissions.
  63826. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  63827. // Not supported. Use a set of IP permissions to specify the protocol name or
  63828. // number.
  63829. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  63830. // Not supported. Use a set of IP permissions to specify a destination security
  63831. // group.
  63832. SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`
  63833. // Not supported. Use a set of IP permissions to specify a destination security
  63834. // group.
  63835. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`
  63836. // Not supported. Use a set of IP permissions to specify the port.
  63837. ToPort *int64 `locationName:"toPort" type:"integer"`
  63838. }
  63839. // String returns the string representation
  63840. func (s RevokeSecurityGroupEgressInput) String() string {
  63841. return awsutil.Prettify(s)
  63842. }
  63843. // GoString returns the string representation
  63844. func (s RevokeSecurityGroupEgressInput) GoString() string {
  63845. return s.String()
  63846. }
  63847. // Validate inspects the fields of the type to determine if they are valid.
  63848. func (s *RevokeSecurityGroupEgressInput) Validate() error {
  63849. invalidParams := request.ErrInvalidParams{Context: "RevokeSecurityGroupEgressInput"}
  63850. if s.GroupId == nil {
  63851. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  63852. }
  63853. if invalidParams.Len() > 0 {
  63854. return invalidParams
  63855. }
  63856. return nil
  63857. }
  63858. // SetCidrIp sets the CidrIp field's value.
  63859. func (s *RevokeSecurityGroupEgressInput) SetCidrIp(v string) *RevokeSecurityGroupEgressInput {
  63860. s.CidrIp = &v
  63861. return s
  63862. }
  63863. // SetDryRun sets the DryRun field's value.
  63864. func (s *RevokeSecurityGroupEgressInput) SetDryRun(v bool) *RevokeSecurityGroupEgressInput {
  63865. s.DryRun = &v
  63866. return s
  63867. }
  63868. // SetFromPort sets the FromPort field's value.
  63869. func (s *RevokeSecurityGroupEgressInput) SetFromPort(v int64) *RevokeSecurityGroupEgressInput {
  63870. s.FromPort = &v
  63871. return s
  63872. }
  63873. // SetGroupId sets the GroupId field's value.
  63874. func (s *RevokeSecurityGroupEgressInput) SetGroupId(v string) *RevokeSecurityGroupEgressInput {
  63875. s.GroupId = &v
  63876. return s
  63877. }
  63878. // SetIpPermissions sets the IpPermissions field's value.
  63879. func (s *RevokeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupEgressInput {
  63880. s.IpPermissions = v
  63881. return s
  63882. }
  63883. // SetIpProtocol sets the IpProtocol field's value.
  63884. func (s *RevokeSecurityGroupEgressInput) SetIpProtocol(v string) *RevokeSecurityGroupEgressInput {
  63885. s.IpProtocol = &v
  63886. return s
  63887. }
  63888. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  63889. func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupEgressInput {
  63890. s.SourceSecurityGroupName = &v
  63891. return s
  63892. }
  63893. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  63894. func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupEgressInput {
  63895. s.SourceSecurityGroupOwnerId = &v
  63896. return s
  63897. }
  63898. // SetToPort sets the ToPort field's value.
  63899. func (s *RevokeSecurityGroupEgressInput) SetToPort(v int64) *RevokeSecurityGroupEgressInput {
  63900. s.ToPort = &v
  63901. return s
  63902. }
  63903. type RevokeSecurityGroupEgressOutput struct {
  63904. _ struct{} `type:"structure"`
  63905. }
  63906. // String returns the string representation
  63907. func (s RevokeSecurityGroupEgressOutput) String() string {
  63908. return awsutil.Prettify(s)
  63909. }
  63910. // GoString returns the string representation
  63911. func (s RevokeSecurityGroupEgressOutput) GoString() string {
  63912. return s.String()
  63913. }
  63914. type RevokeSecurityGroupIngressInput struct {
  63915. _ struct{} `type:"structure"`
  63916. // The CIDR IP address range. You can't specify this parameter when specifying
  63917. // a source security group.
  63918. CidrIp *string `type:"string"`
  63919. // Checks whether you have the required permissions for the action, without
  63920. // actually making the request, and provides an error response. If you have
  63921. // the required permissions, the error response is DryRunOperation. Otherwise,
  63922. // it is UnauthorizedOperation.
  63923. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63924. // The start of port range for the TCP and UDP protocols, or an ICMP type number.
  63925. // For the ICMP type number, use -1 to specify all ICMP types.
  63926. FromPort *int64 `type:"integer"`
  63927. // The ID of the security group. You must specify either the security group
  63928. // ID or the security group name in the request. For security groups in a nondefault
  63929. // VPC, you must specify the security group ID.
  63930. GroupId *string `type:"string"`
  63931. // [EC2-Classic, default VPC] The name of the security group. You must specify
  63932. // either the security group ID or the security group name in the request.
  63933. GroupName *string `type:"string"`
  63934. // One or more sets of IP permissions. You can't specify a source security group
  63935. // and a CIDR IP address range in the same set of permissions.
  63936. IpPermissions []*IpPermission `locationNameList:"item" type:"list"`
  63937. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  63938. // Use -1 to specify all.
  63939. IpProtocol *string `type:"string"`
  63940. // [EC2-Classic, default VPC] The name of the source security group. You can't
  63941. // specify this parameter in combination with the following parameters: the
  63942. // CIDR IP address range, the start of the port range, the IP protocol, and
  63943. // the end of the port range. For EC2-VPC, the source security group must be
  63944. // in the same VPC. To revoke a specific rule for an IP protocol and port range,
  63945. // use a set of IP permissions instead.
  63946. SourceSecurityGroupName *string `type:"string"`
  63947. // [EC2-Classic] The AWS account ID of the source security group, if the source
  63948. // security group is in a different account. You can't specify this parameter
  63949. // in combination with the following parameters: the CIDR IP address range,
  63950. // the IP protocol, the start of the port range, and the end of the port range.
  63951. // To revoke a specific rule for an IP protocol and port range, use a set of
  63952. // IP permissions instead.
  63953. SourceSecurityGroupOwnerId *string `type:"string"`
  63954. // The end of port range for the TCP and UDP protocols, or an ICMP code number.
  63955. // For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.
  63956. ToPort *int64 `type:"integer"`
  63957. }
  63958. // String returns the string representation
  63959. func (s RevokeSecurityGroupIngressInput) String() string {
  63960. return awsutil.Prettify(s)
  63961. }
  63962. // GoString returns the string representation
  63963. func (s RevokeSecurityGroupIngressInput) GoString() string {
  63964. return s.String()
  63965. }
  63966. // SetCidrIp sets the CidrIp field's value.
  63967. func (s *RevokeSecurityGroupIngressInput) SetCidrIp(v string) *RevokeSecurityGroupIngressInput {
  63968. s.CidrIp = &v
  63969. return s
  63970. }
  63971. // SetDryRun sets the DryRun field's value.
  63972. func (s *RevokeSecurityGroupIngressInput) SetDryRun(v bool) *RevokeSecurityGroupIngressInput {
  63973. s.DryRun = &v
  63974. return s
  63975. }
  63976. // SetFromPort sets the FromPort field's value.
  63977. func (s *RevokeSecurityGroupIngressInput) SetFromPort(v int64) *RevokeSecurityGroupIngressInput {
  63978. s.FromPort = &v
  63979. return s
  63980. }
  63981. // SetGroupId sets the GroupId field's value.
  63982. func (s *RevokeSecurityGroupIngressInput) SetGroupId(v string) *RevokeSecurityGroupIngressInput {
  63983. s.GroupId = &v
  63984. return s
  63985. }
  63986. // SetGroupName sets the GroupName field's value.
  63987. func (s *RevokeSecurityGroupIngressInput) SetGroupName(v string) *RevokeSecurityGroupIngressInput {
  63988. s.GroupName = &v
  63989. return s
  63990. }
  63991. // SetIpPermissions sets the IpPermissions field's value.
  63992. func (s *RevokeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupIngressInput {
  63993. s.IpPermissions = v
  63994. return s
  63995. }
  63996. // SetIpProtocol sets the IpProtocol field's value.
  63997. func (s *RevokeSecurityGroupIngressInput) SetIpProtocol(v string) *RevokeSecurityGroupIngressInput {
  63998. s.IpProtocol = &v
  63999. return s
  64000. }
  64001. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  64002. func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupIngressInput {
  64003. s.SourceSecurityGroupName = &v
  64004. return s
  64005. }
  64006. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  64007. func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupIngressInput {
  64008. s.SourceSecurityGroupOwnerId = &v
  64009. return s
  64010. }
  64011. // SetToPort sets the ToPort field's value.
  64012. func (s *RevokeSecurityGroupIngressInput) SetToPort(v int64) *RevokeSecurityGroupIngressInput {
  64013. s.ToPort = &v
  64014. return s
  64015. }
  64016. type RevokeSecurityGroupIngressOutput struct {
  64017. _ struct{} `type:"structure"`
  64018. }
  64019. // String returns the string representation
  64020. func (s RevokeSecurityGroupIngressOutput) String() string {
  64021. return awsutil.Prettify(s)
  64022. }
  64023. // GoString returns the string representation
  64024. func (s RevokeSecurityGroupIngressOutput) GoString() string {
  64025. return s.String()
  64026. }
  64027. // Describes a route in a route table.
  64028. type Route struct {
  64029. _ struct{} `type:"structure"`
  64030. // The IPv4 CIDR block used for the destination match.
  64031. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  64032. // The IPv6 CIDR block used for the destination match.
  64033. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  64034. // The prefix of the AWS service.
  64035. DestinationPrefixListId *string `locationName:"destinationPrefixListId" type:"string"`
  64036. // The ID of the egress-only internet gateway.
  64037. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  64038. // The ID of a gateway attached to your VPC.
  64039. GatewayId *string `locationName:"gatewayId" type:"string"`
  64040. // The ID of a NAT instance in your VPC.
  64041. InstanceId *string `locationName:"instanceId" type:"string"`
  64042. // The AWS account ID of the owner of the instance.
  64043. InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`
  64044. // The ID of a NAT gateway.
  64045. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  64046. // The ID of the network interface.
  64047. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  64048. // Describes how the route was created.
  64049. //
  64050. // * CreateRouteTable - The route was automatically created when the route
  64051. // table was created.
  64052. //
  64053. // * CreateRoute - The route was manually added to the route table.
  64054. //
  64055. // * EnableVgwRoutePropagation - The route was propagated by route propagation.
  64056. Origin *string `locationName:"origin" type:"string" enum:"RouteOrigin"`
  64057. // The state of the route. The blackhole state indicates that the route's target
  64058. // isn't available (for example, the specified gateway isn't attached to the
  64059. // VPC, or the specified NAT instance has been terminated).
  64060. State *string `locationName:"state" type:"string" enum:"RouteState"`
  64061. // The ID of a transit gateway.
  64062. TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
  64063. // The ID of a VPC peering connection.
  64064. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  64065. }
  64066. // String returns the string representation
  64067. func (s Route) String() string {
  64068. return awsutil.Prettify(s)
  64069. }
  64070. // GoString returns the string representation
  64071. func (s Route) GoString() string {
  64072. return s.String()
  64073. }
  64074. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  64075. func (s *Route) SetDestinationCidrBlock(v string) *Route {
  64076. s.DestinationCidrBlock = &v
  64077. return s
  64078. }
  64079. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  64080. func (s *Route) SetDestinationIpv6CidrBlock(v string) *Route {
  64081. s.DestinationIpv6CidrBlock = &v
  64082. return s
  64083. }
  64084. // SetDestinationPrefixListId sets the DestinationPrefixListId field's value.
  64085. func (s *Route) SetDestinationPrefixListId(v string) *Route {
  64086. s.DestinationPrefixListId = &v
  64087. return s
  64088. }
  64089. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  64090. func (s *Route) SetEgressOnlyInternetGatewayId(v string) *Route {
  64091. s.EgressOnlyInternetGatewayId = &v
  64092. return s
  64093. }
  64094. // SetGatewayId sets the GatewayId field's value.
  64095. func (s *Route) SetGatewayId(v string) *Route {
  64096. s.GatewayId = &v
  64097. return s
  64098. }
  64099. // SetInstanceId sets the InstanceId field's value.
  64100. func (s *Route) SetInstanceId(v string) *Route {
  64101. s.InstanceId = &v
  64102. return s
  64103. }
  64104. // SetInstanceOwnerId sets the InstanceOwnerId field's value.
  64105. func (s *Route) SetInstanceOwnerId(v string) *Route {
  64106. s.InstanceOwnerId = &v
  64107. return s
  64108. }
  64109. // SetNatGatewayId sets the NatGatewayId field's value.
  64110. func (s *Route) SetNatGatewayId(v string) *Route {
  64111. s.NatGatewayId = &v
  64112. return s
  64113. }
  64114. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  64115. func (s *Route) SetNetworkInterfaceId(v string) *Route {
  64116. s.NetworkInterfaceId = &v
  64117. return s
  64118. }
  64119. // SetOrigin sets the Origin field's value.
  64120. func (s *Route) SetOrigin(v string) *Route {
  64121. s.Origin = &v
  64122. return s
  64123. }
  64124. // SetState sets the State field's value.
  64125. func (s *Route) SetState(v string) *Route {
  64126. s.State = &v
  64127. return s
  64128. }
  64129. // SetTransitGatewayId sets the TransitGatewayId field's value.
  64130. func (s *Route) SetTransitGatewayId(v string) *Route {
  64131. s.TransitGatewayId = &v
  64132. return s
  64133. }
  64134. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  64135. func (s *Route) SetVpcPeeringConnectionId(v string) *Route {
  64136. s.VpcPeeringConnectionId = &v
  64137. return s
  64138. }
  64139. // Describes a route table.
  64140. type RouteTable struct {
  64141. _ struct{} `type:"structure"`
  64142. // The associations between the route table and one or more subnets.
  64143. Associations []*RouteTableAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`
  64144. // The ID of the AWS account that owns the route table.
  64145. OwnerId *string `locationName:"ownerId" type:"string"`
  64146. // Any virtual private gateway (VGW) propagating routes.
  64147. PropagatingVgws []*PropagatingVgw `locationName:"propagatingVgwSet" locationNameList:"item" type:"list"`
  64148. // The ID of the route table.
  64149. RouteTableId *string `locationName:"routeTableId" type:"string"`
  64150. // The routes in the route table.
  64151. Routes []*Route `locationName:"routeSet" locationNameList:"item" type:"list"`
  64152. // Any tags assigned to the route table.
  64153. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  64154. // The ID of the VPC.
  64155. VpcId *string `locationName:"vpcId" type:"string"`
  64156. }
  64157. // String returns the string representation
  64158. func (s RouteTable) String() string {
  64159. return awsutil.Prettify(s)
  64160. }
  64161. // GoString returns the string representation
  64162. func (s RouteTable) GoString() string {
  64163. return s.String()
  64164. }
  64165. // SetAssociations sets the Associations field's value.
  64166. func (s *RouteTable) SetAssociations(v []*RouteTableAssociation) *RouteTable {
  64167. s.Associations = v
  64168. return s
  64169. }
  64170. // SetOwnerId sets the OwnerId field's value.
  64171. func (s *RouteTable) SetOwnerId(v string) *RouteTable {
  64172. s.OwnerId = &v
  64173. return s
  64174. }
  64175. // SetPropagatingVgws sets the PropagatingVgws field's value.
  64176. func (s *RouteTable) SetPropagatingVgws(v []*PropagatingVgw) *RouteTable {
  64177. s.PropagatingVgws = v
  64178. return s
  64179. }
  64180. // SetRouteTableId sets the RouteTableId field's value.
  64181. func (s *RouteTable) SetRouteTableId(v string) *RouteTable {
  64182. s.RouteTableId = &v
  64183. return s
  64184. }
  64185. // SetRoutes sets the Routes field's value.
  64186. func (s *RouteTable) SetRoutes(v []*Route) *RouteTable {
  64187. s.Routes = v
  64188. return s
  64189. }
  64190. // SetTags sets the Tags field's value.
  64191. func (s *RouteTable) SetTags(v []*Tag) *RouteTable {
  64192. s.Tags = v
  64193. return s
  64194. }
  64195. // SetVpcId sets the VpcId field's value.
  64196. func (s *RouteTable) SetVpcId(v string) *RouteTable {
  64197. s.VpcId = &v
  64198. return s
  64199. }
  64200. // Describes an association between a route table and a subnet.
  64201. type RouteTableAssociation struct {
  64202. _ struct{} `type:"structure"`
  64203. // Indicates whether this is the main route table.
  64204. Main *bool `locationName:"main" type:"boolean"`
  64205. // The ID of the association between a route table and a subnet.
  64206. RouteTableAssociationId *string `locationName:"routeTableAssociationId" type:"string"`
  64207. // The ID of the route table.
  64208. RouteTableId *string `locationName:"routeTableId" type:"string"`
  64209. // The ID of the subnet. A subnet ID is not returned for an implicit association.
  64210. SubnetId *string `locationName:"subnetId" type:"string"`
  64211. }
  64212. // String returns the string representation
  64213. func (s RouteTableAssociation) String() string {
  64214. return awsutil.Prettify(s)
  64215. }
  64216. // GoString returns the string representation
  64217. func (s RouteTableAssociation) GoString() string {
  64218. return s.String()
  64219. }
  64220. // SetMain sets the Main field's value.
  64221. func (s *RouteTableAssociation) SetMain(v bool) *RouteTableAssociation {
  64222. s.Main = &v
  64223. return s
  64224. }
  64225. // SetRouteTableAssociationId sets the RouteTableAssociationId field's value.
  64226. func (s *RouteTableAssociation) SetRouteTableAssociationId(v string) *RouteTableAssociation {
  64227. s.RouteTableAssociationId = &v
  64228. return s
  64229. }
  64230. // SetRouteTableId sets the RouteTableId field's value.
  64231. func (s *RouteTableAssociation) SetRouteTableId(v string) *RouteTableAssociation {
  64232. s.RouteTableId = &v
  64233. return s
  64234. }
  64235. // SetSubnetId sets the SubnetId field's value.
  64236. func (s *RouteTableAssociation) SetSubnetId(v string) *RouteTableAssociation {
  64237. s.SubnetId = &v
  64238. return s
  64239. }
  64240. type RunInstancesInput struct {
  64241. _ struct{} `type:"structure"`
  64242. // Reserved.
  64243. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  64244. // One or more block device mapping entries. You can't specify both a snapshot
  64245. // ID and an encryption value. This is because only blank volumes can be encrypted
  64246. // on creation. If a snapshot is the basis for a volume, it is not blank and
  64247. // its encryption status is used for the volume encryption status.
  64248. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  64249. // Information about the Capacity Reservation targeting option.
  64250. CapacityReservationSpecification *CapacityReservationSpecification `type:"structure"`
  64251. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  64252. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  64253. //
  64254. // Constraints: Maximum 64 ASCII characters
  64255. ClientToken *string `locationName:"clientToken" type:"string"`
  64256. // The CPU options for the instance. For more information, see Optimizing CPU
  64257. // Options (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html)
  64258. // in the Amazon Elastic Compute Cloud User Guide.
  64259. CpuOptions *CpuOptionsRequest `type:"structure"`
  64260. // The credit option for CPU usage of the instance. Valid values are standard
  64261. // and unlimited. To change this attribute after launch, use ModifyInstanceCreditSpecification.
  64262. // For more information, see Burstable Performance Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html)
  64263. // in the Amazon Elastic Compute Cloud User Guide.
  64264. //
  64265. // Default: standard (T2 instances) or unlimited (T3 instances)
  64266. CreditSpecification *CreditSpecificationRequest `type:"structure"`
  64267. // If you set this parameter to true, you can't terminate the instance using
  64268. // the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute
  64269. // to false after launch, use ModifyInstanceAttribute. Alternatively, if you
  64270. // set InstanceInitiatedShutdownBehavior to terminate, you can terminate the
  64271. // instance by running the shutdown command from the instance.
  64272. //
  64273. // Default: false
  64274. DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"`
  64275. // Checks whether you have the required permissions for the action, without
  64276. // actually making the request, and provides an error response. If you have
  64277. // the required permissions, the error response is DryRunOperation. Otherwise,
  64278. // it is UnauthorizedOperation.
  64279. DryRun *bool `locationName:"dryRun" type:"boolean"`
  64280. // Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
  64281. // provides dedicated throughput to Amazon EBS and an optimized configuration
  64282. // stack to provide optimal Amazon EBS I/O performance. This optimization isn't
  64283. // available with all instance types. Additional usage charges apply when using
  64284. // an EBS-optimized instance.
  64285. //
  64286. // Default: false
  64287. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  64288. // An elastic GPU to associate with the instance.
  64289. ElasticGpuSpecification []*ElasticGpuSpecification `locationNameList:"item" type:"list"`
  64290. // An elastic inference accelerator.
  64291. ElasticInferenceAccelerators []*ElasticInferenceAccelerator `locationName:"ElasticInferenceAccelerator" locationNameList:"item" type:"list"`
  64292. // Indicates whether an instance is enabled for hibernation. For more information,
  64293. // see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  64294. // in the Amazon Elastic Compute Cloud User Guide.
  64295. HibernationOptions *HibernationOptionsRequest `type:"structure"`
  64296. // The IAM instance profile.
  64297. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  64298. // The ID of the AMI, which you can get by calling DescribeImages. An AMI is
  64299. // required to launch an instance and must be specified here or in a launch
  64300. // template.
  64301. ImageId *string `type:"string"`
  64302. // Indicates whether an instance stops or terminates when you initiate shutdown
  64303. // from the instance (using the operating system command for system shutdown).
  64304. //
  64305. // Default: stop
  64306. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  64307. // The market (purchasing) option for the instances.
  64308. //
  64309. // For RunInstances, persistent Spot Instance requests are only supported when
  64310. // InstanceInterruptionBehavior is set to either hibernate or stop.
  64311. InstanceMarketOptions *InstanceMarketOptionsRequest `type:"structure"`
  64312. // The instance type. For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  64313. // in the Amazon Elastic Compute Cloud User Guide.
  64314. //
  64315. // Default: m1.small
  64316. InstanceType *string `type:"string" enum:"InstanceType"`
  64317. // [EC2-VPC] A number of IPv6 addresses to associate with the primary network
  64318. // interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.
  64319. // You cannot specify this option and the option to assign specific IPv6 addresses
  64320. // in the same request. You can specify this option if you've specified a minimum
  64321. // number of instances to launch.
  64322. Ipv6AddressCount *int64 `type:"integer"`
  64323. // [EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet
  64324. // to associate with the primary network interface. You cannot specify this
  64325. // option and the option to assign a number of IPv6 addresses in the same request.
  64326. // You cannot specify this option if you've specified a minimum number of instances
  64327. // to launch.
  64328. Ipv6Addresses []*InstanceIpv6Address `locationName:"Ipv6Address" locationNameList:"item" type:"list"`
  64329. // The ID of the kernel.
  64330. //
  64331. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  64332. // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  64333. // in the Amazon Elastic Compute Cloud User Guide.
  64334. KernelId *string `type:"string"`
  64335. // The name of the key pair. You can create a key pair using CreateKeyPair or
  64336. // ImportKeyPair.
  64337. //
  64338. // If you do not specify a key pair, you can't connect to the instance unless
  64339. // you choose an AMI that is configured to allow users another way to log in.
  64340. KeyName *string `type:"string"`
  64341. // The launch template to use to launch the instances. Any parameters that you
  64342. // specify in RunInstances override the same parameters in the launch template.
  64343. // You can specify either the name or ID of a launch template, but not both.
  64344. LaunchTemplate *LaunchTemplateSpecification `type:"structure"`
  64345. // The license configurations.
  64346. LicenseSpecifications []*LicenseConfigurationRequest `locationName:"LicenseSpecification" locationNameList:"item" type:"list"`
  64347. // The maximum number of instances to launch. If you specify more instances
  64348. // than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches
  64349. // the largest possible number of instances above MinCount.
  64350. //
  64351. // Constraints: Between 1 and the maximum number you're allowed for the specified
  64352. // instance type. For more information about the default limits, and how to
  64353. // 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)
  64354. // in the Amazon EC2 FAQ.
  64355. //
  64356. // MaxCount is a required field
  64357. MaxCount *int64 `type:"integer" required:"true"`
  64358. // The minimum number of instances to launch. If you specify a minimum that
  64359. // is more instances than Amazon EC2 can launch in the target Availability Zone,
  64360. // Amazon EC2 launches no instances.
  64361. //
  64362. // Constraints: Between 1 and the maximum number you're allowed for the specified
  64363. // instance type. For more information about the default limits, and how to
  64364. // 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)
  64365. // in the Amazon EC2 General FAQ.
  64366. //
  64367. // MinCount is a required field
  64368. MinCount *int64 `type:"integer" required:"true"`
  64369. // The monitoring for the instance.
  64370. Monitoring *RunInstancesMonitoringEnabled `type:"structure"`
  64371. // One or more network interfaces.
  64372. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterface" locationNameList:"item" type:"list"`
  64373. // The placement for the instance.
  64374. Placement *Placement `type:"structure"`
  64375. // [EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4
  64376. // address range of the subnet.
  64377. //
  64378. // Only one private IP address can be designated as primary. You can't specify
  64379. // this option if you've specified the option to designate a private IP address
  64380. // as the primary IP address in a network interface specification. You cannot
  64381. // specify this option if you're launching more than one instance in the request.
  64382. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  64383. // The ID of the RAM disk.
  64384. //
  64385. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  64386. // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  64387. // in the Amazon Elastic Compute Cloud User Guide.
  64388. RamdiskId *string `type:"string"`
  64389. // One or more security group IDs. You can create a security group using CreateSecurityGroup.
  64390. //
  64391. // Default: Amazon EC2 uses the default security group.
  64392. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  64393. // [EC2-Classic, default VPC] One or more security group names. For a nondefault
  64394. // VPC, you must use security group IDs instead.
  64395. //
  64396. // Default: Amazon EC2 uses the default security group.
  64397. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"`
  64398. // [EC2-VPC] The ID of the subnet to launch the instance into.
  64399. SubnetId *string `type:"string"`
  64400. // The tags to apply to the resources during launch. You can only tag instances
  64401. // and volumes on launch. The specified tags are applied to all instances or
  64402. // volumes that are created during launch. To tag a resource after it has been
  64403. // created, see CreateTags.
  64404. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  64405. // The user data to make available to the instance. For more information, see
  64406. // Running Commands on Your Linux Instance at Launch (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html)
  64407. // (Linux) and Adding User Data (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data)
  64408. // (Windows). If you are using a command line tool, base64-encoding is performed
  64409. // for you, and you can load the text from a file. Otherwise, you must provide
  64410. // base64-encoded text.
  64411. UserData *string `type:"string"`
  64412. }
  64413. // String returns the string representation
  64414. func (s RunInstancesInput) String() string {
  64415. return awsutil.Prettify(s)
  64416. }
  64417. // GoString returns the string representation
  64418. func (s RunInstancesInput) GoString() string {
  64419. return s.String()
  64420. }
  64421. // Validate inspects the fields of the type to determine if they are valid.
  64422. func (s *RunInstancesInput) Validate() error {
  64423. invalidParams := request.ErrInvalidParams{Context: "RunInstancesInput"}
  64424. if s.MaxCount == nil {
  64425. invalidParams.Add(request.NewErrParamRequired("MaxCount"))
  64426. }
  64427. if s.MinCount == nil {
  64428. invalidParams.Add(request.NewErrParamRequired("MinCount"))
  64429. }
  64430. if s.CreditSpecification != nil {
  64431. if err := s.CreditSpecification.Validate(); err != nil {
  64432. invalidParams.AddNested("CreditSpecification", err.(request.ErrInvalidParams))
  64433. }
  64434. }
  64435. if s.ElasticGpuSpecification != nil {
  64436. for i, v := range s.ElasticGpuSpecification {
  64437. if v == nil {
  64438. continue
  64439. }
  64440. if err := v.Validate(); err != nil {
  64441. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticGpuSpecification", i), err.(request.ErrInvalidParams))
  64442. }
  64443. }
  64444. }
  64445. if s.ElasticInferenceAccelerators != nil {
  64446. for i, v := range s.ElasticInferenceAccelerators {
  64447. if v == nil {
  64448. continue
  64449. }
  64450. if err := v.Validate(); err != nil {
  64451. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticInferenceAccelerators", i), err.(request.ErrInvalidParams))
  64452. }
  64453. }
  64454. }
  64455. if s.Monitoring != nil {
  64456. if err := s.Monitoring.Validate(); err != nil {
  64457. invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams))
  64458. }
  64459. }
  64460. if invalidParams.Len() > 0 {
  64461. return invalidParams
  64462. }
  64463. return nil
  64464. }
  64465. // SetAdditionalInfo sets the AdditionalInfo field's value.
  64466. func (s *RunInstancesInput) SetAdditionalInfo(v string) *RunInstancesInput {
  64467. s.AdditionalInfo = &v
  64468. return s
  64469. }
  64470. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  64471. func (s *RunInstancesInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RunInstancesInput {
  64472. s.BlockDeviceMappings = v
  64473. return s
  64474. }
  64475. // SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value.
  64476. func (s *RunInstancesInput) SetCapacityReservationSpecification(v *CapacityReservationSpecification) *RunInstancesInput {
  64477. s.CapacityReservationSpecification = v
  64478. return s
  64479. }
  64480. // SetClientToken sets the ClientToken field's value.
  64481. func (s *RunInstancesInput) SetClientToken(v string) *RunInstancesInput {
  64482. s.ClientToken = &v
  64483. return s
  64484. }
  64485. // SetCpuOptions sets the CpuOptions field's value.
  64486. func (s *RunInstancesInput) SetCpuOptions(v *CpuOptionsRequest) *RunInstancesInput {
  64487. s.CpuOptions = v
  64488. return s
  64489. }
  64490. // SetCreditSpecification sets the CreditSpecification field's value.
  64491. func (s *RunInstancesInput) SetCreditSpecification(v *CreditSpecificationRequest) *RunInstancesInput {
  64492. s.CreditSpecification = v
  64493. return s
  64494. }
  64495. // SetDisableApiTermination sets the DisableApiTermination field's value.
  64496. func (s *RunInstancesInput) SetDisableApiTermination(v bool) *RunInstancesInput {
  64497. s.DisableApiTermination = &v
  64498. return s
  64499. }
  64500. // SetDryRun sets the DryRun field's value.
  64501. func (s *RunInstancesInput) SetDryRun(v bool) *RunInstancesInput {
  64502. s.DryRun = &v
  64503. return s
  64504. }
  64505. // SetEbsOptimized sets the EbsOptimized field's value.
  64506. func (s *RunInstancesInput) SetEbsOptimized(v bool) *RunInstancesInput {
  64507. s.EbsOptimized = &v
  64508. return s
  64509. }
  64510. // SetElasticGpuSpecification sets the ElasticGpuSpecification field's value.
  64511. func (s *RunInstancesInput) SetElasticGpuSpecification(v []*ElasticGpuSpecification) *RunInstancesInput {
  64512. s.ElasticGpuSpecification = v
  64513. return s
  64514. }
  64515. // SetElasticInferenceAccelerators sets the ElasticInferenceAccelerators field's value.
  64516. func (s *RunInstancesInput) SetElasticInferenceAccelerators(v []*ElasticInferenceAccelerator) *RunInstancesInput {
  64517. s.ElasticInferenceAccelerators = v
  64518. return s
  64519. }
  64520. // SetHibernationOptions sets the HibernationOptions field's value.
  64521. func (s *RunInstancesInput) SetHibernationOptions(v *HibernationOptionsRequest) *RunInstancesInput {
  64522. s.HibernationOptions = v
  64523. return s
  64524. }
  64525. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  64526. func (s *RunInstancesInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RunInstancesInput {
  64527. s.IamInstanceProfile = v
  64528. return s
  64529. }
  64530. // SetImageId sets the ImageId field's value.
  64531. func (s *RunInstancesInput) SetImageId(v string) *RunInstancesInput {
  64532. s.ImageId = &v
  64533. return s
  64534. }
  64535. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  64536. func (s *RunInstancesInput) SetInstanceInitiatedShutdownBehavior(v string) *RunInstancesInput {
  64537. s.InstanceInitiatedShutdownBehavior = &v
  64538. return s
  64539. }
  64540. // SetInstanceMarketOptions sets the InstanceMarketOptions field's value.
  64541. func (s *RunInstancesInput) SetInstanceMarketOptions(v *InstanceMarketOptionsRequest) *RunInstancesInput {
  64542. s.InstanceMarketOptions = v
  64543. return s
  64544. }
  64545. // SetInstanceType sets the InstanceType field's value.
  64546. func (s *RunInstancesInput) SetInstanceType(v string) *RunInstancesInput {
  64547. s.InstanceType = &v
  64548. return s
  64549. }
  64550. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  64551. func (s *RunInstancesInput) SetIpv6AddressCount(v int64) *RunInstancesInput {
  64552. s.Ipv6AddressCount = &v
  64553. return s
  64554. }
  64555. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  64556. func (s *RunInstancesInput) SetIpv6Addresses(v []*InstanceIpv6Address) *RunInstancesInput {
  64557. s.Ipv6Addresses = v
  64558. return s
  64559. }
  64560. // SetKernelId sets the KernelId field's value.
  64561. func (s *RunInstancesInput) SetKernelId(v string) *RunInstancesInput {
  64562. s.KernelId = &v
  64563. return s
  64564. }
  64565. // SetKeyName sets the KeyName field's value.
  64566. func (s *RunInstancesInput) SetKeyName(v string) *RunInstancesInput {
  64567. s.KeyName = &v
  64568. return s
  64569. }
  64570. // SetLaunchTemplate sets the LaunchTemplate field's value.
  64571. func (s *RunInstancesInput) SetLaunchTemplate(v *LaunchTemplateSpecification) *RunInstancesInput {
  64572. s.LaunchTemplate = v
  64573. return s
  64574. }
  64575. // SetLicenseSpecifications sets the LicenseSpecifications field's value.
  64576. func (s *RunInstancesInput) SetLicenseSpecifications(v []*LicenseConfigurationRequest) *RunInstancesInput {
  64577. s.LicenseSpecifications = v
  64578. return s
  64579. }
  64580. // SetMaxCount sets the MaxCount field's value.
  64581. func (s *RunInstancesInput) SetMaxCount(v int64) *RunInstancesInput {
  64582. s.MaxCount = &v
  64583. return s
  64584. }
  64585. // SetMinCount sets the MinCount field's value.
  64586. func (s *RunInstancesInput) SetMinCount(v int64) *RunInstancesInput {
  64587. s.MinCount = &v
  64588. return s
  64589. }
  64590. // SetMonitoring sets the Monitoring field's value.
  64591. func (s *RunInstancesInput) SetMonitoring(v *RunInstancesMonitoringEnabled) *RunInstancesInput {
  64592. s.Monitoring = v
  64593. return s
  64594. }
  64595. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  64596. func (s *RunInstancesInput) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RunInstancesInput {
  64597. s.NetworkInterfaces = v
  64598. return s
  64599. }
  64600. // SetPlacement sets the Placement field's value.
  64601. func (s *RunInstancesInput) SetPlacement(v *Placement) *RunInstancesInput {
  64602. s.Placement = v
  64603. return s
  64604. }
  64605. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  64606. func (s *RunInstancesInput) SetPrivateIpAddress(v string) *RunInstancesInput {
  64607. s.PrivateIpAddress = &v
  64608. return s
  64609. }
  64610. // SetRamdiskId sets the RamdiskId field's value.
  64611. func (s *RunInstancesInput) SetRamdiskId(v string) *RunInstancesInput {
  64612. s.RamdiskId = &v
  64613. return s
  64614. }
  64615. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  64616. func (s *RunInstancesInput) SetSecurityGroupIds(v []*string) *RunInstancesInput {
  64617. s.SecurityGroupIds = v
  64618. return s
  64619. }
  64620. // SetSecurityGroups sets the SecurityGroups field's value.
  64621. func (s *RunInstancesInput) SetSecurityGroups(v []*string) *RunInstancesInput {
  64622. s.SecurityGroups = v
  64623. return s
  64624. }
  64625. // SetSubnetId sets the SubnetId field's value.
  64626. func (s *RunInstancesInput) SetSubnetId(v string) *RunInstancesInput {
  64627. s.SubnetId = &v
  64628. return s
  64629. }
  64630. // SetTagSpecifications sets the TagSpecifications field's value.
  64631. func (s *RunInstancesInput) SetTagSpecifications(v []*TagSpecification) *RunInstancesInput {
  64632. s.TagSpecifications = v
  64633. return s
  64634. }
  64635. // SetUserData sets the UserData field's value.
  64636. func (s *RunInstancesInput) SetUserData(v string) *RunInstancesInput {
  64637. s.UserData = &v
  64638. return s
  64639. }
  64640. // Describes the monitoring of an instance.
  64641. type RunInstancesMonitoringEnabled struct {
  64642. _ struct{} `type:"structure"`
  64643. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  64644. // is enabled.
  64645. //
  64646. // Enabled is a required field
  64647. Enabled *bool `locationName:"enabled" type:"boolean" required:"true"`
  64648. }
  64649. // String returns the string representation
  64650. func (s RunInstancesMonitoringEnabled) String() string {
  64651. return awsutil.Prettify(s)
  64652. }
  64653. // GoString returns the string representation
  64654. func (s RunInstancesMonitoringEnabled) GoString() string {
  64655. return s.String()
  64656. }
  64657. // Validate inspects the fields of the type to determine if they are valid.
  64658. func (s *RunInstancesMonitoringEnabled) Validate() error {
  64659. invalidParams := request.ErrInvalidParams{Context: "RunInstancesMonitoringEnabled"}
  64660. if s.Enabled == nil {
  64661. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  64662. }
  64663. if invalidParams.Len() > 0 {
  64664. return invalidParams
  64665. }
  64666. return nil
  64667. }
  64668. // SetEnabled sets the Enabled field's value.
  64669. func (s *RunInstancesMonitoringEnabled) SetEnabled(v bool) *RunInstancesMonitoringEnabled {
  64670. s.Enabled = &v
  64671. return s
  64672. }
  64673. // Contains the parameters for RunScheduledInstances.
  64674. type RunScheduledInstancesInput struct {
  64675. _ struct{} `type:"structure"`
  64676. // Unique, case-sensitive identifier that ensures the idempotency of the request.
  64677. // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  64678. ClientToken *string `type:"string" idempotencyToken:"true"`
  64679. // Checks whether you have the required permissions for the action, without
  64680. // actually making the request, and provides an error response. If you have
  64681. // the required permissions, the error response is DryRunOperation. Otherwise,
  64682. // it is UnauthorizedOperation.
  64683. DryRun *bool `type:"boolean"`
  64684. // The number of instances.
  64685. //
  64686. // Default: 1
  64687. InstanceCount *int64 `type:"integer"`
  64688. // The launch specification. You must match the instance type, Availability
  64689. // Zone, network, and platform of the schedule that you purchased.
  64690. //
  64691. // LaunchSpecification is a required field
  64692. LaunchSpecification *ScheduledInstancesLaunchSpecification `type:"structure" required:"true"`
  64693. // The Scheduled Instance ID.
  64694. //
  64695. // ScheduledInstanceId is a required field
  64696. ScheduledInstanceId *string `type:"string" required:"true"`
  64697. }
  64698. // String returns the string representation
  64699. func (s RunScheduledInstancesInput) String() string {
  64700. return awsutil.Prettify(s)
  64701. }
  64702. // GoString returns the string representation
  64703. func (s RunScheduledInstancesInput) GoString() string {
  64704. return s.String()
  64705. }
  64706. // Validate inspects the fields of the type to determine if they are valid.
  64707. func (s *RunScheduledInstancesInput) Validate() error {
  64708. invalidParams := request.ErrInvalidParams{Context: "RunScheduledInstancesInput"}
  64709. if s.LaunchSpecification == nil {
  64710. invalidParams.Add(request.NewErrParamRequired("LaunchSpecification"))
  64711. }
  64712. if s.ScheduledInstanceId == nil {
  64713. invalidParams.Add(request.NewErrParamRequired("ScheduledInstanceId"))
  64714. }
  64715. if s.LaunchSpecification != nil {
  64716. if err := s.LaunchSpecification.Validate(); err != nil {
  64717. invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams))
  64718. }
  64719. }
  64720. if invalidParams.Len() > 0 {
  64721. return invalidParams
  64722. }
  64723. return nil
  64724. }
  64725. // SetClientToken sets the ClientToken field's value.
  64726. func (s *RunScheduledInstancesInput) SetClientToken(v string) *RunScheduledInstancesInput {
  64727. s.ClientToken = &v
  64728. return s
  64729. }
  64730. // SetDryRun sets the DryRun field's value.
  64731. func (s *RunScheduledInstancesInput) SetDryRun(v bool) *RunScheduledInstancesInput {
  64732. s.DryRun = &v
  64733. return s
  64734. }
  64735. // SetInstanceCount sets the InstanceCount field's value.
  64736. func (s *RunScheduledInstancesInput) SetInstanceCount(v int64) *RunScheduledInstancesInput {
  64737. s.InstanceCount = &v
  64738. return s
  64739. }
  64740. // SetLaunchSpecification sets the LaunchSpecification field's value.
  64741. func (s *RunScheduledInstancesInput) SetLaunchSpecification(v *ScheduledInstancesLaunchSpecification) *RunScheduledInstancesInput {
  64742. s.LaunchSpecification = v
  64743. return s
  64744. }
  64745. // SetScheduledInstanceId sets the ScheduledInstanceId field's value.
  64746. func (s *RunScheduledInstancesInput) SetScheduledInstanceId(v string) *RunScheduledInstancesInput {
  64747. s.ScheduledInstanceId = &v
  64748. return s
  64749. }
  64750. // Contains the output of RunScheduledInstances.
  64751. type RunScheduledInstancesOutput struct {
  64752. _ struct{} `type:"structure"`
  64753. // The IDs of the newly launched instances.
  64754. InstanceIdSet []*string `locationName:"instanceIdSet" locationNameList:"item" type:"list"`
  64755. }
  64756. // String returns the string representation
  64757. func (s RunScheduledInstancesOutput) String() string {
  64758. return awsutil.Prettify(s)
  64759. }
  64760. // GoString returns the string representation
  64761. func (s RunScheduledInstancesOutput) GoString() string {
  64762. return s.String()
  64763. }
  64764. // SetInstanceIdSet sets the InstanceIdSet field's value.
  64765. func (s *RunScheduledInstancesOutput) SetInstanceIdSet(v []*string) *RunScheduledInstancesOutput {
  64766. s.InstanceIdSet = v
  64767. return s
  64768. }
  64769. // Describes the storage parameters for S3 and S3 buckets for an instance store-backed
  64770. // AMI.
  64771. type S3Storage struct {
  64772. _ struct{} `type:"structure"`
  64773. // The access key ID of the owner of the bucket. Before you specify a value
  64774. // for your access key ID, review and follow the guidance in Best Practices
  64775. // for Managing AWS Access Keys (http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html).
  64776. AWSAccessKeyId *string `type:"string"`
  64777. // The bucket in which to store the AMI. You can specify a bucket that you already
  64778. // own or a new bucket that Amazon EC2 creates on your behalf. If you specify
  64779. // a bucket that belongs to someone else, Amazon EC2 returns an error.
  64780. Bucket *string `locationName:"bucket" type:"string"`
  64781. // The beginning of the file name of the AMI.
  64782. Prefix *string `locationName:"prefix" type:"string"`
  64783. // An Amazon S3 upload policy that gives Amazon EC2 permission to upload items
  64784. // into Amazon S3 on your behalf.
  64785. //
  64786. // UploadPolicy is automatically base64 encoded/decoded by the SDK.
  64787. UploadPolicy []byte `locationName:"uploadPolicy" type:"blob"`
  64788. // The signature of the JSON document.
  64789. UploadPolicySignature *string `locationName:"uploadPolicySignature" type:"string"`
  64790. }
  64791. // String returns the string representation
  64792. func (s S3Storage) String() string {
  64793. return awsutil.Prettify(s)
  64794. }
  64795. // GoString returns the string representation
  64796. func (s S3Storage) GoString() string {
  64797. return s.String()
  64798. }
  64799. // SetAWSAccessKeyId sets the AWSAccessKeyId field's value.
  64800. func (s *S3Storage) SetAWSAccessKeyId(v string) *S3Storage {
  64801. s.AWSAccessKeyId = &v
  64802. return s
  64803. }
  64804. // SetBucket sets the Bucket field's value.
  64805. func (s *S3Storage) SetBucket(v string) *S3Storage {
  64806. s.Bucket = &v
  64807. return s
  64808. }
  64809. // SetPrefix sets the Prefix field's value.
  64810. func (s *S3Storage) SetPrefix(v string) *S3Storage {
  64811. s.Prefix = &v
  64812. return s
  64813. }
  64814. // SetUploadPolicy sets the UploadPolicy field's value.
  64815. func (s *S3Storage) SetUploadPolicy(v []byte) *S3Storage {
  64816. s.UploadPolicy = v
  64817. return s
  64818. }
  64819. // SetUploadPolicySignature sets the UploadPolicySignature field's value.
  64820. func (s *S3Storage) SetUploadPolicySignature(v string) *S3Storage {
  64821. s.UploadPolicySignature = &v
  64822. return s
  64823. }
  64824. // Describes a Scheduled Instance.
  64825. type ScheduledInstance struct {
  64826. _ struct{} `type:"structure"`
  64827. // The Availability Zone.
  64828. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  64829. // The date when the Scheduled Instance was purchased.
  64830. CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
  64831. // The hourly price for a single instance.
  64832. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  64833. // The number of instances.
  64834. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  64835. // The instance type.
  64836. InstanceType *string `locationName:"instanceType" type:"string"`
  64837. // The network platform (EC2-Classic or EC2-VPC).
  64838. NetworkPlatform *string `locationName:"networkPlatform" type:"string"`
  64839. // The time for the next schedule to start.
  64840. NextSlotStartTime *time.Time `locationName:"nextSlotStartTime" type:"timestamp"`
  64841. // The platform (Linux/UNIX or Windows).
  64842. Platform *string `locationName:"platform" type:"string"`
  64843. // The time that the previous schedule ended or will end.
  64844. PreviousSlotEndTime *time.Time `locationName:"previousSlotEndTime" type:"timestamp"`
  64845. // The schedule recurrence.
  64846. Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`
  64847. // The Scheduled Instance ID.
  64848. ScheduledInstanceId *string `locationName:"scheduledInstanceId" type:"string"`
  64849. // The number of hours in the schedule.
  64850. SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`
  64851. // The end date for the Scheduled Instance.
  64852. TermEndDate *time.Time `locationName:"termEndDate" type:"timestamp"`
  64853. // The start date for the Scheduled Instance.
  64854. TermStartDate *time.Time `locationName:"termStartDate" type:"timestamp"`
  64855. // The total number of hours for a single instance for the entire term.
  64856. TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
  64857. }
  64858. // String returns the string representation
  64859. func (s ScheduledInstance) String() string {
  64860. return awsutil.Prettify(s)
  64861. }
  64862. // GoString returns the string representation
  64863. func (s ScheduledInstance) GoString() string {
  64864. return s.String()
  64865. }
  64866. // SetAvailabilityZone sets the AvailabilityZone field's value.
  64867. func (s *ScheduledInstance) SetAvailabilityZone(v string) *ScheduledInstance {
  64868. s.AvailabilityZone = &v
  64869. return s
  64870. }
  64871. // SetCreateDate sets the CreateDate field's value.
  64872. func (s *ScheduledInstance) SetCreateDate(v time.Time) *ScheduledInstance {
  64873. s.CreateDate = &v
  64874. return s
  64875. }
  64876. // SetHourlyPrice sets the HourlyPrice field's value.
  64877. func (s *ScheduledInstance) SetHourlyPrice(v string) *ScheduledInstance {
  64878. s.HourlyPrice = &v
  64879. return s
  64880. }
  64881. // SetInstanceCount sets the InstanceCount field's value.
  64882. func (s *ScheduledInstance) SetInstanceCount(v int64) *ScheduledInstance {
  64883. s.InstanceCount = &v
  64884. return s
  64885. }
  64886. // SetInstanceType sets the InstanceType field's value.
  64887. func (s *ScheduledInstance) SetInstanceType(v string) *ScheduledInstance {
  64888. s.InstanceType = &v
  64889. return s
  64890. }
  64891. // SetNetworkPlatform sets the NetworkPlatform field's value.
  64892. func (s *ScheduledInstance) SetNetworkPlatform(v string) *ScheduledInstance {
  64893. s.NetworkPlatform = &v
  64894. return s
  64895. }
  64896. // SetNextSlotStartTime sets the NextSlotStartTime field's value.
  64897. func (s *ScheduledInstance) SetNextSlotStartTime(v time.Time) *ScheduledInstance {
  64898. s.NextSlotStartTime = &v
  64899. return s
  64900. }
  64901. // SetPlatform sets the Platform field's value.
  64902. func (s *ScheduledInstance) SetPlatform(v string) *ScheduledInstance {
  64903. s.Platform = &v
  64904. return s
  64905. }
  64906. // SetPreviousSlotEndTime sets the PreviousSlotEndTime field's value.
  64907. func (s *ScheduledInstance) SetPreviousSlotEndTime(v time.Time) *ScheduledInstance {
  64908. s.PreviousSlotEndTime = &v
  64909. return s
  64910. }
  64911. // SetRecurrence sets the Recurrence field's value.
  64912. func (s *ScheduledInstance) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstance {
  64913. s.Recurrence = v
  64914. return s
  64915. }
  64916. // SetScheduledInstanceId sets the ScheduledInstanceId field's value.
  64917. func (s *ScheduledInstance) SetScheduledInstanceId(v string) *ScheduledInstance {
  64918. s.ScheduledInstanceId = &v
  64919. return s
  64920. }
  64921. // SetSlotDurationInHours sets the SlotDurationInHours field's value.
  64922. func (s *ScheduledInstance) SetSlotDurationInHours(v int64) *ScheduledInstance {
  64923. s.SlotDurationInHours = &v
  64924. return s
  64925. }
  64926. // SetTermEndDate sets the TermEndDate field's value.
  64927. func (s *ScheduledInstance) SetTermEndDate(v time.Time) *ScheduledInstance {
  64928. s.TermEndDate = &v
  64929. return s
  64930. }
  64931. // SetTermStartDate sets the TermStartDate field's value.
  64932. func (s *ScheduledInstance) SetTermStartDate(v time.Time) *ScheduledInstance {
  64933. s.TermStartDate = &v
  64934. return s
  64935. }
  64936. // SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value.
  64937. func (s *ScheduledInstance) SetTotalScheduledInstanceHours(v int64) *ScheduledInstance {
  64938. s.TotalScheduledInstanceHours = &v
  64939. return s
  64940. }
  64941. // Describes a schedule that is available for your Scheduled Instances.
  64942. type ScheduledInstanceAvailability struct {
  64943. _ struct{} `type:"structure"`
  64944. // The Availability Zone.
  64945. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  64946. // The number of available instances.
  64947. AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"`
  64948. // The time period for the first schedule to start.
  64949. FirstSlotStartTime *time.Time `locationName:"firstSlotStartTime" type:"timestamp"`
  64950. // The hourly price for a single instance.
  64951. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  64952. // The instance type. You can specify one of the C3, C4, M4, or R3 instance
  64953. // types.
  64954. InstanceType *string `locationName:"instanceType" type:"string"`
  64955. // The maximum term. The only possible value is 365 days.
  64956. MaxTermDurationInDays *int64 `locationName:"maxTermDurationInDays" type:"integer"`
  64957. // The minimum term. The only possible value is 365 days.
  64958. MinTermDurationInDays *int64 `locationName:"minTermDurationInDays" type:"integer"`
  64959. // The network platform (EC2-Classic or EC2-VPC).
  64960. NetworkPlatform *string `locationName:"networkPlatform" type:"string"`
  64961. // The platform (Linux/UNIX or Windows).
  64962. Platform *string `locationName:"platform" type:"string"`
  64963. // The purchase token. This token expires in two hours.
  64964. PurchaseToken *string `locationName:"purchaseToken" type:"string"`
  64965. // The schedule recurrence.
  64966. Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`
  64967. // The number of hours in the schedule.
  64968. SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`
  64969. // The total number of hours for a single instance for the entire term.
  64970. TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
  64971. }
  64972. // String returns the string representation
  64973. func (s ScheduledInstanceAvailability) String() string {
  64974. return awsutil.Prettify(s)
  64975. }
  64976. // GoString returns the string representation
  64977. func (s ScheduledInstanceAvailability) GoString() string {
  64978. return s.String()
  64979. }
  64980. // SetAvailabilityZone sets the AvailabilityZone field's value.
  64981. func (s *ScheduledInstanceAvailability) SetAvailabilityZone(v string) *ScheduledInstanceAvailability {
  64982. s.AvailabilityZone = &v
  64983. return s
  64984. }
  64985. // SetAvailableInstanceCount sets the AvailableInstanceCount field's value.
  64986. func (s *ScheduledInstanceAvailability) SetAvailableInstanceCount(v int64) *ScheduledInstanceAvailability {
  64987. s.AvailableInstanceCount = &v
  64988. return s
  64989. }
  64990. // SetFirstSlotStartTime sets the FirstSlotStartTime field's value.
  64991. func (s *ScheduledInstanceAvailability) SetFirstSlotStartTime(v time.Time) *ScheduledInstanceAvailability {
  64992. s.FirstSlotStartTime = &v
  64993. return s
  64994. }
  64995. // SetHourlyPrice sets the HourlyPrice field's value.
  64996. func (s *ScheduledInstanceAvailability) SetHourlyPrice(v string) *ScheduledInstanceAvailability {
  64997. s.HourlyPrice = &v
  64998. return s
  64999. }
  65000. // SetInstanceType sets the InstanceType field's value.
  65001. func (s *ScheduledInstanceAvailability) SetInstanceType(v string) *ScheduledInstanceAvailability {
  65002. s.InstanceType = &v
  65003. return s
  65004. }
  65005. // SetMaxTermDurationInDays sets the MaxTermDurationInDays field's value.
  65006. func (s *ScheduledInstanceAvailability) SetMaxTermDurationInDays(v int64) *ScheduledInstanceAvailability {
  65007. s.MaxTermDurationInDays = &v
  65008. return s
  65009. }
  65010. // SetMinTermDurationInDays sets the MinTermDurationInDays field's value.
  65011. func (s *ScheduledInstanceAvailability) SetMinTermDurationInDays(v int64) *ScheduledInstanceAvailability {
  65012. s.MinTermDurationInDays = &v
  65013. return s
  65014. }
  65015. // SetNetworkPlatform sets the NetworkPlatform field's value.
  65016. func (s *ScheduledInstanceAvailability) SetNetworkPlatform(v string) *ScheduledInstanceAvailability {
  65017. s.NetworkPlatform = &v
  65018. return s
  65019. }
  65020. // SetPlatform sets the Platform field's value.
  65021. func (s *ScheduledInstanceAvailability) SetPlatform(v string) *ScheduledInstanceAvailability {
  65022. s.Platform = &v
  65023. return s
  65024. }
  65025. // SetPurchaseToken sets the PurchaseToken field's value.
  65026. func (s *ScheduledInstanceAvailability) SetPurchaseToken(v string) *ScheduledInstanceAvailability {
  65027. s.PurchaseToken = &v
  65028. return s
  65029. }
  65030. // SetRecurrence sets the Recurrence field's value.
  65031. func (s *ScheduledInstanceAvailability) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstanceAvailability {
  65032. s.Recurrence = v
  65033. return s
  65034. }
  65035. // SetSlotDurationInHours sets the SlotDurationInHours field's value.
  65036. func (s *ScheduledInstanceAvailability) SetSlotDurationInHours(v int64) *ScheduledInstanceAvailability {
  65037. s.SlotDurationInHours = &v
  65038. return s
  65039. }
  65040. // SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value.
  65041. func (s *ScheduledInstanceAvailability) SetTotalScheduledInstanceHours(v int64) *ScheduledInstanceAvailability {
  65042. s.TotalScheduledInstanceHours = &v
  65043. return s
  65044. }
  65045. // Describes the recurring schedule for a Scheduled Instance.
  65046. type ScheduledInstanceRecurrence struct {
  65047. _ struct{} `type:"structure"`
  65048. // The frequency (Daily, Weekly, or Monthly).
  65049. Frequency *string `locationName:"frequency" type:"string"`
  65050. // The interval quantity. The interval unit depends on the value of frequency.
  65051. // For example, every 2 weeks or every 2 months.
  65052. Interval *int64 `locationName:"interval" type:"integer"`
  65053. // The days. For a monthly schedule, this is one or more days of the month (1-31).
  65054. // For a weekly schedule, this is one or more days of the week (1-7, where 1
  65055. // is Sunday).
  65056. OccurrenceDaySet []*int64 `locationName:"occurrenceDaySet" locationNameList:"item" type:"list"`
  65057. // Indicates whether the occurrence is relative to the end of the specified
  65058. // week or month.
  65059. OccurrenceRelativeToEnd *bool `locationName:"occurrenceRelativeToEnd" type:"boolean"`
  65060. // The unit for occurrenceDaySet (DayOfWeek or DayOfMonth).
  65061. OccurrenceUnit *string `locationName:"occurrenceUnit" type:"string"`
  65062. }
  65063. // String returns the string representation
  65064. func (s ScheduledInstanceRecurrence) String() string {
  65065. return awsutil.Prettify(s)
  65066. }
  65067. // GoString returns the string representation
  65068. func (s ScheduledInstanceRecurrence) GoString() string {
  65069. return s.String()
  65070. }
  65071. // SetFrequency sets the Frequency field's value.
  65072. func (s *ScheduledInstanceRecurrence) SetFrequency(v string) *ScheduledInstanceRecurrence {
  65073. s.Frequency = &v
  65074. return s
  65075. }
  65076. // SetInterval sets the Interval field's value.
  65077. func (s *ScheduledInstanceRecurrence) SetInterval(v int64) *ScheduledInstanceRecurrence {
  65078. s.Interval = &v
  65079. return s
  65080. }
  65081. // SetOccurrenceDaySet sets the OccurrenceDaySet field's value.
  65082. func (s *ScheduledInstanceRecurrence) SetOccurrenceDaySet(v []*int64) *ScheduledInstanceRecurrence {
  65083. s.OccurrenceDaySet = v
  65084. return s
  65085. }
  65086. // SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value.
  65087. func (s *ScheduledInstanceRecurrence) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrence {
  65088. s.OccurrenceRelativeToEnd = &v
  65089. return s
  65090. }
  65091. // SetOccurrenceUnit sets the OccurrenceUnit field's value.
  65092. func (s *ScheduledInstanceRecurrence) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrence {
  65093. s.OccurrenceUnit = &v
  65094. return s
  65095. }
  65096. // Describes the recurring schedule for a Scheduled Instance.
  65097. type ScheduledInstanceRecurrenceRequest struct {
  65098. _ struct{} `type:"structure"`
  65099. // The frequency (Daily, Weekly, or Monthly).
  65100. Frequency *string `type:"string"`
  65101. // The interval quantity. The interval unit depends on the value of Frequency.
  65102. // For example, every 2 weeks or every 2 months.
  65103. Interval *int64 `type:"integer"`
  65104. // The days. For a monthly schedule, this is one or more days of the month (1-31).
  65105. // For a weekly schedule, this is one or more days of the week (1-7, where 1
  65106. // is Sunday). You can't specify this value with a daily schedule. If the occurrence
  65107. // is relative to the end of the month, you can specify only a single day.
  65108. OccurrenceDays []*int64 `locationName:"OccurrenceDay" locationNameList:"OccurenceDay" type:"list"`
  65109. // Indicates whether the occurrence is relative to the end of the specified
  65110. // week or month. You can't specify this value with a daily schedule.
  65111. OccurrenceRelativeToEnd *bool `type:"boolean"`
  65112. // The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required
  65113. // for a monthly schedule. You can't specify DayOfWeek with a weekly schedule.
  65114. // You can't specify this value with a daily schedule.
  65115. OccurrenceUnit *string `type:"string"`
  65116. }
  65117. // String returns the string representation
  65118. func (s ScheduledInstanceRecurrenceRequest) String() string {
  65119. return awsutil.Prettify(s)
  65120. }
  65121. // GoString returns the string representation
  65122. func (s ScheduledInstanceRecurrenceRequest) GoString() string {
  65123. return s.String()
  65124. }
  65125. // SetFrequency sets the Frequency field's value.
  65126. func (s *ScheduledInstanceRecurrenceRequest) SetFrequency(v string) *ScheduledInstanceRecurrenceRequest {
  65127. s.Frequency = &v
  65128. return s
  65129. }
  65130. // SetInterval sets the Interval field's value.
  65131. func (s *ScheduledInstanceRecurrenceRequest) SetInterval(v int64) *ScheduledInstanceRecurrenceRequest {
  65132. s.Interval = &v
  65133. return s
  65134. }
  65135. // SetOccurrenceDays sets the OccurrenceDays field's value.
  65136. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceDays(v []*int64) *ScheduledInstanceRecurrenceRequest {
  65137. s.OccurrenceDays = v
  65138. return s
  65139. }
  65140. // SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value.
  65141. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrenceRequest {
  65142. s.OccurrenceRelativeToEnd = &v
  65143. return s
  65144. }
  65145. // SetOccurrenceUnit sets the OccurrenceUnit field's value.
  65146. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrenceRequest {
  65147. s.OccurrenceUnit = &v
  65148. return s
  65149. }
  65150. // Describes a block device mapping for a Scheduled Instance.
  65151. type ScheduledInstancesBlockDeviceMapping struct {
  65152. _ struct{} `type:"structure"`
  65153. // The device name (for example, /dev/sdh or xvdh).
  65154. DeviceName *string `type:"string"`
  65155. // Parameters used to set up EBS volumes automatically when the instance is
  65156. // launched.
  65157. Ebs *ScheduledInstancesEbs `type:"structure"`
  65158. // Suppresses the specified device included in the block device mapping of the
  65159. // AMI.
  65160. NoDevice *string `type:"string"`
  65161. // The virtual device name (ephemeralN). Instance store volumes are numbered
  65162. // starting from 0. An instance type with two available instance store volumes
  65163. // can specify mappings for ephemeral0 and ephemeral1. The number of available
  65164. // instance store volumes depends on the instance type. After you connect to
  65165. // the instance, you must mount the volume.
  65166. //
  65167. // Constraints: For M3 instances, you must specify instance store volumes in
  65168. // the block device mapping for the instance. When you launch an M3 instance,
  65169. // we ignore any instance store volumes specified in the block device mapping
  65170. // for the AMI.
  65171. VirtualName *string `type:"string"`
  65172. }
  65173. // String returns the string representation
  65174. func (s ScheduledInstancesBlockDeviceMapping) String() string {
  65175. return awsutil.Prettify(s)
  65176. }
  65177. // GoString returns the string representation
  65178. func (s ScheduledInstancesBlockDeviceMapping) GoString() string {
  65179. return s.String()
  65180. }
  65181. // SetDeviceName sets the DeviceName field's value.
  65182. func (s *ScheduledInstancesBlockDeviceMapping) SetDeviceName(v string) *ScheduledInstancesBlockDeviceMapping {
  65183. s.DeviceName = &v
  65184. return s
  65185. }
  65186. // SetEbs sets the Ebs field's value.
  65187. func (s *ScheduledInstancesBlockDeviceMapping) SetEbs(v *ScheduledInstancesEbs) *ScheduledInstancesBlockDeviceMapping {
  65188. s.Ebs = v
  65189. return s
  65190. }
  65191. // SetNoDevice sets the NoDevice field's value.
  65192. func (s *ScheduledInstancesBlockDeviceMapping) SetNoDevice(v string) *ScheduledInstancesBlockDeviceMapping {
  65193. s.NoDevice = &v
  65194. return s
  65195. }
  65196. // SetVirtualName sets the VirtualName field's value.
  65197. func (s *ScheduledInstancesBlockDeviceMapping) SetVirtualName(v string) *ScheduledInstancesBlockDeviceMapping {
  65198. s.VirtualName = &v
  65199. return s
  65200. }
  65201. // Describes an EBS volume for a Scheduled Instance.
  65202. type ScheduledInstancesEbs struct {
  65203. _ struct{} `type:"structure"`
  65204. // Indicates whether the volume is deleted on instance termination.
  65205. DeleteOnTermination *bool `type:"boolean"`
  65206. // Indicates whether the volume is encrypted. You can attached encrypted volumes
  65207. // only to instances that support them.
  65208. Encrypted *bool `type:"boolean"`
  65209. // The number of I/O operations per second (IOPS) that the volume supports.
  65210. // For io1 volumes, this represents the number of IOPS that are provisioned
  65211. // for the volume. For gp2 volumes, this represents the baseline performance
  65212. // of the volume and the rate at which the volume accumulates I/O credits for
  65213. // bursting. For more information about gp2 baseline performance, I/O credits,
  65214. // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  65215. // in the Amazon Elastic Compute Cloud User Guide.
  65216. //
  65217. // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
  65218. // gp2 volumes.
  65219. //
  65220. // Condition: This parameter is required for requests to create io1volumes;
  65221. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  65222. Iops *int64 `type:"integer"`
  65223. // The ID of the snapshot.
  65224. SnapshotId *string `type:"string"`
  65225. // The size of the volume, in GiB.
  65226. //
  65227. // Default: If you're creating the volume from a snapshot and don't specify
  65228. // a volume size, the default is the snapshot size.
  65229. VolumeSize *int64 `type:"integer"`
  65230. // The volume type. gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD,
  65231. // Throughput Optimized HDD for st1, Cold HDD for sc1, or standard for Magnetic.
  65232. //
  65233. // Default: standard
  65234. VolumeType *string `type:"string"`
  65235. }
  65236. // String returns the string representation
  65237. func (s ScheduledInstancesEbs) String() string {
  65238. return awsutil.Prettify(s)
  65239. }
  65240. // GoString returns the string representation
  65241. func (s ScheduledInstancesEbs) GoString() string {
  65242. return s.String()
  65243. }
  65244. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  65245. func (s *ScheduledInstancesEbs) SetDeleteOnTermination(v bool) *ScheduledInstancesEbs {
  65246. s.DeleteOnTermination = &v
  65247. return s
  65248. }
  65249. // SetEncrypted sets the Encrypted field's value.
  65250. func (s *ScheduledInstancesEbs) SetEncrypted(v bool) *ScheduledInstancesEbs {
  65251. s.Encrypted = &v
  65252. return s
  65253. }
  65254. // SetIops sets the Iops field's value.
  65255. func (s *ScheduledInstancesEbs) SetIops(v int64) *ScheduledInstancesEbs {
  65256. s.Iops = &v
  65257. return s
  65258. }
  65259. // SetSnapshotId sets the SnapshotId field's value.
  65260. func (s *ScheduledInstancesEbs) SetSnapshotId(v string) *ScheduledInstancesEbs {
  65261. s.SnapshotId = &v
  65262. return s
  65263. }
  65264. // SetVolumeSize sets the VolumeSize field's value.
  65265. func (s *ScheduledInstancesEbs) SetVolumeSize(v int64) *ScheduledInstancesEbs {
  65266. s.VolumeSize = &v
  65267. return s
  65268. }
  65269. // SetVolumeType sets the VolumeType field's value.
  65270. func (s *ScheduledInstancesEbs) SetVolumeType(v string) *ScheduledInstancesEbs {
  65271. s.VolumeType = &v
  65272. return s
  65273. }
  65274. // Describes an IAM instance profile for a Scheduled Instance.
  65275. type ScheduledInstancesIamInstanceProfile struct {
  65276. _ struct{} `type:"structure"`
  65277. // The Amazon Resource Name (ARN).
  65278. Arn *string `type:"string"`
  65279. // The name.
  65280. Name *string `type:"string"`
  65281. }
  65282. // String returns the string representation
  65283. func (s ScheduledInstancesIamInstanceProfile) String() string {
  65284. return awsutil.Prettify(s)
  65285. }
  65286. // GoString returns the string representation
  65287. func (s ScheduledInstancesIamInstanceProfile) GoString() string {
  65288. return s.String()
  65289. }
  65290. // SetArn sets the Arn field's value.
  65291. func (s *ScheduledInstancesIamInstanceProfile) SetArn(v string) *ScheduledInstancesIamInstanceProfile {
  65292. s.Arn = &v
  65293. return s
  65294. }
  65295. // SetName sets the Name field's value.
  65296. func (s *ScheduledInstancesIamInstanceProfile) SetName(v string) *ScheduledInstancesIamInstanceProfile {
  65297. s.Name = &v
  65298. return s
  65299. }
  65300. // Describes an IPv6 address.
  65301. type ScheduledInstancesIpv6Address struct {
  65302. _ struct{} `type:"structure"`
  65303. // The IPv6 address.
  65304. Ipv6Address *string `type:"string"`
  65305. }
  65306. // String returns the string representation
  65307. func (s ScheduledInstancesIpv6Address) String() string {
  65308. return awsutil.Prettify(s)
  65309. }
  65310. // GoString returns the string representation
  65311. func (s ScheduledInstancesIpv6Address) GoString() string {
  65312. return s.String()
  65313. }
  65314. // SetIpv6Address sets the Ipv6Address field's value.
  65315. func (s *ScheduledInstancesIpv6Address) SetIpv6Address(v string) *ScheduledInstancesIpv6Address {
  65316. s.Ipv6Address = &v
  65317. return s
  65318. }
  65319. // Describes the launch specification for a Scheduled Instance.
  65320. //
  65321. // If you are launching the Scheduled Instance in EC2-VPC, you must specify
  65322. // the ID of the subnet. You can specify the subnet using either SubnetId or
  65323. // NetworkInterface.
  65324. type ScheduledInstancesLaunchSpecification struct {
  65325. _ struct{} `type:"structure"`
  65326. // One or more block device mapping entries.
  65327. BlockDeviceMappings []*ScheduledInstancesBlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  65328. // Indicates whether the instances are optimized for EBS I/O. This optimization
  65329. // provides dedicated throughput to Amazon EBS and an optimized configuration
  65330. // stack to provide optimal EBS I/O performance. This optimization isn't available
  65331. // with all instance types. Additional usage charges apply when using an EBS-optimized
  65332. // instance.
  65333. //
  65334. // Default: false
  65335. EbsOptimized *bool `type:"boolean"`
  65336. // The IAM instance profile.
  65337. IamInstanceProfile *ScheduledInstancesIamInstanceProfile `type:"structure"`
  65338. // The ID of the Amazon Machine Image (AMI).
  65339. //
  65340. // ImageId is a required field
  65341. ImageId *string `type:"string" required:"true"`
  65342. // The instance type.
  65343. InstanceType *string `type:"string"`
  65344. // The ID of the kernel.
  65345. KernelId *string `type:"string"`
  65346. // The name of the key pair.
  65347. KeyName *string `type:"string"`
  65348. // Enable or disable monitoring for the instances.
  65349. Monitoring *ScheduledInstancesMonitoring `type:"structure"`
  65350. // One or more network interfaces.
  65351. NetworkInterfaces []*ScheduledInstancesNetworkInterface `locationName:"NetworkInterface" locationNameList:"NetworkInterface" type:"list"`
  65352. // The placement information.
  65353. Placement *ScheduledInstancesPlacement `type:"structure"`
  65354. // The ID of the RAM disk.
  65355. RamdiskId *string `type:"string"`
  65356. // The IDs of one or more security groups.
  65357. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  65358. // The ID of the subnet in which to launch the instances.
  65359. SubnetId *string `type:"string"`
  65360. // The base64-encoded MIME user data.
  65361. UserData *string `type:"string"`
  65362. }
  65363. // String returns the string representation
  65364. func (s ScheduledInstancesLaunchSpecification) String() string {
  65365. return awsutil.Prettify(s)
  65366. }
  65367. // GoString returns the string representation
  65368. func (s ScheduledInstancesLaunchSpecification) GoString() string {
  65369. return s.String()
  65370. }
  65371. // Validate inspects the fields of the type to determine if they are valid.
  65372. func (s *ScheduledInstancesLaunchSpecification) Validate() error {
  65373. invalidParams := request.ErrInvalidParams{Context: "ScheduledInstancesLaunchSpecification"}
  65374. if s.ImageId == nil {
  65375. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  65376. }
  65377. if invalidParams.Len() > 0 {
  65378. return invalidParams
  65379. }
  65380. return nil
  65381. }
  65382. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  65383. func (s *ScheduledInstancesLaunchSpecification) SetBlockDeviceMappings(v []*ScheduledInstancesBlockDeviceMapping) *ScheduledInstancesLaunchSpecification {
  65384. s.BlockDeviceMappings = v
  65385. return s
  65386. }
  65387. // SetEbsOptimized sets the EbsOptimized field's value.
  65388. func (s *ScheduledInstancesLaunchSpecification) SetEbsOptimized(v bool) *ScheduledInstancesLaunchSpecification {
  65389. s.EbsOptimized = &v
  65390. return s
  65391. }
  65392. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  65393. func (s *ScheduledInstancesLaunchSpecification) SetIamInstanceProfile(v *ScheduledInstancesIamInstanceProfile) *ScheduledInstancesLaunchSpecification {
  65394. s.IamInstanceProfile = v
  65395. return s
  65396. }
  65397. // SetImageId sets the ImageId field's value.
  65398. func (s *ScheduledInstancesLaunchSpecification) SetImageId(v string) *ScheduledInstancesLaunchSpecification {
  65399. s.ImageId = &v
  65400. return s
  65401. }
  65402. // SetInstanceType sets the InstanceType field's value.
  65403. func (s *ScheduledInstancesLaunchSpecification) SetInstanceType(v string) *ScheduledInstancesLaunchSpecification {
  65404. s.InstanceType = &v
  65405. return s
  65406. }
  65407. // SetKernelId sets the KernelId field's value.
  65408. func (s *ScheduledInstancesLaunchSpecification) SetKernelId(v string) *ScheduledInstancesLaunchSpecification {
  65409. s.KernelId = &v
  65410. return s
  65411. }
  65412. // SetKeyName sets the KeyName field's value.
  65413. func (s *ScheduledInstancesLaunchSpecification) SetKeyName(v string) *ScheduledInstancesLaunchSpecification {
  65414. s.KeyName = &v
  65415. return s
  65416. }
  65417. // SetMonitoring sets the Monitoring field's value.
  65418. func (s *ScheduledInstancesLaunchSpecification) SetMonitoring(v *ScheduledInstancesMonitoring) *ScheduledInstancesLaunchSpecification {
  65419. s.Monitoring = v
  65420. return s
  65421. }
  65422. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  65423. func (s *ScheduledInstancesLaunchSpecification) SetNetworkInterfaces(v []*ScheduledInstancesNetworkInterface) *ScheduledInstancesLaunchSpecification {
  65424. s.NetworkInterfaces = v
  65425. return s
  65426. }
  65427. // SetPlacement sets the Placement field's value.
  65428. func (s *ScheduledInstancesLaunchSpecification) SetPlacement(v *ScheduledInstancesPlacement) *ScheduledInstancesLaunchSpecification {
  65429. s.Placement = v
  65430. return s
  65431. }
  65432. // SetRamdiskId sets the RamdiskId field's value.
  65433. func (s *ScheduledInstancesLaunchSpecification) SetRamdiskId(v string) *ScheduledInstancesLaunchSpecification {
  65434. s.RamdiskId = &v
  65435. return s
  65436. }
  65437. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  65438. func (s *ScheduledInstancesLaunchSpecification) SetSecurityGroupIds(v []*string) *ScheduledInstancesLaunchSpecification {
  65439. s.SecurityGroupIds = v
  65440. return s
  65441. }
  65442. // SetSubnetId sets the SubnetId field's value.
  65443. func (s *ScheduledInstancesLaunchSpecification) SetSubnetId(v string) *ScheduledInstancesLaunchSpecification {
  65444. s.SubnetId = &v
  65445. return s
  65446. }
  65447. // SetUserData sets the UserData field's value.
  65448. func (s *ScheduledInstancesLaunchSpecification) SetUserData(v string) *ScheduledInstancesLaunchSpecification {
  65449. s.UserData = &v
  65450. return s
  65451. }
  65452. // Describes whether monitoring is enabled for a Scheduled Instance.
  65453. type ScheduledInstancesMonitoring struct {
  65454. _ struct{} `type:"structure"`
  65455. // Indicates whether monitoring is enabled.
  65456. Enabled *bool `type:"boolean"`
  65457. }
  65458. // String returns the string representation
  65459. func (s ScheduledInstancesMonitoring) String() string {
  65460. return awsutil.Prettify(s)
  65461. }
  65462. // GoString returns the string representation
  65463. func (s ScheduledInstancesMonitoring) GoString() string {
  65464. return s.String()
  65465. }
  65466. // SetEnabled sets the Enabled field's value.
  65467. func (s *ScheduledInstancesMonitoring) SetEnabled(v bool) *ScheduledInstancesMonitoring {
  65468. s.Enabled = &v
  65469. return s
  65470. }
  65471. // Describes a network interface for a Scheduled Instance.
  65472. type ScheduledInstancesNetworkInterface struct {
  65473. _ struct{} `type:"structure"`
  65474. // Indicates whether to assign a public IPv4 address to instances launched in
  65475. // a VPC. The public IPv4 address can only be assigned to a network interface
  65476. // for eth0, and can only be assigned to a new network interface, not an existing
  65477. // one. You cannot specify more than one network interface in the request. If
  65478. // launching into a default subnet, the default value is true.
  65479. AssociatePublicIpAddress *bool `type:"boolean"`
  65480. // Indicates whether to delete the interface when the instance is terminated.
  65481. DeleteOnTermination *bool `type:"boolean"`
  65482. // The description.
  65483. Description *string `type:"string"`
  65484. // The index of the device for the network interface attachment.
  65485. DeviceIndex *int64 `type:"integer"`
  65486. // The IDs of one or more security groups.
  65487. Groups []*string `locationName:"Group" locationNameList:"SecurityGroupId" type:"list"`
  65488. // The number of IPv6 addresses to assign to the network interface. The IPv6
  65489. // addresses are automatically selected from the subnet range.
  65490. Ipv6AddressCount *int64 `type:"integer"`
  65491. // One or more specific IPv6 addresses from the subnet range.
  65492. Ipv6Addresses []*ScheduledInstancesIpv6Address `locationName:"Ipv6Address" locationNameList:"Ipv6Address" type:"list"`
  65493. // The ID of the network interface.
  65494. NetworkInterfaceId *string `type:"string"`
  65495. // The IPv4 address of the network interface within the subnet.
  65496. PrivateIpAddress *string `type:"string"`
  65497. // The private IPv4 addresses.
  65498. PrivateIpAddressConfigs []*ScheduledInstancesPrivateIpAddressConfig `locationName:"PrivateIpAddressConfig" locationNameList:"PrivateIpAddressConfigSet" type:"list"`
  65499. // The number of secondary private IPv4 addresses.
  65500. SecondaryPrivateIpAddressCount *int64 `type:"integer"`
  65501. // The ID of the subnet.
  65502. SubnetId *string `type:"string"`
  65503. }
  65504. // String returns the string representation
  65505. func (s ScheduledInstancesNetworkInterface) String() string {
  65506. return awsutil.Prettify(s)
  65507. }
  65508. // GoString returns the string representation
  65509. func (s ScheduledInstancesNetworkInterface) GoString() string {
  65510. return s.String()
  65511. }
  65512. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  65513. func (s *ScheduledInstancesNetworkInterface) SetAssociatePublicIpAddress(v bool) *ScheduledInstancesNetworkInterface {
  65514. s.AssociatePublicIpAddress = &v
  65515. return s
  65516. }
  65517. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  65518. func (s *ScheduledInstancesNetworkInterface) SetDeleteOnTermination(v bool) *ScheduledInstancesNetworkInterface {
  65519. s.DeleteOnTermination = &v
  65520. return s
  65521. }
  65522. // SetDescription sets the Description field's value.
  65523. func (s *ScheduledInstancesNetworkInterface) SetDescription(v string) *ScheduledInstancesNetworkInterface {
  65524. s.Description = &v
  65525. return s
  65526. }
  65527. // SetDeviceIndex sets the DeviceIndex field's value.
  65528. func (s *ScheduledInstancesNetworkInterface) SetDeviceIndex(v int64) *ScheduledInstancesNetworkInterface {
  65529. s.DeviceIndex = &v
  65530. return s
  65531. }
  65532. // SetGroups sets the Groups field's value.
  65533. func (s *ScheduledInstancesNetworkInterface) SetGroups(v []*string) *ScheduledInstancesNetworkInterface {
  65534. s.Groups = v
  65535. return s
  65536. }
  65537. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  65538. func (s *ScheduledInstancesNetworkInterface) SetIpv6AddressCount(v int64) *ScheduledInstancesNetworkInterface {
  65539. s.Ipv6AddressCount = &v
  65540. return s
  65541. }
  65542. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  65543. func (s *ScheduledInstancesNetworkInterface) SetIpv6Addresses(v []*ScheduledInstancesIpv6Address) *ScheduledInstancesNetworkInterface {
  65544. s.Ipv6Addresses = v
  65545. return s
  65546. }
  65547. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  65548. func (s *ScheduledInstancesNetworkInterface) SetNetworkInterfaceId(v string) *ScheduledInstancesNetworkInterface {
  65549. s.NetworkInterfaceId = &v
  65550. return s
  65551. }
  65552. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  65553. func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddress(v string) *ScheduledInstancesNetworkInterface {
  65554. s.PrivateIpAddress = &v
  65555. return s
  65556. }
  65557. // SetPrivateIpAddressConfigs sets the PrivateIpAddressConfigs field's value.
  65558. func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddressConfigs(v []*ScheduledInstancesPrivateIpAddressConfig) *ScheduledInstancesNetworkInterface {
  65559. s.PrivateIpAddressConfigs = v
  65560. return s
  65561. }
  65562. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  65563. func (s *ScheduledInstancesNetworkInterface) SetSecondaryPrivateIpAddressCount(v int64) *ScheduledInstancesNetworkInterface {
  65564. s.SecondaryPrivateIpAddressCount = &v
  65565. return s
  65566. }
  65567. // SetSubnetId sets the SubnetId field's value.
  65568. func (s *ScheduledInstancesNetworkInterface) SetSubnetId(v string) *ScheduledInstancesNetworkInterface {
  65569. s.SubnetId = &v
  65570. return s
  65571. }
  65572. // Describes the placement for a Scheduled Instance.
  65573. type ScheduledInstancesPlacement struct {
  65574. _ struct{} `type:"structure"`
  65575. // The Availability Zone.
  65576. AvailabilityZone *string `type:"string"`
  65577. // The name of the placement group.
  65578. GroupName *string `type:"string"`
  65579. }
  65580. // String returns the string representation
  65581. func (s ScheduledInstancesPlacement) String() string {
  65582. return awsutil.Prettify(s)
  65583. }
  65584. // GoString returns the string representation
  65585. func (s ScheduledInstancesPlacement) GoString() string {
  65586. return s.String()
  65587. }
  65588. // SetAvailabilityZone sets the AvailabilityZone field's value.
  65589. func (s *ScheduledInstancesPlacement) SetAvailabilityZone(v string) *ScheduledInstancesPlacement {
  65590. s.AvailabilityZone = &v
  65591. return s
  65592. }
  65593. // SetGroupName sets the GroupName field's value.
  65594. func (s *ScheduledInstancesPlacement) SetGroupName(v string) *ScheduledInstancesPlacement {
  65595. s.GroupName = &v
  65596. return s
  65597. }
  65598. // Describes a private IPv4 address for a Scheduled Instance.
  65599. type ScheduledInstancesPrivateIpAddressConfig struct {
  65600. _ struct{} `type:"structure"`
  65601. // Indicates whether this is a primary IPv4 address. Otherwise, this is a secondary
  65602. // IPv4 address.
  65603. Primary *bool `type:"boolean"`
  65604. // The IPv4 address.
  65605. PrivateIpAddress *string `type:"string"`
  65606. }
  65607. // String returns the string representation
  65608. func (s ScheduledInstancesPrivateIpAddressConfig) String() string {
  65609. return awsutil.Prettify(s)
  65610. }
  65611. // GoString returns the string representation
  65612. func (s ScheduledInstancesPrivateIpAddressConfig) GoString() string {
  65613. return s.String()
  65614. }
  65615. // SetPrimary sets the Primary field's value.
  65616. func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrimary(v bool) *ScheduledInstancesPrivateIpAddressConfig {
  65617. s.Primary = &v
  65618. return s
  65619. }
  65620. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  65621. func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrivateIpAddress(v string) *ScheduledInstancesPrivateIpAddressConfig {
  65622. s.PrivateIpAddress = &v
  65623. return s
  65624. }
  65625. type SearchTransitGatewayRoutesInput struct {
  65626. _ struct{} `type:"structure"`
  65627. // Checks whether you have the required permissions for the action, without
  65628. // actually making the request, and provides an error response. If you have
  65629. // the required permissions, the error response is DryRunOperation. Otherwise,
  65630. // it is UnauthorizedOperation.
  65631. DryRun *bool `type:"boolean"`
  65632. // One or more filters. The possible values are:
  65633. //
  65634. // * transit-gateway-route-destination-cidr-block - The CIDR range.
  65635. //
  65636. // * transit-gateway-route-state - The state of the route (active | blackhole).
  65637. //
  65638. // * transit-gateway-route-transit-gateway-attachment-id - The ID of the
  65639. // attachment.
  65640. //
  65641. // * transit-gateway-route-type - The route type (static | propagated).
  65642. //
  65643. // * transit-gateway-route-vpn-connection-id - The ID of the VPN connection.
  65644. //
  65645. // Filters is a required field
  65646. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list" required:"true"`
  65647. // The maximum number of routes to return.
  65648. MaxResults *int64 `min:"5" type:"integer"`
  65649. // The ID of the transit gateway route table.
  65650. //
  65651. // TransitGatewayRouteTableId is a required field
  65652. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  65653. }
  65654. // String returns the string representation
  65655. func (s SearchTransitGatewayRoutesInput) String() string {
  65656. return awsutil.Prettify(s)
  65657. }
  65658. // GoString returns the string representation
  65659. func (s SearchTransitGatewayRoutesInput) GoString() string {
  65660. return s.String()
  65661. }
  65662. // Validate inspects the fields of the type to determine if they are valid.
  65663. func (s *SearchTransitGatewayRoutesInput) Validate() error {
  65664. invalidParams := request.ErrInvalidParams{Context: "SearchTransitGatewayRoutesInput"}
  65665. if s.Filters == nil {
  65666. invalidParams.Add(request.NewErrParamRequired("Filters"))
  65667. }
  65668. if s.MaxResults != nil && *s.MaxResults < 5 {
  65669. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  65670. }
  65671. if s.TransitGatewayRouteTableId == nil {
  65672. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  65673. }
  65674. if invalidParams.Len() > 0 {
  65675. return invalidParams
  65676. }
  65677. return nil
  65678. }
  65679. // SetDryRun sets the DryRun field's value.
  65680. func (s *SearchTransitGatewayRoutesInput) SetDryRun(v bool) *SearchTransitGatewayRoutesInput {
  65681. s.DryRun = &v
  65682. return s
  65683. }
  65684. // SetFilters sets the Filters field's value.
  65685. func (s *SearchTransitGatewayRoutesInput) SetFilters(v []*Filter) *SearchTransitGatewayRoutesInput {
  65686. s.Filters = v
  65687. return s
  65688. }
  65689. // SetMaxResults sets the MaxResults field's value.
  65690. func (s *SearchTransitGatewayRoutesInput) SetMaxResults(v int64) *SearchTransitGatewayRoutesInput {
  65691. s.MaxResults = &v
  65692. return s
  65693. }
  65694. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  65695. func (s *SearchTransitGatewayRoutesInput) SetTransitGatewayRouteTableId(v string) *SearchTransitGatewayRoutesInput {
  65696. s.TransitGatewayRouteTableId = &v
  65697. return s
  65698. }
  65699. type SearchTransitGatewayRoutesOutput struct {
  65700. _ struct{} `type:"structure"`
  65701. // Indicates whether there are additional routes available.
  65702. AdditionalRoutesAvailable *bool `locationName:"additionalRoutesAvailable" type:"boolean"`
  65703. // Information about the routes.
  65704. Routes []*TransitGatewayRoute `locationName:"routeSet" locationNameList:"item" type:"list"`
  65705. }
  65706. // String returns the string representation
  65707. func (s SearchTransitGatewayRoutesOutput) String() string {
  65708. return awsutil.Prettify(s)
  65709. }
  65710. // GoString returns the string representation
  65711. func (s SearchTransitGatewayRoutesOutput) GoString() string {
  65712. return s.String()
  65713. }
  65714. // SetAdditionalRoutesAvailable sets the AdditionalRoutesAvailable field's value.
  65715. func (s *SearchTransitGatewayRoutesOutput) SetAdditionalRoutesAvailable(v bool) *SearchTransitGatewayRoutesOutput {
  65716. s.AdditionalRoutesAvailable = &v
  65717. return s
  65718. }
  65719. // SetRoutes sets the Routes field's value.
  65720. func (s *SearchTransitGatewayRoutesOutput) SetRoutes(v []*TransitGatewayRoute) *SearchTransitGatewayRoutesOutput {
  65721. s.Routes = v
  65722. return s
  65723. }
  65724. // Describes a security group
  65725. type SecurityGroup struct {
  65726. _ struct{} `type:"structure"`
  65727. // A description of the security group.
  65728. Description *string `locationName:"groupDescription" type:"string"`
  65729. // The ID of the security group.
  65730. GroupId *string `locationName:"groupId" type:"string"`
  65731. // The name of the security group.
  65732. GroupName *string `locationName:"groupName" type:"string"`
  65733. // One or more inbound rules associated with the security group.
  65734. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  65735. // [EC2-VPC] One or more outbound rules associated with the security group.
  65736. IpPermissionsEgress []*IpPermission `locationName:"ipPermissionsEgress" locationNameList:"item" type:"list"`
  65737. // The AWS account ID of the owner of the security group.
  65738. OwnerId *string `locationName:"ownerId" type:"string"`
  65739. // Any tags assigned to the security group.
  65740. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  65741. // [EC2-VPC] The ID of the VPC for the security group.
  65742. VpcId *string `locationName:"vpcId" type:"string"`
  65743. }
  65744. // String returns the string representation
  65745. func (s SecurityGroup) String() string {
  65746. return awsutil.Prettify(s)
  65747. }
  65748. // GoString returns the string representation
  65749. func (s SecurityGroup) GoString() string {
  65750. return s.String()
  65751. }
  65752. // SetDescription sets the Description field's value.
  65753. func (s *SecurityGroup) SetDescription(v string) *SecurityGroup {
  65754. s.Description = &v
  65755. return s
  65756. }
  65757. // SetGroupId sets the GroupId field's value.
  65758. func (s *SecurityGroup) SetGroupId(v string) *SecurityGroup {
  65759. s.GroupId = &v
  65760. return s
  65761. }
  65762. // SetGroupName sets the GroupName field's value.
  65763. func (s *SecurityGroup) SetGroupName(v string) *SecurityGroup {
  65764. s.GroupName = &v
  65765. return s
  65766. }
  65767. // SetIpPermissions sets the IpPermissions field's value.
  65768. func (s *SecurityGroup) SetIpPermissions(v []*IpPermission) *SecurityGroup {
  65769. s.IpPermissions = v
  65770. return s
  65771. }
  65772. // SetIpPermissionsEgress sets the IpPermissionsEgress field's value.
  65773. func (s *SecurityGroup) SetIpPermissionsEgress(v []*IpPermission) *SecurityGroup {
  65774. s.IpPermissionsEgress = v
  65775. return s
  65776. }
  65777. // SetOwnerId sets the OwnerId field's value.
  65778. func (s *SecurityGroup) SetOwnerId(v string) *SecurityGroup {
  65779. s.OwnerId = &v
  65780. return s
  65781. }
  65782. // SetTags sets the Tags field's value.
  65783. func (s *SecurityGroup) SetTags(v []*Tag) *SecurityGroup {
  65784. s.Tags = v
  65785. return s
  65786. }
  65787. // SetVpcId sets the VpcId field's value.
  65788. func (s *SecurityGroup) SetVpcId(v string) *SecurityGroup {
  65789. s.VpcId = &v
  65790. return s
  65791. }
  65792. // Describes a security group.
  65793. type SecurityGroupIdentifier struct {
  65794. _ struct{} `type:"structure"`
  65795. // The ID of the security group.
  65796. GroupId *string `locationName:"groupId" type:"string"`
  65797. // The name of the security group.
  65798. GroupName *string `locationName:"groupName" type:"string"`
  65799. }
  65800. // String returns the string representation
  65801. func (s SecurityGroupIdentifier) String() string {
  65802. return awsutil.Prettify(s)
  65803. }
  65804. // GoString returns the string representation
  65805. func (s SecurityGroupIdentifier) GoString() string {
  65806. return s.String()
  65807. }
  65808. // SetGroupId sets the GroupId field's value.
  65809. func (s *SecurityGroupIdentifier) SetGroupId(v string) *SecurityGroupIdentifier {
  65810. s.GroupId = &v
  65811. return s
  65812. }
  65813. // SetGroupName sets the GroupName field's value.
  65814. func (s *SecurityGroupIdentifier) SetGroupName(v string) *SecurityGroupIdentifier {
  65815. s.GroupName = &v
  65816. return s
  65817. }
  65818. // Describes a VPC with a security group that references your security group.
  65819. type SecurityGroupReference struct {
  65820. _ struct{} `type:"structure"`
  65821. // The ID of your security group.
  65822. GroupId *string `locationName:"groupId" type:"string"`
  65823. // The ID of the VPC with the referencing security group.
  65824. ReferencingVpcId *string `locationName:"referencingVpcId" type:"string"`
  65825. // The ID of the VPC peering connection.
  65826. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  65827. }
  65828. // String returns the string representation
  65829. func (s SecurityGroupReference) String() string {
  65830. return awsutil.Prettify(s)
  65831. }
  65832. // GoString returns the string representation
  65833. func (s SecurityGroupReference) GoString() string {
  65834. return s.String()
  65835. }
  65836. // SetGroupId sets the GroupId field's value.
  65837. func (s *SecurityGroupReference) SetGroupId(v string) *SecurityGroupReference {
  65838. s.GroupId = &v
  65839. return s
  65840. }
  65841. // SetReferencingVpcId sets the ReferencingVpcId field's value.
  65842. func (s *SecurityGroupReference) SetReferencingVpcId(v string) *SecurityGroupReference {
  65843. s.ReferencingVpcId = &v
  65844. return s
  65845. }
  65846. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  65847. func (s *SecurityGroupReference) SetVpcPeeringConnectionId(v string) *SecurityGroupReference {
  65848. s.VpcPeeringConnectionId = &v
  65849. return s
  65850. }
  65851. // Describes a service configuration for a VPC endpoint service.
  65852. type ServiceConfiguration struct {
  65853. _ struct{} `type:"structure"`
  65854. // Indicates whether requests from other AWS accounts to create an endpoint
  65855. // to the service must first be accepted.
  65856. AcceptanceRequired *bool `locationName:"acceptanceRequired" type:"boolean"`
  65857. // In the Availability Zones in which the service is available.
  65858. AvailabilityZones []*string `locationName:"availabilityZoneSet" locationNameList:"item" type:"list"`
  65859. // The DNS names for the service.
  65860. BaseEndpointDnsNames []*string `locationName:"baseEndpointDnsNameSet" locationNameList:"item" type:"list"`
  65861. // The Amazon Resource Names (ARNs) of the Network Load Balancers for the service.
  65862. NetworkLoadBalancerArns []*string `locationName:"networkLoadBalancerArnSet" locationNameList:"item" type:"list"`
  65863. // The private DNS name for the service.
  65864. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  65865. // The ID of the service.
  65866. ServiceId *string `locationName:"serviceId" type:"string"`
  65867. // The name of the service.
  65868. ServiceName *string `locationName:"serviceName" type:"string"`
  65869. // The service state.
  65870. ServiceState *string `locationName:"serviceState" type:"string" enum:"ServiceState"`
  65871. // The type of service.
  65872. ServiceType []*ServiceTypeDetail `locationName:"serviceType" locationNameList:"item" type:"list"`
  65873. }
  65874. // String returns the string representation
  65875. func (s ServiceConfiguration) String() string {
  65876. return awsutil.Prettify(s)
  65877. }
  65878. // GoString returns the string representation
  65879. func (s ServiceConfiguration) GoString() string {
  65880. return s.String()
  65881. }
  65882. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  65883. func (s *ServiceConfiguration) SetAcceptanceRequired(v bool) *ServiceConfiguration {
  65884. s.AcceptanceRequired = &v
  65885. return s
  65886. }
  65887. // SetAvailabilityZones sets the AvailabilityZones field's value.
  65888. func (s *ServiceConfiguration) SetAvailabilityZones(v []*string) *ServiceConfiguration {
  65889. s.AvailabilityZones = v
  65890. return s
  65891. }
  65892. // SetBaseEndpointDnsNames sets the BaseEndpointDnsNames field's value.
  65893. func (s *ServiceConfiguration) SetBaseEndpointDnsNames(v []*string) *ServiceConfiguration {
  65894. s.BaseEndpointDnsNames = v
  65895. return s
  65896. }
  65897. // SetNetworkLoadBalancerArns sets the NetworkLoadBalancerArns field's value.
  65898. func (s *ServiceConfiguration) SetNetworkLoadBalancerArns(v []*string) *ServiceConfiguration {
  65899. s.NetworkLoadBalancerArns = v
  65900. return s
  65901. }
  65902. // SetPrivateDnsName sets the PrivateDnsName field's value.
  65903. func (s *ServiceConfiguration) SetPrivateDnsName(v string) *ServiceConfiguration {
  65904. s.PrivateDnsName = &v
  65905. return s
  65906. }
  65907. // SetServiceId sets the ServiceId field's value.
  65908. func (s *ServiceConfiguration) SetServiceId(v string) *ServiceConfiguration {
  65909. s.ServiceId = &v
  65910. return s
  65911. }
  65912. // SetServiceName sets the ServiceName field's value.
  65913. func (s *ServiceConfiguration) SetServiceName(v string) *ServiceConfiguration {
  65914. s.ServiceName = &v
  65915. return s
  65916. }
  65917. // SetServiceState sets the ServiceState field's value.
  65918. func (s *ServiceConfiguration) SetServiceState(v string) *ServiceConfiguration {
  65919. s.ServiceState = &v
  65920. return s
  65921. }
  65922. // SetServiceType sets the ServiceType field's value.
  65923. func (s *ServiceConfiguration) SetServiceType(v []*ServiceTypeDetail) *ServiceConfiguration {
  65924. s.ServiceType = v
  65925. return s
  65926. }
  65927. // Describes a VPC endpoint service.
  65928. type ServiceDetail struct {
  65929. _ struct{} `type:"structure"`
  65930. // Indicates whether VPC endpoint connection requests to the service must be
  65931. // accepted by the service owner.
  65932. AcceptanceRequired *bool `locationName:"acceptanceRequired" type:"boolean"`
  65933. // The Availability Zones in which the service is available.
  65934. AvailabilityZones []*string `locationName:"availabilityZoneSet" locationNameList:"item" type:"list"`
  65935. // The DNS names for the service.
  65936. BaseEndpointDnsNames []*string `locationName:"baseEndpointDnsNameSet" locationNameList:"item" type:"list"`
  65937. // The AWS account ID of the service owner.
  65938. Owner *string `locationName:"owner" type:"string"`
  65939. // The private DNS name for the service.
  65940. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  65941. // The Amazon Resource Name (ARN) of the service.
  65942. ServiceName *string `locationName:"serviceName" type:"string"`
  65943. // The type of service.
  65944. ServiceType []*ServiceTypeDetail `locationName:"serviceType" locationNameList:"item" type:"list"`
  65945. // Indicates whether the service supports endpoint policies.
  65946. VpcEndpointPolicySupported *bool `locationName:"vpcEndpointPolicySupported" type:"boolean"`
  65947. }
  65948. // String returns the string representation
  65949. func (s ServiceDetail) String() string {
  65950. return awsutil.Prettify(s)
  65951. }
  65952. // GoString returns the string representation
  65953. func (s ServiceDetail) GoString() string {
  65954. return s.String()
  65955. }
  65956. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  65957. func (s *ServiceDetail) SetAcceptanceRequired(v bool) *ServiceDetail {
  65958. s.AcceptanceRequired = &v
  65959. return s
  65960. }
  65961. // SetAvailabilityZones sets the AvailabilityZones field's value.
  65962. func (s *ServiceDetail) SetAvailabilityZones(v []*string) *ServiceDetail {
  65963. s.AvailabilityZones = v
  65964. return s
  65965. }
  65966. // SetBaseEndpointDnsNames sets the BaseEndpointDnsNames field's value.
  65967. func (s *ServiceDetail) SetBaseEndpointDnsNames(v []*string) *ServiceDetail {
  65968. s.BaseEndpointDnsNames = v
  65969. return s
  65970. }
  65971. // SetOwner sets the Owner field's value.
  65972. func (s *ServiceDetail) SetOwner(v string) *ServiceDetail {
  65973. s.Owner = &v
  65974. return s
  65975. }
  65976. // SetPrivateDnsName sets the PrivateDnsName field's value.
  65977. func (s *ServiceDetail) SetPrivateDnsName(v string) *ServiceDetail {
  65978. s.PrivateDnsName = &v
  65979. return s
  65980. }
  65981. // SetServiceName sets the ServiceName field's value.
  65982. func (s *ServiceDetail) SetServiceName(v string) *ServiceDetail {
  65983. s.ServiceName = &v
  65984. return s
  65985. }
  65986. // SetServiceType sets the ServiceType field's value.
  65987. func (s *ServiceDetail) SetServiceType(v []*ServiceTypeDetail) *ServiceDetail {
  65988. s.ServiceType = v
  65989. return s
  65990. }
  65991. // SetVpcEndpointPolicySupported sets the VpcEndpointPolicySupported field's value.
  65992. func (s *ServiceDetail) SetVpcEndpointPolicySupported(v bool) *ServiceDetail {
  65993. s.VpcEndpointPolicySupported = &v
  65994. return s
  65995. }
  65996. // Describes the type of service for a VPC endpoint.
  65997. type ServiceTypeDetail struct {
  65998. _ struct{} `type:"structure"`
  65999. // The type of service.
  66000. ServiceType *string `locationName:"serviceType" type:"string" enum:"ServiceType"`
  66001. }
  66002. // String returns the string representation
  66003. func (s ServiceTypeDetail) String() string {
  66004. return awsutil.Prettify(s)
  66005. }
  66006. // GoString returns the string representation
  66007. func (s ServiceTypeDetail) GoString() string {
  66008. return s.String()
  66009. }
  66010. // SetServiceType sets the ServiceType field's value.
  66011. func (s *ServiceTypeDetail) SetServiceType(v string) *ServiceTypeDetail {
  66012. s.ServiceType = &v
  66013. return s
  66014. }
  66015. // Describes the time period for a Scheduled Instance to start its first schedule.
  66016. // The time period must span less than one day.
  66017. type SlotDateTimeRangeRequest struct {
  66018. _ struct{} `type:"structure"`
  66019. // The earliest date and time, in UTC, for the Scheduled Instance to start.
  66020. //
  66021. // EarliestTime is a required field
  66022. EarliestTime *time.Time `type:"timestamp" required:"true"`
  66023. // The latest date and time, in UTC, for the Scheduled Instance to start. This
  66024. // value must be later than or equal to the earliest date and at most three
  66025. // months in the future.
  66026. //
  66027. // LatestTime is a required field
  66028. LatestTime *time.Time `type:"timestamp" required:"true"`
  66029. }
  66030. // String returns the string representation
  66031. func (s SlotDateTimeRangeRequest) String() string {
  66032. return awsutil.Prettify(s)
  66033. }
  66034. // GoString returns the string representation
  66035. func (s SlotDateTimeRangeRequest) GoString() string {
  66036. return s.String()
  66037. }
  66038. // Validate inspects the fields of the type to determine if they are valid.
  66039. func (s *SlotDateTimeRangeRequest) Validate() error {
  66040. invalidParams := request.ErrInvalidParams{Context: "SlotDateTimeRangeRequest"}
  66041. if s.EarliestTime == nil {
  66042. invalidParams.Add(request.NewErrParamRequired("EarliestTime"))
  66043. }
  66044. if s.LatestTime == nil {
  66045. invalidParams.Add(request.NewErrParamRequired("LatestTime"))
  66046. }
  66047. if invalidParams.Len() > 0 {
  66048. return invalidParams
  66049. }
  66050. return nil
  66051. }
  66052. // SetEarliestTime sets the EarliestTime field's value.
  66053. func (s *SlotDateTimeRangeRequest) SetEarliestTime(v time.Time) *SlotDateTimeRangeRequest {
  66054. s.EarliestTime = &v
  66055. return s
  66056. }
  66057. // SetLatestTime sets the LatestTime field's value.
  66058. func (s *SlotDateTimeRangeRequest) SetLatestTime(v time.Time) *SlotDateTimeRangeRequest {
  66059. s.LatestTime = &v
  66060. return s
  66061. }
  66062. // Describes the time period for a Scheduled Instance to start its first schedule.
  66063. type SlotStartTimeRangeRequest struct {
  66064. _ struct{} `type:"structure"`
  66065. // The earliest date and time, in UTC, for the Scheduled Instance to start.
  66066. EarliestTime *time.Time `type:"timestamp"`
  66067. // The latest date and time, in UTC, for the Scheduled Instance to start.
  66068. LatestTime *time.Time `type:"timestamp"`
  66069. }
  66070. // String returns the string representation
  66071. func (s SlotStartTimeRangeRequest) String() string {
  66072. return awsutil.Prettify(s)
  66073. }
  66074. // GoString returns the string representation
  66075. func (s SlotStartTimeRangeRequest) GoString() string {
  66076. return s.String()
  66077. }
  66078. // SetEarliestTime sets the EarliestTime field's value.
  66079. func (s *SlotStartTimeRangeRequest) SetEarliestTime(v time.Time) *SlotStartTimeRangeRequest {
  66080. s.EarliestTime = &v
  66081. return s
  66082. }
  66083. // SetLatestTime sets the LatestTime field's value.
  66084. func (s *SlotStartTimeRangeRequest) SetLatestTime(v time.Time) *SlotStartTimeRangeRequest {
  66085. s.LatestTime = &v
  66086. return s
  66087. }
  66088. // Describes a snapshot.
  66089. type Snapshot struct {
  66090. _ struct{} `type:"structure"`
  66091. // The data encryption key identifier for the snapshot. This value is a unique
  66092. // identifier that corresponds to the data encryption key that was used to encrypt
  66093. // the original volume or snapshot copy. Because data encryption keys are inherited
  66094. // by volumes created from snapshots, and vice versa, if snapshots share the
  66095. // same data encryption key identifier, then they belong to the same volume/snapshot
  66096. // lineage. This parameter is only returned by the DescribeSnapshots API operation.
  66097. DataEncryptionKeyId *string `locationName:"dataEncryptionKeyId" type:"string"`
  66098. // The description for the snapshot.
  66099. Description *string `locationName:"description" type:"string"`
  66100. // Indicates whether the snapshot is encrypted.
  66101. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  66102. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  66103. // key (CMK) that was used to protect the volume encryption key for the parent
  66104. // volume.
  66105. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  66106. // Value from an Amazon-maintained list (amazon | aws-marketplace | microsoft)
  66107. // of snapshot owners. Not to be confused with the user-configured AWS account
  66108. // alias, which is set from the IAM console.
  66109. OwnerAlias *string `locationName:"ownerAlias" type:"string"`
  66110. // The AWS account ID of the EBS snapshot owner.
  66111. OwnerId *string `locationName:"ownerId" type:"string"`
  66112. // The progress of the snapshot, as a percentage.
  66113. Progress *string `locationName:"progress" type:"string"`
  66114. // The ID of the snapshot. Each snapshot receives a unique identifier when it
  66115. // is created.
  66116. SnapshotId *string `locationName:"snapshotId" type:"string"`
  66117. // The time stamp when the snapshot was initiated.
  66118. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  66119. // The snapshot state.
  66120. State *string `locationName:"status" type:"string" enum:"SnapshotState"`
  66121. // Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy
  66122. // operation fails (for example, if the proper AWS Key Management Service (AWS
  66123. // KMS) permissions are not obtained) this field displays error state details
  66124. // to help you diagnose why the error occurred. This parameter is only returned
  66125. // by the DescribeSnapshots API operation.
  66126. StateMessage *string `locationName:"statusMessage" type:"string"`
  66127. // Any tags assigned to the snapshot.
  66128. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  66129. // The ID of the volume that was used to create the snapshot. Snapshots created
  66130. // by the CopySnapshot action have an arbitrary volume ID that should not be
  66131. // used for any purpose.
  66132. VolumeId *string `locationName:"volumeId" type:"string"`
  66133. // The size of the volume, in GiB.
  66134. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  66135. }
  66136. // String returns the string representation
  66137. func (s Snapshot) String() string {
  66138. return awsutil.Prettify(s)
  66139. }
  66140. // GoString returns the string representation
  66141. func (s Snapshot) GoString() string {
  66142. return s.String()
  66143. }
  66144. // SetDataEncryptionKeyId sets the DataEncryptionKeyId field's value.
  66145. func (s *Snapshot) SetDataEncryptionKeyId(v string) *Snapshot {
  66146. s.DataEncryptionKeyId = &v
  66147. return s
  66148. }
  66149. // SetDescription sets the Description field's value.
  66150. func (s *Snapshot) SetDescription(v string) *Snapshot {
  66151. s.Description = &v
  66152. return s
  66153. }
  66154. // SetEncrypted sets the Encrypted field's value.
  66155. func (s *Snapshot) SetEncrypted(v bool) *Snapshot {
  66156. s.Encrypted = &v
  66157. return s
  66158. }
  66159. // SetKmsKeyId sets the KmsKeyId field's value.
  66160. func (s *Snapshot) SetKmsKeyId(v string) *Snapshot {
  66161. s.KmsKeyId = &v
  66162. return s
  66163. }
  66164. // SetOwnerAlias sets the OwnerAlias field's value.
  66165. func (s *Snapshot) SetOwnerAlias(v string) *Snapshot {
  66166. s.OwnerAlias = &v
  66167. return s
  66168. }
  66169. // SetOwnerId sets the OwnerId field's value.
  66170. func (s *Snapshot) SetOwnerId(v string) *Snapshot {
  66171. s.OwnerId = &v
  66172. return s
  66173. }
  66174. // SetProgress sets the Progress field's value.
  66175. func (s *Snapshot) SetProgress(v string) *Snapshot {
  66176. s.Progress = &v
  66177. return s
  66178. }
  66179. // SetSnapshotId sets the SnapshotId field's value.
  66180. func (s *Snapshot) SetSnapshotId(v string) *Snapshot {
  66181. s.SnapshotId = &v
  66182. return s
  66183. }
  66184. // SetStartTime sets the StartTime field's value.
  66185. func (s *Snapshot) SetStartTime(v time.Time) *Snapshot {
  66186. s.StartTime = &v
  66187. return s
  66188. }
  66189. // SetState sets the State field's value.
  66190. func (s *Snapshot) SetState(v string) *Snapshot {
  66191. s.State = &v
  66192. return s
  66193. }
  66194. // SetStateMessage sets the StateMessage field's value.
  66195. func (s *Snapshot) SetStateMessage(v string) *Snapshot {
  66196. s.StateMessage = &v
  66197. return s
  66198. }
  66199. // SetTags sets the Tags field's value.
  66200. func (s *Snapshot) SetTags(v []*Tag) *Snapshot {
  66201. s.Tags = v
  66202. return s
  66203. }
  66204. // SetVolumeId sets the VolumeId field's value.
  66205. func (s *Snapshot) SetVolumeId(v string) *Snapshot {
  66206. s.VolumeId = &v
  66207. return s
  66208. }
  66209. // SetVolumeSize sets the VolumeSize field's value.
  66210. func (s *Snapshot) SetVolumeSize(v int64) *Snapshot {
  66211. s.VolumeSize = &v
  66212. return s
  66213. }
  66214. // Describes the snapshot created from the imported disk.
  66215. type SnapshotDetail struct {
  66216. _ struct{} `type:"structure"`
  66217. // A description for the snapshot.
  66218. Description *string `locationName:"description" type:"string"`
  66219. // The block device mapping for the snapshot.
  66220. DeviceName *string `locationName:"deviceName" type:"string"`
  66221. // The size of the disk in the snapshot, in GiB.
  66222. DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`
  66223. // The format of the disk image from which the snapshot is created.
  66224. Format *string `locationName:"format" type:"string"`
  66225. // The percentage of progress for the task.
  66226. Progress *string `locationName:"progress" type:"string"`
  66227. // The snapshot ID of the disk being imported.
  66228. SnapshotId *string `locationName:"snapshotId" type:"string"`
  66229. // A brief status of the snapshot creation.
  66230. Status *string `locationName:"status" type:"string"`
  66231. // A detailed status message for the snapshot creation.
  66232. StatusMessage *string `locationName:"statusMessage" type:"string"`
  66233. // The URL used to access the disk image.
  66234. Url *string `locationName:"url" type:"string"`
  66235. // The S3 bucket for the disk image.
  66236. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
  66237. }
  66238. // String returns the string representation
  66239. func (s SnapshotDetail) String() string {
  66240. return awsutil.Prettify(s)
  66241. }
  66242. // GoString returns the string representation
  66243. func (s SnapshotDetail) GoString() string {
  66244. return s.String()
  66245. }
  66246. // SetDescription sets the Description field's value.
  66247. func (s *SnapshotDetail) SetDescription(v string) *SnapshotDetail {
  66248. s.Description = &v
  66249. return s
  66250. }
  66251. // SetDeviceName sets the DeviceName field's value.
  66252. func (s *SnapshotDetail) SetDeviceName(v string) *SnapshotDetail {
  66253. s.DeviceName = &v
  66254. return s
  66255. }
  66256. // SetDiskImageSize sets the DiskImageSize field's value.
  66257. func (s *SnapshotDetail) SetDiskImageSize(v float64) *SnapshotDetail {
  66258. s.DiskImageSize = &v
  66259. return s
  66260. }
  66261. // SetFormat sets the Format field's value.
  66262. func (s *SnapshotDetail) SetFormat(v string) *SnapshotDetail {
  66263. s.Format = &v
  66264. return s
  66265. }
  66266. // SetProgress sets the Progress field's value.
  66267. func (s *SnapshotDetail) SetProgress(v string) *SnapshotDetail {
  66268. s.Progress = &v
  66269. return s
  66270. }
  66271. // SetSnapshotId sets the SnapshotId field's value.
  66272. func (s *SnapshotDetail) SetSnapshotId(v string) *SnapshotDetail {
  66273. s.SnapshotId = &v
  66274. return s
  66275. }
  66276. // SetStatus sets the Status field's value.
  66277. func (s *SnapshotDetail) SetStatus(v string) *SnapshotDetail {
  66278. s.Status = &v
  66279. return s
  66280. }
  66281. // SetStatusMessage sets the StatusMessage field's value.
  66282. func (s *SnapshotDetail) SetStatusMessage(v string) *SnapshotDetail {
  66283. s.StatusMessage = &v
  66284. return s
  66285. }
  66286. // SetUrl sets the Url field's value.
  66287. func (s *SnapshotDetail) SetUrl(v string) *SnapshotDetail {
  66288. s.Url = &v
  66289. return s
  66290. }
  66291. // SetUserBucket sets the UserBucket field's value.
  66292. func (s *SnapshotDetail) SetUserBucket(v *UserBucketDetails) *SnapshotDetail {
  66293. s.UserBucket = v
  66294. return s
  66295. }
  66296. // The disk container object for the import snapshot request.
  66297. type SnapshotDiskContainer struct {
  66298. _ struct{} `type:"structure"`
  66299. // The description of the disk image being imported.
  66300. Description *string `type:"string"`
  66301. // The format of the disk image being imported.
  66302. //
  66303. // Valid values: VHD | VMDK | OVA
  66304. Format *string `type:"string"`
  66305. // The URL to the Amazon S3-based disk image being imported. It can either be
  66306. // a https URL (https://..) or an Amazon S3 URL (s3://..).
  66307. Url *string `type:"string"`
  66308. // The S3 bucket for the disk image.
  66309. UserBucket *UserBucket `type:"structure"`
  66310. }
  66311. // String returns the string representation
  66312. func (s SnapshotDiskContainer) String() string {
  66313. return awsutil.Prettify(s)
  66314. }
  66315. // GoString returns the string representation
  66316. func (s SnapshotDiskContainer) GoString() string {
  66317. return s.String()
  66318. }
  66319. // SetDescription sets the Description field's value.
  66320. func (s *SnapshotDiskContainer) SetDescription(v string) *SnapshotDiskContainer {
  66321. s.Description = &v
  66322. return s
  66323. }
  66324. // SetFormat sets the Format field's value.
  66325. func (s *SnapshotDiskContainer) SetFormat(v string) *SnapshotDiskContainer {
  66326. s.Format = &v
  66327. return s
  66328. }
  66329. // SetUrl sets the Url field's value.
  66330. func (s *SnapshotDiskContainer) SetUrl(v string) *SnapshotDiskContainer {
  66331. s.Url = &v
  66332. return s
  66333. }
  66334. // SetUserBucket sets the UserBucket field's value.
  66335. func (s *SnapshotDiskContainer) SetUserBucket(v *UserBucket) *SnapshotDiskContainer {
  66336. s.UserBucket = v
  66337. return s
  66338. }
  66339. // Details about the import snapshot task.
  66340. type SnapshotTaskDetail struct {
  66341. _ struct{} `type:"structure"`
  66342. // The description of the snapshot.
  66343. Description *string `locationName:"description" type:"string"`
  66344. // The size of the disk in the snapshot, in GiB.
  66345. DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`
  66346. // Indicates whether the snapshot is encrypted.
  66347. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  66348. // The format of the disk image from which the snapshot is created.
  66349. Format *string `locationName:"format" type:"string"`
  66350. // The identifier for the AWS Key Management Service (AWS KMS) customer master
  66351. // key (CMK) that was used to create the encrypted snapshot.
  66352. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  66353. // The percentage of completion for the import snapshot task.
  66354. Progress *string `locationName:"progress" type:"string"`
  66355. // The snapshot ID of the disk being imported.
  66356. SnapshotId *string `locationName:"snapshotId" type:"string"`
  66357. // A brief status for the import snapshot task.
  66358. Status *string `locationName:"status" type:"string"`
  66359. // A detailed status message for the import snapshot task.
  66360. StatusMessage *string `locationName:"statusMessage" type:"string"`
  66361. // The URL of the disk image from which the snapshot is created.
  66362. Url *string `locationName:"url" type:"string"`
  66363. // The S3 bucket for the disk image.
  66364. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
  66365. }
  66366. // String returns the string representation
  66367. func (s SnapshotTaskDetail) String() string {
  66368. return awsutil.Prettify(s)
  66369. }
  66370. // GoString returns the string representation
  66371. func (s SnapshotTaskDetail) GoString() string {
  66372. return s.String()
  66373. }
  66374. // SetDescription sets the Description field's value.
  66375. func (s *SnapshotTaskDetail) SetDescription(v string) *SnapshotTaskDetail {
  66376. s.Description = &v
  66377. return s
  66378. }
  66379. // SetDiskImageSize sets the DiskImageSize field's value.
  66380. func (s *SnapshotTaskDetail) SetDiskImageSize(v float64) *SnapshotTaskDetail {
  66381. s.DiskImageSize = &v
  66382. return s
  66383. }
  66384. // SetEncrypted sets the Encrypted field's value.
  66385. func (s *SnapshotTaskDetail) SetEncrypted(v bool) *SnapshotTaskDetail {
  66386. s.Encrypted = &v
  66387. return s
  66388. }
  66389. // SetFormat sets the Format field's value.
  66390. func (s *SnapshotTaskDetail) SetFormat(v string) *SnapshotTaskDetail {
  66391. s.Format = &v
  66392. return s
  66393. }
  66394. // SetKmsKeyId sets the KmsKeyId field's value.
  66395. func (s *SnapshotTaskDetail) SetKmsKeyId(v string) *SnapshotTaskDetail {
  66396. s.KmsKeyId = &v
  66397. return s
  66398. }
  66399. // SetProgress sets the Progress field's value.
  66400. func (s *SnapshotTaskDetail) SetProgress(v string) *SnapshotTaskDetail {
  66401. s.Progress = &v
  66402. return s
  66403. }
  66404. // SetSnapshotId sets the SnapshotId field's value.
  66405. func (s *SnapshotTaskDetail) SetSnapshotId(v string) *SnapshotTaskDetail {
  66406. s.SnapshotId = &v
  66407. return s
  66408. }
  66409. // SetStatus sets the Status field's value.
  66410. func (s *SnapshotTaskDetail) SetStatus(v string) *SnapshotTaskDetail {
  66411. s.Status = &v
  66412. return s
  66413. }
  66414. // SetStatusMessage sets the StatusMessage field's value.
  66415. func (s *SnapshotTaskDetail) SetStatusMessage(v string) *SnapshotTaskDetail {
  66416. s.StatusMessage = &v
  66417. return s
  66418. }
  66419. // SetUrl sets the Url field's value.
  66420. func (s *SnapshotTaskDetail) SetUrl(v string) *SnapshotTaskDetail {
  66421. s.Url = &v
  66422. return s
  66423. }
  66424. // SetUserBucket sets the UserBucket field's value.
  66425. func (s *SnapshotTaskDetail) SetUserBucket(v *UserBucketDetails) *SnapshotTaskDetail {
  66426. s.UserBucket = v
  66427. return s
  66428. }
  66429. // Describes the data feed for a Spot Instance.
  66430. type SpotDatafeedSubscription struct {
  66431. _ struct{} `type:"structure"`
  66432. // The Amazon S3 bucket where the Spot Instance data feed is located.
  66433. Bucket *string `locationName:"bucket" type:"string"`
  66434. // The fault codes for the Spot Instance request, if any.
  66435. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`
  66436. // The AWS account ID of the account.
  66437. OwnerId *string `locationName:"ownerId" type:"string"`
  66438. // The prefix that is prepended to data feed files.
  66439. Prefix *string `locationName:"prefix" type:"string"`
  66440. // The state of the Spot Instance data feed subscription.
  66441. State *string `locationName:"state" type:"string" enum:"DatafeedSubscriptionState"`
  66442. }
  66443. // String returns the string representation
  66444. func (s SpotDatafeedSubscription) String() string {
  66445. return awsutil.Prettify(s)
  66446. }
  66447. // GoString returns the string representation
  66448. func (s SpotDatafeedSubscription) GoString() string {
  66449. return s.String()
  66450. }
  66451. // SetBucket sets the Bucket field's value.
  66452. func (s *SpotDatafeedSubscription) SetBucket(v string) *SpotDatafeedSubscription {
  66453. s.Bucket = &v
  66454. return s
  66455. }
  66456. // SetFault sets the Fault field's value.
  66457. func (s *SpotDatafeedSubscription) SetFault(v *SpotInstanceStateFault) *SpotDatafeedSubscription {
  66458. s.Fault = v
  66459. return s
  66460. }
  66461. // SetOwnerId sets the OwnerId field's value.
  66462. func (s *SpotDatafeedSubscription) SetOwnerId(v string) *SpotDatafeedSubscription {
  66463. s.OwnerId = &v
  66464. return s
  66465. }
  66466. // SetPrefix sets the Prefix field's value.
  66467. func (s *SpotDatafeedSubscription) SetPrefix(v string) *SpotDatafeedSubscription {
  66468. s.Prefix = &v
  66469. return s
  66470. }
  66471. // SetState sets the State field's value.
  66472. func (s *SpotDatafeedSubscription) SetState(v string) *SpotDatafeedSubscription {
  66473. s.State = &v
  66474. return s
  66475. }
  66476. // Describes the launch specification for one or more Spot Instances.
  66477. type SpotFleetLaunchSpecification struct {
  66478. _ struct{} `type:"structure"`
  66479. // Deprecated.
  66480. AddressingType *string `locationName:"addressingType" type:"string"`
  66481. // One or more block device mapping entries. You can't specify both a snapshot
  66482. // ID and an encryption value. This is because only blank volumes can be encrypted
  66483. // on creation. If a snapshot is the basis for a volume, it is not blank and
  66484. // its encryption status is used for the volume encryption status.
  66485. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  66486. // Indicates whether the instances are optimized for EBS I/O. This optimization
  66487. // provides dedicated throughput to Amazon EBS and an optimized configuration
  66488. // stack to provide optimal EBS I/O performance. This optimization isn't available
  66489. // with all instance types. Additional usage charges apply when using an EBS
  66490. // Optimized instance.
  66491. //
  66492. // Default: false
  66493. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  66494. // The IAM instance profile.
  66495. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  66496. // The ID of the AMI.
  66497. ImageId *string `locationName:"imageId" type:"string"`
  66498. // The instance type.
  66499. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  66500. // The ID of the kernel.
  66501. KernelId *string `locationName:"kernelId" type:"string"`
  66502. // The name of the key pair.
  66503. KeyName *string `locationName:"keyName" type:"string"`
  66504. // Enable or disable monitoring for the instances.
  66505. Monitoring *SpotFleetMonitoring `locationName:"monitoring" type:"structure"`
  66506. // One or more network interfaces. If you specify a network interface, you must
  66507. // specify subnet IDs and security group IDs using the network interface.
  66508. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  66509. // The placement information.
  66510. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  66511. // The ID of the RAM disk.
  66512. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  66513. // One or more security groups. When requesting instances in a VPC, you must
  66514. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  66515. // you can specify the names or the IDs of the security groups.
  66516. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  66517. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  66518. // If this value is not specified, the default is the Spot price specified for
  66519. // the fleet. To determine the Spot price per unit hour, divide the Spot price
  66520. // by the value of WeightedCapacity.
  66521. SpotPrice *string `locationName:"spotPrice" type:"string"`
  66522. // The ID of the subnet in which to launch the instances. To specify multiple
  66523. // subnets, separate them using commas; for example, "subnet-a61dafcf, subnet-65ea5f08".
  66524. SubnetId *string `locationName:"subnetId" type:"string"`
  66525. // The tags to apply during creation.
  66526. TagSpecifications []*SpotFleetTagSpecification `locationName:"tagSpecificationSet" locationNameList:"item" type:"list"`
  66527. // The Base64-encoded user data to make available to the instances.
  66528. UserData *string `locationName:"userData" type:"string"`
  66529. // The number of units provided by the specified instance type. These are the
  66530. // same units that you chose to set the target capacity in terms (instances
  66531. // or a performance characteristic such as vCPUs, memory, or I/O).
  66532. //
  66533. // If the target capacity divided by this value is not a whole number, we round
  66534. // the number of instances to the next whole number. If this value is not specified,
  66535. // the default is 1.
  66536. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
  66537. }
  66538. // String returns the string representation
  66539. func (s SpotFleetLaunchSpecification) String() string {
  66540. return awsutil.Prettify(s)
  66541. }
  66542. // GoString returns the string representation
  66543. func (s SpotFleetLaunchSpecification) GoString() string {
  66544. return s.String()
  66545. }
  66546. // SetAddressingType sets the AddressingType field's value.
  66547. func (s *SpotFleetLaunchSpecification) SetAddressingType(v string) *SpotFleetLaunchSpecification {
  66548. s.AddressingType = &v
  66549. return s
  66550. }
  66551. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  66552. func (s *SpotFleetLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *SpotFleetLaunchSpecification {
  66553. s.BlockDeviceMappings = v
  66554. return s
  66555. }
  66556. // SetEbsOptimized sets the EbsOptimized field's value.
  66557. func (s *SpotFleetLaunchSpecification) SetEbsOptimized(v bool) *SpotFleetLaunchSpecification {
  66558. s.EbsOptimized = &v
  66559. return s
  66560. }
  66561. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  66562. func (s *SpotFleetLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *SpotFleetLaunchSpecification {
  66563. s.IamInstanceProfile = v
  66564. return s
  66565. }
  66566. // SetImageId sets the ImageId field's value.
  66567. func (s *SpotFleetLaunchSpecification) SetImageId(v string) *SpotFleetLaunchSpecification {
  66568. s.ImageId = &v
  66569. return s
  66570. }
  66571. // SetInstanceType sets the InstanceType field's value.
  66572. func (s *SpotFleetLaunchSpecification) SetInstanceType(v string) *SpotFleetLaunchSpecification {
  66573. s.InstanceType = &v
  66574. return s
  66575. }
  66576. // SetKernelId sets the KernelId field's value.
  66577. func (s *SpotFleetLaunchSpecification) SetKernelId(v string) *SpotFleetLaunchSpecification {
  66578. s.KernelId = &v
  66579. return s
  66580. }
  66581. // SetKeyName sets the KeyName field's value.
  66582. func (s *SpotFleetLaunchSpecification) SetKeyName(v string) *SpotFleetLaunchSpecification {
  66583. s.KeyName = &v
  66584. return s
  66585. }
  66586. // SetMonitoring sets the Monitoring field's value.
  66587. func (s *SpotFleetLaunchSpecification) SetMonitoring(v *SpotFleetMonitoring) *SpotFleetLaunchSpecification {
  66588. s.Monitoring = v
  66589. return s
  66590. }
  66591. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  66592. func (s *SpotFleetLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *SpotFleetLaunchSpecification {
  66593. s.NetworkInterfaces = v
  66594. return s
  66595. }
  66596. // SetPlacement sets the Placement field's value.
  66597. func (s *SpotFleetLaunchSpecification) SetPlacement(v *SpotPlacement) *SpotFleetLaunchSpecification {
  66598. s.Placement = v
  66599. return s
  66600. }
  66601. // SetRamdiskId sets the RamdiskId field's value.
  66602. func (s *SpotFleetLaunchSpecification) SetRamdiskId(v string) *SpotFleetLaunchSpecification {
  66603. s.RamdiskId = &v
  66604. return s
  66605. }
  66606. // SetSecurityGroups sets the SecurityGroups field's value.
  66607. func (s *SpotFleetLaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *SpotFleetLaunchSpecification {
  66608. s.SecurityGroups = v
  66609. return s
  66610. }
  66611. // SetSpotPrice sets the SpotPrice field's value.
  66612. func (s *SpotFleetLaunchSpecification) SetSpotPrice(v string) *SpotFleetLaunchSpecification {
  66613. s.SpotPrice = &v
  66614. return s
  66615. }
  66616. // SetSubnetId sets the SubnetId field's value.
  66617. func (s *SpotFleetLaunchSpecification) SetSubnetId(v string) *SpotFleetLaunchSpecification {
  66618. s.SubnetId = &v
  66619. return s
  66620. }
  66621. // SetTagSpecifications sets the TagSpecifications field's value.
  66622. func (s *SpotFleetLaunchSpecification) SetTagSpecifications(v []*SpotFleetTagSpecification) *SpotFleetLaunchSpecification {
  66623. s.TagSpecifications = v
  66624. return s
  66625. }
  66626. // SetUserData sets the UserData field's value.
  66627. func (s *SpotFleetLaunchSpecification) SetUserData(v string) *SpotFleetLaunchSpecification {
  66628. s.UserData = &v
  66629. return s
  66630. }
  66631. // SetWeightedCapacity sets the WeightedCapacity field's value.
  66632. func (s *SpotFleetLaunchSpecification) SetWeightedCapacity(v float64) *SpotFleetLaunchSpecification {
  66633. s.WeightedCapacity = &v
  66634. return s
  66635. }
  66636. // Describes whether monitoring is enabled.
  66637. type SpotFleetMonitoring struct {
  66638. _ struct{} `type:"structure"`
  66639. // Enables monitoring for the instance.
  66640. //
  66641. // Default: false
  66642. Enabled *bool `locationName:"enabled" type:"boolean"`
  66643. }
  66644. // String returns the string representation
  66645. func (s SpotFleetMonitoring) String() string {
  66646. return awsutil.Prettify(s)
  66647. }
  66648. // GoString returns the string representation
  66649. func (s SpotFleetMonitoring) GoString() string {
  66650. return s.String()
  66651. }
  66652. // SetEnabled sets the Enabled field's value.
  66653. func (s *SpotFleetMonitoring) SetEnabled(v bool) *SpotFleetMonitoring {
  66654. s.Enabled = &v
  66655. return s
  66656. }
  66657. // Describes a Spot Fleet request.
  66658. type SpotFleetRequestConfig struct {
  66659. _ struct{} `type:"structure"`
  66660. // The progress of the Spot Fleet request. If there is an error, the status
  66661. // is error. After all requests are placed, the status is pending_fulfillment.
  66662. // If the size of the fleet is equal to or greater than its target capacity,
  66663. // the status is fulfilled. If the size of the fleet is decreased, the status
  66664. // is pending_termination while Spot Instances are terminating.
  66665. ActivityStatus *string `locationName:"activityStatus" type:"string" enum:"ActivityStatus"`
  66666. // The creation date and time of the request.
  66667. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  66668. // The configuration of the Spot Fleet request.
  66669. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure"`
  66670. // The ID of the Spot Fleet request.
  66671. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
  66672. // The state of the Spot Fleet request.
  66673. SpotFleetRequestState *string `locationName:"spotFleetRequestState" type:"string" enum:"BatchState"`
  66674. }
  66675. // String returns the string representation
  66676. func (s SpotFleetRequestConfig) String() string {
  66677. return awsutil.Prettify(s)
  66678. }
  66679. // GoString returns the string representation
  66680. func (s SpotFleetRequestConfig) GoString() string {
  66681. return s.String()
  66682. }
  66683. // SetActivityStatus sets the ActivityStatus field's value.
  66684. func (s *SpotFleetRequestConfig) SetActivityStatus(v string) *SpotFleetRequestConfig {
  66685. s.ActivityStatus = &v
  66686. return s
  66687. }
  66688. // SetCreateTime sets the CreateTime field's value.
  66689. func (s *SpotFleetRequestConfig) SetCreateTime(v time.Time) *SpotFleetRequestConfig {
  66690. s.CreateTime = &v
  66691. return s
  66692. }
  66693. // SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value.
  66694. func (s *SpotFleetRequestConfig) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *SpotFleetRequestConfig {
  66695. s.SpotFleetRequestConfig = v
  66696. return s
  66697. }
  66698. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  66699. func (s *SpotFleetRequestConfig) SetSpotFleetRequestId(v string) *SpotFleetRequestConfig {
  66700. s.SpotFleetRequestId = &v
  66701. return s
  66702. }
  66703. // SetSpotFleetRequestState sets the SpotFleetRequestState field's value.
  66704. func (s *SpotFleetRequestConfig) SetSpotFleetRequestState(v string) *SpotFleetRequestConfig {
  66705. s.SpotFleetRequestState = &v
  66706. return s
  66707. }
  66708. // Describes the configuration of a Spot Fleet request.
  66709. type SpotFleetRequestConfigData struct {
  66710. _ struct{} `type:"structure"`
  66711. // Indicates how to allocate the target capacity across the Spot pools specified
  66712. // by the Spot Fleet request. The default is lowestPrice.
  66713. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"AllocationStrategy"`
  66714. // A unique, case-sensitive identifier that you provide to ensure the idempotency
  66715. // of your listings. This helps to avoid duplicate listings. For more information,
  66716. // see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  66717. ClientToken *string `locationName:"clientToken" type:"string"`
  66718. // Indicates whether running Spot Instances should be terminated if the target
  66719. // capacity of the Spot Fleet request is decreased below the current size of
  66720. // the Spot Fleet.
  66721. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"`
  66722. // The number of units fulfilled by this request compared to the set target
  66723. // capacity. You cannot set this value.
  66724. FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"`
  66725. // Grants the Spot Fleet permission to terminate Spot Instances on your behalf
  66726. // when you cancel its Spot Fleet request using CancelSpotFleetRequests or when
  66727. // the Spot Fleet request expires, if you set terminateInstancesWithExpiration.
  66728. //
  66729. // IamFleetRole is a required field
  66730. IamFleetRole *string `locationName:"iamFleetRole" type:"string" required:"true"`
  66731. // The behavior when a Spot Instance is interrupted. The default is terminate.
  66732. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"`
  66733. // The number of Spot pools across which to allocate your target Spot capacity.
  66734. // Valid only when Spot AllocationStrategy is set to lowest-price. Spot Fleet
  66735. // selects the cheapest Spot pools and evenly allocates your target Spot capacity
  66736. // across the number of Spot pools that you specify.
  66737. InstancePoolsToUseCount *int64 `locationName:"instancePoolsToUseCount" type:"integer"`
  66738. // The launch specifications for the Spot Fleet request.
  66739. LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" type:"list"`
  66740. // The launch template and overrides.
  66741. LaunchTemplateConfigs []*LaunchTemplateConfig `locationName:"launchTemplateConfigs" locationNameList:"item" type:"list"`
  66742. // One or more Classic Load Balancers and target groups to attach to the Spot
  66743. // Fleet request. Spot Fleet registers the running Spot Instances with the specified
  66744. // Classic Load Balancers and target groups.
  66745. //
  66746. // With Network Load Balancers, Spot Fleet cannot register instances that have
  66747. // the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1,
  66748. // HS1, M1, M2, M3, and T1.
  66749. LoadBalancersConfig *LoadBalancersConfig `locationName:"loadBalancersConfig" type:"structure"`
  66750. // The order of the launch template overrides to use in fulfilling On-Demand
  66751. // capacity. If you specify lowestPrice, Spot Fleet uses price to determine
  66752. // the order, launching the lowest price first. If you specify prioritized,
  66753. // Spot Fleet uses the priority that you assign to each Spot Fleet launch template
  66754. // override, launching the highest priority first. If you do not specify a value,
  66755. // Spot Fleet defaults to lowestPrice.
  66756. OnDemandAllocationStrategy *string `locationName:"onDemandAllocationStrategy" type:"string" enum:"OnDemandAllocationStrategy"`
  66757. // The number of On-Demand units fulfilled by this request compared to the set
  66758. // target On-Demand capacity.
  66759. OnDemandFulfilledCapacity *float64 `locationName:"onDemandFulfilledCapacity" type:"double"`
  66760. // The number of On-Demand units to request. You can choose to set the target
  66761. // capacity in terms of instances or a performance characteristic that is important
  66762. // to your application workload, such as vCPUs, memory, or I/O. If the request
  66763. // type is maintain, you can specify a target capacity of 0 and add capacity
  66764. // later.
  66765. OnDemandTargetCapacity *int64 `locationName:"onDemandTargetCapacity" type:"integer"`
  66766. // Indicates whether Spot Fleet should replace unhealthy instances.
  66767. ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"`
  66768. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  66769. // The default is the On-Demand price.
  66770. SpotPrice *string `locationName:"spotPrice" type:"string"`
  66771. // The number of units to request. You can choose to set the target capacity
  66772. // in terms of instances or a performance characteristic that is important to
  66773. // your application workload, such as vCPUs, memory, or I/O. If the request
  66774. // type is maintain, you can specify a target capacity of 0 and add capacity
  66775. // later.
  66776. //
  66777. // TargetCapacity is a required field
  66778. TargetCapacity *int64 `locationName:"targetCapacity" type:"integer" required:"true"`
  66779. // Indicates whether running Spot Instances should be terminated when the Spot
  66780. // Fleet request expires.
  66781. TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"`
  66782. // The type of request. Indicates whether the Spot Fleet only requests the target
  66783. // capacity or also attempts to maintain it. When this value is request, the
  66784. // Spot Fleet only places the required requests. It does not attempt to replenish
  66785. // Spot Instances if capacity is diminished, nor does it submit requests in
  66786. // alternative Spot pools if capacity is not available. To maintain a certain
  66787. // target capacity, the Spot Fleet places the required requests to meet capacity
  66788. // and automatically replenishes any interrupted instances. Default: maintain.
  66789. Type *string `locationName:"type" type:"string" enum:"FleetType"`
  66790. // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  66791. // The default is to start fulfilling the request immediately.
  66792. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`
  66793. // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  66794. // At this point, no new Spot Instance requests are placed or able to fulfill
  66795. // the request. The default end date is 7 days from the current date.
  66796. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
  66797. }
  66798. // String returns the string representation
  66799. func (s SpotFleetRequestConfigData) String() string {
  66800. return awsutil.Prettify(s)
  66801. }
  66802. // GoString returns the string representation
  66803. func (s SpotFleetRequestConfigData) GoString() string {
  66804. return s.String()
  66805. }
  66806. // Validate inspects the fields of the type to determine if they are valid.
  66807. func (s *SpotFleetRequestConfigData) Validate() error {
  66808. invalidParams := request.ErrInvalidParams{Context: "SpotFleetRequestConfigData"}
  66809. if s.IamFleetRole == nil {
  66810. invalidParams.Add(request.NewErrParamRequired("IamFleetRole"))
  66811. }
  66812. if s.TargetCapacity == nil {
  66813. invalidParams.Add(request.NewErrParamRequired("TargetCapacity"))
  66814. }
  66815. if s.LaunchTemplateConfigs != nil {
  66816. for i, v := range s.LaunchTemplateConfigs {
  66817. if v == nil {
  66818. continue
  66819. }
  66820. if err := v.Validate(); err != nil {
  66821. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LaunchTemplateConfigs", i), err.(request.ErrInvalidParams))
  66822. }
  66823. }
  66824. }
  66825. if s.LoadBalancersConfig != nil {
  66826. if err := s.LoadBalancersConfig.Validate(); err != nil {
  66827. invalidParams.AddNested("LoadBalancersConfig", err.(request.ErrInvalidParams))
  66828. }
  66829. }
  66830. if invalidParams.Len() > 0 {
  66831. return invalidParams
  66832. }
  66833. return nil
  66834. }
  66835. // SetAllocationStrategy sets the AllocationStrategy field's value.
  66836. func (s *SpotFleetRequestConfigData) SetAllocationStrategy(v string) *SpotFleetRequestConfigData {
  66837. s.AllocationStrategy = &v
  66838. return s
  66839. }
  66840. // SetClientToken sets the ClientToken field's value.
  66841. func (s *SpotFleetRequestConfigData) SetClientToken(v string) *SpotFleetRequestConfigData {
  66842. s.ClientToken = &v
  66843. return s
  66844. }
  66845. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  66846. func (s *SpotFleetRequestConfigData) SetExcessCapacityTerminationPolicy(v string) *SpotFleetRequestConfigData {
  66847. s.ExcessCapacityTerminationPolicy = &v
  66848. return s
  66849. }
  66850. // SetFulfilledCapacity sets the FulfilledCapacity field's value.
  66851. func (s *SpotFleetRequestConfigData) SetFulfilledCapacity(v float64) *SpotFleetRequestConfigData {
  66852. s.FulfilledCapacity = &v
  66853. return s
  66854. }
  66855. // SetIamFleetRole sets the IamFleetRole field's value.
  66856. func (s *SpotFleetRequestConfigData) SetIamFleetRole(v string) *SpotFleetRequestConfigData {
  66857. s.IamFleetRole = &v
  66858. return s
  66859. }
  66860. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  66861. func (s *SpotFleetRequestConfigData) SetInstanceInterruptionBehavior(v string) *SpotFleetRequestConfigData {
  66862. s.InstanceInterruptionBehavior = &v
  66863. return s
  66864. }
  66865. // SetInstancePoolsToUseCount sets the InstancePoolsToUseCount field's value.
  66866. func (s *SpotFleetRequestConfigData) SetInstancePoolsToUseCount(v int64) *SpotFleetRequestConfigData {
  66867. s.InstancePoolsToUseCount = &v
  66868. return s
  66869. }
  66870. // SetLaunchSpecifications sets the LaunchSpecifications field's value.
  66871. func (s *SpotFleetRequestConfigData) SetLaunchSpecifications(v []*SpotFleetLaunchSpecification) *SpotFleetRequestConfigData {
  66872. s.LaunchSpecifications = v
  66873. return s
  66874. }
  66875. // SetLaunchTemplateConfigs sets the LaunchTemplateConfigs field's value.
  66876. func (s *SpotFleetRequestConfigData) SetLaunchTemplateConfigs(v []*LaunchTemplateConfig) *SpotFleetRequestConfigData {
  66877. s.LaunchTemplateConfigs = v
  66878. return s
  66879. }
  66880. // SetLoadBalancersConfig sets the LoadBalancersConfig field's value.
  66881. func (s *SpotFleetRequestConfigData) SetLoadBalancersConfig(v *LoadBalancersConfig) *SpotFleetRequestConfigData {
  66882. s.LoadBalancersConfig = v
  66883. return s
  66884. }
  66885. // SetOnDemandAllocationStrategy sets the OnDemandAllocationStrategy field's value.
  66886. func (s *SpotFleetRequestConfigData) SetOnDemandAllocationStrategy(v string) *SpotFleetRequestConfigData {
  66887. s.OnDemandAllocationStrategy = &v
  66888. return s
  66889. }
  66890. // SetOnDemandFulfilledCapacity sets the OnDemandFulfilledCapacity field's value.
  66891. func (s *SpotFleetRequestConfigData) SetOnDemandFulfilledCapacity(v float64) *SpotFleetRequestConfigData {
  66892. s.OnDemandFulfilledCapacity = &v
  66893. return s
  66894. }
  66895. // SetOnDemandTargetCapacity sets the OnDemandTargetCapacity field's value.
  66896. func (s *SpotFleetRequestConfigData) SetOnDemandTargetCapacity(v int64) *SpotFleetRequestConfigData {
  66897. s.OnDemandTargetCapacity = &v
  66898. return s
  66899. }
  66900. // SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value.
  66901. func (s *SpotFleetRequestConfigData) SetReplaceUnhealthyInstances(v bool) *SpotFleetRequestConfigData {
  66902. s.ReplaceUnhealthyInstances = &v
  66903. return s
  66904. }
  66905. // SetSpotPrice sets the SpotPrice field's value.
  66906. func (s *SpotFleetRequestConfigData) SetSpotPrice(v string) *SpotFleetRequestConfigData {
  66907. s.SpotPrice = &v
  66908. return s
  66909. }
  66910. // SetTargetCapacity sets the TargetCapacity field's value.
  66911. func (s *SpotFleetRequestConfigData) SetTargetCapacity(v int64) *SpotFleetRequestConfigData {
  66912. s.TargetCapacity = &v
  66913. return s
  66914. }
  66915. // SetTerminateInstancesWithExpiration sets the TerminateInstancesWithExpiration field's value.
  66916. func (s *SpotFleetRequestConfigData) SetTerminateInstancesWithExpiration(v bool) *SpotFleetRequestConfigData {
  66917. s.TerminateInstancesWithExpiration = &v
  66918. return s
  66919. }
  66920. // SetType sets the Type field's value.
  66921. func (s *SpotFleetRequestConfigData) SetType(v string) *SpotFleetRequestConfigData {
  66922. s.Type = &v
  66923. return s
  66924. }
  66925. // SetValidFrom sets the ValidFrom field's value.
  66926. func (s *SpotFleetRequestConfigData) SetValidFrom(v time.Time) *SpotFleetRequestConfigData {
  66927. s.ValidFrom = &v
  66928. return s
  66929. }
  66930. // SetValidUntil sets the ValidUntil field's value.
  66931. func (s *SpotFleetRequestConfigData) SetValidUntil(v time.Time) *SpotFleetRequestConfigData {
  66932. s.ValidUntil = &v
  66933. return s
  66934. }
  66935. // The tags for a Spot Fleet resource.
  66936. type SpotFleetTagSpecification struct {
  66937. _ struct{} `type:"structure"`
  66938. // The type of resource. Currently, the only resource type that is supported
  66939. // is instance.
  66940. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  66941. // The tags.
  66942. Tags []*Tag `locationName:"tag" locationNameList:"item" type:"list"`
  66943. }
  66944. // String returns the string representation
  66945. func (s SpotFleetTagSpecification) String() string {
  66946. return awsutil.Prettify(s)
  66947. }
  66948. // GoString returns the string representation
  66949. func (s SpotFleetTagSpecification) GoString() string {
  66950. return s.String()
  66951. }
  66952. // SetResourceType sets the ResourceType field's value.
  66953. func (s *SpotFleetTagSpecification) SetResourceType(v string) *SpotFleetTagSpecification {
  66954. s.ResourceType = &v
  66955. return s
  66956. }
  66957. // SetTags sets the Tags field's value.
  66958. func (s *SpotFleetTagSpecification) SetTags(v []*Tag) *SpotFleetTagSpecification {
  66959. s.Tags = v
  66960. return s
  66961. }
  66962. // Describes a Spot Instance request.
  66963. type SpotInstanceRequest struct {
  66964. _ struct{} `type:"structure"`
  66965. // If you specified a duration and your Spot Instance request was fulfilled,
  66966. // this is the fixed hourly price in effect for the Spot Instance while it runs.
  66967. ActualBlockHourlyPrice *string `locationName:"actualBlockHourlyPrice" type:"string"`
  66968. // The Availability Zone group. If you specify the same Availability Zone group
  66969. // for all Spot Instance requests, all Spot Instances are launched in the same
  66970. // Availability Zone.
  66971. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`
  66972. // The duration for the Spot Instance, in minutes.
  66973. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  66974. // The date and time when the Spot Instance request was created, in UTC format
  66975. // (for example, YYYY-MM-DDTHH:MM:SSZ).
  66976. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  66977. // The fault codes for the Spot Instance request, if any.
  66978. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`
  66979. // The instance ID, if an instance has been launched to fulfill the Spot Instance
  66980. // request.
  66981. InstanceId *string `locationName:"instanceId" type:"string"`
  66982. // The behavior when a Spot Instance is interrupted.
  66983. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"`
  66984. // The instance launch group. Launch groups are Spot Instances that launch together
  66985. // and terminate together.
  66986. LaunchGroup *string `locationName:"launchGroup" type:"string"`
  66987. // Additional information for launching instances.
  66988. LaunchSpecification *LaunchSpecification `locationName:"launchSpecification" type:"structure"`
  66989. // The Availability Zone in which the request is launched.
  66990. LaunchedAvailabilityZone *string `locationName:"launchedAvailabilityZone" type:"string"`
  66991. // The product description associated with the Spot Instance.
  66992. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  66993. // The ID of the Spot Instance request.
  66994. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  66995. // The maximum price per hour that you are willing to pay for a Spot Instance.
  66996. SpotPrice *string `locationName:"spotPrice" type:"string"`
  66997. // The state of the Spot Instance request. Spot status information helps track
  66998. // your Spot Instance requests. For more information, see Spot Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
  66999. // in the Amazon EC2 User Guide for Linux Instances.
  67000. State *string `locationName:"state" type:"string" enum:"SpotInstanceState"`
  67001. // The status code and status message describing the Spot Instance request.
  67002. Status *SpotInstanceStatus `locationName:"status" type:"structure"`
  67003. // Any tags assigned to the resource.
  67004. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  67005. // The Spot Instance request type.
  67006. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"`
  67007. // The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  67008. // The request becomes active at this date and time.
  67009. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`
  67010. // The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  67011. // If this is a one-time request, it remains active until all instances launch,
  67012. // the request is canceled, or this date is reached. If the request is persistent,
  67013. // it remains active until it is canceled or this date is reached. The default
  67014. // end date is 7 days from the current date.
  67015. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
  67016. }
  67017. // String returns the string representation
  67018. func (s SpotInstanceRequest) String() string {
  67019. return awsutil.Prettify(s)
  67020. }
  67021. // GoString returns the string representation
  67022. func (s SpotInstanceRequest) GoString() string {
  67023. return s.String()
  67024. }
  67025. // SetActualBlockHourlyPrice sets the ActualBlockHourlyPrice field's value.
  67026. func (s *SpotInstanceRequest) SetActualBlockHourlyPrice(v string) *SpotInstanceRequest {
  67027. s.ActualBlockHourlyPrice = &v
  67028. return s
  67029. }
  67030. // SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value.
  67031. func (s *SpotInstanceRequest) SetAvailabilityZoneGroup(v string) *SpotInstanceRequest {
  67032. s.AvailabilityZoneGroup = &v
  67033. return s
  67034. }
  67035. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  67036. func (s *SpotInstanceRequest) SetBlockDurationMinutes(v int64) *SpotInstanceRequest {
  67037. s.BlockDurationMinutes = &v
  67038. return s
  67039. }
  67040. // SetCreateTime sets the CreateTime field's value.
  67041. func (s *SpotInstanceRequest) SetCreateTime(v time.Time) *SpotInstanceRequest {
  67042. s.CreateTime = &v
  67043. return s
  67044. }
  67045. // SetFault sets the Fault field's value.
  67046. func (s *SpotInstanceRequest) SetFault(v *SpotInstanceStateFault) *SpotInstanceRequest {
  67047. s.Fault = v
  67048. return s
  67049. }
  67050. // SetInstanceId sets the InstanceId field's value.
  67051. func (s *SpotInstanceRequest) SetInstanceId(v string) *SpotInstanceRequest {
  67052. s.InstanceId = &v
  67053. return s
  67054. }
  67055. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  67056. func (s *SpotInstanceRequest) SetInstanceInterruptionBehavior(v string) *SpotInstanceRequest {
  67057. s.InstanceInterruptionBehavior = &v
  67058. return s
  67059. }
  67060. // SetLaunchGroup sets the LaunchGroup field's value.
  67061. func (s *SpotInstanceRequest) SetLaunchGroup(v string) *SpotInstanceRequest {
  67062. s.LaunchGroup = &v
  67063. return s
  67064. }
  67065. // SetLaunchSpecification sets the LaunchSpecification field's value.
  67066. func (s *SpotInstanceRequest) SetLaunchSpecification(v *LaunchSpecification) *SpotInstanceRequest {
  67067. s.LaunchSpecification = v
  67068. return s
  67069. }
  67070. // SetLaunchedAvailabilityZone sets the LaunchedAvailabilityZone field's value.
  67071. func (s *SpotInstanceRequest) SetLaunchedAvailabilityZone(v string) *SpotInstanceRequest {
  67072. s.LaunchedAvailabilityZone = &v
  67073. return s
  67074. }
  67075. // SetProductDescription sets the ProductDescription field's value.
  67076. func (s *SpotInstanceRequest) SetProductDescription(v string) *SpotInstanceRequest {
  67077. s.ProductDescription = &v
  67078. return s
  67079. }
  67080. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  67081. func (s *SpotInstanceRequest) SetSpotInstanceRequestId(v string) *SpotInstanceRequest {
  67082. s.SpotInstanceRequestId = &v
  67083. return s
  67084. }
  67085. // SetSpotPrice sets the SpotPrice field's value.
  67086. func (s *SpotInstanceRequest) SetSpotPrice(v string) *SpotInstanceRequest {
  67087. s.SpotPrice = &v
  67088. return s
  67089. }
  67090. // SetState sets the State field's value.
  67091. func (s *SpotInstanceRequest) SetState(v string) *SpotInstanceRequest {
  67092. s.State = &v
  67093. return s
  67094. }
  67095. // SetStatus sets the Status field's value.
  67096. func (s *SpotInstanceRequest) SetStatus(v *SpotInstanceStatus) *SpotInstanceRequest {
  67097. s.Status = v
  67098. return s
  67099. }
  67100. // SetTags sets the Tags field's value.
  67101. func (s *SpotInstanceRequest) SetTags(v []*Tag) *SpotInstanceRequest {
  67102. s.Tags = v
  67103. return s
  67104. }
  67105. // SetType sets the Type field's value.
  67106. func (s *SpotInstanceRequest) SetType(v string) *SpotInstanceRequest {
  67107. s.Type = &v
  67108. return s
  67109. }
  67110. // SetValidFrom sets the ValidFrom field's value.
  67111. func (s *SpotInstanceRequest) SetValidFrom(v time.Time) *SpotInstanceRequest {
  67112. s.ValidFrom = &v
  67113. return s
  67114. }
  67115. // SetValidUntil sets the ValidUntil field's value.
  67116. func (s *SpotInstanceRequest) SetValidUntil(v time.Time) *SpotInstanceRequest {
  67117. s.ValidUntil = &v
  67118. return s
  67119. }
  67120. // Describes a Spot Instance state change.
  67121. type SpotInstanceStateFault struct {
  67122. _ struct{} `type:"structure"`
  67123. // The reason code for the Spot Instance state change.
  67124. Code *string `locationName:"code" type:"string"`
  67125. // The message for the Spot Instance state change.
  67126. Message *string `locationName:"message" type:"string"`
  67127. }
  67128. // String returns the string representation
  67129. func (s SpotInstanceStateFault) String() string {
  67130. return awsutil.Prettify(s)
  67131. }
  67132. // GoString returns the string representation
  67133. func (s SpotInstanceStateFault) GoString() string {
  67134. return s.String()
  67135. }
  67136. // SetCode sets the Code field's value.
  67137. func (s *SpotInstanceStateFault) SetCode(v string) *SpotInstanceStateFault {
  67138. s.Code = &v
  67139. return s
  67140. }
  67141. // SetMessage sets the Message field's value.
  67142. func (s *SpotInstanceStateFault) SetMessage(v string) *SpotInstanceStateFault {
  67143. s.Message = &v
  67144. return s
  67145. }
  67146. // Describes the status of a Spot Instance request.
  67147. type SpotInstanceStatus struct {
  67148. _ struct{} `type:"structure"`
  67149. // 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)
  67150. // in the Amazon EC2 User Guide for Linux Instances.
  67151. Code *string `locationName:"code" type:"string"`
  67152. // The description for the status code.
  67153. Message *string `locationName:"message" type:"string"`
  67154. // The date and time of the most recent status update, in UTC format (for example,
  67155. // YYYY-MM-DDTHH:MM:SSZ).
  67156. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp"`
  67157. }
  67158. // String returns the string representation
  67159. func (s SpotInstanceStatus) String() string {
  67160. return awsutil.Prettify(s)
  67161. }
  67162. // GoString returns the string representation
  67163. func (s SpotInstanceStatus) GoString() string {
  67164. return s.String()
  67165. }
  67166. // SetCode sets the Code field's value.
  67167. func (s *SpotInstanceStatus) SetCode(v string) *SpotInstanceStatus {
  67168. s.Code = &v
  67169. return s
  67170. }
  67171. // SetMessage sets the Message field's value.
  67172. func (s *SpotInstanceStatus) SetMessage(v string) *SpotInstanceStatus {
  67173. s.Message = &v
  67174. return s
  67175. }
  67176. // SetUpdateTime sets the UpdateTime field's value.
  67177. func (s *SpotInstanceStatus) SetUpdateTime(v time.Time) *SpotInstanceStatus {
  67178. s.UpdateTime = &v
  67179. return s
  67180. }
  67181. // The options for Spot Instances.
  67182. type SpotMarketOptions struct {
  67183. _ struct{} `type:"structure"`
  67184. // The required duration for the Spot Instances (also known as Spot blocks),
  67185. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  67186. // or 360).
  67187. BlockDurationMinutes *int64 `type:"integer"`
  67188. // The behavior when a Spot Instance is interrupted. The default is terminate.
  67189. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"`
  67190. // The maximum hourly price you're willing to pay for the Spot Instances. The
  67191. // default is the On-Demand price.
  67192. MaxPrice *string `type:"string"`
  67193. // The Spot Instance request type. For RunInstances, persistent Spot Instance
  67194. // requests are only supported when InstanceInterruptionBehavior is set to either
  67195. // hibernate or stop.
  67196. SpotInstanceType *string `type:"string" enum:"SpotInstanceType"`
  67197. // The end date of the request. For a one-time request, the request remains
  67198. // active until all instances launch, the request is canceled, or this date
  67199. // is reached. If the request is persistent, it remains active until it is canceled
  67200. // or this date and time is reached. The default end date is 7 days from the
  67201. // current date.
  67202. ValidUntil *time.Time `type:"timestamp"`
  67203. }
  67204. // String returns the string representation
  67205. func (s SpotMarketOptions) String() string {
  67206. return awsutil.Prettify(s)
  67207. }
  67208. // GoString returns the string representation
  67209. func (s SpotMarketOptions) GoString() string {
  67210. return s.String()
  67211. }
  67212. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  67213. func (s *SpotMarketOptions) SetBlockDurationMinutes(v int64) *SpotMarketOptions {
  67214. s.BlockDurationMinutes = &v
  67215. return s
  67216. }
  67217. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  67218. func (s *SpotMarketOptions) SetInstanceInterruptionBehavior(v string) *SpotMarketOptions {
  67219. s.InstanceInterruptionBehavior = &v
  67220. return s
  67221. }
  67222. // SetMaxPrice sets the MaxPrice field's value.
  67223. func (s *SpotMarketOptions) SetMaxPrice(v string) *SpotMarketOptions {
  67224. s.MaxPrice = &v
  67225. return s
  67226. }
  67227. // SetSpotInstanceType sets the SpotInstanceType field's value.
  67228. func (s *SpotMarketOptions) SetSpotInstanceType(v string) *SpotMarketOptions {
  67229. s.SpotInstanceType = &v
  67230. return s
  67231. }
  67232. // SetValidUntil sets the ValidUntil field's value.
  67233. func (s *SpotMarketOptions) SetValidUntil(v time.Time) *SpotMarketOptions {
  67234. s.ValidUntil = &v
  67235. return s
  67236. }
  67237. // Describes the configuration of Spot Instances in an EC2 Fleet.
  67238. type SpotOptions struct {
  67239. _ struct{} `type:"structure"`
  67240. // Indicates how to allocate the target capacity across the Spot pools specified
  67241. // by the Spot Fleet request. The default is lowest-price.
  67242. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"SpotAllocationStrategy"`
  67243. // The behavior when a Spot Instance is interrupted. The default is terminate.
  67244. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"SpotInstanceInterruptionBehavior"`
  67245. // The number of Spot pools across which to allocate your target Spot capacity.
  67246. // Valid only when AllocationStrategy is set to lowestPrice. EC2 Fleet selects
  67247. // the cheapest Spot pools and evenly allocates your target Spot capacity across
  67248. // the number of Spot pools that you specify.
  67249. InstancePoolsToUseCount *int64 `locationName:"instancePoolsToUseCount" type:"integer"`
  67250. // The minimum target capacity for Spot Instances in the fleet. If the minimum
  67251. // target capacity is not reached, the fleet launches no instances.
  67252. MinTargetCapacity *int64 `locationName:"minTargetCapacity" type:"integer"`
  67253. // Indicates that the fleet uses a single instance type to launch all Spot Instances
  67254. // in the fleet.
  67255. SingleInstanceType *bool `locationName:"singleInstanceType" type:"boolean"`
  67256. }
  67257. // String returns the string representation
  67258. func (s SpotOptions) String() string {
  67259. return awsutil.Prettify(s)
  67260. }
  67261. // GoString returns the string representation
  67262. func (s SpotOptions) GoString() string {
  67263. return s.String()
  67264. }
  67265. // SetAllocationStrategy sets the AllocationStrategy field's value.
  67266. func (s *SpotOptions) SetAllocationStrategy(v string) *SpotOptions {
  67267. s.AllocationStrategy = &v
  67268. return s
  67269. }
  67270. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  67271. func (s *SpotOptions) SetInstanceInterruptionBehavior(v string) *SpotOptions {
  67272. s.InstanceInterruptionBehavior = &v
  67273. return s
  67274. }
  67275. // SetInstancePoolsToUseCount sets the InstancePoolsToUseCount field's value.
  67276. func (s *SpotOptions) SetInstancePoolsToUseCount(v int64) *SpotOptions {
  67277. s.InstancePoolsToUseCount = &v
  67278. return s
  67279. }
  67280. // SetMinTargetCapacity sets the MinTargetCapacity field's value.
  67281. func (s *SpotOptions) SetMinTargetCapacity(v int64) *SpotOptions {
  67282. s.MinTargetCapacity = &v
  67283. return s
  67284. }
  67285. // SetSingleInstanceType sets the SingleInstanceType field's value.
  67286. func (s *SpotOptions) SetSingleInstanceType(v bool) *SpotOptions {
  67287. s.SingleInstanceType = &v
  67288. return s
  67289. }
  67290. // Describes the configuration of Spot Instances in an EC2 Fleet request.
  67291. type SpotOptionsRequest struct {
  67292. _ struct{} `type:"structure"`
  67293. // Indicates how to allocate the target capacity across the Spot pools specified
  67294. // by the Spot Fleet request. The default is lowestPrice.
  67295. AllocationStrategy *string `type:"string" enum:"SpotAllocationStrategy"`
  67296. // The behavior when a Spot Instance is interrupted. The default is terminate.
  67297. InstanceInterruptionBehavior *string `type:"string" enum:"SpotInstanceInterruptionBehavior"`
  67298. // The number of Spot pools across which to allocate your target Spot capacity.
  67299. // Valid only when Spot AllocationStrategy is set to lowest-price. EC2 Fleet
  67300. // selects the cheapest Spot pools and evenly allocates your target Spot capacity
  67301. // across the number of Spot pools that you specify.
  67302. InstancePoolsToUseCount *int64 `type:"integer"`
  67303. // The minimum target capacity for Spot Instances in the fleet. If the minimum
  67304. // target capacity is not reached, the fleet launches no instances.
  67305. MinTargetCapacity *int64 `type:"integer"`
  67306. // Indicates that the fleet uses a single instance type to launch all Spot Instances
  67307. // in the fleet.
  67308. SingleInstanceType *bool `type:"boolean"`
  67309. }
  67310. // String returns the string representation
  67311. func (s SpotOptionsRequest) String() string {
  67312. return awsutil.Prettify(s)
  67313. }
  67314. // GoString returns the string representation
  67315. func (s SpotOptionsRequest) GoString() string {
  67316. return s.String()
  67317. }
  67318. // SetAllocationStrategy sets the AllocationStrategy field's value.
  67319. func (s *SpotOptionsRequest) SetAllocationStrategy(v string) *SpotOptionsRequest {
  67320. s.AllocationStrategy = &v
  67321. return s
  67322. }
  67323. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  67324. func (s *SpotOptionsRequest) SetInstanceInterruptionBehavior(v string) *SpotOptionsRequest {
  67325. s.InstanceInterruptionBehavior = &v
  67326. return s
  67327. }
  67328. // SetInstancePoolsToUseCount sets the InstancePoolsToUseCount field's value.
  67329. func (s *SpotOptionsRequest) SetInstancePoolsToUseCount(v int64) *SpotOptionsRequest {
  67330. s.InstancePoolsToUseCount = &v
  67331. return s
  67332. }
  67333. // SetMinTargetCapacity sets the MinTargetCapacity field's value.
  67334. func (s *SpotOptionsRequest) SetMinTargetCapacity(v int64) *SpotOptionsRequest {
  67335. s.MinTargetCapacity = &v
  67336. return s
  67337. }
  67338. // SetSingleInstanceType sets the SingleInstanceType field's value.
  67339. func (s *SpotOptionsRequest) SetSingleInstanceType(v bool) *SpotOptionsRequest {
  67340. s.SingleInstanceType = &v
  67341. return s
  67342. }
  67343. // Describes Spot Instance placement.
  67344. type SpotPlacement struct {
  67345. _ struct{} `type:"structure"`
  67346. // The Availability Zone.
  67347. //
  67348. // [Spot Fleet only] To specify multiple Availability Zones, separate them using
  67349. // commas; for example, "us-west-2a, us-west-2b".
  67350. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  67351. // The name of the placement group.
  67352. GroupName *string `locationName:"groupName" type:"string"`
  67353. // The tenancy of the instance (if the instance is running in a VPC). An instance
  67354. // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
  67355. // is not supported for Spot Instances.
  67356. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  67357. }
  67358. // String returns the string representation
  67359. func (s SpotPlacement) String() string {
  67360. return awsutil.Prettify(s)
  67361. }
  67362. // GoString returns the string representation
  67363. func (s SpotPlacement) GoString() string {
  67364. return s.String()
  67365. }
  67366. // SetAvailabilityZone sets the AvailabilityZone field's value.
  67367. func (s *SpotPlacement) SetAvailabilityZone(v string) *SpotPlacement {
  67368. s.AvailabilityZone = &v
  67369. return s
  67370. }
  67371. // SetGroupName sets the GroupName field's value.
  67372. func (s *SpotPlacement) SetGroupName(v string) *SpotPlacement {
  67373. s.GroupName = &v
  67374. return s
  67375. }
  67376. // SetTenancy sets the Tenancy field's value.
  67377. func (s *SpotPlacement) SetTenancy(v string) *SpotPlacement {
  67378. s.Tenancy = &v
  67379. return s
  67380. }
  67381. // Describes the maximum price per hour that you are willing to pay for a Spot
  67382. // Instance.
  67383. type SpotPrice struct {
  67384. _ struct{} `type:"structure"`
  67385. // The Availability Zone.
  67386. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  67387. // The instance type.
  67388. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  67389. // A general description of the AMI.
  67390. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  67391. // The maximum price per hour that you are willing to pay for a Spot Instance.
  67392. SpotPrice *string `locationName:"spotPrice" type:"string"`
  67393. // The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  67394. Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
  67395. }
  67396. // String returns the string representation
  67397. func (s SpotPrice) String() string {
  67398. return awsutil.Prettify(s)
  67399. }
  67400. // GoString returns the string representation
  67401. func (s SpotPrice) GoString() string {
  67402. return s.String()
  67403. }
  67404. // SetAvailabilityZone sets the AvailabilityZone field's value.
  67405. func (s *SpotPrice) SetAvailabilityZone(v string) *SpotPrice {
  67406. s.AvailabilityZone = &v
  67407. return s
  67408. }
  67409. // SetInstanceType sets the InstanceType field's value.
  67410. func (s *SpotPrice) SetInstanceType(v string) *SpotPrice {
  67411. s.InstanceType = &v
  67412. return s
  67413. }
  67414. // SetProductDescription sets the ProductDescription field's value.
  67415. func (s *SpotPrice) SetProductDescription(v string) *SpotPrice {
  67416. s.ProductDescription = &v
  67417. return s
  67418. }
  67419. // SetSpotPrice sets the SpotPrice field's value.
  67420. func (s *SpotPrice) SetSpotPrice(v string) *SpotPrice {
  67421. s.SpotPrice = &v
  67422. return s
  67423. }
  67424. // SetTimestamp sets the Timestamp field's value.
  67425. func (s *SpotPrice) SetTimestamp(v time.Time) *SpotPrice {
  67426. s.Timestamp = &v
  67427. return s
  67428. }
  67429. // Describes a stale rule in a security group.
  67430. type StaleIpPermission struct {
  67431. _ struct{} `type:"structure"`
  67432. // The start of the port range for the TCP and UDP protocols, or an ICMP type
  67433. // number. A value of -1 indicates all ICMP types.
  67434. FromPort *int64 `locationName:"fromPort" type:"integer"`
  67435. // The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers)
  67436. // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml).
  67437. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  67438. // One or more IP ranges. Not applicable for stale security group rules.
  67439. IpRanges []*string `locationName:"ipRanges" locationNameList:"item" type:"list"`
  67440. // One or more prefix list IDs for an AWS service. Not applicable for stale
  67441. // security group rules.
  67442. PrefixListIds []*string `locationName:"prefixListIds" locationNameList:"item" type:"list"`
  67443. // The end of the port range for the TCP and UDP protocols, or an ICMP type
  67444. // number. A value of -1 indicates all ICMP types.
  67445. ToPort *int64 `locationName:"toPort" type:"integer"`
  67446. // One or more security group pairs. Returns the ID of the referenced security
  67447. // group and VPC, and the ID and status of the VPC peering connection.
  67448. UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
  67449. }
  67450. // String returns the string representation
  67451. func (s StaleIpPermission) String() string {
  67452. return awsutil.Prettify(s)
  67453. }
  67454. // GoString returns the string representation
  67455. func (s StaleIpPermission) GoString() string {
  67456. return s.String()
  67457. }
  67458. // SetFromPort sets the FromPort field's value.
  67459. func (s *StaleIpPermission) SetFromPort(v int64) *StaleIpPermission {
  67460. s.FromPort = &v
  67461. return s
  67462. }
  67463. // SetIpProtocol sets the IpProtocol field's value.
  67464. func (s *StaleIpPermission) SetIpProtocol(v string) *StaleIpPermission {
  67465. s.IpProtocol = &v
  67466. return s
  67467. }
  67468. // SetIpRanges sets the IpRanges field's value.
  67469. func (s *StaleIpPermission) SetIpRanges(v []*string) *StaleIpPermission {
  67470. s.IpRanges = v
  67471. return s
  67472. }
  67473. // SetPrefixListIds sets the PrefixListIds field's value.
  67474. func (s *StaleIpPermission) SetPrefixListIds(v []*string) *StaleIpPermission {
  67475. s.PrefixListIds = v
  67476. return s
  67477. }
  67478. // SetToPort sets the ToPort field's value.
  67479. func (s *StaleIpPermission) SetToPort(v int64) *StaleIpPermission {
  67480. s.ToPort = &v
  67481. return s
  67482. }
  67483. // SetUserIdGroupPairs sets the UserIdGroupPairs field's value.
  67484. func (s *StaleIpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *StaleIpPermission {
  67485. s.UserIdGroupPairs = v
  67486. return s
  67487. }
  67488. // Describes a stale security group (a security group that contains stale rules).
  67489. type StaleSecurityGroup struct {
  67490. _ struct{} `type:"structure"`
  67491. // The description of the security group.
  67492. Description *string `locationName:"description" type:"string"`
  67493. // The ID of the security group.
  67494. GroupId *string `locationName:"groupId" type:"string"`
  67495. // The name of the security group.
  67496. GroupName *string `locationName:"groupName" type:"string"`
  67497. // Information about the stale inbound rules in the security group.
  67498. StaleIpPermissions []*StaleIpPermission `locationName:"staleIpPermissions" locationNameList:"item" type:"list"`
  67499. // Information about the stale outbound rules in the security group.
  67500. StaleIpPermissionsEgress []*StaleIpPermission `locationName:"staleIpPermissionsEgress" locationNameList:"item" type:"list"`
  67501. // The ID of the VPC for the security group.
  67502. VpcId *string `locationName:"vpcId" type:"string"`
  67503. }
  67504. // String returns the string representation
  67505. func (s StaleSecurityGroup) String() string {
  67506. return awsutil.Prettify(s)
  67507. }
  67508. // GoString returns the string representation
  67509. func (s StaleSecurityGroup) GoString() string {
  67510. return s.String()
  67511. }
  67512. // SetDescription sets the Description field's value.
  67513. func (s *StaleSecurityGroup) SetDescription(v string) *StaleSecurityGroup {
  67514. s.Description = &v
  67515. return s
  67516. }
  67517. // SetGroupId sets the GroupId field's value.
  67518. func (s *StaleSecurityGroup) SetGroupId(v string) *StaleSecurityGroup {
  67519. s.GroupId = &v
  67520. return s
  67521. }
  67522. // SetGroupName sets the GroupName field's value.
  67523. func (s *StaleSecurityGroup) SetGroupName(v string) *StaleSecurityGroup {
  67524. s.GroupName = &v
  67525. return s
  67526. }
  67527. // SetStaleIpPermissions sets the StaleIpPermissions field's value.
  67528. func (s *StaleSecurityGroup) SetStaleIpPermissions(v []*StaleIpPermission) *StaleSecurityGroup {
  67529. s.StaleIpPermissions = v
  67530. return s
  67531. }
  67532. // SetStaleIpPermissionsEgress sets the StaleIpPermissionsEgress field's value.
  67533. func (s *StaleSecurityGroup) SetStaleIpPermissionsEgress(v []*StaleIpPermission) *StaleSecurityGroup {
  67534. s.StaleIpPermissionsEgress = v
  67535. return s
  67536. }
  67537. // SetVpcId sets the VpcId field's value.
  67538. func (s *StaleSecurityGroup) SetVpcId(v string) *StaleSecurityGroup {
  67539. s.VpcId = &v
  67540. return s
  67541. }
  67542. type StartInstancesInput struct {
  67543. _ struct{} `type:"structure"`
  67544. // Reserved.
  67545. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  67546. // Checks whether you have the required permissions for the action, without
  67547. // actually making the request, and provides an error response. If you have
  67548. // the required permissions, the error response is DryRunOperation. Otherwise,
  67549. // it is UnauthorizedOperation.
  67550. DryRun *bool `locationName:"dryRun" type:"boolean"`
  67551. // One or more instance IDs.
  67552. //
  67553. // InstanceIds is a required field
  67554. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  67555. }
  67556. // String returns the string representation
  67557. func (s StartInstancesInput) String() string {
  67558. return awsutil.Prettify(s)
  67559. }
  67560. // GoString returns the string representation
  67561. func (s StartInstancesInput) GoString() string {
  67562. return s.String()
  67563. }
  67564. // Validate inspects the fields of the type to determine if they are valid.
  67565. func (s *StartInstancesInput) Validate() error {
  67566. invalidParams := request.ErrInvalidParams{Context: "StartInstancesInput"}
  67567. if s.InstanceIds == nil {
  67568. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  67569. }
  67570. if invalidParams.Len() > 0 {
  67571. return invalidParams
  67572. }
  67573. return nil
  67574. }
  67575. // SetAdditionalInfo sets the AdditionalInfo field's value.
  67576. func (s *StartInstancesInput) SetAdditionalInfo(v string) *StartInstancesInput {
  67577. s.AdditionalInfo = &v
  67578. return s
  67579. }
  67580. // SetDryRun sets the DryRun field's value.
  67581. func (s *StartInstancesInput) SetDryRun(v bool) *StartInstancesInput {
  67582. s.DryRun = &v
  67583. return s
  67584. }
  67585. // SetInstanceIds sets the InstanceIds field's value.
  67586. func (s *StartInstancesInput) SetInstanceIds(v []*string) *StartInstancesInput {
  67587. s.InstanceIds = v
  67588. return s
  67589. }
  67590. type StartInstancesOutput struct {
  67591. _ struct{} `type:"structure"`
  67592. // Information about one or more started instances.
  67593. StartingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  67594. }
  67595. // String returns the string representation
  67596. func (s StartInstancesOutput) String() string {
  67597. return awsutil.Prettify(s)
  67598. }
  67599. // GoString returns the string representation
  67600. func (s StartInstancesOutput) GoString() string {
  67601. return s.String()
  67602. }
  67603. // SetStartingInstances sets the StartingInstances field's value.
  67604. func (s *StartInstancesOutput) SetStartingInstances(v []*InstanceStateChange) *StartInstancesOutput {
  67605. s.StartingInstances = v
  67606. return s
  67607. }
  67608. // Describes a state change.
  67609. type StateReason struct {
  67610. _ struct{} `type:"structure"`
  67611. // The reason code for the state change.
  67612. Code *string `locationName:"code" type:"string"`
  67613. // The message for the state change.
  67614. //
  67615. // * Server.InsufficientInstanceCapacity: There was insufficient capacity
  67616. // available to satisfy the launch request.
  67617. //
  67618. // * Server.InternalError: An internal error caused the instance to terminate
  67619. // during launch.
  67620. //
  67621. // * Server.ScheduledStop: The instance was stopped due to a scheduled retirement.
  67622. //
  67623. // * Server.SpotInstanceShutdown: The instance was stopped because the number
  67624. // of Spot requests with a maximum price equal to or higher than the Spot
  67625. // price exceeded available capacity or because of an increase in the Spot
  67626. // price.
  67627. //
  67628. // * Server.SpotInstanceTermination: The instance was terminated because
  67629. // the number of Spot requests with a maximum price equal to or higher than
  67630. // the Spot price exceeded available capacity or because of an increase in
  67631. // the Spot price.
  67632. //
  67633. // * Client.InstanceInitiatedShutdown: The instance was shut down using the
  67634. // shutdown -h command from the instance.
  67635. //
  67636. // * Client.InstanceTerminated: The instance was terminated or rebooted during
  67637. // AMI creation.
  67638. //
  67639. // * Client.InternalError: A client error caused the instance to terminate
  67640. // during launch.
  67641. //
  67642. // * Client.InvalidSnapshot.NotFound: The specified snapshot was not found.
  67643. //
  67644. // * Client.UserInitiatedHibernate: Hibernation was initiated on the instance.
  67645. //
  67646. // * Client.UserInitiatedShutdown: The instance was shut down using the Amazon
  67647. // EC2 API.
  67648. //
  67649. // * Client.VolumeLimitExceeded: The limit on the number of EBS volumes or
  67650. // total storage was exceeded. Decrease usage or request an increase in your
  67651. // account limits.
  67652. Message *string `locationName:"message" type:"string"`
  67653. }
  67654. // String returns the string representation
  67655. func (s StateReason) String() string {
  67656. return awsutil.Prettify(s)
  67657. }
  67658. // GoString returns the string representation
  67659. func (s StateReason) GoString() string {
  67660. return s.String()
  67661. }
  67662. // SetCode sets the Code field's value.
  67663. func (s *StateReason) SetCode(v string) *StateReason {
  67664. s.Code = &v
  67665. return s
  67666. }
  67667. // SetMessage sets the Message field's value.
  67668. func (s *StateReason) SetMessage(v string) *StateReason {
  67669. s.Message = &v
  67670. return s
  67671. }
  67672. type StopInstancesInput struct {
  67673. _ struct{} `type:"structure"`
  67674. // Checks whether you have the required permissions for the action, without
  67675. // actually making the request, and provides an error response. If you have
  67676. // the required permissions, the error response is DryRunOperation. Otherwise,
  67677. // it is UnauthorizedOperation.
  67678. DryRun *bool `locationName:"dryRun" type:"boolean"`
  67679. // Forces the instances to stop. The instances do not have an opportunity to
  67680. // flush file system caches or file system metadata. If you use this option,
  67681. // you must perform file system check and repair procedures. This option is
  67682. // not recommended for Windows instances.
  67683. //
  67684. // Default: false
  67685. Force *bool `locationName:"force" type:"boolean"`
  67686. // Hibernates the instance if the instance was enabled for hibernation at launch.
  67687. // If the instance cannot hibernate successfully, a normal shutdown occurs.
  67688. // For more information, see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  67689. // in the Amazon Elastic Compute Cloud User Guide.
  67690. //
  67691. // Default: false
  67692. Hibernate *bool `type:"boolean"`
  67693. // One or more instance IDs.
  67694. //
  67695. // InstanceIds is a required field
  67696. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  67697. }
  67698. // String returns the string representation
  67699. func (s StopInstancesInput) String() string {
  67700. return awsutil.Prettify(s)
  67701. }
  67702. // GoString returns the string representation
  67703. func (s StopInstancesInput) GoString() string {
  67704. return s.String()
  67705. }
  67706. // Validate inspects the fields of the type to determine if they are valid.
  67707. func (s *StopInstancesInput) Validate() error {
  67708. invalidParams := request.ErrInvalidParams{Context: "StopInstancesInput"}
  67709. if s.InstanceIds == nil {
  67710. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  67711. }
  67712. if invalidParams.Len() > 0 {
  67713. return invalidParams
  67714. }
  67715. return nil
  67716. }
  67717. // SetDryRun sets the DryRun field's value.
  67718. func (s *StopInstancesInput) SetDryRun(v bool) *StopInstancesInput {
  67719. s.DryRun = &v
  67720. return s
  67721. }
  67722. // SetForce sets the Force field's value.
  67723. func (s *StopInstancesInput) SetForce(v bool) *StopInstancesInput {
  67724. s.Force = &v
  67725. return s
  67726. }
  67727. // SetHibernate sets the Hibernate field's value.
  67728. func (s *StopInstancesInput) SetHibernate(v bool) *StopInstancesInput {
  67729. s.Hibernate = &v
  67730. return s
  67731. }
  67732. // SetInstanceIds sets the InstanceIds field's value.
  67733. func (s *StopInstancesInput) SetInstanceIds(v []*string) *StopInstancesInput {
  67734. s.InstanceIds = v
  67735. return s
  67736. }
  67737. type StopInstancesOutput struct {
  67738. _ struct{} `type:"structure"`
  67739. // Information about one or more stopped instances.
  67740. StoppingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  67741. }
  67742. // String returns the string representation
  67743. func (s StopInstancesOutput) String() string {
  67744. return awsutil.Prettify(s)
  67745. }
  67746. // GoString returns the string representation
  67747. func (s StopInstancesOutput) GoString() string {
  67748. return s.String()
  67749. }
  67750. // SetStoppingInstances sets the StoppingInstances field's value.
  67751. func (s *StopInstancesOutput) SetStoppingInstances(v []*InstanceStateChange) *StopInstancesOutput {
  67752. s.StoppingInstances = v
  67753. return s
  67754. }
  67755. // Describes the storage location for an instance store-backed AMI.
  67756. type Storage struct {
  67757. _ struct{} `type:"structure"`
  67758. // An Amazon S3 storage location.
  67759. S3 *S3Storage `type:"structure"`
  67760. }
  67761. // String returns the string representation
  67762. func (s Storage) String() string {
  67763. return awsutil.Prettify(s)
  67764. }
  67765. // GoString returns the string representation
  67766. func (s Storage) GoString() string {
  67767. return s.String()
  67768. }
  67769. // SetS3 sets the S3 field's value.
  67770. func (s *Storage) SetS3(v *S3Storage) *Storage {
  67771. s.S3 = v
  67772. return s
  67773. }
  67774. // Describes a storage location in Amazon S3.
  67775. type StorageLocation struct {
  67776. _ struct{} `type:"structure"`
  67777. // The name of the S3 bucket.
  67778. Bucket *string `type:"string"`
  67779. // The key.
  67780. Key *string `type:"string"`
  67781. }
  67782. // String returns the string representation
  67783. func (s StorageLocation) String() string {
  67784. return awsutil.Prettify(s)
  67785. }
  67786. // GoString returns the string representation
  67787. func (s StorageLocation) GoString() string {
  67788. return s.String()
  67789. }
  67790. // SetBucket sets the Bucket field's value.
  67791. func (s *StorageLocation) SetBucket(v string) *StorageLocation {
  67792. s.Bucket = &v
  67793. return s
  67794. }
  67795. // SetKey sets the Key field's value.
  67796. func (s *StorageLocation) SetKey(v string) *StorageLocation {
  67797. s.Key = &v
  67798. return s
  67799. }
  67800. // Describes a subnet.
  67801. type Subnet struct {
  67802. _ struct{} `type:"structure"`
  67803. // Indicates whether a network interface created in this subnet (including a
  67804. // network interface created by RunInstances) receives an IPv6 address.
  67805. AssignIpv6AddressOnCreation *bool `locationName:"assignIpv6AddressOnCreation" type:"boolean"`
  67806. // The Availability Zone of the subnet.
  67807. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  67808. // The AZ ID of the subnet.
  67809. AvailabilityZoneId *string `locationName:"availabilityZoneId" type:"string"`
  67810. // The number of unused private IPv4 addresses in the subnet. The IPv4 addresses
  67811. // for any stopped instances are considered unavailable.
  67812. AvailableIpAddressCount *int64 `locationName:"availableIpAddressCount" type:"integer"`
  67813. // The IPv4 CIDR block assigned to the subnet.
  67814. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  67815. // Indicates whether this is the default subnet for the Availability Zone.
  67816. DefaultForAz *bool `locationName:"defaultForAz" type:"boolean"`
  67817. // Information about the IPv6 CIDR blocks associated with the subnet.
  67818. Ipv6CidrBlockAssociationSet []*SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"`
  67819. // Indicates whether instances launched in this subnet receive a public IPv4
  67820. // address.
  67821. MapPublicIpOnLaunch *bool `locationName:"mapPublicIpOnLaunch" type:"boolean"`
  67822. // The ID of the AWS account that owns the subnet.
  67823. OwnerId *string `locationName:"ownerId" type:"string"`
  67824. // The current state of the subnet.
  67825. State *string `locationName:"state" type:"string" enum:"SubnetState"`
  67826. // The Amazon Resource Name (ARN) of the subnet.
  67827. SubnetArn *string `locationName:"subnetArn" type:"string"`
  67828. // The ID of the subnet.
  67829. SubnetId *string `locationName:"subnetId" type:"string"`
  67830. // Any tags assigned to the subnet.
  67831. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  67832. // The ID of the VPC the subnet is in.
  67833. VpcId *string `locationName:"vpcId" type:"string"`
  67834. }
  67835. // String returns the string representation
  67836. func (s Subnet) String() string {
  67837. return awsutil.Prettify(s)
  67838. }
  67839. // GoString returns the string representation
  67840. func (s Subnet) GoString() string {
  67841. return s.String()
  67842. }
  67843. // SetAssignIpv6AddressOnCreation sets the AssignIpv6AddressOnCreation field's value.
  67844. func (s *Subnet) SetAssignIpv6AddressOnCreation(v bool) *Subnet {
  67845. s.AssignIpv6AddressOnCreation = &v
  67846. return s
  67847. }
  67848. // SetAvailabilityZone sets the AvailabilityZone field's value.
  67849. func (s *Subnet) SetAvailabilityZone(v string) *Subnet {
  67850. s.AvailabilityZone = &v
  67851. return s
  67852. }
  67853. // SetAvailabilityZoneId sets the AvailabilityZoneId field's value.
  67854. func (s *Subnet) SetAvailabilityZoneId(v string) *Subnet {
  67855. s.AvailabilityZoneId = &v
  67856. return s
  67857. }
  67858. // SetAvailableIpAddressCount sets the AvailableIpAddressCount field's value.
  67859. func (s *Subnet) SetAvailableIpAddressCount(v int64) *Subnet {
  67860. s.AvailableIpAddressCount = &v
  67861. return s
  67862. }
  67863. // SetCidrBlock sets the CidrBlock field's value.
  67864. func (s *Subnet) SetCidrBlock(v string) *Subnet {
  67865. s.CidrBlock = &v
  67866. return s
  67867. }
  67868. // SetDefaultForAz sets the DefaultForAz field's value.
  67869. func (s *Subnet) SetDefaultForAz(v bool) *Subnet {
  67870. s.DefaultForAz = &v
  67871. return s
  67872. }
  67873. // SetIpv6CidrBlockAssociationSet sets the Ipv6CidrBlockAssociationSet field's value.
  67874. func (s *Subnet) SetIpv6CidrBlockAssociationSet(v []*SubnetIpv6CidrBlockAssociation) *Subnet {
  67875. s.Ipv6CidrBlockAssociationSet = v
  67876. return s
  67877. }
  67878. // SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value.
  67879. func (s *Subnet) SetMapPublicIpOnLaunch(v bool) *Subnet {
  67880. s.MapPublicIpOnLaunch = &v
  67881. return s
  67882. }
  67883. // SetOwnerId sets the OwnerId field's value.
  67884. func (s *Subnet) SetOwnerId(v string) *Subnet {
  67885. s.OwnerId = &v
  67886. return s
  67887. }
  67888. // SetState sets the State field's value.
  67889. func (s *Subnet) SetState(v string) *Subnet {
  67890. s.State = &v
  67891. return s
  67892. }
  67893. // SetSubnetArn sets the SubnetArn field's value.
  67894. func (s *Subnet) SetSubnetArn(v string) *Subnet {
  67895. s.SubnetArn = &v
  67896. return s
  67897. }
  67898. // SetSubnetId sets the SubnetId field's value.
  67899. func (s *Subnet) SetSubnetId(v string) *Subnet {
  67900. s.SubnetId = &v
  67901. return s
  67902. }
  67903. // SetTags sets the Tags field's value.
  67904. func (s *Subnet) SetTags(v []*Tag) *Subnet {
  67905. s.Tags = v
  67906. return s
  67907. }
  67908. // SetVpcId sets the VpcId field's value.
  67909. func (s *Subnet) SetVpcId(v string) *Subnet {
  67910. s.VpcId = &v
  67911. return s
  67912. }
  67913. // Describes the state of a CIDR block.
  67914. type SubnetCidrBlockState struct {
  67915. _ struct{} `type:"structure"`
  67916. // The state of a CIDR block.
  67917. State *string `locationName:"state" type:"string" enum:"SubnetCidrBlockStateCode"`
  67918. // A message about the status of the CIDR block, if applicable.
  67919. StatusMessage *string `locationName:"statusMessage" type:"string"`
  67920. }
  67921. // String returns the string representation
  67922. func (s SubnetCidrBlockState) String() string {
  67923. return awsutil.Prettify(s)
  67924. }
  67925. // GoString returns the string representation
  67926. func (s SubnetCidrBlockState) GoString() string {
  67927. return s.String()
  67928. }
  67929. // SetState sets the State field's value.
  67930. func (s *SubnetCidrBlockState) SetState(v string) *SubnetCidrBlockState {
  67931. s.State = &v
  67932. return s
  67933. }
  67934. // SetStatusMessage sets the StatusMessage field's value.
  67935. func (s *SubnetCidrBlockState) SetStatusMessage(v string) *SubnetCidrBlockState {
  67936. s.StatusMessage = &v
  67937. return s
  67938. }
  67939. // Describes an IPv6 CIDR block associated with a subnet.
  67940. type SubnetIpv6CidrBlockAssociation struct {
  67941. _ struct{} `type:"structure"`
  67942. // The association ID for the CIDR block.
  67943. AssociationId *string `locationName:"associationId" type:"string"`
  67944. // The IPv6 CIDR block.
  67945. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  67946. // Information about the state of the CIDR block.
  67947. Ipv6CidrBlockState *SubnetCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"`
  67948. }
  67949. // String returns the string representation
  67950. func (s SubnetIpv6CidrBlockAssociation) String() string {
  67951. return awsutil.Prettify(s)
  67952. }
  67953. // GoString returns the string representation
  67954. func (s SubnetIpv6CidrBlockAssociation) GoString() string {
  67955. return s.String()
  67956. }
  67957. // SetAssociationId sets the AssociationId field's value.
  67958. func (s *SubnetIpv6CidrBlockAssociation) SetAssociationId(v string) *SubnetIpv6CidrBlockAssociation {
  67959. s.AssociationId = &v
  67960. return s
  67961. }
  67962. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  67963. func (s *SubnetIpv6CidrBlockAssociation) SetIpv6CidrBlock(v string) *SubnetIpv6CidrBlockAssociation {
  67964. s.Ipv6CidrBlock = &v
  67965. return s
  67966. }
  67967. // SetIpv6CidrBlockState sets the Ipv6CidrBlockState field's value.
  67968. func (s *SubnetIpv6CidrBlockAssociation) SetIpv6CidrBlockState(v *SubnetCidrBlockState) *SubnetIpv6CidrBlockAssociation {
  67969. s.Ipv6CidrBlockState = v
  67970. return s
  67971. }
  67972. // Describes the T2 or T3 instance whose credit option for CPU usage was successfully
  67973. // modified.
  67974. type SuccessfulInstanceCreditSpecificationItem struct {
  67975. _ struct{} `type:"structure"`
  67976. // The ID of the instance.
  67977. InstanceId *string `locationName:"instanceId" type:"string"`
  67978. }
  67979. // String returns the string representation
  67980. func (s SuccessfulInstanceCreditSpecificationItem) String() string {
  67981. return awsutil.Prettify(s)
  67982. }
  67983. // GoString returns the string representation
  67984. func (s SuccessfulInstanceCreditSpecificationItem) GoString() string {
  67985. return s.String()
  67986. }
  67987. // SetInstanceId sets the InstanceId field's value.
  67988. func (s *SuccessfulInstanceCreditSpecificationItem) SetInstanceId(v string) *SuccessfulInstanceCreditSpecificationItem {
  67989. s.InstanceId = &v
  67990. return s
  67991. }
  67992. // Describes a tag.
  67993. type Tag struct {
  67994. _ struct{} `type:"structure"`
  67995. // The key of the tag.
  67996. //
  67997. // Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode
  67998. // characters. May not begin with aws:.
  67999. Key *string `locationName:"key" type:"string"`
  68000. // The value of the tag.
  68001. //
  68002. // Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode
  68003. // characters.
  68004. Value *string `locationName:"value" type:"string"`
  68005. }
  68006. // String returns the string representation
  68007. func (s Tag) String() string {
  68008. return awsutil.Prettify(s)
  68009. }
  68010. // GoString returns the string representation
  68011. func (s Tag) GoString() string {
  68012. return s.String()
  68013. }
  68014. // SetKey sets the Key field's value.
  68015. func (s *Tag) SetKey(v string) *Tag {
  68016. s.Key = &v
  68017. return s
  68018. }
  68019. // SetValue sets the Value field's value.
  68020. func (s *Tag) SetValue(v string) *Tag {
  68021. s.Value = &v
  68022. return s
  68023. }
  68024. // Describes a tag.
  68025. type TagDescription struct {
  68026. _ struct{} `type:"structure"`
  68027. // The tag key.
  68028. Key *string `locationName:"key" type:"string"`
  68029. // The ID of the resource.
  68030. ResourceId *string `locationName:"resourceId" type:"string"`
  68031. // The resource type.
  68032. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  68033. // The tag value.
  68034. Value *string `locationName:"value" type:"string"`
  68035. }
  68036. // String returns the string representation
  68037. func (s TagDescription) String() string {
  68038. return awsutil.Prettify(s)
  68039. }
  68040. // GoString returns the string representation
  68041. func (s TagDescription) GoString() string {
  68042. return s.String()
  68043. }
  68044. // SetKey sets the Key field's value.
  68045. func (s *TagDescription) SetKey(v string) *TagDescription {
  68046. s.Key = &v
  68047. return s
  68048. }
  68049. // SetResourceId sets the ResourceId field's value.
  68050. func (s *TagDescription) SetResourceId(v string) *TagDescription {
  68051. s.ResourceId = &v
  68052. return s
  68053. }
  68054. // SetResourceType sets the ResourceType field's value.
  68055. func (s *TagDescription) SetResourceType(v string) *TagDescription {
  68056. s.ResourceType = &v
  68057. return s
  68058. }
  68059. // SetValue sets the Value field's value.
  68060. func (s *TagDescription) SetValue(v string) *TagDescription {
  68061. s.Value = &v
  68062. return s
  68063. }
  68064. // The tags to apply to a resource when the resource is being created.
  68065. type TagSpecification struct {
  68066. _ struct{} `type:"structure"`
  68067. // The type of resource to tag. Currently, the resource types that support tagging
  68068. // on creation are fleet, dedicated-host, instance, snapshot, and volume. To
  68069. // tag a resource after it has been created, see CreateTags.
  68070. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  68071. // The tags to apply to the resource.
  68072. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list"`
  68073. }
  68074. // String returns the string representation
  68075. func (s TagSpecification) String() string {
  68076. return awsutil.Prettify(s)
  68077. }
  68078. // GoString returns the string representation
  68079. func (s TagSpecification) GoString() string {
  68080. return s.String()
  68081. }
  68082. // SetResourceType sets the ResourceType field's value.
  68083. func (s *TagSpecification) SetResourceType(v string) *TagSpecification {
  68084. s.ResourceType = &v
  68085. return s
  68086. }
  68087. // SetTags sets the Tags field's value.
  68088. func (s *TagSpecification) SetTags(v []*Tag) *TagSpecification {
  68089. s.Tags = v
  68090. return s
  68091. }
  68092. // The number of units to request. You can choose to set the target capacity
  68093. // in terms of instances or a performance characteristic that is important to
  68094. // your application workload, such as vCPUs, memory, or I/O. If the request
  68095. // type is maintain, you can specify a target capacity of 0 and add capacity
  68096. // later.
  68097. type TargetCapacitySpecification struct {
  68098. _ struct{} `type:"structure"`
  68099. // The default TotalTargetCapacity, which is either Spot or On-Demand.
  68100. DefaultTargetCapacityType *string `locationName:"defaultTargetCapacityType" type:"string" enum:"DefaultTargetCapacityType"`
  68101. // The number of On-Demand units to request.
  68102. OnDemandTargetCapacity *int64 `locationName:"onDemandTargetCapacity" type:"integer"`
  68103. // The maximum number of Spot units to launch.
  68104. SpotTargetCapacity *int64 `locationName:"spotTargetCapacity" type:"integer"`
  68105. // The number of units to request, filled using DefaultTargetCapacityType.
  68106. TotalTargetCapacity *int64 `locationName:"totalTargetCapacity" type:"integer"`
  68107. }
  68108. // String returns the string representation
  68109. func (s TargetCapacitySpecification) String() string {
  68110. return awsutil.Prettify(s)
  68111. }
  68112. // GoString returns the string representation
  68113. func (s TargetCapacitySpecification) GoString() string {
  68114. return s.String()
  68115. }
  68116. // SetDefaultTargetCapacityType sets the DefaultTargetCapacityType field's value.
  68117. func (s *TargetCapacitySpecification) SetDefaultTargetCapacityType(v string) *TargetCapacitySpecification {
  68118. s.DefaultTargetCapacityType = &v
  68119. return s
  68120. }
  68121. // SetOnDemandTargetCapacity sets the OnDemandTargetCapacity field's value.
  68122. func (s *TargetCapacitySpecification) SetOnDemandTargetCapacity(v int64) *TargetCapacitySpecification {
  68123. s.OnDemandTargetCapacity = &v
  68124. return s
  68125. }
  68126. // SetSpotTargetCapacity sets the SpotTargetCapacity field's value.
  68127. func (s *TargetCapacitySpecification) SetSpotTargetCapacity(v int64) *TargetCapacitySpecification {
  68128. s.SpotTargetCapacity = &v
  68129. return s
  68130. }
  68131. // SetTotalTargetCapacity sets the TotalTargetCapacity field's value.
  68132. func (s *TargetCapacitySpecification) SetTotalTargetCapacity(v int64) *TargetCapacitySpecification {
  68133. s.TotalTargetCapacity = &v
  68134. return s
  68135. }
  68136. // The number of units to request. You can choose to set the target capacity
  68137. // in terms of instances or a performance characteristic that is important to
  68138. // your application workload, such as vCPUs, memory, or I/O. If the request
  68139. // type is maintain, you can specify a target capacity of 0 and add capacity
  68140. // later.
  68141. type TargetCapacitySpecificationRequest struct {
  68142. _ struct{} `type:"structure"`
  68143. // The default TotalTargetCapacity, which is either Spot or On-Demand.
  68144. DefaultTargetCapacityType *string `type:"string" enum:"DefaultTargetCapacityType"`
  68145. // The number of On-Demand units to request.
  68146. OnDemandTargetCapacity *int64 `type:"integer"`
  68147. // The number of Spot units to request.
  68148. SpotTargetCapacity *int64 `type:"integer"`
  68149. // The number of units to request, filled using DefaultTargetCapacityType.
  68150. //
  68151. // TotalTargetCapacity is a required field
  68152. TotalTargetCapacity *int64 `type:"integer" required:"true"`
  68153. }
  68154. // String returns the string representation
  68155. func (s TargetCapacitySpecificationRequest) String() string {
  68156. return awsutil.Prettify(s)
  68157. }
  68158. // GoString returns the string representation
  68159. func (s TargetCapacitySpecificationRequest) GoString() string {
  68160. return s.String()
  68161. }
  68162. // Validate inspects the fields of the type to determine if they are valid.
  68163. func (s *TargetCapacitySpecificationRequest) Validate() error {
  68164. invalidParams := request.ErrInvalidParams{Context: "TargetCapacitySpecificationRequest"}
  68165. if s.TotalTargetCapacity == nil {
  68166. invalidParams.Add(request.NewErrParamRequired("TotalTargetCapacity"))
  68167. }
  68168. if invalidParams.Len() > 0 {
  68169. return invalidParams
  68170. }
  68171. return nil
  68172. }
  68173. // SetDefaultTargetCapacityType sets the DefaultTargetCapacityType field's value.
  68174. func (s *TargetCapacitySpecificationRequest) SetDefaultTargetCapacityType(v string) *TargetCapacitySpecificationRequest {
  68175. s.DefaultTargetCapacityType = &v
  68176. return s
  68177. }
  68178. // SetOnDemandTargetCapacity sets the OnDemandTargetCapacity field's value.
  68179. func (s *TargetCapacitySpecificationRequest) SetOnDemandTargetCapacity(v int64) *TargetCapacitySpecificationRequest {
  68180. s.OnDemandTargetCapacity = &v
  68181. return s
  68182. }
  68183. // SetSpotTargetCapacity sets the SpotTargetCapacity field's value.
  68184. func (s *TargetCapacitySpecificationRequest) SetSpotTargetCapacity(v int64) *TargetCapacitySpecificationRequest {
  68185. s.SpotTargetCapacity = &v
  68186. return s
  68187. }
  68188. // SetTotalTargetCapacity sets the TotalTargetCapacity field's value.
  68189. func (s *TargetCapacitySpecificationRequest) SetTotalTargetCapacity(v int64) *TargetCapacitySpecificationRequest {
  68190. s.TotalTargetCapacity = &v
  68191. return s
  68192. }
  68193. // Information about the Convertible Reserved Instance offering.
  68194. type TargetConfiguration struct {
  68195. _ struct{} `type:"structure"`
  68196. // The number of instances the Convertible Reserved Instance offering can be
  68197. // applied to. This parameter is reserved and cannot be specified in a request
  68198. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  68199. // The ID of the Convertible Reserved Instance offering.
  68200. OfferingId *string `locationName:"offeringId" type:"string"`
  68201. }
  68202. // String returns the string representation
  68203. func (s TargetConfiguration) String() string {
  68204. return awsutil.Prettify(s)
  68205. }
  68206. // GoString returns the string representation
  68207. func (s TargetConfiguration) GoString() string {
  68208. return s.String()
  68209. }
  68210. // SetInstanceCount sets the InstanceCount field's value.
  68211. func (s *TargetConfiguration) SetInstanceCount(v int64) *TargetConfiguration {
  68212. s.InstanceCount = &v
  68213. return s
  68214. }
  68215. // SetOfferingId sets the OfferingId field's value.
  68216. func (s *TargetConfiguration) SetOfferingId(v string) *TargetConfiguration {
  68217. s.OfferingId = &v
  68218. return s
  68219. }
  68220. // Details about the target configuration.
  68221. type TargetConfigurationRequest struct {
  68222. _ struct{} `type:"structure"`
  68223. // The number of instances the Covertible Reserved Instance offering can be
  68224. // applied to. This parameter is reserved and cannot be specified in a request
  68225. InstanceCount *int64 `type:"integer"`
  68226. // The Convertible Reserved Instance offering ID.
  68227. //
  68228. // OfferingId is a required field
  68229. OfferingId *string `type:"string" required:"true"`
  68230. }
  68231. // String returns the string representation
  68232. func (s TargetConfigurationRequest) String() string {
  68233. return awsutil.Prettify(s)
  68234. }
  68235. // GoString returns the string representation
  68236. func (s TargetConfigurationRequest) GoString() string {
  68237. return s.String()
  68238. }
  68239. // Validate inspects the fields of the type to determine if they are valid.
  68240. func (s *TargetConfigurationRequest) Validate() error {
  68241. invalidParams := request.ErrInvalidParams{Context: "TargetConfigurationRequest"}
  68242. if s.OfferingId == nil {
  68243. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  68244. }
  68245. if invalidParams.Len() > 0 {
  68246. return invalidParams
  68247. }
  68248. return nil
  68249. }
  68250. // SetInstanceCount sets the InstanceCount field's value.
  68251. func (s *TargetConfigurationRequest) SetInstanceCount(v int64) *TargetConfigurationRequest {
  68252. s.InstanceCount = &v
  68253. return s
  68254. }
  68255. // SetOfferingId sets the OfferingId field's value.
  68256. func (s *TargetConfigurationRequest) SetOfferingId(v string) *TargetConfigurationRequest {
  68257. s.OfferingId = &v
  68258. return s
  68259. }
  68260. // Describes a load balancer target group.
  68261. type TargetGroup struct {
  68262. _ struct{} `type:"structure"`
  68263. // The Amazon Resource Name (ARN) of the target group.
  68264. Arn *string `locationName:"arn" type:"string"`
  68265. }
  68266. // String returns the string representation
  68267. func (s TargetGroup) String() string {
  68268. return awsutil.Prettify(s)
  68269. }
  68270. // GoString returns the string representation
  68271. func (s TargetGroup) GoString() string {
  68272. return s.String()
  68273. }
  68274. // SetArn sets the Arn field's value.
  68275. func (s *TargetGroup) SetArn(v string) *TargetGroup {
  68276. s.Arn = &v
  68277. return s
  68278. }
  68279. // Describes the target groups to attach to a Spot Fleet. Spot Fleet registers
  68280. // the running Spot Instances with these target groups.
  68281. type TargetGroupsConfig struct {
  68282. _ struct{} `type:"structure"`
  68283. // One or more target groups.
  68284. TargetGroups []*TargetGroup `locationName:"targetGroups" locationNameList:"item" min:"1" type:"list"`
  68285. }
  68286. // String returns the string representation
  68287. func (s TargetGroupsConfig) String() string {
  68288. return awsutil.Prettify(s)
  68289. }
  68290. // GoString returns the string representation
  68291. func (s TargetGroupsConfig) GoString() string {
  68292. return s.String()
  68293. }
  68294. // Validate inspects the fields of the type to determine if they are valid.
  68295. func (s *TargetGroupsConfig) Validate() error {
  68296. invalidParams := request.ErrInvalidParams{Context: "TargetGroupsConfig"}
  68297. if s.TargetGroups != nil && len(s.TargetGroups) < 1 {
  68298. invalidParams.Add(request.NewErrParamMinLen("TargetGroups", 1))
  68299. }
  68300. if invalidParams.Len() > 0 {
  68301. return invalidParams
  68302. }
  68303. return nil
  68304. }
  68305. // SetTargetGroups sets the TargetGroups field's value.
  68306. func (s *TargetGroupsConfig) SetTargetGroups(v []*TargetGroup) *TargetGroupsConfig {
  68307. s.TargetGroups = v
  68308. return s
  68309. }
  68310. // Describes a target network associated with a Client VPN endpoint.
  68311. type TargetNetwork struct {
  68312. _ struct{} `type:"structure"`
  68313. // The ID of the association.
  68314. AssociationId *string `locationName:"associationId" type:"string"`
  68315. // The ID of the Client VPN endpoint with which the target network is associated.
  68316. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  68317. // The IDs of the security groups applied to the target network association.
  68318. SecurityGroups []*string `locationName:"securityGroups" locationNameList:"item" type:"list"`
  68319. // The current state of the target network association.
  68320. Status *AssociationStatus `locationName:"status" type:"structure"`
  68321. // The ID of the subnet specified as the target network.
  68322. TargetNetworkId *string `locationName:"targetNetworkId" type:"string"`
  68323. // The ID of the VPC in which the target network (subnet) is located.
  68324. VpcId *string `locationName:"vpcId" type:"string"`
  68325. }
  68326. // String returns the string representation
  68327. func (s TargetNetwork) String() string {
  68328. return awsutil.Prettify(s)
  68329. }
  68330. // GoString returns the string representation
  68331. func (s TargetNetwork) GoString() string {
  68332. return s.String()
  68333. }
  68334. // SetAssociationId sets the AssociationId field's value.
  68335. func (s *TargetNetwork) SetAssociationId(v string) *TargetNetwork {
  68336. s.AssociationId = &v
  68337. return s
  68338. }
  68339. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  68340. func (s *TargetNetwork) SetClientVpnEndpointId(v string) *TargetNetwork {
  68341. s.ClientVpnEndpointId = &v
  68342. return s
  68343. }
  68344. // SetSecurityGroups sets the SecurityGroups field's value.
  68345. func (s *TargetNetwork) SetSecurityGroups(v []*string) *TargetNetwork {
  68346. s.SecurityGroups = v
  68347. return s
  68348. }
  68349. // SetStatus sets the Status field's value.
  68350. func (s *TargetNetwork) SetStatus(v *AssociationStatus) *TargetNetwork {
  68351. s.Status = v
  68352. return s
  68353. }
  68354. // SetTargetNetworkId sets the TargetNetworkId field's value.
  68355. func (s *TargetNetwork) SetTargetNetworkId(v string) *TargetNetwork {
  68356. s.TargetNetworkId = &v
  68357. return s
  68358. }
  68359. // SetVpcId sets the VpcId field's value.
  68360. func (s *TargetNetwork) SetVpcId(v string) *TargetNetwork {
  68361. s.VpcId = &v
  68362. return s
  68363. }
  68364. // The total value of the new Convertible Reserved Instances.
  68365. type TargetReservationValue struct {
  68366. _ struct{} `type:"structure"`
  68367. // The total value of the Convertible Reserved Instances that make up the exchange.
  68368. // This is the sum of the list value, remaining upfront price, and additional
  68369. // upfront cost of the exchange.
  68370. ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"`
  68371. // The configuration of the Convertible Reserved Instances that make up the
  68372. // exchange.
  68373. TargetConfiguration *TargetConfiguration `locationName:"targetConfiguration" type:"structure"`
  68374. }
  68375. // String returns the string representation
  68376. func (s TargetReservationValue) String() string {
  68377. return awsutil.Prettify(s)
  68378. }
  68379. // GoString returns the string representation
  68380. func (s TargetReservationValue) GoString() string {
  68381. return s.String()
  68382. }
  68383. // SetReservationValue sets the ReservationValue field's value.
  68384. func (s *TargetReservationValue) SetReservationValue(v *ReservationValue) *TargetReservationValue {
  68385. s.ReservationValue = v
  68386. return s
  68387. }
  68388. // SetTargetConfiguration sets the TargetConfiguration field's value.
  68389. func (s *TargetReservationValue) SetTargetConfiguration(v *TargetConfiguration) *TargetReservationValue {
  68390. s.TargetConfiguration = v
  68391. return s
  68392. }
  68393. type TerminateClientVpnConnectionsInput struct {
  68394. _ struct{} `type:"structure"`
  68395. // The ID of the Client VPN endpoint to which the client is connected.
  68396. //
  68397. // ClientVpnEndpointId is a required field
  68398. ClientVpnEndpointId *string `type:"string" required:"true"`
  68399. // The ID of the client connection to be terminated.
  68400. ConnectionId *string `type:"string"`
  68401. // Checks whether you have the required permissions for the action, without
  68402. // actually making the request, and provides an error response. If you have
  68403. // the required permissions, the error response is DryRunOperation. Otherwise,
  68404. // it is UnauthorizedOperation.
  68405. DryRun *bool `type:"boolean"`
  68406. // The name of the user who initiated the connection. Use this option to terminate
  68407. // all active connections for the specified user. This option can only be used
  68408. // if the user has established up to five connections.
  68409. Username *string `type:"string"`
  68410. }
  68411. // String returns the string representation
  68412. func (s TerminateClientVpnConnectionsInput) String() string {
  68413. return awsutil.Prettify(s)
  68414. }
  68415. // GoString returns the string representation
  68416. func (s TerminateClientVpnConnectionsInput) GoString() string {
  68417. return s.String()
  68418. }
  68419. // Validate inspects the fields of the type to determine if they are valid.
  68420. func (s *TerminateClientVpnConnectionsInput) Validate() error {
  68421. invalidParams := request.ErrInvalidParams{Context: "TerminateClientVpnConnectionsInput"}
  68422. if s.ClientVpnEndpointId == nil {
  68423. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  68424. }
  68425. if invalidParams.Len() > 0 {
  68426. return invalidParams
  68427. }
  68428. return nil
  68429. }
  68430. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  68431. func (s *TerminateClientVpnConnectionsInput) SetClientVpnEndpointId(v string) *TerminateClientVpnConnectionsInput {
  68432. s.ClientVpnEndpointId = &v
  68433. return s
  68434. }
  68435. // SetConnectionId sets the ConnectionId field's value.
  68436. func (s *TerminateClientVpnConnectionsInput) SetConnectionId(v string) *TerminateClientVpnConnectionsInput {
  68437. s.ConnectionId = &v
  68438. return s
  68439. }
  68440. // SetDryRun sets the DryRun field's value.
  68441. func (s *TerminateClientVpnConnectionsInput) SetDryRun(v bool) *TerminateClientVpnConnectionsInput {
  68442. s.DryRun = &v
  68443. return s
  68444. }
  68445. // SetUsername sets the Username field's value.
  68446. func (s *TerminateClientVpnConnectionsInput) SetUsername(v string) *TerminateClientVpnConnectionsInput {
  68447. s.Username = &v
  68448. return s
  68449. }
  68450. type TerminateClientVpnConnectionsOutput struct {
  68451. _ struct{} `type:"structure"`
  68452. // The ID of the Client VPN endpoint.
  68453. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  68454. // The current state of the client connections.
  68455. ConnectionStatuses []*TerminateConnectionStatus `locationName:"connectionStatuses" locationNameList:"item" type:"list"`
  68456. // The user who established the terminated client connections.
  68457. Username *string `locationName:"username" type:"string"`
  68458. }
  68459. // String returns the string representation
  68460. func (s TerminateClientVpnConnectionsOutput) String() string {
  68461. return awsutil.Prettify(s)
  68462. }
  68463. // GoString returns the string representation
  68464. func (s TerminateClientVpnConnectionsOutput) GoString() string {
  68465. return s.String()
  68466. }
  68467. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  68468. func (s *TerminateClientVpnConnectionsOutput) SetClientVpnEndpointId(v string) *TerminateClientVpnConnectionsOutput {
  68469. s.ClientVpnEndpointId = &v
  68470. return s
  68471. }
  68472. // SetConnectionStatuses sets the ConnectionStatuses field's value.
  68473. func (s *TerminateClientVpnConnectionsOutput) SetConnectionStatuses(v []*TerminateConnectionStatus) *TerminateClientVpnConnectionsOutput {
  68474. s.ConnectionStatuses = v
  68475. return s
  68476. }
  68477. // SetUsername sets the Username field's value.
  68478. func (s *TerminateClientVpnConnectionsOutput) SetUsername(v string) *TerminateClientVpnConnectionsOutput {
  68479. s.Username = &v
  68480. return s
  68481. }
  68482. // Information about a terminated Client VPN endpoint client connection.
  68483. type TerminateConnectionStatus struct {
  68484. _ struct{} `type:"structure"`
  68485. // The ID of the client connection.
  68486. ConnectionId *string `locationName:"connectionId" type:"string"`
  68487. // A message about the status of the client connection, if applicable.
  68488. CurrentStatus *ClientVpnConnectionStatus `locationName:"currentStatus" type:"structure"`
  68489. // The state of the client connection.
  68490. PreviousStatus *ClientVpnConnectionStatus `locationName:"previousStatus" type:"structure"`
  68491. }
  68492. // String returns the string representation
  68493. func (s TerminateConnectionStatus) String() string {
  68494. return awsutil.Prettify(s)
  68495. }
  68496. // GoString returns the string representation
  68497. func (s TerminateConnectionStatus) GoString() string {
  68498. return s.String()
  68499. }
  68500. // SetConnectionId sets the ConnectionId field's value.
  68501. func (s *TerminateConnectionStatus) SetConnectionId(v string) *TerminateConnectionStatus {
  68502. s.ConnectionId = &v
  68503. return s
  68504. }
  68505. // SetCurrentStatus sets the CurrentStatus field's value.
  68506. func (s *TerminateConnectionStatus) SetCurrentStatus(v *ClientVpnConnectionStatus) *TerminateConnectionStatus {
  68507. s.CurrentStatus = v
  68508. return s
  68509. }
  68510. // SetPreviousStatus sets the PreviousStatus field's value.
  68511. func (s *TerminateConnectionStatus) SetPreviousStatus(v *ClientVpnConnectionStatus) *TerminateConnectionStatus {
  68512. s.PreviousStatus = v
  68513. return s
  68514. }
  68515. type TerminateInstancesInput struct {
  68516. _ struct{} `type:"structure"`
  68517. // Checks whether you have the required permissions for the action, without
  68518. // actually making the request, and provides an error response. If you have
  68519. // the required permissions, the error response is DryRunOperation. Otherwise,
  68520. // it is UnauthorizedOperation.
  68521. DryRun *bool `locationName:"dryRun" type:"boolean"`
  68522. // One or more instance IDs.
  68523. //
  68524. // Constraints: Up to 1000 instance IDs. We recommend breaking up this request
  68525. // into smaller batches.
  68526. //
  68527. // InstanceIds is a required field
  68528. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  68529. }
  68530. // String returns the string representation
  68531. func (s TerminateInstancesInput) String() string {
  68532. return awsutil.Prettify(s)
  68533. }
  68534. // GoString returns the string representation
  68535. func (s TerminateInstancesInput) GoString() string {
  68536. return s.String()
  68537. }
  68538. // Validate inspects the fields of the type to determine if they are valid.
  68539. func (s *TerminateInstancesInput) Validate() error {
  68540. invalidParams := request.ErrInvalidParams{Context: "TerminateInstancesInput"}
  68541. if s.InstanceIds == nil {
  68542. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  68543. }
  68544. if invalidParams.Len() > 0 {
  68545. return invalidParams
  68546. }
  68547. return nil
  68548. }
  68549. // SetDryRun sets the DryRun field's value.
  68550. func (s *TerminateInstancesInput) SetDryRun(v bool) *TerminateInstancesInput {
  68551. s.DryRun = &v
  68552. return s
  68553. }
  68554. // SetInstanceIds sets the InstanceIds field's value.
  68555. func (s *TerminateInstancesInput) SetInstanceIds(v []*string) *TerminateInstancesInput {
  68556. s.InstanceIds = v
  68557. return s
  68558. }
  68559. type TerminateInstancesOutput struct {
  68560. _ struct{} `type:"structure"`
  68561. // Information about one or more terminated instances.
  68562. TerminatingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  68563. }
  68564. // String returns the string representation
  68565. func (s TerminateInstancesOutput) String() string {
  68566. return awsutil.Prettify(s)
  68567. }
  68568. // GoString returns the string representation
  68569. func (s TerminateInstancesOutput) GoString() string {
  68570. return s.String()
  68571. }
  68572. // SetTerminatingInstances sets the TerminatingInstances field's value.
  68573. func (s *TerminateInstancesOutput) SetTerminatingInstances(v []*InstanceStateChange) *TerminateInstancesOutput {
  68574. s.TerminatingInstances = v
  68575. return s
  68576. }
  68577. // Describes a transit gateway.
  68578. type TransitGateway struct {
  68579. _ struct{} `type:"structure"`
  68580. // The creation time.
  68581. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  68582. // The description of the transit gateway.
  68583. Description *string `locationName:"description" type:"string"`
  68584. // The transit gateway options.
  68585. Options *TransitGatewayOptions `locationName:"options" type:"structure"`
  68586. // The ID of the AWS account ID that owns the transit gateway.
  68587. OwnerId *string `locationName:"ownerId" type:"string"`
  68588. // The state of the transit gateway.
  68589. State *string `locationName:"state" type:"string" enum:"TransitGatewayState"`
  68590. // The tags for the transit gateway.
  68591. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  68592. // The Amazon Resource Name (ARN) of the transit gateway.
  68593. TransitGatewayArn *string `locationName:"transitGatewayArn" type:"string"`
  68594. // The ID of the transit gateway.
  68595. TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
  68596. }
  68597. // String returns the string representation
  68598. func (s TransitGateway) String() string {
  68599. return awsutil.Prettify(s)
  68600. }
  68601. // GoString returns the string representation
  68602. func (s TransitGateway) GoString() string {
  68603. return s.String()
  68604. }
  68605. // SetCreationTime sets the CreationTime field's value.
  68606. func (s *TransitGateway) SetCreationTime(v time.Time) *TransitGateway {
  68607. s.CreationTime = &v
  68608. return s
  68609. }
  68610. // SetDescription sets the Description field's value.
  68611. func (s *TransitGateway) SetDescription(v string) *TransitGateway {
  68612. s.Description = &v
  68613. return s
  68614. }
  68615. // SetOptions sets the Options field's value.
  68616. func (s *TransitGateway) SetOptions(v *TransitGatewayOptions) *TransitGateway {
  68617. s.Options = v
  68618. return s
  68619. }
  68620. // SetOwnerId sets the OwnerId field's value.
  68621. func (s *TransitGateway) SetOwnerId(v string) *TransitGateway {
  68622. s.OwnerId = &v
  68623. return s
  68624. }
  68625. // SetState sets the State field's value.
  68626. func (s *TransitGateway) SetState(v string) *TransitGateway {
  68627. s.State = &v
  68628. return s
  68629. }
  68630. // SetTags sets the Tags field's value.
  68631. func (s *TransitGateway) SetTags(v []*Tag) *TransitGateway {
  68632. s.Tags = v
  68633. return s
  68634. }
  68635. // SetTransitGatewayArn sets the TransitGatewayArn field's value.
  68636. func (s *TransitGateway) SetTransitGatewayArn(v string) *TransitGateway {
  68637. s.TransitGatewayArn = &v
  68638. return s
  68639. }
  68640. // SetTransitGatewayId sets the TransitGatewayId field's value.
  68641. func (s *TransitGateway) SetTransitGatewayId(v string) *TransitGateway {
  68642. s.TransitGatewayId = &v
  68643. return s
  68644. }
  68645. // Describes an association between a resource attachment and a transit gateway
  68646. // route table.
  68647. type TransitGatewayAssociation struct {
  68648. _ struct{} `type:"structure"`
  68649. // The ID of the resource.
  68650. ResourceId *string `locationName:"resourceId" type:"string"`
  68651. // The resource type.
  68652. ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"`
  68653. // The state of the association.
  68654. State *string `locationName:"state" type:"string" enum:"TransitGatewayAssociationState"`
  68655. // The ID of the attachment.
  68656. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  68657. // The ID of the transit gateway route table.
  68658. TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
  68659. }
  68660. // String returns the string representation
  68661. func (s TransitGatewayAssociation) String() string {
  68662. return awsutil.Prettify(s)
  68663. }
  68664. // GoString returns the string representation
  68665. func (s TransitGatewayAssociation) GoString() string {
  68666. return s.String()
  68667. }
  68668. // SetResourceId sets the ResourceId field's value.
  68669. func (s *TransitGatewayAssociation) SetResourceId(v string) *TransitGatewayAssociation {
  68670. s.ResourceId = &v
  68671. return s
  68672. }
  68673. // SetResourceType sets the ResourceType field's value.
  68674. func (s *TransitGatewayAssociation) SetResourceType(v string) *TransitGatewayAssociation {
  68675. s.ResourceType = &v
  68676. return s
  68677. }
  68678. // SetState sets the State field's value.
  68679. func (s *TransitGatewayAssociation) SetState(v string) *TransitGatewayAssociation {
  68680. s.State = &v
  68681. return s
  68682. }
  68683. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  68684. func (s *TransitGatewayAssociation) SetTransitGatewayAttachmentId(v string) *TransitGatewayAssociation {
  68685. s.TransitGatewayAttachmentId = &v
  68686. return s
  68687. }
  68688. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  68689. func (s *TransitGatewayAssociation) SetTransitGatewayRouteTableId(v string) *TransitGatewayAssociation {
  68690. s.TransitGatewayRouteTableId = &v
  68691. return s
  68692. }
  68693. // Describes an attachment between a resource and a transit gateway.
  68694. type TransitGatewayAttachment struct {
  68695. _ struct{} `type:"structure"`
  68696. // The association.
  68697. Association *TransitGatewayAttachmentAssociation `locationName:"association" type:"structure"`
  68698. // The creation time.
  68699. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  68700. // The ID of the resource.
  68701. ResourceId *string `locationName:"resourceId" type:"string"`
  68702. // The ID of the AWS account that owns the resource.
  68703. ResourceOwnerId *string `locationName:"resourceOwnerId" type:"string"`
  68704. // The resource type.
  68705. ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"`
  68706. // The attachment state.
  68707. State *string `locationName:"state" type:"string" enum:"TransitGatewayAttachmentState"`
  68708. // The tags for the attachment.
  68709. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  68710. // The ID of the attachment.
  68711. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  68712. // The ID of the transit gateway.
  68713. TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
  68714. // The ID of the AWS account that owns the transit gateway.
  68715. TransitGatewayOwnerId *string `locationName:"transitGatewayOwnerId" type:"string"`
  68716. }
  68717. // String returns the string representation
  68718. func (s TransitGatewayAttachment) String() string {
  68719. return awsutil.Prettify(s)
  68720. }
  68721. // GoString returns the string representation
  68722. func (s TransitGatewayAttachment) GoString() string {
  68723. return s.String()
  68724. }
  68725. // SetAssociation sets the Association field's value.
  68726. func (s *TransitGatewayAttachment) SetAssociation(v *TransitGatewayAttachmentAssociation) *TransitGatewayAttachment {
  68727. s.Association = v
  68728. return s
  68729. }
  68730. // SetCreationTime sets the CreationTime field's value.
  68731. func (s *TransitGatewayAttachment) SetCreationTime(v time.Time) *TransitGatewayAttachment {
  68732. s.CreationTime = &v
  68733. return s
  68734. }
  68735. // SetResourceId sets the ResourceId field's value.
  68736. func (s *TransitGatewayAttachment) SetResourceId(v string) *TransitGatewayAttachment {
  68737. s.ResourceId = &v
  68738. return s
  68739. }
  68740. // SetResourceOwnerId sets the ResourceOwnerId field's value.
  68741. func (s *TransitGatewayAttachment) SetResourceOwnerId(v string) *TransitGatewayAttachment {
  68742. s.ResourceOwnerId = &v
  68743. return s
  68744. }
  68745. // SetResourceType sets the ResourceType field's value.
  68746. func (s *TransitGatewayAttachment) SetResourceType(v string) *TransitGatewayAttachment {
  68747. s.ResourceType = &v
  68748. return s
  68749. }
  68750. // SetState sets the State field's value.
  68751. func (s *TransitGatewayAttachment) SetState(v string) *TransitGatewayAttachment {
  68752. s.State = &v
  68753. return s
  68754. }
  68755. // SetTags sets the Tags field's value.
  68756. func (s *TransitGatewayAttachment) SetTags(v []*Tag) *TransitGatewayAttachment {
  68757. s.Tags = v
  68758. return s
  68759. }
  68760. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  68761. func (s *TransitGatewayAttachment) SetTransitGatewayAttachmentId(v string) *TransitGatewayAttachment {
  68762. s.TransitGatewayAttachmentId = &v
  68763. return s
  68764. }
  68765. // SetTransitGatewayId sets the TransitGatewayId field's value.
  68766. func (s *TransitGatewayAttachment) SetTransitGatewayId(v string) *TransitGatewayAttachment {
  68767. s.TransitGatewayId = &v
  68768. return s
  68769. }
  68770. // SetTransitGatewayOwnerId sets the TransitGatewayOwnerId field's value.
  68771. func (s *TransitGatewayAttachment) SetTransitGatewayOwnerId(v string) *TransitGatewayAttachment {
  68772. s.TransitGatewayOwnerId = &v
  68773. return s
  68774. }
  68775. // Describes an association.
  68776. type TransitGatewayAttachmentAssociation struct {
  68777. _ struct{} `type:"structure"`
  68778. // The state of the association.
  68779. State *string `locationName:"state" type:"string" enum:"TransitGatewayAssociationState"`
  68780. // The ID of the route table for the transit gateway.
  68781. TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
  68782. }
  68783. // String returns the string representation
  68784. func (s TransitGatewayAttachmentAssociation) String() string {
  68785. return awsutil.Prettify(s)
  68786. }
  68787. // GoString returns the string representation
  68788. func (s TransitGatewayAttachmentAssociation) GoString() string {
  68789. return s.String()
  68790. }
  68791. // SetState sets the State field's value.
  68792. func (s *TransitGatewayAttachmentAssociation) SetState(v string) *TransitGatewayAttachmentAssociation {
  68793. s.State = &v
  68794. return s
  68795. }
  68796. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  68797. func (s *TransitGatewayAttachmentAssociation) SetTransitGatewayRouteTableId(v string) *TransitGatewayAttachmentAssociation {
  68798. s.TransitGatewayRouteTableId = &v
  68799. return s
  68800. }
  68801. // Describes a propagation route table.
  68802. type TransitGatewayAttachmentPropagation struct {
  68803. _ struct{} `type:"structure"`
  68804. // The state of the propagation route table.
  68805. State *string `locationName:"state" type:"string" enum:"TransitGatewayPropagationState"`
  68806. // The ID of the propagation route table.
  68807. TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
  68808. }
  68809. // String returns the string representation
  68810. func (s TransitGatewayAttachmentPropagation) String() string {
  68811. return awsutil.Prettify(s)
  68812. }
  68813. // GoString returns the string representation
  68814. func (s TransitGatewayAttachmentPropagation) GoString() string {
  68815. return s.String()
  68816. }
  68817. // SetState sets the State field's value.
  68818. func (s *TransitGatewayAttachmentPropagation) SetState(v string) *TransitGatewayAttachmentPropagation {
  68819. s.State = &v
  68820. return s
  68821. }
  68822. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  68823. func (s *TransitGatewayAttachmentPropagation) SetTransitGatewayRouteTableId(v string) *TransitGatewayAttachmentPropagation {
  68824. s.TransitGatewayRouteTableId = &v
  68825. return s
  68826. }
  68827. // Describes the options for a transit gateway.
  68828. type TransitGatewayOptions struct {
  68829. _ struct{} `type:"structure"`
  68830. // A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
  68831. // The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294
  68832. // for 32-bit ASNs.
  68833. AmazonSideAsn *int64 `locationName:"amazonSideAsn" type:"long"`
  68834. // The ID of the default association route table.
  68835. AssociationDefaultRouteTableId *string `locationName:"associationDefaultRouteTableId" type:"string"`
  68836. // Indicates whether attachment requests are automatically accepted.
  68837. AutoAcceptSharedAttachments *string `locationName:"autoAcceptSharedAttachments" type:"string" enum:"AutoAcceptSharedAttachmentsValue"`
  68838. // Indicates whether resource attachments are automatically associated with
  68839. // the default association route table.
  68840. DefaultRouteTableAssociation *string `locationName:"defaultRouteTableAssociation" type:"string" enum:"DefaultRouteTableAssociationValue"`
  68841. // Indicates whether resource attachments automatically propagate routes to
  68842. // the default propagation route table.
  68843. DefaultRouteTablePropagation *string `locationName:"defaultRouteTablePropagation" type:"string" enum:"DefaultRouteTablePropagationValue"`
  68844. // Indicates whether DNS support is enabled.
  68845. DnsSupport *string `locationName:"dnsSupport" type:"string" enum:"DnsSupportValue"`
  68846. // The ID of the default propagation route table.
  68847. PropagationDefaultRouteTableId *string `locationName:"propagationDefaultRouteTableId" type:"string"`
  68848. // Indicates whether Equal Cost Multipath Protocol support is enabled.
  68849. VpnEcmpSupport *string `locationName:"vpnEcmpSupport" type:"string" enum:"VpnEcmpSupportValue"`
  68850. }
  68851. // String returns the string representation
  68852. func (s TransitGatewayOptions) String() string {
  68853. return awsutil.Prettify(s)
  68854. }
  68855. // GoString returns the string representation
  68856. func (s TransitGatewayOptions) GoString() string {
  68857. return s.String()
  68858. }
  68859. // SetAmazonSideAsn sets the AmazonSideAsn field's value.
  68860. func (s *TransitGatewayOptions) SetAmazonSideAsn(v int64) *TransitGatewayOptions {
  68861. s.AmazonSideAsn = &v
  68862. return s
  68863. }
  68864. // SetAssociationDefaultRouteTableId sets the AssociationDefaultRouteTableId field's value.
  68865. func (s *TransitGatewayOptions) SetAssociationDefaultRouteTableId(v string) *TransitGatewayOptions {
  68866. s.AssociationDefaultRouteTableId = &v
  68867. return s
  68868. }
  68869. // SetAutoAcceptSharedAttachments sets the AutoAcceptSharedAttachments field's value.
  68870. func (s *TransitGatewayOptions) SetAutoAcceptSharedAttachments(v string) *TransitGatewayOptions {
  68871. s.AutoAcceptSharedAttachments = &v
  68872. return s
  68873. }
  68874. // SetDefaultRouteTableAssociation sets the DefaultRouteTableAssociation field's value.
  68875. func (s *TransitGatewayOptions) SetDefaultRouteTableAssociation(v string) *TransitGatewayOptions {
  68876. s.DefaultRouteTableAssociation = &v
  68877. return s
  68878. }
  68879. // SetDefaultRouteTablePropagation sets the DefaultRouteTablePropagation field's value.
  68880. func (s *TransitGatewayOptions) SetDefaultRouteTablePropagation(v string) *TransitGatewayOptions {
  68881. s.DefaultRouteTablePropagation = &v
  68882. return s
  68883. }
  68884. // SetDnsSupport sets the DnsSupport field's value.
  68885. func (s *TransitGatewayOptions) SetDnsSupport(v string) *TransitGatewayOptions {
  68886. s.DnsSupport = &v
  68887. return s
  68888. }
  68889. // SetPropagationDefaultRouteTableId sets the PropagationDefaultRouteTableId field's value.
  68890. func (s *TransitGatewayOptions) SetPropagationDefaultRouteTableId(v string) *TransitGatewayOptions {
  68891. s.PropagationDefaultRouteTableId = &v
  68892. return s
  68893. }
  68894. // SetVpnEcmpSupport sets the VpnEcmpSupport field's value.
  68895. func (s *TransitGatewayOptions) SetVpnEcmpSupport(v string) *TransitGatewayOptions {
  68896. s.VpnEcmpSupport = &v
  68897. return s
  68898. }
  68899. // Describes route propagation.
  68900. type TransitGatewayPropagation struct {
  68901. _ struct{} `type:"structure"`
  68902. // The ID of the resource.
  68903. ResourceId *string `locationName:"resourceId" type:"string"`
  68904. // The resource type.
  68905. ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"`
  68906. // The state.
  68907. State *string `locationName:"state" type:"string" enum:"TransitGatewayPropagationState"`
  68908. // The ID of the attachment.
  68909. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  68910. // The ID of the transit gateway route table.
  68911. TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
  68912. }
  68913. // String returns the string representation
  68914. func (s TransitGatewayPropagation) String() string {
  68915. return awsutil.Prettify(s)
  68916. }
  68917. // GoString returns the string representation
  68918. func (s TransitGatewayPropagation) GoString() string {
  68919. return s.String()
  68920. }
  68921. // SetResourceId sets the ResourceId field's value.
  68922. func (s *TransitGatewayPropagation) SetResourceId(v string) *TransitGatewayPropagation {
  68923. s.ResourceId = &v
  68924. return s
  68925. }
  68926. // SetResourceType sets the ResourceType field's value.
  68927. func (s *TransitGatewayPropagation) SetResourceType(v string) *TransitGatewayPropagation {
  68928. s.ResourceType = &v
  68929. return s
  68930. }
  68931. // SetState sets the State field's value.
  68932. func (s *TransitGatewayPropagation) SetState(v string) *TransitGatewayPropagation {
  68933. s.State = &v
  68934. return s
  68935. }
  68936. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  68937. func (s *TransitGatewayPropagation) SetTransitGatewayAttachmentId(v string) *TransitGatewayPropagation {
  68938. s.TransitGatewayAttachmentId = &v
  68939. return s
  68940. }
  68941. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  68942. func (s *TransitGatewayPropagation) SetTransitGatewayRouteTableId(v string) *TransitGatewayPropagation {
  68943. s.TransitGatewayRouteTableId = &v
  68944. return s
  68945. }
  68946. // Describes the options for a transit gateway.
  68947. type TransitGatewayRequestOptions struct {
  68948. _ struct{} `type:"structure"`
  68949. // A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
  68950. // The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294
  68951. // for 32-bit ASNs.
  68952. AmazonSideAsn *int64 `type:"long"`
  68953. // Enable or disable automatic acceptance of attachment requests. The default
  68954. // is disable.
  68955. AutoAcceptSharedAttachments *string `type:"string" enum:"AutoAcceptSharedAttachmentsValue"`
  68956. // Enable or disable automatic association with the default association route
  68957. // table. The default is enable.
  68958. DefaultRouteTableAssociation *string `type:"string" enum:"DefaultRouteTableAssociationValue"`
  68959. // Enable or disable automatic propagation of routes to the default propagation
  68960. // route table. The default is enable.
  68961. DefaultRouteTablePropagation *string `type:"string" enum:"DefaultRouteTablePropagationValue"`
  68962. // Enable or disable DNS support.
  68963. DnsSupport *string `type:"string" enum:"DnsSupportValue"`
  68964. // Enable or disable Equal Cost Multipath Protocol support.
  68965. VpnEcmpSupport *string `type:"string" enum:"VpnEcmpSupportValue"`
  68966. }
  68967. // String returns the string representation
  68968. func (s TransitGatewayRequestOptions) String() string {
  68969. return awsutil.Prettify(s)
  68970. }
  68971. // GoString returns the string representation
  68972. func (s TransitGatewayRequestOptions) GoString() string {
  68973. return s.String()
  68974. }
  68975. // SetAmazonSideAsn sets the AmazonSideAsn field's value.
  68976. func (s *TransitGatewayRequestOptions) SetAmazonSideAsn(v int64) *TransitGatewayRequestOptions {
  68977. s.AmazonSideAsn = &v
  68978. return s
  68979. }
  68980. // SetAutoAcceptSharedAttachments sets the AutoAcceptSharedAttachments field's value.
  68981. func (s *TransitGatewayRequestOptions) SetAutoAcceptSharedAttachments(v string) *TransitGatewayRequestOptions {
  68982. s.AutoAcceptSharedAttachments = &v
  68983. return s
  68984. }
  68985. // SetDefaultRouteTableAssociation sets the DefaultRouteTableAssociation field's value.
  68986. func (s *TransitGatewayRequestOptions) SetDefaultRouteTableAssociation(v string) *TransitGatewayRequestOptions {
  68987. s.DefaultRouteTableAssociation = &v
  68988. return s
  68989. }
  68990. // SetDefaultRouteTablePropagation sets the DefaultRouteTablePropagation field's value.
  68991. func (s *TransitGatewayRequestOptions) SetDefaultRouteTablePropagation(v string) *TransitGatewayRequestOptions {
  68992. s.DefaultRouteTablePropagation = &v
  68993. return s
  68994. }
  68995. // SetDnsSupport sets the DnsSupport field's value.
  68996. func (s *TransitGatewayRequestOptions) SetDnsSupport(v string) *TransitGatewayRequestOptions {
  68997. s.DnsSupport = &v
  68998. return s
  68999. }
  69000. // SetVpnEcmpSupport sets the VpnEcmpSupport field's value.
  69001. func (s *TransitGatewayRequestOptions) SetVpnEcmpSupport(v string) *TransitGatewayRequestOptions {
  69002. s.VpnEcmpSupport = &v
  69003. return s
  69004. }
  69005. // Describes a route for a transit gateway route table.
  69006. type TransitGatewayRoute struct {
  69007. _ struct{} `type:"structure"`
  69008. // The CIDR block used for destination matches.
  69009. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  69010. // The state of the route.
  69011. State *string `locationName:"state" type:"string" enum:"TransitGatewayRouteState"`
  69012. // The attachments.
  69013. TransitGatewayAttachments []*TransitGatewayRouteAttachment `locationName:"transitGatewayAttachments" locationNameList:"item" type:"list"`
  69014. // The route type.
  69015. Type *string `locationName:"type" type:"string" enum:"TransitGatewayRouteType"`
  69016. }
  69017. // String returns the string representation
  69018. func (s TransitGatewayRoute) String() string {
  69019. return awsutil.Prettify(s)
  69020. }
  69021. // GoString returns the string representation
  69022. func (s TransitGatewayRoute) GoString() string {
  69023. return s.String()
  69024. }
  69025. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  69026. func (s *TransitGatewayRoute) SetDestinationCidrBlock(v string) *TransitGatewayRoute {
  69027. s.DestinationCidrBlock = &v
  69028. return s
  69029. }
  69030. // SetState sets the State field's value.
  69031. func (s *TransitGatewayRoute) SetState(v string) *TransitGatewayRoute {
  69032. s.State = &v
  69033. return s
  69034. }
  69035. // SetTransitGatewayAttachments sets the TransitGatewayAttachments field's value.
  69036. func (s *TransitGatewayRoute) SetTransitGatewayAttachments(v []*TransitGatewayRouteAttachment) *TransitGatewayRoute {
  69037. s.TransitGatewayAttachments = v
  69038. return s
  69039. }
  69040. // SetType sets the Type field's value.
  69041. func (s *TransitGatewayRoute) SetType(v string) *TransitGatewayRoute {
  69042. s.Type = &v
  69043. return s
  69044. }
  69045. // Describes a route attachment.
  69046. type TransitGatewayRouteAttachment struct {
  69047. _ struct{} `type:"structure"`
  69048. // The ID of the resource.
  69049. ResourceId *string `locationName:"resourceId" type:"string"`
  69050. // The resource type.
  69051. ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"`
  69052. // The ID of the attachment.
  69053. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  69054. }
  69055. // String returns the string representation
  69056. func (s TransitGatewayRouteAttachment) String() string {
  69057. return awsutil.Prettify(s)
  69058. }
  69059. // GoString returns the string representation
  69060. func (s TransitGatewayRouteAttachment) GoString() string {
  69061. return s.String()
  69062. }
  69063. // SetResourceId sets the ResourceId field's value.
  69064. func (s *TransitGatewayRouteAttachment) SetResourceId(v string) *TransitGatewayRouteAttachment {
  69065. s.ResourceId = &v
  69066. return s
  69067. }
  69068. // SetResourceType sets the ResourceType field's value.
  69069. func (s *TransitGatewayRouteAttachment) SetResourceType(v string) *TransitGatewayRouteAttachment {
  69070. s.ResourceType = &v
  69071. return s
  69072. }
  69073. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  69074. func (s *TransitGatewayRouteAttachment) SetTransitGatewayAttachmentId(v string) *TransitGatewayRouteAttachment {
  69075. s.TransitGatewayAttachmentId = &v
  69076. return s
  69077. }
  69078. // Describes a transit gateway route table.
  69079. type TransitGatewayRouteTable struct {
  69080. _ struct{} `type:"structure"`
  69081. // The creation time.
  69082. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  69083. // Indicates whether this is the default association route table for the transit
  69084. // gateway.
  69085. DefaultAssociationRouteTable *bool `locationName:"defaultAssociationRouteTable" type:"boolean"`
  69086. // Indicates whether this is the default propagation route table for the transit
  69087. // gateway.
  69088. DefaultPropagationRouteTable *bool `locationName:"defaultPropagationRouteTable" type:"boolean"`
  69089. // The state of the transit gateway route table.
  69090. State *string `locationName:"state" type:"string" enum:"TransitGatewayRouteTableState"`
  69091. // Any tags assigned to the route table.
  69092. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  69093. // The ID of the transit gateway.
  69094. TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
  69095. // The ID of the transit gateway route table.
  69096. TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
  69097. }
  69098. // String returns the string representation
  69099. func (s TransitGatewayRouteTable) String() string {
  69100. return awsutil.Prettify(s)
  69101. }
  69102. // GoString returns the string representation
  69103. func (s TransitGatewayRouteTable) GoString() string {
  69104. return s.String()
  69105. }
  69106. // SetCreationTime sets the CreationTime field's value.
  69107. func (s *TransitGatewayRouteTable) SetCreationTime(v time.Time) *TransitGatewayRouteTable {
  69108. s.CreationTime = &v
  69109. return s
  69110. }
  69111. // SetDefaultAssociationRouteTable sets the DefaultAssociationRouteTable field's value.
  69112. func (s *TransitGatewayRouteTable) SetDefaultAssociationRouteTable(v bool) *TransitGatewayRouteTable {
  69113. s.DefaultAssociationRouteTable = &v
  69114. return s
  69115. }
  69116. // SetDefaultPropagationRouteTable sets the DefaultPropagationRouteTable field's value.
  69117. func (s *TransitGatewayRouteTable) SetDefaultPropagationRouteTable(v bool) *TransitGatewayRouteTable {
  69118. s.DefaultPropagationRouteTable = &v
  69119. return s
  69120. }
  69121. // SetState sets the State field's value.
  69122. func (s *TransitGatewayRouteTable) SetState(v string) *TransitGatewayRouteTable {
  69123. s.State = &v
  69124. return s
  69125. }
  69126. // SetTags sets the Tags field's value.
  69127. func (s *TransitGatewayRouteTable) SetTags(v []*Tag) *TransitGatewayRouteTable {
  69128. s.Tags = v
  69129. return s
  69130. }
  69131. // SetTransitGatewayId sets the TransitGatewayId field's value.
  69132. func (s *TransitGatewayRouteTable) SetTransitGatewayId(v string) *TransitGatewayRouteTable {
  69133. s.TransitGatewayId = &v
  69134. return s
  69135. }
  69136. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  69137. func (s *TransitGatewayRouteTable) SetTransitGatewayRouteTableId(v string) *TransitGatewayRouteTable {
  69138. s.TransitGatewayRouteTableId = &v
  69139. return s
  69140. }
  69141. // Describes an association between a route table and a resource attachment.
  69142. type TransitGatewayRouteTableAssociation struct {
  69143. _ struct{} `type:"structure"`
  69144. // The ID of the resource.
  69145. ResourceId *string `locationName:"resourceId" type:"string"`
  69146. // The resource type.
  69147. ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"`
  69148. // The state of the association.
  69149. State *string `locationName:"state" type:"string" enum:"TransitGatewayAssociationState"`
  69150. // The ID of the attachment.
  69151. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  69152. }
  69153. // String returns the string representation
  69154. func (s TransitGatewayRouteTableAssociation) String() string {
  69155. return awsutil.Prettify(s)
  69156. }
  69157. // GoString returns the string representation
  69158. func (s TransitGatewayRouteTableAssociation) GoString() string {
  69159. return s.String()
  69160. }
  69161. // SetResourceId sets the ResourceId field's value.
  69162. func (s *TransitGatewayRouteTableAssociation) SetResourceId(v string) *TransitGatewayRouteTableAssociation {
  69163. s.ResourceId = &v
  69164. return s
  69165. }
  69166. // SetResourceType sets the ResourceType field's value.
  69167. func (s *TransitGatewayRouteTableAssociation) SetResourceType(v string) *TransitGatewayRouteTableAssociation {
  69168. s.ResourceType = &v
  69169. return s
  69170. }
  69171. // SetState sets the State field's value.
  69172. func (s *TransitGatewayRouteTableAssociation) SetState(v string) *TransitGatewayRouteTableAssociation {
  69173. s.State = &v
  69174. return s
  69175. }
  69176. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  69177. func (s *TransitGatewayRouteTableAssociation) SetTransitGatewayAttachmentId(v string) *TransitGatewayRouteTableAssociation {
  69178. s.TransitGatewayAttachmentId = &v
  69179. return s
  69180. }
  69181. // Describes a route table propagation.
  69182. type TransitGatewayRouteTablePropagation struct {
  69183. _ struct{} `type:"structure"`
  69184. // The ID of the resource.
  69185. ResourceId *string `locationName:"resourceId" type:"string"`
  69186. // The type of resource.
  69187. ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"`
  69188. // The state of the resource.
  69189. State *string `locationName:"state" type:"string" enum:"TransitGatewayPropagationState"`
  69190. // The ID of the attachment.
  69191. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  69192. }
  69193. // String returns the string representation
  69194. func (s TransitGatewayRouteTablePropagation) String() string {
  69195. return awsutil.Prettify(s)
  69196. }
  69197. // GoString returns the string representation
  69198. func (s TransitGatewayRouteTablePropagation) GoString() string {
  69199. return s.String()
  69200. }
  69201. // SetResourceId sets the ResourceId field's value.
  69202. func (s *TransitGatewayRouteTablePropagation) SetResourceId(v string) *TransitGatewayRouteTablePropagation {
  69203. s.ResourceId = &v
  69204. return s
  69205. }
  69206. // SetResourceType sets the ResourceType field's value.
  69207. func (s *TransitGatewayRouteTablePropagation) SetResourceType(v string) *TransitGatewayRouteTablePropagation {
  69208. s.ResourceType = &v
  69209. return s
  69210. }
  69211. // SetState sets the State field's value.
  69212. func (s *TransitGatewayRouteTablePropagation) SetState(v string) *TransitGatewayRouteTablePropagation {
  69213. s.State = &v
  69214. return s
  69215. }
  69216. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  69217. func (s *TransitGatewayRouteTablePropagation) SetTransitGatewayAttachmentId(v string) *TransitGatewayRouteTablePropagation {
  69218. s.TransitGatewayAttachmentId = &v
  69219. return s
  69220. }
  69221. // Describes a VPC attachment.
  69222. type TransitGatewayVpcAttachment struct {
  69223. _ struct{} `type:"structure"`
  69224. // The creation time.
  69225. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  69226. // The VPC attachment options.
  69227. Options *TransitGatewayVpcAttachmentOptions `locationName:"options" type:"structure"`
  69228. // The state of the VPC attachment.
  69229. State *string `locationName:"state" type:"string" enum:"TransitGatewayAttachmentState"`
  69230. // The IDs of the subnets.
  69231. SubnetIds []*string `locationName:"subnetIds" locationNameList:"item" type:"list"`
  69232. // The tags for the VPC attachment.
  69233. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  69234. // The ID of the attachment.
  69235. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  69236. // The ID of the transit gateway.
  69237. TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
  69238. // The ID of the VPC.
  69239. VpcId *string `locationName:"vpcId" type:"string"`
  69240. // The ID of the AWS account that owns the VPC.
  69241. VpcOwnerId *string `locationName:"vpcOwnerId" type:"string"`
  69242. }
  69243. // String returns the string representation
  69244. func (s TransitGatewayVpcAttachment) String() string {
  69245. return awsutil.Prettify(s)
  69246. }
  69247. // GoString returns the string representation
  69248. func (s TransitGatewayVpcAttachment) GoString() string {
  69249. return s.String()
  69250. }
  69251. // SetCreationTime sets the CreationTime field's value.
  69252. func (s *TransitGatewayVpcAttachment) SetCreationTime(v time.Time) *TransitGatewayVpcAttachment {
  69253. s.CreationTime = &v
  69254. return s
  69255. }
  69256. // SetOptions sets the Options field's value.
  69257. func (s *TransitGatewayVpcAttachment) SetOptions(v *TransitGatewayVpcAttachmentOptions) *TransitGatewayVpcAttachment {
  69258. s.Options = v
  69259. return s
  69260. }
  69261. // SetState sets the State field's value.
  69262. func (s *TransitGatewayVpcAttachment) SetState(v string) *TransitGatewayVpcAttachment {
  69263. s.State = &v
  69264. return s
  69265. }
  69266. // SetSubnetIds sets the SubnetIds field's value.
  69267. func (s *TransitGatewayVpcAttachment) SetSubnetIds(v []*string) *TransitGatewayVpcAttachment {
  69268. s.SubnetIds = v
  69269. return s
  69270. }
  69271. // SetTags sets the Tags field's value.
  69272. func (s *TransitGatewayVpcAttachment) SetTags(v []*Tag) *TransitGatewayVpcAttachment {
  69273. s.Tags = v
  69274. return s
  69275. }
  69276. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  69277. func (s *TransitGatewayVpcAttachment) SetTransitGatewayAttachmentId(v string) *TransitGatewayVpcAttachment {
  69278. s.TransitGatewayAttachmentId = &v
  69279. return s
  69280. }
  69281. // SetTransitGatewayId sets the TransitGatewayId field's value.
  69282. func (s *TransitGatewayVpcAttachment) SetTransitGatewayId(v string) *TransitGatewayVpcAttachment {
  69283. s.TransitGatewayId = &v
  69284. return s
  69285. }
  69286. // SetVpcId sets the VpcId field's value.
  69287. func (s *TransitGatewayVpcAttachment) SetVpcId(v string) *TransitGatewayVpcAttachment {
  69288. s.VpcId = &v
  69289. return s
  69290. }
  69291. // SetVpcOwnerId sets the VpcOwnerId field's value.
  69292. func (s *TransitGatewayVpcAttachment) SetVpcOwnerId(v string) *TransitGatewayVpcAttachment {
  69293. s.VpcOwnerId = &v
  69294. return s
  69295. }
  69296. // Describes the VPC attachment options.
  69297. type TransitGatewayVpcAttachmentOptions struct {
  69298. _ struct{} `type:"structure"`
  69299. // Indicates whether DNS support is enabled.
  69300. DnsSupport *string `locationName:"dnsSupport" type:"string" enum:"DnsSupportValue"`
  69301. // Indicates whether IPv6 support is enabled.
  69302. Ipv6Support *string `locationName:"ipv6Support" type:"string" enum:"Ipv6SupportValue"`
  69303. }
  69304. // String returns the string representation
  69305. func (s TransitGatewayVpcAttachmentOptions) String() string {
  69306. return awsutil.Prettify(s)
  69307. }
  69308. // GoString returns the string representation
  69309. func (s TransitGatewayVpcAttachmentOptions) GoString() string {
  69310. return s.String()
  69311. }
  69312. // SetDnsSupport sets the DnsSupport field's value.
  69313. func (s *TransitGatewayVpcAttachmentOptions) SetDnsSupport(v string) *TransitGatewayVpcAttachmentOptions {
  69314. s.DnsSupport = &v
  69315. return s
  69316. }
  69317. // SetIpv6Support sets the Ipv6Support field's value.
  69318. func (s *TransitGatewayVpcAttachmentOptions) SetIpv6Support(v string) *TransitGatewayVpcAttachmentOptions {
  69319. s.Ipv6Support = &v
  69320. return s
  69321. }
  69322. type UnassignIpv6AddressesInput struct {
  69323. _ struct{} `type:"structure"`
  69324. // The IPv6 addresses to unassign from the network interface.
  69325. //
  69326. // Ipv6Addresses is a required field
  69327. Ipv6Addresses []*string `locationName:"ipv6Addresses" locationNameList:"item" type:"list" required:"true"`
  69328. // The ID of the network interface.
  69329. //
  69330. // NetworkInterfaceId is a required field
  69331. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  69332. }
  69333. // String returns the string representation
  69334. func (s UnassignIpv6AddressesInput) String() string {
  69335. return awsutil.Prettify(s)
  69336. }
  69337. // GoString returns the string representation
  69338. func (s UnassignIpv6AddressesInput) GoString() string {
  69339. return s.String()
  69340. }
  69341. // Validate inspects the fields of the type to determine if they are valid.
  69342. func (s *UnassignIpv6AddressesInput) Validate() error {
  69343. invalidParams := request.ErrInvalidParams{Context: "UnassignIpv6AddressesInput"}
  69344. if s.Ipv6Addresses == nil {
  69345. invalidParams.Add(request.NewErrParamRequired("Ipv6Addresses"))
  69346. }
  69347. if s.NetworkInterfaceId == nil {
  69348. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  69349. }
  69350. if invalidParams.Len() > 0 {
  69351. return invalidParams
  69352. }
  69353. return nil
  69354. }
  69355. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  69356. func (s *UnassignIpv6AddressesInput) SetIpv6Addresses(v []*string) *UnassignIpv6AddressesInput {
  69357. s.Ipv6Addresses = v
  69358. return s
  69359. }
  69360. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  69361. func (s *UnassignIpv6AddressesInput) SetNetworkInterfaceId(v string) *UnassignIpv6AddressesInput {
  69362. s.NetworkInterfaceId = &v
  69363. return s
  69364. }
  69365. type UnassignIpv6AddressesOutput struct {
  69366. _ struct{} `type:"structure"`
  69367. // The ID of the network interface.
  69368. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  69369. // The IPv6 addresses that have been unassigned from the network interface.
  69370. UnassignedIpv6Addresses []*string `locationName:"unassignedIpv6Addresses" locationNameList:"item" type:"list"`
  69371. }
  69372. // String returns the string representation
  69373. func (s UnassignIpv6AddressesOutput) String() string {
  69374. return awsutil.Prettify(s)
  69375. }
  69376. // GoString returns the string representation
  69377. func (s UnassignIpv6AddressesOutput) GoString() string {
  69378. return s.String()
  69379. }
  69380. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  69381. func (s *UnassignIpv6AddressesOutput) SetNetworkInterfaceId(v string) *UnassignIpv6AddressesOutput {
  69382. s.NetworkInterfaceId = &v
  69383. return s
  69384. }
  69385. // SetUnassignedIpv6Addresses sets the UnassignedIpv6Addresses field's value.
  69386. func (s *UnassignIpv6AddressesOutput) SetUnassignedIpv6Addresses(v []*string) *UnassignIpv6AddressesOutput {
  69387. s.UnassignedIpv6Addresses = v
  69388. return s
  69389. }
  69390. // Contains the parameters for UnassignPrivateIpAddresses.
  69391. type UnassignPrivateIpAddressesInput struct {
  69392. _ struct{} `type:"structure"`
  69393. // The ID of the network interface.
  69394. //
  69395. // NetworkInterfaceId is a required field
  69396. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  69397. // The secondary private IP addresses to unassign from the network interface.
  69398. // You can specify this option multiple times to unassign more than one IP address.
  69399. //
  69400. // PrivateIpAddresses is a required field
  69401. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list" required:"true"`
  69402. }
  69403. // String returns the string representation
  69404. func (s UnassignPrivateIpAddressesInput) String() string {
  69405. return awsutil.Prettify(s)
  69406. }
  69407. // GoString returns the string representation
  69408. func (s UnassignPrivateIpAddressesInput) GoString() string {
  69409. return s.String()
  69410. }
  69411. // Validate inspects the fields of the type to determine if they are valid.
  69412. func (s *UnassignPrivateIpAddressesInput) Validate() error {
  69413. invalidParams := request.ErrInvalidParams{Context: "UnassignPrivateIpAddressesInput"}
  69414. if s.NetworkInterfaceId == nil {
  69415. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  69416. }
  69417. if s.PrivateIpAddresses == nil {
  69418. invalidParams.Add(request.NewErrParamRequired("PrivateIpAddresses"))
  69419. }
  69420. if invalidParams.Len() > 0 {
  69421. return invalidParams
  69422. }
  69423. return nil
  69424. }
  69425. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  69426. func (s *UnassignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *UnassignPrivateIpAddressesInput {
  69427. s.NetworkInterfaceId = &v
  69428. return s
  69429. }
  69430. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  69431. func (s *UnassignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *UnassignPrivateIpAddressesInput {
  69432. s.PrivateIpAddresses = v
  69433. return s
  69434. }
  69435. type UnassignPrivateIpAddressesOutput struct {
  69436. _ struct{} `type:"structure"`
  69437. }
  69438. // String returns the string representation
  69439. func (s UnassignPrivateIpAddressesOutput) String() string {
  69440. return awsutil.Prettify(s)
  69441. }
  69442. // GoString returns the string representation
  69443. func (s UnassignPrivateIpAddressesOutput) GoString() string {
  69444. return s.String()
  69445. }
  69446. type UnmonitorInstancesInput struct {
  69447. _ struct{} `type:"structure"`
  69448. // Checks whether you have the required permissions for the action, without
  69449. // actually making the request, and provides an error response. If you have
  69450. // the required permissions, the error response is DryRunOperation. Otherwise,
  69451. // it is UnauthorizedOperation.
  69452. DryRun *bool `locationName:"dryRun" type:"boolean"`
  69453. // One or more instance IDs.
  69454. //
  69455. // InstanceIds is a required field
  69456. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  69457. }
  69458. // String returns the string representation
  69459. func (s UnmonitorInstancesInput) String() string {
  69460. return awsutil.Prettify(s)
  69461. }
  69462. // GoString returns the string representation
  69463. func (s UnmonitorInstancesInput) GoString() string {
  69464. return s.String()
  69465. }
  69466. // Validate inspects the fields of the type to determine if they are valid.
  69467. func (s *UnmonitorInstancesInput) Validate() error {
  69468. invalidParams := request.ErrInvalidParams{Context: "UnmonitorInstancesInput"}
  69469. if s.InstanceIds == nil {
  69470. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  69471. }
  69472. if invalidParams.Len() > 0 {
  69473. return invalidParams
  69474. }
  69475. return nil
  69476. }
  69477. // SetDryRun sets the DryRun field's value.
  69478. func (s *UnmonitorInstancesInput) SetDryRun(v bool) *UnmonitorInstancesInput {
  69479. s.DryRun = &v
  69480. return s
  69481. }
  69482. // SetInstanceIds sets the InstanceIds field's value.
  69483. func (s *UnmonitorInstancesInput) SetInstanceIds(v []*string) *UnmonitorInstancesInput {
  69484. s.InstanceIds = v
  69485. return s
  69486. }
  69487. type UnmonitorInstancesOutput struct {
  69488. _ struct{} `type:"structure"`
  69489. // The monitoring information.
  69490. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
  69491. }
  69492. // String returns the string representation
  69493. func (s UnmonitorInstancesOutput) String() string {
  69494. return awsutil.Prettify(s)
  69495. }
  69496. // GoString returns the string representation
  69497. func (s UnmonitorInstancesOutput) GoString() string {
  69498. return s.String()
  69499. }
  69500. // SetInstanceMonitorings sets the InstanceMonitorings field's value.
  69501. func (s *UnmonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *UnmonitorInstancesOutput {
  69502. s.InstanceMonitorings = v
  69503. return s
  69504. }
  69505. // Describes the T2 or T3 instance whose credit option for CPU usage was not
  69506. // modified.
  69507. type UnsuccessfulInstanceCreditSpecificationItem struct {
  69508. _ struct{} `type:"structure"`
  69509. // The applicable error for the T2 or T3 instance whose credit option for CPU
  69510. // usage was not modified.
  69511. Error *UnsuccessfulInstanceCreditSpecificationItemError `locationName:"error" type:"structure"`
  69512. // The ID of the instance.
  69513. InstanceId *string `locationName:"instanceId" type:"string"`
  69514. }
  69515. // String returns the string representation
  69516. func (s UnsuccessfulInstanceCreditSpecificationItem) String() string {
  69517. return awsutil.Prettify(s)
  69518. }
  69519. // GoString returns the string representation
  69520. func (s UnsuccessfulInstanceCreditSpecificationItem) GoString() string {
  69521. return s.String()
  69522. }
  69523. // SetError sets the Error field's value.
  69524. func (s *UnsuccessfulInstanceCreditSpecificationItem) SetError(v *UnsuccessfulInstanceCreditSpecificationItemError) *UnsuccessfulInstanceCreditSpecificationItem {
  69525. s.Error = v
  69526. return s
  69527. }
  69528. // SetInstanceId sets the InstanceId field's value.
  69529. func (s *UnsuccessfulInstanceCreditSpecificationItem) SetInstanceId(v string) *UnsuccessfulInstanceCreditSpecificationItem {
  69530. s.InstanceId = &v
  69531. return s
  69532. }
  69533. // Information about the error for the T2 or T3 instance whose credit option
  69534. // for CPU usage was not modified.
  69535. type UnsuccessfulInstanceCreditSpecificationItemError struct {
  69536. _ struct{} `type:"structure"`
  69537. // The error code.
  69538. Code *string `locationName:"code" type:"string" enum:"UnsuccessfulInstanceCreditSpecificationErrorCode"`
  69539. // The applicable error message.
  69540. Message *string `locationName:"message" type:"string"`
  69541. }
  69542. // String returns the string representation
  69543. func (s UnsuccessfulInstanceCreditSpecificationItemError) String() string {
  69544. return awsutil.Prettify(s)
  69545. }
  69546. // GoString returns the string representation
  69547. func (s UnsuccessfulInstanceCreditSpecificationItemError) GoString() string {
  69548. return s.String()
  69549. }
  69550. // SetCode sets the Code field's value.
  69551. func (s *UnsuccessfulInstanceCreditSpecificationItemError) SetCode(v string) *UnsuccessfulInstanceCreditSpecificationItemError {
  69552. s.Code = &v
  69553. return s
  69554. }
  69555. // SetMessage sets the Message field's value.
  69556. func (s *UnsuccessfulInstanceCreditSpecificationItemError) SetMessage(v string) *UnsuccessfulInstanceCreditSpecificationItemError {
  69557. s.Message = &v
  69558. return s
  69559. }
  69560. // Information about items that were not successfully processed in a batch call.
  69561. type UnsuccessfulItem struct {
  69562. _ struct{} `type:"structure"`
  69563. // Information about the error.
  69564. Error *UnsuccessfulItemError `locationName:"error" type:"structure"`
  69565. // The ID of the resource.
  69566. ResourceId *string `locationName:"resourceId" type:"string"`
  69567. }
  69568. // String returns the string representation
  69569. func (s UnsuccessfulItem) String() string {
  69570. return awsutil.Prettify(s)
  69571. }
  69572. // GoString returns the string representation
  69573. func (s UnsuccessfulItem) GoString() string {
  69574. return s.String()
  69575. }
  69576. // SetError sets the Error field's value.
  69577. func (s *UnsuccessfulItem) SetError(v *UnsuccessfulItemError) *UnsuccessfulItem {
  69578. s.Error = v
  69579. return s
  69580. }
  69581. // SetResourceId sets the ResourceId field's value.
  69582. func (s *UnsuccessfulItem) SetResourceId(v string) *UnsuccessfulItem {
  69583. s.ResourceId = &v
  69584. return s
  69585. }
  69586. // Information about the error that occurred. For more information about errors,
  69587. // see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html).
  69588. type UnsuccessfulItemError struct {
  69589. _ struct{} `type:"structure"`
  69590. // The error code.
  69591. Code *string `locationName:"code" type:"string"`
  69592. // The error message accompanying the error code.
  69593. Message *string `locationName:"message" type:"string"`
  69594. }
  69595. // String returns the string representation
  69596. func (s UnsuccessfulItemError) String() string {
  69597. return awsutil.Prettify(s)
  69598. }
  69599. // GoString returns the string representation
  69600. func (s UnsuccessfulItemError) GoString() string {
  69601. return s.String()
  69602. }
  69603. // SetCode sets the Code field's value.
  69604. func (s *UnsuccessfulItemError) SetCode(v string) *UnsuccessfulItemError {
  69605. s.Code = &v
  69606. return s
  69607. }
  69608. // SetMessage sets the Message field's value.
  69609. func (s *UnsuccessfulItemError) SetMessage(v string) *UnsuccessfulItemError {
  69610. s.Message = &v
  69611. return s
  69612. }
  69613. type UpdateSecurityGroupRuleDescriptionsEgressInput struct {
  69614. _ struct{} `type:"structure"`
  69615. // Checks whether you have the required permissions for the action, without
  69616. // actually making the request, and provides an error response. If you have
  69617. // the required permissions, the error response is DryRunOperation. Otherwise,
  69618. // it is UnauthorizedOperation.
  69619. DryRun *bool `type:"boolean"`
  69620. // The ID of the security group. You must specify either the security group
  69621. // ID or the security group name in the request. For security groups in a nondefault
  69622. // VPC, you must specify the security group ID.
  69623. GroupId *string `type:"string"`
  69624. // [Default VPC] The name of the security group. You must specify either the
  69625. // security group ID or the security group name in the request.
  69626. GroupName *string `type:"string"`
  69627. // The IP permissions for the security group rule.
  69628. //
  69629. // IpPermissions is a required field
  69630. IpPermissions []*IpPermission `locationNameList:"item" type:"list" required:"true"`
  69631. }
  69632. // String returns the string representation
  69633. func (s UpdateSecurityGroupRuleDescriptionsEgressInput) String() string {
  69634. return awsutil.Prettify(s)
  69635. }
  69636. // GoString returns the string representation
  69637. func (s UpdateSecurityGroupRuleDescriptionsEgressInput) GoString() string {
  69638. return s.String()
  69639. }
  69640. // Validate inspects the fields of the type to determine if they are valid.
  69641. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) Validate() error {
  69642. invalidParams := request.ErrInvalidParams{Context: "UpdateSecurityGroupRuleDescriptionsEgressInput"}
  69643. if s.IpPermissions == nil {
  69644. invalidParams.Add(request.NewErrParamRequired("IpPermissions"))
  69645. }
  69646. if invalidParams.Len() > 0 {
  69647. return invalidParams
  69648. }
  69649. return nil
  69650. }
  69651. // SetDryRun sets the DryRun field's value.
  69652. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetDryRun(v bool) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  69653. s.DryRun = &v
  69654. return s
  69655. }
  69656. // SetGroupId sets the GroupId field's value.
  69657. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetGroupId(v string) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  69658. s.GroupId = &v
  69659. return s
  69660. }
  69661. // SetGroupName sets the GroupName field's value.
  69662. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetGroupName(v string) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  69663. s.GroupName = &v
  69664. return s
  69665. }
  69666. // SetIpPermissions sets the IpPermissions field's value.
  69667. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetIpPermissions(v []*IpPermission) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  69668. s.IpPermissions = v
  69669. return s
  69670. }
  69671. type UpdateSecurityGroupRuleDescriptionsEgressOutput struct {
  69672. _ struct{} `type:"structure"`
  69673. // Returns true if the request succeeds; otherwise, returns an error.
  69674. Return *bool `locationName:"return" type:"boolean"`
  69675. }
  69676. // String returns the string representation
  69677. func (s UpdateSecurityGroupRuleDescriptionsEgressOutput) String() string {
  69678. return awsutil.Prettify(s)
  69679. }
  69680. // GoString returns the string representation
  69681. func (s UpdateSecurityGroupRuleDescriptionsEgressOutput) GoString() string {
  69682. return s.String()
  69683. }
  69684. // SetReturn sets the Return field's value.
  69685. func (s *UpdateSecurityGroupRuleDescriptionsEgressOutput) SetReturn(v bool) *UpdateSecurityGroupRuleDescriptionsEgressOutput {
  69686. s.Return = &v
  69687. return s
  69688. }
  69689. type UpdateSecurityGroupRuleDescriptionsIngressInput struct {
  69690. _ struct{} `type:"structure"`
  69691. // Checks whether you have the required permissions for the action, without
  69692. // actually making the request, and provides an error response. If you have
  69693. // the required permissions, the error response is DryRunOperation. Otherwise,
  69694. // it is UnauthorizedOperation.
  69695. DryRun *bool `type:"boolean"`
  69696. // The ID of the security group. You must specify either the security group
  69697. // ID or the security group name in the request. For security groups in a nondefault
  69698. // VPC, you must specify the security group ID.
  69699. GroupId *string `type:"string"`
  69700. // [EC2-Classic, default VPC] The name of the security group. You must specify
  69701. // either the security group ID or the security group name in the request.
  69702. GroupName *string `type:"string"`
  69703. // The IP permissions for the security group rule.
  69704. //
  69705. // IpPermissions is a required field
  69706. IpPermissions []*IpPermission `locationNameList:"item" type:"list" required:"true"`
  69707. }
  69708. // String returns the string representation
  69709. func (s UpdateSecurityGroupRuleDescriptionsIngressInput) String() string {
  69710. return awsutil.Prettify(s)
  69711. }
  69712. // GoString returns the string representation
  69713. func (s UpdateSecurityGroupRuleDescriptionsIngressInput) GoString() string {
  69714. return s.String()
  69715. }
  69716. // Validate inspects the fields of the type to determine if they are valid.
  69717. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) Validate() error {
  69718. invalidParams := request.ErrInvalidParams{Context: "UpdateSecurityGroupRuleDescriptionsIngressInput"}
  69719. if s.IpPermissions == nil {
  69720. invalidParams.Add(request.NewErrParamRequired("IpPermissions"))
  69721. }
  69722. if invalidParams.Len() > 0 {
  69723. return invalidParams
  69724. }
  69725. return nil
  69726. }
  69727. // SetDryRun sets the DryRun field's value.
  69728. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetDryRun(v bool) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  69729. s.DryRun = &v
  69730. return s
  69731. }
  69732. // SetGroupId sets the GroupId field's value.
  69733. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetGroupId(v string) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  69734. s.GroupId = &v
  69735. return s
  69736. }
  69737. // SetGroupName sets the GroupName field's value.
  69738. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetGroupName(v string) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  69739. s.GroupName = &v
  69740. return s
  69741. }
  69742. // SetIpPermissions sets the IpPermissions field's value.
  69743. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetIpPermissions(v []*IpPermission) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  69744. s.IpPermissions = v
  69745. return s
  69746. }
  69747. type UpdateSecurityGroupRuleDescriptionsIngressOutput struct {
  69748. _ struct{} `type:"structure"`
  69749. // Returns true if the request succeeds; otherwise, returns an error.
  69750. Return *bool `locationName:"return" type:"boolean"`
  69751. }
  69752. // String returns the string representation
  69753. func (s UpdateSecurityGroupRuleDescriptionsIngressOutput) String() string {
  69754. return awsutil.Prettify(s)
  69755. }
  69756. // GoString returns the string representation
  69757. func (s UpdateSecurityGroupRuleDescriptionsIngressOutput) GoString() string {
  69758. return s.String()
  69759. }
  69760. // SetReturn sets the Return field's value.
  69761. func (s *UpdateSecurityGroupRuleDescriptionsIngressOutput) SetReturn(v bool) *UpdateSecurityGroupRuleDescriptionsIngressOutput {
  69762. s.Return = &v
  69763. return s
  69764. }
  69765. // Describes the S3 bucket for the disk image.
  69766. type UserBucket struct {
  69767. _ struct{} `type:"structure"`
  69768. // The name of the S3 bucket where the disk image is located.
  69769. S3Bucket *string `type:"string"`
  69770. // The file name of the disk image.
  69771. S3Key *string `type:"string"`
  69772. }
  69773. // String returns the string representation
  69774. func (s UserBucket) String() string {
  69775. return awsutil.Prettify(s)
  69776. }
  69777. // GoString returns the string representation
  69778. func (s UserBucket) GoString() string {
  69779. return s.String()
  69780. }
  69781. // SetS3Bucket sets the S3Bucket field's value.
  69782. func (s *UserBucket) SetS3Bucket(v string) *UserBucket {
  69783. s.S3Bucket = &v
  69784. return s
  69785. }
  69786. // SetS3Key sets the S3Key field's value.
  69787. func (s *UserBucket) SetS3Key(v string) *UserBucket {
  69788. s.S3Key = &v
  69789. return s
  69790. }
  69791. // Describes the S3 bucket for the disk image.
  69792. type UserBucketDetails struct {
  69793. _ struct{} `type:"structure"`
  69794. // The S3 bucket from which the disk image was created.
  69795. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  69796. // The file name of the disk image.
  69797. S3Key *string `locationName:"s3Key" type:"string"`
  69798. }
  69799. // String returns the string representation
  69800. func (s UserBucketDetails) String() string {
  69801. return awsutil.Prettify(s)
  69802. }
  69803. // GoString returns the string representation
  69804. func (s UserBucketDetails) GoString() string {
  69805. return s.String()
  69806. }
  69807. // SetS3Bucket sets the S3Bucket field's value.
  69808. func (s *UserBucketDetails) SetS3Bucket(v string) *UserBucketDetails {
  69809. s.S3Bucket = &v
  69810. return s
  69811. }
  69812. // SetS3Key sets the S3Key field's value.
  69813. func (s *UserBucketDetails) SetS3Key(v string) *UserBucketDetails {
  69814. s.S3Key = &v
  69815. return s
  69816. }
  69817. // Describes the user data for an instance.
  69818. type UserData struct {
  69819. _ struct{} `type:"structure"`
  69820. // The user data. If you are using an AWS SDK or command line tool, Base64-encoding
  69821. // is performed for you, and you can load the text from a file. Otherwise, you
  69822. // must provide Base64-encoded text.
  69823. Data *string `locationName:"data" type:"string"`
  69824. }
  69825. // String returns the string representation
  69826. func (s UserData) String() string {
  69827. return awsutil.Prettify(s)
  69828. }
  69829. // GoString returns the string representation
  69830. func (s UserData) GoString() string {
  69831. return s.String()
  69832. }
  69833. // SetData sets the Data field's value.
  69834. func (s *UserData) SetData(v string) *UserData {
  69835. s.Data = &v
  69836. return s
  69837. }
  69838. // Describes a security group and AWS account ID pair.
  69839. type UserIdGroupPair struct {
  69840. _ struct{} `type:"structure"`
  69841. // A description for the security group rule that references this user ID group
  69842. // pair.
  69843. //
  69844. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  69845. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  69846. Description *string `locationName:"description" type:"string"`
  69847. // The ID of the security group.
  69848. GroupId *string `locationName:"groupId" type:"string"`
  69849. // The name of the security group. In a request, use this parameter for a security
  69850. // group in EC2-Classic or a default VPC only. For a security group in a nondefault
  69851. // VPC, use the security group ID.
  69852. //
  69853. // For a referenced security group in another VPC, this value is not returned
  69854. // if the referenced security group is deleted.
  69855. GroupName *string `locationName:"groupName" type:"string"`
  69856. // The status of a VPC peering connection, if applicable.
  69857. PeeringStatus *string `locationName:"peeringStatus" type:"string"`
  69858. // The ID of an AWS account.
  69859. //
  69860. // For a referenced security group in another VPC, the account ID of the referenced
  69861. // security group is returned in the response. If the referenced security group
  69862. // is deleted, this value is not returned.
  69863. //
  69864. // [EC2-Classic] Required when adding or removing rules that reference a security
  69865. // group in another AWS account.
  69866. UserId *string `locationName:"userId" type:"string"`
  69867. // The ID of the VPC for the referenced security group, if applicable.
  69868. VpcId *string `locationName:"vpcId" type:"string"`
  69869. // The ID of the VPC peering connection, if applicable.
  69870. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  69871. }
  69872. // String returns the string representation
  69873. func (s UserIdGroupPair) String() string {
  69874. return awsutil.Prettify(s)
  69875. }
  69876. // GoString returns the string representation
  69877. func (s UserIdGroupPair) GoString() string {
  69878. return s.String()
  69879. }
  69880. // SetDescription sets the Description field's value.
  69881. func (s *UserIdGroupPair) SetDescription(v string) *UserIdGroupPair {
  69882. s.Description = &v
  69883. return s
  69884. }
  69885. // SetGroupId sets the GroupId field's value.
  69886. func (s *UserIdGroupPair) SetGroupId(v string) *UserIdGroupPair {
  69887. s.GroupId = &v
  69888. return s
  69889. }
  69890. // SetGroupName sets the GroupName field's value.
  69891. func (s *UserIdGroupPair) SetGroupName(v string) *UserIdGroupPair {
  69892. s.GroupName = &v
  69893. return s
  69894. }
  69895. // SetPeeringStatus sets the PeeringStatus field's value.
  69896. func (s *UserIdGroupPair) SetPeeringStatus(v string) *UserIdGroupPair {
  69897. s.PeeringStatus = &v
  69898. return s
  69899. }
  69900. // SetUserId sets the UserId field's value.
  69901. func (s *UserIdGroupPair) SetUserId(v string) *UserIdGroupPair {
  69902. s.UserId = &v
  69903. return s
  69904. }
  69905. // SetVpcId sets the VpcId field's value.
  69906. func (s *UserIdGroupPair) SetVpcId(v string) *UserIdGroupPair {
  69907. s.VpcId = &v
  69908. return s
  69909. }
  69910. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  69911. func (s *UserIdGroupPair) SetVpcPeeringConnectionId(v string) *UserIdGroupPair {
  69912. s.VpcPeeringConnectionId = &v
  69913. return s
  69914. }
  69915. // Describes telemetry for a VPN tunnel.
  69916. type VgwTelemetry struct {
  69917. _ struct{} `type:"structure"`
  69918. // The number of accepted routes.
  69919. AcceptedRouteCount *int64 `locationName:"acceptedRouteCount" type:"integer"`
  69920. // The date and time of the last change in status.
  69921. LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp"`
  69922. // The Internet-routable IP address of the virtual private gateway's outside
  69923. // interface.
  69924. OutsideIpAddress *string `locationName:"outsideIpAddress" type:"string"`
  69925. // The status of the VPN tunnel.
  69926. Status *string `locationName:"status" type:"string" enum:"TelemetryStatus"`
  69927. // If an error occurs, a description of the error.
  69928. StatusMessage *string `locationName:"statusMessage" type:"string"`
  69929. }
  69930. // String returns the string representation
  69931. func (s VgwTelemetry) String() string {
  69932. return awsutil.Prettify(s)
  69933. }
  69934. // GoString returns the string representation
  69935. func (s VgwTelemetry) GoString() string {
  69936. return s.String()
  69937. }
  69938. // SetAcceptedRouteCount sets the AcceptedRouteCount field's value.
  69939. func (s *VgwTelemetry) SetAcceptedRouteCount(v int64) *VgwTelemetry {
  69940. s.AcceptedRouteCount = &v
  69941. return s
  69942. }
  69943. // SetLastStatusChange sets the LastStatusChange field's value.
  69944. func (s *VgwTelemetry) SetLastStatusChange(v time.Time) *VgwTelemetry {
  69945. s.LastStatusChange = &v
  69946. return s
  69947. }
  69948. // SetOutsideIpAddress sets the OutsideIpAddress field's value.
  69949. func (s *VgwTelemetry) SetOutsideIpAddress(v string) *VgwTelemetry {
  69950. s.OutsideIpAddress = &v
  69951. return s
  69952. }
  69953. // SetStatus sets the Status field's value.
  69954. func (s *VgwTelemetry) SetStatus(v string) *VgwTelemetry {
  69955. s.Status = &v
  69956. return s
  69957. }
  69958. // SetStatusMessage sets the StatusMessage field's value.
  69959. func (s *VgwTelemetry) SetStatusMessage(v string) *VgwTelemetry {
  69960. s.StatusMessage = &v
  69961. return s
  69962. }
  69963. // Describes a volume.
  69964. type Volume struct {
  69965. _ struct{} `type:"structure"`
  69966. // Information about the volume attachments.
  69967. Attachments []*VolumeAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  69968. // The Availability Zone for the volume.
  69969. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  69970. // The time stamp when volume creation was initiated.
  69971. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  69972. // Indicates whether the volume will be encrypted.
  69973. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  69974. // The number of I/O operations per second (IOPS) that the volume supports.
  69975. // For Provisioned IOPS SSD volumes, this represents the number of IOPS that
  69976. // are provisioned for the volume. For General Purpose SSD volumes, this represents
  69977. // the baseline performance of the volume and the rate at which the volume accumulates
  69978. // I/O credits for bursting. For more information about General Purpose SSD
  69979. // baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types
  69980. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  69981. // in the Amazon Elastic Compute Cloud User Guide.
  69982. //
  69983. // Constraints: Range is 100-16,000 IOPS for gp2 volumes and 100 to 64,000IOPS
  69984. // for io1 volumes in most regions. Maximum io1IOPS of 64,000 is guaranteed
  69985. // only on Nitro-based instances (AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances).
  69986. // Other instance families guarantee performance up to 32,000 IOPS. For more
  69987. // information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  69988. // in the Amazon Elastic Compute Cloud User Guide.
  69989. //
  69990. // Condition: This parameter is required for requests to create io1 volumes;
  69991. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  69992. Iops *int64 `locationName:"iops" type:"integer"`
  69993. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  69994. // key (CMK) that was used to protect the volume encryption key for the volume.
  69995. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  69996. // The size of the volume, in GiBs.
  69997. Size *int64 `locationName:"size" type:"integer"`
  69998. // The snapshot from which the volume was created, if applicable.
  69999. SnapshotId *string `locationName:"snapshotId" type:"string"`
  70000. // The volume state.
  70001. State *string `locationName:"status" type:"string" enum:"VolumeState"`
  70002. // Any tags assigned to the volume.
  70003. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  70004. // The ID of the volume.
  70005. VolumeId *string `locationName:"volumeId" type:"string"`
  70006. // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
  70007. // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
  70008. // for Magnetic volumes.
  70009. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  70010. }
  70011. // String returns the string representation
  70012. func (s Volume) String() string {
  70013. return awsutil.Prettify(s)
  70014. }
  70015. // GoString returns the string representation
  70016. func (s Volume) GoString() string {
  70017. return s.String()
  70018. }
  70019. // SetAttachments sets the Attachments field's value.
  70020. func (s *Volume) SetAttachments(v []*VolumeAttachment) *Volume {
  70021. s.Attachments = v
  70022. return s
  70023. }
  70024. // SetAvailabilityZone sets the AvailabilityZone field's value.
  70025. func (s *Volume) SetAvailabilityZone(v string) *Volume {
  70026. s.AvailabilityZone = &v
  70027. return s
  70028. }
  70029. // SetCreateTime sets the CreateTime field's value.
  70030. func (s *Volume) SetCreateTime(v time.Time) *Volume {
  70031. s.CreateTime = &v
  70032. return s
  70033. }
  70034. // SetEncrypted sets the Encrypted field's value.
  70035. func (s *Volume) SetEncrypted(v bool) *Volume {
  70036. s.Encrypted = &v
  70037. return s
  70038. }
  70039. // SetIops sets the Iops field's value.
  70040. func (s *Volume) SetIops(v int64) *Volume {
  70041. s.Iops = &v
  70042. return s
  70043. }
  70044. // SetKmsKeyId sets the KmsKeyId field's value.
  70045. func (s *Volume) SetKmsKeyId(v string) *Volume {
  70046. s.KmsKeyId = &v
  70047. return s
  70048. }
  70049. // SetSize sets the Size field's value.
  70050. func (s *Volume) SetSize(v int64) *Volume {
  70051. s.Size = &v
  70052. return s
  70053. }
  70054. // SetSnapshotId sets the SnapshotId field's value.
  70055. func (s *Volume) SetSnapshotId(v string) *Volume {
  70056. s.SnapshotId = &v
  70057. return s
  70058. }
  70059. // SetState sets the State field's value.
  70060. func (s *Volume) SetState(v string) *Volume {
  70061. s.State = &v
  70062. return s
  70063. }
  70064. // SetTags sets the Tags field's value.
  70065. func (s *Volume) SetTags(v []*Tag) *Volume {
  70066. s.Tags = v
  70067. return s
  70068. }
  70069. // SetVolumeId sets the VolumeId field's value.
  70070. func (s *Volume) SetVolumeId(v string) *Volume {
  70071. s.VolumeId = &v
  70072. return s
  70073. }
  70074. // SetVolumeType sets the VolumeType field's value.
  70075. func (s *Volume) SetVolumeType(v string) *Volume {
  70076. s.VolumeType = &v
  70077. return s
  70078. }
  70079. // Describes volume attachment details.
  70080. type VolumeAttachment struct {
  70081. _ struct{} `type:"structure"`
  70082. // The time stamp when the attachment initiated.
  70083. AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
  70084. // Indicates whether the EBS volume is deleted on instance termination.
  70085. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  70086. // The device name.
  70087. Device *string `locationName:"device" type:"string"`
  70088. // The ID of the instance.
  70089. InstanceId *string `locationName:"instanceId" type:"string"`
  70090. // The attachment state of the volume.
  70091. State *string `locationName:"status" type:"string" enum:"VolumeAttachmentState"`
  70092. // The ID of the volume.
  70093. VolumeId *string `locationName:"volumeId" type:"string"`
  70094. }
  70095. // String returns the string representation
  70096. func (s VolumeAttachment) String() string {
  70097. return awsutil.Prettify(s)
  70098. }
  70099. // GoString returns the string representation
  70100. func (s VolumeAttachment) GoString() string {
  70101. return s.String()
  70102. }
  70103. // SetAttachTime sets the AttachTime field's value.
  70104. func (s *VolumeAttachment) SetAttachTime(v time.Time) *VolumeAttachment {
  70105. s.AttachTime = &v
  70106. return s
  70107. }
  70108. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  70109. func (s *VolumeAttachment) SetDeleteOnTermination(v bool) *VolumeAttachment {
  70110. s.DeleteOnTermination = &v
  70111. return s
  70112. }
  70113. // SetDevice sets the Device field's value.
  70114. func (s *VolumeAttachment) SetDevice(v string) *VolumeAttachment {
  70115. s.Device = &v
  70116. return s
  70117. }
  70118. // SetInstanceId sets the InstanceId field's value.
  70119. func (s *VolumeAttachment) SetInstanceId(v string) *VolumeAttachment {
  70120. s.InstanceId = &v
  70121. return s
  70122. }
  70123. // SetState sets the State field's value.
  70124. func (s *VolumeAttachment) SetState(v string) *VolumeAttachment {
  70125. s.State = &v
  70126. return s
  70127. }
  70128. // SetVolumeId sets the VolumeId field's value.
  70129. func (s *VolumeAttachment) SetVolumeId(v string) *VolumeAttachment {
  70130. s.VolumeId = &v
  70131. return s
  70132. }
  70133. // Describes an EBS volume.
  70134. type VolumeDetail struct {
  70135. _ struct{} `type:"structure"`
  70136. // The size of the volume, in GiB.
  70137. //
  70138. // Size is a required field
  70139. Size *int64 `locationName:"size" type:"long" required:"true"`
  70140. }
  70141. // String returns the string representation
  70142. func (s VolumeDetail) String() string {
  70143. return awsutil.Prettify(s)
  70144. }
  70145. // GoString returns the string representation
  70146. func (s VolumeDetail) GoString() string {
  70147. return s.String()
  70148. }
  70149. // Validate inspects the fields of the type to determine if they are valid.
  70150. func (s *VolumeDetail) Validate() error {
  70151. invalidParams := request.ErrInvalidParams{Context: "VolumeDetail"}
  70152. if s.Size == nil {
  70153. invalidParams.Add(request.NewErrParamRequired("Size"))
  70154. }
  70155. if invalidParams.Len() > 0 {
  70156. return invalidParams
  70157. }
  70158. return nil
  70159. }
  70160. // SetSize sets the Size field's value.
  70161. func (s *VolumeDetail) SetSize(v int64) *VolumeDetail {
  70162. s.Size = &v
  70163. return s
  70164. }
  70165. // Describes the modification status of an EBS volume.
  70166. //
  70167. // If the volume has never been modified, some element values will be null.
  70168. type VolumeModification struct {
  70169. _ struct{} `type:"structure"`
  70170. // The modification completion or failure time.
  70171. EndTime *time.Time `locationName:"endTime" type:"timestamp"`
  70172. // The current modification state. The modification state is null for unmodified
  70173. // volumes.
  70174. ModificationState *string `locationName:"modificationState" type:"string" enum:"VolumeModificationState"`
  70175. // The original IOPS rate of the volume.
  70176. OriginalIops *int64 `locationName:"originalIops" type:"integer"`
  70177. // The original size of the volume.
  70178. OriginalSize *int64 `locationName:"originalSize" type:"integer"`
  70179. // The original EBS volume type of the volume.
  70180. OriginalVolumeType *string `locationName:"originalVolumeType" type:"string" enum:"VolumeType"`
  70181. // The modification progress, from 0 to 100 percent complete.
  70182. Progress *int64 `locationName:"progress" type:"long"`
  70183. // The modification start time.
  70184. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  70185. // A status message about the modification progress or failure.
  70186. StatusMessage *string `locationName:"statusMessage" type:"string"`
  70187. // The target IOPS rate of the volume.
  70188. TargetIops *int64 `locationName:"targetIops" type:"integer"`
  70189. // The target size of the volume, in GiB.
  70190. TargetSize *int64 `locationName:"targetSize" type:"integer"`
  70191. // The target EBS volume type of the volume.
  70192. TargetVolumeType *string `locationName:"targetVolumeType" type:"string" enum:"VolumeType"`
  70193. // The ID of the volume.
  70194. VolumeId *string `locationName:"volumeId" type:"string"`
  70195. }
  70196. // String returns the string representation
  70197. func (s VolumeModification) String() string {
  70198. return awsutil.Prettify(s)
  70199. }
  70200. // GoString returns the string representation
  70201. func (s VolumeModification) GoString() string {
  70202. return s.String()
  70203. }
  70204. // SetEndTime sets the EndTime field's value.
  70205. func (s *VolumeModification) SetEndTime(v time.Time) *VolumeModification {
  70206. s.EndTime = &v
  70207. return s
  70208. }
  70209. // SetModificationState sets the ModificationState field's value.
  70210. func (s *VolumeModification) SetModificationState(v string) *VolumeModification {
  70211. s.ModificationState = &v
  70212. return s
  70213. }
  70214. // SetOriginalIops sets the OriginalIops field's value.
  70215. func (s *VolumeModification) SetOriginalIops(v int64) *VolumeModification {
  70216. s.OriginalIops = &v
  70217. return s
  70218. }
  70219. // SetOriginalSize sets the OriginalSize field's value.
  70220. func (s *VolumeModification) SetOriginalSize(v int64) *VolumeModification {
  70221. s.OriginalSize = &v
  70222. return s
  70223. }
  70224. // SetOriginalVolumeType sets the OriginalVolumeType field's value.
  70225. func (s *VolumeModification) SetOriginalVolumeType(v string) *VolumeModification {
  70226. s.OriginalVolumeType = &v
  70227. return s
  70228. }
  70229. // SetProgress sets the Progress field's value.
  70230. func (s *VolumeModification) SetProgress(v int64) *VolumeModification {
  70231. s.Progress = &v
  70232. return s
  70233. }
  70234. // SetStartTime sets the StartTime field's value.
  70235. func (s *VolumeModification) SetStartTime(v time.Time) *VolumeModification {
  70236. s.StartTime = &v
  70237. return s
  70238. }
  70239. // SetStatusMessage sets the StatusMessage field's value.
  70240. func (s *VolumeModification) SetStatusMessage(v string) *VolumeModification {
  70241. s.StatusMessage = &v
  70242. return s
  70243. }
  70244. // SetTargetIops sets the TargetIops field's value.
  70245. func (s *VolumeModification) SetTargetIops(v int64) *VolumeModification {
  70246. s.TargetIops = &v
  70247. return s
  70248. }
  70249. // SetTargetSize sets the TargetSize field's value.
  70250. func (s *VolumeModification) SetTargetSize(v int64) *VolumeModification {
  70251. s.TargetSize = &v
  70252. return s
  70253. }
  70254. // SetTargetVolumeType sets the TargetVolumeType field's value.
  70255. func (s *VolumeModification) SetTargetVolumeType(v string) *VolumeModification {
  70256. s.TargetVolumeType = &v
  70257. return s
  70258. }
  70259. // SetVolumeId sets the VolumeId field's value.
  70260. func (s *VolumeModification) SetVolumeId(v string) *VolumeModification {
  70261. s.VolumeId = &v
  70262. return s
  70263. }
  70264. // Describes a volume status operation code.
  70265. type VolumeStatusAction struct {
  70266. _ struct{} `type:"structure"`
  70267. // The code identifying the operation, for example, enable-volume-io.
  70268. Code *string `locationName:"code" type:"string"`
  70269. // A description of the operation.
  70270. Description *string `locationName:"description" type:"string"`
  70271. // The ID of the event associated with this operation.
  70272. EventId *string `locationName:"eventId" type:"string"`
  70273. // The event type associated with this operation.
  70274. EventType *string `locationName:"eventType" type:"string"`
  70275. }
  70276. // String returns the string representation
  70277. func (s VolumeStatusAction) String() string {
  70278. return awsutil.Prettify(s)
  70279. }
  70280. // GoString returns the string representation
  70281. func (s VolumeStatusAction) GoString() string {
  70282. return s.String()
  70283. }
  70284. // SetCode sets the Code field's value.
  70285. func (s *VolumeStatusAction) SetCode(v string) *VolumeStatusAction {
  70286. s.Code = &v
  70287. return s
  70288. }
  70289. // SetDescription sets the Description field's value.
  70290. func (s *VolumeStatusAction) SetDescription(v string) *VolumeStatusAction {
  70291. s.Description = &v
  70292. return s
  70293. }
  70294. // SetEventId sets the EventId field's value.
  70295. func (s *VolumeStatusAction) SetEventId(v string) *VolumeStatusAction {
  70296. s.EventId = &v
  70297. return s
  70298. }
  70299. // SetEventType sets the EventType field's value.
  70300. func (s *VolumeStatusAction) SetEventType(v string) *VolumeStatusAction {
  70301. s.EventType = &v
  70302. return s
  70303. }
  70304. // Describes a volume status.
  70305. type VolumeStatusDetails struct {
  70306. _ struct{} `type:"structure"`
  70307. // The name of the volume status.
  70308. Name *string `locationName:"name" type:"string" enum:"VolumeStatusName"`
  70309. // The intended status of the volume status.
  70310. Status *string `locationName:"status" type:"string"`
  70311. }
  70312. // String returns the string representation
  70313. func (s VolumeStatusDetails) String() string {
  70314. return awsutil.Prettify(s)
  70315. }
  70316. // GoString returns the string representation
  70317. func (s VolumeStatusDetails) GoString() string {
  70318. return s.String()
  70319. }
  70320. // SetName sets the Name field's value.
  70321. func (s *VolumeStatusDetails) SetName(v string) *VolumeStatusDetails {
  70322. s.Name = &v
  70323. return s
  70324. }
  70325. // SetStatus sets the Status field's value.
  70326. func (s *VolumeStatusDetails) SetStatus(v string) *VolumeStatusDetails {
  70327. s.Status = &v
  70328. return s
  70329. }
  70330. // Describes a volume status event.
  70331. type VolumeStatusEvent struct {
  70332. _ struct{} `type:"structure"`
  70333. // A description of the event.
  70334. Description *string `locationName:"description" type:"string"`
  70335. // The ID of this event.
  70336. EventId *string `locationName:"eventId" type:"string"`
  70337. // The type of this event.
  70338. EventType *string `locationName:"eventType" type:"string"`
  70339. // The latest end time of the event.
  70340. NotAfter *time.Time `locationName:"notAfter" type:"timestamp"`
  70341. // The earliest start time of the event.
  70342. NotBefore *time.Time `locationName:"notBefore" type:"timestamp"`
  70343. }
  70344. // String returns the string representation
  70345. func (s VolumeStatusEvent) String() string {
  70346. return awsutil.Prettify(s)
  70347. }
  70348. // GoString returns the string representation
  70349. func (s VolumeStatusEvent) GoString() string {
  70350. return s.String()
  70351. }
  70352. // SetDescription sets the Description field's value.
  70353. func (s *VolumeStatusEvent) SetDescription(v string) *VolumeStatusEvent {
  70354. s.Description = &v
  70355. return s
  70356. }
  70357. // SetEventId sets the EventId field's value.
  70358. func (s *VolumeStatusEvent) SetEventId(v string) *VolumeStatusEvent {
  70359. s.EventId = &v
  70360. return s
  70361. }
  70362. // SetEventType sets the EventType field's value.
  70363. func (s *VolumeStatusEvent) SetEventType(v string) *VolumeStatusEvent {
  70364. s.EventType = &v
  70365. return s
  70366. }
  70367. // SetNotAfter sets the NotAfter field's value.
  70368. func (s *VolumeStatusEvent) SetNotAfter(v time.Time) *VolumeStatusEvent {
  70369. s.NotAfter = &v
  70370. return s
  70371. }
  70372. // SetNotBefore sets the NotBefore field's value.
  70373. func (s *VolumeStatusEvent) SetNotBefore(v time.Time) *VolumeStatusEvent {
  70374. s.NotBefore = &v
  70375. return s
  70376. }
  70377. // Describes the status of a volume.
  70378. type VolumeStatusInfo struct {
  70379. _ struct{} `type:"structure"`
  70380. // The details of the volume status.
  70381. Details []*VolumeStatusDetails `locationName:"details" locationNameList:"item" type:"list"`
  70382. // The status of the volume.
  70383. Status *string `locationName:"status" type:"string" enum:"VolumeStatusInfoStatus"`
  70384. }
  70385. // String returns the string representation
  70386. func (s VolumeStatusInfo) String() string {
  70387. return awsutil.Prettify(s)
  70388. }
  70389. // GoString returns the string representation
  70390. func (s VolumeStatusInfo) GoString() string {
  70391. return s.String()
  70392. }
  70393. // SetDetails sets the Details field's value.
  70394. func (s *VolumeStatusInfo) SetDetails(v []*VolumeStatusDetails) *VolumeStatusInfo {
  70395. s.Details = v
  70396. return s
  70397. }
  70398. // SetStatus sets the Status field's value.
  70399. func (s *VolumeStatusInfo) SetStatus(v string) *VolumeStatusInfo {
  70400. s.Status = &v
  70401. return s
  70402. }
  70403. // Describes the volume status.
  70404. type VolumeStatusItem struct {
  70405. _ struct{} `type:"structure"`
  70406. // The details of the operation.
  70407. Actions []*VolumeStatusAction `locationName:"actionsSet" locationNameList:"item" type:"list"`
  70408. // The Availability Zone of the volume.
  70409. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  70410. // A list of events associated with the volume.
  70411. Events []*VolumeStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`
  70412. // The volume ID.
  70413. VolumeId *string `locationName:"volumeId" type:"string"`
  70414. // The volume status.
  70415. VolumeStatus *VolumeStatusInfo `locationName:"volumeStatus" type:"structure"`
  70416. }
  70417. // String returns the string representation
  70418. func (s VolumeStatusItem) String() string {
  70419. return awsutil.Prettify(s)
  70420. }
  70421. // GoString returns the string representation
  70422. func (s VolumeStatusItem) GoString() string {
  70423. return s.String()
  70424. }
  70425. // SetActions sets the Actions field's value.
  70426. func (s *VolumeStatusItem) SetActions(v []*VolumeStatusAction) *VolumeStatusItem {
  70427. s.Actions = v
  70428. return s
  70429. }
  70430. // SetAvailabilityZone sets the AvailabilityZone field's value.
  70431. func (s *VolumeStatusItem) SetAvailabilityZone(v string) *VolumeStatusItem {
  70432. s.AvailabilityZone = &v
  70433. return s
  70434. }
  70435. // SetEvents sets the Events field's value.
  70436. func (s *VolumeStatusItem) SetEvents(v []*VolumeStatusEvent) *VolumeStatusItem {
  70437. s.Events = v
  70438. return s
  70439. }
  70440. // SetVolumeId sets the VolumeId field's value.
  70441. func (s *VolumeStatusItem) SetVolumeId(v string) *VolumeStatusItem {
  70442. s.VolumeId = &v
  70443. return s
  70444. }
  70445. // SetVolumeStatus sets the VolumeStatus field's value.
  70446. func (s *VolumeStatusItem) SetVolumeStatus(v *VolumeStatusInfo) *VolumeStatusItem {
  70447. s.VolumeStatus = v
  70448. return s
  70449. }
  70450. // Describes a VPC.
  70451. type Vpc struct {
  70452. _ struct{} `type:"structure"`
  70453. // The primary IPv4 CIDR block for the VPC.
  70454. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  70455. // Information about the IPv4 CIDR blocks associated with the VPC.
  70456. CidrBlockAssociationSet []*VpcCidrBlockAssociation `locationName:"cidrBlockAssociationSet" locationNameList:"item" type:"list"`
  70457. // The ID of the set of DHCP options you've associated with the VPC (or default
  70458. // if the default options are associated with the VPC).
  70459. DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`
  70460. // The allowed tenancy of instances launched into the VPC.
  70461. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  70462. // Information about the IPv6 CIDR blocks associated with the VPC.
  70463. Ipv6CidrBlockAssociationSet []*VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"`
  70464. // Indicates whether the VPC is the default VPC.
  70465. IsDefault *bool `locationName:"isDefault" type:"boolean"`
  70466. // The ID of the AWS account that owns the VPC.
  70467. OwnerId *string `locationName:"ownerId" type:"string"`
  70468. // The current state of the VPC.
  70469. State *string `locationName:"state" type:"string" enum:"VpcState"`
  70470. // Any tags assigned to the VPC.
  70471. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  70472. // The ID of the VPC.
  70473. VpcId *string `locationName:"vpcId" type:"string"`
  70474. }
  70475. // String returns the string representation
  70476. func (s Vpc) String() string {
  70477. return awsutil.Prettify(s)
  70478. }
  70479. // GoString returns the string representation
  70480. func (s Vpc) GoString() string {
  70481. return s.String()
  70482. }
  70483. // SetCidrBlock sets the CidrBlock field's value.
  70484. func (s *Vpc) SetCidrBlock(v string) *Vpc {
  70485. s.CidrBlock = &v
  70486. return s
  70487. }
  70488. // SetCidrBlockAssociationSet sets the CidrBlockAssociationSet field's value.
  70489. func (s *Vpc) SetCidrBlockAssociationSet(v []*VpcCidrBlockAssociation) *Vpc {
  70490. s.CidrBlockAssociationSet = v
  70491. return s
  70492. }
  70493. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  70494. func (s *Vpc) SetDhcpOptionsId(v string) *Vpc {
  70495. s.DhcpOptionsId = &v
  70496. return s
  70497. }
  70498. // SetInstanceTenancy sets the InstanceTenancy field's value.
  70499. func (s *Vpc) SetInstanceTenancy(v string) *Vpc {
  70500. s.InstanceTenancy = &v
  70501. return s
  70502. }
  70503. // SetIpv6CidrBlockAssociationSet sets the Ipv6CidrBlockAssociationSet field's value.
  70504. func (s *Vpc) SetIpv6CidrBlockAssociationSet(v []*VpcIpv6CidrBlockAssociation) *Vpc {
  70505. s.Ipv6CidrBlockAssociationSet = v
  70506. return s
  70507. }
  70508. // SetIsDefault sets the IsDefault field's value.
  70509. func (s *Vpc) SetIsDefault(v bool) *Vpc {
  70510. s.IsDefault = &v
  70511. return s
  70512. }
  70513. // SetOwnerId sets the OwnerId field's value.
  70514. func (s *Vpc) SetOwnerId(v string) *Vpc {
  70515. s.OwnerId = &v
  70516. return s
  70517. }
  70518. // SetState sets the State field's value.
  70519. func (s *Vpc) SetState(v string) *Vpc {
  70520. s.State = &v
  70521. return s
  70522. }
  70523. // SetTags sets the Tags field's value.
  70524. func (s *Vpc) SetTags(v []*Tag) *Vpc {
  70525. s.Tags = v
  70526. return s
  70527. }
  70528. // SetVpcId sets the VpcId field's value.
  70529. func (s *Vpc) SetVpcId(v string) *Vpc {
  70530. s.VpcId = &v
  70531. return s
  70532. }
  70533. // Describes an attachment between a virtual private gateway and a VPC.
  70534. type VpcAttachment struct {
  70535. _ struct{} `type:"structure"`
  70536. // The current state of the attachment.
  70537. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"`
  70538. // The ID of the VPC.
  70539. VpcId *string `locationName:"vpcId" type:"string"`
  70540. }
  70541. // String returns the string representation
  70542. func (s VpcAttachment) String() string {
  70543. return awsutil.Prettify(s)
  70544. }
  70545. // GoString returns the string representation
  70546. func (s VpcAttachment) GoString() string {
  70547. return s.String()
  70548. }
  70549. // SetState sets the State field's value.
  70550. func (s *VpcAttachment) SetState(v string) *VpcAttachment {
  70551. s.State = &v
  70552. return s
  70553. }
  70554. // SetVpcId sets the VpcId field's value.
  70555. func (s *VpcAttachment) SetVpcId(v string) *VpcAttachment {
  70556. s.VpcId = &v
  70557. return s
  70558. }
  70559. // Describes an IPv4 CIDR block associated with a VPC.
  70560. type VpcCidrBlockAssociation struct {
  70561. _ struct{} `type:"structure"`
  70562. // The association ID for the IPv4 CIDR block.
  70563. AssociationId *string `locationName:"associationId" type:"string"`
  70564. // The IPv4 CIDR block.
  70565. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  70566. // Information about the state of the CIDR block.
  70567. CidrBlockState *VpcCidrBlockState `locationName:"cidrBlockState" type:"structure"`
  70568. }
  70569. // String returns the string representation
  70570. func (s VpcCidrBlockAssociation) String() string {
  70571. return awsutil.Prettify(s)
  70572. }
  70573. // GoString returns the string representation
  70574. func (s VpcCidrBlockAssociation) GoString() string {
  70575. return s.String()
  70576. }
  70577. // SetAssociationId sets the AssociationId field's value.
  70578. func (s *VpcCidrBlockAssociation) SetAssociationId(v string) *VpcCidrBlockAssociation {
  70579. s.AssociationId = &v
  70580. return s
  70581. }
  70582. // SetCidrBlock sets the CidrBlock field's value.
  70583. func (s *VpcCidrBlockAssociation) SetCidrBlock(v string) *VpcCidrBlockAssociation {
  70584. s.CidrBlock = &v
  70585. return s
  70586. }
  70587. // SetCidrBlockState sets the CidrBlockState field's value.
  70588. func (s *VpcCidrBlockAssociation) SetCidrBlockState(v *VpcCidrBlockState) *VpcCidrBlockAssociation {
  70589. s.CidrBlockState = v
  70590. return s
  70591. }
  70592. // Describes the state of a CIDR block.
  70593. type VpcCidrBlockState struct {
  70594. _ struct{} `type:"structure"`
  70595. // The state of the CIDR block.
  70596. State *string `locationName:"state" type:"string" enum:"VpcCidrBlockStateCode"`
  70597. // A message about the status of the CIDR block, if applicable.
  70598. StatusMessage *string `locationName:"statusMessage" type:"string"`
  70599. }
  70600. // String returns the string representation
  70601. func (s VpcCidrBlockState) String() string {
  70602. return awsutil.Prettify(s)
  70603. }
  70604. // GoString returns the string representation
  70605. func (s VpcCidrBlockState) GoString() string {
  70606. return s.String()
  70607. }
  70608. // SetState sets the State field's value.
  70609. func (s *VpcCidrBlockState) SetState(v string) *VpcCidrBlockState {
  70610. s.State = &v
  70611. return s
  70612. }
  70613. // SetStatusMessage sets the StatusMessage field's value.
  70614. func (s *VpcCidrBlockState) SetStatusMessage(v string) *VpcCidrBlockState {
  70615. s.StatusMessage = &v
  70616. return s
  70617. }
  70618. // Describes whether a VPC is enabled for ClassicLink.
  70619. type VpcClassicLink struct {
  70620. _ struct{} `type:"structure"`
  70621. // Indicates whether the VPC is enabled for ClassicLink.
  70622. ClassicLinkEnabled *bool `locationName:"classicLinkEnabled" type:"boolean"`
  70623. // Any tags assigned to the VPC.
  70624. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  70625. // The ID of the VPC.
  70626. VpcId *string `locationName:"vpcId" type:"string"`
  70627. }
  70628. // String returns the string representation
  70629. func (s VpcClassicLink) String() string {
  70630. return awsutil.Prettify(s)
  70631. }
  70632. // GoString returns the string representation
  70633. func (s VpcClassicLink) GoString() string {
  70634. return s.String()
  70635. }
  70636. // SetClassicLinkEnabled sets the ClassicLinkEnabled field's value.
  70637. func (s *VpcClassicLink) SetClassicLinkEnabled(v bool) *VpcClassicLink {
  70638. s.ClassicLinkEnabled = &v
  70639. return s
  70640. }
  70641. // SetTags sets the Tags field's value.
  70642. func (s *VpcClassicLink) SetTags(v []*Tag) *VpcClassicLink {
  70643. s.Tags = v
  70644. return s
  70645. }
  70646. // SetVpcId sets the VpcId field's value.
  70647. func (s *VpcClassicLink) SetVpcId(v string) *VpcClassicLink {
  70648. s.VpcId = &v
  70649. return s
  70650. }
  70651. // Describes a VPC endpoint.
  70652. type VpcEndpoint struct {
  70653. _ struct{} `type:"structure"`
  70654. // The date and time the VPC endpoint was created.
  70655. CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp"`
  70656. // (Interface endpoint) The DNS entries for the endpoint.
  70657. DnsEntries []*DnsEntry `locationName:"dnsEntrySet" locationNameList:"item" type:"list"`
  70658. // (Interface endpoint) Information about the security groups associated with
  70659. // the network interface.
  70660. Groups []*SecurityGroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  70661. // (Interface endpoint) One or more network interfaces for the endpoint.
  70662. NetworkInterfaceIds []*string `locationName:"networkInterfaceIdSet" locationNameList:"item" type:"list"`
  70663. // The policy document associated with the endpoint, if applicable.
  70664. PolicyDocument *string `locationName:"policyDocument" type:"string"`
  70665. // (Interface endpoint) Indicates whether the VPC is associated with a private
  70666. // hosted zone.
  70667. PrivateDnsEnabled *bool `locationName:"privateDnsEnabled" type:"boolean"`
  70668. // (Gateway endpoint) One or more route tables associated with the endpoint.
  70669. RouteTableIds []*string `locationName:"routeTableIdSet" locationNameList:"item" type:"list"`
  70670. // The name of the service to which the endpoint is associated.
  70671. ServiceName *string `locationName:"serviceName" type:"string"`
  70672. // The state of the VPC endpoint.
  70673. State *string `locationName:"state" type:"string" enum:"State"`
  70674. // (Interface endpoint) One or more subnets in which the endpoint is located.
  70675. SubnetIds []*string `locationName:"subnetIdSet" locationNameList:"item" type:"list"`
  70676. // The ID of the VPC endpoint.
  70677. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  70678. // The type of endpoint.
  70679. VpcEndpointType *string `locationName:"vpcEndpointType" type:"string" enum:"VpcEndpointType"`
  70680. // The ID of the VPC to which the endpoint is associated.
  70681. VpcId *string `locationName:"vpcId" type:"string"`
  70682. }
  70683. // String returns the string representation
  70684. func (s VpcEndpoint) String() string {
  70685. return awsutil.Prettify(s)
  70686. }
  70687. // GoString returns the string representation
  70688. func (s VpcEndpoint) GoString() string {
  70689. return s.String()
  70690. }
  70691. // SetCreationTimestamp sets the CreationTimestamp field's value.
  70692. func (s *VpcEndpoint) SetCreationTimestamp(v time.Time) *VpcEndpoint {
  70693. s.CreationTimestamp = &v
  70694. return s
  70695. }
  70696. // SetDnsEntries sets the DnsEntries field's value.
  70697. func (s *VpcEndpoint) SetDnsEntries(v []*DnsEntry) *VpcEndpoint {
  70698. s.DnsEntries = v
  70699. return s
  70700. }
  70701. // SetGroups sets the Groups field's value.
  70702. func (s *VpcEndpoint) SetGroups(v []*SecurityGroupIdentifier) *VpcEndpoint {
  70703. s.Groups = v
  70704. return s
  70705. }
  70706. // SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value.
  70707. func (s *VpcEndpoint) SetNetworkInterfaceIds(v []*string) *VpcEndpoint {
  70708. s.NetworkInterfaceIds = v
  70709. return s
  70710. }
  70711. // SetPolicyDocument sets the PolicyDocument field's value.
  70712. func (s *VpcEndpoint) SetPolicyDocument(v string) *VpcEndpoint {
  70713. s.PolicyDocument = &v
  70714. return s
  70715. }
  70716. // SetPrivateDnsEnabled sets the PrivateDnsEnabled field's value.
  70717. func (s *VpcEndpoint) SetPrivateDnsEnabled(v bool) *VpcEndpoint {
  70718. s.PrivateDnsEnabled = &v
  70719. return s
  70720. }
  70721. // SetRouteTableIds sets the RouteTableIds field's value.
  70722. func (s *VpcEndpoint) SetRouteTableIds(v []*string) *VpcEndpoint {
  70723. s.RouteTableIds = v
  70724. return s
  70725. }
  70726. // SetServiceName sets the ServiceName field's value.
  70727. func (s *VpcEndpoint) SetServiceName(v string) *VpcEndpoint {
  70728. s.ServiceName = &v
  70729. return s
  70730. }
  70731. // SetState sets the State field's value.
  70732. func (s *VpcEndpoint) SetState(v string) *VpcEndpoint {
  70733. s.State = &v
  70734. return s
  70735. }
  70736. // SetSubnetIds sets the SubnetIds field's value.
  70737. func (s *VpcEndpoint) SetSubnetIds(v []*string) *VpcEndpoint {
  70738. s.SubnetIds = v
  70739. return s
  70740. }
  70741. // SetVpcEndpointId sets the VpcEndpointId field's value.
  70742. func (s *VpcEndpoint) SetVpcEndpointId(v string) *VpcEndpoint {
  70743. s.VpcEndpointId = &v
  70744. return s
  70745. }
  70746. // SetVpcEndpointType sets the VpcEndpointType field's value.
  70747. func (s *VpcEndpoint) SetVpcEndpointType(v string) *VpcEndpoint {
  70748. s.VpcEndpointType = &v
  70749. return s
  70750. }
  70751. // SetVpcId sets the VpcId field's value.
  70752. func (s *VpcEndpoint) SetVpcId(v string) *VpcEndpoint {
  70753. s.VpcId = &v
  70754. return s
  70755. }
  70756. // Describes a VPC endpoint connection to a service.
  70757. type VpcEndpointConnection struct {
  70758. _ struct{} `type:"structure"`
  70759. // The date and time the VPC endpoint was created.
  70760. CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp"`
  70761. // The ID of the service to which the endpoint is connected.
  70762. ServiceId *string `locationName:"serviceId" type:"string"`
  70763. // The ID of the VPC endpoint.
  70764. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  70765. // The AWS account ID of the owner of the VPC endpoint.
  70766. VpcEndpointOwner *string `locationName:"vpcEndpointOwner" type:"string"`
  70767. // The state of the VPC endpoint.
  70768. VpcEndpointState *string `locationName:"vpcEndpointState" type:"string" enum:"State"`
  70769. }
  70770. // String returns the string representation
  70771. func (s VpcEndpointConnection) String() string {
  70772. return awsutil.Prettify(s)
  70773. }
  70774. // GoString returns the string representation
  70775. func (s VpcEndpointConnection) GoString() string {
  70776. return s.String()
  70777. }
  70778. // SetCreationTimestamp sets the CreationTimestamp field's value.
  70779. func (s *VpcEndpointConnection) SetCreationTimestamp(v time.Time) *VpcEndpointConnection {
  70780. s.CreationTimestamp = &v
  70781. return s
  70782. }
  70783. // SetServiceId sets the ServiceId field's value.
  70784. func (s *VpcEndpointConnection) SetServiceId(v string) *VpcEndpointConnection {
  70785. s.ServiceId = &v
  70786. return s
  70787. }
  70788. // SetVpcEndpointId sets the VpcEndpointId field's value.
  70789. func (s *VpcEndpointConnection) SetVpcEndpointId(v string) *VpcEndpointConnection {
  70790. s.VpcEndpointId = &v
  70791. return s
  70792. }
  70793. // SetVpcEndpointOwner sets the VpcEndpointOwner field's value.
  70794. func (s *VpcEndpointConnection) SetVpcEndpointOwner(v string) *VpcEndpointConnection {
  70795. s.VpcEndpointOwner = &v
  70796. return s
  70797. }
  70798. // SetVpcEndpointState sets the VpcEndpointState field's value.
  70799. func (s *VpcEndpointConnection) SetVpcEndpointState(v string) *VpcEndpointConnection {
  70800. s.VpcEndpointState = &v
  70801. return s
  70802. }
  70803. // Describes an IPv6 CIDR block associated with a VPC.
  70804. type VpcIpv6CidrBlockAssociation struct {
  70805. _ struct{} `type:"structure"`
  70806. // The association ID for the IPv6 CIDR block.
  70807. AssociationId *string `locationName:"associationId" type:"string"`
  70808. // The IPv6 CIDR block.
  70809. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  70810. // Information about the state of the CIDR block.
  70811. Ipv6CidrBlockState *VpcCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"`
  70812. }
  70813. // String returns the string representation
  70814. func (s VpcIpv6CidrBlockAssociation) String() string {
  70815. return awsutil.Prettify(s)
  70816. }
  70817. // GoString returns the string representation
  70818. func (s VpcIpv6CidrBlockAssociation) GoString() string {
  70819. return s.String()
  70820. }
  70821. // SetAssociationId sets the AssociationId field's value.
  70822. func (s *VpcIpv6CidrBlockAssociation) SetAssociationId(v string) *VpcIpv6CidrBlockAssociation {
  70823. s.AssociationId = &v
  70824. return s
  70825. }
  70826. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  70827. func (s *VpcIpv6CidrBlockAssociation) SetIpv6CidrBlock(v string) *VpcIpv6CidrBlockAssociation {
  70828. s.Ipv6CidrBlock = &v
  70829. return s
  70830. }
  70831. // SetIpv6CidrBlockState sets the Ipv6CidrBlockState field's value.
  70832. func (s *VpcIpv6CidrBlockAssociation) SetIpv6CidrBlockState(v *VpcCidrBlockState) *VpcIpv6CidrBlockAssociation {
  70833. s.Ipv6CidrBlockState = v
  70834. return s
  70835. }
  70836. // Describes a VPC peering connection.
  70837. type VpcPeeringConnection struct {
  70838. _ struct{} `type:"structure"`
  70839. // Information about the accepter VPC. CIDR block information is only returned
  70840. // when describing an active VPC peering connection.
  70841. AccepterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"accepterVpcInfo" type:"structure"`
  70842. // The time that an unaccepted VPC peering connection will expire.
  70843. ExpirationTime *time.Time `locationName:"expirationTime" type:"timestamp"`
  70844. // Information about the requester VPC. CIDR block information is only returned
  70845. // when describing an active VPC peering connection.
  70846. RequesterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"requesterVpcInfo" type:"structure"`
  70847. // The status of the VPC peering connection.
  70848. Status *VpcPeeringConnectionStateReason `locationName:"status" type:"structure"`
  70849. // Any tags assigned to the resource.
  70850. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  70851. // The ID of the VPC peering connection.
  70852. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  70853. }
  70854. // String returns the string representation
  70855. func (s VpcPeeringConnection) String() string {
  70856. return awsutil.Prettify(s)
  70857. }
  70858. // GoString returns the string representation
  70859. func (s VpcPeeringConnection) GoString() string {
  70860. return s.String()
  70861. }
  70862. // SetAccepterVpcInfo sets the AccepterVpcInfo field's value.
  70863. func (s *VpcPeeringConnection) SetAccepterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection {
  70864. s.AccepterVpcInfo = v
  70865. return s
  70866. }
  70867. // SetExpirationTime sets the ExpirationTime field's value.
  70868. func (s *VpcPeeringConnection) SetExpirationTime(v time.Time) *VpcPeeringConnection {
  70869. s.ExpirationTime = &v
  70870. return s
  70871. }
  70872. // SetRequesterVpcInfo sets the RequesterVpcInfo field's value.
  70873. func (s *VpcPeeringConnection) SetRequesterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection {
  70874. s.RequesterVpcInfo = v
  70875. return s
  70876. }
  70877. // SetStatus sets the Status field's value.
  70878. func (s *VpcPeeringConnection) SetStatus(v *VpcPeeringConnectionStateReason) *VpcPeeringConnection {
  70879. s.Status = v
  70880. return s
  70881. }
  70882. // SetTags sets the Tags field's value.
  70883. func (s *VpcPeeringConnection) SetTags(v []*Tag) *VpcPeeringConnection {
  70884. s.Tags = v
  70885. return s
  70886. }
  70887. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  70888. func (s *VpcPeeringConnection) SetVpcPeeringConnectionId(v string) *VpcPeeringConnection {
  70889. s.VpcPeeringConnectionId = &v
  70890. return s
  70891. }
  70892. // Describes the VPC peering connection options.
  70893. type VpcPeeringConnectionOptionsDescription struct {
  70894. _ struct{} `type:"structure"`
  70895. // Indicates whether a local VPC can resolve public DNS hostnames to private
  70896. // IP addresses when queried from instances in a peer VPC.
  70897. AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`
  70898. // Indicates whether a local ClassicLink connection can communicate with the
  70899. // peer VPC over the VPC peering connection.
  70900. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`
  70901. // Indicates whether a local VPC can communicate with a ClassicLink connection
  70902. // in the peer VPC over the VPC peering connection.
  70903. AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
  70904. }
  70905. // String returns the string representation
  70906. func (s VpcPeeringConnectionOptionsDescription) String() string {
  70907. return awsutil.Prettify(s)
  70908. }
  70909. // GoString returns the string representation
  70910. func (s VpcPeeringConnectionOptionsDescription) GoString() string {
  70911. return s.String()
  70912. }
  70913. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  70914. func (s *VpcPeeringConnectionOptionsDescription) SetAllowDnsResolutionFromRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription {
  70915. s.AllowDnsResolutionFromRemoteVpc = &v
  70916. return s
  70917. }
  70918. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  70919. func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription {
  70920. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  70921. return s
  70922. }
  70923. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  70924. func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *VpcPeeringConnectionOptionsDescription {
  70925. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  70926. return s
  70927. }
  70928. // Describes the status of a VPC peering connection.
  70929. type VpcPeeringConnectionStateReason struct {
  70930. _ struct{} `type:"structure"`
  70931. // The status of the VPC peering connection.
  70932. Code *string `locationName:"code" type:"string" enum:"VpcPeeringConnectionStateReasonCode"`
  70933. // A message that provides more information about the status, if applicable.
  70934. Message *string `locationName:"message" type:"string"`
  70935. }
  70936. // String returns the string representation
  70937. func (s VpcPeeringConnectionStateReason) String() string {
  70938. return awsutil.Prettify(s)
  70939. }
  70940. // GoString returns the string representation
  70941. func (s VpcPeeringConnectionStateReason) GoString() string {
  70942. return s.String()
  70943. }
  70944. // SetCode sets the Code field's value.
  70945. func (s *VpcPeeringConnectionStateReason) SetCode(v string) *VpcPeeringConnectionStateReason {
  70946. s.Code = &v
  70947. return s
  70948. }
  70949. // SetMessage sets the Message field's value.
  70950. func (s *VpcPeeringConnectionStateReason) SetMessage(v string) *VpcPeeringConnectionStateReason {
  70951. s.Message = &v
  70952. return s
  70953. }
  70954. // Describes a VPC in a VPC peering connection.
  70955. type VpcPeeringConnectionVpcInfo struct {
  70956. _ struct{} `type:"structure"`
  70957. // The IPv4 CIDR block for the VPC.
  70958. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  70959. // Information about the IPv4 CIDR blocks for the VPC.
  70960. CidrBlockSet []*CidrBlock `locationName:"cidrBlockSet" locationNameList:"item" type:"list"`
  70961. // The IPv6 CIDR block for the VPC.
  70962. Ipv6CidrBlockSet []*Ipv6CidrBlock `locationName:"ipv6CidrBlockSet" locationNameList:"item" type:"list"`
  70963. // The AWS account ID of the VPC owner.
  70964. OwnerId *string `locationName:"ownerId" type:"string"`
  70965. // Information about the VPC peering connection options for the accepter or
  70966. // requester VPC.
  70967. PeeringOptions *VpcPeeringConnectionOptionsDescription `locationName:"peeringOptions" type:"structure"`
  70968. // The region in which the VPC is located.
  70969. Region *string `locationName:"region" type:"string"`
  70970. // The ID of the VPC.
  70971. VpcId *string `locationName:"vpcId" type:"string"`
  70972. }
  70973. // String returns the string representation
  70974. func (s VpcPeeringConnectionVpcInfo) String() string {
  70975. return awsutil.Prettify(s)
  70976. }
  70977. // GoString returns the string representation
  70978. func (s VpcPeeringConnectionVpcInfo) GoString() string {
  70979. return s.String()
  70980. }
  70981. // SetCidrBlock sets the CidrBlock field's value.
  70982. func (s *VpcPeeringConnectionVpcInfo) SetCidrBlock(v string) *VpcPeeringConnectionVpcInfo {
  70983. s.CidrBlock = &v
  70984. return s
  70985. }
  70986. // SetCidrBlockSet sets the CidrBlockSet field's value.
  70987. func (s *VpcPeeringConnectionVpcInfo) SetCidrBlockSet(v []*CidrBlock) *VpcPeeringConnectionVpcInfo {
  70988. s.CidrBlockSet = v
  70989. return s
  70990. }
  70991. // SetIpv6CidrBlockSet sets the Ipv6CidrBlockSet field's value.
  70992. func (s *VpcPeeringConnectionVpcInfo) SetIpv6CidrBlockSet(v []*Ipv6CidrBlock) *VpcPeeringConnectionVpcInfo {
  70993. s.Ipv6CidrBlockSet = v
  70994. return s
  70995. }
  70996. // SetOwnerId sets the OwnerId field's value.
  70997. func (s *VpcPeeringConnectionVpcInfo) SetOwnerId(v string) *VpcPeeringConnectionVpcInfo {
  70998. s.OwnerId = &v
  70999. return s
  71000. }
  71001. // SetPeeringOptions sets the PeeringOptions field's value.
  71002. func (s *VpcPeeringConnectionVpcInfo) SetPeeringOptions(v *VpcPeeringConnectionOptionsDescription) *VpcPeeringConnectionVpcInfo {
  71003. s.PeeringOptions = v
  71004. return s
  71005. }
  71006. // SetRegion sets the Region field's value.
  71007. func (s *VpcPeeringConnectionVpcInfo) SetRegion(v string) *VpcPeeringConnectionVpcInfo {
  71008. s.Region = &v
  71009. return s
  71010. }
  71011. // SetVpcId sets the VpcId field's value.
  71012. func (s *VpcPeeringConnectionVpcInfo) SetVpcId(v string) *VpcPeeringConnectionVpcInfo {
  71013. s.VpcId = &v
  71014. return s
  71015. }
  71016. // Describes a VPN connection.
  71017. type VpnConnection struct {
  71018. _ struct{} `type:"structure"`
  71019. // The category of the VPN connection. A value of VPN indicates an AWS VPN connection.
  71020. // A value of VPN-Classic indicates an AWS Classic VPN connection. For more
  71021. // information, see AWS Managed VPN Categories (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html#vpn-categories)
  71022. // in the Amazon Virtual Private Cloud User Guide.
  71023. Category *string `locationName:"category" type:"string"`
  71024. // The configuration information for the VPN connection's customer gateway (in
  71025. // the native XML format). This element is always present in the CreateVpnConnection
  71026. // response; however, it's present in the DescribeVpnConnections response only
  71027. // if the VPN connection is in the pending or available state.
  71028. CustomerGatewayConfiguration *string `locationName:"customerGatewayConfiguration" type:"string"`
  71029. // The ID of the customer gateway at your end of the VPN connection.
  71030. CustomerGatewayId *string `locationName:"customerGatewayId" type:"string"`
  71031. // The VPN connection options.
  71032. Options *VpnConnectionOptions `locationName:"options" type:"structure"`
  71033. // The static routes associated with the VPN connection.
  71034. Routes []*VpnStaticRoute `locationName:"routes" locationNameList:"item" type:"list"`
  71035. // The current state of the VPN connection.
  71036. State *string `locationName:"state" type:"string" enum:"VpnState"`
  71037. // Any tags assigned to the VPN connection.
  71038. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  71039. // The ID of the transit gateway associated with the VPN connection.
  71040. TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
  71041. // The type of VPN connection.
  71042. Type *string `locationName:"type" type:"string" enum:"GatewayType"`
  71043. // Information about the VPN tunnel.
  71044. VgwTelemetry []*VgwTelemetry `locationName:"vgwTelemetry" locationNameList:"item" type:"list"`
  71045. // The ID of the VPN connection.
  71046. VpnConnectionId *string `locationName:"vpnConnectionId" type:"string"`
  71047. // The ID of the virtual private gateway at the AWS side of the VPN connection.
  71048. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"`
  71049. }
  71050. // String returns the string representation
  71051. func (s VpnConnection) String() string {
  71052. return awsutil.Prettify(s)
  71053. }
  71054. // GoString returns the string representation
  71055. func (s VpnConnection) GoString() string {
  71056. return s.String()
  71057. }
  71058. // SetCategory sets the Category field's value.
  71059. func (s *VpnConnection) SetCategory(v string) *VpnConnection {
  71060. s.Category = &v
  71061. return s
  71062. }
  71063. // SetCustomerGatewayConfiguration sets the CustomerGatewayConfiguration field's value.
  71064. func (s *VpnConnection) SetCustomerGatewayConfiguration(v string) *VpnConnection {
  71065. s.CustomerGatewayConfiguration = &v
  71066. return s
  71067. }
  71068. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  71069. func (s *VpnConnection) SetCustomerGatewayId(v string) *VpnConnection {
  71070. s.CustomerGatewayId = &v
  71071. return s
  71072. }
  71073. // SetOptions sets the Options field's value.
  71074. func (s *VpnConnection) SetOptions(v *VpnConnectionOptions) *VpnConnection {
  71075. s.Options = v
  71076. return s
  71077. }
  71078. // SetRoutes sets the Routes field's value.
  71079. func (s *VpnConnection) SetRoutes(v []*VpnStaticRoute) *VpnConnection {
  71080. s.Routes = v
  71081. return s
  71082. }
  71083. // SetState sets the State field's value.
  71084. func (s *VpnConnection) SetState(v string) *VpnConnection {
  71085. s.State = &v
  71086. return s
  71087. }
  71088. // SetTags sets the Tags field's value.
  71089. func (s *VpnConnection) SetTags(v []*Tag) *VpnConnection {
  71090. s.Tags = v
  71091. return s
  71092. }
  71093. // SetTransitGatewayId sets the TransitGatewayId field's value.
  71094. func (s *VpnConnection) SetTransitGatewayId(v string) *VpnConnection {
  71095. s.TransitGatewayId = &v
  71096. return s
  71097. }
  71098. // SetType sets the Type field's value.
  71099. func (s *VpnConnection) SetType(v string) *VpnConnection {
  71100. s.Type = &v
  71101. return s
  71102. }
  71103. // SetVgwTelemetry sets the VgwTelemetry field's value.
  71104. func (s *VpnConnection) SetVgwTelemetry(v []*VgwTelemetry) *VpnConnection {
  71105. s.VgwTelemetry = v
  71106. return s
  71107. }
  71108. // SetVpnConnectionId sets the VpnConnectionId field's value.
  71109. func (s *VpnConnection) SetVpnConnectionId(v string) *VpnConnection {
  71110. s.VpnConnectionId = &v
  71111. return s
  71112. }
  71113. // SetVpnGatewayId sets the VpnGatewayId field's value.
  71114. func (s *VpnConnection) SetVpnGatewayId(v string) *VpnConnection {
  71115. s.VpnGatewayId = &v
  71116. return s
  71117. }
  71118. // Describes VPN connection options.
  71119. type VpnConnectionOptions struct {
  71120. _ struct{} `type:"structure"`
  71121. // Indicates whether the VPN connection uses static routes only. Static routes
  71122. // must be used for devices that don't support BGP.
  71123. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`
  71124. }
  71125. // String returns the string representation
  71126. func (s VpnConnectionOptions) String() string {
  71127. return awsutil.Prettify(s)
  71128. }
  71129. // GoString returns the string representation
  71130. func (s VpnConnectionOptions) GoString() string {
  71131. return s.String()
  71132. }
  71133. // SetStaticRoutesOnly sets the StaticRoutesOnly field's value.
  71134. func (s *VpnConnectionOptions) SetStaticRoutesOnly(v bool) *VpnConnectionOptions {
  71135. s.StaticRoutesOnly = &v
  71136. return s
  71137. }
  71138. // Describes VPN connection options.
  71139. type VpnConnectionOptionsSpecification struct {
  71140. _ struct{} `type:"structure"`
  71141. // Indicate whether the VPN connection uses static routes only. If you are creating
  71142. // a VPN connection for a device that does not support BGP, you must specify
  71143. // true. Use CreateVpnConnectionRoute to create a static route.
  71144. //
  71145. // Default: false
  71146. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`
  71147. // The tunnel options for the VPN connection.
  71148. TunnelOptions []*VpnTunnelOptionsSpecification `locationNameList:"item" type:"list"`
  71149. }
  71150. // String returns the string representation
  71151. func (s VpnConnectionOptionsSpecification) String() string {
  71152. return awsutil.Prettify(s)
  71153. }
  71154. // GoString returns the string representation
  71155. func (s VpnConnectionOptionsSpecification) GoString() string {
  71156. return s.String()
  71157. }
  71158. // SetStaticRoutesOnly sets the StaticRoutesOnly field's value.
  71159. func (s *VpnConnectionOptionsSpecification) SetStaticRoutesOnly(v bool) *VpnConnectionOptionsSpecification {
  71160. s.StaticRoutesOnly = &v
  71161. return s
  71162. }
  71163. // SetTunnelOptions sets the TunnelOptions field's value.
  71164. func (s *VpnConnectionOptionsSpecification) SetTunnelOptions(v []*VpnTunnelOptionsSpecification) *VpnConnectionOptionsSpecification {
  71165. s.TunnelOptions = v
  71166. return s
  71167. }
  71168. // Describes a virtual private gateway.
  71169. type VpnGateway struct {
  71170. _ struct{} `type:"structure"`
  71171. // The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
  71172. AmazonSideAsn *int64 `locationName:"amazonSideAsn" type:"long"`
  71173. // The Availability Zone where the virtual private gateway was created, if applicable.
  71174. // This field may be empty or not returned.
  71175. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  71176. // The current state of the virtual private gateway.
  71177. State *string `locationName:"state" type:"string" enum:"VpnState"`
  71178. // Any tags assigned to the virtual private gateway.
  71179. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  71180. // The type of VPN connection the virtual private gateway supports.
  71181. Type *string `locationName:"type" type:"string" enum:"GatewayType"`
  71182. // Any VPCs attached to the virtual private gateway.
  71183. VpcAttachments []*VpcAttachment `locationName:"attachments" locationNameList:"item" type:"list"`
  71184. // The ID of the virtual private gateway.
  71185. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"`
  71186. }
  71187. // String returns the string representation
  71188. func (s VpnGateway) String() string {
  71189. return awsutil.Prettify(s)
  71190. }
  71191. // GoString returns the string representation
  71192. func (s VpnGateway) GoString() string {
  71193. return s.String()
  71194. }
  71195. // SetAmazonSideAsn sets the AmazonSideAsn field's value.
  71196. func (s *VpnGateway) SetAmazonSideAsn(v int64) *VpnGateway {
  71197. s.AmazonSideAsn = &v
  71198. return s
  71199. }
  71200. // SetAvailabilityZone sets the AvailabilityZone field's value.
  71201. func (s *VpnGateway) SetAvailabilityZone(v string) *VpnGateway {
  71202. s.AvailabilityZone = &v
  71203. return s
  71204. }
  71205. // SetState sets the State field's value.
  71206. func (s *VpnGateway) SetState(v string) *VpnGateway {
  71207. s.State = &v
  71208. return s
  71209. }
  71210. // SetTags sets the Tags field's value.
  71211. func (s *VpnGateway) SetTags(v []*Tag) *VpnGateway {
  71212. s.Tags = v
  71213. return s
  71214. }
  71215. // SetType sets the Type field's value.
  71216. func (s *VpnGateway) SetType(v string) *VpnGateway {
  71217. s.Type = &v
  71218. return s
  71219. }
  71220. // SetVpcAttachments sets the VpcAttachments field's value.
  71221. func (s *VpnGateway) SetVpcAttachments(v []*VpcAttachment) *VpnGateway {
  71222. s.VpcAttachments = v
  71223. return s
  71224. }
  71225. // SetVpnGatewayId sets the VpnGatewayId field's value.
  71226. func (s *VpnGateway) SetVpnGatewayId(v string) *VpnGateway {
  71227. s.VpnGatewayId = &v
  71228. return s
  71229. }
  71230. // Describes a static route for a VPN connection.
  71231. type VpnStaticRoute struct {
  71232. _ struct{} `type:"structure"`
  71233. // The CIDR block associated with the local subnet of the customer data center.
  71234. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  71235. // Indicates how the routes were provided.
  71236. Source *string `locationName:"source" type:"string" enum:"VpnStaticRouteSource"`
  71237. // The current state of the static route.
  71238. State *string `locationName:"state" type:"string" enum:"VpnState"`
  71239. }
  71240. // String returns the string representation
  71241. func (s VpnStaticRoute) String() string {
  71242. return awsutil.Prettify(s)
  71243. }
  71244. // GoString returns the string representation
  71245. func (s VpnStaticRoute) GoString() string {
  71246. return s.String()
  71247. }
  71248. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  71249. func (s *VpnStaticRoute) SetDestinationCidrBlock(v string) *VpnStaticRoute {
  71250. s.DestinationCidrBlock = &v
  71251. return s
  71252. }
  71253. // SetSource sets the Source field's value.
  71254. func (s *VpnStaticRoute) SetSource(v string) *VpnStaticRoute {
  71255. s.Source = &v
  71256. return s
  71257. }
  71258. // SetState sets the State field's value.
  71259. func (s *VpnStaticRoute) SetState(v string) *VpnStaticRoute {
  71260. s.State = &v
  71261. return s
  71262. }
  71263. // The tunnel options for a VPN connection.
  71264. type VpnTunnelOptionsSpecification struct {
  71265. _ struct{} `type:"structure"`
  71266. // The pre-shared key (PSK) to establish initial authentication between the
  71267. // virtual private gateway and customer gateway.
  71268. //
  71269. // Constraints: Allowed characters are alphanumeric characters and ._. Must
  71270. // be between 8 and 64 characters in length and cannot start with zero (0).
  71271. PreSharedKey *string `type:"string"`
  71272. // The range of inside IP addresses for the tunnel. Any specified CIDR blocks
  71273. // must be unique across all VPN connections that use the same virtual private
  71274. // gateway.
  71275. //
  71276. // Constraints: A size /30 CIDR block from the 169.254.0.0/16 range. The following
  71277. // CIDR blocks are reserved and cannot be used:
  71278. //
  71279. // * 169.254.0.0/30
  71280. //
  71281. // * 169.254.1.0/30
  71282. //
  71283. // * 169.254.2.0/30
  71284. //
  71285. // * 169.254.3.0/30
  71286. //
  71287. // * 169.254.4.0/30
  71288. //
  71289. // * 169.254.5.0/30
  71290. //
  71291. // * 169.254.169.252/30
  71292. TunnelInsideCidr *string `type:"string"`
  71293. }
  71294. // String returns the string representation
  71295. func (s VpnTunnelOptionsSpecification) String() string {
  71296. return awsutil.Prettify(s)
  71297. }
  71298. // GoString returns the string representation
  71299. func (s VpnTunnelOptionsSpecification) GoString() string {
  71300. return s.String()
  71301. }
  71302. // SetPreSharedKey sets the PreSharedKey field's value.
  71303. func (s *VpnTunnelOptionsSpecification) SetPreSharedKey(v string) *VpnTunnelOptionsSpecification {
  71304. s.PreSharedKey = &v
  71305. return s
  71306. }
  71307. // SetTunnelInsideCidr sets the TunnelInsideCidr field's value.
  71308. func (s *VpnTunnelOptionsSpecification) SetTunnelInsideCidr(v string) *VpnTunnelOptionsSpecification {
  71309. s.TunnelInsideCidr = &v
  71310. return s
  71311. }
  71312. type WithdrawByoipCidrInput struct {
  71313. _ struct{} `type:"structure"`
  71314. // The public IPv4 address range, in CIDR notation.
  71315. //
  71316. // Cidr is a required field
  71317. Cidr *string `type:"string" required:"true"`
  71318. // Checks whether you have the required permissions for the action, without
  71319. // actually making the request, and provides an error response. If you have
  71320. // the required permissions, the error response is DryRunOperation. Otherwise,
  71321. // it is UnauthorizedOperation.
  71322. DryRun *bool `type:"boolean"`
  71323. }
  71324. // String returns the string representation
  71325. func (s WithdrawByoipCidrInput) String() string {
  71326. return awsutil.Prettify(s)
  71327. }
  71328. // GoString returns the string representation
  71329. func (s WithdrawByoipCidrInput) GoString() string {
  71330. return s.String()
  71331. }
  71332. // Validate inspects the fields of the type to determine if they are valid.
  71333. func (s *WithdrawByoipCidrInput) Validate() error {
  71334. invalidParams := request.ErrInvalidParams{Context: "WithdrawByoipCidrInput"}
  71335. if s.Cidr == nil {
  71336. invalidParams.Add(request.NewErrParamRequired("Cidr"))
  71337. }
  71338. if invalidParams.Len() > 0 {
  71339. return invalidParams
  71340. }
  71341. return nil
  71342. }
  71343. // SetCidr sets the Cidr field's value.
  71344. func (s *WithdrawByoipCidrInput) SetCidr(v string) *WithdrawByoipCidrInput {
  71345. s.Cidr = &v
  71346. return s
  71347. }
  71348. // SetDryRun sets the DryRun field's value.
  71349. func (s *WithdrawByoipCidrInput) SetDryRun(v bool) *WithdrawByoipCidrInput {
  71350. s.DryRun = &v
  71351. return s
  71352. }
  71353. type WithdrawByoipCidrOutput struct {
  71354. _ struct{} `type:"structure"`
  71355. // Information about the address pool.
  71356. ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"`
  71357. }
  71358. // String returns the string representation
  71359. func (s WithdrawByoipCidrOutput) String() string {
  71360. return awsutil.Prettify(s)
  71361. }
  71362. // GoString returns the string representation
  71363. func (s WithdrawByoipCidrOutput) GoString() string {
  71364. return s.String()
  71365. }
  71366. // SetByoipCidr sets the ByoipCidr field's value.
  71367. func (s *WithdrawByoipCidrOutput) SetByoipCidr(v *ByoipCidr) *WithdrawByoipCidrOutput {
  71368. s.ByoipCidr = v
  71369. return s
  71370. }
  71371. const (
  71372. // AccountAttributeNameSupportedPlatforms is a AccountAttributeName enum value
  71373. AccountAttributeNameSupportedPlatforms = "supported-platforms"
  71374. // AccountAttributeNameDefaultVpc is a AccountAttributeName enum value
  71375. AccountAttributeNameDefaultVpc = "default-vpc"
  71376. )
  71377. const (
  71378. // ActivityStatusError is a ActivityStatus enum value
  71379. ActivityStatusError = "error"
  71380. // ActivityStatusPendingFulfillment is a ActivityStatus enum value
  71381. ActivityStatusPendingFulfillment = "pending_fulfillment"
  71382. // ActivityStatusPendingTermination is a ActivityStatus enum value
  71383. ActivityStatusPendingTermination = "pending_termination"
  71384. // ActivityStatusFulfilled is a ActivityStatus enum value
  71385. ActivityStatusFulfilled = "fulfilled"
  71386. )
  71387. const (
  71388. // AffinityDefault is a Affinity enum value
  71389. AffinityDefault = "default"
  71390. // AffinityHost is a Affinity enum value
  71391. AffinityHost = "host"
  71392. )
  71393. const (
  71394. // AllocationStateAvailable is a AllocationState enum value
  71395. AllocationStateAvailable = "available"
  71396. // AllocationStateUnderAssessment is a AllocationState enum value
  71397. AllocationStateUnderAssessment = "under-assessment"
  71398. // AllocationStatePermanentFailure is a AllocationState enum value
  71399. AllocationStatePermanentFailure = "permanent-failure"
  71400. // AllocationStateReleased is a AllocationState enum value
  71401. AllocationStateReleased = "released"
  71402. // AllocationStateReleasedPermanentFailure is a AllocationState enum value
  71403. AllocationStateReleasedPermanentFailure = "released-permanent-failure"
  71404. )
  71405. const (
  71406. // AllocationStrategyLowestPrice is a AllocationStrategy enum value
  71407. AllocationStrategyLowestPrice = "lowestPrice"
  71408. // AllocationStrategyDiversified is a AllocationStrategy enum value
  71409. AllocationStrategyDiversified = "diversified"
  71410. )
  71411. const (
  71412. // ArchitectureValuesI386 is a ArchitectureValues enum value
  71413. ArchitectureValuesI386 = "i386"
  71414. // ArchitectureValuesX8664 is a ArchitectureValues enum value
  71415. ArchitectureValuesX8664 = "x86_64"
  71416. // ArchitectureValuesArm64 is a ArchitectureValues enum value
  71417. ArchitectureValuesArm64 = "arm64"
  71418. )
  71419. const (
  71420. // AssociatedNetworkTypeVpc is a AssociatedNetworkType enum value
  71421. AssociatedNetworkTypeVpc = "vpc"
  71422. )
  71423. const (
  71424. // AssociationStatusCodeAssociating is a AssociationStatusCode enum value
  71425. AssociationStatusCodeAssociating = "associating"
  71426. // AssociationStatusCodeAssociated is a AssociationStatusCode enum value
  71427. AssociationStatusCodeAssociated = "associated"
  71428. // AssociationStatusCodeAssociationFailed is a AssociationStatusCode enum value
  71429. AssociationStatusCodeAssociationFailed = "association-failed"
  71430. // AssociationStatusCodeDisassociating is a AssociationStatusCode enum value
  71431. AssociationStatusCodeDisassociating = "disassociating"
  71432. // AssociationStatusCodeDisassociated is a AssociationStatusCode enum value
  71433. AssociationStatusCodeDisassociated = "disassociated"
  71434. )
  71435. const (
  71436. // AttachmentStatusAttaching is a AttachmentStatus enum value
  71437. AttachmentStatusAttaching = "attaching"
  71438. // AttachmentStatusAttached is a AttachmentStatus enum value
  71439. AttachmentStatusAttached = "attached"
  71440. // AttachmentStatusDetaching is a AttachmentStatus enum value
  71441. AttachmentStatusDetaching = "detaching"
  71442. // AttachmentStatusDetached is a AttachmentStatus enum value
  71443. AttachmentStatusDetached = "detached"
  71444. )
  71445. const (
  71446. // AutoAcceptSharedAttachmentsValueEnable is a AutoAcceptSharedAttachmentsValue enum value
  71447. AutoAcceptSharedAttachmentsValueEnable = "enable"
  71448. // AutoAcceptSharedAttachmentsValueDisable is a AutoAcceptSharedAttachmentsValue enum value
  71449. AutoAcceptSharedAttachmentsValueDisable = "disable"
  71450. )
  71451. const (
  71452. // AutoPlacementOn is a AutoPlacement enum value
  71453. AutoPlacementOn = "on"
  71454. // AutoPlacementOff is a AutoPlacement enum value
  71455. AutoPlacementOff = "off"
  71456. )
  71457. const (
  71458. // AvailabilityZoneStateAvailable is a AvailabilityZoneState enum value
  71459. AvailabilityZoneStateAvailable = "available"
  71460. // AvailabilityZoneStateInformation is a AvailabilityZoneState enum value
  71461. AvailabilityZoneStateInformation = "information"
  71462. // AvailabilityZoneStateImpaired is a AvailabilityZoneState enum value
  71463. AvailabilityZoneStateImpaired = "impaired"
  71464. // AvailabilityZoneStateUnavailable is a AvailabilityZoneState enum value
  71465. AvailabilityZoneStateUnavailable = "unavailable"
  71466. )
  71467. const (
  71468. // BatchStateSubmitted is a BatchState enum value
  71469. BatchStateSubmitted = "submitted"
  71470. // BatchStateActive is a BatchState enum value
  71471. BatchStateActive = "active"
  71472. // BatchStateCancelled is a BatchState enum value
  71473. BatchStateCancelled = "cancelled"
  71474. // BatchStateFailed is a BatchState enum value
  71475. BatchStateFailed = "failed"
  71476. // BatchStateCancelledRunning is a BatchState enum value
  71477. BatchStateCancelledRunning = "cancelled_running"
  71478. // BatchStateCancelledTerminating is a BatchState enum value
  71479. BatchStateCancelledTerminating = "cancelled_terminating"
  71480. // BatchStateModifying is a BatchState enum value
  71481. BatchStateModifying = "modifying"
  71482. )
  71483. const (
  71484. // BundleTaskStatePending is a BundleTaskState enum value
  71485. BundleTaskStatePending = "pending"
  71486. // BundleTaskStateWaitingForShutdown is a BundleTaskState enum value
  71487. BundleTaskStateWaitingForShutdown = "waiting-for-shutdown"
  71488. // BundleTaskStateBundling is a BundleTaskState enum value
  71489. BundleTaskStateBundling = "bundling"
  71490. // BundleTaskStateStoring is a BundleTaskState enum value
  71491. BundleTaskStateStoring = "storing"
  71492. // BundleTaskStateCancelling is a BundleTaskState enum value
  71493. BundleTaskStateCancelling = "cancelling"
  71494. // BundleTaskStateComplete is a BundleTaskState enum value
  71495. BundleTaskStateComplete = "complete"
  71496. // BundleTaskStateFailed is a BundleTaskState enum value
  71497. BundleTaskStateFailed = "failed"
  71498. )
  71499. const (
  71500. // ByoipCidrStateAdvertised is a ByoipCidrState enum value
  71501. ByoipCidrStateAdvertised = "advertised"
  71502. // ByoipCidrStateDeprovisioned is a ByoipCidrState enum value
  71503. ByoipCidrStateDeprovisioned = "deprovisioned"
  71504. // ByoipCidrStateFailedDeprovision is a ByoipCidrState enum value
  71505. ByoipCidrStateFailedDeprovision = "failed-deprovision"
  71506. // ByoipCidrStateFailedProvision is a ByoipCidrState enum value
  71507. ByoipCidrStateFailedProvision = "failed-provision"
  71508. // ByoipCidrStatePendingDeprovision is a ByoipCidrState enum value
  71509. ByoipCidrStatePendingDeprovision = "pending-deprovision"
  71510. // ByoipCidrStatePendingProvision is a ByoipCidrState enum value
  71511. ByoipCidrStatePendingProvision = "pending-provision"
  71512. // ByoipCidrStateProvisioned is a ByoipCidrState enum value
  71513. ByoipCidrStateProvisioned = "provisioned"
  71514. )
  71515. const (
  71516. // CancelBatchErrorCodeFleetRequestIdDoesNotExist is a CancelBatchErrorCode enum value
  71517. CancelBatchErrorCodeFleetRequestIdDoesNotExist = "fleetRequestIdDoesNotExist"
  71518. // CancelBatchErrorCodeFleetRequestIdMalformed is a CancelBatchErrorCode enum value
  71519. CancelBatchErrorCodeFleetRequestIdMalformed = "fleetRequestIdMalformed"
  71520. // CancelBatchErrorCodeFleetRequestNotInCancellableState is a CancelBatchErrorCode enum value
  71521. CancelBatchErrorCodeFleetRequestNotInCancellableState = "fleetRequestNotInCancellableState"
  71522. // CancelBatchErrorCodeUnexpectedError is a CancelBatchErrorCode enum value
  71523. CancelBatchErrorCodeUnexpectedError = "unexpectedError"
  71524. )
  71525. const (
  71526. // CancelSpotInstanceRequestStateActive is a CancelSpotInstanceRequestState enum value
  71527. CancelSpotInstanceRequestStateActive = "active"
  71528. // CancelSpotInstanceRequestStateOpen is a CancelSpotInstanceRequestState enum value
  71529. CancelSpotInstanceRequestStateOpen = "open"
  71530. // CancelSpotInstanceRequestStateClosed is a CancelSpotInstanceRequestState enum value
  71531. CancelSpotInstanceRequestStateClosed = "closed"
  71532. // CancelSpotInstanceRequestStateCancelled is a CancelSpotInstanceRequestState enum value
  71533. CancelSpotInstanceRequestStateCancelled = "cancelled"
  71534. // CancelSpotInstanceRequestStateCompleted is a CancelSpotInstanceRequestState enum value
  71535. CancelSpotInstanceRequestStateCompleted = "completed"
  71536. )
  71537. const (
  71538. // CapacityReservationInstancePlatformLinuxUnix is a CapacityReservationInstancePlatform enum value
  71539. CapacityReservationInstancePlatformLinuxUnix = "Linux/UNIX"
  71540. // CapacityReservationInstancePlatformRedHatEnterpriseLinux is a CapacityReservationInstancePlatform enum value
  71541. CapacityReservationInstancePlatformRedHatEnterpriseLinux = "Red Hat Enterprise Linux"
  71542. // CapacityReservationInstancePlatformSuselinux is a CapacityReservationInstancePlatform enum value
  71543. CapacityReservationInstancePlatformSuselinux = "SUSE Linux"
  71544. // CapacityReservationInstancePlatformWindows is a CapacityReservationInstancePlatform enum value
  71545. CapacityReservationInstancePlatformWindows = "Windows"
  71546. // CapacityReservationInstancePlatformWindowswithSqlserver is a CapacityReservationInstancePlatform enum value
  71547. CapacityReservationInstancePlatformWindowswithSqlserver = "Windows with SQL Server"
  71548. // CapacityReservationInstancePlatformWindowswithSqlserverEnterprise is a CapacityReservationInstancePlatform enum value
  71549. CapacityReservationInstancePlatformWindowswithSqlserverEnterprise = "Windows with SQL Server Enterprise"
  71550. // CapacityReservationInstancePlatformWindowswithSqlserverStandard is a CapacityReservationInstancePlatform enum value
  71551. CapacityReservationInstancePlatformWindowswithSqlserverStandard = "Windows with SQL Server Standard"
  71552. // CapacityReservationInstancePlatformWindowswithSqlserverWeb is a CapacityReservationInstancePlatform enum value
  71553. CapacityReservationInstancePlatformWindowswithSqlserverWeb = "Windows with SQL Server Web"
  71554. )
  71555. const (
  71556. // CapacityReservationPreferenceOpen is a CapacityReservationPreference enum value
  71557. CapacityReservationPreferenceOpen = "open"
  71558. // CapacityReservationPreferenceNone is a CapacityReservationPreference enum value
  71559. CapacityReservationPreferenceNone = "none"
  71560. )
  71561. const (
  71562. // CapacityReservationStateActive is a CapacityReservationState enum value
  71563. CapacityReservationStateActive = "active"
  71564. // CapacityReservationStateExpired is a CapacityReservationState enum value
  71565. CapacityReservationStateExpired = "expired"
  71566. // CapacityReservationStateCancelled is a CapacityReservationState enum value
  71567. CapacityReservationStateCancelled = "cancelled"
  71568. // CapacityReservationStatePending is a CapacityReservationState enum value
  71569. CapacityReservationStatePending = "pending"
  71570. // CapacityReservationStateFailed is a CapacityReservationState enum value
  71571. CapacityReservationStateFailed = "failed"
  71572. )
  71573. const (
  71574. // CapacityReservationTenancyDefault is a CapacityReservationTenancy enum value
  71575. CapacityReservationTenancyDefault = "default"
  71576. // CapacityReservationTenancyDedicated is a CapacityReservationTenancy enum value
  71577. CapacityReservationTenancyDedicated = "dedicated"
  71578. )
  71579. const (
  71580. // ClientCertificateRevocationListStatusCodePending is a ClientCertificateRevocationListStatusCode enum value
  71581. ClientCertificateRevocationListStatusCodePending = "pending"
  71582. // ClientCertificateRevocationListStatusCodeActive is a ClientCertificateRevocationListStatusCode enum value
  71583. ClientCertificateRevocationListStatusCodeActive = "active"
  71584. )
  71585. const (
  71586. // ClientVpnAuthenticationTypeCertificateAuthentication is a ClientVpnAuthenticationType enum value
  71587. ClientVpnAuthenticationTypeCertificateAuthentication = "certificate-authentication"
  71588. // ClientVpnAuthenticationTypeDirectoryServiceAuthentication is a ClientVpnAuthenticationType enum value
  71589. ClientVpnAuthenticationTypeDirectoryServiceAuthentication = "directory-service-authentication"
  71590. )
  71591. const (
  71592. // ClientVpnAuthorizationRuleStatusCodeAuthorizing is a ClientVpnAuthorizationRuleStatusCode enum value
  71593. ClientVpnAuthorizationRuleStatusCodeAuthorizing = "authorizing"
  71594. // ClientVpnAuthorizationRuleStatusCodeActive is a ClientVpnAuthorizationRuleStatusCode enum value
  71595. ClientVpnAuthorizationRuleStatusCodeActive = "active"
  71596. // ClientVpnAuthorizationRuleStatusCodeFailed is a ClientVpnAuthorizationRuleStatusCode enum value
  71597. ClientVpnAuthorizationRuleStatusCodeFailed = "failed"
  71598. // ClientVpnAuthorizationRuleStatusCodeRevoking is a ClientVpnAuthorizationRuleStatusCode enum value
  71599. ClientVpnAuthorizationRuleStatusCodeRevoking = "revoking"
  71600. )
  71601. const (
  71602. // ClientVpnConnectionStatusCodeActive is a ClientVpnConnectionStatusCode enum value
  71603. ClientVpnConnectionStatusCodeActive = "active"
  71604. // ClientVpnConnectionStatusCodeFailedToTerminate is a ClientVpnConnectionStatusCode enum value
  71605. ClientVpnConnectionStatusCodeFailedToTerminate = "failed-to-terminate"
  71606. // ClientVpnConnectionStatusCodeTerminating is a ClientVpnConnectionStatusCode enum value
  71607. ClientVpnConnectionStatusCodeTerminating = "terminating"
  71608. // ClientVpnConnectionStatusCodeTerminated is a ClientVpnConnectionStatusCode enum value
  71609. ClientVpnConnectionStatusCodeTerminated = "terminated"
  71610. )
  71611. const (
  71612. // ClientVpnEndpointStatusCodePendingAssociate is a ClientVpnEndpointStatusCode enum value
  71613. ClientVpnEndpointStatusCodePendingAssociate = "pending-associate"
  71614. // ClientVpnEndpointStatusCodeAvailable is a ClientVpnEndpointStatusCode enum value
  71615. ClientVpnEndpointStatusCodeAvailable = "available"
  71616. // ClientVpnEndpointStatusCodeDeleting is a ClientVpnEndpointStatusCode enum value
  71617. ClientVpnEndpointStatusCodeDeleting = "deleting"
  71618. // ClientVpnEndpointStatusCodeDeleted is a ClientVpnEndpointStatusCode enum value
  71619. ClientVpnEndpointStatusCodeDeleted = "deleted"
  71620. )
  71621. const (
  71622. // ClientVpnRouteStatusCodeCreating is a ClientVpnRouteStatusCode enum value
  71623. ClientVpnRouteStatusCodeCreating = "creating"
  71624. // ClientVpnRouteStatusCodeActive is a ClientVpnRouteStatusCode enum value
  71625. ClientVpnRouteStatusCodeActive = "active"
  71626. // ClientVpnRouteStatusCodeFailed is a ClientVpnRouteStatusCode enum value
  71627. ClientVpnRouteStatusCodeFailed = "failed"
  71628. // ClientVpnRouteStatusCodeDeleting is a ClientVpnRouteStatusCode enum value
  71629. ClientVpnRouteStatusCodeDeleting = "deleting"
  71630. )
  71631. const (
  71632. // ConnectionNotificationStateEnabled is a ConnectionNotificationState enum value
  71633. ConnectionNotificationStateEnabled = "Enabled"
  71634. // ConnectionNotificationStateDisabled is a ConnectionNotificationState enum value
  71635. ConnectionNotificationStateDisabled = "Disabled"
  71636. )
  71637. const (
  71638. // ConnectionNotificationTypeTopic is a ConnectionNotificationType enum value
  71639. ConnectionNotificationTypeTopic = "Topic"
  71640. )
  71641. const (
  71642. // ContainerFormatOva is a ContainerFormat enum value
  71643. ContainerFormatOva = "ova"
  71644. )
  71645. const (
  71646. // ConversionTaskStateActive is a ConversionTaskState enum value
  71647. ConversionTaskStateActive = "active"
  71648. // ConversionTaskStateCancelling is a ConversionTaskState enum value
  71649. ConversionTaskStateCancelling = "cancelling"
  71650. // ConversionTaskStateCancelled is a ConversionTaskState enum value
  71651. ConversionTaskStateCancelled = "cancelled"
  71652. // ConversionTaskStateCompleted is a ConversionTaskState enum value
  71653. ConversionTaskStateCompleted = "completed"
  71654. )
  71655. const (
  71656. // CurrencyCodeValuesUsd is a CurrencyCodeValues enum value
  71657. CurrencyCodeValuesUsd = "USD"
  71658. )
  71659. const (
  71660. // DatafeedSubscriptionStateActive is a DatafeedSubscriptionState enum value
  71661. DatafeedSubscriptionStateActive = "Active"
  71662. // DatafeedSubscriptionStateInactive is a DatafeedSubscriptionState enum value
  71663. DatafeedSubscriptionStateInactive = "Inactive"
  71664. )
  71665. const (
  71666. // DefaultRouteTableAssociationValueEnable is a DefaultRouteTableAssociationValue enum value
  71667. DefaultRouteTableAssociationValueEnable = "enable"
  71668. // DefaultRouteTableAssociationValueDisable is a DefaultRouteTableAssociationValue enum value
  71669. DefaultRouteTableAssociationValueDisable = "disable"
  71670. )
  71671. const (
  71672. // DefaultRouteTablePropagationValueEnable is a DefaultRouteTablePropagationValue enum value
  71673. DefaultRouteTablePropagationValueEnable = "enable"
  71674. // DefaultRouteTablePropagationValueDisable is a DefaultRouteTablePropagationValue enum value
  71675. DefaultRouteTablePropagationValueDisable = "disable"
  71676. )
  71677. const (
  71678. // DefaultTargetCapacityTypeSpot is a DefaultTargetCapacityType enum value
  71679. DefaultTargetCapacityTypeSpot = "spot"
  71680. // DefaultTargetCapacityTypeOnDemand is a DefaultTargetCapacityType enum value
  71681. DefaultTargetCapacityTypeOnDemand = "on-demand"
  71682. )
  71683. const (
  71684. // DeleteFleetErrorCodeFleetIdDoesNotExist is a DeleteFleetErrorCode enum value
  71685. DeleteFleetErrorCodeFleetIdDoesNotExist = "fleetIdDoesNotExist"
  71686. // DeleteFleetErrorCodeFleetIdMalformed is a DeleteFleetErrorCode enum value
  71687. DeleteFleetErrorCodeFleetIdMalformed = "fleetIdMalformed"
  71688. // DeleteFleetErrorCodeFleetNotInDeletableState is a DeleteFleetErrorCode enum value
  71689. DeleteFleetErrorCodeFleetNotInDeletableState = "fleetNotInDeletableState"
  71690. // DeleteFleetErrorCodeUnexpectedError is a DeleteFleetErrorCode enum value
  71691. DeleteFleetErrorCodeUnexpectedError = "unexpectedError"
  71692. )
  71693. const (
  71694. // DeviceTypeEbs is a DeviceType enum value
  71695. DeviceTypeEbs = "ebs"
  71696. // DeviceTypeInstanceStore is a DeviceType enum value
  71697. DeviceTypeInstanceStore = "instance-store"
  71698. )
  71699. const (
  71700. // DiskImageFormatVmdk is a DiskImageFormat enum value
  71701. DiskImageFormatVmdk = "VMDK"
  71702. // DiskImageFormatRaw is a DiskImageFormat enum value
  71703. DiskImageFormatRaw = "RAW"
  71704. // DiskImageFormatVhd is a DiskImageFormat enum value
  71705. DiskImageFormatVhd = "VHD"
  71706. )
  71707. const (
  71708. // DnsSupportValueEnable is a DnsSupportValue enum value
  71709. DnsSupportValueEnable = "enable"
  71710. // DnsSupportValueDisable is a DnsSupportValue enum value
  71711. DnsSupportValueDisable = "disable"
  71712. )
  71713. const (
  71714. // DomainTypeVpc is a DomainType enum value
  71715. DomainTypeVpc = "vpc"
  71716. // DomainTypeStandard is a DomainType enum value
  71717. DomainTypeStandard = "standard"
  71718. )
  71719. const (
  71720. // ElasticGpuStateAttached is a ElasticGpuState enum value
  71721. ElasticGpuStateAttached = "ATTACHED"
  71722. )
  71723. const (
  71724. // ElasticGpuStatusOk is a ElasticGpuStatus enum value
  71725. ElasticGpuStatusOk = "OK"
  71726. // ElasticGpuStatusImpaired is a ElasticGpuStatus enum value
  71727. ElasticGpuStatusImpaired = "IMPAIRED"
  71728. )
  71729. const (
  71730. // EndDateTypeUnlimited is a EndDateType enum value
  71731. EndDateTypeUnlimited = "unlimited"
  71732. // EndDateTypeLimited is a EndDateType enum value
  71733. EndDateTypeLimited = "limited"
  71734. )
  71735. const (
  71736. // EventCodeInstanceReboot is a EventCode enum value
  71737. EventCodeInstanceReboot = "instance-reboot"
  71738. // EventCodeSystemReboot is a EventCode enum value
  71739. EventCodeSystemReboot = "system-reboot"
  71740. // EventCodeSystemMaintenance is a EventCode enum value
  71741. EventCodeSystemMaintenance = "system-maintenance"
  71742. // EventCodeInstanceRetirement is a EventCode enum value
  71743. EventCodeInstanceRetirement = "instance-retirement"
  71744. // EventCodeInstanceStop is a EventCode enum value
  71745. EventCodeInstanceStop = "instance-stop"
  71746. )
  71747. const (
  71748. // EventTypeInstanceChange is a EventType enum value
  71749. EventTypeInstanceChange = "instanceChange"
  71750. // EventTypeFleetRequestChange is a EventType enum value
  71751. EventTypeFleetRequestChange = "fleetRequestChange"
  71752. // EventTypeError is a EventType enum value
  71753. EventTypeError = "error"
  71754. )
  71755. const (
  71756. // ExcessCapacityTerminationPolicyNoTermination is a ExcessCapacityTerminationPolicy enum value
  71757. ExcessCapacityTerminationPolicyNoTermination = "noTermination"
  71758. // ExcessCapacityTerminationPolicyDefault is a ExcessCapacityTerminationPolicy enum value
  71759. ExcessCapacityTerminationPolicyDefault = "default"
  71760. )
  71761. const (
  71762. // ExportEnvironmentCitrix is a ExportEnvironment enum value
  71763. ExportEnvironmentCitrix = "citrix"
  71764. // ExportEnvironmentVmware is a ExportEnvironment enum value
  71765. ExportEnvironmentVmware = "vmware"
  71766. // ExportEnvironmentMicrosoft is a ExportEnvironment enum value
  71767. ExportEnvironmentMicrosoft = "microsoft"
  71768. )
  71769. const (
  71770. // ExportTaskStateActive is a ExportTaskState enum value
  71771. ExportTaskStateActive = "active"
  71772. // ExportTaskStateCancelling is a ExportTaskState enum value
  71773. ExportTaskStateCancelling = "cancelling"
  71774. // ExportTaskStateCancelled is a ExportTaskState enum value
  71775. ExportTaskStateCancelled = "cancelled"
  71776. // ExportTaskStateCompleted is a ExportTaskState enum value
  71777. ExportTaskStateCompleted = "completed"
  71778. )
  71779. const (
  71780. // FleetActivityStatusError is a FleetActivityStatus enum value
  71781. FleetActivityStatusError = "error"
  71782. // FleetActivityStatusPendingFulfillment is a FleetActivityStatus enum value
  71783. FleetActivityStatusPendingFulfillment = "pending-fulfillment"
  71784. // FleetActivityStatusPendingTermination is a FleetActivityStatus enum value
  71785. FleetActivityStatusPendingTermination = "pending-termination"
  71786. // FleetActivityStatusFulfilled is a FleetActivityStatus enum value
  71787. FleetActivityStatusFulfilled = "fulfilled"
  71788. )
  71789. const (
  71790. // FleetEventTypeInstanceChange is a FleetEventType enum value
  71791. FleetEventTypeInstanceChange = "instance-change"
  71792. // FleetEventTypeFleetChange is a FleetEventType enum value
  71793. FleetEventTypeFleetChange = "fleet-change"
  71794. // FleetEventTypeServiceError is a FleetEventType enum value
  71795. FleetEventTypeServiceError = "service-error"
  71796. )
  71797. const (
  71798. // FleetExcessCapacityTerminationPolicyNoTermination is a FleetExcessCapacityTerminationPolicy enum value
  71799. FleetExcessCapacityTerminationPolicyNoTermination = "no-termination"
  71800. // FleetExcessCapacityTerminationPolicyTermination is a FleetExcessCapacityTerminationPolicy enum value
  71801. FleetExcessCapacityTerminationPolicyTermination = "termination"
  71802. )
  71803. const (
  71804. // FleetOnDemandAllocationStrategyLowestPrice is a FleetOnDemandAllocationStrategy enum value
  71805. FleetOnDemandAllocationStrategyLowestPrice = "lowest-price"
  71806. // FleetOnDemandAllocationStrategyPrioritized is a FleetOnDemandAllocationStrategy enum value
  71807. FleetOnDemandAllocationStrategyPrioritized = "prioritized"
  71808. )
  71809. const (
  71810. // FleetStateCodeSubmitted is a FleetStateCode enum value
  71811. FleetStateCodeSubmitted = "submitted"
  71812. // FleetStateCodeActive is a FleetStateCode enum value
  71813. FleetStateCodeActive = "active"
  71814. // FleetStateCodeDeleted is a FleetStateCode enum value
  71815. FleetStateCodeDeleted = "deleted"
  71816. // FleetStateCodeFailed is a FleetStateCode enum value
  71817. FleetStateCodeFailed = "failed"
  71818. // FleetStateCodeDeletedRunning is a FleetStateCode enum value
  71819. FleetStateCodeDeletedRunning = "deleted-running"
  71820. // FleetStateCodeDeletedTerminating is a FleetStateCode enum value
  71821. FleetStateCodeDeletedTerminating = "deleted-terminating"
  71822. // FleetStateCodeModifying is a FleetStateCode enum value
  71823. FleetStateCodeModifying = "modifying"
  71824. )
  71825. const (
  71826. // FleetTypeRequest is a FleetType enum value
  71827. FleetTypeRequest = "request"
  71828. // FleetTypeMaintain is a FleetType enum value
  71829. FleetTypeMaintain = "maintain"
  71830. // FleetTypeInstant is a FleetType enum value
  71831. FleetTypeInstant = "instant"
  71832. )
  71833. const (
  71834. // FlowLogsResourceTypeVpc is a FlowLogsResourceType enum value
  71835. FlowLogsResourceTypeVpc = "VPC"
  71836. // FlowLogsResourceTypeSubnet is a FlowLogsResourceType enum value
  71837. FlowLogsResourceTypeSubnet = "Subnet"
  71838. // FlowLogsResourceTypeNetworkInterface is a FlowLogsResourceType enum value
  71839. FlowLogsResourceTypeNetworkInterface = "NetworkInterface"
  71840. )
  71841. const (
  71842. // FpgaImageAttributeNameDescription is a FpgaImageAttributeName enum value
  71843. FpgaImageAttributeNameDescription = "description"
  71844. // FpgaImageAttributeNameName is a FpgaImageAttributeName enum value
  71845. FpgaImageAttributeNameName = "name"
  71846. // FpgaImageAttributeNameLoadPermission is a FpgaImageAttributeName enum value
  71847. FpgaImageAttributeNameLoadPermission = "loadPermission"
  71848. // FpgaImageAttributeNameProductCodes is a FpgaImageAttributeName enum value
  71849. FpgaImageAttributeNameProductCodes = "productCodes"
  71850. )
  71851. const (
  71852. // FpgaImageStateCodePending is a FpgaImageStateCode enum value
  71853. FpgaImageStateCodePending = "pending"
  71854. // FpgaImageStateCodeFailed is a FpgaImageStateCode enum value
  71855. FpgaImageStateCodeFailed = "failed"
  71856. // FpgaImageStateCodeAvailable is a FpgaImageStateCode enum value
  71857. FpgaImageStateCodeAvailable = "available"
  71858. // FpgaImageStateCodeUnavailable is a FpgaImageStateCode enum value
  71859. FpgaImageStateCodeUnavailable = "unavailable"
  71860. )
  71861. const (
  71862. // GatewayTypeIpsec1 is a GatewayType enum value
  71863. GatewayTypeIpsec1 = "ipsec.1"
  71864. )
  71865. const (
  71866. // HostTenancyDedicated is a HostTenancy enum value
  71867. HostTenancyDedicated = "dedicated"
  71868. // HostTenancyHost is a HostTenancy enum value
  71869. HostTenancyHost = "host"
  71870. )
  71871. const (
  71872. // HypervisorTypeOvm is a HypervisorType enum value
  71873. HypervisorTypeOvm = "ovm"
  71874. // HypervisorTypeXen is a HypervisorType enum value
  71875. HypervisorTypeXen = "xen"
  71876. )
  71877. const (
  71878. // IamInstanceProfileAssociationStateAssociating is a IamInstanceProfileAssociationState enum value
  71879. IamInstanceProfileAssociationStateAssociating = "associating"
  71880. // IamInstanceProfileAssociationStateAssociated is a IamInstanceProfileAssociationState enum value
  71881. IamInstanceProfileAssociationStateAssociated = "associated"
  71882. // IamInstanceProfileAssociationStateDisassociating is a IamInstanceProfileAssociationState enum value
  71883. IamInstanceProfileAssociationStateDisassociating = "disassociating"
  71884. // IamInstanceProfileAssociationStateDisassociated is a IamInstanceProfileAssociationState enum value
  71885. IamInstanceProfileAssociationStateDisassociated = "disassociated"
  71886. )
  71887. const (
  71888. // ImageAttributeNameDescription is a ImageAttributeName enum value
  71889. ImageAttributeNameDescription = "description"
  71890. // ImageAttributeNameKernel is a ImageAttributeName enum value
  71891. ImageAttributeNameKernel = "kernel"
  71892. // ImageAttributeNameRamdisk is a ImageAttributeName enum value
  71893. ImageAttributeNameRamdisk = "ramdisk"
  71894. // ImageAttributeNameLaunchPermission is a ImageAttributeName enum value
  71895. ImageAttributeNameLaunchPermission = "launchPermission"
  71896. // ImageAttributeNameProductCodes is a ImageAttributeName enum value
  71897. ImageAttributeNameProductCodes = "productCodes"
  71898. // ImageAttributeNameBlockDeviceMapping is a ImageAttributeName enum value
  71899. ImageAttributeNameBlockDeviceMapping = "blockDeviceMapping"
  71900. // ImageAttributeNameSriovNetSupport is a ImageAttributeName enum value
  71901. ImageAttributeNameSriovNetSupport = "sriovNetSupport"
  71902. )
  71903. const (
  71904. // ImageStatePending is a ImageState enum value
  71905. ImageStatePending = "pending"
  71906. // ImageStateAvailable is a ImageState enum value
  71907. ImageStateAvailable = "available"
  71908. // ImageStateInvalid is a ImageState enum value
  71909. ImageStateInvalid = "invalid"
  71910. // ImageStateDeregistered is a ImageState enum value
  71911. ImageStateDeregistered = "deregistered"
  71912. // ImageStateTransient is a ImageState enum value
  71913. ImageStateTransient = "transient"
  71914. // ImageStateFailed is a ImageState enum value
  71915. ImageStateFailed = "failed"
  71916. // ImageStateError is a ImageState enum value
  71917. ImageStateError = "error"
  71918. )
  71919. const (
  71920. // ImageTypeValuesMachine is a ImageTypeValues enum value
  71921. ImageTypeValuesMachine = "machine"
  71922. // ImageTypeValuesKernel is a ImageTypeValues enum value
  71923. ImageTypeValuesKernel = "kernel"
  71924. // ImageTypeValuesRamdisk is a ImageTypeValues enum value
  71925. ImageTypeValuesRamdisk = "ramdisk"
  71926. )
  71927. const (
  71928. // InstanceAttributeNameInstanceType is a InstanceAttributeName enum value
  71929. InstanceAttributeNameInstanceType = "instanceType"
  71930. // InstanceAttributeNameKernel is a InstanceAttributeName enum value
  71931. InstanceAttributeNameKernel = "kernel"
  71932. // InstanceAttributeNameRamdisk is a InstanceAttributeName enum value
  71933. InstanceAttributeNameRamdisk = "ramdisk"
  71934. // InstanceAttributeNameUserData is a InstanceAttributeName enum value
  71935. InstanceAttributeNameUserData = "userData"
  71936. // InstanceAttributeNameDisableApiTermination is a InstanceAttributeName enum value
  71937. InstanceAttributeNameDisableApiTermination = "disableApiTermination"
  71938. // InstanceAttributeNameInstanceInitiatedShutdownBehavior is a InstanceAttributeName enum value
  71939. InstanceAttributeNameInstanceInitiatedShutdownBehavior = "instanceInitiatedShutdownBehavior"
  71940. // InstanceAttributeNameRootDeviceName is a InstanceAttributeName enum value
  71941. InstanceAttributeNameRootDeviceName = "rootDeviceName"
  71942. // InstanceAttributeNameBlockDeviceMapping is a InstanceAttributeName enum value
  71943. InstanceAttributeNameBlockDeviceMapping = "blockDeviceMapping"
  71944. // InstanceAttributeNameProductCodes is a InstanceAttributeName enum value
  71945. InstanceAttributeNameProductCodes = "productCodes"
  71946. // InstanceAttributeNameSourceDestCheck is a InstanceAttributeName enum value
  71947. InstanceAttributeNameSourceDestCheck = "sourceDestCheck"
  71948. // InstanceAttributeNameGroupSet is a InstanceAttributeName enum value
  71949. InstanceAttributeNameGroupSet = "groupSet"
  71950. // InstanceAttributeNameEbsOptimized is a InstanceAttributeName enum value
  71951. InstanceAttributeNameEbsOptimized = "ebsOptimized"
  71952. // InstanceAttributeNameSriovNetSupport is a InstanceAttributeName enum value
  71953. InstanceAttributeNameSriovNetSupport = "sriovNetSupport"
  71954. // InstanceAttributeNameEnaSupport is a InstanceAttributeName enum value
  71955. InstanceAttributeNameEnaSupport = "enaSupport"
  71956. )
  71957. const (
  71958. // InstanceHealthStatusHealthy is a InstanceHealthStatus enum value
  71959. InstanceHealthStatusHealthy = "healthy"
  71960. // InstanceHealthStatusUnhealthy is a InstanceHealthStatus enum value
  71961. InstanceHealthStatusUnhealthy = "unhealthy"
  71962. )
  71963. const (
  71964. // InstanceInterruptionBehaviorHibernate is a InstanceInterruptionBehavior enum value
  71965. InstanceInterruptionBehaviorHibernate = "hibernate"
  71966. // InstanceInterruptionBehaviorStop is a InstanceInterruptionBehavior enum value
  71967. InstanceInterruptionBehaviorStop = "stop"
  71968. // InstanceInterruptionBehaviorTerminate is a InstanceInterruptionBehavior enum value
  71969. InstanceInterruptionBehaviorTerminate = "terminate"
  71970. )
  71971. const (
  71972. // InstanceLifecycleSpot is a InstanceLifecycle enum value
  71973. InstanceLifecycleSpot = "spot"
  71974. // InstanceLifecycleOnDemand is a InstanceLifecycle enum value
  71975. InstanceLifecycleOnDemand = "on-demand"
  71976. )
  71977. const (
  71978. // InstanceLifecycleTypeSpot is a InstanceLifecycleType enum value
  71979. InstanceLifecycleTypeSpot = "spot"
  71980. // InstanceLifecycleTypeScheduled is a InstanceLifecycleType enum value
  71981. InstanceLifecycleTypeScheduled = "scheduled"
  71982. )
  71983. const (
  71984. // InstanceMatchCriteriaOpen is a InstanceMatchCriteria enum value
  71985. InstanceMatchCriteriaOpen = "open"
  71986. // InstanceMatchCriteriaTargeted is a InstanceMatchCriteria enum value
  71987. InstanceMatchCriteriaTargeted = "targeted"
  71988. )
  71989. const (
  71990. // InstanceStateNamePending is a InstanceStateName enum value
  71991. InstanceStateNamePending = "pending"
  71992. // InstanceStateNameRunning is a InstanceStateName enum value
  71993. InstanceStateNameRunning = "running"
  71994. // InstanceStateNameShuttingDown is a InstanceStateName enum value
  71995. InstanceStateNameShuttingDown = "shutting-down"
  71996. // InstanceStateNameTerminated is a InstanceStateName enum value
  71997. InstanceStateNameTerminated = "terminated"
  71998. // InstanceStateNameStopping is a InstanceStateName enum value
  71999. InstanceStateNameStopping = "stopping"
  72000. // InstanceStateNameStopped is a InstanceStateName enum value
  72001. InstanceStateNameStopped = "stopped"
  72002. )
  72003. const (
  72004. // InstanceTypeT1Micro is a InstanceType enum value
  72005. InstanceTypeT1Micro = "t1.micro"
  72006. // InstanceTypeT2Nano is a InstanceType enum value
  72007. InstanceTypeT2Nano = "t2.nano"
  72008. // InstanceTypeT2Micro is a InstanceType enum value
  72009. InstanceTypeT2Micro = "t2.micro"
  72010. // InstanceTypeT2Small is a InstanceType enum value
  72011. InstanceTypeT2Small = "t2.small"
  72012. // InstanceTypeT2Medium is a InstanceType enum value
  72013. InstanceTypeT2Medium = "t2.medium"
  72014. // InstanceTypeT2Large is a InstanceType enum value
  72015. InstanceTypeT2Large = "t2.large"
  72016. // InstanceTypeT2Xlarge is a InstanceType enum value
  72017. InstanceTypeT2Xlarge = "t2.xlarge"
  72018. // InstanceTypeT22xlarge is a InstanceType enum value
  72019. InstanceTypeT22xlarge = "t2.2xlarge"
  72020. // InstanceTypeT3Nano is a InstanceType enum value
  72021. InstanceTypeT3Nano = "t3.nano"
  72022. // InstanceTypeT3Micro is a InstanceType enum value
  72023. InstanceTypeT3Micro = "t3.micro"
  72024. // InstanceTypeT3Small is a InstanceType enum value
  72025. InstanceTypeT3Small = "t3.small"
  72026. // InstanceTypeT3Medium is a InstanceType enum value
  72027. InstanceTypeT3Medium = "t3.medium"
  72028. // InstanceTypeT3Large is a InstanceType enum value
  72029. InstanceTypeT3Large = "t3.large"
  72030. // InstanceTypeT3Xlarge is a InstanceType enum value
  72031. InstanceTypeT3Xlarge = "t3.xlarge"
  72032. // InstanceTypeT32xlarge is a InstanceType enum value
  72033. InstanceTypeT32xlarge = "t3.2xlarge"
  72034. // InstanceTypeM1Small is a InstanceType enum value
  72035. InstanceTypeM1Small = "m1.small"
  72036. // InstanceTypeM1Medium is a InstanceType enum value
  72037. InstanceTypeM1Medium = "m1.medium"
  72038. // InstanceTypeM1Large is a InstanceType enum value
  72039. InstanceTypeM1Large = "m1.large"
  72040. // InstanceTypeM1Xlarge is a InstanceType enum value
  72041. InstanceTypeM1Xlarge = "m1.xlarge"
  72042. // InstanceTypeM3Medium is a InstanceType enum value
  72043. InstanceTypeM3Medium = "m3.medium"
  72044. // InstanceTypeM3Large is a InstanceType enum value
  72045. InstanceTypeM3Large = "m3.large"
  72046. // InstanceTypeM3Xlarge is a InstanceType enum value
  72047. InstanceTypeM3Xlarge = "m3.xlarge"
  72048. // InstanceTypeM32xlarge is a InstanceType enum value
  72049. InstanceTypeM32xlarge = "m3.2xlarge"
  72050. // InstanceTypeM4Large is a InstanceType enum value
  72051. InstanceTypeM4Large = "m4.large"
  72052. // InstanceTypeM4Xlarge is a InstanceType enum value
  72053. InstanceTypeM4Xlarge = "m4.xlarge"
  72054. // InstanceTypeM42xlarge is a InstanceType enum value
  72055. InstanceTypeM42xlarge = "m4.2xlarge"
  72056. // InstanceTypeM44xlarge is a InstanceType enum value
  72057. InstanceTypeM44xlarge = "m4.4xlarge"
  72058. // InstanceTypeM410xlarge is a InstanceType enum value
  72059. InstanceTypeM410xlarge = "m4.10xlarge"
  72060. // InstanceTypeM416xlarge is a InstanceType enum value
  72061. InstanceTypeM416xlarge = "m4.16xlarge"
  72062. // InstanceTypeM2Xlarge is a InstanceType enum value
  72063. InstanceTypeM2Xlarge = "m2.xlarge"
  72064. // InstanceTypeM22xlarge is a InstanceType enum value
  72065. InstanceTypeM22xlarge = "m2.2xlarge"
  72066. // InstanceTypeM24xlarge is a InstanceType enum value
  72067. InstanceTypeM24xlarge = "m2.4xlarge"
  72068. // InstanceTypeCr18xlarge is a InstanceType enum value
  72069. InstanceTypeCr18xlarge = "cr1.8xlarge"
  72070. // InstanceTypeR3Large is a InstanceType enum value
  72071. InstanceTypeR3Large = "r3.large"
  72072. // InstanceTypeR3Xlarge is a InstanceType enum value
  72073. InstanceTypeR3Xlarge = "r3.xlarge"
  72074. // InstanceTypeR32xlarge is a InstanceType enum value
  72075. InstanceTypeR32xlarge = "r3.2xlarge"
  72076. // InstanceTypeR34xlarge is a InstanceType enum value
  72077. InstanceTypeR34xlarge = "r3.4xlarge"
  72078. // InstanceTypeR38xlarge is a InstanceType enum value
  72079. InstanceTypeR38xlarge = "r3.8xlarge"
  72080. // InstanceTypeR4Large is a InstanceType enum value
  72081. InstanceTypeR4Large = "r4.large"
  72082. // InstanceTypeR4Xlarge is a InstanceType enum value
  72083. InstanceTypeR4Xlarge = "r4.xlarge"
  72084. // InstanceTypeR42xlarge is a InstanceType enum value
  72085. InstanceTypeR42xlarge = "r4.2xlarge"
  72086. // InstanceTypeR44xlarge is a InstanceType enum value
  72087. InstanceTypeR44xlarge = "r4.4xlarge"
  72088. // InstanceTypeR48xlarge is a InstanceType enum value
  72089. InstanceTypeR48xlarge = "r4.8xlarge"
  72090. // InstanceTypeR416xlarge is a InstanceType enum value
  72091. InstanceTypeR416xlarge = "r4.16xlarge"
  72092. // InstanceTypeR5Large is a InstanceType enum value
  72093. InstanceTypeR5Large = "r5.large"
  72094. // InstanceTypeR5Xlarge is a InstanceType enum value
  72095. InstanceTypeR5Xlarge = "r5.xlarge"
  72096. // InstanceTypeR52xlarge is a InstanceType enum value
  72097. InstanceTypeR52xlarge = "r5.2xlarge"
  72098. // InstanceTypeR54xlarge is a InstanceType enum value
  72099. InstanceTypeR54xlarge = "r5.4xlarge"
  72100. // InstanceTypeR58xlarge is a InstanceType enum value
  72101. InstanceTypeR58xlarge = "r5.8xlarge"
  72102. // InstanceTypeR512xlarge is a InstanceType enum value
  72103. InstanceTypeR512xlarge = "r5.12xlarge"
  72104. // InstanceTypeR516xlarge is a InstanceType enum value
  72105. InstanceTypeR516xlarge = "r5.16xlarge"
  72106. // InstanceTypeR524xlarge is a InstanceType enum value
  72107. InstanceTypeR524xlarge = "r5.24xlarge"
  72108. // InstanceTypeR5Metal is a InstanceType enum value
  72109. InstanceTypeR5Metal = "r5.metal"
  72110. // InstanceTypeR5aLarge is a InstanceType enum value
  72111. InstanceTypeR5aLarge = "r5a.large"
  72112. // InstanceTypeR5aXlarge is a InstanceType enum value
  72113. InstanceTypeR5aXlarge = "r5a.xlarge"
  72114. // InstanceTypeR5a2xlarge is a InstanceType enum value
  72115. InstanceTypeR5a2xlarge = "r5a.2xlarge"
  72116. // InstanceTypeR5a4xlarge is a InstanceType enum value
  72117. InstanceTypeR5a4xlarge = "r5a.4xlarge"
  72118. // InstanceTypeR5a12xlarge is a InstanceType enum value
  72119. InstanceTypeR5a12xlarge = "r5a.12xlarge"
  72120. // InstanceTypeR5a24xlarge is a InstanceType enum value
  72121. InstanceTypeR5a24xlarge = "r5a.24xlarge"
  72122. // InstanceTypeR5dLarge is a InstanceType enum value
  72123. InstanceTypeR5dLarge = "r5d.large"
  72124. // InstanceTypeR5dXlarge is a InstanceType enum value
  72125. InstanceTypeR5dXlarge = "r5d.xlarge"
  72126. // InstanceTypeR5d2xlarge is a InstanceType enum value
  72127. InstanceTypeR5d2xlarge = "r5d.2xlarge"
  72128. // InstanceTypeR5d4xlarge is a InstanceType enum value
  72129. InstanceTypeR5d4xlarge = "r5d.4xlarge"
  72130. // InstanceTypeR5d8xlarge is a InstanceType enum value
  72131. InstanceTypeR5d8xlarge = "r5d.8xlarge"
  72132. // InstanceTypeR5d12xlarge is a InstanceType enum value
  72133. InstanceTypeR5d12xlarge = "r5d.12xlarge"
  72134. // InstanceTypeR5d16xlarge is a InstanceType enum value
  72135. InstanceTypeR5d16xlarge = "r5d.16xlarge"
  72136. // InstanceTypeR5d24xlarge is a InstanceType enum value
  72137. InstanceTypeR5d24xlarge = "r5d.24xlarge"
  72138. // InstanceTypeR5dMetal is a InstanceType enum value
  72139. InstanceTypeR5dMetal = "r5d.metal"
  72140. // InstanceTypeX116xlarge is a InstanceType enum value
  72141. InstanceTypeX116xlarge = "x1.16xlarge"
  72142. // InstanceTypeX132xlarge is a InstanceType enum value
  72143. InstanceTypeX132xlarge = "x1.32xlarge"
  72144. // InstanceTypeX1eXlarge is a InstanceType enum value
  72145. InstanceTypeX1eXlarge = "x1e.xlarge"
  72146. // InstanceTypeX1e2xlarge is a InstanceType enum value
  72147. InstanceTypeX1e2xlarge = "x1e.2xlarge"
  72148. // InstanceTypeX1e4xlarge is a InstanceType enum value
  72149. InstanceTypeX1e4xlarge = "x1e.4xlarge"
  72150. // InstanceTypeX1e8xlarge is a InstanceType enum value
  72151. InstanceTypeX1e8xlarge = "x1e.8xlarge"
  72152. // InstanceTypeX1e16xlarge is a InstanceType enum value
  72153. InstanceTypeX1e16xlarge = "x1e.16xlarge"
  72154. // InstanceTypeX1e32xlarge is a InstanceType enum value
  72155. InstanceTypeX1e32xlarge = "x1e.32xlarge"
  72156. // InstanceTypeI2Xlarge is a InstanceType enum value
  72157. InstanceTypeI2Xlarge = "i2.xlarge"
  72158. // InstanceTypeI22xlarge is a InstanceType enum value
  72159. InstanceTypeI22xlarge = "i2.2xlarge"
  72160. // InstanceTypeI24xlarge is a InstanceType enum value
  72161. InstanceTypeI24xlarge = "i2.4xlarge"
  72162. // InstanceTypeI28xlarge is a InstanceType enum value
  72163. InstanceTypeI28xlarge = "i2.8xlarge"
  72164. // InstanceTypeI3Large is a InstanceType enum value
  72165. InstanceTypeI3Large = "i3.large"
  72166. // InstanceTypeI3Xlarge is a InstanceType enum value
  72167. InstanceTypeI3Xlarge = "i3.xlarge"
  72168. // InstanceTypeI32xlarge is a InstanceType enum value
  72169. InstanceTypeI32xlarge = "i3.2xlarge"
  72170. // InstanceTypeI34xlarge is a InstanceType enum value
  72171. InstanceTypeI34xlarge = "i3.4xlarge"
  72172. // InstanceTypeI38xlarge is a InstanceType enum value
  72173. InstanceTypeI38xlarge = "i3.8xlarge"
  72174. // InstanceTypeI316xlarge is a InstanceType enum value
  72175. InstanceTypeI316xlarge = "i3.16xlarge"
  72176. // InstanceTypeI3Metal is a InstanceType enum value
  72177. InstanceTypeI3Metal = "i3.metal"
  72178. // InstanceTypeHi14xlarge is a InstanceType enum value
  72179. InstanceTypeHi14xlarge = "hi1.4xlarge"
  72180. // InstanceTypeHs18xlarge is a InstanceType enum value
  72181. InstanceTypeHs18xlarge = "hs1.8xlarge"
  72182. // InstanceTypeC1Medium is a InstanceType enum value
  72183. InstanceTypeC1Medium = "c1.medium"
  72184. // InstanceTypeC1Xlarge is a InstanceType enum value
  72185. InstanceTypeC1Xlarge = "c1.xlarge"
  72186. // InstanceTypeC3Large is a InstanceType enum value
  72187. InstanceTypeC3Large = "c3.large"
  72188. // InstanceTypeC3Xlarge is a InstanceType enum value
  72189. InstanceTypeC3Xlarge = "c3.xlarge"
  72190. // InstanceTypeC32xlarge is a InstanceType enum value
  72191. InstanceTypeC32xlarge = "c3.2xlarge"
  72192. // InstanceTypeC34xlarge is a InstanceType enum value
  72193. InstanceTypeC34xlarge = "c3.4xlarge"
  72194. // InstanceTypeC38xlarge is a InstanceType enum value
  72195. InstanceTypeC38xlarge = "c3.8xlarge"
  72196. // InstanceTypeC4Large is a InstanceType enum value
  72197. InstanceTypeC4Large = "c4.large"
  72198. // InstanceTypeC4Xlarge is a InstanceType enum value
  72199. InstanceTypeC4Xlarge = "c4.xlarge"
  72200. // InstanceTypeC42xlarge is a InstanceType enum value
  72201. InstanceTypeC42xlarge = "c4.2xlarge"
  72202. // InstanceTypeC44xlarge is a InstanceType enum value
  72203. InstanceTypeC44xlarge = "c4.4xlarge"
  72204. // InstanceTypeC48xlarge is a InstanceType enum value
  72205. InstanceTypeC48xlarge = "c4.8xlarge"
  72206. // InstanceTypeC5Large is a InstanceType enum value
  72207. InstanceTypeC5Large = "c5.large"
  72208. // InstanceTypeC5Xlarge is a InstanceType enum value
  72209. InstanceTypeC5Xlarge = "c5.xlarge"
  72210. // InstanceTypeC52xlarge is a InstanceType enum value
  72211. InstanceTypeC52xlarge = "c5.2xlarge"
  72212. // InstanceTypeC54xlarge is a InstanceType enum value
  72213. InstanceTypeC54xlarge = "c5.4xlarge"
  72214. // InstanceTypeC59xlarge is a InstanceType enum value
  72215. InstanceTypeC59xlarge = "c5.9xlarge"
  72216. // InstanceTypeC518xlarge is a InstanceType enum value
  72217. InstanceTypeC518xlarge = "c5.18xlarge"
  72218. // InstanceTypeC5dLarge is a InstanceType enum value
  72219. InstanceTypeC5dLarge = "c5d.large"
  72220. // InstanceTypeC5dXlarge is a InstanceType enum value
  72221. InstanceTypeC5dXlarge = "c5d.xlarge"
  72222. // InstanceTypeC5d2xlarge is a InstanceType enum value
  72223. InstanceTypeC5d2xlarge = "c5d.2xlarge"
  72224. // InstanceTypeC5d4xlarge is a InstanceType enum value
  72225. InstanceTypeC5d4xlarge = "c5d.4xlarge"
  72226. // InstanceTypeC5d9xlarge is a InstanceType enum value
  72227. InstanceTypeC5d9xlarge = "c5d.9xlarge"
  72228. // InstanceTypeC5d18xlarge is a InstanceType enum value
  72229. InstanceTypeC5d18xlarge = "c5d.18xlarge"
  72230. // InstanceTypeC5nLarge is a InstanceType enum value
  72231. InstanceTypeC5nLarge = "c5n.large"
  72232. // InstanceTypeC5nXlarge is a InstanceType enum value
  72233. InstanceTypeC5nXlarge = "c5n.xlarge"
  72234. // InstanceTypeC5n2xlarge is a InstanceType enum value
  72235. InstanceTypeC5n2xlarge = "c5n.2xlarge"
  72236. // InstanceTypeC5n4xlarge is a InstanceType enum value
  72237. InstanceTypeC5n4xlarge = "c5n.4xlarge"
  72238. // InstanceTypeC5n9xlarge is a InstanceType enum value
  72239. InstanceTypeC5n9xlarge = "c5n.9xlarge"
  72240. // InstanceTypeC5n18xlarge is a InstanceType enum value
  72241. InstanceTypeC5n18xlarge = "c5n.18xlarge"
  72242. // InstanceTypeCc14xlarge is a InstanceType enum value
  72243. InstanceTypeCc14xlarge = "cc1.4xlarge"
  72244. // InstanceTypeCc28xlarge is a InstanceType enum value
  72245. InstanceTypeCc28xlarge = "cc2.8xlarge"
  72246. // InstanceTypeG22xlarge is a InstanceType enum value
  72247. InstanceTypeG22xlarge = "g2.2xlarge"
  72248. // InstanceTypeG28xlarge is a InstanceType enum value
  72249. InstanceTypeG28xlarge = "g2.8xlarge"
  72250. // InstanceTypeG34xlarge is a InstanceType enum value
  72251. InstanceTypeG34xlarge = "g3.4xlarge"
  72252. // InstanceTypeG38xlarge is a InstanceType enum value
  72253. InstanceTypeG38xlarge = "g3.8xlarge"
  72254. // InstanceTypeG316xlarge is a InstanceType enum value
  72255. InstanceTypeG316xlarge = "g3.16xlarge"
  72256. // InstanceTypeG3sXlarge is a InstanceType enum value
  72257. InstanceTypeG3sXlarge = "g3s.xlarge"
  72258. // InstanceTypeCg14xlarge is a InstanceType enum value
  72259. InstanceTypeCg14xlarge = "cg1.4xlarge"
  72260. // InstanceTypeP2Xlarge is a InstanceType enum value
  72261. InstanceTypeP2Xlarge = "p2.xlarge"
  72262. // InstanceTypeP28xlarge is a InstanceType enum value
  72263. InstanceTypeP28xlarge = "p2.8xlarge"
  72264. // InstanceTypeP216xlarge is a InstanceType enum value
  72265. InstanceTypeP216xlarge = "p2.16xlarge"
  72266. // InstanceTypeP32xlarge is a InstanceType enum value
  72267. InstanceTypeP32xlarge = "p3.2xlarge"
  72268. // InstanceTypeP38xlarge is a InstanceType enum value
  72269. InstanceTypeP38xlarge = "p3.8xlarge"
  72270. // InstanceTypeP316xlarge is a InstanceType enum value
  72271. InstanceTypeP316xlarge = "p3.16xlarge"
  72272. // InstanceTypeP3dn24xlarge is a InstanceType enum value
  72273. InstanceTypeP3dn24xlarge = "p3dn.24xlarge"
  72274. // InstanceTypeD2Xlarge is a InstanceType enum value
  72275. InstanceTypeD2Xlarge = "d2.xlarge"
  72276. // InstanceTypeD22xlarge is a InstanceType enum value
  72277. InstanceTypeD22xlarge = "d2.2xlarge"
  72278. // InstanceTypeD24xlarge is a InstanceType enum value
  72279. InstanceTypeD24xlarge = "d2.4xlarge"
  72280. // InstanceTypeD28xlarge is a InstanceType enum value
  72281. InstanceTypeD28xlarge = "d2.8xlarge"
  72282. // InstanceTypeF12xlarge is a InstanceType enum value
  72283. InstanceTypeF12xlarge = "f1.2xlarge"
  72284. // InstanceTypeF14xlarge is a InstanceType enum value
  72285. InstanceTypeF14xlarge = "f1.4xlarge"
  72286. // InstanceTypeF116xlarge is a InstanceType enum value
  72287. InstanceTypeF116xlarge = "f1.16xlarge"
  72288. // InstanceTypeM5Large is a InstanceType enum value
  72289. InstanceTypeM5Large = "m5.large"
  72290. // InstanceTypeM5Xlarge is a InstanceType enum value
  72291. InstanceTypeM5Xlarge = "m5.xlarge"
  72292. // InstanceTypeM52xlarge is a InstanceType enum value
  72293. InstanceTypeM52xlarge = "m5.2xlarge"
  72294. // InstanceTypeM54xlarge is a InstanceType enum value
  72295. InstanceTypeM54xlarge = "m5.4xlarge"
  72296. // InstanceTypeM512xlarge is a InstanceType enum value
  72297. InstanceTypeM512xlarge = "m5.12xlarge"
  72298. // InstanceTypeM524xlarge is a InstanceType enum value
  72299. InstanceTypeM524xlarge = "m5.24xlarge"
  72300. // InstanceTypeM5aLarge is a InstanceType enum value
  72301. InstanceTypeM5aLarge = "m5a.large"
  72302. // InstanceTypeM5aXlarge is a InstanceType enum value
  72303. InstanceTypeM5aXlarge = "m5a.xlarge"
  72304. // InstanceTypeM5a2xlarge is a InstanceType enum value
  72305. InstanceTypeM5a2xlarge = "m5a.2xlarge"
  72306. // InstanceTypeM5a4xlarge is a InstanceType enum value
  72307. InstanceTypeM5a4xlarge = "m5a.4xlarge"
  72308. // InstanceTypeM5a12xlarge is a InstanceType enum value
  72309. InstanceTypeM5a12xlarge = "m5a.12xlarge"
  72310. // InstanceTypeM5a24xlarge is a InstanceType enum value
  72311. InstanceTypeM5a24xlarge = "m5a.24xlarge"
  72312. // InstanceTypeM5dLarge is a InstanceType enum value
  72313. InstanceTypeM5dLarge = "m5d.large"
  72314. // InstanceTypeM5dXlarge is a InstanceType enum value
  72315. InstanceTypeM5dXlarge = "m5d.xlarge"
  72316. // InstanceTypeM5d2xlarge is a InstanceType enum value
  72317. InstanceTypeM5d2xlarge = "m5d.2xlarge"
  72318. // InstanceTypeM5d4xlarge is a InstanceType enum value
  72319. InstanceTypeM5d4xlarge = "m5d.4xlarge"
  72320. // InstanceTypeM5d12xlarge is a InstanceType enum value
  72321. InstanceTypeM5d12xlarge = "m5d.12xlarge"
  72322. // InstanceTypeM5d24xlarge is a InstanceType enum value
  72323. InstanceTypeM5d24xlarge = "m5d.24xlarge"
  72324. // InstanceTypeH12xlarge is a InstanceType enum value
  72325. InstanceTypeH12xlarge = "h1.2xlarge"
  72326. // InstanceTypeH14xlarge is a InstanceType enum value
  72327. InstanceTypeH14xlarge = "h1.4xlarge"
  72328. // InstanceTypeH18xlarge is a InstanceType enum value
  72329. InstanceTypeH18xlarge = "h1.8xlarge"
  72330. // InstanceTypeH116xlarge is a InstanceType enum value
  72331. InstanceTypeH116xlarge = "h1.16xlarge"
  72332. // InstanceTypeZ1dLarge is a InstanceType enum value
  72333. InstanceTypeZ1dLarge = "z1d.large"
  72334. // InstanceTypeZ1dXlarge is a InstanceType enum value
  72335. InstanceTypeZ1dXlarge = "z1d.xlarge"
  72336. // InstanceTypeZ1d2xlarge is a InstanceType enum value
  72337. InstanceTypeZ1d2xlarge = "z1d.2xlarge"
  72338. // InstanceTypeZ1d3xlarge is a InstanceType enum value
  72339. InstanceTypeZ1d3xlarge = "z1d.3xlarge"
  72340. // InstanceTypeZ1d6xlarge is a InstanceType enum value
  72341. InstanceTypeZ1d6xlarge = "z1d.6xlarge"
  72342. // InstanceTypeZ1d12xlarge is a InstanceType enum value
  72343. InstanceTypeZ1d12xlarge = "z1d.12xlarge"
  72344. // InstanceTypeU6tb1Metal is a InstanceType enum value
  72345. InstanceTypeU6tb1Metal = "u-6tb1.metal"
  72346. // InstanceTypeU9tb1Metal is a InstanceType enum value
  72347. InstanceTypeU9tb1Metal = "u-9tb1.metal"
  72348. // InstanceTypeU12tb1Metal is a InstanceType enum value
  72349. InstanceTypeU12tb1Metal = "u-12tb1.metal"
  72350. // InstanceTypeA1Medium is a InstanceType enum value
  72351. InstanceTypeA1Medium = "a1.medium"
  72352. // InstanceTypeA1Large is a InstanceType enum value
  72353. InstanceTypeA1Large = "a1.large"
  72354. // InstanceTypeA1Xlarge is a InstanceType enum value
  72355. InstanceTypeA1Xlarge = "a1.xlarge"
  72356. // InstanceTypeA12xlarge is a InstanceType enum value
  72357. InstanceTypeA12xlarge = "a1.2xlarge"
  72358. // InstanceTypeA14xlarge is a InstanceType enum value
  72359. InstanceTypeA14xlarge = "a1.4xlarge"
  72360. )
  72361. const (
  72362. // InterfacePermissionTypeInstanceAttach is a InterfacePermissionType enum value
  72363. InterfacePermissionTypeInstanceAttach = "INSTANCE-ATTACH"
  72364. // InterfacePermissionTypeEipAssociate is a InterfacePermissionType enum value
  72365. InterfacePermissionTypeEipAssociate = "EIP-ASSOCIATE"
  72366. )
  72367. const (
  72368. // Ipv6SupportValueEnable is a Ipv6SupportValue enum value
  72369. Ipv6SupportValueEnable = "enable"
  72370. // Ipv6SupportValueDisable is a Ipv6SupportValue enum value
  72371. Ipv6SupportValueDisable = "disable"
  72372. )
  72373. const (
  72374. // LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist is a LaunchTemplateErrorCode enum value
  72375. LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist = "launchTemplateIdDoesNotExist"
  72376. // LaunchTemplateErrorCodeLaunchTemplateIdMalformed is a LaunchTemplateErrorCode enum value
  72377. LaunchTemplateErrorCodeLaunchTemplateIdMalformed = "launchTemplateIdMalformed"
  72378. // LaunchTemplateErrorCodeLaunchTemplateNameDoesNotExist is a LaunchTemplateErrorCode enum value
  72379. LaunchTemplateErrorCodeLaunchTemplateNameDoesNotExist = "launchTemplateNameDoesNotExist"
  72380. // LaunchTemplateErrorCodeLaunchTemplateNameMalformed is a LaunchTemplateErrorCode enum value
  72381. LaunchTemplateErrorCodeLaunchTemplateNameMalformed = "launchTemplateNameMalformed"
  72382. // LaunchTemplateErrorCodeLaunchTemplateVersionDoesNotExist is a LaunchTemplateErrorCode enum value
  72383. LaunchTemplateErrorCodeLaunchTemplateVersionDoesNotExist = "launchTemplateVersionDoesNotExist"
  72384. // LaunchTemplateErrorCodeUnexpectedError is a LaunchTemplateErrorCode enum value
  72385. LaunchTemplateErrorCodeUnexpectedError = "unexpectedError"
  72386. )
  72387. const (
  72388. // ListingStateAvailable is a ListingState enum value
  72389. ListingStateAvailable = "available"
  72390. // ListingStateSold is a ListingState enum value
  72391. ListingStateSold = "sold"
  72392. // ListingStateCancelled is a ListingState enum value
  72393. ListingStateCancelled = "cancelled"
  72394. // ListingStatePending is a ListingState enum value
  72395. ListingStatePending = "pending"
  72396. )
  72397. const (
  72398. // ListingStatusActive is a ListingStatus enum value
  72399. ListingStatusActive = "active"
  72400. // ListingStatusPending is a ListingStatus enum value
  72401. ListingStatusPending = "pending"
  72402. // ListingStatusCancelled is a ListingStatus enum value
  72403. ListingStatusCancelled = "cancelled"
  72404. // ListingStatusClosed is a ListingStatus enum value
  72405. ListingStatusClosed = "closed"
  72406. )
  72407. const (
  72408. // LogDestinationTypeCloudWatchLogs is a LogDestinationType enum value
  72409. LogDestinationTypeCloudWatchLogs = "cloud-watch-logs"
  72410. // LogDestinationTypeS3 is a LogDestinationType enum value
  72411. LogDestinationTypeS3 = "s3"
  72412. )
  72413. const (
  72414. // MarketTypeSpot is a MarketType enum value
  72415. MarketTypeSpot = "spot"
  72416. )
  72417. const (
  72418. // MonitoringStateDisabled is a MonitoringState enum value
  72419. MonitoringStateDisabled = "disabled"
  72420. // MonitoringStateDisabling is a MonitoringState enum value
  72421. MonitoringStateDisabling = "disabling"
  72422. // MonitoringStateEnabled is a MonitoringState enum value
  72423. MonitoringStateEnabled = "enabled"
  72424. // MonitoringStatePending is a MonitoringState enum value
  72425. MonitoringStatePending = "pending"
  72426. )
  72427. const (
  72428. // MoveStatusMovingToVpc is a MoveStatus enum value
  72429. MoveStatusMovingToVpc = "movingToVpc"
  72430. // MoveStatusRestoringToClassic is a MoveStatus enum value
  72431. MoveStatusRestoringToClassic = "restoringToClassic"
  72432. )
  72433. const (
  72434. // NatGatewayStatePending is a NatGatewayState enum value
  72435. NatGatewayStatePending = "pending"
  72436. // NatGatewayStateFailed is a NatGatewayState enum value
  72437. NatGatewayStateFailed = "failed"
  72438. // NatGatewayStateAvailable is a NatGatewayState enum value
  72439. NatGatewayStateAvailable = "available"
  72440. // NatGatewayStateDeleting is a NatGatewayState enum value
  72441. NatGatewayStateDeleting = "deleting"
  72442. // NatGatewayStateDeleted is a NatGatewayState enum value
  72443. NatGatewayStateDeleted = "deleted"
  72444. )
  72445. const (
  72446. // NetworkInterfaceAttributeDescription is a NetworkInterfaceAttribute enum value
  72447. NetworkInterfaceAttributeDescription = "description"
  72448. // NetworkInterfaceAttributeGroupSet is a NetworkInterfaceAttribute enum value
  72449. NetworkInterfaceAttributeGroupSet = "groupSet"
  72450. // NetworkInterfaceAttributeSourceDestCheck is a NetworkInterfaceAttribute enum value
  72451. NetworkInterfaceAttributeSourceDestCheck = "sourceDestCheck"
  72452. // NetworkInterfaceAttributeAttachment is a NetworkInterfaceAttribute enum value
  72453. NetworkInterfaceAttributeAttachment = "attachment"
  72454. )
  72455. const (
  72456. // NetworkInterfacePermissionStateCodePending is a NetworkInterfacePermissionStateCode enum value
  72457. NetworkInterfacePermissionStateCodePending = "pending"
  72458. // NetworkInterfacePermissionStateCodeGranted is a NetworkInterfacePermissionStateCode enum value
  72459. NetworkInterfacePermissionStateCodeGranted = "granted"
  72460. // NetworkInterfacePermissionStateCodeRevoking is a NetworkInterfacePermissionStateCode enum value
  72461. NetworkInterfacePermissionStateCodeRevoking = "revoking"
  72462. // NetworkInterfacePermissionStateCodeRevoked is a NetworkInterfacePermissionStateCode enum value
  72463. NetworkInterfacePermissionStateCodeRevoked = "revoked"
  72464. )
  72465. const (
  72466. // NetworkInterfaceStatusAvailable is a NetworkInterfaceStatus enum value
  72467. NetworkInterfaceStatusAvailable = "available"
  72468. // NetworkInterfaceStatusAssociated is a NetworkInterfaceStatus enum value
  72469. NetworkInterfaceStatusAssociated = "associated"
  72470. // NetworkInterfaceStatusAttaching is a NetworkInterfaceStatus enum value
  72471. NetworkInterfaceStatusAttaching = "attaching"
  72472. // NetworkInterfaceStatusInUse is a NetworkInterfaceStatus enum value
  72473. NetworkInterfaceStatusInUse = "in-use"
  72474. // NetworkInterfaceStatusDetaching is a NetworkInterfaceStatus enum value
  72475. NetworkInterfaceStatusDetaching = "detaching"
  72476. )
  72477. const (
  72478. // NetworkInterfaceTypeInterface is a NetworkInterfaceType enum value
  72479. NetworkInterfaceTypeInterface = "interface"
  72480. // NetworkInterfaceTypeNatGateway is a NetworkInterfaceType enum value
  72481. NetworkInterfaceTypeNatGateway = "natGateway"
  72482. )
  72483. const (
  72484. // OfferingClassTypeStandard is a OfferingClassType enum value
  72485. OfferingClassTypeStandard = "standard"
  72486. // OfferingClassTypeConvertible is a OfferingClassType enum value
  72487. OfferingClassTypeConvertible = "convertible"
  72488. )
  72489. const (
  72490. // OfferingTypeValuesHeavyUtilization is a OfferingTypeValues enum value
  72491. OfferingTypeValuesHeavyUtilization = "Heavy Utilization"
  72492. // OfferingTypeValuesMediumUtilization is a OfferingTypeValues enum value
  72493. OfferingTypeValuesMediumUtilization = "Medium Utilization"
  72494. // OfferingTypeValuesLightUtilization is a OfferingTypeValues enum value
  72495. OfferingTypeValuesLightUtilization = "Light Utilization"
  72496. // OfferingTypeValuesNoUpfront is a OfferingTypeValues enum value
  72497. OfferingTypeValuesNoUpfront = "No Upfront"
  72498. // OfferingTypeValuesPartialUpfront is a OfferingTypeValues enum value
  72499. OfferingTypeValuesPartialUpfront = "Partial Upfront"
  72500. // OfferingTypeValuesAllUpfront is a OfferingTypeValues enum value
  72501. OfferingTypeValuesAllUpfront = "All Upfront"
  72502. )
  72503. const (
  72504. // OnDemandAllocationStrategyLowestPrice is a OnDemandAllocationStrategy enum value
  72505. OnDemandAllocationStrategyLowestPrice = "lowestPrice"
  72506. // OnDemandAllocationStrategyPrioritized is a OnDemandAllocationStrategy enum value
  72507. OnDemandAllocationStrategyPrioritized = "prioritized"
  72508. )
  72509. const (
  72510. // OperationTypeAdd is a OperationType enum value
  72511. OperationTypeAdd = "add"
  72512. // OperationTypeRemove is a OperationType enum value
  72513. OperationTypeRemove = "remove"
  72514. )
  72515. const (
  72516. // PaymentOptionAllUpfront is a PaymentOption enum value
  72517. PaymentOptionAllUpfront = "AllUpfront"
  72518. // PaymentOptionPartialUpfront is a PaymentOption enum value
  72519. PaymentOptionPartialUpfront = "PartialUpfront"
  72520. // PaymentOptionNoUpfront is a PaymentOption enum value
  72521. PaymentOptionNoUpfront = "NoUpfront"
  72522. )
  72523. const (
  72524. // PermissionGroupAll is a PermissionGroup enum value
  72525. PermissionGroupAll = "all"
  72526. )
  72527. const (
  72528. // PlacementGroupStatePending is a PlacementGroupState enum value
  72529. PlacementGroupStatePending = "pending"
  72530. // PlacementGroupStateAvailable is a PlacementGroupState enum value
  72531. PlacementGroupStateAvailable = "available"
  72532. // PlacementGroupStateDeleting is a PlacementGroupState enum value
  72533. PlacementGroupStateDeleting = "deleting"
  72534. // PlacementGroupStateDeleted is a PlacementGroupState enum value
  72535. PlacementGroupStateDeleted = "deleted"
  72536. )
  72537. const (
  72538. // PlacementStrategyCluster is a PlacementStrategy enum value
  72539. PlacementStrategyCluster = "cluster"
  72540. // PlacementStrategySpread is a PlacementStrategy enum value
  72541. PlacementStrategySpread = "spread"
  72542. // PlacementStrategyPartition is a PlacementStrategy enum value
  72543. PlacementStrategyPartition = "partition"
  72544. )
  72545. const (
  72546. // PlatformValuesWindows is a PlatformValues enum value
  72547. PlatformValuesWindows = "Windows"
  72548. )
  72549. const (
  72550. // PrincipalTypeAll is a PrincipalType enum value
  72551. PrincipalTypeAll = "All"
  72552. // PrincipalTypeService is a PrincipalType enum value
  72553. PrincipalTypeService = "Service"
  72554. // PrincipalTypeOrganizationUnit is a PrincipalType enum value
  72555. PrincipalTypeOrganizationUnit = "OrganizationUnit"
  72556. // PrincipalTypeAccount is a PrincipalType enum value
  72557. PrincipalTypeAccount = "Account"
  72558. // PrincipalTypeUser is a PrincipalType enum value
  72559. PrincipalTypeUser = "User"
  72560. // PrincipalTypeRole is a PrincipalType enum value
  72561. PrincipalTypeRole = "Role"
  72562. )
  72563. const (
  72564. // ProductCodeValuesDevpay is a ProductCodeValues enum value
  72565. ProductCodeValuesDevpay = "devpay"
  72566. // ProductCodeValuesMarketplace is a ProductCodeValues enum value
  72567. ProductCodeValuesMarketplace = "marketplace"
  72568. )
  72569. const (
  72570. // RIProductDescriptionLinuxUnix is a RIProductDescription enum value
  72571. RIProductDescriptionLinuxUnix = "Linux/UNIX"
  72572. // RIProductDescriptionLinuxUnixamazonVpc is a RIProductDescription enum value
  72573. RIProductDescriptionLinuxUnixamazonVpc = "Linux/UNIX (Amazon VPC)"
  72574. // RIProductDescriptionWindows is a RIProductDescription enum value
  72575. RIProductDescriptionWindows = "Windows"
  72576. // RIProductDescriptionWindowsAmazonVpc is a RIProductDescription enum value
  72577. RIProductDescriptionWindowsAmazonVpc = "Windows (Amazon VPC)"
  72578. )
  72579. const (
  72580. // RecurringChargeFrequencyHourly is a RecurringChargeFrequency enum value
  72581. RecurringChargeFrequencyHourly = "Hourly"
  72582. )
  72583. const (
  72584. // ReportInstanceReasonCodesInstanceStuckInState is a ReportInstanceReasonCodes enum value
  72585. ReportInstanceReasonCodesInstanceStuckInState = "instance-stuck-in-state"
  72586. // ReportInstanceReasonCodesUnresponsive is a ReportInstanceReasonCodes enum value
  72587. ReportInstanceReasonCodesUnresponsive = "unresponsive"
  72588. // ReportInstanceReasonCodesNotAcceptingCredentials is a ReportInstanceReasonCodes enum value
  72589. ReportInstanceReasonCodesNotAcceptingCredentials = "not-accepting-credentials"
  72590. // ReportInstanceReasonCodesPasswordNotAvailable is a ReportInstanceReasonCodes enum value
  72591. ReportInstanceReasonCodesPasswordNotAvailable = "password-not-available"
  72592. // ReportInstanceReasonCodesPerformanceNetwork is a ReportInstanceReasonCodes enum value
  72593. ReportInstanceReasonCodesPerformanceNetwork = "performance-network"
  72594. // ReportInstanceReasonCodesPerformanceInstanceStore is a ReportInstanceReasonCodes enum value
  72595. ReportInstanceReasonCodesPerformanceInstanceStore = "performance-instance-store"
  72596. // ReportInstanceReasonCodesPerformanceEbsVolume is a ReportInstanceReasonCodes enum value
  72597. ReportInstanceReasonCodesPerformanceEbsVolume = "performance-ebs-volume"
  72598. // ReportInstanceReasonCodesPerformanceOther is a ReportInstanceReasonCodes enum value
  72599. ReportInstanceReasonCodesPerformanceOther = "performance-other"
  72600. // ReportInstanceReasonCodesOther is a ReportInstanceReasonCodes enum value
  72601. ReportInstanceReasonCodesOther = "other"
  72602. )
  72603. const (
  72604. // ReportStatusTypeOk is a ReportStatusType enum value
  72605. ReportStatusTypeOk = "ok"
  72606. // ReportStatusTypeImpaired is a ReportStatusType enum value
  72607. ReportStatusTypeImpaired = "impaired"
  72608. )
  72609. const (
  72610. // ReservationStatePaymentPending is a ReservationState enum value
  72611. ReservationStatePaymentPending = "payment-pending"
  72612. // ReservationStatePaymentFailed is a ReservationState enum value
  72613. ReservationStatePaymentFailed = "payment-failed"
  72614. // ReservationStateActive is a ReservationState enum value
  72615. ReservationStateActive = "active"
  72616. // ReservationStateRetired is a ReservationState enum value
  72617. ReservationStateRetired = "retired"
  72618. )
  72619. const (
  72620. // ReservedInstanceStatePaymentPending is a ReservedInstanceState enum value
  72621. ReservedInstanceStatePaymentPending = "payment-pending"
  72622. // ReservedInstanceStateActive is a ReservedInstanceState enum value
  72623. ReservedInstanceStateActive = "active"
  72624. // ReservedInstanceStatePaymentFailed is a ReservedInstanceState enum value
  72625. ReservedInstanceStatePaymentFailed = "payment-failed"
  72626. // ReservedInstanceStateRetired is a ReservedInstanceState enum value
  72627. ReservedInstanceStateRetired = "retired"
  72628. )
  72629. const (
  72630. // ResetFpgaImageAttributeNameLoadPermission is a ResetFpgaImageAttributeName enum value
  72631. ResetFpgaImageAttributeNameLoadPermission = "loadPermission"
  72632. )
  72633. const (
  72634. // ResetImageAttributeNameLaunchPermission is a ResetImageAttributeName enum value
  72635. ResetImageAttributeNameLaunchPermission = "launchPermission"
  72636. )
  72637. const (
  72638. // ResourceTypeCustomerGateway is a ResourceType enum value
  72639. ResourceTypeCustomerGateway = "customer-gateway"
  72640. // ResourceTypeDedicatedHost is a ResourceType enum value
  72641. ResourceTypeDedicatedHost = "dedicated-host"
  72642. // ResourceTypeDhcpOptions is a ResourceType enum value
  72643. ResourceTypeDhcpOptions = "dhcp-options"
  72644. // ResourceTypeElasticIp is a ResourceType enum value
  72645. ResourceTypeElasticIp = "elastic-ip"
  72646. // ResourceTypeFleet is a ResourceType enum value
  72647. ResourceTypeFleet = "fleet"
  72648. // ResourceTypeFpgaImage is a ResourceType enum value
  72649. ResourceTypeFpgaImage = "fpga-image"
  72650. // ResourceTypeImage is a ResourceType enum value
  72651. ResourceTypeImage = "image"
  72652. // ResourceTypeInstance is a ResourceType enum value
  72653. ResourceTypeInstance = "instance"
  72654. // ResourceTypeInternetGateway is a ResourceType enum value
  72655. ResourceTypeInternetGateway = "internet-gateway"
  72656. // ResourceTypeLaunchTemplate is a ResourceType enum value
  72657. ResourceTypeLaunchTemplate = "launch-template"
  72658. // ResourceTypeNatgateway is a ResourceType enum value
  72659. ResourceTypeNatgateway = "natgateway"
  72660. // ResourceTypeNetworkAcl is a ResourceType enum value
  72661. ResourceTypeNetworkAcl = "network-acl"
  72662. // ResourceTypeNetworkInterface is a ResourceType enum value
  72663. ResourceTypeNetworkInterface = "network-interface"
  72664. // ResourceTypeReservedInstances is a ResourceType enum value
  72665. ResourceTypeReservedInstances = "reserved-instances"
  72666. // ResourceTypeRouteTable is a ResourceType enum value
  72667. ResourceTypeRouteTable = "route-table"
  72668. // ResourceTypeSecurityGroup is a ResourceType enum value
  72669. ResourceTypeSecurityGroup = "security-group"
  72670. // ResourceTypeSnapshot is a ResourceType enum value
  72671. ResourceTypeSnapshot = "snapshot"
  72672. // ResourceTypeSpotInstancesRequest is a ResourceType enum value
  72673. ResourceTypeSpotInstancesRequest = "spot-instances-request"
  72674. // ResourceTypeSubnet is a ResourceType enum value
  72675. ResourceTypeSubnet = "subnet"
  72676. // ResourceTypeTransitGateway is a ResourceType enum value
  72677. ResourceTypeTransitGateway = "transit-gateway"
  72678. // ResourceTypeTransitGatewayAttachment is a ResourceType enum value
  72679. ResourceTypeTransitGatewayAttachment = "transit-gateway-attachment"
  72680. // ResourceTypeTransitGatewayRouteTable is a ResourceType enum value
  72681. ResourceTypeTransitGatewayRouteTable = "transit-gateway-route-table"
  72682. // ResourceTypeVolume is a ResourceType enum value
  72683. ResourceTypeVolume = "volume"
  72684. // ResourceTypeVpc is a ResourceType enum value
  72685. ResourceTypeVpc = "vpc"
  72686. // ResourceTypeVpcPeeringConnection is a ResourceType enum value
  72687. ResourceTypeVpcPeeringConnection = "vpc-peering-connection"
  72688. // ResourceTypeVpnConnection is a ResourceType enum value
  72689. ResourceTypeVpnConnection = "vpn-connection"
  72690. // ResourceTypeVpnGateway is a ResourceType enum value
  72691. ResourceTypeVpnGateway = "vpn-gateway"
  72692. )
  72693. const (
  72694. // RouteOriginCreateRouteTable is a RouteOrigin enum value
  72695. RouteOriginCreateRouteTable = "CreateRouteTable"
  72696. // RouteOriginCreateRoute is a RouteOrigin enum value
  72697. RouteOriginCreateRoute = "CreateRoute"
  72698. // RouteOriginEnableVgwRoutePropagation is a RouteOrigin enum value
  72699. RouteOriginEnableVgwRoutePropagation = "EnableVgwRoutePropagation"
  72700. )
  72701. const (
  72702. // RouteStateActive is a RouteState enum value
  72703. RouteStateActive = "active"
  72704. // RouteStateBlackhole is a RouteState enum value
  72705. RouteStateBlackhole = "blackhole"
  72706. )
  72707. const (
  72708. // RuleActionAllow is a RuleAction enum value
  72709. RuleActionAllow = "allow"
  72710. // RuleActionDeny is a RuleAction enum value
  72711. RuleActionDeny = "deny"
  72712. )
  72713. const (
  72714. // ServiceStatePending is a ServiceState enum value
  72715. ServiceStatePending = "Pending"
  72716. // ServiceStateAvailable is a ServiceState enum value
  72717. ServiceStateAvailable = "Available"
  72718. // ServiceStateDeleting is a ServiceState enum value
  72719. ServiceStateDeleting = "Deleting"
  72720. // ServiceStateDeleted is a ServiceState enum value
  72721. ServiceStateDeleted = "Deleted"
  72722. // ServiceStateFailed is a ServiceState enum value
  72723. ServiceStateFailed = "Failed"
  72724. )
  72725. const (
  72726. // ServiceTypeInterface is a ServiceType enum value
  72727. ServiceTypeInterface = "Interface"
  72728. // ServiceTypeGateway is a ServiceType enum value
  72729. ServiceTypeGateway = "Gateway"
  72730. )
  72731. const (
  72732. // ShutdownBehaviorStop is a ShutdownBehavior enum value
  72733. ShutdownBehaviorStop = "stop"
  72734. // ShutdownBehaviorTerminate is a ShutdownBehavior enum value
  72735. ShutdownBehaviorTerminate = "terminate"
  72736. )
  72737. const (
  72738. // SnapshotAttributeNameProductCodes is a SnapshotAttributeName enum value
  72739. SnapshotAttributeNameProductCodes = "productCodes"
  72740. // SnapshotAttributeNameCreateVolumePermission is a SnapshotAttributeName enum value
  72741. SnapshotAttributeNameCreateVolumePermission = "createVolumePermission"
  72742. )
  72743. const (
  72744. // SnapshotStatePending is a SnapshotState enum value
  72745. SnapshotStatePending = "pending"
  72746. // SnapshotStateCompleted is a SnapshotState enum value
  72747. SnapshotStateCompleted = "completed"
  72748. // SnapshotStateError is a SnapshotState enum value
  72749. SnapshotStateError = "error"
  72750. )
  72751. const (
  72752. // SpotAllocationStrategyLowestPrice is a SpotAllocationStrategy enum value
  72753. SpotAllocationStrategyLowestPrice = "lowest-price"
  72754. // SpotAllocationStrategyDiversified is a SpotAllocationStrategy enum value
  72755. SpotAllocationStrategyDiversified = "diversified"
  72756. )
  72757. const (
  72758. // SpotInstanceInterruptionBehaviorHibernate is a SpotInstanceInterruptionBehavior enum value
  72759. SpotInstanceInterruptionBehaviorHibernate = "hibernate"
  72760. // SpotInstanceInterruptionBehaviorStop is a SpotInstanceInterruptionBehavior enum value
  72761. SpotInstanceInterruptionBehaviorStop = "stop"
  72762. // SpotInstanceInterruptionBehaviorTerminate is a SpotInstanceInterruptionBehavior enum value
  72763. SpotInstanceInterruptionBehaviorTerminate = "terminate"
  72764. )
  72765. const (
  72766. // SpotInstanceStateOpen is a SpotInstanceState enum value
  72767. SpotInstanceStateOpen = "open"
  72768. // SpotInstanceStateActive is a SpotInstanceState enum value
  72769. SpotInstanceStateActive = "active"
  72770. // SpotInstanceStateClosed is a SpotInstanceState enum value
  72771. SpotInstanceStateClosed = "closed"
  72772. // SpotInstanceStateCancelled is a SpotInstanceState enum value
  72773. SpotInstanceStateCancelled = "cancelled"
  72774. // SpotInstanceStateFailed is a SpotInstanceState enum value
  72775. SpotInstanceStateFailed = "failed"
  72776. )
  72777. const (
  72778. // SpotInstanceTypeOneTime is a SpotInstanceType enum value
  72779. SpotInstanceTypeOneTime = "one-time"
  72780. // SpotInstanceTypePersistent is a SpotInstanceType enum value
  72781. SpotInstanceTypePersistent = "persistent"
  72782. )
  72783. const (
  72784. // StatePendingAcceptance is a State enum value
  72785. StatePendingAcceptance = "PendingAcceptance"
  72786. // StatePending is a State enum value
  72787. StatePending = "Pending"
  72788. // StateAvailable is a State enum value
  72789. StateAvailable = "Available"
  72790. // StateDeleting is a State enum value
  72791. StateDeleting = "Deleting"
  72792. // StateDeleted is a State enum value
  72793. StateDeleted = "Deleted"
  72794. // StateRejected is a State enum value
  72795. StateRejected = "Rejected"
  72796. // StateFailed is a State enum value
  72797. StateFailed = "Failed"
  72798. // StateExpired is a State enum value
  72799. StateExpired = "Expired"
  72800. )
  72801. const (
  72802. // StatusMoveInProgress is a Status enum value
  72803. StatusMoveInProgress = "MoveInProgress"
  72804. // StatusInVpc is a Status enum value
  72805. StatusInVpc = "InVpc"
  72806. // StatusInClassic is a Status enum value
  72807. StatusInClassic = "InClassic"
  72808. )
  72809. const (
  72810. // StatusNameReachability is a StatusName enum value
  72811. StatusNameReachability = "reachability"
  72812. )
  72813. const (
  72814. // StatusTypePassed is a StatusType enum value
  72815. StatusTypePassed = "passed"
  72816. // StatusTypeFailed is a StatusType enum value
  72817. StatusTypeFailed = "failed"
  72818. // StatusTypeInsufficientData is a StatusType enum value
  72819. StatusTypeInsufficientData = "insufficient-data"
  72820. // StatusTypeInitializing is a StatusType enum value
  72821. StatusTypeInitializing = "initializing"
  72822. )
  72823. const (
  72824. // SubnetCidrBlockStateCodeAssociating is a SubnetCidrBlockStateCode enum value
  72825. SubnetCidrBlockStateCodeAssociating = "associating"
  72826. // SubnetCidrBlockStateCodeAssociated is a SubnetCidrBlockStateCode enum value
  72827. SubnetCidrBlockStateCodeAssociated = "associated"
  72828. // SubnetCidrBlockStateCodeDisassociating is a SubnetCidrBlockStateCode enum value
  72829. SubnetCidrBlockStateCodeDisassociating = "disassociating"
  72830. // SubnetCidrBlockStateCodeDisassociated is a SubnetCidrBlockStateCode enum value
  72831. SubnetCidrBlockStateCodeDisassociated = "disassociated"
  72832. // SubnetCidrBlockStateCodeFailing is a SubnetCidrBlockStateCode enum value
  72833. SubnetCidrBlockStateCodeFailing = "failing"
  72834. // SubnetCidrBlockStateCodeFailed is a SubnetCidrBlockStateCode enum value
  72835. SubnetCidrBlockStateCodeFailed = "failed"
  72836. )
  72837. const (
  72838. // SubnetStatePending is a SubnetState enum value
  72839. SubnetStatePending = "pending"
  72840. // SubnetStateAvailable is a SubnetState enum value
  72841. SubnetStateAvailable = "available"
  72842. )
  72843. const (
  72844. // SummaryStatusOk is a SummaryStatus enum value
  72845. SummaryStatusOk = "ok"
  72846. // SummaryStatusImpaired is a SummaryStatus enum value
  72847. SummaryStatusImpaired = "impaired"
  72848. // SummaryStatusInsufficientData is a SummaryStatus enum value
  72849. SummaryStatusInsufficientData = "insufficient-data"
  72850. // SummaryStatusNotApplicable is a SummaryStatus enum value
  72851. SummaryStatusNotApplicable = "not-applicable"
  72852. // SummaryStatusInitializing is a SummaryStatus enum value
  72853. SummaryStatusInitializing = "initializing"
  72854. )
  72855. const (
  72856. // TelemetryStatusUp is a TelemetryStatus enum value
  72857. TelemetryStatusUp = "UP"
  72858. // TelemetryStatusDown is a TelemetryStatus enum value
  72859. TelemetryStatusDown = "DOWN"
  72860. )
  72861. const (
  72862. // TenancyDefault is a Tenancy enum value
  72863. TenancyDefault = "default"
  72864. // TenancyDedicated is a Tenancy enum value
  72865. TenancyDedicated = "dedicated"
  72866. // TenancyHost is a Tenancy enum value
  72867. TenancyHost = "host"
  72868. )
  72869. const (
  72870. // TrafficTypeAccept is a TrafficType enum value
  72871. TrafficTypeAccept = "ACCEPT"
  72872. // TrafficTypeReject is a TrafficType enum value
  72873. TrafficTypeReject = "REJECT"
  72874. // TrafficTypeAll is a TrafficType enum value
  72875. TrafficTypeAll = "ALL"
  72876. )
  72877. const (
  72878. // TransitGatewayAssociationStateAssociating is a TransitGatewayAssociationState enum value
  72879. TransitGatewayAssociationStateAssociating = "associating"
  72880. // TransitGatewayAssociationStateAssociated is a TransitGatewayAssociationState enum value
  72881. TransitGatewayAssociationStateAssociated = "associated"
  72882. // TransitGatewayAssociationStateDisassociating is a TransitGatewayAssociationState enum value
  72883. TransitGatewayAssociationStateDisassociating = "disassociating"
  72884. // TransitGatewayAssociationStateDisassociated is a TransitGatewayAssociationState enum value
  72885. TransitGatewayAssociationStateDisassociated = "disassociated"
  72886. )
  72887. const (
  72888. // TransitGatewayAttachmentResourceTypeVpc is a TransitGatewayAttachmentResourceType enum value
  72889. TransitGatewayAttachmentResourceTypeVpc = "vpc"
  72890. // TransitGatewayAttachmentResourceTypeVpn is a TransitGatewayAttachmentResourceType enum value
  72891. TransitGatewayAttachmentResourceTypeVpn = "vpn"
  72892. )
  72893. const (
  72894. // TransitGatewayAttachmentStatePendingAcceptance is a TransitGatewayAttachmentState enum value
  72895. TransitGatewayAttachmentStatePendingAcceptance = "pendingAcceptance"
  72896. // TransitGatewayAttachmentStateRollingBack is a TransitGatewayAttachmentState enum value
  72897. TransitGatewayAttachmentStateRollingBack = "rollingBack"
  72898. // TransitGatewayAttachmentStatePending is a TransitGatewayAttachmentState enum value
  72899. TransitGatewayAttachmentStatePending = "pending"
  72900. // TransitGatewayAttachmentStateAvailable is a TransitGatewayAttachmentState enum value
  72901. TransitGatewayAttachmentStateAvailable = "available"
  72902. // TransitGatewayAttachmentStateModifying is a TransitGatewayAttachmentState enum value
  72903. TransitGatewayAttachmentStateModifying = "modifying"
  72904. // TransitGatewayAttachmentStateDeleting is a TransitGatewayAttachmentState enum value
  72905. TransitGatewayAttachmentStateDeleting = "deleting"
  72906. // TransitGatewayAttachmentStateDeleted is a TransitGatewayAttachmentState enum value
  72907. TransitGatewayAttachmentStateDeleted = "deleted"
  72908. // TransitGatewayAttachmentStateFailed is a TransitGatewayAttachmentState enum value
  72909. TransitGatewayAttachmentStateFailed = "failed"
  72910. // TransitGatewayAttachmentStateRejected is a TransitGatewayAttachmentState enum value
  72911. TransitGatewayAttachmentStateRejected = "rejected"
  72912. // TransitGatewayAttachmentStateRejecting is a TransitGatewayAttachmentState enum value
  72913. TransitGatewayAttachmentStateRejecting = "rejecting"
  72914. // TransitGatewayAttachmentStateFailing is a TransitGatewayAttachmentState enum value
  72915. TransitGatewayAttachmentStateFailing = "failing"
  72916. )
  72917. const (
  72918. // TransitGatewayPropagationStateEnabling is a TransitGatewayPropagationState enum value
  72919. TransitGatewayPropagationStateEnabling = "enabling"
  72920. // TransitGatewayPropagationStateEnabled is a TransitGatewayPropagationState enum value
  72921. TransitGatewayPropagationStateEnabled = "enabled"
  72922. // TransitGatewayPropagationStateDisabling is a TransitGatewayPropagationState enum value
  72923. TransitGatewayPropagationStateDisabling = "disabling"
  72924. // TransitGatewayPropagationStateDisabled is a TransitGatewayPropagationState enum value
  72925. TransitGatewayPropagationStateDisabled = "disabled"
  72926. )
  72927. const (
  72928. // TransitGatewayRouteStatePending is a TransitGatewayRouteState enum value
  72929. TransitGatewayRouteStatePending = "pending"
  72930. // TransitGatewayRouteStateActive is a TransitGatewayRouteState enum value
  72931. TransitGatewayRouteStateActive = "active"
  72932. // TransitGatewayRouteStateBlackhole is a TransitGatewayRouteState enum value
  72933. TransitGatewayRouteStateBlackhole = "blackhole"
  72934. // TransitGatewayRouteStateDeleting is a TransitGatewayRouteState enum value
  72935. TransitGatewayRouteStateDeleting = "deleting"
  72936. // TransitGatewayRouteStateDeleted is a TransitGatewayRouteState enum value
  72937. TransitGatewayRouteStateDeleted = "deleted"
  72938. )
  72939. const (
  72940. // TransitGatewayRouteTableStatePending is a TransitGatewayRouteTableState enum value
  72941. TransitGatewayRouteTableStatePending = "pending"
  72942. // TransitGatewayRouteTableStateAvailable is a TransitGatewayRouteTableState enum value
  72943. TransitGatewayRouteTableStateAvailable = "available"
  72944. // TransitGatewayRouteTableStateDeleting is a TransitGatewayRouteTableState enum value
  72945. TransitGatewayRouteTableStateDeleting = "deleting"
  72946. // TransitGatewayRouteTableStateDeleted is a TransitGatewayRouteTableState enum value
  72947. TransitGatewayRouteTableStateDeleted = "deleted"
  72948. )
  72949. const (
  72950. // TransitGatewayRouteTypeStatic is a TransitGatewayRouteType enum value
  72951. TransitGatewayRouteTypeStatic = "static"
  72952. // TransitGatewayRouteTypePropagated is a TransitGatewayRouteType enum value
  72953. TransitGatewayRouteTypePropagated = "propagated"
  72954. )
  72955. const (
  72956. // TransitGatewayStatePending is a TransitGatewayState enum value
  72957. TransitGatewayStatePending = "pending"
  72958. // TransitGatewayStateAvailable is a TransitGatewayState enum value
  72959. TransitGatewayStateAvailable = "available"
  72960. // TransitGatewayStateModifying is a TransitGatewayState enum value
  72961. TransitGatewayStateModifying = "modifying"
  72962. // TransitGatewayStateDeleting is a TransitGatewayState enum value
  72963. TransitGatewayStateDeleting = "deleting"
  72964. // TransitGatewayStateDeleted is a TransitGatewayState enum value
  72965. TransitGatewayStateDeleted = "deleted"
  72966. )
  72967. const (
  72968. // TransportProtocolTcp is a TransportProtocol enum value
  72969. TransportProtocolTcp = "tcp"
  72970. // TransportProtocolUdp is a TransportProtocol enum value
  72971. TransportProtocolUdp = "udp"
  72972. )
  72973. const (
  72974. // UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdMalformed is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  72975. UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdMalformed = "InvalidInstanceID.Malformed"
  72976. // UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdNotFound is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  72977. UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdNotFound = "InvalidInstanceID.NotFound"
  72978. // UnsuccessfulInstanceCreditSpecificationErrorCodeIncorrectInstanceState is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  72979. UnsuccessfulInstanceCreditSpecificationErrorCodeIncorrectInstanceState = "IncorrectInstanceState"
  72980. // UnsuccessfulInstanceCreditSpecificationErrorCodeInstanceCreditSpecificationNotSupported is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  72981. UnsuccessfulInstanceCreditSpecificationErrorCodeInstanceCreditSpecificationNotSupported = "InstanceCreditSpecification.NotSupported"
  72982. )
  72983. const (
  72984. // VirtualizationTypeHvm is a VirtualizationType enum value
  72985. VirtualizationTypeHvm = "hvm"
  72986. // VirtualizationTypeParavirtual is a VirtualizationType enum value
  72987. VirtualizationTypeParavirtual = "paravirtual"
  72988. )
  72989. const (
  72990. // VolumeAttachmentStateAttaching is a VolumeAttachmentState enum value
  72991. VolumeAttachmentStateAttaching = "attaching"
  72992. // VolumeAttachmentStateAttached is a VolumeAttachmentState enum value
  72993. VolumeAttachmentStateAttached = "attached"
  72994. // VolumeAttachmentStateDetaching is a VolumeAttachmentState enum value
  72995. VolumeAttachmentStateDetaching = "detaching"
  72996. // VolumeAttachmentStateDetached is a VolumeAttachmentState enum value
  72997. VolumeAttachmentStateDetached = "detached"
  72998. // VolumeAttachmentStateBusy is a VolumeAttachmentState enum value
  72999. VolumeAttachmentStateBusy = "busy"
  73000. )
  73001. const (
  73002. // VolumeAttributeNameAutoEnableIo is a VolumeAttributeName enum value
  73003. VolumeAttributeNameAutoEnableIo = "autoEnableIO"
  73004. // VolumeAttributeNameProductCodes is a VolumeAttributeName enum value
  73005. VolumeAttributeNameProductCodes = "productCodes"
  73006. )
  73007. const (
  73008. // VolumeModificationStateModifying is a VolumeModificationState enum value
  73009. VolumeModificationStateModifying = "modifying"
  73010. // VolumeModificationStateOptimizing is a VolumeModificationState enum value
  73011. VolumeModificationStateOptimizing = "optimizing"
  73012. // VolumeModificationStateCompleted is a VolumeModificationState enum value
  73013. VolumeModificationStateCompleted = "completed"
  73014. // VolumeModificationStateFailed is a VolumeModificationState enum value
  73015. VolumeModificationStateFailed = "failed"
  73016. )
  73017. const (
  73018. // VolumeStateCreating is a VolumeState enum value
  73019. VolumeStateCreating = "creating"
  73020. // VolumeStateAvailable is a VolumeState enum value
  73021. VolumeStateAvailable = "available"
  73022. // VolumeStateInUse is a VolumeState enum value
  73023. VolumeStateInUse = "in-use"
  73024. // VolumeStateDeleting is a VolumeState enum value
  73025. VolumeStateDeleting = "deleting"
  73026. // VolumeStateDeleted is a VolumeState enum value
  73027. VolumeStateDeleted = "deleted"
  73028. // VolumeStateError is a VolumeState enum value
  73029. VolumeStateError = "error"
  73030. )
  73031. const (
  73032. // VolumeStatusInfoStatusOk is a VolumeStatusInfoStatus enum value
  73033. VolumeStatusInfoStatusOk = "ok"
  73034. // VolumeStatusInfoStatusImpaired is a VolumeStatusInfoStatus enum value
  73035. VolumeStatusInfoStatusImpaired = "impaired"
  73036. // VolumeStatusInfoStatusInsufficientData is a VolumeStatusInfoStatus enum value
  73037. VolumeStatusInfoStatusInsufficientData = "insufficient-data"
  73038. )
  73039. const (
  73040. // VolumeStatusNameIoEnabled is a VolumeStatusName enum value
  73041. VolumeStatusNameIoEnabled = "io-enabled"
  73042. // VolumeStatusNameIoPerformance is a VolumeStatusName enum value
  73043. VolumeStatusNameIoPerformance = "io-performance"
  73044. )
  73045. const (
  73046. // VolumeTypeStandard is a VolumeType enum value
  73047. VolumeTypeStandard = "standard"
  73048. // VolumeTypeIo1 is a VolumeType enum value
  73049. VolumeTypeIo1 = "io1"
  73050. // VolumeTypeGp2 is a VolumeType enum value
  73051. VolumeTypeGp2 = "gp2"
  73052. // VolumeTypeSc1 is a VolumeType enum value
  73053. VolumeTypeSc1 = "sc1"
  73054. // VolumeTypeSt1 is a VolumeType enum value
  73055. VolumeTypeSt1 = "st1"
  73056. )
  73057. const (
  73058. // VpcAttributeNameEnableDnsSupport is a VpcAttributeName enum value
  73059. VpcAttributeNameEnableDnsSupport = "enableDnsSupport"
  73060. // VpcAttributeNameEnableDnsHostnames is a VpcAttributeName enum value
  73061. VpcAttributeNameEnableDnsHostnames = "enableDnsHostnames"
  73062. )
  73063. const (
  73064. // VpcCidrBlockStateCodeAssociating is a VpcCidrBlockStateCode enum value
  73065. VpcCidrBlockStateCodeAssociating = "associating"
  73066. // VpcCidrBlockStateCodeAssociated is a VpcCidrBlockStateCode enum value
  73067. VpcCidrBlockStateCodeAssociated = "associated"
  73068. // VpcCidrBlockStateCodeDisassociating is a VpcCidrBlockStateCode enum value
  73069. VpcCidrBlockStateCodeDisassociating = "disassociating"
  73070. // VpcCidrBlockStateCodeDisassociated is a VpcCidrBlockStateCode enum value
  73071. VpcCidrBlockStateCodeDisassociated = "disassociated"
  73072. // VpcCidrBlockStateCodeFailing is a VpcCidrBlockStateCode enum value
  73073. VpcCidrBlockStateCodeFailing = "failing"
  73074. // VpcCidrBlockStateCodeFailed is a VpcCidrBlockStateCode enum value
  73075. VpcCidrBlockStateCodeFailed = "failed"
  73076. )
  73077. const (
  73078. // VpcEndpointTypeInterface is a VpcEndpointType enum value
  73079. VpcEndpointTypeInterface = "Interface"
  73080. // VpcEndpointTypeGateway is a VpcEndpointType enum value
  73081. VpcEndpointTypeGateway = "Gateway"
  73082. )
  73083. const (
  73084. // VpcPeeringConnectionStateReasonCodeInitiatingRequest is a VpcPeeringConnectionStateReasonCode enum value
  73085. VpcPeeringConnectionStateReasonCodeInitiatingRequest = "initiating-request"
  73086. // VpcPeeringConnectionStateReasonCodePendingAcceptance is a VpcPeeringConnectionStateReasonCode enum value
  73087. VpcPeeringConnectionStateReasonCodePendingAcceptance = "pending-acceptance"
  73088. // VpcPeeringConnectionStateReasonCodeActive is a VpcPeeringConnectionStateReasonCode enum value
  73089. VpcPeeringConnectionStateReasonCodeActive = "active"
  73090. // VpcPeeringConnectionStateReasonCodeDeleted is a VpcPeeringConnectionStateReasonCode enum value
  73091. VpcPeeringConnectionStateReasonCodeDeleted = "deleted"
  73092. // VpcPeeringConnectionStateReasonCodeRejected is a VpcPeeringConnectionStateReasonCode enum value
  73093. VpcPeeringConnectionStateReasonCodeRejected = "rejected"
  73094. // VpcPeeringConnectionStateReasonCodeFailed is a VpcPeeringConnectionStateReasonCode enum value
  73095. VpcPeeringConnectionStateReasonCodeFailed = "failed"
  73096. // VpcPeeringConnectionStateReasonCodeExpired is a VpcPeeringConnectionStateReasonCode enum value
  73097. VpcPeeringConnectionStateReasonCodeExpired = "expired"
  73098. // VpcPeeringConnectionStateReasonCodeProvisioning is a VpcPeeringConnectionStateReasonCode enum value
  73099. VpcPeeringConnectionStateReasonCodeProvisioning = "provisioning"
  73100. // VpcPeeringConnectionStateReasonCodeDeleting is a VpcPeeringConnectionStateReasonCode enum value
  73101. VpcPeeringConnectionStateReasonCodeDeleting = "deleting"
  73102. )
  73103. const (
  73104. // VpcStatePending is a VpcState enum value
  73105. VpcStatePending = "pending"
  73106. // VpcStateAvailable is a VpcState enum value
  73107. VpcStateAvailable = "available"
  73108. )
  73109. const (
  73110. // VpcTenancyDefault is a VpcTenancy enum value
  73111. VpcTenancyDefault = "default"
  73112. )
  73113. const (
  73114. // VpnEcmpSupportValueEnable is a VpnEcmpSupportValue enum value
  73115. VpnEcmpSupportValueEnable = "enable"
  73116. // VpnEcmpSupportValueDisable is a VpnEcmpSupportValue enum value
  73117. VpnEcmpSupportValueDisable = "disable"
  73118. )
  73119. const (
  73120. // VpnProtocolOpenvpn is a VpnProtocol enum value
  73121. VpnProtocolOpenvpn = "openvpn"
  73122. )
  73123. const (
  73124. // VpnStatePending is a VpnState enum value
  73125. VpnStatePending = "pending"
  73126. // VpnStateAvailable is a VpnState enum value
  73127. VpnStateAvailable = "available"
  73128. // VpnStateDeleting is a VpnState enum value
  73129. VpnStateDeleting = "deleting"
  73130. // VpnStateDeleted is a VpnState enum value
  73131. VpnStateDeleted = "deleted"
  73132. )
  73133. const (
  73134. // VpnStaticRouteSourceStatic is a VpnStaticRouteSource enum value
  73135. VpnStaticRouteSourceStatic = "Static"
  73136. )
  73137. const (
  73138. // ScopeAvailabilityZone is a scope enum value
  73139. ScopeAvailabilityZone = "Availability Zone"
  73140. // ScopeRegion is a scope enum value
  73141. ScopeRegion = "Region"
  73142. )