api.go 3.0 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137711387113971140711417114271143711447114571146711477114871149711507115171152711537115471155711567115771158711597116071161711627116371164711657116671167711687116971170711717117271173711747117571176711777117871179711807118171182711837118471185711867118771188711897119071191711927119371194711957119671197711987119971200712017120271203712047120571206712077120871209712107121171212712137121471215712167121771218712197122071221712227122371224712257122671227712287122971230712317123271233712347123571236712377123871239712407124171242712437124471245712467124771248712497125071251712527125371254712557125671257712587125971260712617126271263712647126571266712677126871269712707127171272712737127471275712767127771278712797128071281712827128371284712857128671287712887128971290712917129271293712947129571296712977129871299713007130171302713037130471305713067130771308713097131071311713127131371314713157131671317713187131971320713217132271323713247132571326713277132871329713307133171332713337133471335713367133771338713397134071341713427134371344713457134671347713487134971350713517135271353713547135571356713577135871359713607136171362713637136471365713667136771368713697137071371713727137371374713757137671377713787137971380713817138271383713847138571386713877138871389713907139171392713937139471395713967139771398713997140071401714027140371404714057140671407714087140971410714117141271413714147141571416714177141871419714207142171422714237142471425714267142771428714297143071431714327143371434714357143671437714387143971440714417144271443714447144571446714477144871449714507145171452714537145471455714567145771458714597146071461714627146371464714657146671467714687146971470714717147271473714747147571476714777147871479714807148171482714837148471485714867148771488714897149071491714927149371494714957149671497714987149971500715017150271503715047150571506715077150871509715107151171512715137151471515715167151771518715197152071521715227152371524715257152671527715287152971530715317153271533715347153571536715377153871539715407154171542715437154471545715467154771548715497155071551715527155371554715557155671557715587155971560715617156271563715647156571566715677156871569715707157171572715737157471575715767157771578715797158071581715827158371584715857158671587715887158971590715917159271593715947159571596715977159871599716007160171602716037160471605716067160771608716097161071611716127161371614716157161671617716187161971620716217162271623716247162571626716277162871629716307163171632716337163471635716367163771638716397164071641716427164371644716457164671647716487164971650716517165271653716547165571656716577165871659716607166171662716637166471665716667166771668716697167071671716727167371674716757167671677716787167971680716817168271683716847168571686716877168871689716907169171692716937169471695716967169771698716997170071701717027170371704717057170671707717087170971710717117171271713717147171571716717177171871719717207172171722717237172471725717267172771728717297173071731717327173371734717357173671737717387173971740717417174271743717447174571746717477174871749717507175171752717537175471755717567175771758717597176071761717627176371764717657176671767717687176971770717717177271773717747177571776717777177871779717807178171782717837178471785717867178771788717897179071791717927179371794717957179671797717987179971800718017180271803718047180571806718077180871809718107181171812718137181471815718167181771818718197182071821718227182371824718257182671827718287182971830718317183271833718347183571836718377183871839718407184171842718437184471845718467184771848718497185071851718527185371854718557185671857718587185971860718617186271863718647186571866718677186871869718707187171872718737187471875718767187771878718797188071881718827188371884718857188671887718887188971890718917189271893718947189571896718977189871899719007190171902719037190471905719067190771908719097191071911719127191371914719157191671917719187191971920719217192271923719247192571926719277192871929719307193171932719337193471935719367193771938719397194071941719427194371944719457194671947719487194971950719517195271953719547195571956719577195871959719607196171962719637196471965719667196771968719697197071971719727197371974719757197671977719787197971980719817198271983719847198571986719877198871989719907199171992719937199471995719967199771998719997200072001720027200372004720057200672007720087200972010720117201272013720147201572016720177201872019720207202172022720237202472025720267202772028720297203072031720327203372034720357203672037720387203972040720417204272043720447204572046720477204872049720507205172052720537205472055720567205772058720597206072061720627206372064720657206672067720687206972070720717207272073720747207572076720777207872079720807208172082720837208472085720867208772088720897209072091720927209372094720957209672097720987209972100721017210272103721047210572106721077210872109721107211172112721137211472115721167211772118721197212072121721227212372124721257212672127721287212972130721317213272133721347213572136721377213872139721407214172142721437214472145721467214772148721497215072151721527215372154721557215672157721587215972160721617216272163721647216572166721677216872169721707217172172721737217472175721767217772178721797218072181721827218372184721857218672187721887218972190721917219272193721947219572196721977219872199722007220172202722037220472205722067220772208722097221072211722127221372214722157221672217722187221972220722217222272223722247222572226722277222872229722307223172232722337223472235722367223772238722397224072241722427224372244722457224672247722487224972250722517225272253722547225572256722577225872259722607226172262722637226472265722667226772268722697227072271722727227372274722757227672277722787227972280722817228272283722847228572286722877228872289722907229172292722937229472295722967229772298722997230072301723027230372304723057230672307723087230972310723117231272313723147231572316723177231872319723207232172322723237232472325723267232772328723297233072331723327233372334723357233672337723387233972340723417234272343723447234572346723477234872349723507235172352723537235472355723567235772358723597236072361723627236372364723657236672367723687236972370723717237272373723747237572376723777237872379723807238172382723837238472385723867238772388723897239072391723927239372394723957239672397723987239972400724017240272403724047240572406724077240872409724107241172412724137241472415724167241772418724197242072421724227242372424724257242672427724287242972430724317243272433724347243572436724377243872439724407244172442724437244472445724467244772448724497245072451724527245372454724557245672457724587245972460724617246272463724647246572466724677246872469724707247172472724737247472475724767247772478724797248072481724827248372484724857248672487724887248972490724917249272493724947249572496724977249872499725007250172502725037250472505725067250772508725097251072511725127251372514725157251672517725187251972520725217252272523725247252572526725277252872529725307253172532725337253472535725367253772538725397254072541725427254372544725457254672547725487254972550725517255272553725547255572556725577255872559725607256172562725637256472565725667256772568725697257072571725727257372574725757257672577725787257972580725817258272583725847258572586725877258872589725907259172592725937259472595725967259772598725997260072601726027260372604726057260672607726087260972610726117261272613726147261572616726177261872619726207262172622726237262472625726267262772628726297263072631726327263372634726357263672637726387263972640726417264272643726447264572646726477264872649726507265172652726537265472655726567265772658726597266072661726627266372664726657266672667726687266972670726717267272673726747267572676726777267872679726807268172682726837268472685726867268772688726897269072691726927269372694726957269672697726987269972700727017270272703727047270572706727077270872709727107271172712727137271472715727167271772718727197272072721727227272372724727257272672727727287272972730727317273272733727347273572736727377273872739727407274172742727437274472745727467274772748727497275072751727527275372754727557275672757727587275972760727617276272763727647276572766727677276872769727707277172772727737277472775727767277772778727797278072781727827278372784727857278672787727887278972790727917279272793727947279572796727977279872799728007280172802728037280472805728067280772808728097281072811728127281372814728157281672817728187281972820728217282272823728247282572826728277282872829728307283172832728337283472835728367283772838728397284072841728427284372844728457284672847728487284972850728517285272853728547285572856728577285872859728607286172862728637286472865728667286772868728697287072871728727287372874728757287672877728787287972880728817288272883728847288572886728877288872889728907289172892728937289472895728967289772898728997290072901729027290372904729057290672907729087290972910729117291272913729147291572916729177291872919729207292172922729237292472925729267292772928729297293072931729327293372934729357293672937729387293972940729417294272943729447294572946729477294872949729507295172952729537295472955729567295772958729597296072961729627296372964729657296672967729687296972970729717297272973729747297572976729777297872979729807298172982729837298472985729867298772988729897299072991729927299372994729957299672997729987299973000730017300273003730047300573006730077300873009730107301173012730137301473015730167301773018730197302073021730227302373024730257302673027730287302973030730317303273033730347303573036730377303873039730407304173042730437304473045730467304773048730497305073051730527305373054730557305673057730587305973060730617306273063730647306573066730677306873069730707307173072730737307473075730767307773078730797308073081730827308373084730857308673087730887308973090730917309273093730947309573096730977309873099731007310173102731037310473105731067310773108731097311073111731127311373114731157311673117731187311973120731217312273123731247312573126731277312873129731307313173132731337313473135731367313773138731397314073141731427314373144731457314673147731487314973150731517315273153731547315573156731577315873159731607316173162731637316473165731667316773168731697317073171731727317373174731757317673177731787317973180731817318273183731847318573186731877318873189731907319173192731937319473195731967319773198731997320073201732027320373204732057320673207732087320973210732117321273213732147321573216732177321873219732207322173222732237322473225732267322773228732297323073231732327323373234732357323673237732387323973240732417324273243732447324573246732477324873249732507325173252732537325473255732567325773258732597326073261732627326373264732657326673267732687326973270732717327273273732747327573276732777327873279732807328173282732837328473285732867328773288732897329073291732927329373294732957329673297732987329973300733017330273303733047330573306733077330873309733107331173312733137331473315733167331773318733197332073321733227332373324733257332673327733287332973330733317333273333733347333573336733377333873339733407334173342733437334473345733467334773348733497335073351733527335373354733557335673357733587335973360733617336273363733647336573366733677336873369733707337173372733737337473375733767337773378733797338073381733827338373384733857338673387733887338973390733917339273393733947339573396733977339873399734007340173402734037340473405734067340773408734097341073411734127341373414734157341673417734187341973420734217342273423734247342573426734277342873429734307343173432734337343473435734367343773438734397344073441734427344373444734457344673447734487344973450734517345273453734547345573456734577345873459734607346173462734637346473465734667346773468734697347073471734727347373474734757347673477734787347973480734817348273483734847348573486734877348873489734907349173492734937349473495734967349773498734997350073501735027350373504735057350673507735087350973510735117351273513735147351573516735177351873519735207352173522735237352473525735267352773528735297353073531735327353373534735357353673537735387353973540735417354273543735447354573546735477354873549735507355173552735537355473555735567355773558735597356073561735627356373564735657356673567735687356973570735717357273573735747357573576735777357873579735807358173582735837358473585735867358773588735897359073591735927359373594735957359673597735987359973600736017360273603736047360573606736077360873609736107361173612736137361473615736167361773618736197362073621736227362373624736257362673627736287362973630736317363273633736347363573636736377363873639736407364173642736437364473645736467364773648736497365073651736527365373654736557365673657736587365973660736617366273663736647366573666736677366873669736707367173672736737367473675736767367773678736797368073681736827368373684736857368673687736887368973690736917369273693736947369573696736977369873699737007370173702737037370473705737067370773708737097371073711737127371373714737157371673717737187371973720737217372273723737247372573726737277372873729737307373173732737337373473735737367373773738737397374073741737427374373744737457374673747737487374973750737517375273753737547375573756737577375873759737607376173762737637376473765737667376773768737697377073771737727377373774737757377673777737787377973780737817378273783737847378573786737877378873789737907379173792737937379473795737967379773798737997380073801738027380373804738057380673807738087380973810738117381273813738147381573816738177381873819738207382173822738237382473825738267382773828738297383073831738327383373834738357383673837738387383973840738417384273843738447384573846738477384873849738507385173852738537385473855738567385773858738597386073861738627386373864738657386673867738687386973870738717387273873738747387573876738777387873879738807388173882738837388473885738867388773888738897389073891738927389373894738957389673897738987389973900739017390273903739047390573906739077390873909739107391173912739137391473915739167391773918739197392073921739227392373924739257392673927739287392973930739317393273933739347393573936739377393873939739407394173942739437394473945739467394773948739497395073951739527395373954739557395673957739587395973960739617396273963739647396573966739677396873969739707397173972739737397473975739767397773978739797398073981739827398373984739857398673987739887398973990739917399273993739947399573996739977399873999740007400174002740037400474005740067400774008740097401074011740127401374014740157401674017740187401974020740217402274023740247402574026740277402874029740307403174032740337403474035740367403774038740397404074041740427404374044740457404674047740487404974050740517405274053740547405574056740577405874059740607406174062740637406474065740667406774068740697407074071740727407374074740757407674077740787407974080740817408274083740847408574086740877408874089740907409174092740937409474095740967409774098740997410074101741027410374104741057410674107741087410974110741117411274113741147411574116741177411874119741207412174122741237412474125741267412774128741297413074131741327413374134741357413674137741387413974140741417414274143741447414574146741477414874149741507415174152741537415474155741567415774158741597416074161741627416374164741657416674167741687416974170741717417274173741747417574176741777417874179741807418174182741837418474185741867418774188741897419074191741927419374194741957419674197741987419974200742017420274203742047420574206742077420874209742107421174212742137421474215742167421774218742197422074221742227422374224742257422674227742287422974230742317423274233742347423574236742377423874239742407424174242742437424474245742467424774248742497425074251742527425374254742557425674257742587425974260742617426274263742647426574266742677426874269742707427174272742737427474275742767427774278742797428074281742827428374284742857428674287742887428974290742917429274293742947429574296742977429874299743007430174302743037430474305743067430774308743097431074311743127431374314743157431674317743187431974320743217432274323743247432574326743277432874329743307433174332743337433474335743367433774338743397434074341743427434374344743457434674347743487434974350743517435274353743547435574356743577435874359743607436174362743637436474365743667436774368743697437074371743727437374374743757437674377743787437974380743817438274383743847438574386743877438874389743907439174392743937439474395743967439774398743997440074401744027440374404744057440674407744087440974410744117441274413744147441574416744177441874419744207442174422744237442474425744267442774428744297443074431744327443374434744357443674437744387443974440744417444274443744447444574446744477444874449744507445174452744537445474455744567445774458744597446074461744627446374464744657446674467744687446974470744717447274473744747447574476744777447874479744807448174482744837448474485744867448774488744897449074491744927449374494744957449674497744987449974500745017450274503745047450574506745077450874509745107451174512745137451474515745167451774518745197452074521745227452374524745257452674527745287452974530745317453274533745347453574536745377453874539745407454174542745437454474545745467454774548745497455074551745527455374554745557455674557745587455974560745617456274563745647456574566745677456874569745707457174572745737457474575745767457774578745797458074581745827458374584745857458674587745887458974590745917459274593745947459574596745977459874599746007460174602746037460474605746067460774608746097461074611746127461374614746157461674617746187461974620746217462274623746247462574626746277462874629746307463174632746337463474635746367463774638746397464074641746427464374644746457464674647746487464974650746517465274653746547465574656746577465874659746607466174662746637466474665746667466774668746697467074671746727467374674746757467674677746787467974680746817468274683746847468574686746877468874689746907469174692746937469474695746967469774698746997470074701747027470374704747057470674707747087470974710747117471274713747147471574716747177471874719747207472174722747237472474725747267472774728747297473074731747327473374734747357473674737747387473974740747417474274743747447474574746747477474874749747507475174752747537475474755747567475774758747597476074761747627476374764747657476674767747687476974770747717477274773747747477574776747777477874779747807478174782747837478474785747867478774788747897479074791747927479374794747957479674797747987479974800748017480274803748047480574806748077480874809748107481174812748137481474815748167481774818748197482074821748227482374824748257482674827748287482974830748317483274833748347483574836748377483874839748407484174842748437484474845748467484774848748497485074851748527485374854748557485674857748587485974860748617486274863748647486574866748677486874869748707487174872748737487474875748767487774878748797488074881748827488374884748857488674887748887488974890748917489274893748947489574896748977489874899749007490174902749037490474905749067490774908749097491074911749127491374914749157491674917749187491974920749217492274923749247492574926749277492874929749307493174932749337493474935749367493774938749397494074941749427494374944749457494674947749487494974950749517495274953749547495574956749577495874959749607496174962749637496474965749667496774968749697497074971749727497374974749757497674977749787497974980749817498274983749847498574986749877498874989749907499174992749937499474995749967499774998749997500075001750027500375004750057500675007750087500975010750117501275013750147501575016750177501875019750207502175022750237502475025750267502775028750297503075031750327503375034750357503675037750387503975040750417504275043750447504575046750477504875049750507505175052750537505475055750567505775058750597506075061750627506375064750657506675067750687506975070750717507275073750747507575076750777507875079750807508175082750837508475085750867508775088750897509075091750927509375094750957509675097750987509975100751017510275103751047510575106751077510875109751107511175112751137511475115751167511775118751197512075121751227512375124751257512675127751287512975130751317513275133751347513575136751377513875139751407514175142751437514475145751467514775148751497515075151751527515375154751557515675157751587515975160751617516275163751647516575166751677516875169751707517175172751737517475175751767517775178751797518075181751827518375184751857518675187751887518975190751917519275193751947519575196751977519875199752007520175202752037520475205752067520775208752097521075211752127521375214752157521675217752187521975220752217522275223752247522575226752277522875229752307523175232752337523475235752367523775238752397524075241752427524375244752457524675247752487524975250752517525275253752547525575256752577525875259752607526175262752637526475265752667526775268752697527075271752727527375274752757527675277752787527975280752817528275283752847528575286752877528875289752907529175292752937529475295752967529775298752997530075301753027530375304753057530675307753087530975310753117531275313753147531575316753177531875319753207532175322753237532475325753267532775328753297533075331753327533375334753357533675337753387533975340753417534275343753447534575346753477534875349753507535175352753537535475355753567535775358753597536075361753627536375364753657536675367753687536975370753717537275373753747537575376753777537875379753807538175382753837538475385753867538775388753897539075391753927539375394753957539675397753987539975400754017540275403754047540575406754077540875409754107541175412754137541475415754167541775418754197542075421754227542375424754257542675427754287542975430754317543275433754347543575436754377543875439754407544175442754437544475445754467544775448754497545075451754527545375454754557545675457754587545975460754617546275463754647546575466754677546875469754707547175472754737547475475754767547775478754797548075481754827548375484754857548675487754887548975490754917549275493754947549575496754977549875499755007550175502755037550475505755067550775508755097551075511755127551375514755157551675517755187551975520755217552275523755247552575526755277552875529755307553175532755337553475535755367553775538755397554075541755427554375544755457554675547755487554975550755517555275553755547555575556755577555875559755607556175562755637556475565755667556775568755697557075571755727557375574755757557675577755787557975580755817558275583755847558575586755877558875589755907559175592755937559475595755967559775598755997560075601756027560375604756057560675607756087560975610756117561275613756147561575616756177561875619756207562175622756237562475625756267562775628756297563075631756327563375634756357563675637756387563975640756417564275643756447564575646756477564875649756507565175652756537565475655756567565775658756597566075661756627566375664756657566675667756687566975670756717567275673756747567575676756777567875679756807568175682756837568475685756867568775688756897569075691756927569375694756957569675697756987569975700757017570275703757047570575706757077570875709757107571175712757137571475715757167571775718757197572075721757227572375724757257572675727757287572975730757317573275733757347573575736757377573875739757407574175742757437574475745757467574775748757497575075751757527575375754757557575675757757587575975760757617576275763757647576575766757677576875769757707577175772757737577475775757767577775778757797578075781757827578375784757857578675787757887578975790757917579275793757947579575796757977579875799758007580175802758037580475805758067580775808758097581075811758127581375814758157581675817758187581975820758217582275823758247582575826758277582875829758307583175832758337583475835758367583775838758397584075841758427584375844758457584675847758487584975850758517585275853758547585575856758577585875859758607586175862758637586475865758667586775868758697587075871758727587375874758757587675877758787587975880758817588275883758847588575886758877588875889758907589175892758937589475895758967589775898758997590075901759027590375904759057590675907759087590975910759117591275913759147591575916759177591875919759207592175922759237592475925759267592775928759297593075931759327593375934759357593675937759387593975940759417594275943759447594575946759477594875949759507595175952759537595475955759567595775958759597596075961759627596375964759657596675967759687596975970759717597275973759747597575976759777597875979759807598175982759837598475985759867598775988759897599075991759927599375994759957599675997759987599976000760017600276003760047600576006760077600876009760107601176012760137601476015760167601776018760197602076021760227602376024760257602676027760287602976030760317603276033760347603576036760377603876039760407604176042760437604476045760467604776048760497605076051760527605376054760557605676057760587605976060760617606276063760647606576066760677606876069760707607176072760737607476075760767607776078760797608076081760827608376084760857608676087760887608976090760917609276093760947609576096760977609876099761007610176102761037610476105761067610776108761097611076111761127611376114761157611676117761187611976120761217612276123761247612576126761277612876129761307613176132761337613476135761367613776138761397614076141761427614376144761457614676147761487614976150761517615276153761547615576156761577615876159761607616176162761637616476165761667616776168761697617076171761727617376174761757617676177761787617976180761817618276183761847618576186761877618876189761907619176192761937619476195761967619776198761997620076201762027620376204762057620676207762087620976210762117621276213762147621576216762177621876219762207622176222762237622476225762267622776228762297623076231762327623376234762357623676237762387623976240762417624276243762447624576246762477624876249762507625176252762537625476255762567625776258762597626076261762627626376264762657626676267762687626976270762717627276273762747627576276762777627876279762807628176282762837628476285762867628776288762897629076291762927629376294762957629676297762987629976300763017630276303763047630576306763077630876309763107631176312763137631476315763167631776318763197632076321763227632376324763257632676327763287632976330763317633276333763347633576336763377633876339763407634176342763437634476345763467634776348763497635076351763527635376354763557635676357763587635976360763617636276363763647636576366763677636876369763707637176372763737637476375763767637776378763797638076381763827638376384763857638676387763887638976390763917639276393763947639576396763977639876399764007640176402764037640476405764067640776408764097641076411764127641376414764157641676417764187641976420764217642276423764247642576426764277642876429764307643176432764337643476435764367643776438764397644076441764427644376444764457644676447764487644976450764517645276453764547645576456764577645876459764607646176462764637646476465764667646776468764697647076471764727647376474764757647676477764787647976480764817648276483764847648576486764877648876489764907649176492764937649476495764967649776498764997650076501765027650376504765057650676507765087650976510765117651276513765147651576516765177651876519765207652176522765237652476525765267652776528765297653076531765327653376534765357653676537765387653976540765417654276543765447654576546765477654876549765507655176552765537655476555765567655776558765597656076561765627656376564765657656676567765687656976570765717657276573765747657576576765777657876579765807658176582765837658476585765867658776588765897659076591765927659376594765957659676597765987659976600766017660276603766047660576606766077660876609766107661176612766137661476615766167661776618766197662076621766227662376624766257662676627766287662976630766317663276633766347663576636766377663876639766407664176642766437664476645766467664776648766497665076651766527665376654766557665676657766587665976660766617666276663766647666576666766677666876669766707667176672766737667476675766767667776678766797668076681766827668376684766857668676687766887668976690766917669276693766947669576696766977669876699767007670176702767037670476705767067670776708767097671076711767127671376714767157671676717767187671976720767217672276723767247672576726767277672876729767307673176732767337673476735767367673776738767397674076741767427674376744767457674676747767487674976750767517675276753767547675576756767577675876759767607676176762767637676476765767667676776768767697677076771767727677376774767757677676777767787677976780767817678276783767847678576786767877678876789767907679176792767937679476795767967679776798767997680076801768027680376804768057680676807768087680976810768117681276813768147681576816768177681876819768207682176822768237682476825768267682776828768297683076831768327683376834768357683676837768387683976840768417684276843768447684576846768477684876849768507685176852768537685476855768567685776858768597686076861768627686376864768657686676867768687686976870768717687276873768747687576876768777687876879768807688176882768837688476885768867688776888768897689076891768927689376894768957689676897768987689976900769017690276903769047690576906769077690876909769107691176912769137691476915769167691776918769197692076921769227692376924769257692676927769287692976930769317693276933769347693576936769377693876939769407694176942769437694476945769467694776948769497695076951769527695376954769557695676957769587695976960769617696276963769647696576966769677696876969769707697176972769737697476975769767697776978769797698076981769827698376984769857698676987769887698976990769917699276993769947699576996769977699876999770007700177002770037700477005770067700777008770097701077011770127701377014770157701677017770187701977020770217702277023770247702577026770277702877029770307703177032770337703477035770367703777038770397704077041770427704377044770457704677047770487704977050770517705277053770547705577056770577705877059770607706177062770637706477065770667706777068770697707077071770727707377074770757707677077770787707977080770817708277083770847708577086770877708877089770907709177092770937709477095770967709777098770997710077101771027710377104771057710677107771087710977110771117711277113771147711577116771177711877119771207712177122771237712477125771267712777128771297713077131771327713377134771357713677137771387713977140771417714277143771447714577146771477714877149771507715177152771537715477155771567715777158771597716077161771627716377164771657716677167771687716977170771717717277173771747717577176771777717877179771807718177182771837718477185771867718777188771897719077191771927719377194771957719677197771987719977200772017720277203772047720577206772077720877209772107721177212772137721477215772167721777218772197722077221772227722377224772257722677227772287722977230772317723277233772347723577236772377723877239772407724177242772437724477245772467724777248772497725077251772527725377254772557725677257772587725977260772617726277263772647726577266772677726877269772707727177272772737727477275772767727777278772797728077281772827728377284772857728677287772887728977290772917729277293772947729577296772977729877299773007730177302773037730477305773067730777308773097731077311773127731377314773157731677317773187731977320773217732277323773247732577326773277732877329773307733177332773337733477335773367733777338773397734077341773427734377344773457734677347773487734977350773517735277353773547735577356773577735877359773607736177362773637736477365773667736777368773697737077371773727737377374773757737677377773787737977380773817738277383773847738577386773877738877389773907739177392773937739477395773967739777398773997740077401774027740377404774057740677407774087740977410774117741277413774147741577416774177741877419774207742177422774237742477425774267742777428774297743077431774327743377434774357743677437774387743977440774417744277443774447744577446774477744877449774507745177452774537745477455774567745777458774597746077461774627746377464774657746677467774687746977470774717747277473774747747577476774777747877479774807748177482774837748477485774867748777488774897749077491774927749377494774957749677497774987749977500775017750277503775047750577506775077750877509775107751177512775137751477515775167751777518775197752077521775227752377524775257752677527775287752977530775317753277533775347753577536775377753877539775407754177542775437754477545775467754777548775497755077551775527755377554775557755677557775587755977560775617756277563775647756577566775677756877569775707757177572775737757477575775767757777578775797758077581775827758377584775857758677587775887758977590775917759277593775947759577596775977759877599776007760177602776037760477605776067760777608776097761077611776127761377614776157761677617776187761977620776217762277623776247762577626776277762877629776307763177632776337763477635776367763777638776397764077641776427764377644776457764677647776487764977650776517765277653776547765577656776577765877659776607766177662776637766477665776667766777668776697767077671776727767377674776757767677677776787767977680776817768277683776847768577686776877768877689776907769177692776937769477695776967769777698776997770077701777027770377704777057770677707777087770977710777117771277713777147771577716777177771877719777207772177722777237772477725777267772777728777297773077731777327773377734777357773677737777387773977740777417774277743777447774577746777477774877749777507775177752777537775477755777567775777758777597776077761777627776377764777657776677767777687776977770777717777277773777747777577776777777777877779777807778177782777837778477785777867778777788777897779077791777927779377794777957779677797777987779977800778017780277803778047780577806778077780877809778107781177812778137781477815778167781777818778197782077821778227782377824778257782677827778287782977830778317783277833778347783577836778377783877839778407784177842778437784477845778467784777848778497785077851778527785377854778557785677857778587785977860778617786277863778647786577866778677786877869778707787177872778737787477875778767787777878778797788077881778827788377884778857788677887778887788977890778917789277893778947789577896778977789877899779007790177902779037790477905779067790777908779097791077911779127791377914779157791677917779187791977920779217792277923779247792577926779277792877929779307793177932779337793477935779367793777938779397794077941779427794377944779457794677947779487794977950779517795277953779547795577956779577795877959779607796177962779637796477965779667796777968779697797077971779727797377974779757797677977779787797977980779817798277983779847798577986779877798877989779907799177992779937799477995779967799777998779997800078001780027800378004780057800678007780087800978010780117801278013780147801578016780177801878019780207802178022780237802478025780267802778028780297803078031780327803378034780357803678037780387803978040780417804278043780447804578046780477804878049780507805178052780537805478055780567805778058780597806078061780627806378064780657806678067780687806978070780717807278073780747807578076780777807878079780807808178082780837808478085780867808778088780897809078091780927809378094780957809678097780987809978100781017810278103781047810578106781077810878109781107811178112781137811478115781167811778118781197812078121781227812378124781257812678127781287812978130781317813278133781347813578136781377813878139781407814178142781437814478145781467814778148781497815078151781527815378154781557815678157781587815978160781617816278163781647816578166781677816878169781707817178172781737817478175781767817778178781797818078181781827818378184781857818678187781887818978190781917819278193781947819578196781977819878199782007820178202782037820478205782067820778208782097821078211782127821378214782157821678217782187821978220782217822278223782247822578226782277822878229782307823178232782337823478235782367823778238782397824078241782427824378244782457824678247782487824978250782517825278253782547825578256782577825878259782607826178262782637826478265782667826778268782697827078271782727827378274782757827678277782787827978280782817828278283782847828578286782877828878289782907829178292782937829478295782967829778298782997830078301783027830378304783057830678307783087830978310783117831278313783147831578316783177831878319783207832178322783237832478325783267832778328783297833078331783327833378334783357833678337783387833978340783417834278343783447834578346783477834878349783507835178352783537835478355783567835778358783597836078361783627836378364783657836678367783687836978370783717837278373783747837578376783777837878379783807838178382783837838478385783867838778388783897839078391783927839378394783957839678397783987839978400784017840278403784047840578406784077840878409784107841178412784137841478415784167841778418784197842078421784227842378424784257842678427784287842978430784317843278433784347843578436784377843878439784407844178442784437844478445784467844778448784497845078451784527845378454784557845678457784587845978460784617846278463784647846578466784677846878469784707847178472784737847478475784767847778478784797848078481784827848378484784857848678487784887848978490784917849278493784947849578496784977849878499785007850178502785037850478505785067850778508785097851078511785127851378514785157851678517785187851978520785217852278523785247852578526785277852878529785307853178532785337853478535785367853778538785397854078541785427854378544785457854678547785487854978550785517855278553785547855578556785577855878559785607856178562785637856478565785667856778568785697857078571785727857378574785757857678577785787857978580785817858278583785847858578586785877858878589785907859178592785937859478595785967859778598785997860078601786027860378604786057860678607786087860978610786117861278613786147861578616786177861878619786207862178622786237862478625786267862778628786297863078631786327863378634786357863678637786387863978640786417864278643786447864578646786477864878649786507865178652786537865478655786567865778658786597866078661786627866378664786657866678667786687866978670786717867278673786747867578676786777867878679786807868178682786837868478685786867868778688786897869078691786927869378694786957869678697786987869978700787017870278703787047870578706787077870878709787107871178712787137871478715787167871778718787197872078721787227872378724787257872678727787287872978730787317873278733787347873578736787377873878739787407874178742787437874478745787467874778748787497875078751787527875378754787557875678757787587875978760787617876278763787647876578766787677876878769787707877178772787737877478775787767877778778787797878078781787827878378784787857878678787787887878978790787917879278793787947879578796787977879878799788007880178802788037880478805788067880778808788097881078811788127881378814788157881678817788187881978820788217882278823788247882578826788277882878829788307883178832788337883478835788367883778838788397884078841788427884378844788457884678847788487884978850788517885278853788547885578856788577885878859788607886178862788637886478865788667886778868788697887078871788727887378874788757887678877788787887978880788817888278883788847888578886788877888878889788907889178892788937889478895788967889778898788997890078901789027890378904789057890678907789087890978910789117891278913789147891578916789177891878919789207892178922789237892478925789267892778928789297893078931789327893378934789357893678937789387893978940789417894278943789447894578946789477894878949789507895178952789537895478955789567895778958789597896078961789627896378964789657896678967789687896978970789717897278973789747897578976789777897878979789807898178982789837898478985789867898778988789897899078991789927899378994789957899678997789987899979000790017900279003790047900579006790077900879009790107901179012790137901479015790167901779018790197902079021790227902379024790257902679027790287902979030790317903279033790347903579036790377903879039790407904179042790437904479045790467904779048790497905079051790527905379054790557905679057790587905979060790617906279063790647906579066790677906879069790707907179072790737907479075790767907779078790797908079081790827908379084790857908679087790887908979090790917909279093790947909579096790977909879099791007910179102791037910479105791067910779108791097911079111791127911379114791157911679117791187911979120791217912279123791247912579126791277912879129791307913179132791337913479135791367913779138791397914079141791427914379144791457914679147791487914979150791517915279153791547915579156791577915879159791607916179162791637916479165791667916779168791697917079171791727917379174791757917679177791787917979180791817918279183791847918579186791877918879189791907919179192791937919479195791967919779198791997920079201792027920379204792057920679207792087920979210792117921279213792147921579216792177921879219792207922179222792237922479225792267922779228792297923079231792327923379234792357923679237792387923979240792417924279243792447924579246792477924879249792507925179252792537925479255792567925779258792597926079261792627926379264792657926679267792687926979270792717927279273792747927579276792777927879279792807928179282792837928479285792867928779288792897929079291792927929379294792957929679297792987929979300793017930279303793047930579306793077930879309793107931179312793137931479315793167931779318793197932079321793227932379324793257932679327793287932979330793317933279333793347933579336793377933879339793407934179342793437934479345793467934779348793497935079351793527935379354793557935679357793587935979360793617936279363793647936579366793677936879369793707937179372793737937479375793767937779378793797938079381793827938379384793857938679387793887938979390793917939279393793947939579396793977939879399794007940179402794037940479405794067940779408794097941079411794127941379414794157941679417794187941979420794217942279423794247942579426794277942879429794307943179432794337943479435794367943779438794397944079441794427944379444794457944679447794487944979450794517945279453794547945579456794577945879459794607946179462794637946479465794667946779468794697947079471794727947379474794757947679477794787947979480794817948279483794847948579486794877948879489794907949179492794937949479495794967949779498794997950079501795027950379504795057950679507795087950979510795117951279513795147951579516795177951879519795207952179522795237952479525795267952779528795297953079531795327953379534795357953679537795387953979540795417954279543795447954579546795477954879549795507955179552795537955479555795567955779558795597956079561795627956379564795657956679567795687956979570795717957279573795747957579576795777957879579795807958179582795837958479585795867958779588795897959079591795927959379594795957959679597795987959979600796017960279603796047960579606796077960879609796107961179612796137961479615796167961779618796197962079621796227962379624796257962679627796287962979630796317963279633796347963579636796377963879639796407964179642796437964479645796467964779648796497965079651796527965379654796557965679657796587965979660796617966279663796647966579666796677966879669796707967179672796737967479675796767967779678796797968079681796827968379684796857968679687796887968979690796917969279693796947969579696796977969879699797007970179702797037970479705797067970779708797097971079711797127971379714797157971679717797187971979720797217972279723797247972579726797277972879729797307973179732797337973479735797367973779738797397974079741797427974379744797457974679747797487974979750797517975279753797547975579756797577975879759797607976179762797637976479765797667976779768797697977079771797727977379774797757977679777797787977979780797817978279783797847978579786797877978879789797907979179792797937979479795797967979779798797997980079801798027980379804798057980679807798087980979810798117981279813798147981579816798177981879819798207982179822798237982479825798267982779828798297983079831798327983379834798357983679837798387983979840798417984279843798447984579846798477984879849798507985179852798537985479855798567985779858798597986079861798627986379864798657986679867798687986979870798717987279873798747987579876798777987879879798807988179882798837988479885798867988779888798897989079891798927989379894798957989679897798987989979900799017990279903799047990579906799077990879909799107991179912799137991479915799167991779918799197992079921799227992379924799257992679927799287992979930799317993279933799347993579936799377993879939799407994179942799437994479945799467994779948799497995079951799527995379954799557995679957799587995979960799617996279963799647996579966799677996879969799707997179972799737997479975799767997779978799797998079981799827998379984799857998679987799887998979990799917999279993799947999579996799977999879999800008000180002800038000480005800068000780008800098001080011800128001380014800158001680017800188001980020800218002280023800248002580026800278002880029800308003180032800338003480035800368003780038800398004080041800428004380044800458004680047800488004980050800518005280053800548005580056800578005880059800608006180062800638006480065800668006780068800698007080071800728007380074800758007680077800788007980080800818008280083800848008580086800878008880089800908009180092800938009480095800968009780098800998010080101801028010380104801058010680107801088010980110801118011280113801148011580116801178011880119801208012180122801238012480125801268012780128801298013080131801328013380134801358013680137801388013980140801418014280143801448014580146801478014880149801508015180152801538015480155801568015780158801598016080161801628016380164801658016680167801688016980170801718017280173801748017580176801778017880179801808018180182801838018480185801868018780188801898019080191801928019380194801958019680197801988019980200802018020280203802048020580206802078020880209802108021180212802138021480215802168021780218802198022080221802228022380224802258022680227802288022980230802318023280233802348023580236802378023880239802408024180242802438024480245802468024780248802498025080251802528025380254802558025680257802588025980260802618026280263802648026580266802678026880269802708027180272802738027480275802768027780278802798028080281802828028380284802858028680287802888028980290802918029280293802948029580296802978029880299803008030180302803038030480305803068030780308803098031080311803128031380314803158031680317803188031980320803218032280323803248032580326803278032880329803308033180332803338033480335803368033780338803398034080341803428034380344803458034680347803488034980350803518035280353803548035580356803578035880359803608036180362803638036480365803668036780368803698037080371803728037380374803758037680377803788037980380803818038280383803848038580386803878038880389803908039180392803938039480395803968039780398803998040080401804028040380404804058040680407804088040980410804118041280413804148041580416804178041880419804208042180422804238042480425804268042780428804298043080431804328043380434804358043680437804388043980440804418044280443804448044580446804478044880449804508045180452804538045480455804568045780458804598046080461804628046380464804658046680467804688046980470804718047280473804748047580476804778047880479804808048180482804838048480485804868048780488804898049080491804928049380494804958049680497804988049980500805018050280503805048050580506805078050880509805108051180512805138051480515805168051780518805198052080521805228052380524805258052680527805288052980530805318053280533805348053580536805378053880539805408054180542805438054480545805468054780548805498055080551805528055380554805558055680557805588055980560805618056280563805648056580566805678056880569805708057180572805738057480575805768057780578805798058080581805828058380584805858058680587805888058980590805918059280593805948059580596805978059880599806008060180602806038060480605806068060780608806098061080611806128061380614806158061680617806188061980620806218062280623806248062580626806278062880629806308063180632806338063480635806368063780638806398064080641806428064380644806458064680647806488064980650806518065280653806548065580656806578065880659806608066180662806638066480665806668066780668806698067080671806728067380674806758067680677806788067980680806818068280683806848068580686806878068880689806908069180692806938069480695806968069780698806998070080701807028070380704807058070680707807088070980710807118071280713807148071580716807178071880719807208072180722807238072480725807268072780728807298073080731807328073380734807358073680737807388073980740807418074280743807448074580746807478074880749807508075180752807538075480755807568075780758807598076080761807628076380764807658076680767807688076980770807718077280773807748077580776807778077880779807808078180782807838078480785807868078780788807898079080791807928079380794807958079680797807988079980800808018080280803808048080580806808078080880809808108081180812808138081480815808168081780818808198082080821808228082380824808258082680827808288082980830808318083280833808348083580836808378083880839808408084180842808438084480845808468084780848808498085080851808528085380854808558085680857808588085980860808618086280863808648086580866808678086880869808708087180872808738087480875808768087780878808798088080881808828088380884808858088680887808888088980890808918089280893808948089580896808978089880899809008090180902809038090480905809068090780908809098091080911809128091380914809158091680917809188091980920809218092280923809248092580926809278092880929809308093180932809338093480935809368093780938809398094080941809428094380944809458094680947809488094980950809518095280953809548095580956809578095880959809608096180962809638096480965809668096780968809698097080971809728097380974809758097680977809788097980980809818098280983809848098580986809878098880989809908099180992809938099480995809968099780998809998100081001810028100381004810058100681007810088100981010810118101281013810148101581016810178101881019810208102181022810238102481025810268102781028810298103081031810328103381034810358103681037810388103981040810418104281043810448104581046810478104881049810508105181052810538105481055810568105781058810598106081061810628106381064810658106681067810688106981070810718107281073810748107581076810778107881079810808108181082810838108481085810868108781088810898109081091810928109381094810958109681097810988109981100811018110281103811048110581106811078110881109811108111181112811138111481115811168111781118811198112081121811228112381124811258112681127811288112981130811318113281133811348113581136811378113881139811408114181142811438114481145811468114781148811498115081151811528115381154811558115681157811588115981160811618116281163811648116581166811678116881169811708117181172811738117481175811768117781178811798118081181811828118381184811858118681187811888118981190811918119281193811948119581196811978119881199812008120181202812038120481205812068120781208812098121081211812128121381214812158121681217812188121981220812218122281223812248122581226812278122881229812308123181232812338123481235812368123781238812398124081241812428124381244812458124681247812488124981250812518125281253812548125581256812578125881259812608126181262812638126481265812668126781268812698127081271812728127381274812758127681277812788127981280812818128281283812848128581286812878128881289812908129181292812938129481295812968129781298812998130081301813028130381304813058130681307813088130981310813118131281313813148131581316813178131881319813208132181322813238132481325813268132781328813298133081331813328133381334813358133681337813388133981340813418134281343813448134581346813478134881349813508135181352813538135481355813568135781358813598136081361813628136381364813658136681367813688136981370813718137281373813748137581376813778137881379813808138181382813838138481385813868138781388813898139081391813928139381394813958139681397813988139981400814018140281403814048140581406814078140881409814108141181412814138141481415814168141781418814198142081421814228142381424814258142681427814288142981430814318143281433814348143581436814378143881439814408144181442814438144481445814468144781448814498145081451814528145381454814558145681457814588145981460814618146281463814648146581466814678146881469814708147181472814738147481475814768147781478814798148081481814828148381484814858148681487814888148981490814918149281493814948149581496814978149881499815008150181502815038150481505815068150781508815098151081511815128151381514815158151681517815188151981520815218152281523815248152581526815278152881529815308153181532815338153481535815368153781538815398154081541815428154381544815458154681547815488154981550815518155281553815548155581556815578155881559815608156181562815638156481565815668156781568815698157081571815728157381574815758157681577815788157981580815818158281583815848158581586815878158881589815908159181592815938159481595815968159781598815998160081601816028160381604816058160681607816088160981610816118161281613816148161581616816178161881619816208162181622816238162481625816268162781628816298163081631816328163381634816358163681637816388163981640816418164281643816448164581646816478164881649816508165181652816538165481655816568165781658816598166081661816628166381664816658166681667816688166981670816718167281673816748167581676816778167881679816808168181682816838168481685816868168781688816898169081691816928169381694816958169681697816988169981700817018170281703817048170581706817078170881709817108171181712817138171481715817168171781718817198172081721817228172381724817258172681727817288172981730817318173281733817348173581736817378173881739817408174181742817438174481745817468174781748817498175081751817528175381754817558175681757817588175981760817618176281763817648176581766817678176881769817708177181772817738177481775817768177781778817798178081781817828178381784817858178681787817888178981790817918179281793817948179581796817978179881799818008180181802818038180481805818068180781808818098181081811818128181381814818158181681817818188181981820818218182281823818248182581826818278182881829818308183181832818338183481835818368183781838818398184081841818428184381844818458184681847818488184981850818518185281853818548185581856818578185881859818608186181862818638186481865818668186781868818698187081871818728187381874818758187681877818788187981880818818188281883818848188581886818878188881889818908189181892818938189481895818968189781898818998190081901819028190381904819058190681907819088190981910819118191281913819148191581916819178191881919819208192181922819238192481925819268192781928819298193081931819328193381934819358193681937819388193981940819418194281943819448194581946819478194881949819508195181952819538195481955819568195781958819598196081961819628196381964819658196681967819688196981970819718197281973819748197581976819778197881979819808198181982819838198481985819868198781988819898199081991819928199381994819958199681997819988199982000820018200282003820048200582006820078200882009820108201182012820138201482015820168201782018820198202082021820228202382024820258202682027820288202982030820318203282033820348203582036820378203882039820408204182042820438204482045820468204782048820498205082051820528205382054820558205682057820588205982060820618206282063820648206582066820678206882069820708207182072820738207482075820768207782078820798208082081820828208382084820858208682087820888208982090820918209282093820948209582096820978209882099821008210182102821038210482105821068210782108821098211082111821128211382114821158211682117821188211982120821218212282123821248212582126821278212882129821308213182132821338213482135821368213782138821398214082141821428214382144821458214682147821488214982150821518215282153821548215582156821578215882159821608216182162821638216482165821668216782168821698217082171821728217382174821758217682177821788217982180821818218282183821848218582186821878218882189821908219182192821938219482195821968219782198821998220082201822028220382204822058220682207822088220982210822118221282213822148221582216822178221882219822208222182222822238222482225822268222782228822298223082231822328223382234822358223682237822388223982240822418224282243822448224582246822478224882249822508225182252822538225482255822568225782258822598226082261822628226382264822658226682267822688226982270822718227282273822748227582276822778227882279822808228182282822838228482285822868228782288822898229082291822928229382294822958229682297822988229982300823018230282303823048230582306823078230882309823108231182312823138231482315823168231782318823198232082321823228232382324823258232682327823288232982330823318233282333823348233582336823378233882339823408234182342823438234482345823468234782348823498235082351823528235382354823558235682357823588235982360823618236282363823648236582366823678236882369823708237182372823738237482375823768237782378823798238082381823828238382384823858238682387823888238982390823918239282393823948239582396823978239882399824008240182402824038240482405824068240782408824098241082411824128241382414824158241682417824188241982420824218242282423824248242582426824278242882429824308243182432824338243482435824368243782438824398244082441824428244382444824458244682447824488244982450824518245282453824548245582456824578245882459824608246182462824638246482465824668246782468824698247082471824728247382474824758247682477824788247982480824818248282483824848248582486824878248882489824908249182492824938249482495824968249782498824998250082501825028250382504825058250682507825088250982510825118251282513825148251582516825178251882519825208252182522825238252482525825268252782528825298253082531825328253382534825358253682537825388253982540825418254282543825448254582546825478254882549825508255182552825538255482555825568255782558825598256082561825628256382564825658256682567825688256982570825718257282573825748257582576825778257882579825808258182582825838258482585825868258782588825898259082591825928259382594825958259682597825988259982600826018260282603826048260582606826078260882609826108261182612826138261482615826168261782618826198262082621826228262382624826258262682627826288262982630826318263282633826348263582636826378263882639826408264182642826438264482645826468264782648826498265082651826528265382654826558265682657826588265982660826618266282663826648266582666826678266882669826708267182672826738267482675826768267782678826798268082681826828268382684826858268682687826888268982690826918269282693826948269582696826978269882699827008270182702827038270482705827068270782708827098271082711827128271382714827158271682717827188271982720827218272282723827248272582726827278272882729827308273182732827338273482735827368273782738827398274082741827428274382744827458274682747827488274982750827518275282753827548275582756827578275882759827608276182762827638276482765827668276782768827698277082771827728277382774827758277682777827788277982780827818278282783827848278582786827878278882789827908279182792827938279482795827968279782798827998280082801828028280382804828058280682807828088280982810828118281282813828148281582816828178281882819828208282182822828238282482825828268282782828828298283082831828328283382834828358283682837828388283982840828418284282843828448284582846828478284882849828508285182852828538285482855828568285782858828598286082861828628286382864828658286682867828688286982870828718287282873828748287582876828778287882879828808288182882828838288482885828868288782888828898289082891828928289382894828958289682897828988289982900829018290282903829048290582906829078290882909829108291182912829138291482915829168291782918829198292082921829228292382924829258292682927829288292982930829318293282933829348293582936829378293882939829408294182942829438294482945829468294782948829498295082951829528295382954829558295682957829588295982960829618296282963829648296582966829678296882969829708297182972829738297482975829768297782978829798298082981829828298382984829858298682987829888298982990829918299282993829948299582996829978299882999830008300183002830038300483005830068300783008830098301083011830128301383014830158301683017830188301983020830218302283023830248302583026830278302883029830308303183032830338303483035830368303783038830398304083041830428304383044830458304683047830488304983050830518305283053830548305583056830578305883059830608306183062830638306483065830668306783068830698307083071830728307383074830758307683077830788307983080830818308283083830848308583086830878308883089830908309183092830938309483095830968309783098830998310083101831028310383104831058310683107831088310983110831118311283113831148311583116831178311883119831208312183122831238312483125831268312783128831298313083131831328313383134831358313683137831388313983140831418314283143831448314583146831478314883149831508315183152831538315483155831568315783158831598316083161831628316383164831658316683167831688316983170831718317283173831748317583176831778317883179831808318183182831838318483185831868318783188831898319083191831928319383194831958319683197831988319983200832018320283203832048320583206832078320883209832108321183212832138321483215832168321783218832198322083221832228322383224832258322683227832288322983230832318323283233832348323583236832378323883239832408324183242832438324483245832468324783248832498325083251832528325383254832558325683257832588325983260832618326283263832648326583266832678326883269832708327183272832738327483275832768327783278832798328083281832828328383284832858328683287832888328983290832918329283293832948329583296832978329883299833008330183302833038330483305833068330783308833098331083311833128331383314833158331683317833188331983320833218332283323833248332583326833278332883329833308333183332833338333483335833368333783338833398334083341833428334383344833458334683347833488334983350833518335283353833548335583356833578335883359833608336183362833638336483365833668336783368833698337083371833728337383374833758337683377833788337983380833818338283383833848338583386833878338883389833908339183392833938339483395833968339783398833998340083401834028340383404834058340683407834088340983410834118341283413834148341583416834178341883419834208342183422834238342483425834268342783428834298343083431834328343383434834358343683437834388343983440834418344283443834448344583446834478344883449834508345183452834538345483455834568345783458834598346083461834628346383464834658346683467834688346983470834718347283473834748347583476834778347883479834808348183482834838348483485834868348783488834898349083491834928349383494834958349683497834988349983500835018350283503835048350583506835078350883509835108351183512835138351483515835168351783518835198352083521835228352383524835258352683527835288352983530835318353283533835348353583536835378353883539835408354183542835438354483545835468354783548835498355083551835528355383554835558355683557835588355983560835618356283563835648356583566835678356883569835708357183572835738357483575835768357783578835798358083581835828358383584835858358683587835888358983590835918359283593835948359583596835978359883599836008360183602836038360483605836068360783608836098361083611836128361383614836158361683617836188361983620836218362283623836248362583626836278362883629836308363183632836338363483635836368363783638836398364083641836428364383644836458364683647836488364983650836518365283653836548365583656836578365883659836608366183662836638366483665836668366783668836698367083671836728367383674836758367683677836788367983680836818368283683836848368583686836878368883689836908369183692836938369483695836968369783698836998370083701837028370383704837058370683707837088370983710837118371283713837148371583716837178371883719837208372183722837238372483725837268372783728837298373083731837328373383734837358373683737837388373983740837418374283743837448374583746837478374883749837508375183752837538375483755837568375783758837598376083761837628376383764837658376683767837688376983770837718377283773837748377583776837778377883779837808378183782837838378483785837868378783788837898379083791837928379383794837958379683797837988379983800838018380283803838048380583806838078380883809838108381183812838138381483815838168381783818838198382083821838228382383824838258382683827838288382983830838318383283833838348383583836838378383883839838408384183842838438384483845838468384783848838498385083851838528385383854838558385683857838588385983860838618386283863838648386583866838678386883869838708387183872838738387483875838768387783878838798388083881838828388383884838858388683887838888388983890838918389283893838948389583896838978389883899839008390183902839038390483905839068390783908839098391083911839128391383914839158391683917839188391983920839218392283923839248392583926839278392883929839308393183932839338393483935839368393783938839398394083941839428394383944839458394683947839488394983950839518395283953839548395583956839578395883959839608396183962839638396483965839668396783968839698397083971839728397383974839758397683977839788397983980839818398283983839848398583986839878398883989839908399183992839938399483995839968399783998839998400084001840028400384004840058400684007840088400984010840118401284013840148401584016840178401884019840208402184022840238402484025840268402784028840298403084031840328403384034840358403684037840388403984040840418404284043840448404584046840478404884049840508405184052840538405484055840568405784058840598406084061840628406384064840658406684067840688406984070840718407284073840748407584076840778407884079840808408184082840838408484085840868408784088840898409084091840928409384094840958409684097840988409984100841018410284103841048410584106841078410884109841108411184112841138411484115841168411784118841198412084121841228412384124841258412684127841288412984130841318413284133841348413584136841378413884139841408414184142841438414484145841468414784148841498415084151841528415384154841558415684157841588415984160841618416284163841648416584166841678416884169841708417184172841738417484175841768417784178841798418084181841828418384184841858418684187841888418984190841918419284193841948419584196841978419884199842008420184202842038420484205842068420784208842098421084211842128421384214842158421684217842188421984220842218422284223842248422584226842278422884229842308423184232842338423484235842368423784238842398424084241842428424384244842458424684247842488424984250842518425284253842548425584256842578425884259842608426184262842638426484265842668426784268842698427084271842728427384274842758427684277842788427984280842818428284283842848428584286842878428884289842908429184292842938429484295842968429784298842998430084301843028430384304843058430684307843088430984310843118431284313843148431584316843178431884319843208432184322843238432484325843268432784328843298433084331843328433384334843358433684337843388433984340843418434284343843448434584346843478434884349843508435184352843538435484355843568435784358843598436084361843628436384364843658436684367843688436984370843718437284373843748437584376843778437884379843808438184382843838438484385843868438784388843898439084391843928439384394843958439684397843988439984400844018440284403844048440584406844078440884409844108441184412844138441484415844168441784418844198442084421844228442384424844258442684427844288442984430844318443284433844348443584436844378443884439844408444184442844438444484445844468444784448844498445084451844528445384454844558445684457844588445984460844618446284463844648446584466844678446884469844708447184472844738447484475844768447784478844798448084481844828448384484844858448684487844888448984490844918449284493844948449584496844978449884499845008450184502845038450484505845068450784508845098451084511845128451384514845158451684517845188451984520845218452284523845248452584526845278452884529845308453184532845338453484535845368453784538845398454084541845428454384544845458454684547845488454984550845518455284553845548455584556845578455884559845608456184562845638456484565845668456784568845698457084571845728457384574845758457684577845788457984580845818458284583845848458584586845878458884589845908459184592845938459484595845968459784598845998460084601846028460384604846058460684607846088460984610846118461284613846148461584616846178461884619846208462184622846238462484625846268462784628846298463084631846328463384634846358463684637846388463984640846418464284643846448464584646846478464884649846508465184652846538465484655846568465784658846598466084661846628466384664846658466684667846688466984670846718467284673846748467584676846778467884679846808468184682846838468484685846868468784688846898469084691846928469384694846958469684697846988469984700847018470284703847048470584706847078470884709847108471184712847138471484715847168471784718847198472084721847228472384724847258472684727847288472984730847318473284733847348473584736847378473884739847408474184742847438474484745847468474784748847498475084751847528475384754847558475684757847588475984760847618476284763847648476584766847678476884769847708477184772847738477484775847768477784778847798478084781847828478384784847858478684787847888478984790847918479284793847948479584796847978479884799848008480184802848038480484805848068480784808848098481084811848128481384814848158481684817848188481984820848218482284823848248482584826848278482884829848308483184832848338483484835848368483784838848398484084841848428484384844848458484684847848488484984850848518485284853848548485584856848578485884859848608486184862848638486484865848668486784868848698487084871848728487384874848758487684877848788487984880848818488284883848848488584886848878488884889848908489184892848938489484895848968489784898848998490084901849028490384904849058490684907849088490984910849118491284913849148491584916849178491884919849208492184922849238492484925849268492784928849298493084931849328493384934849358493684937849388493984940849418494284943849448494584946849478494884949849508495184952849538495484955849568495784958849598496084961849628496384964849658496684967849688496984970849718497284973849748497584976849778497884979849808498184982849838498484985849868498784988849898499084991849928499384994849958499684997849988499985000850018500285003850048500585006850078500885009850108501185012850138501485015850168501785018850198502085021850228502385024850258502685027850288502985030850318503285033850348503585036850378503885039850408504185042850438504485045850468504785048850498505085051850528505385054850558505685057850588505985060850618506285063850648506585066850678506885069850708507185072850738507485075850768507785078850798508085081850828508385084850858508685087850888508985090850918509285093850948509585096850978509885099851008510185102851038510485105851068510785108851098511085111851128511385114851158511685117851188511985120851218512285123851248512585126851278512885129851308513185132851338513485135851368513785138851398514085141851428514385144851458514685147851488514985150851518515285153851548515585156851578515885159851608516185162851638516485165851668516785168851698517085171851728517385174851758517685177851788517985180851818518285183851848518585186851878518885189851908519185192851938519485195851968519785198851998520085201852028520385204852058520685207852088520985210852118521285213852148521585216852178521885219852208522185222852238522485225852268522785228852298523085231852328523385234852358523685237852388523985240852418524285243852448524585246852478524885249852508525185252852538525485255852568525785258852598526085261852628526385264852658526685267852688526985270852718527285273852748527585276852778527885279852808528185282852838528485285852868528785288852898529085291852928529385294852958529685297852988529985300853018530285303853048530585306853078530885309853108531185312853138531485315853168531785318853198532085321853228532385324853258532685327853288532985330853318533285333853348533585336853378533885339853408534185342853438534485345853468534785348853498535085351853528535385354853558535685357853588535985360853618536285363853648536585366853678536885369853708537185372853738537485375853768537785378853798538085381853828538385384853858538685387853888538985390853918539285393853948539585396853978539885399854008540185402854038540485405854068540785408854098541085411854128541385414854158541685417854188541985420854218542285423854248542585426854278542885429854308543185432854338543485435854368543785438854398544085441854428544385444854458544685447854488544985450854518545285453854548545585456854578545885459854608546185462854638546485465854668546785468854698547085471854728547385474854758547685477854788547985480854818548285483854848548585486854878548885489854908549185492854938549485495854968549785498854998550085501855028550385504855058550685507855088550985510855118551285513855148551585516855178551885519855208552185522855238552485525855268552785528855298553085531855328553385534855358553685537855388553985540855418554285543855448554585546855478554885549855508555185552855538555485555855568555785558855598556085561855628556385564855658556685567855688556985570855718557285573855748557585576855778557885579855808558185582855838558485585855868558785588855898559085591855928559385594855958559685597855988559985600856018560285603856048560585606856078560885609856108561185612856138561485615856168561785618856198562085621856228562385624856258562685627856288562985630856318563285633856348563585636856378563885639856408564185642856438564485645856468564785648856498565085651856528565385654856558565685657856588565985660856618566285663856648566585666856678566885669856708567185672856738567485675856768567785678856798568085681856828568385684856858568685687856888568985690856918569285693856948569585696856978569885699857008570185702857038570485705857068570785708857098571085711857128571385714857158571685717857188571985720857218572285723857248572585726857278572885729857308573185732857338573485735857368573785738857398574085741857428574385744857458574685747857488574985750857518575285753857548575585756857578575885759857608576185762857638576485765857668576785768857698577085771857728577385774857758577685777857788577985780857818578285783857848578585786857878578885789857908579185792857938579485795857968579785798857998580085801858028580385804858058580685807858088580985810858118581285813858148581585816858178581885819858208582185822858238582485825858268582785828858298583085831858328583385834858358583685837858388583985840858418584285843858448584585846858478584885849858508585185852858538585485855858568585785858858598586085861858628586385864858658586685867858688586985870858718587285873858748587585876858778587885879858808588185882858838588485885858868588785888858898589085891858928589385894858958589685897858988589985900859018590285903859048590585906859078590885909859108591185912859138591485915859168591785918859198592085921859228592385924859258592685927859288592985930859318593285933859348593585936859378593885939859408594185942859438594485945859468594785948859498595085951859528595385954859558595685957859588595985960859618596285963859648596585966859678596885969859708597185972859738597485975859768597785978859798598085981859828598385984859858598685987859888598985990859918599285993859948599585996859978599885999860008600186002860038600486005860068600786008860098601086011860128601386014860158601686017860188601986020860218602286023860248602586026860278602886029860308603186032860338603486035860368603786038860398604086041860428604386044860458604686047860488604986050860518605286053860548605586056860578605886059860608606186062860638606486065860668606786068860698607086071860728607386074860758607686077860788607986080860818608286083860848608586086860878608886089860908609186092860938609486095860968609786098860998610086101861028610386104861058610686107861088610986110861118611286113861148611586116861178611886119861208612186122861238612486125861268612786128861298613086131861328613386134861358613686137861388613986140861418614286143861448614586146861478614886149861508615186152861538615486155861568615786158861598616086161861628616386164861658616686167861688616986170861718617286173861748617586176861778617886179861808618186182861838618486185861868618786188861898619086191861928619386194861958619686197861988619986200862018620286203862048620586206862078620886209862108621186212862138621486215862168621786218862198622086221862228622386224862258622686227862288622986230862318623286233862348623586236862378623886239862408624186242862438624486245862468624786248862498625086251862528625386254862558625686257862588625986260862618626286263862648626586266862678626886269862708627186272862738627486275862768627786278862798628086281862828628386284862858628686287862888628986290862918629286293862948629586296862978629886299863008630186302863038630486305863068630786308863098631086311863128631386314863158631686317863188631986320863218632286323863248632586326863278632886329863308633186332863338633486335863368633786338863398634086341863428634386344863458634686347863488634986350863518635286353863548635586356863578635886359863608636186362863638636486365863668636786368863698637086371863728637386374863758637686377863788637986380863818638286383863848638586386863878638886389863908639186392863938639486395863968639786398863998640086401864028640386404864058640686407864088640986410864118641286413864148641586416864178641886419864208642186422864238642486425864268642786428864298643086431864328643386434864358643686437864388643986440864418644286443864448644586446864478644886449864508645186452864538645486455864568645786458864598646086461864628646386464864658646686467864688646986470864718647286473864748647586476864778647886479864808648186482864838648486485864868648786488864898649086491864928649386494864958649686497864988649986500865018650286503865048650586506865078650886509865108651186512865138651486515865168651786518865198652086521865228652386524865258652686527865288652986530865318653286533865348653586536865378653886539865408654186542865438654486545865468654786548865498655086551865528655386554865558655686557865588655986560865618656286563865648656586566865678656886569865708657186572865738657486575865768657786578865798658086581865828658386584865858658686587865888658986590865918659286593865948659586596865978659886599866008660186602866038660486605866068660786608866098661086611866128661386614866158661686617866188661986620866218662286623
  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. // We recommend that you set MaxResults to a value between 5 and 1000 to limit
  14914. // the number of results returned. This paginates the output, which makes the
  14915. // list more manageable and returns the results faster. If the list of results
  14916. // exceeds your MaxResults value, then that number of results is returned along
  14917. // with a NextToken value that can be passed to a subsequent DescribeSpotInstanceRequests
  14918. // request to retrieve the remaining results.
  14919. //
  14920. // Spot Instance requests are deleted four hours after they are canceled and
  14921. // their instances are terminated.
  14922. //
  14923. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14924. // with awserr.Error's Code and Message methods to get detailed information about
  14925. // the error.
  14926. //
  14927. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14928. // API operation DescribeSpotInstanceRequests for usage and error information.
  14929. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequests
  14930. func (c *EC2) DescribeSpotInstanceRequests(input *DescribeSpotInstanceRequestsInput) (*DescribeSpotInstanceRequestsOutput, error) {
  14931. req, out := c.DescribeSpotInstanceRequestsRequest(input)
  14932. return out, req.Send()
  14933. }
  14934. // DescribeSpotInstanceRequestsWithContext is the same as DescribeSpotInstanceRequests with the addition of
  14935. // the ability to pass a context and additional request options.
  14936. //
  14937. // See DescribeSpotInstanceRequests for details on how to use this API operation.
  14938. //
  14939. // The context must be non-nil and will be used for request cancellation. If
  14940. // the context is nil a panic will occur. In the future the SDK may create
  14941. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14942. // for more information on using Contexts.
  14943. func (c *EC2) DescribeSpotInstanceRequestsWithContext(ctx aws.Context, input *DescribeSpotInstanceRequestsInput, opts ...request.Option) (*DescribeSpotInstanceRequestsOutput, error) {
  14944. req, out := c.DescribeSpotInstanceRequestsRequest(input)
  14945. req.SetContext(ctx)
  14946. req.ApplyOptions(opts...)
  14947. return out, req.Send()
  14948. }
  14949. const opDescribeSpotPriceHistory = "DescribeSpotPriceHistory"
  14950. // DescribeSpotPriceHistoryRequest generates a "aws/request.Request" representing the
  14951. // client's request for the DescribeSpotPriceHistory operation. The "output" return
  14952. // value will be populated with the request's response once the request completes
  14953. // successfully.
  14954. //
  14955. // Use "Send" method on the returned Request to send the API call to the service.
  14956. // the "output" return value is not valid until after Send returns without error.
  14957. //
  14958. // See DescribeSpotPriceHistory for more information on using the DescribeSpotPriceHistory
  14959. // API call, and error handling.
  14960. //
  14961. // This method is useful when you want to inject custom logic or configuration
  14962. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14963. //
  14964. //
  14965. // // Example sending a request using the DescribeSpotPriceHistoryRequest method.
  14966. // req, resp := client.DescribeSpotPriceHistoryRequest(params)
  14967. //
  14968. // err := req.Send()
  14969. // if err == nil { // resp is now filled
  14970. // fmt.Println(resp)
  14971. // }
  14972. //
  14973. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistory
  14974. func (c *EC2) DescribeSpotPriceHistoryRequest(input *DescribeSpotPriceHistoryInput) (req *request.Request, output *DescribeSpotPriceHistoryOutput) {
  14975. op := &request.Operation{
  14976. Name: opDescribeSpotPriceHistory,
  14977. HTTPMethod: "POST",
  14978. HTTPPath: "/",
  14979. Paginator: &request.Paginator{
  14980. InputTokens: []string{"NextToken"},
  14981. OutputTokens: []string{"NextToken"},
  14982. LimitToken: "MaxResults",
  14983. TruncationToken: "",
  14984. },
  14985. }
  14986. if input == nil {
  14987. input = &DescribeSpotPriceHistoryInput{}
  14988. }
  14989. output = &DescribeSpotPriceHistoryOutput{}
  14990. req = c.newRequest(op, input, output)
  14991. return
  14992. }
  14993. // DescribeSpotPriceHistory API operation for Amazon Elastic Compute Cloud.
  14994. //
  14995. // Describes the Spot price history. For more information, see Spot Instance
  14996. // Pricing History (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html)
  14997. // in the Amazon EC2 User Guide for Linux Instances.
  14998. //
  14999. // When you specify a start and end time, this operation returns the prices
  15000. // of the instance types within the time range that you specified and the time
  15001. // when the price changed. The price is valid within the time period that you
  15002. // specified; the response merely indicates the last time that the price changed.
  15003. //
  15004. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15005. // with awserr.Error's Code and Message methods to get detailed information about
  15006. // the error.
  15007. //
  15008. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15009. // API operation DescribeSpotPriceHistory for usage and error information.
  15010. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistory
  15011. func (c *EC2) DescribeSpotPriceHistory(input *DescribeSpotPriceHistoryInput) (*DescribeSpotPriceHistoryOutput, error) {
  15012. req, out := c.DescribeSpotPriceHistoryRequest(input)
  15013. return out, req.Send()
  15014. }
  15015. // DescribeSpotPriceHistoryWithContext is the same as DescribeSpotPriceHistory with the addition of
  15016. // the ability to pass a context and additional request options.
  15017. //
  15018. // See DescribeSpotPriceHistory for details on how to use this API operation.
  15019. //
  15020. // The context must be non-nil and will be used for request cancellation. If
  15021. // the context is nil a panic will occur. In the future the SDK may create
  15022. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15023. // for more information on using Contexts.
  15024. func (c *EC2) DescribeSpotPriceHistoryWithContext(ctx aws.Context, input *DescribeSpotPriceHistoryInput, opts ...request.Option) (*DescribeSpotPriceHistoryOutput, error) {
  15025. req, out := c.DescribeSpotPriceHistoryRequest(input)
  15026. req.SetContext(ctx)
  15027. req.ApplyOptions(opts...)
  15028. return out, req.Send()
  15029. }
  15030. // DescribeSpotPriceHistoryPages iterates over the pages of a DescribeSpotPriceHistory operation,
  15031. // calling the "fn" function with the response data for each page. To stop
  15032. // iterating, return false from the fn function.
  15033. //
  15034. // See DescribeSpotPriceHistory method for more information on how to use this operation.
  15035. //
  15036. // Note: This operation can generate multiple requests to a service.
  15037. //
  15038. // // Example iterating over at most 3 pages of a DescribeSpotPriceHistory operation.
  15039. // pageNum := 0
  15040. // err := client.DescribeSpotPriceHistoryPages(params,
  15041. // func(page *DescribeSpotPriceHistoryOutput, lastPage bool) bool {
  15042. // pageNum++
  15043. // fmt.Println(page)
  15044. // return pageNum <= 3
  15045. // })
  15046. //
  15047. func (c *EC2) DescribeSpotPriceHistoryPages(input *DescribeSpotPriceHistoryInput, fn func(*DescribeSpotPriceHistoryOutput, bool) bool) error {
  15048. return c.DescribeSpotPriceHistoryPagesWithContext(aws.BackgroundContext(), input, fn)
  15049. }
  15050. // DescribeSpotPriceHistoryPagesWithContext same as DescribeSpotPriceHistoryPages except
  15051. // it takes a Context and allows setting request options on the pages.
  15052. //
  15053. // The context must be non-nil and will be used for request cancellation. If
  15054. // the context is nil a panic will occur. In the future the SDK may create
  15055. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15056. // for more information on using Contexts.
  15057. func (c *EC2) DescribeSpotPriceHistoryPagesWithContext(ctx aws.Context, input *DescribeSpotPriceHistoryInput, fn func(*DescribeSpotPriceHistoryOutput, bool) bool, opts ...request.Option) error {
  15058. p := request.Pagination{
  15059. NewRequest: func() (*request.Request, error) {
  15060. var inCpy *DescribeSpotPriceHistoryInput
  15061. if input != nil {
  15062. tmp := *input
  15063. inCpy = &tmp
  15064. }
  15065. req, _ := c.DescribeSpotPriceHistoryRequest(inCpy)
  15066. req.SetContext(ctx)
  15067. req.ApplyOptions(opts...)
  15068. return req, nil
  15069. },
  15070. }
  15071. cont := true
  15072. for p.Next() && cont {
  15073. cont = fn(p.Page().(*DescribeSpotPriceHistoryOutput), !p.HasNextPage())
  15074. }
  15075. return p.Err()
  15076. }
  15077. const opDescribeStaleSecurityGroups = "DescribeStaleSecurityGroups"
  15078. // DescribeStaleSecurityGroupsRequest generates a "aws/request.Request" representing the
  15079. // client's request for the DescribeStaleSecurityGroups operation. The "output" return
  15080. // value will be populated with the request's response once the request completes
  15081. // successfully.
  15082. //
  15083. // Use "Send" method on the returned Request to send the API call to the service.
  15084. // the "output" return value is not valid until after Send returns without error.
  15085. //
  15086. // See DescribeStaleSecurityGroups for more information on using the DescribeStaleSecurityGroups
  15087. // API call, and error handling.
  15088. //
  15089. // This method is useful when you want to inject custom logic or configuration
  15090. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15091. //
  15092. //
  15093. // // Example sending a request using the DescribeStaleSecurityGroupsRequest method.
  15094. // req, resp := client.DescribeStaleSecurityGroupsRequest(params)
  15095. //
  15096. // err := req.Send()
  15097. // if err == nil { // resp is now filled
  15098. // fmt.Println(resp)
  15099. // }
  15100. //
  15101. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroups
  15102. func (c *EC2) DescribeStaleSecurityGroupsRequest(input *DescribeStaleSecurityGroupsInput) (req *request.Request, output *DescribeStaleSecurityGroupsOutput) {
  15103. op := &request.Operation{
  15104. Name: opDescribeStaleSecurityGroups,
  15105. HTTPMethod: "POST",
  15106. HTTPPath: "/",
  15107. }
  15108. if input == nil {
  15109. input = &DescribeStaleSecurityGroupsInput{}
  15110. }
  15111. output = &DescribeStaleSecurityGroupsOutput{}
  15112. req = c.newRequest(op, input, output)
  15113. return
  15114. }
  15115. // DescribeStaleSecurityGroups API operation for Amazon Elastic Compute Cloud.
  15116. //
  15117. // [EC2-VPC only] Describes the stale security group rules for security groups
  15118. // in a specified VPC. Rules are stale when they reference a deleted security
  15119. // group in a peer VPC, or a security group in a peer VPC for which the VPC
  15120. // peering connection has been deleted.
  15121. //
  15122. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15123. // with awserr.Error's Code and Message methods to get detailed information about
  15124. // the error.
  15125. //
  15126. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15127. // API operation DescribeStaleSecurityGroups for usage and error information.
  15128. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroups
  15129. func (c *EC2) DescribeStaleSecurityGroups(input *DescribeStaleSecurityGroupsInput) (*DescribeStaleSecurityGroupsOutput, error) {
  15130. req, out := c.DescribeStaleSecurityGroupsRequest(input)
  15131. return out, req.Send()
  15132. }
  15133. // DescribeStaleSecurityGroupsWithContext is the same as DescribeStaleSecurityGroups with the addition of
  15134. // the ability to pass a context and additional request options.
  15135. //
  15136. // See DescribeStaleSecurityGroups for details on how to use this API operation.
  15137. //
  15138. // The context must be non-nil and will be used for request cancellation. If
  15139. // the context is nil a panic will occur. In the future the SDK may create
  15140. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15141. // for more information on using Contexts.
  15142. func (c *EC2) DescribeStaleSecurityGroupsWithContext(ctx aws.Context, input *DescribeStaleSecurityGroupsInput, opts ...request.Option) (*DescribeStaleSecurityGroupsOutput, error) {
  15143. req, out := c.DescribeStaleSecurityGroupsRequest(input)
  15144. req.SetContext(ctx)
  15145. req.ApplyOptions(opts...)
  15146. return out, req.Send()
  15147. }
  15148. const opDescribeSubnets = "DescribeSubnets"
  15149. // DescribeSubnetsRequest generates a "aws/request.Request" representing the
  15150. // client's request for the DescribeSubnets operation. The "output" return
  15151. // value will be populated with the request's response once the request completes
  15152. // successfully.
  15153. //
  15154. // Use "Send" method on the returned Request to send the API call to the service.
  15155. // the "output" return value is not valid until after Send returns without error.
  15156. //
  15157. // See DescribeSubnets for more information on using the DescribeSubnets
  15158. // API call, and error handling.
  15159. //
  15160. // This method is useful when you want to inject custom logic or configuration
  15161. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15162. //
  15163. //
  15164. // // Example sending a request using the DescribeSubnetsRequest method.
  15165. // req, resp := client.DescribeSubnetsRequest(params)
  15166. //
  15167. // err := req.Send()
  15168. // if err == nil { // resp is now filled
  15169. // fmt.Println(resp)
  15170. // }
  15171. //
  15172. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets
  15173. func (c *EC2) DescribeSubnetsRequest(input *DescribeSubnetsInput) (req *request.Request, output *DescribeSubnetsOutput) {
  15174. op := &request.Operation{
  15175. Name: opDescribeSubnets,
  15176. HTTPMethod: "POST",
  15177. HTTPPath: "/",
  15178. }
  15179. if input == nil {
  15180. input = &DescribeSubnetsInput{}
  15181. }
  15182. output = &DescribeSubnetsOutput{}
  15183. req = c.newRequest(op, input, output)
  15184. return
  15185. }
  15186. // DescribeSubnets API operation for Amazon Elastic Compute Cloud.
  15187. //
  15188. // Describes one or more of your subnets.
  15189. //
  15190. // For more information, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  15191. // in the Amazon Virtual Private Cloud User Guide.
  15192. //
  15193. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15194. // with awserr.Error's Code and Message methods to get detailed information about
  15195. // the error.
  15196. //
  15197. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15198. // API operation DescribeSubnets for usage and error information.
  15199. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets
  15200. func (c *EC2) DescribeSubnets(input *DescribeSubnetsInput) (*DescribeSubnetsOutput, error) {
  15201. req, out := c.DescribeSubnetsRequest(input)
  15202. return out, req.Send()
  15203. }
  15204. // DescribeSubnetsWithContext is the same as DescribeSubnets with the addition of
  15205. // the ability to pass a context and additional request options.
  15206. //
  15207. // See DescribeSubnets for details on how to use this API operation.
  15208. //
  15209. // The context must be non-nil and will be used for request cancellation. If
  15210. // the context is nil a panic will occur. In the future the SDK may create
  15211. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15212. // for more information on using Contexts.
  15213. func (c *EC2) DescribeSubnetsWithContext(ctx aws.Context, input *DescribeSubnetsInput, opts ...request.Option) (*DescribeSubnetsOutput, error) {
  15214. req, out := c.DescribeSubnetsRequest(input)
  15215. req.SetContext(ctx)
  15216. req.ApplyOptions(opts...)
  15217. return out, req.Send()
  15218. }
  15219. const opDescribeTags = "DescribeTags"
  15220. // DescribeTagsRequest generates a "aws/request.Request" representing the
  15221. // client's request for the DescribeTags operation. The "output" return
  15222. // value will be populated with the request's response once the request completes
  15223. // successfully.
  15224. //
  15225. // Use "Send" method on the returned Request to send the API call to the service.
  15226. // the "output" return value is not valid until after Send returns without error.
  15227. //
  15228. // See DescribeTags for more information on using the DescribeTags
  15229. // API call, and error handling.
  15230. //
  15231. // This method is useful when you want to inject custom logic or configuration
  15232. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15233. //
  15234. //
  15235. // // Example sending a request using the DescribeTagsRequest method.
  15236. // req, resp := client.DescribeTagsRequest(params)
  15237. //
  15238. // err := req.Send()
  15239. // if err == nil { // resp is now filled
  15240. // fmt.Println(resp)
  15241. // }
  15242. //
  15243. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags
  15244. func (c *EC2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  15245. op := &request.Operation{
  15246. Name: opDescribeTags,
  15247. HTTPMethod: "POST",
  15248. HTTPPath: "/",
  15249. Paginator: &request.Paginator{
  15250. InputTokens: []string{"NextToken"},
  15251. OutputTokens: []string{"NextToken"},
  15252. LimitToken: "MaxResults",
  15253. TruncationToken: "",
  15254. },
  15255. }
  15256. if input == nil {
  15257. input = &DescribeTagsInput{}
  15258. }
  15259. output = &DescribeTagsOutput{}
  15260. req = c.newRequest(op, input, output)
  15261. return
  15262. }
  15263. // DescribeTags API operation for Amazon Elastic Compute Cloud.
  15264. //
  15265. // Describes one or more of the tags for your EC2 resources.
  15266. //
  15267. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  15268. // in the Amazon Elastic Compute Cloud User Guide.
  15269. //
  15270. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15271. // with awserr.Error's Code and Message methods to get detailed information about
  15272. // the error.
  15273. //
  15274. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15275. // API operation DescribeTags for usage and error information.
  15276. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags
  15277. func (c *EC2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  15278. req, out := c.DescribeTagsRequest(input)
  15279. return out, req.Send()
  15280. }
  15281. // DescribeTagsWithContext is the same as DescribeTags with the addition of
  15282. // the ability to pass a context and additional request options.
  15283. //
  15284. // See DescribeTags for details on how to use this API operation.
  15285. //
  15286. // The context must be non-nil and will be used for request cancellation. If
  15287. // the context is nil a panic will occur. In the future the SDK may create
  15288. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15289. // for more information on using Contexts.
  15290. func (c *EC2) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error) {
  15291. req, out := c.DescribeTagsRequest(input)
  15292. req.SetContext(ctx)
  15293. req.ApplyOptions(opts...)
  15294. return out, req.Send()
  15295. }
  15296. // DescribeTagsPages iterates over the pages of a DescribeTags operation,
  15297. // calling the "fn" function with the response data for each page. To stop
  15298. // iterating, return false from the fn function.
  15299. //
  15300. // See DescribeTags method for more information on how to use this operation.
  15301. //
  15302. // Note: This operation can generate multiple requests to a service.
  15303. //
  15304. // // Example iterating over at most 3 pages of a DescribeTags operation.
  15305. // pageNum := 0
  15306. // err := client.DescribeTagsPages(params,
  15307. // func(page *DescribeTagsOutput, lastPage bool) bool {
  15308. // pageNum++
  15309. // fmt.Println(page)
  15310. // return pageNum <= 3
  15311. // })
  15312. //
  15313. func (c *EC2) DescribeTagsPages(input *DescribeTagsInput, fn func(*DescribeTagsOutput, bool) bool) error {
  15314. return c.DescribeTagsPagesWithContext(aws.BackgroundContext(), input, fn)
  15315. }
  15316. // DescribeTagsPagesWithContext same as DescribeTagsPages except
  15317. // it takes a Context and allows setting request options on the pages.
  15318. //
  15319. // The context must be non-nil and will be used for request cancellation. If
  15320. // the context is nil a panic will occur. In the future the SDK may create
  15321. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15322. // for more information on using Contexts.
  15323. func (c *EC2) DescribeTagsPagesWithContext(ctx aws.Context, input *DescribeTagsInput, fn func(*DescribeTagsOutput, bool) bool, opts ...request.Option) error {
  15324. p := request.Pagination{
  15325. NewRequest: func() (*request.Request, error) {
  15326. var inCpy *DescribeTagsInput
  15327. if input != nil {
  15328. tmp := *input
  15329. inCpy = &tmp
  15330. }
  15331. req, _ := c.DescribeTagsRequest(inCpy)
  15332. req.SetContext(ctx)
  15333. req.ApplyOptions(opts...)
  15334. return req, nil
  15335. },
  15336. }
  15337. cont := true
  15338. for p.Next() && cont {
  15339. cont = fn(p.Page().(*DescribeTagsOutput), !p.HasNextPage())
  15340. }
  15341. return p.Err()
  15342. }
  15343. const opDescribeTransitGatewayAttachments = "DescribeTransitGatewayAttachments"
  15344. // DescribeTransitGatewayAttachmentsRequest generates a "aws/request.Request" representing the
  15345. // client's request for the DescribeTransitGatewayAttachments operation. The "output" return
  15346. // value will be populated with the request's response once the request completes
  15347. // successfully.
  15348. //
  15349. // Use "Send" method on the returned Request to send the API call to the service.
  15350. // the "output" return value is not valid until after Send returns without error.
  15351. //
  15352. // See DescribeTransitGatewayAttachments for more information on using the DescribeTransitGatewayAttachments
  15353. // API call, and error handling.
  15354. //
  15355. // This method is useful when you want to inject custom logic or configuration
  15356. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15357. //
  15358. //
  15359. // // Example sending a request using the DescribeTransitGatewayAttachmentsRequest method.
  15360. // req, resp := client.DescribeTransitGatewayAttachmentsRequest(params)
  15361. //
  15362. // err := req.Send()
  15363. // if err == nil { // resp is now filled
  15364. // fmt.Println(resp)
  15365. // }
  15366. //
  15367. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayAttachments
  15368. func (c *EC2) DescribeTransitGatewayAttachmentsRequest(input *DescribeTransitGatewayAttachmentsInput) (req *request.Request, output *DescribeTransitGatewayAttachmentsOutput) {
  15369. op := &request.Operation{
  15370. Name: opDescribeTransitGatewayAttachments,
  15371. HTTPMethod: "POST",
  15372. HTTPPath: "/",
  15373. }
  15374. if input == nil {
  15375. input = &DescribeTransitGatewayAttachmentsInput{}
  15376. }
  15377. output = &DescribeTransitGatewayAttachmentsOutput{}
  15378. req = c.newRequest(op, input, output)
  15379. return
  15380. }
  15381. // DescribeTransitGatewayAttachments API operation for Amazon Elastic Compute Cloud.
  15382. //
  15383. // Describes one or more attachments between resources and transit gateways.
  15384. // By default, all attachments are described. Alternatively, you can filter
  15385. // the results by attachment ID, attachment state, resource ID, or resource
  15386. // owner.
  15387. //
  15388. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15389. // with awserr.Error's Code and Message methods to get detailed information about
  15390. // the error.
  15391. //
  15392. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15393. // API operation DescribeTransitGatewayAttachments for usage and error information.
  15394. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayAttachments
  15395. func (c *EC2) DescribeTransitGatewayAttachments(input *DescribeTransitGatewayAttachmentsInput) (*DescribeTransitGatewayAttachmentsOutput, error) {
  15396. req, out := c.DescribeTransitGatewayAttachmentsRequest(input)
  15397. return out, req.Send()
  15398. }
  15399. // DescribeTransitGatewayAttachmentsWithContext is the same as DescribeTransitGatewayAttachments with the addition of
  15400. // the ability to pass a context and additional request options.
  15401. //
  15402. // See DescribeTransitGatewayAttachments for details on how to use this API operation.
  15403. //
  15404. // The context must be non-nil and will be used for request cancellation. If
  15405. // the context is nil a panic will occur. In the future the SDK may create
  15406. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15407. // for more information on using Contexts.
  15408. func (c *EC2) DescribeTransitGatewayAttachmentsWithContext(ctx aws.Context, input *DescribeTransitGatewayAttachmentsInput, opts ...request.Option) (*DescribeTransitGatewayAttachmentsOutput, error) {
  15409. req, out := c.DescribeTransitGatewayAttachmentsRequest(input)
  15410. req.SetContext(ctx)
  15411. req.ApplyOptions(opts...)
  15412. return out, req.Send()
  15413. }
  15414. const opDescribeTransitGatewayRouteTables = "DescribeTransitGatewayRouteTables"
  15415. // DescribeTransitGatewayRouteTablesRequest generates a "aws/request.Request" representing the
  15416. // client's request for the DescribeTransitGatewayRouteTables operation. The "output" return
  15417. // value will be populated with the request's response once the request completes
  15418. // successfully.
  15419. //
  15420. // Use "Send" method on the returned Request to send the API call to the service.
  15421. // the "output" return value is not valid until after Send returns without error.
  15422. //
  15423. // See DescribeTransitGatewayRouteTables for more information on using the DescribeTransitGatewayRouteTables
  15424. // API call, and error handling.
  15425. //
  15426. // This method is useful when you want to inject custom logic or configuration
  15427. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15428. //
  15429. //
  15430. // // Example sending a request using the DescribeTransitGatewayRouteTablesRequest method.
  15431. // req, resp := client.DescribeTransitGatewayRouteTablesRequest(params)
  15432. //
  15433. // err := req.Send()
  15434. // if err == nil { // resp is now filled
  15435. // fmt.Println(resp)
  15436. // }
  15437. //
  15438. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayRouteTables
  15439. func (c *EC2) DescribeTransitGatewayRouteTablesRequest(input *DescribeTransitGatewayRouteTablesInput) (req *request.Request, output *DescribeTransitGatewayRouteTablesOutput) {
  15440. op := &request.Operation{
  15441. Name: opDescribeTransitGatewayRouteTables,
  15442. HTTPMethod: "POST",
  15443. HTTPPath: "/",
  15444. }
  15445. if input == nil {
  15446. input = &DescribeTransitGatewayRouteTablesInput{}
  15447. }
  15448. output = &DescribeTransitGatewayRouteTablesOutput{}
  15449. req = c.newRequest(op, input, output)
  15450. return
  15451. }
  15452. // DescribeTransitGatewayRouteTables API operation for Amazon Elastic Compute Cloud.
  15453. //
  15454. // Describes one or more transit gateway route tables. By default, all transit
  15455. // gateway route tables are described. Alternatively, you can filter the results.
  15456. //
  15457. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15458. // with awserr.Error's Code and Message methods to get detailed information about
  15459. // the error.
  15460. //
  15461. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15462. // API operation DescribeTransitGatewayRouteTables for usage and error information.
  15463. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayRouteTables
  15464. func (c *EC2) DescribeTransitGatewayRouteTables(input *DescribeTransitGatewayRouteTablesInput) (*DescribeTransitGatewayRouteTablesOutput, error) {
  15465. req, out := c.DescribeTransitGatewayRouteTablesRequest(input)
  15466. return out, req.Send()
  15467. }
  15468. // DescribeTransitGatewayRouteTablesWithContext is the same as DescribeTransitGatewayRouteTables with the addition of
  15469. // the ability to pass a context and additional request options.
  15470. //
  15471. // See DescribeTransitGatewayRouteTables for details on how to use this API operation.
  15472. //
  15473. // The context must be non-nil and will be used for request cancellation. If
  15474. // the context is nil a panic will occur. In the future the SDK may create
  15475. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15476. // for more information on using Contexts.
  15477. func (c *EC2) DescribeTransitGatewayRouteTablesWithContext(ctx aws.Context, input *DescribeTransitGatewayRouteTablesInput, opts ...request.Option) (*DescribeTransitGatewayRouteTablesOutput, error) {
  15478. req, out := c.DescribeTransitGatewayRouteTablesRequest(input)
  15479. req.SetContext(ctx)
  15480. req.ApplyOptions(opts...)
  15481. return out, req.Send()
  15482. }
  15483. const opDescribeTransitGatewayVpcAttachments = "DescribeTransitGatewayVpcAttachments"
  15484. // DescribeTransitGatewayVpcAttachmentsRequest generates a "aws/request.Request" representing the
  15485. // client's request for the DescribeTransitGatewayVpcAttachments operation. The "output" return
  15486. // value will be populated with the request's response once the request completes
  15487. // successfully.
  15488. //
  15489. // Use "Send" method on the returned Request to send the API call to the service.
  15490. // the "output" return value is not valid until after Send returns without error.
  15491. //
  15492. // See DescribeTransitGatewayVpcAttachments for more information on using the DescribeTransitGatewayVpcAttachments
  15493. // API call, and error handling.
  15494. //
  15495. // This method is useful when you want to inject custom logic or configuration
  15496. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15497. //
  15498. //
  15499. // // Example sending a request using the DescribeTransitGatewayVpcAttachmentsRequest method.
  15500. // req, resp := client.DescribeTransitGatewayVpcAttachmentsRequest(params)
  15501. //
  15502. // err := req.Send()
  15503. // if err == nil { // resp is now filled
  15504. // fmt.Println(resp)
  15505. // }
  15506. //
  15507. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayVpcAttachments
  15508. func (c *EC2) DescribeTransitGatewayVpcAttachmentsRequest(input *DescribeTransitGatewayVpcAttachmentsInput) (req *request.Request, output *DescribeTransitGatewayVpcAttachmentsOutput) {
  15509. op := &request.Operation{
  15510. Name: opDescribeTransitGatewayVpcAttachments,
  15511. HTTPMethod: "POST",
  15512. HTTPPath: "/",
  15513. }
  15514. if input == nil {
  15515. input = &DescribeTransitGatewayVpcAttachmentsInput{}
  15516. }
  15517. output = &DescribeTransitGatewayVpcAttachmentsOutput{}
  15518. req = c.newRequest(op, input, output)
  15519. return
  15520. }
  15521. // DescribeTransitGatewayVpcAttachments API operation for Amazon Elastic Compute Cloud.
  15522. //
  15523. // Describes one or more VPC attachments. By default, all VPC attachments are
  15524. // described. Alternatively, you can filter the results.
  15525. //
  15526. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15527. // with awserr.Error's Code and Message methods to get detailed information about
  15528. // the error.
  15529. //
  15530. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15531. // API operation DescribeTransitGatewayVpcAttachments for usage and error information.
  15532. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayVpcAttachments
  15533. func (c *EC2) DescribeTransitGatewayVpcAttachments(input *DescribeTransitGatewayVpcAttachmentsInput) (*DescribeTransitGatewayVpcAttachmentsOutput, error) {
  15534. req, out := c.DescribeTransitGatewayVpcAttachmentsRequest(input)
  15535. return out, req.Send()
  15536. }
  15537. // DescribeTransitGatewayVpcAttachmentsWithContext is the same as DescribeTransitGatewayVpcAttachments with the addition of
  15538. // the ability to pass a context and additional request options.
  15539. //
  15540. // See DescribeTransitGatewayVpcAttachments for details on how to use this API operation.
  15541. //
  15542. // The context must be non-nil and will be used for request cancellation. If
  15543. // the context is nil a panic will occur. In the future the SDK may create
  15544. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15545. // for more information on using Contexts.
  15546. func (c *EC2) DescribeTransitGatewayVpcAttachmentsWithContext(ctx aws.Context, input *DescribeTransitGatewayVpcAttachmentsInput, opts ...request.Option) (*DescribeTransitGatewayVpcAttachmentsOutput, error) {
  15547. req, out := c.DescribeTransitGatewayVpcAttachmentsRequest(input)
  15548. req.SetContext(ctx)
  15549. req.ApplyOptions(opts...)
  15550. return out, req.Send()
  15551. }
  15552. const opDescribeTransitGateways = "DescribeTransitGateways"
  15553. // DescribeTransitGatewaysRequest generates a "aws/request.Request" representing the
  15554. // client's request for the DescribeTransitGateways operation. The "output" return
  15555. // value will be populated with the request's response once the request completes
  15556. // successfully.
  15557. //
  15558. // Use "Send" method on the returned Request to send the API call to the service.
  15559. // the "output" return value is not valid until after Send returns without error.
  15560. //
  15561. // See DescribeTransitGateways for more information on using the DescribeTransitGateways
  15562. // API call, and error handling.
  15563. //
  15564. // This method is useful when you want to inject custom logic or configuration
  15565. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15566. //
  15567. //
  15568. // // Example sending a request using the DescribeTransitGatewaysRequest method.
  15569. // req, resp := client.DescribeTransitGatewaysRequest(params)
  15570. //
  15571. // err := req.Send()
  15572. // if err == nil { // resp is now filled
  15573. // fmt.Println(resp)
  15574. // }
  15575. //
  15576. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGateways
  15577. func (c *EC2) DescribeTransitGatewaysRequest(input *DescribeTransitGatewaysInput) (req *request.Request, output *DescribeTransitGatewaysOutput) {
  15578. op := &request.Operation{
  15579. Name: opDescribeTransitGateways,
  15580. HTTPMethod: "POST",
  15581. HTTPPath: "/",
  15582. }
  15583. if input == nil {
  15584. input = &DescribeTransitGatewaysInput{}
  15585. }
  15586. output = &DescribeTransitGatewaysOutput{}
  15587. req = c.newRequest(op, input, output)
  15588. return
  15589. }
  15590. // DescribeTransitGateways API operation for Amazon Elastic Compute Cloud.
  15591. //
  15592. // Describes one or more transit gateways. By default, all transit gateways
  15593. // are described. Alternatively, you can filter the results.
  15594. //
  15595. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15596. // with awserr.Error's Code and Message methods to get detailed information about
  15597. // the error.
  15598. //
  15599. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15600. // API operation DescribeTransitGateways for usage and error information.
  15601. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGateways
  15602. func (c *EC2) DescribeTransitGateways(input *DescribeTransitGatewaysInput) (*DescribeTransitGatewaysOutput, error) {
  15603. req, out := c.DescribeTransitGatewaysRequest(input)
  15604. return out, req.Send()
  15605. }
  15606. // DescribeTransitGatewaysWithContext is the same as DescribeTransitGateways with the addition of
  15607. // the ability to pass a context and additional request options.
  15608. //
  15609. // See DescribeTransitGateways for details on how to use this API operation.
  15610. //
  15611. // The context must be non-nil and will be used for request cancellation. If
  15612. // the context is nil a panic will occur. In the future the SDK may create
  15613. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15614. // for more information on using Contexts.
  15615. func (c *EC2) DescribeTransitGatewaysWithContext(ctx aws.Context, input *DescribeTransitGatewaysInput, opts ...request.Option) (*DescribeTransitGatewaysOutput, error) {
  15616. req, out := c.DescribeTransitGatewaysRequest(input)
  15617. req.SetContext(ctx)
  15618. req.ApplyOptions(opts...)
  15619. return out, req.Send()
  15620. }
  15621. const opDescribeVolumeAttribute = "DescribeVolumeAttribute"
  15622. // DescribeVolumeAttributeRequest generates a "aws/request.Request" representing the
  15623. // client's request for the DescribeVolumeAttribute operation. The "output" return
  15624. // value will be populated with the request's response once the request completes
  15625. // successfully.
  15626. //
  15627. // Use "Send" method on the returned Request to send the API call to the service.
  15628. // the "output" return value is not valid until after Send returns without error.
  15629. //
  15630. // See DescribeVolumeAttribute for more information on using the DescribeVolumeAttribute
  15631. // API call, and error handling.
  15632. //
  15633. // This method is useful when you want to inject custom logic or configuration
  15634. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15635. //
  15636. //
  15637. // // Example sending a request using the DescribeVolumeAttributeRequest method.
  15638. // req, resp := client.DescribeVolumeAttributeRequest(params)
  15639. //
  15640. // err := req.Send()
  15641. // if err == nil { // resp is now filled
  15642. // fmt.Println(resp)
  15643. // }
  15644. //
  15645. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttribute
  15646. func (c *EC2) DescribeVolumeAttributeRequest(input *DescribeVolumeAttributeInput) (req *request.Request, output *DescribeVolumeAttributeOutput) {
  15647. op := &request.Operation{
  15648. Name: opDescribeVolumeAttribute,
  15649. HTTPMethod: "POST",
  15650. HTTPPath: "/",
  15651. }
  15652. if input == nil {
  15653. input = &DescribeVolumeAttributeInput{}
  15654. }
  15655. output = &DescribeVolumeAttributeOutput{}
  15656. req = c.newRequest(op, input, output)
  15657. return
  15658. }
  15659. // DescribeVolumeAttribute API operation for Amazon Elastic Compute Cloud.
  15660. //
  15661. // Describes the specified attribute of the specified volume. You can specify
  15662. // only one attribute at a time.
  15663. //
  15664. // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html)
  15665. // in the Amazon Elastic Compute Cloud User Guide.
  15666. //
  15667. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15668. // with awserr.Error's Code and Message methods to get detailed information about
  15669. // the error.
  15670. //
  15671. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15672. // API operation DescribeVolumeAttribute for usage and error information.
  15673. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttribute
  15674. func (c *EC2) DescribeVolumeAttribute(input *DescribeVolumeAttributeInput) (*DescribeVolumeAttributeOutput, error) {
  15675. req, out := c.DescribeVolumeAttributeRequest(input)
  15676. return out, req.Send()
  15677. }
  15678. // DescribeVolumeAttributeWithContext is the same as DescribeVolumeAttribute with the addition of
  15679. // the ability to pass a context and additional request options.
  15680. //
  15681. // See DescribeVolumeAttribute for details on how to use this API operation.
  15682. //
  15683. // The context must be non-nil and will be used for request cancellation. If
  15684. // the context is nil a panic will occur. In the future the SDK may create
  15685. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15686. // for more information on using Contexts.
  15687. func (c *EC2) DescribeVolumeAttributeWithContext(ctx aws.Context, input *DescribeVolumeAttributeInput, opts ...request.Option) (*DescribeVolumeAttributeOutput, error) {
  15688. req, out := c.DescribeVolumeAttributeRequest(input)
  15689. req.SetContext(ctx)
  15690. req.ApplyOptions(opts...)
  15691. return out, req.Send()
  15692. }
  15693. const opDescribeVolumeStatus = "DescribeVolumeStatus"
  15694. // DescribeVolumeStatusRequest generates a "aws/request.Request" representing the
  15695. // client's request for the DescribeVolumeStatus operation. The "output" return
  15696. // value will be populated with the request's response once the request completes
  15697. // successfully.
  15698. //
  15699. // Use "Send" method on the returned Request to send the API call to the service.
  15700. // the "output" return value is not valid until after Send returns without error.
  15701. //
  15702. // See DescribeVolumeStatus for more information on using the DescribeVolumeStatus
  15703. // API call, and error handling.
  15704. //
  15705. // This method is useful when you want to inject custom logic or configuration
  15706. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15707. //
  15708. //
  15709. // // Example sending a request using the DescribeVolumeStatusRequest method.
  15710. // req, resp := client.DescribeVolumeStatusRequest(params)
  15711. //
  15712. // err := req.Send()
  15713. // if err == nil { // resp is now filled
  15714. // fmt.Println(resp)
  15715. // }
  15716. //
  15717. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus
  15718. func (c *EC2) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) (req *request.Request, output *DescribeVolumeStatusOutput) {
  15719. op := &request.Operation{
  15720. Name: opDescribeVolumeStatus,
  15721. HTTPMethod: "POST",
  15722. HTTPPath: "/",
  15723. Paginator: &request.Paginator{
  15724. InputTokens: []string{"NextToken"},
  15725. OutputTokens: []string{"NextToken"},
  15726. LimitToken: "MaxResults",
  15727. TruncationToken: "",
  15728. },
  15729. }
  15730. if input == nil {
  15731. input = &DescribeVolumeStatusInput{}
  15732. }
  15733. output = &DescribeVolumeStatusOutput{}
  15734. req = c.newRequest(op, input, output)
  15735. return
  15736. }
  15737. // DescribeVolumeStatus API operation for Amazon Elastic Compute Cloud.
  15738. //
  15739. // Describes the status of the specified volumes. Volume status provides the
  15740. // result of the checks performed on your volumes to determine events that can
  15741. // impair the performance of your volumes. The performance of a volume can be
  15742. // affected if an issue occurs on the volume's underlying host. If the volume's
  15743. // underlying host experiences a power outage or system issue, after the system
  15744. // is restored, there could be data inconsistencies on the volume. Volume events
  15745. // notify you if this occurs. Volume actions notify you if any action needs
  15746. // to be taken in response to the event.
  15747. //
  15748. // The DescribeVolumeStatus operation provides the following information about
  15749. // the specified volumes:
  15750. //
  15751. // Status: Reflects the current status of the volume. The possible values are
  15752. // ok, impaired , warning, or insufficient-data. If all checks pass, the overall
  15753. // status of the volume is ok. If the check fails, the overall status is impaired.
  15754. // If the status is insufficient-data, then the checks may still be taking place
  15755. // on your volume at the time. We recommend that you retry the request. For
  15756. // more information about volume status, see Monitoring the Status of Your Volumes
  15757. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html)
  15758. // in the Amazon Elastic Compute Cloud User Guide.
  15759. //
  15760. // Events: Reflect the cause of a volume status and may require you to take
  15761. // action. For example, if your volume returns an impaired status, then the
  15762. // volume event might be potential-data-inconsistency. This means that your
  15763. // volume has been affected by an issue with the underlying host, has all I/O
  15764. // operations disabled, and may have inconsistent data.
  15765. //
  15766. // Actions: Reflect the actions you may have to take in response to an event.
  15767. // For example, if the status of the volume is impaired and the volume event
  15768. // shows potential-data-inconsistency, then the action shows enable-volume-io.
  15769. // This means that you may want to enable the I/O operations for the volume
  15770. // by calling the EnableVolumeIO action and then check the volume for data consistency.
  15771. //
  15772. // Volume status is based on the volume status checks, and does not reflect
  15773. // the volume state. Therefore, volume status does not indicate volumes in the
  15774. // error state (for example, when a volume is incapable of accepting I/O.)
  15775. //
  15776. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15777. // with awserr.Error's Code and Message methods to get detailed information about
  15778. // the error.
  15779. //
  15780. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15781. // API operation DescribeVolumeStatus for usage and error information.
  15782. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus
  15783. func (c *EC2) DescribeVolumeStatus(input *DescribeVolumeStatusInput) (*DescribeVolumeStatusOutput, error) {
  15784. req, out := c.DescribeVolumeStatusRequest(input)
  15785. return out, req.Send()
  15786. }
  15787. // DescribeVolumeStatusWithContext is the same as DescribeVolumeStatus with the addition of
  15788. // the ability to pass a context and additional request options.
  15789. //
  15790. // See DescribeVolumeStatus for details on how to use this API operation.
  15791. //
  15792. // The context must be non-nil and will be used for request cancellation. If
  15793. // the context is nil a panic will occur. In the future the SDK may create
  15794. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15795. // for more information on using Contexts.
  15796. func (c *EC2) DescribeVolumeStatusWithContext(ctx aws.Context, input *DescribeVolumeStatusInput, opts ...request.Option) (*DescribeVolumeStatusOutput, error) {
  15797. req, out := c.DescribeVolumeStatusRequest(input)
  15798. req.SetContext(ctx)
  15799. req.ApplyOptions(opts...)
  15800. return out, req.Send()
  15801. }
  15802. // DescribeVolumeStatusPages iterates over the pages of a DescribeVolumeStatus operation,
  15803. // calling the "fn" function with the response data for each page. To stop
  15804. // iterating, return false from the fn function.
  15805. //
  15806. // See DescribeVolumeStatus method for more information on how to use this operation.
  15807. //
  15808. // Note: This operation can generate multiple requests to a service.
  15809. //
  15810. // // Example iterating over at most 3 pages of a DescribeVolumeStatus operation.
  15811. // pageNum := 0
  15812. // err := client.DescribeVolumeStatusPages(params,
  15813. // func(page *DescribeVolumeStatusOutput, lastPage bool) bool {
  15814. // pageNum++
  15815. // fmt.Println(page)
  15816. // return pageNum <= 3
  15817. // })
  15818. //
  15819. func (c *EC2) DescribeVolumeStatusPages(input *DescribeVolumeStatusInput, fn func(*DescribeVolumeStatusOutput, bool) bool) error {
  15820. return c.DescribeVolumeStatusPagesWithContext(aws.BackgroundContext(), input, fn)
  15821. }
  15822. // DescribeVolumeStatusPagesWithContext same as DescribeVolumeStatusPages except
  15823. // it takes a Context and allows setting request options on the pages.
  15824. //
  15825. // The context must be non-nil and will be used for request cancellation. If
  15826. // the context is nil a panic will occur. In the future the SDK may create
  15827. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15828. // for more information on using Contexts.
  15829. func (c *EC2) DescribeVolumeStatusPagesWithContext(ctx aws.Context, input *DescribeVolumeStatusInput, fn func(*DescribeVolumeStatusOutput, bool) bool, opts ...request.Option) error {
  15830. p := request.Pagination{
  15831. NewRequest: func() (*request.Request, error) {
  15832. var inCpy *DescribeVolumeStatusInput
  15833. if input != nil {
  15834. tmp := *input
  15835. inCpy = &tmp
  15836. }
  15837. req, _ := c.DescribeVolumeStatusRequest(inCpy)
  15838. req.SetContext(ctx)
  15839. req.ApplyOptions(opts...)
  15840. return req, nil
  15841. },
  15842. }
  15843. cont := true
  15844. for p.Next() && cont {
  15845. cont = fn(p.Page().(*DescribeVolumeStatusOutput), !p.HasNextPage())
  15846. }
  15847. return p.Err()
  15848. }
  15849. const opDescribeVolumes = "DescribeVolumes"
  15850. // DescribeVolumesRequest generates a "aws/request.Request" representing the
  15851. // client's request for the DescribeVolumes operation. The "output" return
  15852. // value will be populated with the request's response once the request completes
  15853. // successfully.
  15854. //
  15855. // Use "Send" method on the returned Request to send the API call to the service.
  15856. // the "output" return value is not valid until after Send returns without error.
  15857. //
  15858. // See DescribeVolumes for more information on using the DescribeVolumes
  15859. // API call, and error handling.
  15860. //
  15861. // This method is useful when you want to inject custom logic or configuration
  15862. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15863. //
  15864. //
  15865. // // Example sending a request using the DescribeVolumesRequest method.
  15866. // req, resp := client.DescribeVolumesRequest(params)
  15867. //
  15868. // err := req.Send()
  15869. // if err == nil { // resp is now filled
  15870. // fmt.Println(resp)
  15871. // }
  15872. //
  15873. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes
  15874. func (c *EC2) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request.Request, output *DescribeVolumesOutput) {
  15875. op := &request.Operation{
  15876. Name: opDescribeVolumes,
  15877. HTTPMethod: "POST",
  15878. HTTPPath: "/",
  15879. Paginator: &request.Paginator{
  15880. InputTokens: []string{"NextToken"},
  15881. OutputTokens: []string{"NextToken"},
  15882. LimitToken: "MaxResults",
  15883. TruncationToken: "",
  15884. },
  15885. }
  15886. if input == nil {
  15887. input = &DescribeVolumesInput{}
  15888. }
  15889. output = &DescribeVolumesOutput{}
  15890. req = c.newRequest(op, input, output)
  15891. return
  15892. }
  15893. // DescribeVolumes API operation for Amazon Elastic Compute Cloud.
  15894. //
  15895. // Describes the specified EBS volumes.
  15896. //
  15897. // If you are describing a long list of volumes, you can paginate the output
  15898. // to make the list more manageable. The MaxResults parameter sets the maximum
  15899. // number of results returned in a single page. If the list of results exceeds
  15900. // your MaxResults value, then that number of results is returned along with
  15901. // a NextToken value that can be passed to a subsequent DescribeVolumes request
  15902. // to retrieve the remaining results.
  15903. //
  15904. // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html)
  15905. // in the Amazon Elastic Compute Cloud User Guide.
  15906. //
  15907. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15908. // with awserr.Error's Code and Message methods to get detailed information about
  15909. // the error.
  15910. //
  15911. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15912. // API operation DescribeVolumes for usage and error information.
  15913. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes
  15914. func (c *EC2) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) {
  15915. req, out := c.DescribeVolumesRequest(input)
  15916. return out, req.Send()
  15917. }
  15918. // DescribeVolumesWithContext is the same as DescribeVolumes with the addition of
  15919. // the ability to pass a context and additional request options.
  15920. //
  15921. // See DescribeVolumes for details on how to use this API operation.
  15922. //
  15923. // The context must be non-nil and will be used for request cancellation. If
  15924. // the context is nil a panic will occur. In the future the SDK may create
  15925. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15926. // for more information on using Contexts.
  15927. func (c *EC2) DescribeVolumesWithContext(ctx aws.Context, input *DescribeVolumesInput, opts ...request.Option) (*DescribeVolumesOutput, error) {
  15928. req, out := c.DescribeVolumesRequest(input)
  15929. req.SetContext(ctx)
  15930. req.ApplyOptions(opts...)
  15931. return out, req.Send()
  15932. }
  15933. // DescribeVolumesPages iterates over the pages of a DescribeVolumes operation,
  15934. // calling the "fn" function with the response data for each page. To stop
  15935. // iterating, return false from the fn function.
  15936. //
  15937. // See DescribeVolumes method for more information on how to use this operation.
  15938. //
  15939. // Note: This operation can generate multiple requests to a service.
  15940. //
  15941. // // Example iterating over at most 3 pages of a DescribeVolumes operation.
  15942. // pageNum := 0
  15943. // err := client.DescribeVolumesPages(params,
  15944. // func(page *DescribeVolumesOutput, lastPage bool) bool {
  15945. // pageNum++
  15946. // fmt.Println(page)
  15947. // return pageNum <= 3
  15948. // })
  15949. //
  15950. func (c *EC2) DescribeVolumesPages(input *DescribeVolumesInput, fn func(*DescribeVolumesOutput, bool) bool) error {
  15951. return c.DescribeVolumesPagesWithContext(aws.BackgroundContext(), input, fn)
  15952. }
  15953. // DescribeVolumesPagesWithContext same as DescribeVolumesPages except
  15954. // it takes a Context and allows setting request options on the pages.
  15955. //
  15956. // The context must be non-nil and will be used for request cancellation. If
  15957. // the context is nil a panic will occur. In the future the SDK may create
  15958. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15959. // for more information on using Contexts.
  15960. func (c *EC2) DescribeVolumesPagesWithContext(ctx aws.Context, input *DescribeVolumesInput, fn func(*DescribeVolumesOutput, bool) bool, opts ...request.Option) error {
  15961. p := request.Pagination{
  15962. NewRequest: func() (*request.Request, error) {
  15963. var inCpy *DescribeVolumesInput
  15964. if input != nil {
  15965. tmp := *input
  15966. inCpy = &tmp
  15967. }
  15968. req, _ := c.DescribeVolumesRequest(inCpy)
  15969. req.SetContext(ctx)
  15970. req.ApplyOptions(opts...)
  15971. return req, nil
  15972. },
  15973. }
  15974. cont := true
  15975. for p.Next() && cont {
  15976. cont = fn(p.Page().(*DescribeVolumesOutput), !p.HasNextPage())
  15977. }
  15978. return p.Err()
  15979. }
  15980. const opDescribeVolumesModifications = "DescribeVolumesModifications"
  15981. // DescribeVolumesModificationsRequest generates a "aws/request.Request" representing the
  15982. // client's request for the DescribeVolumesModifications operation. The "output" return
  15983. // value will be populated with the request's response once the request completes
  15984. // successfully.
  15985. //
  15986. // Use "Send" method on the returned Request to send the API call to the service.
  15987. // the "output" return value is not valid until after Send returns without error.
  15988. //
  15989. // See DescribeVolumesModifications for more information on using the DescribeVolumesModifications
  15990. // API call, and error handling.
  15991. //
  15992. // This method is useful when you want to inject custom logic or configuration
  15993. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15994. //
  15995. //
  15996. // // Example sending a request using the DescribeVolumesModificationsRequest method.
  15997. // req, resp := client.DescribeVolumesModificationsRequest(params)
  15998. //
  15999. // err := req.Send()
  16000. // if err == nil { // resp is now filled
  16001. // fmt.Println(resp)
  16002. // }
  16003. //
  16004. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModifications
  16005. func (c *EC2) DescribeVolumesModificationsRequest(input *DescribeVolumesModificationsInput) (req *request.Request, output *DescribeVolumesModificationsOutput) {
  16006. op := &request.Operation{
  16007. Name: opDescribeVolumesModifications,
  16008. HTTPMethod: "POST",
  16009. HTTPPath: "/",
  16010. }
  16011. if input == nil {
  16012. input = &DescribeVolumesModificationsInput{}
  16013. }
  16014. output = &DescribeVolumesModificationsOutput{}
  16015. req = c.newRequest(op, input, output)
  16016. return
  16017. }
  16018. // DescribeVolumesModifications API operation for Amazon Elastic Compute Cloud.
  16019. //
  16020. // Reports the current modification status of EBS volumes.
  16021. //
  16022. // Current-generation EBS volumes support modification of attributes including
  16023. // type, size, and (for io1 volumes) IOPS provisioning while either attached
  16024. // to or detached from an instance. Following an action from the API or the
  16025. // console to modify a volume, the status of the modification may be modifying,
  16026. // optimizing, completed, or failed. If a volume has never been modified, then
  16027. // certain elements of the returned VolumeModification objects are null.
  16028. //
  16029. // You can also use CloudWatch Events to check the status of a modification
  16030. // to an EBS volume. For information about CloudWatch Events, see the Amazon
  16031. // CloudWatch Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/).
  16032. // For more information, see Monitoring Volume Modifications" (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods)
  16033. // in the Amazon Elastic Compute Cloud User Guide.
  16034. //
  16035. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16036. // with awserr.Error's Code and Message methods to get detailed information about
  16037. // the error.
  16038. //
  16039. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16040. // API operation DescribeVolumesModifications for usage and error information.
  16041. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModifications
  16042. func (c *EC2) DescribeVolumesModifications(input *DescribeVolumesModificationsInput) (*DescribeVolumesModificationsOutput, error) {
  16043. req, out := c.DescribeVolumesModificationsRequest(input)
  16044. return out, req.Send()
  16045. }
  16046. // DescribeVolumesModificationsWithContext is the same as DescribeVolumesModifications with the addition of
  16047. // the ability to pass a context and additional request options.
  16048. //
  16049. // See DescribeVolumesModifications for details on how to use this API operation.
  16050. //
  16051. // The context must be non-nil and will be used for request cancellation. If
  16052. // the context is nil a panic will occur. In the future the SDK may create
  16053. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16054. // for more information on using Contexts.
  16055. func (c *EC2) DescribeVolumesModificationsWithContext(ctx aws.Context, input *DescribeVolumesModificationsInput, opts ...request.Option) (*DescribeVolumesModificationsOutput, error) {
  16056. req, out := c.DescribeVolumesModificationsRequest(input)
  16057. req.SetContext(ctx)
  16058. req.ApplyOptions(opts...)
  16059. return out, req.Send()
  16060. }
  16061. const opDescribeVpcAttribute = "DescribeVpcAttribute"
  16062. // DescribeVpcAttributeRequest generates a "aws/request.Request" representing the
  16063. // client's request for the DescribeVpcAttribute operation. The "output" return
  16064. // value will be populated with the request's response once the request completes
  16065. // successfully.
  16066. //
  16067. // Use "Send" method on the returned Request to send the API call to the service.
  16068. // the "output" return value is not valid until after Send returns without error.
  16069. //
  16070. // See DescribeVpcAttribute for more information on using the DescribeVpcAttribute
  16071. // API call, and error handling.
  16072. //
  16073. // This method is useful when you want to inject custom logic or configuration
  16074. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16075. //
  16076. //
  16077. // // Example sending a request using the DescribeVpcAttributeRequest method.
  16078. // req, resp := client.DescribeVpcAttributeRequest(params)
  16079. //
  16080. // err := req.Send()
  16081. // if err == nil { // resp is now filled
  16082. // fmt.Println(resp)
  16083. // }
  16084. //
  16085. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute
  16086. func (c *EC2) DescribeVpcAttributeRequest(input *DescribeVpcAttributeInput) (req *request.Request, output *DescribeVpcAttributeOutput) {
  16087. op := &request.Operation{
  16088. Name: opDescribeVpcAttribute,
  16089. HTTPMethod: "POST",
  16090. HTTPPath: "/",
  16091. }
  16092. if input == nil {
  16093. input = &DescribeVpcAttributeInput{}
  16094. }
  16095. output = &DescribeVpcAttributeOutput{}
  16096. req = c.newRequest(op, input, output)
  16097. return
  16098. }
  16099. // DescribeVpcAttribute API operation for Amazon Elastic Compute Cloud.
  16100. //
  16101. // Describes the specified attribute of the specified VPC. You can specify only
  16102. // one attribute at a time.
  16103. //
  16104. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16105. // with awserr.Error's Code and Message methods to get detailed information about
  16106. // the error.
  16107. //
  16108. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16109. // API operation DescribeVpcAttribute for usage and error information.
  16110. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute
  16111. func (c *EC2) DescribeVpcAttribute(input *DescribeVpcAttributeInput) (*DescribeVpcAttributeOutput, error) {
  16112. req, out := c.DescribeVpcAttributeRequest(input)
  16113. return out, req.Send()
  16114. }
  16115. // DescribeVpcAttributeWithContext is the same as DescribeVpcAttribute with the addition of
  16116. // the ability to pass a context and additional request options.
  16117. //
  16118. // See DescribeVpcAttribute for details on how to use this API operation.
  16119. //
  16120. // The context must be non-nil and will be used for request cancellation. If
  16121. // the context is nil a panic will occur. In the future the SDK may create
  16122. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16123. // for more information on using Contexts.
  16124. func (c *EC2) DescribeVpcAttributeWithContext(ctx aws.Context, input *DescribeVpcAttributeInput, opts ...request.Option) (*DescribeVpcAttributeOutput, error) {
  16125. req, out := c.DescribeVpcAttributeRequest(input)
  16126. req.SetContext(ctx)
  16127. req.ApplyOptions(opts...)
  16128. return out, req.Send()
  16129. }
  16130. const opDescribeVpcClassicLink = "DescribeVpcClassicLink"
  16131. // DescribeVpcClassicLinkRequest generates a "aws/request.Request" representing the
  16132. // client's request for the DescribeVpcClassicLink operation. The "output" return
  16133. // value will be populated with the request's response once the request completes
  16134. // successfully.
  16135. //
  16136. // Use "Send" method on the returned Request to send the API call to the service.
  16137. // the "output" return value is not valid until after Send returns without error.
  16138. //
  16139. // See DescribeVpcClassicLink for more information on using the DescribeVpcClassicLink
  16140. // API call, and error handling.
  16141. //
  16142. // This method is useful when you want to inject custom logic or configuration
  16143. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16144. //
  16145. //
  16146. // // Example sending a request using the DescribeVpcClassicLinkRequest method.
  16147. // req, resp := client.DescribeVpcClassicLinkRequest(params)
  16148. //
  16149. // err := req.Send()
  16150. // if err == nil { // resp is now filled
  16151. // fmt.Println(resp)
  16152. // }
  16153. //
  16154. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLink
  16155. func (c *EC2) DescribeVpcClassicLinkRequest(input *DescribeVpcClassicLinkInput) (req *request.Request, output *DescribeVpcClassicLinkOutput) {
  16156. op := &request.Operation{
  16157. Name: opDescribeVpcClassicLink,
  16158. HTTPMethod: "POST",
  16159. HTTPPath: "/",
  16160. }
  16161. if input == nil {
  16162. input = &DescribeVpcClassicLinkInput{}
  16163. }
  16164. output = &DescribeVpcClassicLinkOutput{}
  16165. req = c.newRequest(op, input, output)
  16166. return
  16167. }
  16168. // DescribeVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  16169. //
  16170. // Describes the ClassicLink status of one or more VPCs.
  16171. //
  16172. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16173. // with awserr.Error's Code and Message methods to get detailed information about
  16174. // the error.
  16175. //
  16176. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16177. // API operation DescribeVpcClassicLink for usage and error information.
  16178. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLink
  16179. func (c *EC2) DescribeVpcClassicLink(input *DescribeVpcClassicLinkInput) (*DescribeVpcClassicLinkOutput, error) {
  16180. req, out := c.DescribeVpcClassicLinkRequest(input)
  16181. return out, req.Send()
  16182. }
  16183. // DescribeVpcClassicLinkWithContext is the same as DescribeVpcClassicLink with the addition of
  16184. // the ability to pass a context and additional request options.
  16185. //
  16186. // See DescribeVpcClassicLink for details on how to use this API operation.
  16187. //
  16188. // The context must be non-nil and will be used for request cancellation. If
  16189. // the context is nil a panic will occur. In the future the SDK may create
  16190. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16191. // for more information on using Contexts.
  16192. func (c *EC2) DescribeVpcClassicLinkWithContext(ctx aws.Context, input *DescribeVpcClassicLinkInput, opts ...request.Option) (*DescribeVpcClassicLinkOutput, error) {
  16193. req, out := c.DescribeVpcClassicLinkRequest(input)
  16194. req.SetContext(ctx)
  16195. req.ApplyOptions(opts...)
  16196. return out, req.Send()
  16197. }
  16198. const opDescribeVpcClassicLinkDnsSupport = "DescribeVpcClassicLinkDnsSupport"
  16199. // DescribeVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  16200. // client's request for the DescribeVpcClassicLinkDnsSupport operation. The "output" return
  16201. // value will be populated with the request's response once the request completes
  16202. // successfully.
  16203. //
  16204. // Use "Send" method on the returned Request to send the API call to the service.
  16205. // the "output" return value is not valid until after Send returns without error.
  16206. //
  16207. // See DescribeVpcClassicLinkDnsSupport for more information on using the DescribeVpcClassicLinkDnsSupport
  16208. // API call, and error handling.
  16209. //
  16210. // This method is useful when you want to inject custom logic or configuration
  16211. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16212. //
  16213. //
  16214. // // Example sending a request using the DescribeVpcClassicLinkDnsSupportRequest method.
  16215. // req, resp := client.DescribeVpcClassicLinkDnsSupportRequest(params)
  16216. //
  16217. // err := req.Send()
  16218. // if err == nil { // resp is now filled
  16219. // fmt.Println(resp)
  16220. // }
  16221. //
  16222. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupport
  16223. func (c *EC2) DescribeVpcClassicLinkDnsSupportRequest(input *DescribeVpcClassicLinkDnsSupportInput) (req *request.Request, output *DescribeVpcClassicLinkDnsSupportOutput) {
  16224. op := &request.Operation{
  16225. Name: opDescribeVpcClassicLinkDnsSupport,
  16226. HTTPMethod: "POST",
  16227. HTTPPath: "/",
  16228. }
  16229. if input == nil {
  16230. input = &DescribeVpcClassicLinkDnsSupportInput{}
  16231. }
  16232. output = &DescribeVpcClassicLinkDnsSupportOutput{}
  16233. req = c.newRequest(op, input, output)
  16234. return
  16235. }
  16236. // DescribeVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  16237. //
  16238. // Describes the ClassicLink DNS support status of one or more VPCs. If enabled,
  16239. // the DNS hostname of a linked EC2-Classic instance resolves to its private
  16240. // IP address when addressed from an instance in the VPC to which it's linked.
  16241. // Similarly, the DNS hostname of an instance in a VPC resolves to its private
  16242. // IP address when addressed from a linked EC2-Classic instance. For more information,
  16243. // see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  16244. // in the Amazon Elastic Compute Cloud User Guide.
  16245. //
  16246. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16247. // with awserr.Error's Code and Message methods to get detailed information about
  16248. // the error.
  16249. //
  16250. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16251. // API operation DescribeVpcClassicLinkDnsSupport for usage and error information.
  16252. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupport
  16253. func (c *EC2) DescribeVpcClassicLinkDnsSupport(input *DescribeVpcClassicLinkDnsSupportInput) (*DescribeVpcClassicLinkDnsSupportOutput, error) {
  16254. req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input)
  16255. return out, req.Send()
  16256. }
  16257. // DescribeVpcClassicLinkDnsSupportWithContext is the same as DescribeVpcClassicLinkDnsSupport with the addition of
  16258. // the ability to pass a context and additional request options.
  16259. //
  16260. // See DescribeVpcClassicLinkDnsSupport for details on how to use this API operation.
  16261. //
  16262. // The context must be non-nil and will be used for request cancellation. If
  16263. // the context is nil a panic will occur. In the future the SDK may create
  16264. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16265. // for more information on using Contexts.
  16266. func (c *EC2) DescribeVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *DescribeVpcClassicLinkDnsSupportInput, opts ...request.Option) (*DescribeVpcClassicLinkDnsSupportOutput, error) {
  16267. req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input)
  16268. req.SetContext(ctx)
  16269. req.ApplyOptions(opts...)
  16270. return out, req.Send()
  16271. }
  16272. const opDescribeVpcEndpointConnectionNotifications = "DescribeVpcEndpointConnectionNotifications"
  16273. // DescribeVpcEndpointConnectionNotificationsRequest generates a "aws/request.Request" representing the
  16274. // client's request for the DescribeVpcEndpointConnectionNotifications operation. The "output" return
  16275. // value will be populated with the request's response once the request completes
  16276. // successfully.
  16277. //
  16278. // Use "Send" method on the returned Request to send the API call to the service.
  16279. // the "output" return value is not valid until after Send returns without error.
  16280. //
  16281. // See DescribeVpcEndpointConnectionNotifications for more information on using the DescribeVpcEndpointConnectionNotifications
  16282. // API call, and error handling.
  16283. //
  16284. // This method is useful when you want to inject custom logic or configuration
  16285. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16286. //
  16287. //
  16288. // // Example sending a request using the DescribeVpcEndpointConnectionNotificationsRequest method.
  16289. // req, resp := client.DescribeVpcEndpointConnectionNotificationsRequest(params)
  16290. //
  16291. // err := req.Send()
  16292. // if err == nil { // resp is now filled
  16293. // fmt.Println(resp)
  16294. // }
  16295. //
  16296. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotifications
  16297. func (c *EC2) DescribeVpcEndpointConnectionNotificationsRequest(input *DescribeVpcEndpointConnectionNotificationsInput) (req *request.Request, output *DescribeVpcEndpointConnectionNotificationsOutput) {
  16298. op := &request.Operation{
  16299. Name: opDescribeVpcEndpointConnectionNotifications,
  16300. HTTPMethod: "POST",
  16301. HTTPPath: "/",
  16302. }
  16303. if input == nil {
  16304. input = &DescribeVpcEndpointConnectionNotificationsInput{}
  16305. }
  16306. output = &DescribeVpcEndpointConnectionNotificationsOutput{}
  16307. req = c.newRequest(op, input, output)
  16308. return
  16309. }
  16310. // DescribeVpcEndpointConnectionNotifications API operation for Amazon Elastic Compute Cloud.
  16311. //
  16312. // Describes the connection notifications for VPC endpoints and VPC endpoint
  16313. // services.
  16314. //
  16315. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16316. // with awserr.Error's Code and Message methods to get detailed information about
  16317. // the error.
  16318. //
  16319. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16320. // API operation DescribeVpcEndpointConnectionNotifications for usage and error information.
  16321. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotifications
  16322. func (c *EC2) DescribeVpcEndpointConnectionNotifications(input *DescribeVpcEndpointConnectionNotificationsInput) (*DescribeVpcEndpointConnectionNotificationsOutput, error) {
  16323. req, out := c.DescribeVpcEndpointConnectionNotificationsRequest(input)
  16324. return out, req.Send()
  16325. }
  16326. // DescribeVpcEndpointConnectionNotificationsWithContext is the same as DescribeVpcEndpointConnectionNotifications with the addition of
  16327. // the ability to pass a context and additional request options.
  16328. //
  16329. // See DescribeVpcEndpointConnectionNotifications for details on how to use this API operation.
  16330. //
  16331. // The context must be non-nil and will be used for request cancellation. If
  16332. // the context is nil a panic will occur. In the future the SDK may create
  16333. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16334. // for more information on using Contexts.
  16335. func (c *EC2) DescribeVpcEndpointConnectionNotificationsWithContext(ctx aws.Context, input *DescribeVpcEndpointConnectionNotificationsInput, opts ...request.Option) (*DescribeVpcEndpointConnectionNotificationsOutput, error) {
  16336. req, out := c.DescribeVpcEndpointConnectionNotificationsRequest(input)
  16337. req.SetContext(ctx)
  16338. req.ApplyOptions(opts...)
  16339. return out, req.Send()
  16340. }
  16341. const opDescribeVpcEndpointConnections = "DescribeVpcEndpointConnections"
  16342. // DescribeVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the
  16343. // client's request for the DescribeVpcEndpointConnections operation. The "output" return
  16344. // value will be populated with the request's response once the request completes
  16345. // successfully.
  16346. //
  16347. // Use "Send" method on the returned Request to send the API call to the service.
  16348. // the "output" return value is not valid until after Send returns without error.
  16349. //
  16350. // See DescribeVpcEndpointConnections for more information on using the DescribeVpcEndpointConnections
  16351. // API call, and error handling.
  16352. //
  16353. // This method is useful when you want to inject custom logic or configuration
  16354. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16355. //
  16356. //
  16357. // // Example sending a request using the DescribeVpcEndpointConnectionsRequest method.
  16358. // req, resp := client.DescribeVpcEndpointConnectionsRequest(params)
  16359. //
  16360. // err := req.Send()
  16361. // if err == nil { // resp is now filled
  16362. // fmt.Println(resp)
  16363. // }
  16364. //
  16365. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnections
  16366. func (c *EC2) DescribeVpcEndpointConnectionsRequest(input *DescribeVpcEndpointConnectionsInput) (req *request.Request, output *DescribeVpcEndpointConnectionsOutput) {
  16367. op := &request.Operation{
  16368. Name: opDescribeVpcEndpointConnections,
  16369. HTTPMethod: "POST",
  16370. HTTPPath: "/",
  16371. }
  16372. if input == nil {
  16373. input = &DescribeVpcEndpointConnectionsInput{}
  16374. }
  16375. output = &DescribeVpcEndpointConnectionsOutput{}
  16376. req = c.newRequest(op, input, output)
  16377. return
  16378. }
  16379. // DescribeVpcEndpointConnections API operation for Amazon Elastic Compute Cloud.
  16380. //
  16381. // Describes the VPC endpoint connections to your VPC endpoint services, including
  16382. // any endpoints that are pending your acceptance.
  16383. //
  16384. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16385. // with awserr.Error's Code and Message methods to get detailed information about
  16386. // the error.
  16387. //
  16388. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16389. // API operation DescribeVpcEndpointConnections for usage and error information.
  16390. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnections
  16391. func (c *EC2) DescribeVpcEndpointConnections(input *DescribeVpcEndpointConnectionsInput) (*DescribeVpcEndpointConnectionsOutput, error) {
  16392. req, out := c.DescribeVpcEndpointConnectionsRequest(input)
  16393. return out, req.Send()
  16394. }
  16395. // DescribeVpcEndpointConnectionsWithContext is the same as DescribeVpcEndpointConnections with the addition of
  16396. // the ability to pass a context and additional request options.
  16397. //
  16398. // See DescribeVpcEndpointConnections for details on how to use this API operation.
  16399. //
  16400. // The context must be non-nil and will be used for request cancellation. If
  16401. // the context is nil a panic will occur. In the future the SDK may create
  16402. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16403. // for more information on using Contexts.
  16404. func (c *EC2) DescribeVpcEndpointConnectionsWithContext(ctx aws.Context, input *DescribeVpcEndpointConnectionsInput, opts ...request.Option) (*DescribeVpcEndpointConnectionsOutput, error) {
  16405. req, out := c.DescribeVpcEndpointConnectionsRequest(input)
  16406. req.SetContext(ctx)
  16407. req.ApplyOptions(opts...)
  16408. return out, req.Send()
  16409. }
  16410. const opDescribeVpcEndpointServiceConfigurations = "DescribeVpcEndpointServiceConfigurations"
  16411. // DescribeVpcEndpointServiceConfigurationsRequest generates a "aws/request.Request" representing the
  16412. // client's request for the DescribeVpcEndpointServiceConfigurations operation. The "output" return
  16413. // value will be populated with the request's response once the request completes
  16414. // successfully.
  16415. //
  16416. // Use "Send" method on the returned Request to send the API call to the service.
  16417. // the "output" return value is not valid until after Send returns without error.
  16418. //
  16419. // See DescribeVpcEndpointServiceConfigurations for more information on using the DescribeVpcEndpointServiceConfigurations
  16420. // API call, and error handling.
  16421. //
  16422. // This method is useful when you want to inject custom logic or configuration
  16423. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16424. //
  16425. //
  16426. // // Example sending a request using the DescribeVpcEndpointServiceConfigurationsRequest method.
  16427. // req, resp := client.DescribeVpcEndpointServiceConfigurationsRequest(params)
  16428. //
  16429. // err := req.Send()
  16430. // if err == nil { // resp is now filled
  16431. // fmt.Println(resp)
  16432. // }
  16433. //
  16434. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurations
  16435. func (c *EC2) DescribeVpcEndpointServiceConfigurationsRequest(input *DescribeVpcEndpointServiceConfigurationsInput) (req *request.Request, output *DescribeVpcEndpointServiceConfigurationsOutput) {
  16436. op := &request.Operation{
  16437. Name: opDescribeVpcEndpointServiceConfigurations,
  16438. HTTPMethod: "POST",
  16439. HTTPPath: "/",
  16440. }
  16441. if input == nil {
  16442. input = &DescribeVpcEndpointServiceConfigurationsInput{}
  16443. }
  16444. output = &DescribeVpcEndpointServiceConfigurationsOutput{}
  16445. req = c.newRequest(op, input, output)
  16446. return
  16447. }
  16448. // DescribeVpcEndpointServiceConfigurations API operation for Amazon Elastic Compute Cloud.
  16449. //
  16450. // Describes the VPC endpoint service configurations in your account (your services).
  16451. //
  16452. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16453. // with awserr.Error's Code and Message methods to get detailed information about
  16454. // the error.
  16455. //
  16456. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16457. // API operation DescribeVpcEndpointServiceConfigurations for usage and error information.
  16458. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurations
  16459. func (c *EC2) DescribeVpcEndpointServiceConfigurations(input *DescribeVpcEndpointServiceConfigurationsInput) (*DescribeVpcEndpointServiceConfigurationsOutput, error) {
  16460. req, out := c.DescribeVpcEndpointServiceConfigurationsRequest(input)
  16461. return out, req.Send()
  16462. }
  16463. // DescribeVpcEndpointServiceConfigurationsWithContext is the same as DescribeVpcEndpointServiceConfigurations with the addition of
  16464. // the ability to pass a context and additional request options.
  16465. //
  16466. // See DescribeVpcEndpointServiceConfigurations for details on how to use this API operation.
  16467. //
  16468. // The context must be non-nil and will be used for request cancellation. If
  16469. // the context is nil a panic will occur. In the future the SDK may create
  16470. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16471. // for more information on using Contexts.
  16472. func (c *EC2) DescribeVpcEndpointServiceConfigurationsWithContext(ctx aws.Context, input *DescribeVpcEndpointServiceConfigurationsInput, opts ...request.Option) (*DescribeVpcEndpointServiceConfigurationsOutput, error) {
  16473. req, out := c.DescribeVpcEndpointServiceConfigurationsRequest(input)
  16474. req.SetContext(ctx)
  16475. req.ApplyOptions(opts...)
  16476. return out, req.Send()
  16477. }
  16478. const opDescribeVpcEndpointServicePermissions = "DescribeVpcEndpointServicePermissions"
  16479. // DescribeVpcEndpointServicePermissionsRequest generates a "aws/request.Request" representing the
  16480. // client's request for the DescribeVpcEndpointServicePermissions operation. The "output" return
  16481. // value will be populated with the request's response once the request completes
  16482. // successfully.
  16483. //
  16484. // Use "Send" method on the returned Request to send the API call to the service.
  16485. // the "output" return value is not valid until after Send returns without error.
  16486. //
  16487. // See DescribeVpcEndpointServicePermissions for more information on using the DescribeVpcEndpointServicePermissions
  16488. // API call, and error handling.
  16489. //
  16490. // This method is useful when you want to inject custom logic or configuration
  16491. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16492. //
  16493. //
  16494. // // Example sending a request using the DescribeVpcEndpointServicePermissionsRequest method.
  16495. // req, resp := client.DescribeVpcEndpointServicePermissionsRequest(params)
  16496. //
  16497. // err := req.Send()
  16498. // if err == nil { // resp is now filled
  16499. // fmt.Println(resp)
  16500. // }
  16501. //
  16502. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissions
  16503. func (c *EC2) DescribeVpcEndpointServicePermissionsRequest(input *DescribeVpcEndpointServicePermissionsInput) (req *request.Request, output *DescribeVpcEndpointServicePermissionsOutput) {
  16504. op := &request.Operation{
  16505. Name: opDescribeVpcEndpointServicePermissions,
  16506. HTTPMethod: "POST",
  16507. HTTPPath: "/",
  16508. }
  16509. if input == nil {
  16510. input = &DescribeVpcEndpointServicePermissionsInput{}
  16511. }
  16512. output = &DescribeVpcEndpointServicePermissionsOutput{}
  16513. req = c.newRequest(op, input, output)
  16514. return
  16515. }
  16516. // DescribeVpcEndpointServicePermissions API operation for Amazon Elastic Compute Cloud.
  16517. //
  16518. // Describes the principals (service consumers) that are permitted to discover
  16519. // your VPC endpoint service.
  16520. //
  16521. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16522. // with awserr.Error's Code and Message methods to get detailed information about
  16523. // the error.
  16524. //
  16525. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16526. // API operation DescribeVpcEndpointServicePermissions for usage and error information.
  16527. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissions
  16528. func (c *EC2) DescribeVpcEndpointServicePermissions(input *DescribeVpcEndpointServicePermissionsInput) (*DescribeVpcEndpointServicePermissionsOutput, error) {
  16529. req, out := c.DescribeVpcEndpointServicePermissionsRequest(input)
  16530. return out, req.Send()
  16531. }
  16532. // DescribeVpcEndpointServicePermissionsWithContext is the same as DescribeVpcEndpointServicePermissions with the addition of
  16533. // the ability to pass a context and additional request options.
  16534. //
  16535. // See DescribeVpcEndpointServicePermissions for details on how to use this API operation.
  16536. //
  16537. // The context must be non-nil and will be used for request cancellation. If
  16538. // the context is nil a panic will occur. In the future the SDK may create
  16539. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16540. // for more information on using Contexts.
  16541. func (c *EC2) DescribeVpcEndpointServicePermissionsWithContext(ctx aws.Context, input *DescribeVpcEndpointServicePermissionsInput, opts ...request.Option) (*DescribeVpcEndpointServicePermissionsOutput, error) {
  16542. req, out := c.DescribeVpcEndpointServicePermissionsRequest(input)
  16543. req.SetContext(ctx)
  16544. req.ApplyOptions(opts...)
  16545. return out, req.Send()
  16546. }
  16547. const opDescribeVpcEndpointServices = "DescribeVpcEndpointServices"
  16548. // DescribeVpcEndpointServicesRequest generates a "aws/request.Request" representing the
  16549. // client's request for the DescribeVpcEndpointServices operation. The "output" return
  16550. // value will be populated with the request's response once the request completes
  16551. // successfully.
  16552. //
  16553. // Use "Send" method on the returned Request to send the API call to the service.
  16554. // the "output" return value is not valid until after Send returns without error.
  16555. //
  16556. // See DescribeVpcEndpointServices for more information on using the DescribeVpcEndpointServices
  16557. // API call, and error handling.
  16558. //
  16559. // This method is useful when you want to inject custom logic or configuration
  16560. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16561. //
  16562. //
  16563. // // Example sending a request using the DescribeVpcEndpointServicesRequest method.
  16564. // req, resp := client.DescribeVpcEndpointServicesRequest(params)
  16565. //
  16566. // err := req.Send()
  16567. // if err == nil { // resp is now filled
  16568. // fmt.Println(resp)
  16569. // }
  16570. //
  16571. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServices
  16572. func (c *EC2) DescribeVpcEndpointServicesRequest(input *DescribeVpcEndpointServicesInput) (req *request.Request, output *DescribeVpcEndpointServicesOutput) {
  16573. op := &request.Operation{
  16574. Name: opDescribeVpcEndpointServices,
  16575. HTTPMethod: "POST",
  16576. HTTPPath: "/",
  16577. }
  16578. if input == nil {
  16579. input = &DescribeVpcEndpointServicesInput{}
  16580. }
  16581. output = &DescribeVpcEndpointServicesOutput{}
  16582. req = c.newRequest(op, input, output)
  16583. return
  16584. }
  16585. // DescribeVpcEndpointServices API operation for Amazon Elastic Compute Cloud.
  16586. //
  16587. // Describes available services to which you can create a VPC endpoint.
  16588. //
  16589. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16590. // with awserr.Error's Code and Message methods to get detailed information about
  16591. // the error.
  16592. //
  16593. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16594. // API operation DescribeVpcEndpointServices for usage and error information.
  16595. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServices
  16596. func (c *EC2) DescribeVpcEndpointServices(input *DescribeVpcEndpointServicesInput) (*DescribeVpcEndpointServicesOutput, error) {
  16597. req, out := c.DescribeVpcEndpointServicesRequest(input)
  16598. return out, req.Send()
  16599. }
  16600. // DescribeVpcEndpointServicesWithContext is the same as DescribeVpcEndpointServices with the addition of
  16601. // the ability to pass a context and additional request options.
  16602. //
  16603. // See DescribeVpcEndpointServices for details on how to use this API operation.
  16604. //
  16605. // The context must be non-nil and will be used for request cancellation. If
  16606. // the context is nil a panic will occur. In the future the SDK may create
  16607. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16608. // for more information on using Contexts.
  16609. func (c *EC2) DescribeVpcEndpointServicesWithContext(ctx aws.Context, input *DescribeVpcEndpointServicesInput, opts ...request.Option) (*DescribeVpcEndpointServicesOutput, error) {
  16610. req, out := c.DescribeVpcEndpointServicesRequest(input)
  16611. req.SetContext(ctx)
  16612. req.ApplyOptions(opts...)
  16613. return out, req.Send()
  16614. }
  16615. const opDescribeVpcEndpoints = "DescribeVpcEndpoints"
  16616. // DescribeVpcEndpointsRequest generates a "aws/request.Request" representing the
  16617. // client's request for the DescribeVpcEndpoints operation. The "output" return
  16618. // value will be populated with the request's response once the request completes
  16619. // successfully.
  16620. //
  16621. // Use "Send" method on the returned Request to send the API call to the service.
  16622. // the "output" return value is not valid until after Send returns without error.
  16623. //
  16624. // See DescribeVpcEndpoints for more information on using the DescribeVpcEndpoints
  16625. // API call, and error handling.
  16626. //
  16627. // This method is useful when you want to inject custom logic or configuration
  16628. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16629. //
  16630. //
  16631. // // Example sending a request using the DescribeVpcEndpointsRequest method.
  16632. // req, resp := client.DescribeVpcEndpointsRequest(params)
  16633. //
  16634. // err := req.Send()
  16635. // if err == nil { // resp is now filled
  16636. // fmt.Println(resp)
  16637. // }
  16638. //
  16639. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpoints
  16640. func (c *EC2) DescribeVpcEndpointsRequest(input *DescribeVpcEndpointsInput) (req *request.Request, output *DescribeVpcEndpointsOutput) {
  16641. op := &request.Operation{
  16642. Name: opDescribeVpcEndpoints,
  16643. HTTPMethod: "POST",
  16644. HTTPPath: "/",
  16645. }
  16646. if input == nil {
  16647. input = &DescribeVpcEndpointsInput{}
  16648. }
  16649. output = &DescribeVpcEndpointsOutput{}
  16650. req = c.newRequest(op, input, output)
  16651. return
  16652. }
  16653. // DescribeVpcEndpoints API operation for Amazon Elastic Compute Cloud.
  16654. //
  16655. // Describes one or more of your VPC endpoints.
  16656. //
  16657. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16658. // with awserr.Error's Code and Message methods to get detailed information about
  16659. // the error.
  16660. //
  16661. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16662. // API operation DescribeVpcEndpoints for usage and error information.
  16663. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpoints
  16664. func (c *EC2) DescribeVpcEndpoints(input *DescribeVpcEndpointsInput) (*DescribeVpcEndpointsOutput, error) {
  16665. req, out := c.DescribeVpcEndpointsRequest(input)
  16666. return out, req.Send()
  16667. }
  16668. // DescribeVpcEndpointsWithContext is the same as DescribeVpcEndpoints with the addition of
  16669. // the ability to pass a context and additional request options.
  16670. //
  16671. // See DescribeVpcEndpoints for details on how to use this API operation.
  16672. //
  16673. // The context must be non-nil and will be used for request cancellation. If
  16674. // the context is nil a panic will occur. In the future the SDK may create
  16675. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16676. // for more information on using Contexts.
  16677. func (c *EC2) DescribeVpcEndpointsWithContext(ctx aws.Context, input *DescribeVpcEndpointsInput, opts ...request.Option) (*DescribeVpcEndpointsOutput, error) {
  16678. req, out := c.DescribeVpcEndpointsRequest(input)
  16679. req.SetContext(ctx)
  16680. req.ApplyOptions(opts...)
  16681. return out, req.Send()
  16682. }
  16683. const opDescribeVpcPeeringConnections = "DescribeVpcPeeringConnections"
  16684. // DescribeVpcPeeringConnectionsRequest generates a "aws/request.Request" representing the
  16685. // client's request for the DescribeVpcPeeringConnections operation. The "output" return
  16686. // value will be populated with the request's response once the request completes
  16687. // successfully.
  16688. //
  16689. // Use "Send" method on the returned Request to send the API call to the service.
  16690. // the "output" return value is not valid until after Send returns without error.
  16691. //
  16692. // See DescribeVpcPeeringConnections for more information on using the DescribeVpcPeeringConnections
  16693. // API call, and error handling.
  16694. //
  16695. // This method is useful when you want to inject custom logic or configuration
  16696. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16697. //
  16698. //
  16699. // // Example sending a request using the DescribeVpcPeeringConnectionsRequest method.
  16700. // req, resp := client.DescribeVpcPeeringConnectionsRequest(params)
  16701. //
  16702. // err := req.Send()
  16703. // if err == nil { // resp is now filled
  16704. // fmt.Println(resp)
  16705. // }
  16706. //
  16707. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnections
  16708. func (c *EC2) DescribeVpcPeeringConnectionsRequest(input *DescribeVpcPeeringConnectionsInput) (req *request.Request, output *DescribeVpcPeeringConnectionsOutput) {
  16709. op := &request.Operation{
  16710. Name: opDescribeVpcPeeringConnections,
  16711. HTTPMethod: "POST",
  16712. HTTPPath: "/",
  16713. }
  16714. if input == nil {
  16715. input = &DescribeVpcPeeringConnectionsInput{}
  16716. }
  16717. output = &DescribeVpcPeeringConnectionsOutput{}
  16718. req = c.newRequest(op, input, output)
  16719. return
  16720. }
  16721. // DescribeVpcPeeringConnections API operation for Amazon Elastic Compute Cloud.
  16722. //
  16723. // Describes one or more of your VPC peering connections.
  16724. //
  16725. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16726. // with awserr.Error's Code and Message methods to get detailed information about
  16727. // the error.
  16728. //
  16729. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16730. // API operation DescribeVpcPeeringConnections for usage and error information.
  16731. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnections
  16732. func (c *EC2) DescribeVpcPeeringConnections(input *DescribeVpcPeeringConnectionsInput) (*DescribeVpcPeeringConnectionsOutput, error) {
  16733. req, out := c.DescribeVpcPeeringConnectionsRequest(input)
  16734. return out, req.Send()
  16735. }
  16736. // DescribeVpcPeeringConnectionsWithContext is the same as DescribeVpcPeeringConnections with the addition of
  16737. // the ability to pass a context and additional request options.
  16738. //
  16739. // See DescribeVpcPeeringConnections for details on how to use this API operation.
  16740. //
  16741. // The context must be non-nil and will be used for request cancellation. If
  16742. // the context is nil a panic will occur. In the future the SDK may create
  16743. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16744. // for more information on using Contexts.
  16745. func (c *EC2) DescribeVpcPeeringConnectionsWithContext(ctx aws.Context, input *DescribeVpcPeeringConnectionsInput, opts ...request.Option) (*DescribeVpcPeeringConnectionsOutput, error) {
  16746. req, out := c.DescribeVpcPeeringConnectionsRequest(input)
  16747. req.SetContext(ctx)
  16748. req.ApplyOptions(opts...)
  16749. return out, req.Send()
  16750. }
  16751. const opDescribeVpcs = "DescribeVpcs"
  16752. // DescribeVpcsRequest generates a "aws/request.Request" representing the
  16753. // client's request for the DescribeVpcs operation. The "output" return
  16754. // value will be populated with the request's response once the request completes
  16755. // successfully.
  16756. //
  16757. // Use "Send" method on the returned Request to send the API call to the service.
  16758. // the "output" return value is not valid until after Send returns without error.
  16759. //
  16760. // See DescribeVpcs for more information on using the DescribeVpcs
  16761. // API call, and error handling.
  16762. //
  16763. // This method is useful when you want to inject custom logic or configuration
  16764. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16765. //
  16766. //
  16767. // // Example sending a request using the DescribeVpcsRequest method.
  16768. // req, resp := client.DescribeVpcsRequest(params)
  16769. //
  16770. // err := req.Send()
  16771. // if err == nil { // resp is now filled
  16772. // fmt.Println(resp)
  16773. // }
  16774. //
  16775. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs
  16776. func (c *EC2) DescribeVpcsRequest(input *DescribeVpcsInput) (req *request.Request, output *DescribeVpcsOutput) {
  16777. op := &request.Operation{
  16778. Name: opDescribeVpcs,
  16779. HTTPMethod: "POST",
  16780. HTTPPath: "/",
  16781. }
  16782. if input == nil {
  16783. input = &DescribeVpcsInput{}
  16784. }
  16785. output = &DescribeVpcsOutput{}
  16786. req = c.newRequest(op, input, output)
  16787. return
  16788. }
  16789. // DescribeVpcs API operation for Amazon Elastic Compute Cloud.
  16790. //
  16791. // Describes one or more of your VPCs.
  16792. //
  16793. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16794. // with awserr.Error's Code and Message methods to get detailed information about
  16795. // the error.
  16796. //
  16797. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16798. // API operation DescribeVpcs for usage and error information.
  16799. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs
  16800. func (c *EC2) DescribeVpcs(input *DescribeVpcsInput) (*DescribeVpcsOutput, error) {
  16801. req, out := c.DescribeVpcsRequest(input)
  16802. return out, req.Send()
  16803. }
  16804. // DescribeVpcsWithContext is the same as DescribeVpcs with the addition of
  16805. // the ability to pass a context and additional request options.
  16806. //
  16807. // See DescribeVpcs for details on how to use this API operation.
  16808. //
  16809. // The context must be non-nil and will be used for request cancellation. If
  16810. // the context is nil a panic will occur. In the future the SDK may create
  16811. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16812. // for more information on using Contexts.
  16813. func (c *EC2) DescribeVpcsWithContext(ctx aws.Context, input *DescribeVpcsInput, opts ...request.Option) (*DescribeVpcsOutput, error) {
  16814. req, out := c.DescribeVpcsRequest(input)
  16815. req.SetContext(ctx)
  16816. req.ApplyOptions(opts...)
  16817. return out, req.Send()
  16818. }
  16819. const opDescribeVpnConnections = "DescribeVpnConnections"
  16820. // DescribeVpnConnectionsRequest generates a "aws/request.Request" representing the
  16821. // client's request for the DescribeVpnConnections operation. The "output" return
  16822. // value will be populated with the request's response once the request completes
  16823. // successfully.
  16824. //
  16825. // Use "Send" method on the returned Request to send the API call to the service.
  16826. // the "output" return value is not valid until after Send returns without error.
  16827. //
  16828. // See DescribeVpnConnections for more information on using the DescribeVpnConnections
  16829. // API call, and error handling.
  16830. //
  16831. // This method is useful when you want to inject custom logic or configuration
  16832. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16833. //
  16834. //
  16835. // // Example sending a request using the DescribeVpnConnectionsRequest method.
  16836. // req, resp := client.DescribeVpnConnectionsRequest(params)
  16837. //
  16838. // err := req.Send()
  16839. // if err == nil { // resp is now filled
  16840. // fmt.Println(resp)
  16841. // }
  16842. //
  16843. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnections
  16844. func (c *EC2) DescribeVpnConnectionsRequest(input *DescribeVpnConnectionsInput) (req *request.Request, output *DescribeVpnConnectionsOutput) {
  16845. op := &request.Operation{
  16846. Name: opDescribeVpnConnections,
  16847. HTTPMethod: "POST",
  16848. HTTPPath: "/",
  16849. }
  16850. if input == nil {
  16851. input = &DescribeVpnConnectionsInput{}
  16852. }
  16853. output = &DescribeVpnConnectionsOutput{}
  16854. req = c.newRequest(op, input, output)
  16855. return
  16856. }
  16857. // DescribeVpnConnections API operation for Amazon Elastic Compute Cloud.
  16858. //
  16859. // Describes one or more of your VPN connections.
  16860. //
  16861. // For more information about VPN connections, see AWS Managed VPN Connections
  16862. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) in the
  16863. // Amazon Virtual Private Cloud User Guide.
  16864. //
  16865. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16866. // with awserr.Error's Code and Message methods to get detailed information about
  16867. // the error.
  16868. //
  16869. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16870. // API operation DescribeVpnConnections for usage and error information.
  16871. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnections
  16872. func (c *EC2) DescribeVpnConnections(input *DescribeVpnConnectionsInput) (*DescribeVpnConnectionsOutput, error) {
  16873. req, out := c.DescribeVpnConnectionsRequest(input)
  16874. return out, req.Send()
  16875. }
  16876. // DescribeVpnConnectionsWithContext is the same as DescribeVpnConnections with the addition of
  16877. // the ability to pass a context and additional request options.
  16878. //
  16879. // See DescribeVpnConnections for details on how to use this API operation.
  16880. //
  16881. // The context must be non-nil and will be used for request cancellation. If
  16882. // the context is nil a panic will occur. In the future the SDK may create
  16883. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16884. // for more information on using Contexts.
  16885. func (c *EC2) DescribeVpnConnectionsWithContext(ctx aws.Context, input *DescribeVpnConnectionsInput, opts ...request.Option) (*DescribeVpnConnectionsOutput, error) {
  16886. req, out := c.DescribeVpnConnectionsRequest(input)
  16887. req.SetContext(ctx)
  16888. req.ApplyOptions(opts...)
  16889. return out, req.Send()
  16890. }
  16891. const opDescribeVpnGateways = "DescribeVpnGateways"
  16892. // DescribeVpnGatewaysRequest generates a "aws/request.Request" representing the
  16893. // client's request for the DescribeVpnGateways operation. The "output" return
  16894. // value will be populated with the request's response once the request completes
  16895. // successfully.
  16896. //
  16897. // Use "Send" method on the returned Request to send the API call to the service.
  16898. // the "output" return value is not valid until after Send returns without error.
  16899. //
  16900. // See DescribeVpnGateways for more information on using the DescribeVpnGateways
  16901. // API call, and error handling.
  16902. //
  16903. // This method is useful when you want to inject custom logic or configuration
  16904. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16905. //
  16906. //
  16907. // // Example sending a request using the DescribeVpnGatewaysRequest method.
  16908. // req, resp := client.DescribeVpnGatewaysRequest(params)
  16909. //
  16910. // err := req.Send()
  16911. // if err == nil { // resp is now filled
  16912. // fmt.Println(resp)
  16913. // }
  16914. //
  16915. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGateways
  16916. func (c *EC2) DescribeVpnGatewaysRequest(input *DescribeVpnGatewaysInput) (req *request.Request, output *DescribeVpnGatewaysOutput) {
  16917. op := &request.Operation{
  16918. Name: opDescribeVpnGateways,
  16919. HTTPMethod: "POST",
  16920. HTTPPath: "/",
  16921. }
  16922. if input == nil {
  16923. input = &DescribeVpnGatewaysInput{}
  16924. }
  16925. output = &DescribeVpnGatewaysOutput{}
  16926. req = c.newRequest(op, input, output)
  16927. return
  16928. }
  16929. // DescribeVpnGateways API operation for Amazon Elastic Compute Cloud.
  16930. //
  16931. // Describes one or more of your virtual private gateways.
  16932. //
  16933. // For more information about virtual private gateways, see AWS Managed VPN
  16934. // Connections (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  16935. // in the Amazon Virtual Private Cloud User Guide.
  16936. //
  16937. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16938. // with awserr.Error's Code and Message methods to get detailed information about
  16939. // the error.
  16940. //
  16941. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16942. // API operation DescribeVpnGateways for usage and error information.
  16943. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGateways
  16944. func (c *EC2) DescribeVpnGateways(input *DescribeVpnGatewaysInput) (*DescribeVpnGatewaysOutput, error) {
  16945. req, out := c.DescribeVpnGatewaysRequest(input)
  16946. return out, req.Send()
  16947. }
  16948. // DescribeVpnGatewaysWithContext is the same as DescribeVpnGateways with the addition of
  16949. // the ability to pass a context and additional request options.
  16950. //
  16951. // See DescribeVpnGateways for details on how to use this API operation.
  16952. //
  16953. // The context must be non-nil and will be used for request cancellation. If
  16954. // the context is nil a panic will occur. In the future the SDK may create
  16955. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16956. // for more information on using Contexts.
  16957. func (c *EC2) DescribeVpnGatewaysWithContext(ctx aws.Context, input *DescribeVpnGatewaysInput, opts ...request.Option) (*DescribeVpnGatewaysOutput, error) {
  16958. req, out := c.DescribeVpnGatewaysRequest(input)
  16959. req.SetContext(ctx)
  16960. req.ApplyOptions(opts...)
  16961. return out, req.Send()
  16962. }
  16963. const opDetachClassicLinkVpc = "DetachClassicLinkVpc"
  16964. // DetachClassicLinkVpcRequest generates a "aws/request.Request" representing the
  16965. // client's request for the DetachClassicLinkVpc operation. The "output" return
  16966. // value will be populated with the request's response once the request completes
  16967. // successfully.
  16968. //
  16969. // Use "Send" method on the returned Request to send the API call to the service.
  16970. // the "output" return value is not valid until after Send returns without error.
  16971. //
  16972. // See DetachClassicLinkVpc for more information on using the DetachClassicLinkVpc
  16973. // API call, and error handling.
  16974. //
  16975. // This method is useful when you want to inject custom logic or configuration
  16976. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16977. //
  16978. //
  16979. // // Example sending a request using the DetachClassicLinkVpcRequest method.
  16980. // req, resp := client.DetachClassicLinkVpcRequest(params)
  16981. //
  16982. // err := req.Send()
  16983. // if err == nil { // resp is now filled
  16984. // fmt.Println(resp)
  16985. // }
  16986. //
  16987. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpc
  16988. func (c *EC2) DetachClassicLinkVpcRequest(input *DetachClassicLinkVpcInput) (req *request.Request, output *DetachClassicLinkVpcOutput) {
  16989. op := &request.Operation{
  16990. Name: opDetachClassicLinkVpc,
  16991. HTTPMethod: "POST",
  16992. HTTPPath: "/",
  16993. }
  16994. if input == nil {
  16995. input = &DetachClassicLinkVpcInput{}
  16996. }
  16997. output = &DetachClassicLinkVpcOutput{}
  16998. req = c.newRequest(op, input, output)
  16999. return
  17000. }
  17001. // DetachClassicLinkVpc API operation for Amazon Elastic Compute Cloud.
  17002. //
  17003. // Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance
  17004. // has been unlinked, the VPC security groups are no longer associated with
  17005. // it. An instance is automatically unlinked from a VPC when it's stopped.
  17006. //
  17007. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17008. // with awserr.Error's Code and Message methods to get detailed information about
  17009. // the error.
  17010. //
  17011. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17012. // API operation DetachClassicLinkVpc for usage and error information.
  17013. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpc
  17014. func (c *EC2) DetachClassicLinkVpc(input *DetachClassicLinkVpcInput) (*DetachClassicLinkVpcOutput, error) {
  17015. req, out := c.DetachClassicLinkVpcRequest(input)
  17016. return out, req.Send()
  17017. }
  17018. // DetachClassicLinkVpcWithContext is the same as DetachClassicLinkVpc with the addition of
  17019. // the ability to pass a context and additional request options.
  17020. //
  17021. // See DetachClassicLinkVpc for details on how to use this API operation.
  17022. //
  17023. // The context must be non-nil and will be used for request cancellation. If
  17024. // the context is nil a panic will occur. In the future the SDK may create
  17025. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17026. // for more information on using Contexts.
  17027. func (c *EC2) DetachClassicLinkVpcWithContext(ctx aws.Context, input *DetachClassicLinkVpcInput, opts ...request.Option) (*DetachClassicLinkVpcOutput, error) {
  17028. req, out := c.DetachClassicLinkVpcRequest(input)
  17029. req.SetContext(ctx)
  17030. req.ApplyOptions(opts...)
  17031. return out, req.Send()
  17032. }
  17033. const opDetachInternetGateway = "DetachInternetGateway"
  17034. // DetachInternetGatewayRequest generates a "aws/request.Request" representing the
  17035. // client's request for the DetachInternetGateway operation. The "output" return
  17036. // value will be populated with the request's response once the request completes
  17037. // successfully.
  17038. //
  17039. // Use "Send" method on the returned Request to send the API call to the service.
  17040. // the "output" return value is not valid until after Send returns without error.
  17041. //
  17042. // See DetachInternetGateway for more information on using the DetachInternetGateway
  17043. // API call, and error handling.
  17044. //
  17045. // This method is useful when you want to inject custom logic or configuration
  17046. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17047. //
  17048. //
  17049. // // Example sending a request using the DetachInternetGatewayRequest method.
  17050. // req, resp := client.DetachInternetGatewayRequest(params)
  17051. //
  17052. // err := req.Send()
  17053. // if err == nil { // resp is now filled
  17054. // fmt.Println(resp)
  17055. // }
  17056. //
  17057. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGateway
  17058. func (c *EC2) DetachInternetGatewayRequest(input *DetachInternetGatewayInput) (req *request.Request, output *DetachInternetGatewayOutput) {
  17059. op := &request.Operation{
  17060. Name: opDetachInternetGateway,
  17061. HTTPMethod: "POST",
  17062. HTTPPath: "/",
  17063. }
  17064. if input == nil {
  17065. input = &DetachInternetGatewayInput{}
  17066. }
  17067. output = &DetachInternetGatewayOutput{}
  17068. req = c.newRequest(op, input, output)
  17069. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  17070. return
  17071. }
  17072. // DetachInternetGateway API operation for Amazon Elastic Compute Cloud.
  17073. //
  17074. // Detaches an internet gateway from a VPC, disabling connectivity between the
  17075. // internet and the VPC. The VPC must not contain any running instances with
  17076. // Elastic IP addresses or public IPv4 addresses.
  17077. //
  17078. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17079. // with awserr.Error's Code and Message methods to get detailed information about
  17080. // the error.
  17081. //
  17082. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17083. // API operation DetachInternetGateway for usage and error information.
  17084. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGateway
  17085. func (c *EC2) DetachInternetGateway(input *DetachInternetGatewayInput) (*DetachInternetGatewayOutput, error) {
  17086. req, out := c.DetachInternetGatewayRequest(input)
  17087. return out, req.Send()
  17088. }
  17089. // DetachInternetGatewayWithContext is the same as DetachInternetGateway with the addition of
  17090. // the ability to pass a context and additional request options.
  17091. //
  17092. // See DetachInternetGateway for details on how to use this API operation.
  17093. //
  17094. // The context must be non-nil and will be used for request cancellation. If
  17095. // the context is nil a panic will occur. In the future the SDK may create
  17096. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17097. // for more information on using Contexts.
  17098. func (c *EC2) DetachInternetGatewayWithContext(ctx aws.Context, input *DetachInternetGatewayInput, opts ...request.Option) (*DetachInternetGatewayOutput, error) {
  17099. req, out := c.DetachInternetGatewayRequest(input)
  17100. req.SetContext(ctx)
  17101. req.ApplyOptions(opts...)
  17102. return out, req.Send()
  17103. }
  17104. const opDetachNetworkInterface = "DetachNetworkInterface"
  17105. // DetachNetworkInterfaceRequest generates a "aws/request.Request" representing the
  17106. // client's request for the DetachNetworkInterface operation. The "output" return
  17107. // value will be populated with the request's response once the request completes
  17108. // successfully.
  17109. //
  17110. // Use "Send" method on the returned Request to send the API call to the service.
  17111. // the "output" return value is not valid until after Send returns without error.
  17112. //
  17113. // See DetachNetworkInterface for more information on using the DetachNetworkInterface
  17114. // API call, and error handling.
  17115. //
  17116. // This method is useful when you want to inject custom logic or configuration
  17117. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17118. //
  17119. //
  17120. // // Example sending a request using the DetachNetworkInterfaceRequest method.
  17121. // req, resp := client.DetachNetworkInterfaceRequest(params)
  17122. //
  17123. // err := req.Send()
  17124. // if err == nil { // resp is now filled
  17125. // fmt.Println(resp)
  17126. // }
  17127. //
  17128. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterface
  17129. func (c *EC2) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput) (req *request.Request, output *DetachNetworkInterfaceOutput) {
  17130. op := &request.Operation{
  17131. Name: opDetachNetworkInterface,
  17132. HTTPMethod: "POST",
  17133. HTTPPath: "/",
  17134. }
  17135. if input == nil {
  17136. input = &DetachNetworkInterfaceInput{}
  17137. }
  17138. output = &DetachNetworkInterfaceOutput{}
  17139. req = c.newRequest(op, input, output)
  17140. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  17141. return
  17142. }
  17143. // DetachNetworkInterface API operation for Amazon Elastic Compute Cloud.
  17144. //
  17145. // Detaches a network interface from an instance.
  17146. //
  17147. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17148. // with awserr.Error's Code and Message methods to get detailed information about
  17149. // the error.
  17150. //
  17151. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17152. // API operation DetachNetworkInterface for usage and error information.
  17153. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterface
  17154. func (c *EC2) DetachNetworkInterface(input *DetachNetworkInterfaceInput) (*DetachNetworkInterfaceOutput, error) {
  17155. req, out := c.DetachNetworkInterfaceRequest(input)
  17156. return out, req.Send()
  17157. }
  17158. // DetachNetworkInterfaceWithContext is the same as DetachNetworkInterface with the addition of
  17159. // the ability to pass a context and additional request options.
  17160. //
  17161. // See DetachNetworkInterface for details on how to use this API operation.
  17162. //
  17163. // The context must be non-nil and will be used for request cancellation. If
  17164. // the context is nil a panic will occur. In the future the SDK may create
  17165. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17166. // for more information on using Contexts.
  17167. func (c *EC2) DetachNetworkInterfaceWithContext(ctx aws.Context, input *DetachNetworkInterfaceInput, opts ...request.Option) (*DetachNetworkInterfaceOutput, error) {
  17168. req, out := c.DetachNetworkInterfaceRequest(input)
  17169. req.SetContext(ctx)
  17170. req.ApplyOptions(opts...)
  17171. return out, req.Send()
  17172. }
  17173. const opDetachVolume = "DetachVolume"
  17174. // DetachVolumeRequest generates a "aws/request.Request" representing the
  17175. // client's request for the DetachVolume operation. The "output" return
  17176. // value will be populated with the request's response once the request completes
  17177. // successfully.
  17178. //
  17179. // Use "Send" method on the returned Request to send the API call to the service.
  17180. // the "output" return value is not valid until after Send returns without error.
  17181. //
  17182. // See DetachVolume for more information on using the DetachVolume
  17183. // API call, and error handling.
  17184. //
  17185. // This method is useful when you want to inject custom logic or configuration
  17186. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17187. //
  17188. //
  17189. // // Example sending a request using the DetachVolumeRequest method.
  17190. // req, resp := client.DetachVolumeRequest(params)
  17191. //
  17192. // err := req.Send()
  17193. // if err == nil { // resp is now filled
  17194. // fmt.Println(resp)
  17195. // }
  17196. //
  17197. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolume
  17198. func (c *EC2) DetachVolumeRequest(input *DetachVolumeInput) (req *request.Request, output *VolumeAttachment) {
  17199. op := &request.Operation{
  17200. Name: opDetachVolume,
  17201. HTTPMethod: "POST",
  17202. HTTPPath: "/",
  17203. }
  17204. if input == nil {
  17205. input = &DetachVolumeInput{}
  17206. }
  17207. output = &VolumeAttachment{}
  17208. req = c.newRequest(op, input, output)
  17209. return
  17210. }
  17211. // DetachVolume API operation for Amazon Elastic Compute Cloud.
  17212. //
  17213. // Detaches an EBS volume from an instance. Make sure to unmount any file systems
  17214. // on the device within your operating system before detaching the volume. Failure
  17215. // to do so can result in the volume becoming stuck in the busy state while
  17216. // detaching. If this happens, detachment can be delayed indefinitely until
  17217. // you unmount the volume, force detachment, reboot the instance, or all three.
  17218. // If an EBS volume is the root device of an instance, it can't be detached
  17219. // while the instance is running. To detach the root volume, stop the instance
  17220. // first.
  17221. //
  17222. // When a volume with an AWS Marketplace product code is detached from an instance,
  17223. // the product code is no longer associated with the instance.
  17224. //
  17225. // For more information, see Detaching an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html)
  17226. // in the Amazon Elastic Compute Cloud User Guide.
  17227. //
  17228. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17229. // with awserr.Error's Code and Message methods to get detailed information about
  17230. // the error.
  17231. //
  17232. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17233. // API operation DetachVolume for usage and error information.
  17234. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolume
  17235. func (c *EC2) DetachVolume(input *DetachVolumeInput) (*VolumeAttachment, error) {
  17236. req, out := c.DetachVolumeRequest(input)
  17237. return out, req.Send()
  17238. }
  17239. // DetachVolumeWithContext is the same as DetachVolume with the addition of
  17240. // the ability to pass a context and additional request options.
  17241. //
  17242. // See DetachVolume for details on how to use this API operation.
  17243. //
  17244. // The context must be non-nil and will be used for request cancellation. If
  17245. // the context is nil a panic will occur. In the future the SDK may create
  17246. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17247. // for more information on using Contexts.
  17248. func (c *EC2) DetachVolumeWithContext(ctx aws.Context, input *DetachVolumeInput, opts ...request.Option) (*VolumeAttachment, error) {
  17249. req, out := c.DetachVolumeRequest(input)
  17250. req.SetContext(ctx)
  17251. req.ApplyOptions(opts...)
  17252. return out, req.Send()
  17253. }
  17254. const opDetachVpnGateway = "DetachVpnGateway"
  17255. // DetachVpnGatewayRequest generates a "aws/request.Request" representing the
  17256. // client's request for the DetachVpnGateway operation. The "output" return
  17257. // value will be populated with the request's response once the request completes
  17258. // successfully.
  17259. //
  17260. // Use "Send" method on the returned Request to send the API call to the service.
  17261. // the "output" return value is not valid until after Send returns without error.
  17262. //
  17263. // See DetachVpnGateway for more information on using the DetachVpnGateway
  17264. // API call, and error handling.
  17265. //
  17266. // This method is useful when you want to inject custom logic or configuration
  17267. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17268. //
  17269. //
  17270. // // Example sending a request using the DetachVpnGatewayRequest method.
  17271. // req, resp := client.DetachVpnGatewayRequest(params)
  17272. //
  17273. // err := req.Send()
  17274. // if err == nil { // resp is now filled
  17275. // fmt.Println(resp)
  17276. // }
  17277. //
  17278. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGateway
  17279. func (c *EC2) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) (req *request.Request, output *DetachVpnGatewayOutput) {
  17280. op := &request.Operation{
  17281. Name: opDetachVpnGateway,
  17282. HTTPMethod: "POST",
  17283. HTTPPath: "/",
  17284. }
  17285. if input == nil {
  17286. input = &DetachVpnGatewayInput{}
  17287. }
  17288. output = &DetachVpnGatewayOutput{}
  17289. req = c.newRequest(op, input, output)
  17290. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  17291. return
  17292. }
  17293. // DetachVpnGateway API operation for Amazon Elastic Compute Cloud.
  17294. //
  17295. // Detaches a virtual private gateway from a VPC. You do this if you're planning
  17296. // to turn off the VPC and not use it anymore. You can confirm a virtual private
  17297. // gateway has been completely detached from a VPC by describing the virtual
  17298. // private gateway (any attachments to the virtual private gateway are also
  17299. // described).
  17300. //
  17301. // You must wait for the attachment's state to switch to detached before you
  17302. // can delete the VPC or attach a different VPC to the virtual private gateway.
  17303. //
  17304. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17305. // with awserr.Error's Code and Message methods to get detailed information about
  17306. // the error.
  17307. //
  17308. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17309. // API operation DetachVpnGateway for usage and error information.
  17310. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGateway
  17311. func (c *EC2) DetachVpnGateway(input *DetachVpnGatewayInput) (*DetachVpnGatewayOutput, error) {
  17312. req, out := c.DetachVpnGatewayRequest(input)
  17313. return out, req.Send()
  17314. }
  17315. // DetachVpnGatewayWithContext is the same as DetachVpnGateway with the addition of
  17316. // the ability to pass a context and additional request options.
  17317. //
  17318. // See DetachVpnGateway for details on how to use this API operation.
  17319. //
  17320. // The context must be non-nil and will be used for request cancellation. If
  17321. // the context is nil a panic will occur. In the future the SDK may create
  17322. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17323. // for more information on using Contexts.
  17324. func (c *EC2) DetachVpnGatewayWithContext(ctx aws.Context, input *DetachVpnGatewayInput, opts ...request.Option) (*DetachVpnGatewayOutput, error) {
  17325. req, out := c.DetachVpnGatewayRequest(input)
  17326. req.SetContext(ctx)
  17327. req.ApplyOptions(opts...)
  17328. return out, req.Send()
  17329. }
  17330. const opDisableTransitGatewayRouteTablePropagation = "DisableTransitGatewayRouteTablePropagation"
  17331. // DisableTransitGatewayRouteTablePropagationRequest generates a "aws/request.Request" representing the
  17332. // client's request for the DisableTransitGatewayRouteTablePropagation operation. The "output" return
  17333. // value will be populated with the request's response once the request completes
  17334. // successfully.
  17335. //
  17336. // Use "Send" method on the returned Request to send the API call to the service.
  17337. // the "output" return value is not valid until after Send returns without error.
  17338. //
  17339. // See DisableTransitGatewayRouteTablePropagation for more information on using the DisableTransitGatewayRouteTablePropagation
  17340. // API call, and error handling.
  17341. //
  17342. // This method is useful when you want to inject custom logic or configuration
  17343. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17344. //
  17345. //
  17346. // // Example sending a request using the DisableTransitGatewayRouteTablePropagationRequest method.
  17347. // req, resp := client.DisableTransitGatewayRouteTablePropagationRequest(params)
  17348. //
  17349. // err := req.Send()
  17350. // if err == nil { // resp is now filled
  17351. // fmt.Println(resp)
  17352. // }
  17353. //
  17354. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableTransitGatewayRouteTablePropagation
  17355. func (c *EC2) DisableTransitGatewayRouteTablePropagationRequest(input *DisableTransitGatewayRouteTablePropagationInput) (req *request.Request, output *DisableTransitGatewayRouteTablePropagationOutput) {
  17356. op := &request.Operation{
  17357. Name: opDisableTransitGatewayRouteTablePropagation,
  17358. HTTPMethod: "POST",
  17359. HTTPPath: "/",
  17360. }
  17361. if input == nil {
  17362. input = &DisableTransitGatewayRouteTablePropagationInput{}
  17363. }
  17364. output = &DisableTransitGatewayRouteTablePropagationOutput{}
  17365. req = c.newRequest(op, input, output)
  17366. return
  17367. }
  17368. // DisableTransitGatewayRouteTablePropagation API operation for Amazon Elastic Compute Cloud.
  17369. //
  17370. // Disables the specified resource attachment from propagating routes to the
  17371. // specified propagation route table.
  17372. //
  17373. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17374. // with awserr.Error's Code and Message methods to get detailed information about
  17375. // the error.
  17376. //
  17377. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17378. // API operation DisableTransitGatewayRouteTablePropagation for usage and error information.
  17379. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableTransitGatewayRouteTablePropagation
  17380. func (c *EC2) DisableTransitGatewayRouteTablePropagation(input *DisableTransitGatewayRouteTablePropagationInput) (*DisableTransitGatewayRouteTablePropagationOutput, error) {
  17381. req, out := c.DisableTransitGatewayRouteTablePropagationRequest(input)
  17382. return out, req.Send()
  17383. }
  17384. // DisableTransitGatewayRouteTablePropagationWithContext is the same as DisableTransitGatewayRouteTablePropagation with the addition of
  17385. // the ability to pass a context and additional request options.
  17386. //
  17387. // See DisableTransitGatewayRouteTablePropagation for details on how to use this API operation.
  17388. //
  17389. // The context must be non-nil and will be used for request cancellation. If
  17390. // the context is nil a panic will occur. In the future the SDK may create
  17391. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17392. // for more information on using Contexts.
  17393. func (c *EC2) DisableTransitGatewayRouteTablePropagationWithContext(ctx aws.Context, input *DisableTransitGatewayRouteTablePropagationInput, opts ...request.Option) (*DisableTransitGatewayRouteTablePropagationOutput, error) {
  17394. req, out := c.DisableTransitGatewayRouteTablePropagationRequest(input)
  17395. req.SetContext(ctx)
  17396. req.ApplyOptions(opts...)
  17397. return out, req.Send()
  17398. }
  17399. const opDisableVgwRoutePropagation = "DisableVgwRoutePropagation"
  17400. // DisableVgwRoutePropagationRequest generates a "aws/request.Request" representing the
  17401. // client's request for the DisableVgwRoutePropagation operation. The "output" return
  17402. // value will be populated with the request's response once the request completes
  17403. // successfully.
  17404. //
  17405. // Use "Send" method on the returned Request to send the API call to the service.
  17406. // the "output" return value is not valid until after Send returns without error.
  17407. //
  17408. // See DisableVgwRoutePropagation for more information on using the DisableVgwRoutePropagation
  17409. // API call, and error handling.
  17410. //
  17411. // This method is useful when you want to inject custom logic or configuration
  17412. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17413. //
  17414. //
  17415. // // Example sending a request using the DisableVgwRoutePropagationRequest method.
  17416. // req, resp := client.DisableVgwRoutePropagationRequest(params)
  17417. //
  17418. // err := req.Send()
  17419. // if err == nil { // resp is now filled
  17420. // fmt.Println(resp)
  17421. // }
  17422. //
  17423. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagation
  17424. func (c *EC2) DisableVgwRoutePropagationRequest(input *DisableVgwRoutePropagationInput) (req *request.Request, output *DisableVgwRoutePropagationOutput) {
  17425. op := &request.Operation{
  17426. Name: opDisableVgwRoutePropagation,
  17427. HTTPMethod: "POST",
  17428. HTTPPath: "/",
  17429. }
  17430. if input == nil {
  17431. input = &DisableVgwRoutePropagationInput{}
  17432. }
  17433. output = &DisableVgwRoutePropagationOutput{}
  17434. req = c.newRequest(op, input, output)
  17435. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  17436. return
  17437. }
  17438. // DisableVgwRoutePropagation API operation for Amazon Elastic Compute Cloud.
  17439. //
  17440. // Disables a virtual private gateway (VGW) from propagating routes to a specified
  17441. // route table of a VPC.
  17442. //
  17443. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17444. // with awserr.Error's Code and Message methods to get detailed information about
  17445. // the error.
  17446. //
  17447. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17448. // API operation DisableVgwRoutePropagation for usage and error information.
  17449. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagation
  17450. func (c *EC2) DisableVgwRoutePropagation(input *DisableVgwRoutePropagationInput) (*DisableVgwRoutePropagationOutput, error) {
  17451. req, out := c.DisableVgwRoutePropagationRequest(input)
  17452. return out, req.Send()
  17453. }
  17454. // DisableVgwRoutePropagationWithContext is the same as DisableVgwRoutePropagation with the addition of
  17455. // the ability to pass a context and additional request options.
  17456. //
  17457. // See DisableVgwRoutePropagation for details on how to use this API operation.
  17458. //
  17459. // The context must be non-nil and will be used for request cancellation. If
  17460. // the context is nil a panic will occur. In the future the SDK may create
  17461. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17462. // for more information on using Contexts.
  17463. func (c *EC2) DisableVgwRoutePropagationWithContext(ctx aws.Context, input *DisableVgwRoutePropagationInput, opts ...request.Option) (*DisableVgwRoutePropagationOutput, error) {
  17464. req, out := c.DisableVgwRoutePropagationRequest(input)
  17465. req.SetContext(ctx)
  17466. req.ApplyOptions(opts...)
  17467. return out, req.Send()
  17468. }
  17469. const opDisableVpcClassicLink = "DisableVpcClassicLink"
  17470. // DisableVpcClassicLinkRequest generates a "aws/request.Request" representing the
  17471. // client's request for the DisableVpcClassicLink operation. The "output" return
  17472. // value will be populated with the request's response once the request completes
  17473. // successfully.
  17474. //
  17475. // Use "Send" method on the returned Request to send the API call to the service.
  17476. // the "output" return value is not valid until after Send returns without error.
  17477. //
  17478. // See DisableVpcClassicLink for more information on using the DisableVpcClassicLink
  17479. // API call, and error handling.
  17480. //
  17481. // This method is useful when you want to inject custom logic or configuration
  17482. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17483. //
  17484. //
  17485. // // Example sending a request using the DisableVpcClassicLinkRequest method.
  17486. // req, resp := client.DisableVpcClassicLinkRequest(params)
  17487. //
  17488. // err := req.Send()
  17489. // if err == nil { // resp is now filled
  17490. // fmt.Println(resp)
  17491. // }
  17492. //
  17493. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLink
  17494. func (c *EC2) DisableVpcClassicLinkRequest(input *DisableVpcClassicLinkInput) (req *request.Request, output *DisableVpcClassicLinkOutput) {
  17495. op := &request.Operation{
  17496. Name: opDisableVpcClassicLink,
  17497. HTTPMethod: "POST",
  17498. HTTPPath: "/",
  17499. }
  17500. if input == nil {
  17501. input = &DisableVpcClassicLinkInput{}
  17502. }
  17503. output = &DisableVpcClassicLinkOutput{}
  17504. req = c.newRequest(op, input, output)
  17505. return
  17506. }
  17507. // DisableVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  17508. //
  17509. // Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC
  17510. // that has EC2-Classic instances linked to it.
  17511. //
  17512. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17513. // with awserr.Error's Code and Message methods to get detailed information about
  17514. // the error.
  17515. //
  17516. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17517. // API operation DisableVpcClassicLink for usage and error information.
  17518. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLink
  17519. func (c *EC2) DisableVpcClassicLink(input *DisableVpcClassicLinkInput) (*DisableVpcClassicLinkOutput, error) {
  17520. req, out := c.DisableVpcClassicLinkRequest(input)
  17521. return out, req.Send()
  17522. }
  17523. // DisableVpcClassicLinkWithContext is the same as DisableVpcClassicLink with the addition of
  17524. // the ability to pass a context and additional request options.
  17525. //
  17526. // See DisableVpcClassicLink for details on how to use this API operation.
  17527. //
  17528. // The context must be non-nil and will be used for request cancellation. If
  17529. // the context is nil a panic will occur. In the future the SDK may create
  17530. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17531. // for more information on using Contexts.
  17532. func (c *EC2) DisableVpcClassicLinkWithContext(ctx aws.Context, input *DisableVpcClassicLinkInput, opts ...request.Option) (*DisableVpcClassicLinkOutput, error) {
  17533. req, out := c.DisableVpcClassicLinkRequest(input)
  17534. req.SetContext(ctx)
  17535. req.ApplyOptions(opts...)
  17536. return out, req.Send()
  17537. }
  17538. const opDisableVpcClassicLinkDnsSupport = "DisableVpcClassicLinkDnsSupport"
  17539. // DisableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  17540. // client's request for the DisableVpcClassicLinkDnsSupport operation. The "output" return
  17541. // value will be populated with the request's response once the request completes
  17542. // successfully.
  17543. //
  17544. // Use "Send" method on the returned Request to send the API call to the service.
  17545. // the "output" return value is not valid until after Send returns without error.
  17546. //
  17547. // See DisableVpcClassicLinkDnsSupport for more information on using the DisableVpcClassicLinkDnsSupport
  17548. // API call, and error handling.
  17549. //
  17550. // This method is useful when you want to inject custom logic or configuration
  17551. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17552. //
  17553. //
  17554. // // Example sending a request using the DisableVpcClassicLinkDnsSupportRequest method.
  17555. // req, resp := client.DisableVpcClassicLinkDnsSupportRequest(params)
  17556. //
  17557. // err := req.Send()
  17558. // if err == nil { // resp is now filled
  17559. // fmt.Println(resp)
  17560. // }
  17561. //
  17562. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupport
  17563. func (c *EC2) DisableVpcClassicLinkDnsSupportRequest(input *DisableVpcClassicLinkDnsSupportInput) (req *request.Request, output *DisableVpcClassicLinkDnsSupportOutput) {
  17564. op := &request.Operation{
  17565. Name: opDisableVpcClassicLinkDnsSupport,
  17566. HTTPMethod: "POST",
  17567. HTTPPath: "/",
  17568. }
  17569. if input == nil {
  17570. input = &DisableVpcClassicLinkDnsSupportInput{}
  17571. }
  17572. output = &DisableVpcClassicLinkDnsSupportOutput{}
  17573. req = c.newRequest(op, input, output)
  17574. return
  17575. }
  17576. // DisableVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  17577. //
  17578. // Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve
  17579. // to public IP addresses when addressed between a linked EC2-Classic instance
  17580. // and instances in the VPC to which it's linked. For more information, see
  17581. // ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  17582. // in the Amazon Elastic Compute Cloud User Guide.
  17583. //
  17584. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17585. // with awserr.Error's Code and Message methods to get detailed information about
  17586. // the error.
  17587. //
  17588. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17589. // API operation DisableVpcClassicLinkDnsSupport for usage and error information.
  17590. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupport
  17591. func (c *EC2) DisableVpcClassicLinkDnsSupport(input *DisableVpcClassicLinkDnsSupportInput) (*DisableVpcClassicLinkDnsSupportOutput, error) {
  17592. req, out := c.DisableVpcClassicLinkDnsSupportRequest(input)
  17593. return out, req.Send()
  17594. }
  17595. // DisableVpcClassicLinkDnsSupportWithContext is the same as DisableVpcClassicLinkDnsSupport with the addition of
  17596. // the ability to pass a context and additional request options.
  17597. //
  17598. // See DisableVpcClassicLinkDnsSupport for details on how to use this API operation.
  17599. //
  17600. // The context must be non-nil and will be used for request cancellation. If
  17601. // the context is nil a panic will occur. In the future the SDK may create
  17602. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17603. // for more information on using Contexts.
  17604. func (c *EC2) DisableVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *DisableVpcClassicLinkDnsSupportInput, opts ...request.Option) (*DisableVpcClassicLinkDnsSupportOutput, error) {
  17605. req, out := c.DisableVpcClassicLinkDnsSupportRequest(input)
  17606. req.SetContext(ctx)
  17607. req.ApplyOptions(opts...)
  17608. return out, req.Send()
  17609. }
  17610. const opDisassociateAddress = "DisassociateAddress"
  17611. // DisassociateAddressRequest generates a "aws/request.Request" representing the
  17612. // client's request for the DisassociateAddress operation. The "output" return
  17613. // value will be populated with the request's response once the request completes
  17614. // successfully.
  17615. //
  17616. // Use "Send" method on the returned Request to send the API call to the service.
  17617. // the "output" return value is not valid until after Send returns without error.
  17618. //
  17619. // See DisassociateAddress for more information on using the DisassociateAddress
  17620. // API call, and error handling.
  17621. //
  17622. // This method is useful when you want to inject custom logic or configuration
  17623. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17624. //
  17625. //
  17626. // // Example sending a request using the DisassociateAddressRequest method.
  17627. // req, resp := client.DisassociateAddressRequest(params)
  17628. //
  17629. // err := req.Send()
  17630. // if err == nil { // resp is now filled
  17631. // fmt.Println(resp)
  17632. // }
  17633. //
  17634. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddress
  17635. func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req *request.Request, output *DisassociateAddressOutput) {
  17636. op := &request.Operation{
  17637. Name: opDisassociateAddress,
  17638. HTTPMethod: "POST",
  17639. HTTPPath: "/",
  17640. }
  17641. if input == nil {
  17642. input = &DisassociateAddressInput{}
  17643. }
  17644. output = &DisassociateAddressOutput{}
  17645. req = c.newRequest(op, input, output)
  17646. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  17647. return
  17648. }
  17649. // DisassociateAddress API operation for Amazon Elastic Compute Cloud.
  17650. //
  17651. // Disassociates an Elastic IP address from the instance or network interface
  17652. // it's associated with.
  17653. //
  17654. // An Elastic IP address is for use in either the EC2-Classic platform or in
  17655. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  17656. // in the Amazon Elastic Compute Cloud User Guide.
  17657. //
  17658. // This is an idempotent operation. If you perform the operation more than once,
  17659. // Amazon EC2 doesn't return an error.
  17660. //
  17661. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17662. // with awserr.Error's Code and Message methods to get detailed information about
  17663. // the error.
  17664. //
  17665. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17666. // API operation DisassociateAddress for usage and error information.
  17667. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddress
  17668. func (c *EC2) DisassociateAddress(input *DisassociateAddressInput) (*DisassociateAddressOutput, error) {
  17669. req, out := c.DisassociateAddressRequest(input)
  17670. return out, req.Send()
  17671. }
  17672. // DisassociateAddressWithContext is the same as DisassociateAddress with the addition of
  17673. // the ability to pass a context and additional request options.
  17674. //
  17675. // See DisassociateAddress for details on how to use this API operation.
  17676. //
  17677. // The context must be non-nil and will be used for request cancellation. If
  17678. // the context is nil a panic will occur. In the future the SDK may create
  17679. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17680. // for more information on using Contexts.
  17681. func (c *EC2) DisassociateAddressWithContext(ctx aws.Context, input *DisassociateAddressInput, opts ...request.Option) (*DisassociateAddressOutput, error) {
  17682. req, out := c.DisassociateAddressRequest(input)
  17683. req.SetContext(ctx)
  17684. req.ApplyOptions(opts...)
  17685. return out, req.Send()
  17686. }
  17687. const opDisassociateClientVpnTargetNetwork = "DisassociateClientVpnTargetNetwork"
  17688. // DisassociateClientVpnTargetNetworkRequest generates a "aws/request.Request" representing the
  17689. // client's request for the DisassociateClientVpnTargetNetwork operation. The "output" return
  17690. // value will be populated with the request's response once the request completes
  17691. // successfully.
  17692. //
  17693. // Use "Send" method on the returned Request to send the API call to the service.
  17694. // the "output" return value is not valid until after Send returns without error.
  17695. //
  17696. // See DisassociateClientVpnTargetNetwork for more information on using the DisassociateClientVpnTargetNetwork
  17697. // API call, and error handling.
  17698. //
  17699. // This method is useful when you want to inject custom logic or configuration
  17700. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17701. //
  17702. //
  17703. // // Example sending a request using the DisassociateClientVpnTargetNetworkRequest method.
  17704. // req, resp := client.DisassociateClientVpnTargetNetworkRequest(params)
  17705. //
  17706. // err := req.Send()
  17707. // if err == nil { // resp is now filled
  17708. // fmt.Println(resp)
  17709. // }
  17710. //
  17711. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateClientVpnTargetNetwork
  17712. func (c *EC2) DisassociateClientVpnTargetNetworkRequest(input *DisassociateClientVpnTargetNetworkInput) (req *request.Request, output *DisassociateClientVpnTargetNetworkOutput) {
  17713. op := &request.Operation{
  17714. Name: opDisassociateClientVpnTargetNetwork,
  17715. HTTPMethod: "POST",
  17716. HTTPPath: "/",
  17717. }
  17718. if input == nil {
  17719. input = &DisassociateClientVpnTargetNetworkInput{}
  17720. }
  17721. output = &DisassociateClientVpnTargetNetworkOutput{}
  17722. req = c.newRequest(op, input, output)
  17723. return
  17724. }
  17725. // DisassociateClientVpnTargetNetwork API operation for Amazon Elastic Compute Cloud.
  17726. //
  17727. // Disassociates a target network from the specified Client VPN endpoint. When
  17728. // you disassociate the last target network from a Client VPN, the following
  17729. // happens:
  17730. //
  17731. // * The route that was automatically added for the VPC is deleted
  17732. //
  17733. // * All active client connections are terminated
  17734. //
  17735. // * New client connections are disallowed
  17736. //
  17737. // * The Client VPN endpoint's status changes to pending-associate
  17738. //
  17739. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17740. // with awserr.Error's Code and Message methods to get detailed information about
  17741. // the error.
  17742. //
  17743. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17744. // API operation DisassociateClientVpnTargetNetwork for usage and error information.
  17745. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateClientVpnTargetNetwork
  17746. func (c *EC2) DisassociateClientVpnTargetNetwork(input *DisassociateClientVpnTargetNetworkInput) (*DisassociateClientVpnTargetNetworkOutput, error) {
  17747. req, out := c.DisassociateClientVpnTargetNetworkRequest(input)
  17748. return out, req.Send()
  17749. }
  17750. // DisassociateClientVpnTargetNetworkWithContext is the same as DisassociateClientVpnTargetNetwork with the addition of
  17751. // the ability to pass a context and additional request options.
  17752. //
  17753. // See DisassociateClientVpnTargetNetwork for details on how to use this API operation.
  17754. //
  17755. // The context must be non-nil and will be used for request cancellation. If
  17756. // the context is nil a panic will occur. In the future the SDK may create
  17757. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17758. // for more information on using Contexts.
  17759. func (c *EC2) DisassociateClientVpnTargetNetworkWithContext(ctx aws.Context, input *DisassociateClientVpnTargetNetworkInput, opts ...request.Option) (*DisassociateClientVpnTargetNetworkOutput, error) {
  17760. req, out := c.DisassociateClientVpnTargetNetworkRequest(input)
  17761. req.SetContext(ctx)
  17762. req.ApplyOptions(opts...)
  17763. return out, req.Send()
  17764. }
  17765. const opDisassociateIamInstanceProfile = "DisassociateIamInstanceProfile"
  17766. // DisassociateIamInstanceProfileRequest generates a "aws/request.Request" representing the
  17767. // client's request for the DisassociateIamInstanceProfile operation. The "output" return
  17768. // value will be populated with the request's response once the request completes
  17769. // successfully.
  17770. //
  17771. // Use "Send" method on the returned Request to send the API call to the service.
  17772. // the "output" return value is not valid until after Send returns without error.
  17773. //
  17774. // See DisassociateIamInstanceProfile for more information on using the DisassociateIamInstanceProfile
  17775. // API call, and error handling.
  17776. //
  17777. // This method is useful when you want to inject custom logic or configuration
  17778. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17779. //
  17780. //
  17781. // // Example sending a request using the DisassociateIamInstanceProfileRequest method.
  17782. // req, resp := client.DisassociateIamInstanceProfileRequest(params)
  17783. //
  17784. // err := req.Send()
  17785. // if err == nil { // resp is now filled
  17786. // fmt.Println(resp)
  17787. // }
  17788. //
  17789. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfile
  17790. func (c *EC2) DisassociateIamInstanceProfileRequest(input *DisassociateIamInstanceProfileInput) (req *request.Request, output *DisassociateIamInstanceProfileOutput) {
  17791. op := &request.Operation{
  17792. Name: opDisassociateIamInstanceProfile,
  17793. HTTPMethod: "POST",
  17794. HTTPPath: "/",
  17795. }
  17796. if input == nil {
  17797. input = &DisassociateIamInstanceProfileInput{}
  17798. }
  17799. output = &DisassociateIamInstanceProfileOutput{}
  17800. req = c.newRequest(op, input, output)
  17801. return
  17802. }
  17803. // DisassociateIamInstanceProfile API operation for Amazon Elastic Compute Cloud.
  17804. //
  17805. // Disassociates an IAM instance profile from a running or stopped instance.
  17806. //
  17807. // Use DescribeIamInstanceProfileAssociations to get the association ID.
  17808. //
  17809. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17810. // with awserr.Error's Code and Message methods to get detailed information about
  17811. // the error.
  17812. //
  17813. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17814. // API operation DisassociateIamInstanceProfile for usage and error information.
  17815. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfile
  17816. func (c *EC2) DisassociateIamInstanceProfile(input *DisassociateIamInstanceProfileInput) (*DisassociateIamInstanceProfileOutput, error) {
  17817. req, out := c.DisassociateIamInstanceProfileRequest(input)
  17818. return out, req.Send()
  17819. }
  17820. // DisassociateIamInstanceProfileWithContext is the same as DisassociateIamInstanceProfile with the addition of
  17821. // the ability to pass a context and additional request options.
  17822. //
  17823. // See DisassociateIamInstanceProfile for details on how to use this API operation.
  17824. //
  17825. // The context must be non-nil and will be used for request cancellation. If
  17826. // the context is nil a panic will occur. In the future the SDK may create
  17827. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17828. // for more information on using Contexts.
  17829. func (c *EC2) DisassociateIamInstanceProfileWithContext(ctx aws.Context, input *DisassociateIamInstanceProfileInput, opts ...request.Option) (*DisassociateIamInstanceProfileOutput, error) {
  17830. req, out := c.DisassociateIamInstanceProfileRequest(input)
  17831. req.SetContext(ctx)
  17832. req.ApplyOptions(opts...)
  17833. return out, req.Send()
  17834. }
  17835. const opDisassociateRouteTable = "DisassociateRouteTable"
  17836. // DisassociateRouteTableRequest generates a "aws/request.Request" representing the
  17837. // client's request for the DisassociateRouteTable operation. The "output" return
  17838. // value will be populated with the request's response once the request completes
  17839. // successfully.
  17840. //
  17841. // Use "Send" method on the returned Request to send the API call to the service.
  17842. // the "output" return value is not valid until after Send returns without error.
  17843. //
  17844. // See DisassociateRouteTable for more information on using the DisassociateRouteTable
  17845. // API call, and error handling.
  17846. //
  17847. // This method is useful when you want to inject custom logic or configuration
  17848. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17849. //
  17850. //
  17851. // // Example sending a request using the DisassociateRouteTableRequest method.
  17852. // req, resp := client.DisassociateRouteTableRequest(params)
  17853. //
  17854. // err := req.Send()
  17855. // if err == nil { // resp is now filled
  17856. // fmt.Println(resp)
  17857. // }
  17858. //
  17859. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTable
  17860. func (c *EC2) DisassociateRouteTableRequest(input *DisassociateRouteTableInput) (req *request.Request, output *DisassociateRouteTableOutput) {
  17861. op := &request.Operation{
  17862. Name: opDisassociateRouteTable,
  17863. HTTPMethod: "POST",
  17864. HTTPPath: "/",
  17865. }
  17866. if input == nil {
  17867. input = &DisassociateRouteTableInput{}
  17868. }
  17869. output = &DisassociateRouteTableOutput{}
  17870. req = c.newRequest(op, input, output)
  17871. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  17872. return
  17873. }
  17874. // DisassociateRouteTable API operation for Amazon Elastic Compute Cloud.
  17875. //
  17876. // Disassociates a subnet from a route table.
  17877. //
  17878. // After you perform this action, the subnet no longer uses the routes in the
  17879. // route table. Instead, it uses the routes in the VPC's main route table. For
  17880. // more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  17881. // in the Amazon Virtual Private Cloud User Guide.
  17882. //
  17883. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17884. // with awserr.Error's Code and Message methods to get detailed information about
  17885. // the error.
  17886. //
  17887. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17888. // API operation DisassociateRouteTable for usage and error information.
  17889. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTable
  17890. func (c *EC2) DisassociateRouteTable(input *DisassociateRouteTableInput) (*DisassociateRouteTableOutput, error) {
  17891. req, out := c.DisassociateRouteTableRequest(input)
  17892. return out, req.Send()
  17893. }
  17894. // DisassociateRouteTableWithContext is the same as DisassociateRouteTable with the addition of
  17895. // the ability to pass a context and additional request options.
  17896. //
  17897. // See DisassociateRouteTable for details on how to use this API operation.
  17898. //
  17899. // The context must be non-nil and will be used for request cancellation. If
  17900. // the context is nil a panic will occur. In the future the SDK may create
  17901. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17902. // for more information on using Contexts.
  17903. func (c *EC2) DisassociateRouteTableWithContext(ctx aws.Context, input *DisassociateRouteTableInput, opts ...request.Option) (*DisassociateRouteTableOutput, error) {
  17904. req, out := c.DisassociateRouteTableRequest(input)
  17905. req.SetContext(ctx)
  17906. req.ApplyOptions(opts...)
  17907. return out, req.Send()
  17908. }
  17909. const opDisassociateSubnetCidrBlock = "DisassociateSubnetCidrBlock"
  17910. // DisassociateSubnetCidrBlockRequest generates a "aws/request.Request" representing the
  17911. // client's request for the DisassociateSubnetCidrBlock operation. The "output" return
  17912. // value will be populated with the request's response once the request completes
  17913. // successfully.
  17914. //
  17915. // Use "Send" method on the returned Request to send the API call to the service.
  17916. // the "output" return value is not valid until after Send returns without error.
  17917. //
  17918. // See DisassociateSubnetCidrBlock for more information on using the DisassociateSubnetCidrBlock
  17919. // API call, and error handling.
  17920. //
  17921. // This method is useful when you want to inject custom logic or configuration
  17922. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17923. //
  17924. //
  17925. // // Example sending a request using the DisassociateSubnetCidrBlockRequest method.
  17926. // req, resp := client.DisassociateSubnetCidrBlockRequest(params)
  17927. //
  17928. // err := req.Send()
  17929. // if err == nil { // resp is now filled
  17930. // fmt.Println(resp)
  17931. // }
  17932. //
  17933. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlock
  17934. func (c *EC2) DisassociateSubnetCidrBlockRequest(input *DisassociateSubnetCidrBlockInput) (req *request.Request, output *DisassociateSubnetCidrBlockOutput) {
  17935. op := &request.Operation{
  17936. Name: opDisassociateSubnetCidrBlock,
  17937. HTTPMethod: "POST",
  17938. HTTPPath: "/",
  17939. }
  17940. if input == nil {
  17941. input = &DisassociateSubnetCidrBlockInput{}
  17942. }
  17943. output = &DisassociateSubnetCidrBlockOutput{}
  17944. req = c.newRequest(op, input, output)
  17945. return
  17946. }
  17947. // DisassociateSubnetCidrBlock API operation for Amazon Elastic Compute Cloud.
  17948. //
  17949. // Disassociates a CIDR block from a subnet. Currently, you can disassociate
  17950. // an IPv6 CIDR block only. You must detach or delete all gateways and resources
  17951. // that are associated with the CIDR block before you can disassociate it.
  17952. //
  17953. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17954. // with awserr.Error's Code and Message methods to get detailed information about
  17955. // the error.
  17956. //
  17957. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17958. // API operation DisassociateSubnetCidrBlock for usage and error information.
  17959. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlock
  17960. func (c *EC2) DisassociateSubnetCidrBlock(input *DisassociateSubnetCidrBlockInput) (*DisassociateSubnetCidrBlockOutput, error) {
  17961. req, out := c.DisassociateSubnetCidrBlockRequest(input)
  17962. return out, req.Send()
  17963. }
  17964. // DisassociateSubnetCidrBlockWithContext is the same as DisassociateSubnetCidrBlock with the addition of
  17965. // the ability to pass a context and additional request options.
  17966. //
  17967. // See DisassociateSubnetCidrBlock for details on how to use this API operation.
  17968. //
  17969. // The context must be non-nil and will be used for request cancellation. If
  17970. // the context is nil a panic will occur. In the future the SDK may create
  17971. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17972. // for more information on using Contexts.
  17973. func (c *EC2) DisassociateSubnetCidrBlockWithContext(ctx aws.Context, input *DisassociateSubnetCidrBlockInput, opts ...request.Option) (*DisassociateSubnetCidrBlockOutput, error) {
  17974. req, out := c.DisassociateSubnetCidrBlockRequest(input)
  17975. req.SetContext(ctx)
  17976. req.ApplyOptions(opts...)
  17977. return out, req.Send()
  17978. }
  17979. const opDisassociateTransitGatewayRouteTable = "DisassociateTransitGatewayRouteTable"
  17980. // DisassociateTransitGatewayRouteTableRequest generates a "aws/request.Request" representing the
  17981. // client's request for the DisassociateTransitGatewayRouteTable operation. The "output" return
  17982. // value will be populated with the request's response once the request completes
  17983. // successfully.
  17984. //
  17985. // Use "Send" method on the returned Request to send the API call to the service.
  17986. // the "output" return value is not valid until after Send returns without error.
  17987. //
  17988. // See DisassociateTransitGatewayRouteTable for more information on using the DisassociateTransitGatewayRouteTable
  17989. // API call, and error handling.
  17990. //
  17991. // This method is useful when you want to inject custom logic or configuration
  17992. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17993. //
  17994. //
  17995. // // Example sending a request using the DisassociateTransitGatewayRouteTableRequest method.
  17996. // req, resp := client.DisassociateTransitGatewayRouteTableRequest(params)
  17997. //
  17998. // err := req.Send()
  17999. // if err == nil { // resp is now filled
  18000. // fmt.Println(resp)
  18001. // }
  18002. //
  18003. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateTransitGatewayRouteTable
  18004. func (c *EC2) DisassociateTransitGatewayRouteTableRequest(input *DisassociateTransitGatewayRouteTableInput) (req *request.Request, output *DisassociateTransitGatewayRouteTableOutput) {
  18005. op := &request.Operation{
  18006. Name: opDisassociateTransitGatewayRouteTable,
  18007. HTTPMethod: "POST",
  18008. HTTPPath: "/",
  18009. }
  18010. if input == nil {
  18011. input = &DisassociateTransitGatewayRouteTableInput{}
  18012. }
  18013. output = &DisassociateTransitGatewayRouteTableOutput{}
  18014. req = c.newRequest(op, input, output)
  18015. return
  18016. }
  18017. // DisassociateTransitGatewayRouteTable API operation for Amazon Elastic Compute Cloud.
  18018. //
  18019. // Disassociates a resource attachment from a transit gateway route table.
  18020. //
  18021. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18022. // with awserr.Error's Code and Message methods to get detailed information about
  18023. // the error.
  18024. //
  18025. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18026. // API operation DisassociateTransitGatewayRouteTable for usage and error information.
  18027. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateTransitGatewayRouteTable
  18028. func (c *EC2) DisassociateTransitGatewayRouteTable(input *DisassociateTransitGatewayRouteTableInput) (*DisassociateTransitGatewayRouteTableOutput, error) {
  18029. req, out := c.DisassociateTransitGatewayRouteTableRequest(input)
  18030. return out, req.Send()
  18031. }
  18032. // DisassociateTransitGatewayRouteTableWithContext is the same as DisassociateTransitGatewayRouteTable with the addition of
  18033. // the ability to pass a context and additional request options.
  18034. //
  18035. // See DisassociateTransitGatewayRouteTable for details on how to use this API operation.
  18036. //
  18037. // The context must be non-nil and will be used for request cancellation. If
  18038. // the context is nil a panic will occur. In the future the SDK may create
  18039. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18040. // for more information on using Contexts.
  18041. func (c *EC2) DisassociateTransitGatewayRouteTableWithContext(ctx aws.Context, input *DisassociateTransitGatewayRouteTableInput, opts ...request.Option) (*DisassociateTransitGatewayRouteTableOutput, error) {
  18042. req, out := c.DisassociateTransitGatewayRouteTableRequest(input)
  18043. req.SetContext(ctx)
  18044. req.ApplyOptions(opts...)
  18045. return out, req.Send()
  18046. }
  18047. const opDisassociateVpcCidrBlock = "DisassociateVpcCidrBlock"
  18048. // DisassociateVpcCidrBlockRequest generates a "aws/request.Request" representing the
  18049. // client's request for the DisassociateVpcCidrBlock operation. The "output" return
  18050. // value will be populated with the request's response once the request completes
  18051. // successfully.
  18052. //
  18053. // Use "Send" method on the returned Request to send the API call to the service.
  18054. // the "output" return value is not valid until after Send returns without error.
  18055. //
  18056. // See DisassociateVpcCidrBlock for more information on using the DisassociateVpcCidrBlock
  18057. // API call, and error handling.
  18058. //
  18059. // This method is useful when you want to inject custom logic or configuration
  18060. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18061. //
  18062. //
  18063. // // Example sending a request using the DisassociateVpcCidrBlockRequest method.
  18064. // req, resp := client.DisassociateVpcCidrBlockRequest(params)
  18065. //
  18066. // err := req.Send()
  18067. // if err == nil { // resp is now filled
  18068. // fmt.Println(resp)
  18069. // }
  18070. //
  18071. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlock
  18072. func (c *EC2) DisassociateVpcCidrBlockRequest(input *DisassociateVpcCidrBlockInput) (req *request.Request, output *DisassociateVpcCidrBlockOutput) {
  18073. op := &request.Operation{
  18074. Name: opDisassociateVpcCidrBlock,
  18075. HTTPMethod: "POST",
  18076. HTTPPath: "/",
  18077. }
  18078. if input == nil {
  18079. input = &DisassociateVpcCidrBlockInput{}
  18080. }
  18081. output = &DisassociateVpcCidrBlockOutput{}
  18082. req = c.newRequest(op, input, output)
  18083. return
  18084. }
  18085. // DisassociateVpcCidrBlock API operation for Amazon Elastic Compute Cloud.
  18086. //
  18087. // Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you
  18088. // must specify its association ID. You can get the association ID by using
  18089. // DescribeVpcs. You must detach or delete all gateways and resources that are
  18090. // associated with the CIDR block before you can disassociate it.
  18091. //
  18092. // You cannot disassociate the CIDR block with which you originally created
  18093. // the VPC (the primary CIDR block).
  18094. //
  18095. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18096. // with awserr.Error's Code and Message methods to get detailed information about
  18097. // the error.
  18098. //
  18099. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18100. // API operation DisassociateVpcCidrBlock for usage and error information.
  18101. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlock
  18102. func (c *EC2) DisassociateVpcCidrBlock(input *DisassociateVpcCidrBlockInput) (*DisassociateVpcCidrBlockOutput, error) {
  18103. req, out := c.DisassociateVpcCidrBlockRequest(input)
  18104. return out, req.Send()
  18105. }
  18106. // DisassociateVpcCidrBlockWithContext is the same as DisassociateVpcCidrBlock with the addition of
  18107. // the ability to pass a context and additional request options.
  18108. //
  18109. // See DisassociateVpcCidrBlock for details on how to use this API operation.
  18110. //
  18111. // The context must be non-nil and will be used for request cancellation. If
  18112. // the context is nil a panic will occur. In the future the SDK may create
  18113. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18114. // for more information on using Contexts.
  18115. func (c *EC2) DisassociateVpcCidrBlockWithContext(ctx aws.Context, input *DisassociateVpcCidrBlockInput, opts ...request.Option) (*DisassociateVpcCidrBlockOutput, error) {
  18116. req, out := c.DisassociateVpcCidrBlockRequest(input)
  18117. req.SetContext(ctx)
  18118. req.ApplyOptions(opts...)
  18119. return out, req.Send()
  18120. }
  18121. const opEnableTransitGatewayRouteTablePropagation = "EnableTransitGatewayRouteTablePropagation"
  18122. // EnableTransitGatewayRouteTablePropagationRequest generates a "aws/request.Request" representing the
  18123. // client's request for the EnableTransitGatewayRouteTablePropagation operation. The "output" return
  18124. // value will be populated with the request's response once the request completes
  18125. // successfully.
  18126. //
  18127. // Use "Send" method on the returned Request to send the API call to the service.
  18128. // the "output" return value is not valid until after Send returns without error.
  18129. //
  18130. // See EnableTransitGatewayRouteTablePropagation for more information on using the EnableTransitGatewayRouteTablePropagation
  18131. // API call, and error handling.
  18132. //
  18133. // This method is useful when you want to inject custom logic or configuration
  18134. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18135. //
  18136. //
  18137. // // Example sending a request using the EnableTransitGatewayRouteTablePropagationRequest method.
  18138. // req, resp := client.EnableTransitGatewayRouteTablePropagationRequest(params)
  18139. //
  18140. // err := req.Send()
  18141. // if err == nil { // resp is now filled
  18142. // fmt.Println(resp)
  18143. // }
  18144. //
  18145. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableTransitGatewayRouteTablePropagation
  18146. func (c *EC2) EnableTransitGatewayRouteTablePropagationRequest(input *EnableTransitGatewayRouteTablePropagationInput) (req *request.Request, output *EnableTransitGatewayRouteTablePropagationOutput) {
  18147. op := &request.Operation{
  18148. Name: opEnableTransitGatewayRouteTablePropagation,
  18149. HTTPMethod: "POST",
  18150. HTTPPath: "/",
  18151. }
  18152. if input == nil {
  18153. input = &EnableTransitGatewayRouteTablePropagationInput{}
  18154. }
  18155. output = &EnableTransitGatewayRouteTablePropagationOutput{}
  18156. req = c.newRequest(op, input, output)
  18157. return
  18158. }
  18159. // EnableTransitGatewayRouteTablePropagation API operation for Amazon Elastic Compute Cloud.
  18160. //
  18161. // Enables the specified attachment to propagate routes to the specified propagation
  18162. // route table.
  18163. //
  18164. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18165. // with awserr.Error's Code and Message methods to get detailed information about
  18166. // the error.
  18167. //
  18168. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18169. // API operation EnableTransitGatewayRouteTablePropagation for usage and error information.
  18170. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableTransitGatewayRouteTablePropagation
  18171. func (c *EC2) EnableTransitGatewayRouteTablePropagation(input *EnableTransitGatewayRouteTablePropagationInput) (*EnableTransitGatewayRouteTablePropagationOutput, error) {
  18172. req, out := c.EnableTransitGatewayRouteTablePropagationRequest(input)
  18173. return out, req.Send()
  18174. }
  18175. // EnableTransitGatewayRouteTablePropagationWithContext is the same as EnableTransitGatewayRouteTablePropagation with the addition of
  18176. // the ability to pass a context and additional request options.
  18177. //
  18178. // See EnableTransitGatewayRouteTablePropagation for details on how to use this API operation.
  18179. //
  18180. // The context must be non-nil and will be used for request cancellation. If
  18181. // the context is nil a panic will occur. In the future the SDK may create
  18182. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18183. // for more information on using Contexts.
  18184. func (c *EC2) EnableTransitGatewayRouteTablePropagationWithContext(ctx aws.Context, input *EnableTransitGatewayRouteTablePropagationInput, opts ...request.Option) (*EnableTransitGatewayRouteTablePropagationOutput, error) {
  18185. req, out := c.EnableTransitGatewayRouteTablePropagationRequest(input)
  18186. req.SetContext(ctx)
  18187. req.ApplyOptions(opts...)
  18188. return out, req.Send()
  18189. }
  18190. const opEnableVgwRoutePropagation = "EnableVgwRoutePropagation"
  18191. // EnableVgwRoutePropagationRequest generates a "aws/request.Request" representing the
  18192. // client's request for the EnableVgwRoutePropagation operation. The "output" return
  18193. // value will be populated with the request's response once the request completes
  18194. // successfully.
  18195. //
  18196. // Use "Send" method on the returned Request to send the API call to the service.
  18197. // the "output" return value is not valid until after Send returns without error.
  18198. //
  18199. // See EnableVgwRoutePropagation for more information on using the EnableVgwRoutePropagation
  18200. // API call, and error handling.
  18201. //
  18202. // This method is useful when you want to inject custom logic or configuration
  18203. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18204. //
  18205. //
  18206. // // Example sending a request using the EnableVgwRoutePropagationRequest method.
  18207. // req, resp := client.EnableVgwRoutePropagationRequest(params)
  18208. //
  18209. // err := req.Send()
  18210. // if err == nil { // resp is now filled
  18211. // fmt.Println(resp)
  18212. // }
  18213. //
  18214. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation
  18215. func (c *EC2) EnableVgwRoutePropagationRequest(input *EnableVgwRoutePropagationInput) (req *request.Request, output *EnableVgwRoutePropagationOutput) {
  18216. op := &request.Operation{
  18217. Name: opEnableVgwRoutePropagation,
  18218. HTTPMethod: "POST",
  18219. HTTPPath: "/",
  18220. }
  18221. if input == nil {
  18222. input = &EnableVgwRoutePropagationInput{}
  18223. }
  18224. output = &EnableVgwRoutePropagationOutput{}
  18225. req = c.newRequest(op, input, output)
  18226. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  18227. return
  18228. }
  18229. // EnableVgwRoutePropagation API operation for Amazon Elastic Compute Cloud.
  18230. //
  18231. // Enables a virtual private gateway (VGW) to propagate routes to the specified
  18232. // route table of a VPC.
  18233. //
  18234. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18235. // with awserr.Error's Code and Message methods to get detailed information about
  18236. // the error.
  18237. //
  18238. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18239. // API operation EnableVgwRoutePropagation for usage and error information.
  18240. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation
  18241. func (c *EC2) EnableVgwRoutePropagation(input *EnableVgwRoutePropagationInput) (*EnableVgwRoutePropagationOutput, error) {
  18242. req, out := c.EnableVgwRoutePropagationRequest(input)
  18243. return out, req.Send()
  18244. }
  18245. // EnableVgwRoutePropagationWithContext is the same as EnableVgwRoutePropagation with the addition of
  18246. // the ability to pass a context and additional request options.
  18247. //
  18248. // See EnableVgwRoutePropagation for details on how to use this API operation.
  18249. //
  18250. // The context must be non-nil and will be used for request cancellation. If
  18251. // the context is nil a panic will occur. In the future the SDK may create
  18252. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18253. // for more information on using Contexts.
  18254. func (c *EC2) EnableVgwRoutePropagationWithContext(ctx aws.Context, input *EnableVgwRoutePropagationInput, opts ...request.Option) (*EnableVgwRoutePropagationOutput, error) {
  18255. req, out := c.EnableVgwRoutePropagationRequest(input)
  18256. req.SetContext(ctx)
  18257. req.ApplyOptions(opts...)
  18258. return out, req.Send()
  18259. }
  18260. const opEnableVolumeIO = "EnableVolumeIO"
  18261. // EnableVolumeIORequest generates a "aws/request.Request" representing the
  18262. // client's request for the EnableVolumeIO operation. The "output" return
  18263. // value will be populated with the request's response once the request completes
  18264. // successfully.
  18265. //
  18266. // Use "Send" method on the returned Request to send the API call to the service.
  18267. // the "output" return value is not valid until after Send returns without error.
  18268. //
  18269. // See EnableVolumeIO for more information on using the EnableVolumeIO
  18270. // API call, and error handling.
  18271. //
  18272. // This method is useful when you want to inject custom logic or configuration
  18273. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18274. //
  18275. //
  18276. // // Example sending a request using the EnableVolumeIORequest method.
  18277. // req, resp := client.EnableVolumeIORequest(params)
  18278. //
  18279. // err := req.Send()
  18280. // if err == nil { // resp is now filled
  18281. // fmt.Println(resp)
  18282. // }
  18283. //
  18284. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIO
  18285. func (c *EC2) EnableVolumeIORequest(input *EnableVolumeIOInput) (req *request.Request, output *EnableVolumeIOOutput) {
  18286. op := &request.Operation{
  18287. Name: opEnableVolumeIO,
  18288. HTTPMethod: "POST",
  18289. HTTPPath: "/",
  18290. }
  18291. if input == nil {
  18292. input = &EnableVolumeIOInput{}
  18293. }
  18294. output = &EnableVolumeIOOutput{}
  18295. req = c.newRequest(op, input, output)
  18296. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  18297. return
  18298. }
  18299. // EnableVolumeIO API operation for Amazon Elastic Compute Cloud.
  18300. //
  18301. // Enables I/O operations for a volume that had I/O operations disabled because
  18302. // the data on the volume was potentially inconsistent.
  18303. //
  18304. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18305. // with awserr.Error's Code and Message methods to get detailed information about
  18306. // the error.
  18307. //
  18308. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18309. // API operation EnableVolumeIO for usage and error information.
  18310. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIO
  18311. func (c *EC2) EnableVolumeIO(input *EnableVolumeIOInput) (*EnableVolumeIOOutput, error) {
  18312. req, out := c.EnableVolumeIORequest(input)
  18313. return out, req.Send()
  18314. }
  18315. // EnableVolumeIOWithContext is the same as EnableVolumeIO with the addition of
  18316. // the ability to pass a context and additional request options.
  18317. //
  18318. // See EnableVolumeIO for details on how to use this API operation.
  18319. //
  18320. // The context must be non-nil and will be used for request cancellation. If
  18321. // the context is nil a panic will occur. In the future the SDK may create
  18322. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18323. // for more information on using Contexts.
  18324. func (c *EC2) EnableVolumeIOWithContext(ctx aws.Context, input *EnableVolumeIOInput, opts ...request.Option) (*EnableVolumeIOOutput, error) {
  18325. req, out := c.EnableVolumeIORequest(input)
  18326. req.SetContext(ctx)
  18327. req.ApplyOptions(opts...)
  18328. return out, req.Send()
  18329. }
  18330. const opEnableVpcClassicLink = "EnableVpcClassicLink"
  18331. // EnableVpcClassicLinkRequest generates a "aws/request.Request" representing the
  18332. // client's request for the EnableVpcClassicLink operation. The "output" return
  18333. // value will be populated with the request's response once the request completes
  18334. // successfully.
  18335. //
  18336. // Use "Send" method on the returned Request to send the API call to the service.
  18337. // the "output" return value is not valid until after Send returns without error.
  18338. //
  18339. // See EnableVpcClassicLink for more information on using the EnableVpcClassicLink
  18340. // API call, and error handling.
  18341. //
  18342. // This method is useful when you want to inject custom logic or configuration
  18343. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18344. //
  18345. //
  18346. // // Example sending a request using the EnableVpcClassicLinkRequest method.
  18347. // req, resp := client.EnableVpcClassicLinkRequest(params)
  18348. //
  18349. // err := req.Send()
  18350. // if err == nil { // resp is now filled
  18351. // fmt.Println(resp)
  18352. // }
  18353. //
  18354. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLink
  18355. func (c *EC2) EnableVpcClassicLinkRequest(input *EnableVpcClassicLinkInput) (req *request.Request, output *EnableVpcClassicLinkOutput) {
  18356. op := &request.Operation{
  18357. Name: opEnableVpcClassicLink,
  18358. HTTPMethod: "POST",
  18359. HTTPPath: "/",
  18360. }
  18361. if input == nil {
  18362. input = &EnableVpcClassicLinkInput{}
  18363. }
  18364. output = &EnableVpcClassicLinkOutput{}
  18365. req = c.newRequest(op, input, output)
  18366. return
  18367. }
  18368. // EnableVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  18369. //
  18370. // Enables a VPC for ClassicLink. You can then link EC2-Classic instances to
  18371. // your ClassicLink-enabled VPC to allow communication over private IP addresses.
  18372. // You cannot enable your VPC for ClassicLink if any of your VPC route tables
  18373. // have existing routes for address ranges within the 10.0.0.0/8 IP address
  18374. // range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16
  18375. // IP address ranges. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  18376. // in the Amazon Elastic Compute Cloud User Guide.
  18377. //
  18378. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18379. // with awserr.Error's Code and Message methods to get detailed information about
  18380. // the error.
  18381. //
  18382. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18383. // API operation EnableVpcClassicLink for usage and error information.
  18384. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLink
  18385. func (c *EC2) EnableVpcClassicLink(input *EnableVpcClassicLinkInput) (*EnableVpcClassicLinkOutput, error) {
  18386. req, out := c.EnableVpcClassicLinkRequest(input)
  18387. return out, req.Send()
  18388. }
  18389. // EnableVpcClassicLinkWithContext is the same as EnableVpcClassicLink with the addition of
  18390. // the ability to pass a context and additional request options.
  18391. //
  18392. // See EnableVpcClassicLink for details on how to use this API operation.
  18393. //
  18394. // The context must be non-nil and will be used for request cancellation. If
  18395. // the context is nil a panic will occur. In the future the SDK may create
  18396. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18397. // for more information on using Contexts.
  18398. func (c *EC2) EnableVpcClassicLinkWithContext(ctx aws.Context, input *EnableVpcClassicLinkInput, opts ...request.Option) (*EnableVpcClassicLinkOutput, error) {
  18399. req, out := c.EnableVpcClassicLinkRequest(input)
  18400. req.SetContext(ctx)
  18401. req.ApplyOptions(opts...)
  18402. return out, req.Send()
  18403. }
  18404. const opEnableVpcClassicLinkDnsSupport = "EnableVpcClassicLinkDnsSupport"
  18405. // EnableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  18406. // client's request for the EnableVpcClassicLinkDnsSupport operation. The "output" return
  18407. // value will be populated with the request's response once the request completes
  18408. // successfully.
  18409. //
  18410. // Use "Send" method on the returned Request to send the API call to the service.
  18411. // the "output" return value is not valid until after Send returns without error.
  18412. //
  18413. // See EnableVpcClassicLinkDnsSupport for more information on using the EnableVpcClassicLinkDnsSupport
  18414. // API call, and error handling.
  18415. //
  18416. // This method is useful when you want to inject custom logic or configuration
  18417. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18418. //
  18419. //
  18420. // // Example sending a request using the EnableVpcClassicLinkDnsSupportRequest method.
  18421. // req, resp := client.EnableVpcClassicLinkDnsSupportRequest(params)
  18422. //
  18423. // err := req.Send()
  18424. // if err == nil { // resp is now filled
  18425. // fmt.Println(resp)
  18426. // }
  18427. //
  18428. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupport
  18429. func (c *EC2) EnableVpcClassicLinkDnsSupportRequest(input *EnableVpcClassicLinkDnsSupportInput) (req *request.Request, output *EnableVpcClassicLinkDnsSupportOutput) {
  18430. op := &request.Operation{
  18431. Name: opEnableVpcClassicLinkDnsSupport,
  18432. HTTPMethod: "POST",
  18433. HTTPPath: "/",
  18434. }
  18435. if input == nil {
  18436. input = &EnableVpcClassicLinkDnsSupportInput{}
  18437. }
  18438. output = &EnableVpcClassicLinkDnsSupportOutput{}
  18439. req = c.newRequest(op, input, output)
  18440. return
  18441. }
  18442. // EnableVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  18443. //
  18444. // Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled,
  18445. // the DNS hostname of a linked EC2-Classic instance resolves to its private
  18446. // IP address when addressed from an instance in the VPC to which it's linked.
  18447. // Similarly, the DNS hostname of an instance in a VPC resolves to its private
  18448. // IP address when addressed from a linked EC2-Classic instance. For more information,
  18449. // see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  18450. // in the Amazon Elastic Compute Cloud User Guide.
  18451. //
  18452. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18453. // with awserr.Error's Code and Message methods to get detailed information about
  18454. // the error.
  18455. //
  18456. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18457. // API operation EnableVpcClassicLinkDnsSupport for usage and error information.
  18458. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupport
  18459. func (c *EC2) EnableVpcClassicLinkDnsSupport(input *EnableVpcClassicLinkDnsSupportInput) (*EnableVpcClassicLinkDnsSupportOutput, error) {
  18460. req, out := c.EnableVpcClassicLinkDnsSupportRequest(input)
  18461. return out, req.Send()
  18462. }
  18463. // EnableVpcClassicLinkDnsSupportWithContext is the same as EnableVpcClassicLinkDnsSupport with the addition of
  18464. // the ability to pass a context and additional request options.
  18465. //
  18466. // See EnableVpcClassicLinkDnsSupport for details on how to use this API operation.
  18467. //
  18468. // The context must be non-nil and will be used for request cancellation. If
  18469. // the context is nil a panic will occur. In the future the SDK may create
  18470. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18471. // for more information on using Contexts.
  18472. func (c *EC2) EnableVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *EnableVpcClassicLinkDnsSupportInput, opts ...request.Option) (*EnableVpcClassicLinkDnsSupportOutput, error) {
  18473. req, out := c.EnableVpcClassicLinkDnsSupportRequest(input)
  18474. req.SetContext(ctx)
  18475. req.ApplyOptions(opts...)
  18476. return out, req.Send()
  18477. }
  18478. const opExportClientVpnClientCertificateRevocationList = "ExportClientVpnClientCertificateRevocationList"
  18479. // ExportClientVpnClientCertificateRevocationListRequest generates a "aws/request.Request" representing the
  18480. // client's request for the ExportClientVpnClientCertificateRevocationList operation. The "output" return
  18481. // value will be populated with the request's response once the request completes
  18482. // successfully.
  18483. //
  18484. // Use "Send" method on the returned Request to send the API call to the service.
  18485. // the "output" return value is not valid until after Send returns without error.
  18486. //
  18487. // See ExportClientVpnClientCertificateRevocationList for more information on using the ExportClientVpnClientCertificateRevocationList
  18488. // API call, and error handling.
  18489. //
  18490. // This method is useful when you want to inject custom logic or configuration
  18491. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18492. //
  18493. //
  18494. // // Example sending a request using the ExportClientVpnClientCertificateRevocationListRequest method.
  18495. // req, resp := client.ExportClientVpnClientCertificateRevocationListRequest(params)
  18496. //
  18497. // err := req.Send()
  18498. // if err == nil { // resp is now filled
  18499. // fmt.Println(resp)
  18500. // }
  18501. //
  18502. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportClientVpnClientCertificateRevocationList
  18503. func (c *EC2) ExportClientVpnClientCertificateRevocationListRequest(input *ExportClientVpnClientCertificateRevocationListInput) (req *request.Request, output *ExportClientVpnClientCertificateRevocationListOutput) {
  18504. op := &request.Operation{
  18505. Name: opExportClientVpnClientCertificateRevocationList,
  18506. HTTPMethod: "POST",
  18507. HTTPPath: "/",
  18508. }
  18509. if input == nil {
  18510. input = &ExportClientVpnClientCertificateRevocationListInput{}
  18511. }
  18512. output = &ExportClientVpnClientCertificateRevocationListOutput{}
  18513. req = c.newRequest(op, input, output)
  18514. return
  18515. }
  18516. // ExportClientVpnClientCertificateRevocationList API operation for Amazon Elastic Compute Cloud.
  18517. //
  18518. // Downloads the client certificate revocation list for the specified Client
  18519. // VPN endpoint.
  18520. //
  18521. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18522. // with awserr.Error's Code and Message methods to get detailed information about
  18523. // the error.
  18524. //
  18525. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18526. // API operation ExportClientVpnClientCertificateRevocationList for usage and error information.
  18527. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportClientVpnClientCertificateRevocationList
  18528. func (c *EC2) ExportClientVpnClientCertificateRevocationList(input *ExportClientVpnClientCertificateRevocationListInput) (*ExportClientVpnClientCertificateRevocationListOutput, error) {
  18529. req, out := c.ExportClientVpnClientCertificateRevocationListRequest(input)
  18530. return out, req.Send()
  18531. }
  18532. // ExportClientVpnClientCertificateRevocationListWithContext is the same as ExportClientVpnClientCertificateRevocationList with the addition of
  18533. // the ability to pass a context and additional request options.
  18534. //
  18535. // See ExportClientVpnClientCertificateRevocationList for details on how to use this API operation.
  18536. //
  18537. // The context must be non-nil and will be used for request cancellation. If
  18538. // the context is nil a panic will occur. In the future the SDK may create
  18539. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18540. // for more information on using Contexts.
  18541. func (c *EC2) ExportClientVpnClientCertificateRevocationListWithContext(ctx aws.Context, input *ExportClientVpnClientCertificateRevocationListInput, opts ...request.Option) (*ExportClientVpnClientCertificateRevocationListOutput, error) {
  18542. req, out := c.ExportClientVpnClientCertificateRevocationListRequest(input)
  18543. req.SetContext(ctx)
  18544. req.ApplyOptions(opts...)
  18545. return out, req.Send()
  18546. }
  18547. const opExportClientVpnClientConfiguration = "ExportClientVpnClientConfiguration"
  18548. // ExportClientVpnClientConfigurationRequest generates a "aws/request.Request" representing the
  18549. // client's request for the ExportClientVpnClientConfiguration operation. The "output" return
  18550. // value will be populated with the request's response once the request completes
  18551. // successfully.
  18552. //
  18553. // Use "Send" method on the returned Request to send the API call to the service.
  18554. // the "output" return value is not valid until after Send returns without error.
  18555. //
  18556. // See ExportClientVpnClientConfiguration for more information on using the ExportClientVpnClientConfiguration
  18557. // API call, and error handling.
  18558. //
  18559. // This method is useful when you want to inject custom logic or configuration
  18560. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18561. //
  18562. //
  18563. // // Example sending a request using the ExportClientVpnClientConfigurationRequest method.
  18564. // req, resp := client.ExportClientVpnClientConfigurationRequest(params)
  18565. //
  18566. // err := req.Send()
  18567. // if err == nil { // resp is now filled
  18568. // fmt.Println(resp)
  18569. // }
  18570. //
  18571. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportClientVpnClientConfiguration
  18572. func (c *EC2) ExportClientVpnClientConfigurationRequest(input *ExportClientVpnClientConfigurationInput) (req *request.Request, output *ExportClientVpnClientConfigurationOutput) {
  18573. op := &request.Operation{
  18574. Name: opExportClientVpnClientConfiguration,
  18575. HTTPMethod: "POST",
  18576. HTTPPath: "/",
  18577. }
  18578. if input == nil {
  18579. input = &ExportClientVpnClientConfigurationInput{}
  18580. }
  18581. output = &ExportClientVpnClientConfigurationOutput{}
  18582. req = c.newRequest(op, input, output)
  18583. return
  18584. }
  18585. // ExportClientVpnClientConfiguration API operation for Amazon Elastic Compute Cloud.
  18586. //
  18587. // Downloads the contents of the Client VPN endpoint configuration file for
  18588. // the specified Client VPN endpoint. The Client VPN endpoint configuration
  18589. // file includes the Client VPN endpoint and certificate information clients
  18590. // need to establish a connection with the Client VPN endpoint.
  18591. //
  18592. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18593. // with awserr.Error's Code and Message methods to get detailed information about
  18594. // the error.
  18595. //
  18596. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18597. // API operation ExportClientVpnClientConfiguration for usage and error information.
  18598. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportClientVpnClientConfiguration
  18599. func (c *EC2) ExportClientVpnClientConfiguration(input *ExportClientVpnClientConfigurationInput) (*ExportClientVpnClientConfigurationOutput, error) {
  18600. req, out := c.ExportClientVpnClientConfigurationRequest(input)
  18601. return out, req.Send()
  18602. }
  18603. // ExportClientVpnClientConfigurationWithContext is the same as ExportClientVpnClientConfiguration with the addition of
  18604. // the ability to pass a context and additional request options.
  18605. //
  18606. // See ExportClientVpnClientConfiguration for details on how to use this API operation.
  18607. //
  18608. // The context must be non-nil and will be used for request cancellation. If
  18609. // the context is nil a panic will occur. In the future the SDK may create
  18610. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18611. // for more information on using Contexts.
  18612. func (c *EC2) ExportClientVpnClientConfigurationWithContext(ctx aws.Context, input *ExportClientVpnClientConfigurationInput, opts ...request.Option) (*ExportClientVpnClientConfigurationOutput, error) {
  18613. req, out := c.ExportClientVpnClientConfigurationRequest(input)
  18614. req.SetContext(ctx)
  18615. req.ApplyOptions(opts...)
  18616. return out, req.Send()
  18617. }
  18618. const opExportTransitGatewayRoutes = "ExportTransitGatewayRoutes"
  18619. // ExportTransitGatewayRoutesRequest generates a "aws/request.Request" representing the
  18620. // client's request for the ExportTransitGatewayRoutes operation. The "output" return
  18621. // value will be populated with the request's response once the request completes
  18622. // successfully.
  18623. //
  18624. // Use "Send" method on the returned Request to send the API call to the service.
  18625. // the "output" return value is not valid until after Send returns without error.
  18626. //
  18627. // See ExportTransitGatewayRoutes for more information on using the ExportTransitGatewayRoutes
  18628. // API call, and error handling.
  18629. //
  18630. // This method is useful when you want to inject custom logic or configuration
  18631. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18632. //
  18633. //
  18634. // // Example sending a request using the ExportTransitGatewayRoutesRequest method.
  18635. // req, resp := client.ExportTransitGatewayRoutesRequest(params)
  18636. //
  18637. // err := req.Send()
  18638. // if err == nil { // resp is now filled
  18639. // fmt.Println(resp)
  18640. // }
  18641. //
  18642. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportTransitGatewayRoutes
  18643. func (c *EC2) ExportTransitGatewayRoutesRequest(input *ExportTransitGatewayRoutesInput) (req *request.Request, output *ExportTransitGatewayRoutesOutput) {
  18644. op := &request.Operation{
  18645. Name: opExportTransitGatewayRoutes,
  18646. HTTPMethod: "POST",
  18647. HTTPPath: "/",
  18648. }
  18649. if input == nil {
  18650. input = &ExportTransitGatewayRoutesInput{}
  18651. }
  18652. output = &ExportTransitGatewayRoutesOutput{}
  18653. req = c.newRequest(op, input, output)
  18654. return
  18655. }
  18656. // ExportTransitGatewayRoutes API operation for Amazon Elastic Compute Cloud.
  18657. //
  18658. // Exports routes from the specified transit gateway route table to the specified
  18659. // S3 bucket. By default, all routes are exported. Alternatively, you can filter
  18660. // by CIDR range.
  18661. //
  18662. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18663. // with awserr.Error's Code and Message methods to get detailed information about
  18664. // the error.
  18665. //
  18666. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18667. // API operation ExportTransitGatewayRoutes for usage and error information.
  18668. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportTransitGatewayRoutes
  18669. func (c *EC2) ExportTransitGatewayRoutes(input *ExportTransitGatewayRoutesInput) (*ExportTransitGatewayRoutesOutput, error) {
  18670. req, out := c.ExportTransitGatewayRoutesRequest(input)
  18671. return out, req.Send()
  18672. }
  18673. // ExportTransitGatewayRoutesWithContext is the same as ExportTransitGatewayRoutes with the addition of
  18674. // the ability to pass a context and additional request options.
  18675. //
  18676. // See ExportTransitGatewayRoutes for details on how to use this API operation.
  18677. //
  18678. // The context must be non-nil and will be used for request cancellation. If
  18679. // the context is nil a panic will occur. In the future the SDK may create
  18680. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18681. // for more information on using Contexts.
  18682. func (c *EC2) ExportTransitGatewayRoutesWithContext(ctx aws.Context, input *ExportTransitGatewayRoutesInput, opts ...request.Option) (*ExportTransitGatewayRoutesOutput, error) {
  18683. req, out := c.ExportTransitGatewayRoutesRequest(input)
  18684. req.SetContext(ctx)
  18685. req.ApplyOptions(opts...)
  18686. return out, req.Send()
  18687. }
  18688. const opGetConsoleOutput = "GetConsoleOutput"
  18689. // GetConsoleOutputRequest generates a "aws/request.Request" representing the
  18690. // client's request for the GetConsoleOutput operation. The "output" return
  18691. // value will be populated with the request's response once the request completes
  18692. // successfully.
  18693. //
  18694. // Use "Send" method on the returned Request to send the API call to the service.
  18695. // the "output" return value is not valid until after Send returns without error.
  18696. //
  18697. // See GetConsoleOutput for more information on using the GetConsoleOutput
  18698. // API call, and error handling.
  18699. //
  18700. // This method is useful when you want to inject custom logic or configuration
  18701. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18702. //
  18703. //
  18704. // // Example sending a request using the GetConsoleOutputRequest method.
  18705. // req, resp := client.GetConsoleOutputRequest(params)
  18706. //
  18707. // err := req.Send()
  18708. // if err == nil { // resp is now filled
  18709. // fmt.Println(resp)
  18710. // }
  18711. //
  18712. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutput
  18713. func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *request.Request, output *GetConsoleOutputOutput) {
  18714. op := &request.Operation{
  18715. Name: opGetConsoleOutput,
  18716. HTTPMethod: "POST",
  18717. HTTPPath: "/",
  18718. }
  18719. if input == nil {
  18720. input = &GetConsoleOutputInput{}
  18721. }
  18722. output = &GetConsoleOutputOutput{}
  18723. req = c.newRequest(op, input, output)
  18724. return
  18725. }
  18726. // GetConsoleOutput API operation for Amazon Elastic Compute Cloud.
  18727. //
  18728. // Gets the console output for the specified instance. For Linux instances,
  18729. // the instance console output displays the exact console output that would
  18730. // normally be displayed on a physical monitor attached to a computer. For Windows
  18731. // instances, the instance console output includes the last three system event
  18732. // log errors.
  18733. //
  18734. // By default, the console output returns buffered information that was posted
  18735. // shortly after an instance transition state (start, stop, reboot, or terminate).
  18736. // This information is available for at least one hour after the most recent
  18737. // post. Only the most recent 64 KB of console output is available.
  18738. //
  18739. // You can optionally retrieve the latest serial console output at any time
  18740. // during the instance lifecycle. This option is supported on instance types
  18741. // that use the Nitro hypervisor.
  18742. //
  18743. // For more information, see Instance Console Output (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html#instance-console-console-output)
  18744. // in the Amazon Elastic Compute Cloud User Guide.
  18745. //
  18746. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18747. // with awserr.Error's Code and Message methods to get detailed information about
  18748. // the error.
  18749. //
  18750. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18751. // API operation GetConsoleOutput for usage and error information.
  18752. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutput
  18753. func (c *EC2) GetConsoleOutput(input *GetConsoleOutputInput) (*GetConsoleOutputOutput, error) {
  18754. req, out := c.GetConsoleOutputRequest(input)
  18755. return out, req.Send()
  18756. }
  18757. // GetConsoleOutputWithContext is the same as GetConsoleOutput with the addition of
  18758. // the ability to pass a context and additional request options.
  18759. //
  18760. // See GetConsoleOutput for details on how to use this API operation.
  18761. //
  18762. // The context must be non-nil and will be used for request cancellation. If
  18763. // the context is nil a panic will occur. In the future the SDK may create
  18764. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18765. // for more information on using Contexts.
  18766. func (c *EC2) GetConsoleOutputWithContext(ctx aws.Context, input *GetConsoleOutputInput, opts ...request.Option) (*GetConsoleOutputOutput, error) {
  18767. req, out := c.GetConsoleOutputRequest(input)
  18768. req.SetContext(ctx)
  18769. req.ApplyOptions(opts...)
  18770. return out, req.Send()
  18771. }
  18772. const opGetConsoleScreenshot = "GetConsoleScreenshot"
  18773. // GetConsoleScreenshotRequest generates a "aws/request.Request" representing the
  18774. // client's request for the GetConsoleScreenshot operation. The "output" return
  18775. // value will be populated with the request's response once the request completes
  18776. // successfully.
  18777. //
  18778. // Use "Send" method on the returned Request to send the API call to the service.
  18779. // the "output" return value is not valid until after Send returns without error.
  18780. //
  18781. // See GetConsoleScreenshot for more information on using the GetConsoleScreenshot
  18782. // API call, and error handling.
  18783. //
  18784. // This method is useful when you want to inject custom logic or configuration
  18785. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18786. //
  18787. //
  18788. // // Example sending a request using the GetConsoleScreenshotRequest method.
  18789. // req, resp := client.GetConsoleScreenshotRequest(params)
  18790. //
  18791. // err := req.Send()
  18792. // if err == nil { // resp is now filled
  18793. // fmt.Println(resp)
  18794. // }
  18795. //
  18796. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshot
  18797. func (c *EC2) GetConsoleScreenshotRequest(input *GetConsoleScreenshotInput) (req *request.Request, output *GetConsoleScreenshotOutput) {
  18798. op := &request.Operation{
  18799. Name: opGetConsoleScreenshot,
  18800. HTTPMethod: "POST",
  18801. HTTPPath: "/",
  18802. }
  18803. if input == nil {
  18804. input = &GetConsoleScreenshotInput{}
  18805. }
  18806. output = &GetConsoleScreenshotOutput{}
  18807. req = c.newRequest(op, input, output)
  18808. return
  18809. }
  18810. // GetConsoleScreenshot API operation for Amazon Elastic Compute Cloud.
  18811. //
  18812. // Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.
  18813. //
  18814. // The returned content is Base64-encoded.
  18815. //
  18816. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18817. // with awserr.Error's Code and Message methods to get detailed information about
  18818. // the error.
  18819. //
  18820. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18821. // API operation GetConsoleScreenshot for usage and error information.
  18822. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshot
  18823. func (c *EC2) GetConsoleScreenshot(input *GetConsoleScreenshotInput) (*GetConsoleScreenshotOutput, error) {
  18824. req, out := c.GetConsoleScreenshotRequest(input)
  18825. return out, req.Send()
  18826. }
  18827. // GetConsoleScreenshotWithContext is the same as GetConsoleScreenshot with the addition of
  18828. // the ability to pass a context and additional request options.
  18829. //
  18830. // See GetConsoleScreenshot for details on how to use this API operation.
  18831. //
  18832. // The context must be non-nil and will be used for request cancellation. If
  18833. // the context is nil a panic will occur. In the future the SDK may create
  18834. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18835. // for more information on using Contexts.
  18836. func (c *EC2) GetConsoleScreenshotWithContext(ctx aws.Context, input *GetConsoleScreenshotInput, opts ...request.Option) (*GetConsoleScreenshotOutput, error) {
  18837. req, out := c.GetConsoleScreenshotRequest(input)
  18838. req.SetContext(ctx)
  18839. req.ApplyOptions(opts...)
  18840. return out, req.Send()
  18841. }
  18842. const opGetHostReservationPurchasePreview = "GetHostReservationPurchasePreview"
  18843. // GetHostReservationPurchasePreviewRequest generates a "aws/request.Request" representing the
  18844. // client's request for the GetHostReservationPurchasePreview operation. The "output" return
  18845. // value will be populated with the request's response once the request completes
  18846. // successfully.
  18847. //
  18848. // Use "Send" method on the returned Request to send the API call to the service.
  18849. // the "output" return value is not valid until after Send returns without error.
  18850. //
  18851. // See GetHostReservationPurchasePreview for more information on using the GetHostReservationPurchasePreview
  18852. // API call, and error handling.
  18853. //
  18854. // This method is useful when you want to inject custom logic or configuration
  18855. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18856. //
  18857. //
  18858. // // Example sending a request using the GetHostReservationPurchasePreviewRequest method.
  18859. // req, resp := client.GetHostReservationPurchasePreviewRequest(params)
  18860. //
  18861. // err := req.Send()
  18862. // if err == nil { // resp is now filled
  18863. // fmt.Println(resp)
  18864. // }
  18865. //
  18866. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreview
  18867. func (c *EC2) GetHostReservationPurchasePreviewRequest(input *GetHostReservationPurchasePreviewInput) (req *request.Request, output *GetHostReservationPurchasePreviewOutput) {
  18868. op := &request.Operation{
  18869. Name: opGetHostReservationPurchasePreview,
  18870. HTTPMethod: "POST",
  18871. HTTPPath: "/",
  18872. }
  18873. if input == nil {
  18874. input = &GetHostReservationPurchasePreviewInput{}
  18875. }
  18876. output = &GetHostReservationPurchasePreviewOutput{}
  18877. req = c.newRequest(op, input, output)
  18878. return
  18879. }
  18880. // GetHostReservationPurchasePreview API operation for Amazon Elastic Compute Cloud.
  18881. //
  18882. // Preview a reservation purchase with configurations that match those of your
  18883. // Dedicated Host. You must have active Dedicated Hosts in your account before
  18884. // you purchase a reservation.
  18885. //
  18886. // This is a preview of the PurchaseHostReservation action and does not result
  18887. // in the offering being purchased.
  18888. //
  18889. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18890. // with awserr.Error's Code and Message methods to get detailed information about
  18891. // the error.
  18892. //
  18893. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18894. // API operation GetHostReservationPurchasePreview for usage and error information.
  18895. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreview
  18896. func (c *EC2) GetHostReservationPurchasePreview(input *GetHostReservationPurchasePreviewInput) (*GetHostReservationPurchasePreviewOutput, error) {
  18897. req, out := c.GetHostReservationPurchasePreviewRequest(input)
  18898. return out, req.Send()
  18899. }
  18900. // GetHostReservationPurchasePreviewWithContext is the same as GetHostReservationPurchasePreview with the addition of
  18901. // the ability to pass a context and additional request options.
  18902. //
  18903. // See GetHostReservationPurchasePreview for details on how to use this API operation.
  18904. //
  18905. // The context must be non-nil and will be used for request cancellation. If
  18906. // the context is nil a panic will occur. In the future the SDK may create
  18907. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18908. // for more information on using Contexts.
  18909. func (c *EC2) GetHostReservationPurchasePreviewWithContext(ctx aws.Context, input *GetHostReservationPurchasePreviewInput, opts ...request.Option) (*GetHostReservationPurchasePreviewOutput, error) {
  18910. req, out := c.GetHostReservationPurchasePreviewRequest(input)
  18911. req.SetContext(ctx)
  18912. req.ApplyOptions(opts...)
  18913. return out, req.Send()
  18914. }
  18915. const opGetLaunchTemplateData = "GetLaunchTemplateData"
  18916. // GetLaunchTemplateDataRequest generates a "aws/request.Request" representing the
  18917. // client's request for the GetLaunchTemplateData operation. The "output" return
  18918. // value will be populated with the request's response once the request completes
  18919. // successfully.
  18920. //
  18921. // Use "Send" method on the returned Request to send the API call to the service.
  18922. // the "output" return value is not valid until after Send returns without error.
  18923. //
  18924. // See GetLaunchTemplateData for more information on using the GetLaunchTemplateData
  18925. // API call, and error handling.
  18926. //
  18927. // This method is useful when you want to inject custom logic or configuration
  18928. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18929. //
  18930. //
  18931. // // Example sending a request using the GetLaunchTemplateDataRequest method.
  18932. // req, resp := client.GetLaunchTemplateDataRequest(params)
  18933. //
  18934. // err := req.Send()
  18935. // if err == nil { // resp is now filled
  18936. // fmt.Println(resp)
  18937. // }
  18938. //
  18939. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData
  18940. func (c *EC2) GetLaunchTemplateDataRequest(input *GetLaunchTemplateDataInput) (req *request.Request, output *GetLaunchTemplateDataOutput) {
  18941. op := &request.Operation{
  18942. Name: opGetLaunchTemplateData,
  18943. HTTPMethod: "POST",
  18944. HTTPPath: "/",
  18945. }
  18946. if input == nil {
  18947. input = &GetLaunchTemplateDataInput{}
  18948. }
  18949. output = &GetLaunchTemplateDataOutput{}
  18950. req = c.newRequest(op, input, output)
  18951. return
  18952. }
  18953. // GetLaunchTemplateData API operation for Amazon Elastic Compute Cloud.
  18954. //
  18955. // Retrieves the configuration data of the specified instance. You can use this
  18956. // data to create a launch template.
  18957. //
  18958. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18959. // with awserr.Error's Code and Message methods to get detailed information about
  18960. // the error.
  18961. //
  18962. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18963. // API operation GetLaunchTemplateData for usage and error information.
  18964. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData
  18965. func (c *EC2) GetLaunchTemplateData(input *GetLaunchTemplateDataInput) (*GetLaunchTemplateDataOutput, error) {
  18966. req, out := c.GetLaunchTemplateDataRequest(input)
  18967. return out, req.Send()
  18968. }
  18969. // GetLaunchTemplateDataWithContext is the same as GetLaunchTemplateData with the addition of
  18970. // the ability to pass a context and additional request options.
  18971. //
  18972. // See GetLaunchTemplateData for details on how to use this API operation.
  18973. //
  18974. // The context must be non-nil and will be used for request cancellation. If
  18975. // the context is nil a panic will occur. In the future the SDK may create
  18976. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18977. // for more information on using Contexts.
  18978. func (c *EC2) GetLaunchTemplateDataWithContext(ctx aws.Context, input *GetLaunchTemplateDataInput, opts ...request.Option) (*GetLaunchTemplateDataOutput, error) {
  18979. req, out := c.GetLaunchTemplateDataRequest(input)
  18980. req.SetContext(ctx)
  18981. req.ApplyOptions(opts...)
  18982. return out, req.Send()
  18983. }
  18984. const opGetPasswordData = "GetPasswordData"
  18985. // GetPasswordDataRequest generates a "aws/request.Request" representing the
  18986. // client's request for the GetPasswordData operation. The "output" return
  18987. // value will be populated with the request's response once the request completes
  18988. // successfully.
  18989. //
  18990. // Use "Send" method on the returned Request to send the API call to the service.
  18991. // the "output" return value is not valid until after Send returns without error.
  18992. //
  18993. // See GetPasswordData for more information on using the GetPasswordData
  18994. // API call, and error handling.
  18995. //
  18996. // This method is useful when you want to inject custom logic or configuration
  18997. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18998. //
  18999. //
  19000. // // Example sending a request using the GetPasswordDataRequest method.
  19001. // req, resp := client.GetPasswordDataRequest(params)
  19002. //
  19003. // err := req.Send()
  19004. // if err == nil { // resp is now filled
  19005. // fmt.Println(resp)
  19006. // }
  19007. //
  19008. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordData
  19009. func (c *EC2) GetPasswordDataRequest(input *GetPasswordDataInput) (req *request.Request, output *GetPasswordDataOutput) {
  19010. op := &request.Operation{
  19011. Name: opGetPasswordData,
  19012. HTTPMethod: "POST",
  19013. HTTPPath: "/",
  19014. }
  19015. if input == nil {
  19016. input = &GetPasswordDataInput{}
  19017. }
  19018. output = &GetPasswordDataOutput{}
  19019. req = c.newRequest(op, input, output)
  19020. return
  19021. }
  19022. // GetPasswordData API operation for Amazon Elastic Compute Cloud.
  19023. //
  19024. // Retrieves the encrypted administrator password for a running Windows instance.
  19025. //
  19026. // The Windows password is generated at boot by the EC2Config service or EC2Launch
  19027. // scripts (Windows Server 2016 and later). This usually only happens the first
  19028. // time an instance is launched. For more information, see EC2Config (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/UsingConfig_WinAMI.html)
  19029. // and EC2Launch (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2launch.html)
  19030. // in the Amazon Elastic Compute Cloud User Guide.
  19031. //
  19032. // For the EC2Config service, the password is not generated for rebundled AMIs
  19033. // unless Ec2SetPassword is enabled before bundling.
  19034. //
  19035. // The password is encrypted using the key pair that you specified when you
  19036. // launched the instance. You must provide the corresponding key pair file.
  19037. //
  19038. // When you launch an instance, password generation and encryption may take
  19039. // a few minutes. If you try to retrieve the password before it's available,
  19040. // the output returns an empty string. We recommend that you wait up to 15 minutes
  19041. // after launching an instance before trying to retrieve the generated password.
  19042. //
  19043. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19044. // with awserr.Error's Code and Message methods to get detailed information about
  19045. // the error.
  19046. //
  19047. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19048. // API operation GetPasswordData for usage and error information.
  19049. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordData
  19050. func (c *EC2) GetPasswordData(input *GetPasswordDataInput) (*GetPasswordDataOutput, error) {
  19051. req, out := c.GetPasswordDataRequest(input)
  19052. return out, req.Send()
  19053. }
  19054. // GetPasswordDataWithContext is the same as GetPasswordData with the addition of
  19055. // the ability to pass a context and additional request options.
  19056. //
  19057. // See GetPasswordData for details on how to use this API operation.
  19058. //
  19059. // The context must be non-nil and will be used for request cancellation. If
  19060. // the context is nil a panic will occur. In the future the SDK may create
  19061. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19062. // for more information on using Contexts.
  19063. func (c *EC2) GetPasswordDataWithContext(ctx aws.Context, input *GetPasswordDataInput, opts ...request.Option) (*GetPasswordDataOutput, error) {
  19064. req, out := c.GetPasswordDataRequest(input)
  19065. req.SetContext(ctx)
  19066. req.ApplyOptions(opts...)
  19067. return out, req.Send()
  19068. }
  19069. const opGetReservedInstancesExchangeQuote = "GetReservedInstancesExchangeQuote"
  19070. // GetReservedInstancesExchangeQuoteRequest generates a "aws/request.Request" representing the
  19071. // client's request for the GetReservedInstancesExchangeQuote operation. The "output" return
  19072. // value will be populated with the request's response once the request completes
  19073. // successfully.
  19074. //
  19075. // Use "Send" method on the returned Request to send the API call to the service.
  19076. // the "output" return value is not valid until after Send returns without error.
  19077. //
  19078. // See GetReservedInstancesExchangeQuote for more information on using the GetReservedInstancesExchangeQuote
  19079. // API call, and error handling.
  19080. //
  19081. // This method is useful when you want to inject custom logic or configuration
  19082. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19083. //
  19084. //
  19085. // // Example sending a request using the GetReservedInstancesExchangeQuoteRequest method.
  19086. // req, resp := client.GetReservedInstancesExchangeQuoteRequest(params)
  19087. //
  19088. // err := req.Send()
  19089. // if err == nil { // resp is now filled
  19090. // fmt.Println(resp)
  19091. // }
  19092. //
  19093. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuote
  19094. func (c *EC2) GetReservedInstancesExchangeQuoteRequest(input *GetReservedInstancesExchangeQuoteInput) (req *request.Request, output *GetReservedInstancesExchangeQuoteOutput) {
  19095. op := &request.Operation{
  19096. Name: opGetReservedInstancesExchangeQuote,
  19097. HTTPMethod: "POST",
  19098. HTTPPath: "/",
  19099. }
  19100. if input == nil {
  19101. input = &GetReservedInstancesExchangeQuoteInput{}
  19102. }
  19103. output = &GetReservedInstancesExchangeQuoteOutput{}
  19104. req = c.newRequest(op, input, output)
  19105. return
  19106. }
  19107. // GetReservedInstancesExchangeQuote API operation for Amazon Elastic Compute Cloud.
  19108. //
  19109. // Returns a quote and exchange information for exchanging one or more specified
  19110. // Convertible Reserved Instances for a new Convertible Reserved Instance. If
  19111. // the exchange cannot be performed, the reason is returned in the response.
  19112. // Use AcceptReservedInstancesExchangeQuote to perform the exchange.
  19113. //
  19114. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19115. // with awserr.Error's Code and Message methods to get detailed information about
  19116. // the error.
  19117. //
  19118. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19119. // API operation GetReservedInstancesExchangeQuote for usage and error information.
  19120. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuote
  19121. func (c *EC2) GetReservedInstancesExchangeQuote(input *GetReservedInstancesExchangeQuoteInput) (*GetReservedInstancesExchangeQuoteOutput, error) {
  19122. req, out := c.GetReservedInstancesExchangeQuoteRequest(input)
  19123. return out, req.Send()
  19124. }
  19125. // GetReservedInstancesExchangeQuoteWithContext is the same as GetReservedInstancesExchangeQuote with the addition of
  19126. // the ability to pass a context and additional request options.
  19127. //
  19128. // See GetReservedInstancesExchangeQuote for details on how to use this API operation.
  19129. //
  19130. // The context must be non-nil and will be used for request cancellation. If
  19131. // the context is nil a panic will occur. In the future the SDK may create
  19132. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19133. // for more information on using Contexts.
  19134. func (c *EC2) GetReservedInstancesExchangeQuoteWithContext(ctx aws.Context, input *GetReservedInstancesExchangeQuoteInput, opts ...request.Option) (*GetReservedInstancesExchangeQuoteOutput, error) {
  19135. req, out := c.GetReservedInstancesExchangeQuoteRequest(input)
  19136. req.SetContext(ctx)
  19137. req.ApplyOptions(opts...)
  19138. return out, req.Send()
  19139. }
  19140. const opGetTransitGatewayAttachmentPropagations = "GetTransitGatewayAttachmentPropagations"
  19141. // GetTransitGatewayAttachmentPropagationsRequest generates a "aws/request.Request" representing the
  19142. // client's request for the GetTransitGatewayAttachmentPropagations operation. The "output" return
  19143. // value will be populated with the request's response once the request completes
  19144. // successfully.
  19145. //
  19146. // Use "Send" method on the returned Request to send the API call to the service.
  19147. // the "output" return value is not valid until after Send returns without error.
  19148. //
  19149. // See GetTransitGatewayAttachmentPropagations for more information on using the GetTransitGatewayAttachmentPropagations
  19150. // API call, and error handling.
  19151. //
  19152. // This method is useful when you want to inject custom logic or configuration
  19153. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19154. //
  19155. //
  19156. // // Example sending a request using the GetTransitGatewayAttachmentPropagationsRequest method.
  19157. // req, resp := client.GetTransitGatewayAttachmentPropagationsRequest(params)
  19158. //
  19159. // err := req.Send()
  19160. // if err == nil { // resp is now filled
  19161. // fmt.Println(resp)
  19162. // }
  19163. //
  19164. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayAttachmentPropagations
  19165. func (c *EC2) GetTransitGatewayAttachmentPropagationsRequest(input *GetTransitGatewayAttachmentPropagationsInput) (req *request.Request, output *GetTransitGatewayAttachmentPropagationsOutput) {
  19166. op := &request.Operation{
  19167. Name: opGetTransitGatewayAttachmentPropagations,
  19168. HTTPMethod: "POST",
  19169. HTTPPath: "/",
  19170. }
  19171. if input == nil {
  19172. input = &GetTransitGatewayAttachmentPropagationsInput{}
  19173. }
  19174. output = &GetTransitGatewayAttachmentPropagationsOutput{}
  19175. req = c.newRequest(op, input, output)
  19176. return
  19177. }
  19178. // GetTransitGatewayAttachmentPropagations API operation for Amazon Elastic Compute Cloud.
  19179. //
  19180. // Lists the route tables to which the specified resource attachment propagates
  19181. // routes.
  19182. //
  19183. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19184. // with awserr.Error's Code and Message methods to get detailed information about
  19185. // the error.
  19186. //
  19187. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19188. // API operation GetTransitGatewayAttachmentPropagations for usage and error information.
  19189. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayAttachmentPropagations
  19190. func (c *EC2) GetTransitGatewayAttachmentPropagations(input *GetTransitGatewayAttachmentPropagationsInput) (*GetTransitGatewayAttachmentPropagationsOutput, error) {
  19191. req, out := c.GetTransitGatewayAttachmentPropagationsRequest(input)
  19192. return out, req.Send()
  19193. }
  19194. // GetTransitGatewayAttachmentPropagationsWithContext is the same as GetTransitGatewayAttachmentPropagations with the addition of
  19195. // the ability to pass a context and additional request options.
  19196. //
  19197. // See GetTransitGatewayAttachmentPropagations for details on how to use this API operation.
  19198. //
  19199. // The context must be non-nil and will be used for request cancellation. If
  19200. // the context is nil a panic will occur. In the future the SDK may create
  19201. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19202. // for more information on using Contexts.
  19203. func (c *EC2) GetTransitGatewayAttachmentPropagationsWithContext(ctx aws.Context, input *GetTransitGatewayAttachmentPropagationsInput, opts ...request.Option) (*GetTransitGatewayAttachmentPropagationsOutput, error) {
  19204. req, out := c.GetTransitGatewayAttachmentPropagationsRequest(input)
  19205. req.SetContext(ctx)
  19206. req.ApplyOptions(opts...)
  19207. return out, req.Send()
  19208. }
  19209. const opGetTransitGatewayRouteTableAssociations = "GetTransitGatewayRouteTableAssociations"
  19210. // GetTransitGatewayRouteTableAssociationsRequest generates a "aws/request.Request" representing the
  19211. // client's request for the GetTransitGatewayRouteTableAssociations operation. The "output" return
  19212. // value will be populated with the request's response once the request completes
  19213. // successfully.
  19214. //
  19215. // Use "Send" method on the returned Request to send the API call to the service.
  19216. // the "output" return value is not valid until after Send returns without error.
  19217. //
  19218. // See GetTransitGatewayRouteTableAssociations for more information on using the GetTransitGatewayRouteTableAssociations
  19219. // API call, and error handling.
  19220. //
  19221. // This method is useful when you want to inject custom logic or configuration
  19222. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19223. //
  19224. //
  19225. // // Example sending a request using the GetTransitGatewayRouteTableAssociationsRequest method.
  19226. // req, resp := client.GetTransitGatewayRouteTableAssociationsRequest(params)
  19227. //
  19228. // err := req.Send()
  19229. // if err == nil { // resp is now filled
  19230. // fmt.Println(resp)
  19231. // }
  19232. //
  19233. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTableAssociations
  19234. func (c *EC2) GetTransitGatewayRouteTableAssociationsRequest(input *GetTransitGatewayRouteTableAssociationsInput) (req *request.Request, output *GetTransitGatewayRouteTableAssociationsOutput) {
  19235. op := &request.Operation{
  19236. Name: opGetTransitGatewayRouteTableAssociations,
  19237. HTTPMethod: "POST",
  19238. HTTPPath: "/",
  19239. }
  19240. if input == nil {
  19241. input = &GetTransitGatewayRouteTableAssociationsInput{}
  19242. }
  19243. output = &GetTransitGatewayRouteTableAssociationsOutput{}
  19244. req = c.newRequest(op, input, output)
  19245. return
  19246. }
  19247. // GetTransitGatewayRouteTableAssociations API operation for Amazon Elastic Compute Cloud.
  19248. //
  19249. // Gets information about the associations for the specified transit gateway
  19250. // route table.
  19251. //
  19252. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19253. // with awserr.Error's Code and Message methods to get detailed information about
  19254. // the error.
  19255. //
  19256. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19257. // API operation GetTransitGatewayRouteTableAssociations for usage and error information.
  19258. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTableAssociations
  19259. func (c *EC2) GetTransitGatewayRouteTableAssociations(input *GetTransitGatewayRouteTableAssociationsInput) (*GetTransitGatewayRouteTableAssociationsOutput, error) {
  19260. req, out := c.GetTransitGatewayRouteTableAssociationsRequest(input)
  19261. return out, req.Send()
  19262. }
  19263. // GetTransitGatewayRouteTableAssociationsWithContext is the same as GetTransitGatewayRouteTableAssociations with the addition of
  19264. // the ability to pass a context and additional request options.
  19265. //
  19266. // See GetTransitGatewayRouteTableAssociations for details on how to use this API operation.
  19267. //
  19268. // The context must be non-nil and will be used for request cancellation. If
  19269. // the context is nil a panic will occur. In the future the SDK may create
  19270. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19271. // for more information on using Contexts.
  19272. func (c *EC2) GetTransitGatewayRouteTableAssociationsWithContext(ctx aws.Context, input *GetTransitGatewayRouteTableAssociationsInput, opts ...request.Option) (*GetTransitGatewayRouteTableAssociationsOutput, error) {
  19273. req, out := c.GetTransitGatewayRouteTableAssociationsRequest(input)
  19274. req.SetContext(ctx)
  19275. req.ApplyOptions(opts...)
  19276. return out, req.Send()
  19277. }
  19278. const opGetTransitGatewayRouteTablePropagations = "GetTransitGatewayRouteTablePropagations"
  19279. // GetTransitGatewayRouteTablePropagationsRequest generates a "aws/request.Request" representing the
  19280. // client's request for the GetTransitGatewayRouteTablePropagations operation. The "output" return
  19281. // value will be populated with the request's response once the request completes
  19282. // successfully.
  19283. //
  19284. // Use "Send" method on the returned Request to send the API call to the service.
  19285. // the "output" return value is not valid until after Send returns without error.
  19286. //
  19287. // See GetTransitGatewayRouteTablePropagations for more information on using the GetTransitGatewayRouteTablePropagations
  19288. // API call, and error handling.
  19289. //
  19290. // This method is useful when you want to inject custom logic or configuration
  19291. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19292. //
  19293. //
  19294. // // Example sending a request using the GetTransitGatewayRouteTablePropagationsRequest method.
  19295. // req, resp := client.GetTransitGatewayRouteTablePropagationsRequest(params)
  19296. //
  19297. // err := req.Send()
  19298. // if err == nil { // resp is now filled
  19299. // fmt.Println(resp)
  19300. // }
  19301. //
  19302. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTablePropagations
  19303. func (c *EC2) GetTransitGatewayRouteTablePropagationsRequest(input *GetTransitGatewayRouteTablePropagationsInput) (req *request.Request, output *GetTransitGatewayRouteTablePropagationsOutput) {
  19304. op := &request.Operation{
  19305. Name: opGetTransitGatewayRouteTablePropagations,
  19306. HTTPMethod: "POST",
  19307. HTTPPath: "/",
  19308. }
  19309. if input == nil {
  19310. input = &GetTransitGatewayRouteTablePropagationsInput{}
  19311. }
  19312. output = &GetTransitGatewayRouteTablePropagationsOutput{}
  19313. req = c.newRequest(op, input, output)
  19314. return
  19315. }
  19316. // GetTransitGatewayRouteTablePropagations API operation for Amazon Elastic Compute Cloud.
  19317. //
  19318. // Gets information about the route table propagations for the specified transit
  19319. // gateway route table.
  19320. //
  19321. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19322. // with awserr.Error's Code and Message methods to get detailed information about
  19323. // the error.
  19324. //
  19325. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19326. // API operation GetTransitGatewayRouteTablePropagations for usage and error information.
  19327. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTablePropagations
  19328. func (c *EC2) GetTransitGatewayRouteTablePropagations(input *GetTransitGatewayRouteTablePropagationsInput) (*GetTransitGatewayRouteTablePropagationsOutput, error) {
  19329. req, out := c.GetTransitGatewayRouteTablePropagationsRequest(input)
  19330. return out, req.Send()
  19331. }
  19332. // GetTransitGatewayRouteTablePropagationsWithContext is the same as GetTransitGatewayRouteTablePropagations with the addition of
  19333. // the ability to pass a context and additional request options.
  19334. //
  19335. // See GetTransitGatewayRouteTablePropagations for details on how to use this API operation.
  19336. //
  19337. // The context must be non-nil and will be used for request cancellation. If
  19338. // the context is nil a panic will occur. In the future the SDK may create
  19339. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19340. // for more information on using Contexts.
  19341. func (c *EC2) GetTransitGatewayRouteTablePropagationsWithContext(ctx aws.Context, input *GetTransitGatewayRouteTablePropagationsInput, opts ...request.Option) (*GetTransitGatewayRouteTablePropagationsOutput, error) {
  19342. req, out := c.GetTransitGatewayRouteTablePropagationsRequest(input)
  19343. req.SetContext(ctx)
  19344. req.ApplyOptions(opts...)
  19345. return out, req.Send()
  19346. }
  19347. const opImportClientVpnClientCertificateRevocationList = "ImportClientVpnClientCertificateRevocationList"
  19348. // ImportClientVpnClientCertificateRevocationListRequest generates a "aws/request.Request" representing the
  19349. // client's request for the ImportClientVpnClientCertificateRevocationList operation. The "output" return
  19350. // value will be populated with the request's response once the request completes
  19351. // successfully.
  19352. //
  19353. // Use "Send" method on the returned Request to send the API call to the service.
  19354. // the "output" return value is not valid until after Send returns without error.
  19355. //
  19356. // See ImportClientVpnClientCertificateRevocationList for more information on using the ImportClientVpnClientCertificateRevocationList
  19357. // API call, and error handling.
  19358. //
  19359. // This method is useful when you want to inject custom logic or configuration
  19360. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19361. //
  19362. //
  19363. // // Example sending a request using the ImportClientVpnClientCertificateRevocationListRequest method.
  19364. // req, resp := client.ImportClientVpnClientCertificateRevocationListRequest(params)
  19365. //
  19366. // err := req.Send()
  19367. // if err == nil { // resp is now filled
  19368. // fmt.Println(resp)
  19369. // }
  19370. //
  19371. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportClientVpnClientCertificateRevocationList
  19372. func (c *EC2) ImportClientVpnClientCertificateRevocationListRequest(input *ImportClientVpnClientCertificateRevocationListInput) (req *request.Request, output *ImportClientVpnClientCertificateRevocationListOutput) {
  19373. op := &request.Operation{
  19374. Name: opImportClientVpnClientCertificateRevocationList,
  19375. HTTPMethod: "POST",
  19376. HTTPPath: "/",
  19377. }
  19378. if input == nil {
  19379. input = &ImportClientVpnClientCertificateRevocationListInput{}
  19380. }
  19381. output = &ImportClientVpnClientCertificateRevocationListOutput{}
  19382. req = c.newRequest(op, input, output)
  19383. return
  19384. }
  19385. // ImportClientVpnClientCertificateRevocationList API operation for Amazon Elastic Compute Cloud.
  19386. //
  19387. // Uploads a client certificate revocation list to the specified Client VPN
  19388. // endpoint. Uploading a client certificate revocation list overwrites the existing
  19389. // client certificate revocation list.
  19390. //
  19391. // Uploading a client certificate revocation list resets existing client connections.
  19392. //
  19393. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19394. // with awserr.Error's Code and Message methods to get detailed information about
  19395. // the error.
  19396. //
  19397. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19398. // API operation ImportClientVpnClientCertificateRevocationList for usage and error information.
  19399. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportClientVpnClientCertificateRevocationList
  19400. func (c *EC2) ImportClientVpnClientCertificateRevocationList(input *ImportClientVpnClientCertificateRevocationListInput) (*ImportClientVpnClientCertificateRevocationListOutput, error) {
  19401. req, out := c.ImportClientVpnClientCertificateRevocationListRequest(input)
  19402. return out, req.Send()
  19403. }
  19404. // ImportClientVpnClientCertificateRevocationListWithContext is the same as ImportClientVpnClientCertificateRevocationList with the addition of
  19405. // the ability to pass a context and additional request options.
  19406. //
  19407. // See ImportClientVpnClientCertificateRevocationList for details on how to use this API operation.
  19408. //
  19409. // The context must be non-nil and will be used for request cancellation. If
  19410. // the context is nil a panic will occur. In the future the SDK may create
  19411. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19412. // for more information on using Contexts.
  19413. func (c *EC2) ImportClientVpnClientCertificateRevocationListWithContext(ctx aws.Context, input *ImportClientVpnClientCertificateRevocationListInput, opts ...request.Option) (*ImportClientVpnClientCertificateRevocationListOutput, error) {
  19414. req, out := c.ImportClientVpnClientCertificateRevocationListRequest(input)
  19415. req.SetContext(ctx)
  19416. req.ApplyOptions(opts...)
  19417. return out, req.Send()
  19418. }
  19419. const opImportImage = "ImportImage"
  19420. // ImportImageRequest generates a "aws/request.Request" representing the
  19421. // client's request for the ImportImage operation. The "output" return
  19422. // value will be populated with the request's response once the request completes
  19423. // successfully.
  19424. //
  19425. // Use "Send" method on the returned Request to send the API call to the service.
  19426. // the "output" return value is not valid until after Send returns without error.
  19427. //
  19428. // See ImportImage for more information on using the ImportImage
  19429. // API call, and error handling.
  19430. //
  19431. // This method is useful when you want to inject custom logic or configuration
  19432. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19433. //
  19434. //
  19435. // // Example sending a request using the ImportImageRequest method.
  19436. // req, resp := client.ImportImageRequest(params)
  19437. //
  19438. // err := req.Send()
  19439. // if err == nil { // resp is now filled
  19440. // fmt.Println(resp)
  19441. // }
  19442. //
  19443. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImage
  19444. func (c *EC2) ImportImageRequest(input *ImportImageInput) (req *request.Request, output *ImportImageOutput) {
  19445. op := &request.Operation{
  19446. Name: opImportImage,
  19447. HTTPMethod: "POST",
  19448. HTTPPath: "/",
  19449. }
  19450. if input == nil {
  19451. input = &ImportImageInput{}
  19452. }
  19453. output = &ImportImageOutput{}
  19454. req = c.newRequest(op, input, output)
  19455. return
  19456. }
  19457. // ImportImage API operation for Amazon Elastic Compute Cloud.
  19458. //
  19459. // Import single or multi-volume disk images or EBS snapshots into an Amazon
  19460. // Machine Image (AMI). For more information, see Importing a VM as an Image
  19461. // Using VM Import/Export (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html)
  19462. // in the VM Import/Export User Guide.
  19463. //
  19464. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19465. // with awserr.Error's Code and Message methods to get detailed information about
  19466. // the error.
  19467. //
  19468. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19469. // API operation ImportImage for usage and error information.
  19470. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImage
  19471. func (c *EC2) ImportImage(input *ImportImageInput) (*ImportImageOutput, error) {
  19472. req, out := c.ImportImageRequest(input)
  19473. return out, req.Send()
  19474. }
  19475. // ImportImageWithContext is the same as ImportImage with the addition of
  19476. // the ability to pass a context and additional request options.
  19477. //
  19478. // See ImportImage for details on how to use this API operation.
  19479. //
  19480. // The context must be non-nil and will be used for request cancellation. If
  19481. // the context is nil a panic will occur. In the future the SDK may create
  19482. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19483. // for more information on using Contexts.
  19484. func (c *EC2) ImportImageWithContext(ctx aws.Context, input *ImportImageInput, opts ...request.Option) (*ImportImageOutput, error) {
  19485. req, out := c.ImportImageRequest(input)
  19486. req.SetContext(ctx)
  19487. req.ApplyOptions(opts...)
  19488. return out, req.Send()
  19489. }
  19490. const opImportInstance = "ImportInstance"
  19491. // ImportInstanceRequest generates a "aws/request.Request" representing the
  19492. // client's request for the ImportInstance operation. The "output" return
  19493. // value will be populated with the request's response once the request completes
  19494. // successfully.
  19495. //
  19496. // Use "Send" method on the returned Request to send the API call to the service.
  19497. // the "output" return value is not valid until after Send returns without error.
  19498. //
  19499. // See ImportInstance for more information on using the ImportInstance
  19500. // API call, and error handling.
  19501. //
  19502. // This method is useful when you want to inject custom logic or configuration
  19503. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19504. //
  19505. //
  19506. // // Example sending a request using the ImportInstanceRequest method.
  19507. // req, resp := client.ImportInstanceRequest(params)
  19508. //
  19509. // err := req.Send()
  19510. // if err == nil { // resp is now filled
  19511. // fmt.Println(resp)
  19512. // }
  19513. //
  19514. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance
  19515. func (c *EC2) ImportInstanceRequest(input *ImportInstanceInput) (req *request.Request, output *ImportInstanceOutput) {
  19516. op := &request.Operation{
  19517. Name: opImportInstance,
  19518. HTTPMethod: "POST",
  19519. HTTPPath: "/",
  19520. }
  19521. if input == nil {
  19522. input = &ImportInstanceInput{}
  19523. }
  19524. output = &ImportInstanceOutput{}
  19525. req = c.newRequest(op, input, output)
  19526. return
  19527. }
  19528. // ImportInstance API operation for Amazon Elastic Compute Cloud.
  19529. //
  19530. // Creates an import instance task using metadata from the specified disk image.
  19531. // ImportInstance only supports single-volume VMs. To import multi-volume VMs,
  19532. // use ImportImage. For more information, see Importing a Virtual Machine Using
  19533. // the Amazon EC2 CLI (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html).
  19534. //
  19535. // For information about the import manifest referenced by this API action,
  19536. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  19537. //
  19538. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19539. // with awserr.Error's Code and Message methods to get detailed information about
  19540. // the error.
  19541. //
  19542. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19543. // API operation ImportInstance for usage and error information.
  19544. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance
  19545. func (c *EC2) ImportInstance(input *ImportInstanceInput) (*ImportInstanceOutput, error) {
  19546. req, out := c.ImportInstanceRequest(input)
  19547. return out, req.Send()
  19548. }
  19549. // ImportInstanceWithContext is the same as ImportInstance with the addition of
  19550. // the ability to pass a context and additional request options.
  19551. //
  19552. // See ImportInstance for details on how to use this API operation.
  19553. //
  19554. // The context must be non-nil and will be used for request cancellation. If
  19555. // the context is nil a panic will occur. In the future the SDK may create
  19556. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19557. // for more information on using Contexts.
  19558. func (c *EC2) ImportInstanceWithContext(ctx aws.Context, input *ImportInstanceInput, opts ...request.Option) (*ImportInstanceOutput, error) {
  19559. req, out := c.ImportInstanceRequest(input)
  19560. req.SetContext(ctx)
  19561. req.ApplyOptions(opts...)
  19562. return out, req.Send()
  19563. }
  19564. const opImportKeyPair = "ImportKeyPair"
  19565. // ImportKeyPairRequest generates a "aws/request.Request" representing the
  19566. // client's request for the ImportKeyPair operation. The "output" return
  19567. // value will be populated with the request's response once the request completes
  19568. // successfully.
  19569. //
  19570. // Use "Send" method on the returned Request to send the API call to the service.
  19571. // the "output" return value is not valid until after Send returns without error.
  19572. //
  19573. // See ImportKeyPair for more information on using the ImportKeyPair
  19574. // API call, and error handling.
  19575. //
  19576. // This method is useful when you want to inject custom logic or configuration
  19577. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19578. //
  19579. //
  19580. // // Example sending a request using the ImportKeyPairRequest method.
  19581. // req, resp := client.ImportKeyPairRequest(params)
  19582. //
  19583. // err := req.Send()
  19584. // if err == nil { // resp is now filled
  19585. // fmt.Println(resp)
  19586. // }
  19587. //
  19588. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair
  19589. func (c *EC2) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Request, output *ImportKeyPairOutput) {
  19590. op := &request.Operation{
  19591. Name: opImportKeyPair,
  19592. HTTPMethod: "POST",
  19593. HTTPPath: "/",
  19594. }
  19595. if input == nil {
  19596. input = &ImportKeyPairInput{}
  19597. }
  19598. output = &ImportKeyPairOutput{}
  19599. req = c.newRequest(op, input, output)
  19600. return
  19601. }
  19602. // ImportKeyPair API operation for Amazon Elastic Compute Cloud.
  19603. //
  19604. // Imports the public key from an RSA key pair that you created with a third-party
  19605. // tool. Compare this with CreateKeyPair, in which AWS creates the key pair
  19606. // and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair,
  19607. // you create the key pair and give AWS just the public key. The private key
  19608. // is never transferred between you and AWS.
  19609. //
  19610. // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  19611. // in the Amazon Elastic Compute Cloud User Guide.
  19612. //
  19613. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19614. // with awserr.Error's Code and Message methods to get detailed information about
  19615. // the error.
  19616. //
  19617. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19618. // API operation ImportKeyPair for usage and error information.
  19619. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair
  19620. func (c *EC2) ImportKeyPair(input *ImportKeyPairInput) (*ImportKeyPairOutput, error) {
  19621. req, out := c.ImportKeyPairRequest(input)
  19622. return out, req.Send()
  19623. }
  19624. // ImportKeyPairWithContext is the same as ImportKeyPair with the addition of
  19625. // the ability to pass a context and additional request options.
  19626. //
  19627. // See ImportKeyPair for details on how to use this API operation.
  19628. //
  19629. // The context must be non-nil and will be used for request cancellation. If
  19630. // the context is nil a panic will occur. In the future the SDK may create
  19631. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19632. // for more information on using Contexts.
  19633. func (c *EC2) ImportKeyPairWithContext(ctx aws.Context, input *ImportKeyPairInput, opts ...request.Option) (*ImportKeyPairOutput, error) {
  19634. req, out := c.ImportKeyPairRequest(input)
  19635. req.SetContext(ctx)
  19636. req.ApplyOptions(opts...)
  19637. return out, req.Send()
  19638. }
  19639. const opImportSnapshot = "ImportSnapshot"
  19640. // ImportSnapshotRequest generates a "aws/request.Request" representing the
  19641. // client's request for the ImportSnapshot operation. The "output" return
  19642. // value will be populated with the request's response once the request completes
  19643. // successfully.
  19644. //
  19645. // Use "Send" method on the returned Request to send the API call to the service.
  19646. // the "output" return value is not valid until after Send returns without error.
  19647. //
  19648. // See ImportSnapshot for more information on using the ImportSnapshot
  19649. // API call, and error handling.
  19650. //
  19651. // This method is useful when you want to inject custom logic or configuration
  19652. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19653. //
  19654. //
  19655. // // Example sending a request using the ImportSnapshotRequest method.
  19656. // req, resp := client.ImportSnapshotRequest(params)
  19657. //
  19658. // err := req.Send()
  19659. // if err == nil { // resp is now filled
  19660. // fmt.Println(resp)
  19661. // }
  19662. //
  19663. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshot
  19664. func (c *EC2) ImportSnapshotRequest(input *ImportSnapshotInput) (req *request.Request, output *ImportSnapshotOutput) {
  19665. op := &request.Operation{
  19666. Name: opImportSnapshot,
  19667. HTTPMethod: "POST",
  19668. HTTPPath: "/",
  19669. }
  19670. if input == nil {
  19671. input = &ImportSnapshotInput{}
  19672. }
  19673. output = &ImportSnapshotOutput{}
  19674. req = c.newRequest(op, input, output)
  19675. return
  19676. }
  19677. // ImportSnapshot API operation for Amazon Elastic Compute Cloud.
  19678. //
  19679. // Imports a disk into an EBS snapshot.
  19680. //
  19681. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19682. // with awserr.Error's Code and Message methods to get detailed information about
  19683. // the error.
  19684. //
  19685. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19686. // API operation ImportSnapshot for usage and error information.
  19687. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshot
  19688. func (c *EC2) ImportSnapshot(input *ImportSnapshotInput) (*ImportSnapshotOutput, error) {
  19689. req, out := c.ImportSnapshotRequest(input)
  19690. return out, req.Send()
  19691. }
  19692. // ImportSnapshotWithContext is the same as ImportSnapshot with the addition of
  19693. // the ability to pass a context and additional request options.
  19694. //
  19695. // See ImportSnapshot for details on how to use this API operation.
  19696. //
  19697. // The context must be non-nil and will be used for request cancellation. If
  19698. // the context is nil a panic will occur. In the future the SDK may create
  19699. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19700. // for more information on using Contexts.
  19701. func (c *EC2) ImportSnapshotWithContext(ctx aws.Context, input *ImportSnapshotInput, opts ...request.Option) (*ImportSnapshotOutput, error) {
  19702. req, out := c.ImportSnapshotRequest(input)
  19703. req.SetContext(ctx)
  19704. req.ApplyOptions(opts...)
  19705. return out, req.Send()
  19706. }
  19707. const opImportVolume = "ImportVolume"
  19708. // ImportVolumeRequest generates a "aws/request.Request" representing the
  19709. // client's request for the ImportVolume operation. The "output" return
  19710. // value will be populated with the request's response once the request completes
  19711. // successfully.
  19712. //
  19713. // Use "Send" method on the returned Request to send the API call to the service.
  19714. // the "output" return value is not valid until after Send returns without error.
  19715. //
  19716. // See ImportVolume for more information on using the ImportVolume
  19717. // API call, and error handling.
  19718. //
  19719. // This method is useful when you want to inject custom logic or configuration
  19720. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19721. //
  19722. //
  19723. // // Example sending a request using the ImportVolumeRequest method.
  19724. // req, resp := client.ImportVolumeRequest(params)
  19725. //
  19726. // err := req.Send()
  19727. // if err == nil { // resp is now filled
  19728. // fmt.Println(resp)
  19729. // }
  19730. //
  19731. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolume
  19732. func (c *EC2) ImportVolumeRequest(input *ImportVolumeInput) (req *request.Request, output *ImportVolumeOutput) {
  19733. op := &request.Operation{
  19734. Name: opImportVolume,
  19735. HTTPMethod: "POST",
  19736. HTTPPath: "/",
  19737. }
  19738. if input == nil {
  19739. input = &ImportVolumeInput{}
  19740. }
  19741. output = &ImportVolumeOutput{}
  19742. req = c.newRequest(op, input, output)
  19743. return
  19744. }
  19745. // ImportVolume API operation for Amazon Elastic Compute Cloud.
  19746. //
  19747. // Creates an import volume task using metadata from the specified disk image.For
  19748. // more information, see Importing Disks to Amazon EBS (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/importing-your-volumes-into-amazon-ebs.html).
  19749. //
  19750. // For information about the import manifest referenced by this API action,
  19751. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  19752. //
  19753. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19754. // with awserr.Error's Code and Message methods to get detailed information about
  19755. // the error.
  19756. //
  19757. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19758. // API operation ImportVolume for usage and error information.
  19759. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolume
  19760. func (c *EC2) ImportVolume(input *ImportVolumeInput) (*ImportVolumeOutput, error) {
  19761. req, out := c.ImportVolumeRequest(input)
  19762. return out, req.Send()
  19763. }
  19764. // ImportVolumeWithContext is the same as ImportVolume with the addition of
  19765. // the ability to pass a context and additional request options.
  19766. //
  19767. // See ImportVolume for details on how to use this API operation.
  19768. //
  19769. // The context must be non-nil and will be used for request cancellation. If
  19770. // the context is nil a panic will occur. In the future the SDK may create
  19771. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19772. // for more information on using Contexts.
  19773. func (c *EC2) ImportVolumeWithContext(ctx aws.Context, input *ImportVolumeInput, opts ...request.Option) (*ImportVolumeOutput, error) {
  19774. req, out := c.ImportVolumeRequest(input)
  19775. req.SetContext(ctx)
  19776. req.ApplyOptions(opts...)
  19777. return out, req.Send()
  19778. }
  19779. const opModifyCapacityReservation = "ModifyCapacityReservation"
  19780. // ModifyCapacityReservationRequest generates a "aws/request.Request" representing the
  19781. // client's request for the ModifyCapacityReservation operation. The "output" return
  19782. // value will be populated with the request's response once the request completes
  19783. // successfully.
  19784. //
  19785. // Use "Send" method on the returned Request to send the API call to the service.
  19786. // the "output" return value is not valid until after Send returns without error.
  19787. //
  19788. // See ModifyCapacityReservation for more information on using the ModifyCapacityReservation
  19789. // API call, and error handling.
  19790. //
  19791. // This method is useful when you want to inject custom logic or configuration
  19792. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19793. //
  19794. //
  19795. // // Example sending a request using the ModifyCapacityReservationRequest method.
  19796. // req, resp := client.ModifyCapacityReservationRequest(params)
  19797. //
  19798. // err := req.Send()
  19799. // if err == nil { // resp is now filled
  19800. // fmt.Println(resp)
  19801. // }
  19802. //
  19803. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyCapacityReservation
  19804. func (c *EC2) ModifyCapacityReservationRequest(input *ModifyCapacityReservationInput) (req *request.Request, output *ModifyCapacityReservationOutput) {
  19805. op := &request.Operation{
  19806. Name: opModifyCapacityReservation,
  19807. HTTPMethod: "POST",
  19808. HTTPPath: "/",
  19809. }
  19810. if input == nil {
  19811. input = &ModifyCapacityReservationInput{}
  19812. }
  19813. output = &ModifyCapacityReservationOutput{}
  19814. req = c.newRequest(op, input, output)
  19815. return
  19816. }
  19817. // ModifyCapacityReservation API operation for Amazon Elastic Compute Cloud.
  19818. //
  19819. // Modifies a Capacity Reservation's capacity and the conditions under which
  19820. // it is to be released. You cannot change a Capacity Reservation's instance
  19821. // type, EBS optimization, instance store settings, platform, Availability Zone,
  19822. // or instance eligibility. If you need to modify any of these attributes, we
  19823. // recommend that you cancel the Capacity Reservation, and then create a new
  19824. // one with the required attributes.
  19825. //
  19826. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19827. // with awserr.Error's Code and Message methods to get detailed information about
  19828. // the error.
  19829. //
  19830. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19831. // API operation ModifyCapacityReservation for usage and error information.
  19832. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyCapacityReservation
  19833. func (c *EC2) ModifyCapacityReservation(input *ModifyCapacityReservationInput) (*ModifyCapacityReservationOutput, error) {
  19834. req, out := c.ModifyCapacityReservationRequest(input)
  19835. return out, req.Send()
  19836. }
  19837. // ModifyCapacityReservationWithContext is the same as ModifyCapacityReservation with the addition of
  19838. // the ability to pass a context and additional request options.
  19839. //
  19840. // See ModifyCapacityReservation for details on how to use this API operation.
  19841. //
  19842. // The context must be non-nil and will be used for request cancellation. If
  19843. // the context is nil a panic will occur. In the future the SDK may create
  19844. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19845. // for more information on using Contexts.
  19846. func (c *EC2) ModifyCapacityReservationWithContext(ctx aws.Context, input *ModifyCapacityReservationInput, opts ...request.Option) (*ModifyCapacityReservationOutput, error) {
  19847. req, out := c.ModifyCapacityReservationRequest(input)
  19848. req.SetContext(ctx)
  19849. req.ApplyOptions(opts...)
  19850. return out, req.Send()
  19851. }
  19852. const opModifyClientVpnEndpoint = "ModifyClientVpnEndpoint"
  19853. // ModifyClientVpnEndpointRequest generates a "aws/request.Request" representing the
  19854. // client's request for the ModifyClientVpnEndpoint operation. The "output" return
  19855. // value will be populated with the request's response once the request completes
  19856. // successfully.
  19857. //
  19858. // Use "Send" method on the returned Request to send the API call to the service.
  19859. // the "output" return value is not valid until after Send returns without error.
  19860. //
  19861. // See ModifyClientVpnEndpoint for more information on using the ModifyClientVpnEndpoint
  19862. // API call, and error handling.
  19863. //
  19864. // This method is useful when you want to inject custom logic or configuration
  19865. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19866. //
  19867. //
  19868. // // Example sending a request using the ModifyClientVpnEndpointRequest method.
  19869. // req, resp := client.ModifyClientVpnEndpointRequest(params)
  19870. //
  19871. // err := req.Send()
  19872. // if err == nil { // resp is now filled
  19873. // fmt.Println(resp)
  19874. // }
  19875. //
  19876. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyClientVpnEndpoint
  19877. func (c *EC2) ModifyClientVpnEndpointRequest(input *ModifyClientVpnEndpointInput) (req *request.Request, output *ModifyClientVpnEndpointOutput) {
  19878. op := &request.Operation{
  19879. Name: opModifyClientVpnEndpoint,
  19880. HTTPMethod: "POST",
  19881. HTTPPath: "/",
  19882. }
  19883. if input == nil {
  19884. input = &ModifyClientVpnEndpointInput{}
  19885. }
  19886. output = &ModifyClientVpnEndpointOutput{}
  19887. req = c.newRequest(op, input, output)
  19888. return
  19889. }
  19890. // ModifyClientVpnEndpoint API operation for Amazon Elastic Compute Cloud.
  19891. //
  19892. // Modifies the specified Client VPN endpoint. You can only modify an endpoint's
  19893. // server certificate information, client connection logging information, DNS
  19894. // server, and description. Modifying the DNS server resets existing client
  19895. // connections.
  19896. //
  19897. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19898. // with awserr.Error's Code and Message methods to get detailed information about
  19899. // the error.
  19900. //
  19901. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19902. // API operation ModifyClientVpnEndpoint for usage and error information.
  19903. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyClientVpnEndpoint
  19904. func (c *EC2) ModifyClientVpnEndpoint(input *ModifyClientVpnEndpointInput) (*ModifyClientVpnEndpointOutput, error) {
  19905. req, out := c.ModifyClientVpnEndpointRequest(input)
  19906. return out, req.Send()
  19907. }
  19908. // ModifyClientVpnEndpointWithContext is the same as ModifyClientVpnEndpoint with the addition of
  19909. // the ability to pass a context and additional request options.
  19910. //
  19911. // See ModifyClientVpnEndpoint for details on how to use this API operation.
  19912. //
  19913. // The context must be non-nil and will be used for request cancellation. If
  19914. // the context is nil a panic will occur. In the future the SDK may create
  19915. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19916. // for more information on using Contexts.
  19917. func (c *EC2) ModifyClientVpnEndpointWithContext(ctx aws.Context, input *ModifyClientVpnEndpointInput, opts ...request.Option) (*ModifyClientVpnEndpointOutput, error) {
  19918. req, out := c.ModifyClientVpnEndpointRequest(input)
  19919. req.SetContext(ctx)
  19920. req.ApplyOptions(opts...)
  19921. return out, req.Send()
  19922. }
  19923. const opModifyFleet = "ModifyFleet"
  19924. // ModifyFleetRequest generates a "aws/request.Request" representing the
  19925. // client's request for the ModifyFleet operation. The "output" return
  19926. // value will be populated with the request's response once the request completes
  19927. // successfully.
  19928. //
  19929. // Use "Send" method on the returned Request to send the API call to the service.
  19930. // the "output" return value is not valid until after Send returns without error.
  19931. //
  19932. // See ModifyFleet for more information on using the ModifyFleet
  19933. // API call, and error handling.
  19934. //
  19935. // This method is useful when you want to inject custom logic or configuration
  19936. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19937. //
  19938. //
  19939. // // Example sending a request using the ModifyFleetRequest method.
  19940. // req, resp := client.ModifyFleetRequest(params)
  19941. //
  19942. // err := req.Send()
  19943. // if err == nil { // resp is now filled
  19944. // fmt.Println(resp)
  19945. // }
  19946. //
  19947. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFleet
  19948. func (c *EC2) ModifyFleetRequest(input *ModifyFleetInput) (req *request.Request, output *ModifyFleetOutput) {
  19949. op := &request.Operation{
  19950. Name: opModifyFleet,
  19951. HTTPMethod: "POST",
  19952. HTTPPath: "/",
  19953. }
  19954. if input == nil {
  19955. input = &ModifyFleetInput{}
  19956. }
  19957. output = &ModifyFleetOutput{}
  19958. req = c.newRequest(op, input, output)
  19959. return
  19960. }
  19961. // ModifyFleet API operation for Amazon Elastic Compute Cloud.
  19962. //
  19963. // Modifies the specified EC2 Fleet.
  19964. //
  19965. // While the EC2 Fleet is being modified, it is in the modifying state.
  19966. //
  19967. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19968. // with awserr.Error's Code and Message methods to get detailed information about
  19969. // the error.
  19970. //
  19971. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19972. // API operation ModifyFleet for usage and error information.
  19973. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFleet
  19974. func (c *EC2) ModifyFleet(input *ModifyFleetInput) (*ModifyFleetOutput, error) {
  19975. req, out := c.ModifyFleetRequest(input)
  19976. return out, req.Send()
  19977. }
  19978. // ModifyFleetWithContext is the same as ModifyFleet with the addition of
  19979. // the ability to pass a context and additional request options.
  19980. //
  19981. // See ModifyFleet for details on how to use this API operation.
  19982. //
  19983. // The context must be non-nil and will be used for request cancellation. If
  19984. // the context is nil a panic will occur. In the future the SDK may create
  19985. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19986. // for more information on using Contexts.
  19987. func (c *EC2) ModifyFleetWithContext(ctx aws.Context, input *ModifyFleetInput, opts ...request.Option) (*ModifyFleetOutput, error) {
  19988. req, out := c.ModifyFleetRequest(input)
  19989. req.SetContext(ctx)
  19990. req.ApplyOptions(opts...)
  19991. return out, req.Send()
  19992. }
  19993. const opModifyFpgaImageAttribute = "ModifyFpgaImageAttribute"
  19994. // ModifyFpgaImageAttributeRequest generates a "aws/request.Request" representing the
  19995. // client's request for the ModifyFpgaImageAttribute operation. The "output" return
  19996. // value will be populated with the request's response once the request completes
  19997. // successfully.
  19998. //
  19999. // Use "Send" method on the returned Request to send the API call to the service.
  20000. // the "output" return value is not valid until after Send returns without error.
  20001. //
  20002. // See ModifyFpgaImageAttribute for more information on using the ModifyFpgaImageAttribute
  20003. // API call, and error handling.
  20004. //
  20005. // This method is useful when you want to inject custom logic or configuration
  20006. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20007. //
  20008. //
  20009. // // Example sending a request using the ModifyFpgaImageAttributeRequest method.
  20010. // req, resp := client.ModifyFpgaImageAttributeRequest(params)
  20011. //
  20012. // err := req.Send()
  20013. // if err == nil { // resp is now filled
  20014. // fmt.Println(resp)
  20015. // }
  20016. //
  20017. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFpgaImageAttribute
  20018. func (c *EC2) ModifyFpgaImageAttributeRequest(input *ModifyFpgaImageAttributeInput) (req *request.Request, output *ModifyFpgaImageAttributeOutput) {
  20019. op := &request.Operation{
  20020. Name: opModifyFpgaImageAttribute,
  20021. HTTPMethod: "POST",
  20022. HTTPPath: "/",
  20023. }
  20024. if input == nil {
  20025. input = &ModifyFpgaImageAttributeInput{}
  20026. }
  20027. output = &ModifyFpgaImageAttributeOutput{}
  20028. req = c.newRequest(op, input, output)
  20029. return
  20030. }
  20031. // ModifyFpgaImageAttribute API operation for Amazon Elastic Compute Cloud.
  20032. //
  20033. // Modifies the specified attribute of the specified Amazon FPGA Image (AFI).
  20034. //
  20035. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20036. // with awserr.Error's Code and Message methods to get detailed information about
  20037. // the error.
  20038. //
  20039. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20040. // API operation ModifyFpgaImageAttribute for usage and error information.
  20041. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFpgaImageAttribute
  20042. func (c *EC2) ModifyFpgaImageAttribute(input *ModifyFpgaImageAttributeInput) (*ModifyFpgaImageAttributeOutput, error) {
  20043. req, out := c.ModifyFpgaImageAttributeRequest(input)
  20044. return out, req.Send()
  20045. }
  20046. // ModifyFpgaImageAttributeWithContext is the same as ModifyFpgaImageAttribute with the addition of
  20047. // the ability to pass a context and additional request options.
  20048. //
  20049. // See ModifyFpgaImageAttribute for details on how to use this API operation.
  20050. //
  20051. // The context must be non-nil and will be used for request cancellation. If
  20052. // the context is nil a panic will occur. In the future the SDK may create
  20053. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20054. // for more information on using Contexts.
  20055. func (c *EC2) ModifyFpgaImageAttributeWithContext(ctx aws.Context, input *ModifyFpgaImageAttributeInput, opts ...request.Option) (*ModifyFpgaImageAttributeOutput, error) {
  20056. req, out := c.ModifyFpgaImageAttributeRequest(input)
  20057. req.SetContext(ctx)
  20058. req.ApplyOptions(opts...)
  20059. return out, req.Send()
  20060. }
  20061. const opModifyHosts = "ModifyHosts"
  20062. // ModifyHostsRequest generates a "aws/request.Request" representing the
  20063. // client's request for the ModifyHosts operation. The "output" return
  20064. // value will be populated with the request's response once the request completes
  20065. // successfully.
  20066. //
  20067. // Use "Send" method on the returned Request to send the API call to the service.
  20068. // the "output" return value is not valid until after Send returns without error.
  20069. //
  20070. // See ModifyHosts for more information on using the ModifyHosts
  20071. // API call, and error handling.
  20072. //
  20073. // This method is useful when you want to inject custom logic or configuration
  20074. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20075. //
  20076. //
  20077. // // Example sending a request using the ModifyHostsRequest method.
  20078. // req, resp := client.ModifyHostsRequest(params)
  20079. //
  20080. // err := req.Send()
  20081. // if err == nil { // resp is now filled
  20082. // fmt.Println(resp)
  20083. // }
  20084. //
  20085. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHosts
  20086. func (c *EC2) ModifyHostsRequest(input *ModifyHostsInput) (req *request.Request, output *ModifyHostsOutput) {
  20087. op := &request.Operation{
  20088. Name: opModifyHosts,
  20089. HTTPMethod: "POST",
  20090. HTTPPath: "/",
  20091. }
  20092. if input == nil {
  20093. input = &ModifyHostsInput{}
  20094. }
  20095. output = &ModifyHostsOutput{}
  20096. req = c.newRequest(op, input, output)
  20097. return
  20098. }
  20099. // ModifyHosts API operation for Amazon Elastic Compute Cloud.
  20100. //
  20101. // Modify the auto-placement setting of a Dedicated Host. When auto-placement
  20102. // is enabled, any instances that you launch with a tenancy of host but without
  20103. // a specific host ID are placed onto any available Dedicated Host in your account
  20104. // that has auto-placement enabled. When auto-placement is disabled, you need
  20105. // to provide a host ID to have the instance launch onto a specific host. If
  20106. // no host ID is provided, the instance is launched onto a suitable host with
  20107. // auto-placement enabled.
  20108. //
  20109. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20110. // with awserr.Error's Code and Message methods to get detailed information about
  20111. // the error.
  20112. //
  20113. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20114. // API operation ModifyHosts for usage and error information.
  20115. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHosts
  20116. func (c *EC2) ModifyHosts(input *ModifyHostsInput) (*ModifyHostsOutput, error) {
  20117. req, out := c.ModifyHostsRequest(input)
  20118. return out, req.Send()
  20119. }
  20120. // ModifyHostsWithContext is the same as ModifyHosts with the addition of
  20121. // the ability to pass a context and additional request options.
  20122. //
  20123. // See ModifyHosts for details on how to use this API operation.
  20124. //
  20125. // The context must be non-nil and will be used for request cancellation. If
  20126. // the context is nil a panic will occur. In the future the SDK may create
  20127. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20128. // for more information on using Contexts.
  20129. func (c *EC2) ModifyHostsWithContext(ctx aws.Context, input *ModifyHostsInput, opts ...request.Option) (*ModifyHostsOutput, error) {
  20130. req, out := c.ModifyHostsRequest(input)
  20131. req.SetContext(ctx)
  20132. req.ApplyOptions(opts...)
  20133. return out, req.Send()
  20134. }
  20135. const opModifyIdFormat = "ModifyIdFormat"
  20136. // ModifyIdFormatRequest generates a "aws/request.Request" representing the
  20137. // client's request for the ModifyIdFormat operation. The "output" return
  20138. // value will be populated with the request's response once the request completes
  20139. // successfully.
  20140. //
  20141. // Use "Send" method on the returned Request to send the API call to the service.
  20142. // the "output" return value is not valid until after Send returns without error.
  20143. //
  20144. // See ModifyIdFormat for more information on using the ModifyIdFormat
  20145. // API call, and error handling.
  20146. //
  20147. // This method is useful when you want to inject custom logic or configuration
  20148. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20149. //
  20150. //
  20151. // // Example sending a request using the ModifyIdFormatRequest method.
  20152. // req, resp := client.ModifyIdFormatRequest(params)
  20153. //
  20154. // err := req.Send()
  20155. // if err == nil { // resp is now filled
  20156. // fmt.Println(resp)
  20157. // }
  20158. //
  20159. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormat
  20160. func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Request, output *ModifyIdFormatOutput) {
  20161. op := &request.Operation{
  20162. Name: opModifyIdFormat,
  20163. HTTPMethod: "POST",
  20164. HTTPPath: "/",
  20165. }
  20166. if input == nil {
  20167. input = &ModifyIdFormatInput{}
  20168. }
  20169. output = &ModifyIdFormatOutput{}
  20170. req = c.newRequest(op, input, output)
  20171. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  20172. return
  20173. }
  20174. // ModifyIdFormat API operation for Amazon Elastic Compute Cloud.
  20175. //
  20176. // Modifies the ID format for the specified resource on a per-region basis.
  20177. // You can specify that resources should receive longer IDs (17-character IDs)
  20178. // when they are created.
  20179. //
  20180. // This request can only be used to modify longer ID settings for resource types
  20181. // that are within the opt-in period. Resources currently in their opt-in period
  20182. // include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation
  20183. // | elastic-ip-association | export-task | flow-log | image | import-task |
  20184. // internet-gateway | network-acl | network-acl-association | network-interface
  20185. // | network-interface-attachment | prefix-list | route-table | route-table-association
  20186. // | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association
  20187. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  20188. //
  20189. // This setting applies to the IAM user who makes the request; it does not apply
  20190. // to the entire AWS account. By default, an IAM user defaults to the same settings
  20191. // as the root user. If you're using this action as the root user, then these
  20192. // settings apply to the entire account, unless an IAM user explicitly overrides
  20193. // these settings for themselves. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  20194. // in the Amazon Elastic Compute Cloud User Guide.
  20195. //
  20196. // Resources created with longer IDs are visible to all IAM roles and users,
  20197. // regardless of these settings and provided that they have permission to use
  20198. // the relevant Describe command for the resource type.
  20199. //
  20200. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20201. // with awserr.Error's Code and Message methods to get detailed information about
  20202. // the error.
  20203. //
  20204. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20205. // API operation ModifyIdFormat for usage and error information.
  20206. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormat
  20207. func (c *EC2) ModifyIdFormat(input *ModifyIdFormatInput) (*ModifyIdFormatOutput, error) {
  20208. req, out := c.ModifyIdFormatRequest(input)
  20209. return out, req.Send()
  20210. }
  20211. // ModifyIdFormatWithContext is the same as ModifyIdFormat with the addition of
  20212. // the ability to pass a context and additional request options.
  20213. //
  20214. // See ModifyIdFormat for details on how to use this API operation.
  20215. //
  20216. // The context must be non-nil and will be used for request cancellation. If
  20217. // the context is nil a panic will occur. In the future the SDK may create
  20218. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20219. // for more information on using Contexts.
  20220. func (c *EC2) ModifyIdFormatWithContext(ctx aws.Context, input *ModifyIdFormatInput, opts ...request.Option) (*ModifyIdFormatOutput, error) {
  20221. req, out := c.ModifyIdFormatRequest(input)
  20222. req.SetContext(ctx)
  20223. req.ApplyOptions(opts...)
  20224. return out, req.Send()
  20225. }
  20226. const opModifyIdentityIdFormat = "ModifyIdentityIdFormat"
  20227. // ModifyIdentityIdFormatRequest generates a "aws/request.Request" representing the
  20228. // client's request for the ModifyIdentityIdFormat operation. The "output" return
  20229. // value will be populated with the request's response once the request completes
  20230. // successfully.
  20231. //
  20232. // Use "Send" method on the returned Request to send the API call to the service.
  20233. // the "output" return value is not valid until after Send returns without error.
  20234. //
  20235. // See ModifyIdentityIdFormat for more information on using the ModifyIdentityIdFormat
  20236. // API call, and error handling.
  20237. //
  20238. // This method is useful when you want to inject custom logic or configuration
  20239. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20240. //
  20241. //
  20242. // // Example sending a request using the ModifyIdentityIdFormatRequest method.
  20243. // req, resp := client.ModifyIdentityIdFormatRequest(params)
  20244. //
  20245. // err := req.Send()
  20246. // if err == nil { // resp is now filled
  20247. // fmt.Println(resp)
  20248. // }
  20249. //
  20250. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormat
  20251. func (c *EC2) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) (req *request.Request, output *ModifyIdentityIdFormatOutput) {
  20252. op := &request.Operation{
  20253. Name: opModifyIdentityIdFormat,
  20254. HTTPMethod: "POST",
  20255. HTTPPath: "/",
  20256. }
  20257. if input == nil {
  20258. input = &ModifyIdentityIdFormatInput{}
  20259. }
  20260. output = &ModifyIdentityIdFormatOutput{}
  20261. req = c.newRequest(op, input, output)
  20262. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  20263. return
  20264. }
  20265. // ModifyIdentityIdFormat API operation for Amazon Elastic Compute Cloud.
  20266. //
  20267. // Modifies the ID format of a resource for a specified IAM user, IAM role,
  20268. // or the root user for an account; or all IAM users, IAM roles, and the root
  20269. // user for an account. You can specify that resources should receive longer
  20270. // IDs (17-character IDs) when they are created.
  20271. //
  20272. // This request can only be used to modify longer ID settings for resource types
  20273. // that are within the opt-in period. Resources currently in their opt-in period
  20274. // include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation
  20275. // | elastic-ip-association | export-task | flow-log | image | import-task |
  20276. // internet-gateway | network-acl | network-acl-association | network-interface
  20277. // | network-interface-attachment | prefix-list | route-table | route-table-association
  20278. // | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association
  20279. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  20280. //
  20281. // For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  20282. // in the Amazon Elastic Compute Cloud User Guide.
  20283. //
  20284. // This setting applies to the principal specified in the request; it does not
  20285. // apply to the principal that makes the request.
  20286. //
  20287. // Resources created with longer IDs are visible to all IAM roles and users,
  20288. // regardless of these settings and provided that they have permission to use
  20289. // the relevant Describe command for the resource type.
  20290. //
  20291. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20292. // with awserr.Error's Code and Message methods to get detailed information about
  20293. // the error.
  20294. //
  20295. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20296. // API operation ModifyIdentityIdFormat for usage and error information.
  20297. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormat
  20298. func (c *EC2) ModifyIdentityIdFormat(input *ModifyIdentityIdFormatInput) (*ModifyIdentityIdFormatOutput, error) {
  20299. req, out := c.ModifyIdentityIdFormatRequest(input)
  20300. return out, req.Send()
  20301. }
  20302. // ModifyIdentityIdFormatWithContext is the same as ModifyIdentityIdFormat with the addition of
  20303. // the ability to pass a context and additional request options.
  20304. //
  20305. // See ModifyIdentityIdFormat for details on how to use this API operation.
  20306. //
  20307. // The context must be non-nil and will be used for request cancellation. If
  20308. // the context is nil a panic will occur. In the future the SDK may create
  20309. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20310. // for more information on using Contexts.
  20311. func (c *EC2) ModifyIdentityIdFormatWithContext(ctx aws.Context, input *ModifyIdentityIdFormatInput, opts ...request.Option) (*ModifyIdentityIdFormatOutput, error) {
  20312. req, out := c.ModifyIdentityIdFormatRequest(input)
  20313. req.SetContext(ctx)
  20314. req.ApplyOptions(opts...)
  20315. return out, req.Send()
  20316. }
  20317. const opModifyImageAttribute = "ModifyImageAttribute"
  20318. // ModifyImageAttributeRequest generates a "aws/request.Request" representing the
  20319. // client's request for the ModifyImageAttribute operation. The "output" return
  20320. // value will be populated with the request's response once the request completes
  20321. // successfully.
  20322. //
  20323. // Use "Send" method on the returned Request to send the API call to the service.
  20324. // the "output" return value is not valid until after Send returns without error.
  20325. //
  20326. // See ModifyImageAttribute for more information on using the ModifyImageAttribute
  20327. // API call, and error handling.
  20328. //
  20329. // This method is useful when you want to inject custom logic or configuration
  20330. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20331. //
  20332. //
  20333. // // Example sending a request using the ModifyImageAttributeRequest method.
  20334. // req, resp := client.ModifyImageAttributeRequest(params)
  20335. //
  20336. // err := req.Send()
  20337. // if err == nil { // resp is now filled
  20338. // fmt.Println(resp)
  20339. // }
  20340. //
  20341. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute
  20342. func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req *request.Request, output *ModifyImageAttributeOutput) {
  20343. op := &request.Operation{
  20344. Name: opModifyImageAttribute,
  20345. HTTPMethod: "POST",
  20346. HTTPPath: "/",
  20347. }
  20348. if input == nil {
  20349. input = &ModifyImageAttributeInput{}
  20350. }
  20351. output = &ModifyImageAttributeOutput{}
  20352. req = c.newRequest(op, input, output)
  20353. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  20354. return
  20355. }
  20356. // ModifyImageAttribute API operation for Amazon Elastic Compute Cloud.
  20357. //
  20358. // Modifies the specified attribute of the specified AMI. You can specify only
  20359. // one attribute at a time. You can use the Attribute parameter to specify the
  20360. // attribute or one of the following parameters: Description, LaunchPermission,
  20361. // or ProductCode.
  20362. //
  20363. // AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace
  20364. // product code cannot be made public.
  20365. //
  20366. // To enable the SriovNetSupport enhanced networking attribute of an image,
  20367. // enable SriovNetSupport on an instance and create an AMI from the instance.
  20368. //
  20369. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20370. // with awserr.Error's Code and Message methods to get detailed information about
  20371. // the error.
  20372. //
  20373. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20374. // API operation ModifyImageAttribute for usage and error information.
  20375. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute
  20376. func (c *EC2) ModifyImageAttribute(input *ModifyImageAttributeInput) (*ModifyImageAttributeOutput, error) {
  20377. req, out := c.ModifyImageAttributeRequest(input)
  20378. return out, req.Send()
  20379. }
  20380. // ModifyImageAttributeWithContext is the same as ModifyImageAttribute with the addition of
  20381. // the ability to pass a context and additional request options.
  20382. //
  20383. // See ModifyImageAttribute for details on how to use this API operation.
  20384. //
  20385. // The context must be non-nil and will be used for request cancellation. If
  20386. // the context is nil a panic will occur. In the future the SDK may create
  20387. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20388. // for more information on using Contexts.
  20389. func (c *EC2) ModifyImageAttributeWithContext(ctx aws.Context, input *ModifyImageAttributeInput, opts ...request.Option) (*ModifyImageAttributeOutput, error) {
  20390. req, out := c.ModifyImageAttributeRequest(input)
  20391. req.SetContext(ctx)
  20392. req.ApplyOptions(opts...)
  20393. return out, req.Send()
  20394. }
  20395. const opModifyInstanceAttribute = "ModifyInstanceAttribute"
  20396. // ModifyInstanceAttributeRequest generates a "aws/request.Request" representing the
  20397. // client's request for the ModifyInstanceAttribute operation. The "output" return
  20398. // value will be populated with the request's response once the request completes
  20399. // successfully.
  20400. //
  20401. // Use "Send" method on the returned Request to send the API call to the service.
  20402. // the "output" return value is not valid until after Send returns without error.
  20403. //
  20404. // See ModifyInstanceAttribute for more information on using the ModifyInstanceAttribute
  20405. // API call, and error handling.
  20406. //
  20407. // This method is useful when you want to inject custom logic or configuration
  20408. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20409. //
  20410. //
  20411. // // Example sending a request using the ModifyInstanceAttributeRequest method.
  20412. // req, resp := client.ModifyInstanceAttributeRequest(params)
  20413. //
  20414. // err := req.Send()
  20415. // if err == nil { // resp is now filled
  20416. // fmt.Println(resp)
  20417. // }
  20418. //
  20419. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute
  20420. func (c *EC2) ModifyInstanceAttributeRequest(input *ModifyInstanceAttributeInput) (req *request.Request, output *ModifyInstanceAttributeOutput) {
  20421. op := &request.Operation{
  20422. Name: opModifyInstanceAttribute,
  20423. HTTPMethod: "POST",
  20424. HTTPPath: "/",
  20425. }
  20426. if input == nil {
  20427. input = &ModifyInstanceAttributeInput{}
  20428. }
  20429. output = &ModifyInstanceAttributeOutput{}
  20430. req = c.newRequest(op, input, output)
  20431. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  20432. return
  20433. }
  20434. // ModifyInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  20435. //
  20436. // Modifies the specified attribute of the specified instance. You can specify
  20437. // only one attribute at a time.
  20438. //
  20439. // Note: Using this action to change the security groups associated with an
  20440. // elastic network interface (ENI) attached to an instance in a VPC can result
  20441. // in an error if the instance has more than one ENI. To change the security
  20442. // groups associated with an ENI attached to an instance that has multiple ENIs,
  20443. // we recommend that you use the ModifyNetworkInterfaceAttribute action.
  20444. //
  20445. // To modify some attributes, the instance must be stopped. For more information,
  20446. // see Modifying Attributes of a Stopped Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html)
  20447. // in the Amazon Elastic Compute Cloud User Guide.
  20448. //
  20449. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20450. // with awserr.Error's Code and Message methods to get detailed information about
  20451. // the error.
  20452. //
  20453. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20454. // API operation ModifyInstanceAttribute for usage and error information.
  20455. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute
  20456. func (c *EC2) ModifyInstanceAttribute(input *ModifyInstanceAttributeInput) (*ModifyInstanceAttributeOutput, error) {
  20457. req, out := c.ModifyInstanceAttributeRequest(input)
  20458. return out, req.Send()
  20459. }
  20460. // ModifyInstanceAttributeWithContext is the same as ModifyInstanceAttribute with the addition of
  20461. // the ability to pass a context and additional request options.
  20462. //
  20463. // See ModifyInstanceAttribute for details on how to use this API operation.
  20464. //
  20465. // The context must be non-nil and will be used for request cancellation. If
  20466. // the context is nil a panic will occur. In the future the SDK may create
  20467. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20468. // for more information on using Contexts.
  20469. func (c *EC2) ModifyInstanceAttributeWithContext(ctx aws.Context, input *ModifyInstanceAttributeInput, opts ...request.Option) (*ModifyInstanceAttributeOutput, error) {
  20470. req, out := c.ModifyInstanceAttributeRequest(input)
  20471. req.SetContext(ctx)
  20472. req.ApplyOptions(opts...)
  20473. return out, req.Send()
  20474. }
  20475. const opModifyInstanceCapacityReservationAttributes = "ModifyInstanceCapacityReservationAttributes"
  20476. // ModifyInstanceCapacityReservationAttributesRequest generates a "aws/request.Request" representing the
  20477. // client's request for the ModifyInstanceCapacityReservationAttributes operation. The "output" return
  20478. // value will be populated with the request's response once the request completes
  20479. // successfully.
  20480. //
  20481. // Use "Send" method on the returned Request to send the API call to the service.
  20482. // the "output" return value is not valid until after Send returns without error.
  20483. //
  20484. // See ModifyInstanceCapacityReservationAttributes for more information on using the ModifyInstanceCapacityReservationAttributes
  20485. // API call, and error handling.
  20486. //
  20487. // This method is useful when you want to inject custom logic or configuration
  20488. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20489. //
  20490. //
  20491. // // Example sending a request using the ModifyInstanceCapacityReservationAttributesRequest method.
  20492. // req, resp := client.ModifyInstanceCapacityReservationAttributesRequest(params)
  20493. //
  20494. // err := req.Send()
  20495. // if err == nil { // resp is now filled
  20496. // fmt.Println(resp)
  20497. // }
  20498. //
  20499. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCapacityReservationAttributes
  20500. func (c *EC2) ModifyInstanceCapacityReservationAttributesRequest(input *ModifyInstanceCapacityReservationAttributesInput) (req *request.Request, output *ModifyInstanceCapacityReservationAttributesOutput) {
  20501. op := &request.Operation{
  20502. Name: opModifyInstanceCapacityReservationAttributes,
  20503. HTTPMethod: "POST",
  20504. HTTPPath: "/",
  20505. }
  20506. if input == nil {
  20507. input = &ModifyInstanceCapacityReservationAttributesInput{}
  20508. }
  20509. output = &ModifyInstanceCapacityReservationAttributesOutput{}
  20510. req = c.newRequest(op, input, output)
  20511. return
  20512. }
  20513. // ModifyInstanceCapacityReservationAttributes API operation for Amazon Elastic Compute Cloud.
  20514. //
  20515. // Modifies the Capacity Reservation settings for a stopped instance. Use this
  20516. // action to configure an instance to target a specific Capacity Reservation,
  20517. // run in any open Capacity Reservation with matching attributes, or run On-Demand
  20518. // Instance capacity.
  20519. //
  20520. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20521. // with awserr.Error's Code and Message methods to get detailed information about
  20522. // the error.
  20523. //
  20524. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20525. // API operation ModifyInstanceCapacityReservationAttributes for usage and error information.
  20526. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCapacityReservationAttributes
  20527. func (c *EC2) ModifyInstanceCapacityReservationAttributes(input *ModifyInstanceCapacityReservationAttributesInput) (*ModifyInstanceCapacityReservationAttributesOutput, error) {
  20528. req, out := c.ModifyInstanceCapacityReservationAttributesRequest(input)
  20529. return out, req.Send()
  20530. }
  20531. // ModifyInstanceCapacityReservationAttributesWithContext is the same as ModifyInstanceCapacityReservationAttributes with the addition of
  20532. // the ability to pass a context and additional request options.
  20533. //
  20534. // See ModifyInstanceCapacityReservationAttributes for details on how to use this API operation.
  20535. //
  20536. // The context must be non-nil and will be used for request cancellation. If
  20537. // the context is nil a panic will occur. In the future the SDK may create
  20538. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20539. // for more information on using Contexts.
  20540. func (c *EC2) ModifyInstanceCapacityReservationAttributesWithContext(ctx aws.Context, input *ModifyInstanceCapacityReservationAttributesInput, opts ...request.Option) (*ModifyInstanceCapacityReservationAttributesOutput, error) {
  20541. req, out := c.ModifyInstanceCapacityReservationAttributesRequest(input)
  20542. req.SetContext(ctx)
  20543. req.ApplyOptions(opts...)
  20544. return out, req.Send()
  20545. }
  20546. const opModifyInstanceCreditSpecification = "ModifyInstanceCreditSpecification"
  20547. // ModifyInstanceCreditSpecificationRequest generates a "aws/request.Request" representing the
  20548. // client's request for the ModifyInstanceCreditSpecification operation. The "output" return
  20549. // value will be populated with the request's response once the request completes
  20550. // successfully.
  20551. //
  20552. // Use "Send" method on the returned Request to send the API call to the service.
  20553. // the "output" return value is not valid until after Send returns without error.
  20554. //
  20555. // See ModifyInstanceCreditSpecification for more information on using the ModifyInstanceCreditSpecification
  20556. // API call, and error handling.
  20557. //
  20558. // This method is useful when you want to inject custom logic or configuration
  20559. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20560. //
  20561. //
  20562. // // Example sending a request using the ModifyInstanceCreditSpecificationRequest method.
  20563. // req, resp := client.ModifyInstanceCreditSpecificationRequest(params)
  20564. //
  20565. // err := req.Send()
  20566. // if err == nil { // resp is now filled
  20567. // fmt.Println(resp)
  20568. // }
  20569. //
  20570. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCreditSpecification
  20571. func (c *EC2) ModifyInstanceCreditSpecificationRequest(input *ModifyInstanceCreditSpecificationInput) (req *request.Request, output *ModifyInstanceCreditSpecificationOutput) {
  20572. op := &request.Operation{
  20573. Name: opModifyInstanceCreditSpecification,
  20574. HTTPMethod: "POST",
  20575. HTTPPath: "/",
  20576. }
  20577. if input == nil {
  20578. input = &ModifyInstanceCreditSpecificationInput{}
  20579. }
  20580. output = &ModifyInstanceCreditSpecificationOutput{}
  20581. req = c.newRequest(op, input, output)
  20582. return
  20583. }
  20584. // ModifyInstanceCreditSpecification API operation for Amazon Elastic Compute Cloud.
  20585. //
  20586. // Modifies the credit option for CPU usage on a running or stopped T2 or T3
  20587. // instance. The credit options are standard and unlimited.
  20588. //
  20589. // For more information, see Burstable Performance Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html)
  20590. // in the Amazon Elastic Compute Cloud User Guide.
  20591. //
  20592. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20593. // with awserr.Error's Code and Message methods to get detailed information about
  20594. // the error.
  20595. //
  20596. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20597. // API operation ModifyInstanceCreditSpecification for usage and error information.
  20598. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCreditSpecification
  20599. func (c *EC2) ModifyInstanceCreditSpecification(input *ModifyInstanceCreditSpecificationInput) (*ModifyInstanceCreditSpecificationOutput, error) {
  20600. req, out := c.ModifyInstanceCreditSpecificationRequest(input)
  20601. return out, req.Send()
  20602. }
  20603. // ModifyInstanceCreditSpecificationWithContext is the same as ModifyInstanceCreditSpecification with the addition of
  20604. // the ability to pass a context and additional request options.
  20605. //
  20606. // See ModifyInstanceCreditSpecification for details on how to use this API operation.
  20607. //
  20608. // The context must be non-nil and will be used for request cancellation. If
  20609. // the context is nil a panic will occur. In the future the SDK may create
  20610. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20611. // for more information on using Contexts.
  20612. func (c *EC2) ModifyInstanceCreditSpecificationWithContext(ctx aws.Context, input *ModifyInstanceCreditSpecificationInput, opts ...request.Option) (*ModifyInstanceCreditSpecificationOutput, error) {
  20613. req, out := c.ModifyInstanceCreditSpecificationRequest(input)
  20614. req.SetContext(ctx)
  20615. req.ApplyOptions(opts...)
  20616. return out, req.Send()
  20617. }
  20618. const opModifyInstancePlacement = "ModifyInstancePlacement"
  20619. // ModifyInstancePlacementRequest generates a "aws/request.Request" representing the
  20620. // client's request for the ModifyInstancePlacement operation. The "output" return
  20621. // value will be populated with the request's response once the request completes
  20622. // successfully.
  20623. //
  20624. // Use "Send" method on the returned Request to send the API call to the service.
  20625. // the "output" return value is not valid until after Send returns without error.
  20626. //
  20627. // See ModifyInstancePlacement for more information on using the ModifyInstancePlacement
  20628. // API call, and error handling.
  20629. //
  20630. // This method is useful when you want to inject custom logic or configuration
  20631. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20632. //
  20633. //
  20634. // // Example sending a request using the ModifyInstancePlacementRequest method.
  20635. // req, resp := client.ModifyInstancePlacementRequest(params)
  20636. //
  20637. // err := req.Send()
  20638. // if err == nil { // resp is now filled
  20639. // fmt.Println(resp)
  20640. // }
  20641. //
  20642. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacement
  20643. func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput) (req *request.Request, output *ModifyInstancePlacementOutput) {
  20644. op := &request.Operation{
  20645. Name: opModifyInstancePlacement,
  20646. HTTPMethod: "POST",
  20647. HTTPPath: "/",
  20648. }
  20649. if input == nil {
  20650. input = &ModifyInstancePlacementInput{}
  20651. }
  20652. output = &ModifyInstancePlacementOutput{}
  20653. req = c.newRequest(op, input, output)
  20654. return
  20655. }
  20656. // ModifyInstancePlacement API operation for Amazon Elastic Compute Cloud.
  20657. //
  20658. // Modifies the placement attributes for a specified instance. You can do the
  20659. // following:
  20660. //
  20661. // * Modify the affinity between an instance and a Dedicated Host (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html).
  20662. // When affinity is set to host and the instance is not associated with a
  20663. // specific Dedicated Host, the next time the instance is launched, it is
  20664. // automatically associated with the host on which it lands. If the instance
  20665. // is restarted or rebooted, this relationship persists.
  20666. //
  20667. // * Change the Dedicated Host with which an instance is associated.
  20668. //
  20669. // * Change the instance tenancy of an instance from host to dedicated, or
  20670. // from dedicated to host.
  20671. //
  20672. // * Move an instance to or from a placement group (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html).
  20673. //
  20674. // At least one attribute for affinity, host ID, tenancy, or placement group
  20675. // name must be specified in the request. Affinity and tenancy can be modified
  20676. // in the same request.
  20677. //
  20678. // To modify the host ID, tenancy, placement group, or partition for an instance,
  20679. // the instance must be in the stopped state.
  20680. //
  20681. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20682. // with awserr.Error's Code and Message methods to get detailed information about
  20683. // the error.
  20684. //
  20685. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20686. // API operation ModifyInstancePlacement for usage and error information.
  20687. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacement
  20688. func (c *EC2) ModifyInstancePlacement(input *ModifyInstancePlacementInput) (*ModifyInstancePlacementOutput, error) {
  20689. req, out := c.ModifyInstancePlacementRequest(input)
  20690. return out, req.Send()
  20691. }
  20692. // ModifyInstancePlacementWithContext is the same as ModifyInstancePlacement with the addition of
  20693. // the ability to pass a context and additional request options.
  20694. //
  20695. // See ModifyInstancePlacement for details on how to use this API operation.
  20696. //
  20697. // The context must be non-nil and will be used for request cancellation. If
  20698. // the context is nil a panic will occur. In the future the SDK may create
  20699. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20700. // for more information on using Contexts.
  20701. func (c *EC2) ModifyInstancePlacementWithContext(ctx aws.Context, input *ModifyInstancePlacementInput, opts ...request.Option) (*ModifyInstancePlacementOutput, error) {
  20702. req, out := c.ModifyInstancePlacementRequest(input)
  20703. req.SetContext(ctx)
  20704. req.ApplyOptions(opts...)
  20705. return out, req.Send()
  20706. }
  20707. const opModifyLaunchTemplate = "ModifyLaunchTemplate"
  20708. // ModifyLaunchTemplateRequest generates a "aws/request.Request" representing the
  20709. // client's request for the ModifyLaunchTemplate operation. The "output" return
  20710. // value will be populated with the request's response once the request completes
  20711. // successfully.
  20712. //
  20713. // Use "Send" method on the returned Request to send the API call to the service.
  20714. // the "output" return value is not valid until after Send returns without error.
  20715. //
  20716. // See ModifyLaunchTemplate for more information on using the ModifyLaunchTemplate
  20717. // API call, and error handling.
  20718. //
  20719. // This method is useful when you want to inject custom logic or configuration
  20720. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20721. //
  20722. //
  20723. // // Example sending a request using the ModifyLaunchTemplateRequest method.
  20724. // req, resp := client.ModifyLaunchTemplateRequest(params)
  20725. //
  20726. // err := req.Send()
  20727. // if err == nil { // resp is now filled
  20728. // fmt.Println(resp)
  20729. // }
  20730. //
  20731. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplate
  20732. func (c *EC2) ModifyLaunchTemplateRequest(input *ModifyLaunchTemplateInput) (req *request.Request, output *ModifyLaunchTemplateOutput) {
  20733. op := &request.Operation{
  20734. Name: opModifyLaunchTemplate,
  20735. HTTPMethod: "POST",
  20736. HTTPPath: "/",
  20737. }
  20738. if input == nil {
  20739. input = &ModifyLaunchTemplateInput{}
  20740. }
  20741. output = &ModifyLaunchTemplateOutput{}
  20742. req = c.newRequest(op, input, output)
  20743. return
  20744. }
  20745. // ModifyLaunchTemplate API operation for Amazon Elastic Compute Cloud.
  20746. //
  20747. // Modifies a launch template. You can specify which version of the launch template
  20748. // to set as the default version. When launching an instance, the default version
  20749. // applies when a launch template version is not specified.
  20750. //
  20751. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20752. // with awserr.Error's Code and Message methods to get detailed information about
  20753. // the error.
  20754. //
  20755. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20756. // API operation ModifyLaunchTemplate for usage and error information.
  20757. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplate
  20758. func (c *EC2) ModifyLaunchTemplate(input *ModifyLaunchTemplateInput) (*ModifyLaunchTemplateOutput, error) {
  20759. req, out := c.ModifyLaunchTemplateRequest(input)
  20760. return out, req.Send()
  20761. }
  20762. // ModifyLaunchTemplateWithContext is the same as ModifyLaunchTemplate with the addition of
  20763. // the ability to pass a context and additional request options.
  20764. //
  20765. // See ModifyLaunchTemplate for details on how to use this API operation.
  20766. //
  20767. // The context must be non-nil and will be used for request cancellation. If
  20768. // the context is nil a panic will occur. In the future the SDK may create
  20769. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20770. // for more information on using Contexts.
  20771. func (c *EC2) ModifyLaunchTemplateWithContext(ctx aws.Context, input *ModifyLaunchTemplateInput, opts ...request.Option) (*ModifyLaunchTemplateOutput, error) {
  20772. req, out := c.ModifyLaunchTemplateRequest(input)
  20773. req.SetContext(ctx)
  20774. req.ApplyOptions(opts...)
  20775. return out, req.Send()
  20776. }
  20777. const opModifyNetworkInterfaceAttribute = "ModifyNetworkInterfaceAttribute"
  20778. // ModifyNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  20779. // client's request for the ModifyNetworkInterfaceAttribute operation. The "output" return
  20780. // value will be populated with the request's response once the request completes
  20781. // successfully.
  20782. //
  20783. // Use "Send" method on the returned Request to send the API call to the service.
  20784. // the "output" return value is not valid until after Send returns without error.
  20785. //
  20786. // See ModifyNetworkInterfaceAttribute for more information on using the ModifyNetworkInterfaceAttribute
  20787. // API call, and error handling.
  20788. //
  20789. // This method is useful when you want to inject custom logic or configuration
  20790. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20791. //
  20792. //
  20793. // // Example sending a request using the ModifyNetworkInterfaceAttributeRequest method.
  20794. // req, resp := client.ModifyNetworkInterfaceAttributeRequest(params)
  20795. //
  20796. // err := req.Send()
  20797. // if err == nil { // resp is now filled
  20798. // fmt.Println(resp)
  20799. // }
  20800. //
  20801. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttribute
  20802. func (c *EC2) ModifyNetworkInterfaceAttributeRequest(input *ModifyNetworkInterfaceAttributeInput) (req *request.Request, output *ModifyNetworkInterfaceAttributeOutput) {
  20803. op := &request.Operation{
  20804. Name: opModifyNetworkInterfaceAttribute,
  20805. HTTPMethod: "POST",
  20806. HTTPPath: "/",
  20807. }
  20808. if input == nil {
  20809. input = &ModifyNetworkInterfaceAttributeInput{}
  20810. }
  20811. output = &ModifyNetworkInterfaceAttributeOutput{}
  20812. req = c.newRequest(op, input, output)
  20813. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  20814. return
  20815. }
  20816. // ModifyNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  20817. //
  20818. // Modifies the specified network interface attribute. You can specify only
  20819. // one attribute at a time.
  20820. //
  20821. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20822. // with awserr.Error's Code and Message methods to get detailed information about
  20823. // the error.
  20824. //
  20825. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20826. // API operation ModifyNetworkInterfaceAttribute for usage and error information.
  20827. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttribute
  20828. func (c *EC2) ModifyNetworkInterfaceAttribute(input *ModifyNetworkInterfaceAttributeInput) (*ModifyNetworkInterfaceAttributeOutput, error) {
  20829. req, out := c.ModifyNetworkInterfaceAttributeRequest(input)
  20830. return out, req.Send()
  20831. }
  20832. // ModifyNetworkInterfaceAttributeWithContext is the same as ModifyNetworkInterfaceAttribute with the addition of
  20833. // the ability to pass a context and additional request options.
  20834. //
  20835. // See ModifyNetworkInterfaceAttribute for details on how to use this API operation.
  20836. //
  20837. // The context must be non-nil and will be used for request cancellation. If
  20838. // the context is nil a panic will occur. In the future the SDK may create
  20839. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20840. // for more information on using Contexts.
  20841. func (c *EC2) ModifyNetworkInterfaceAttributeWithContext(ctx aws.Context, input *ModifyNetworkInterfaceAttributeInput, opts ...request.Option) (*ModifyNetworkInterfaceAttributeOutput, error) {
  20842. req, out := c.ModifyNetworkInterfaceAttributeRequest(input)
  20843. req.SetContext(ctx)
  20844. req.ApplyOptions(opts...)
  20845. return out, req.Send()
  20846. }
  20847. const opModifyReservedInstances = "ModifyReservedInstances"
  20848. // ModifyReservedInstancesRequest generates a "aws/request.Request" representing the
  20849. // client's request for the ModifyReservedInstances operation. The "output" return
  20850. // value will be populated with the request's response once the request completes
  20851. // successfully.
  20852. //
  20853. // Use "Send" method on the returned Request to send the API call to the service.
  20854. // the "output" return value is not valid until after Send returns without error.
  20855. //
  20856. // See ModifyReservedInstances for more information on using the ModifyReservedInstances
  20857. // API call, and error handling.
  20858. //
  20859. // This method is useful when you want to inject custom logic or configuration
  20860. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20861. //
  20862. //
  20863. // // Example sending a request using the ModifyReservedInstancesRequest method.
  20864. // req, resp := client.ModifyReservedInstancesRequest(params)
  20865. //
  20866. // err := req.Send()
  20867. // if err == nil { // resp is now filled
  20868. // fmt.Println(resp)
  20869. // }
  20870. //
  20871. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstances
  20872. func (c *EC2) ModifyReservedInstancesRequest(input *ModifyReservedInstancesInput) (req *request.Request, output *ModifyReservedInstancesOutput) {
  20873. op := &request.Operation{
  20874. Name: opModifyReservedInstances,
  20875. HTTPMethod: "POST",
  20876. HTTPPath: "/",
  20877. }
  20878. if input == nil {
  20879. input = &ModifyReservedInstancesInput{}
  20880. }
  20881. output = &ModifyReservedInstancesOutput{}
  20882. req = c.newRequest(op, input, output)
  20883. return
  20884. }
  20885. // ModifyReservedInstances API operation for Amazon Elastic Compute Cloud.
  20886. //
  20887. // Modifies the Availability Zone, instance count, instance type, or network
  20888. // platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved
  20889. // Instances to be modified must be identical, except for Availability Zone,
  20890. // network platform, and instance type.
  20891. //
  20892. // For more information, see Modifying Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html)
  20893. // in the Amazon Elastic Compute Cloud User Guide.
  20894. //
  20895. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20896. // with awserr.Error's Code and Message methods to get detailed information about
  20897. // the error.
  20898. //
  20899. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20900. // API operation ModifyReservedInstances for usage and error information.
  20901. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstances
  20902. func (c *EC2) ModifyReservedInstances(input *ModifyReservedInstancesInput) (*ModifyReservedInstancesOutput, error) {
  20903. req, out := c.ModifyReservedInstancesRequest(input)
  20904. return out, req.Send()
  20905. }
  20906. // ModifyReservedInstancesWithContext is the same as ModifyReservedInstances with the addition of
  20907. // the ability to pass a context and additional request options.
  20908. //
  20909. // See ModifyReservedInstances for details on how to use this API operation.
  20910. //
  20911. // The context must be non-nil and will be used for request cancellation. If
  20912. // the context is nil a panic will occur. In the future the SDK may create
  20913. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20914. // for more information on using Contexts.
  20915. func (c *EC2) ModifyReservedInstancesWithContext(ctx aws.Context, input *ModifyReservedInstancesInput, opts ...request.Option) (*ModifyReservedInstancesOutput, error) {
  20916. req, out := c.ModifyReservedInstancesRequest(input)
  20917. req.SetContext(ctx)
  20918. req.ApplyOptions(opts...)
  20919. return out, req.Send()
  20920. }
  20921. const opModifySnapshotAttribute = "ModifySnapshotAttribute"
  20922. // ModifySnapshotAttributeRequest generates a "aws/request.Request" representing the
  20923. // client's request for the ModifySnapshotAttribute operation. The "output" return
  20924. // value will be populated with the request's response once the request completes
  20925. // successfully.
  20926. //
  20927. // Use "Send" method on the returned Request to send the API call to the service.
  20928. // the "output" return value is not valid until after Send returns without error.
  20929. //
  20930. // See ModifySnapshotAttribute for more information on using the ModifySnapshotAttribute
  20931. // API call, and error handling.
  20932. //
  20933. // This method is useful when you want to inject custom logic or configuration
  20934. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20935. //
  20936. //
  20937. // // Example sending a request using the ModifySnapshotAttributeRequest method.
  20938. // req, resp := client.ModifySnapshotAttributeRequest(params)
  20939. //
  20940. // err := req.Send()
  20941. // if err == nil { // resp is now filled
  20942. // fmt.Println(resp)
  20943. // }
  20944. //
  20945. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttribute
  20946. func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput) (req *request.Request, output *ModifySnapshotAttributeOutput) {
  20947. op := &request.Operation{
  20948. Name: opModifySnapshotAttribute,
  20949. HTTPMethod: "POST",
  20950. HTTPPath: "/",
  20951. }
  20952. if input == nil {
  20953. input = &ModifySnapshotAttributeInput{}
  20954. }
  20955. output = &ModifySnapshotAttributeOutput{}
  20956. req = c.newRequest(op, input, output)
  20957. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  20958. return
  20959. }
  20960. // ModifySnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  20961. //
  20962. // Adds or removes permission settings for the specified snapshot. You may add
  20963. // or remove specified AWS account IDs from a snapshot's list of create volume
  20964. // permissions, but you cannot do both in a single API call. If you need to
  20965. // both add and remove account IDs for a snapshot, you must use multiple API
  20966. // calls.
  20967. //
  20968. // Encrypted snapshots and snapshots with AWS Marketplace product codes cannot
  20969. // be made public. Snapshots encrypted with your default CMK cannot be shared
  20970. // with other accounts.
  20971. //
  20972. // For more information about modifying snapshot permissions, see Sharing Snapshots
  20973. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html)
  20974. // in the Amazon Elastic Compute Cloud User Guide.
  20975. //
  20976. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20977. // with awserr.Error's Code and Message methods to get detailed information about
  20978. // the error.
  20979. //
  20980. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20981. // API operation ModifySnapshotAttribute for usage and error information.
  20982. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttribute
  20983. func (c *EC2) ModifySnapshotAttribute(input *ModifySnapshotAttributeInput) (*ModifySnapshotAttributeOutput, error) {
  20984. req, out := c.ModifySnapshotAttributeRequest(input)
  20985. return out, req.Send()
  20986. }
  20987. // ModifySnapshotAttributeWithContext is the same as ModifySnapshotAttribute with the addition of
  20988. // the ability to pass a context and additional request options.
  20989. //
  20990. // See ModifySnapshotAttribute for details on how to use this API operation.
  20991. //
  20992. // The context must be non-nil and will be used for request cancellation. If
  20993. // the context is nil a panic will occur. In the future the SDK may create
  20994. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20995. // for more information on using Contexts.
  20996. func (c *EC2) ModifySnapshotAttributeWithContext(ctx aws.Context, input *ModifySnapshotAttributeInput, opts ...request.Option) (*ModifySnapshotAttributeOutput, error) {
  20997. req, out := c.ModifySnapshotAttributeRequest(input)
  20998. req.SetContext(ctx)
  20999. req.ApplyOptions(opts...)
  21000. return out, req.Send()
  21001. }
  21002. const opModifySpotFleetRequest = "ModifySpotFleetRequest"
  21003. // ModifySpotFleetRequestRequest generates a "aws/request.Request" representing the
  21004. // client's request for the ModifySpotFleetRequest operation. The "output" return
  21005. // value will be populated with the request's response once the request completes
  21006. // successfully.
  21007. //
  21008. // Use "Send" method on the returned Request to send the API call to the service.
  21009. // the "output" return value is not valid until after Send returns without error.
  21010. //
  21011. // See ModifySpotFleetRequest for more information on using the ModifySpotFleetRequest
  21012. // API call, and error handling.
  21013. //
  21014. // This method is useful when you want to inject custom logic or configuration
  21015. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21016. //
  21017. //
  21018. // // Example sending a request using the ModifySpotFleetRequestRequest method.
  21019. // req, resp := client.ModifySpotFleetRequestRequest(params)
  21020. //
  21021. // err := req.Send()
  21022. // if err == nil { // resp is now filled
  21023. // fmt.Println(resp)
  21024. // }
  21025. //
  21026. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequest
  21027. func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) (req *request.Request, output *ModifySpotFleetRequestOutput) {
  21028. op := &request.Operation{
  21029. Name: opModifySpotFleetRequest,
  21030. HTTPMethod: "POST",
  21031. HTTPPath: "/",
  21032. }
  21033. if input == nil {
  21034. input = &ModifySpotFleetRequestInput{}
  21035. }
  21036. output = &ModifySpotFleetRequestOutput{}
  21037. req = c.newRequest(op, input, output)
  21038. return
  21039. }
  21040. // ModifySpotFleetRequest API operation for Amazon Elastic Compute Cloud.
  21041. //
  21042. // Modifies the specified Spot Fleet request.
  21043. //
  21044. // While the Spot Fleet request is being modified, it is in the modifying state.
  21045. //
  21046. // To scale up your Spot Fleet, increase its target capacity. The Spot Fleet
  21047. // launches the additional Spot Instances according to the allocation strategy
  21048. // for the Spot Fleet request. If the allocation strategy is lowestPrice, the
  21049. // Spot Fleet launches instances using the Spot pool with the lowest price.
  21050. // If the allocation strategy is diversified, the Spot Fleet distributes the
  21051. // instances across the Spot pools.
  21052. //
  21053. // To scale down your Spot Fleet, decrease its target capacity. First, the Spot
  21054. // Fleet cancels any open requests that exceed the new target capacity. You
  21055. // can request that the Spot Fleet terminate Spot Instances until the size of
  21056. // the fleet no longer exceeds the new target capacity. If the allocation strategy
  21057. // is lowestPrice, the Spot Fleet terminates the instances with the highest
  21058. // price per unit. If the allocation strategy is diversified, the Spot Fleet
  21059. // terminates instances across the Spot pools. Alternatively, you can request
  21060. // that the Spot Fleet keep the fleet at its current size, but not replace any
  21061. // Spot Instances that are interrupted or that you terminate manually.
  21062. //
  21063. // If you are finished with your Spot Fleet for now, but will use it again later,
  21064. // you can set the target capacity to 0.
  21065. //
  21066. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21067. // with awserr.Error's Code and Message methods to get detailed information about
  21068. // the error.
  21069. //
  21070. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21071. // API operation ModifySpotFleetRequest for usage and error information.
  21072. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequest
  21073. func (c *EC2) ModifySpotFleetRequest(input *ModifySpotFleetRequestInput) (*ModifySpotFleetRequestOutput, error) {
  21074. req, out := c.ModifySpotFleetRequestRequest(input)
  21075. return out, req.Send()
  21076. }
  21077. // ModifySpotFleetRequestWithContext is the same as ModifySpotFleetRequest with the addition of
  21078. // the ability to pass a context and additional request options.
  21079. //
  21080. // See ModifySpotFleetRequest for details on how to use this API operation.
  21081. //
  21082. // The context must be non-nil and will be used for request cancellation. If
  21083. // the context is nil a panic will occur. In the future the SDK may create
  21084. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21085. // for more information on using Contexts.
  21086. func (c *EC2) ModifySpotFleetRequestWithContext(ctx aws.Context, input *ModifySpotFleetRequestInput, opts ...request.Option) (*ModifySpotFleetRequestOutput, error) {
  21087. req, out := c.ModifySpotFleetRequestRequest(input)
  21088. req.SetContext(ctx)
  21089. req.ApplyOptions(opts...)
  21090. return out, req.Send()
  21091. }
  21092. const opModifySubnetAttribute = "ModifySubnetAttribute"
  21093. // ModifySubnetAttributeRequest generates a "aws/request.Request" representing the
  21094. // client's request for the ModifySubnetAttribute operation. The "output" return
  21095. // value will be populated with the request's response once the request completes
  21096. // successfully.
  21097. //
  21098. // Use "Send" method on the returned Request to send the API call to the service.
  21099. // the "output" return value is not valid until after Send returns without error.
  21100. //
  21101. // See ModifySubnetAttribute for more information on using the ModifySubnetAttribute
  21102. // API call, and error handling.
  21103. //
  21104. // This method is useful when you want to inject custom logic or configuration
  21105. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21106. //
  21107. //
  21108. // // Example sending a request using the ModifySubnetAttributeRequest method.
  21109. // req, resp := client.ModifySubnetAttributeRequest(params)
  21110. //
  21111. // err := req.Send()
  21112. // if err == nil { // resp is now filled
  21113. // fmt.Println(resp)
  21114. // }
  21115. //
  21116. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttribute
  21117. func (c *EC2) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) (req *request.Request, output *ModifySubnetAttributeOutput) {
  21118. op := &request.Operation{
  21119. Name: opModifySubnetAttribute,
  21120. HTTPMethod: "POST",
  21121. HTTPPath: "/",
  21122. }
  21123. if input == nil {
  21124. input = &ModifySubnetAttributeInput{}
  21125. }
  21126. output = &ModifySubnetAttributeOutput{}
  21127. req = c.newRequest(op, input, output)
  21128. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  21129. return
  21130. }
  21131. // ModifySubnetAttribute API operation for Amazon Elastic Compute Cloud.
  21132. //
  21133. // Modifies a subnet attribute. You can only modify one attribute at a time.
  21134. //
  21135. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21136. // with awserr.Error's Code and Message methods to get detailed information about
  21137. // the error.
  21138. //
  21139. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21140. // API operation ModifySubnetAttribute for usage and error information.
  21141. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttribute
  21142. func (c *EC2) ModifySubnetAttribute(input *ModifySubnetAttributeInput) (*ModifySubnetAttributeOutput, error) {
  21143. req, out := c.ModifySubnetAttributeRequest(input)
  21144. return out, req.Send()
  21145. }
  21146. // ModifySubnetAttributeWithContext is the same as ModifySubnetAttribute with the addition of
  21147. // the ability to pass a context and additional request options.
  21148. //
  21149. // See ModifySubnetAttribute for details on how to use this API operation.
  21150. //
  21151. // The context must be non-nil and will be used for request cancellation. If
  21152. // the context is nil a panic will occur. In the future the SDK may create
  21153. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21154. // for more information on using Contexts.
  21155. func (c *EC2) ModifySubnetAttributeWithContext(ctx aws.Context, input *ModifySubnetAttributeInput, opts ...request.Option) (*ModifySubnetAttributeOutput, error) {
  21156. req, out := c.ModifySubnetAttributeRequest(input)
  21157. req.SetContext(ctx)
  21158. req.ApplyOptions(opts...)
  21159. return out, req.Send()
  21160. }
  21161. const opModifyTransitGatewayVpcAttachment = "ModifyTransitGatewayVpcAttachment"
  21162. // ModifyTransitGatewayVpcAttachmentRequest generates a "aws/request.Request" representing the
  21163. // client's request for the ModifyTransitGatewayVpcAttachment operation. The "output" return
  21164. // value will be populated with the request's response once the request completes
  21165. // successfully.
  21166. //
  21167. // Use "Send" method on the returned Request to send the API call to the service.
  21168. // the "output" return value is not valid until after Send returns without error.
  21169. //
  21170. // See ModifyTransitGatewayVpcAttachment for more information on using the ModifyTransitGatewayVpcAttachment
  21171. // API call, and error handling.
  21172. //
  21173. // This method is useful when you want to inject custom logic or configuration
  21174. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21175. //
  21176. //
  21177. // // Example sending a request using the ModifyTransitGatewayVpcAttachmentRequest method.
  21178. // req, resp := client.ModifyTransitGatewayVpcAttachmentRequest(params)
  21179. //
  21180. // err := req.Send()
  21181. // if err == nil { // resp is now filled
  21182. // fmt.Println(resp)
  21183. // }
  21184. //
  21185. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyTransitGatewayVpcAttachment
  21186. func (c *EC2) ModifyTransitGatewayVpcAttachmentRequest(input *ModifyTransitGatewayVpcAttachmentInput) (req *request.Request, output *ModifyTransitGatewayVpcAttachmentOutput) {
  21187. op := &request.Operation{
  21188. Name: opModifyTransitGatewayVpcAttachment,
  21189. HTTPMethod: "POST",
  21190. HTTPPath: "/",
  21191. }
  21192. if input == nil {
  21193. input = &ModifyTransitGatewayVpcAttachmentInput{}
  21194. }
  21195. output = &ModifyTransitGatewayVpcAttachmentOutput{}
  21196. req = c.newRequest(op, input, output)
  21197. return
  21198. }
  21199. // ModifyTransitGatewayVpcAttachment API operation for Amazon Elastic Compute Cloud.
  21200. //
  21201. // Modifies the specified VPC attachment.
  21202. //
  21203. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21204. // with awserr.Error's Code and Message methods to get detailed information about
  21205. // the error.
  21206. //
  21207. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21208. // API operation ModifyTransitGatewayVpcAttachment for usage and error information.
  21209. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyTransitGatewayVpcAttachment
  21210. func (c *EC2) ModifyTransitGatewayVpcAttachment(input *ModifyTransitGatewayVpcAttachmentInput) (*ModifyTransitGatewayVpcAttachmentOutput, error) {
  21211. req, out := c.ModifyTransitGatewayVpcAttachmentRequest(input)
  21212. return out, req.Send()
  21213. }
  21214. // ModifyTransitGatewayVpcAttachmentWithContext is the same as ModifyTransitGatewayVpcAttachment with the addition of
  21215. // the ability to pass a context and additional request options.
  21216. //
  21217. // See ModifyTransitGatewayVpcAttachment for details on how to use this API operation.
  21218. //
  21219. // The context must be non-nil and will be used for request cancellation. If
  21220. // the context is nil a panic will occur. In the future the SDK may create
  21221. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21222. // for more information on using Contexts.
  21223. func (c *EC2) ModifyTransitGatewayVpcAttachmentWithContext(ctx aws.Context, input *ModifyTransitGatewayVpcAttachmentInput, opts ...request.Option) (*ModifyTransitGatewayVpcAttachmentOutput, error) {
  21224. req, out := c.ModifyTransitGatewayVpcAttachmentRequest(input)
  21225. req.SetContext(ctx)
  21226. req.ApplyOptions(opts...)
  21227. return out, req.Send()
  21228. }
  21229. const opModifyVolume = "ModifyVolume"
  21230. // ModifyVolumeRequest generates a "aws/request.Request" representing the
  21231. // client's request for the ModifyVolume operation. The "output" return
  21232. // value will be populated with the request's response once the request completes
  21233. // successfully.
  21234. //
  21235. // Use "Send" method on the returned Request to send the API call to the service.
  21236. // the "output" return value is not valid until after Send returns without error.
  21237. //
  21238. // See ModifyVolume for more information on using the ModifyVolume
  21239. // API call, and error handling.
  21240. //
  21241. // This method is useful when you want to inject custom logic or configuration
  21242. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21243. //
  21244. //
  21245. // // Example sending a request using the ModifyVolumeRequest method.
  21246. // req, resp := client.ModifyVolumeRequest(params)
  21247. //
  21248. // err := req.Send()
  21249. // if err == nil { // resp is now filled
  21250. // fmt.Println(resp)
  21251. // }
  21252. //
  21253. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolume
  21254. func (c *EC2) ModifyVolumeRequest(input *ModifyVolumeInput) (req *request.Request, output *ModifyVolumeOutput) {
  21255. op := &request.Operation{
  21256. Name: opModifyVolume,
  21257. HTTPMethod: "POST",
  21258. HTTPPath: "/",
  21259. }
  21260. if input == nil {
  21261. input = &ModifyVolumeInput{}
  21262. }
  21263. output = &ModifyVolumeOutput{}
  21264. req = c.newRequest(op, input, output)
  21265. return
  21266. }
  21267. // ModifyVolume API operation for Amazon Elastic Compute Cloud.
  21268. //
  21269. // You can modify several parameters of an existing EBS volume, including volume
  21270. // size, volume type, and IOPS capacity. If your EBS volume is attached to a
  21271. // current-generation EC2 instance type, you may be able to apply these changes
  21272. // without stopping the instance or detaching the volume from it. For more information
  21273. // about modifying an EBS volume running Linux, see Modifying the Size, IOPS,
  21274. // or Type of an EBS Volume on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html).
  21275. // For more information about modifying an EBS volume running Windows, see Modifying
  21276. // the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html).
  21277. //
  21278. // When you complete a resize operation on your volume, you need to extend the
  21279. // volume's file-system size to take advantage of the new storage capacity.
  21280. // For information about extending a Linux file system, see Extending a Linux
  21281. // File System (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux).
  21282. // For information about extending a Windows file system, see Extending a Windows
  21283. // File System (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows).
  21284. //
  21285. // You can use CloudWatch Events to check the status of a modification to an
  21286. // EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch
  21287. // Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/).
  21288. // You can also track the status of a modification using the DescribeVolumesModifications
  21289. // API. For information about tracking status changes using either method, see
  21290. // Monitoring Volume Modifications (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods).
  21291. //
  21292. // With previous-generation instance types, resizing an EBS volume may require
  21293. // detaching and reattaching the volume or stopping and restarting the instance.
  21294. // For more information, see Modifying the Size, IOPS, or Type of an EBS Volume
  21295. // on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html)
  21296. // 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).
  21297. //
  21298. // If you reach the maximum volume modification rate per volume limit, you will
  21299. // need to wait at least six hours before applying further modifications to
  21300. // the affected EBS volume.
  21301. //
  21302. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21303. // with awserr.Error's Code and Message methods to get detailed information about
  21304. // the error.
  21305. //
  21306. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21307. // API operation ModifyVolume for usage and error information.
  21308. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolume
  21309. func (c *EC2) ModifyVolume(input *ModifyVolumeInput) (*ModifyVolumeOutput, error) {
  21310. req, out := c.ModifyVolumeRequest(input)
  21311. return out, req.Send()
  21312. }
  21313. // ModifyVolumeWithContext is the same as ModifyVolume with the addition of
  21314. // the ability to pass a context and additional request options.
  21315. //
  21316. // See ModifyVolume for details on how to use this API operation.
  21317. //
  21318. // The context must be non-nil and will be used for request cancellation. If
  21319. // the context is nil a panic will occur. In the future the SDK may create
  21320. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21321. // for more information on using Contexts.
  21322. func (c *EC2) ModifyVolumeWithContext(ctx aws.Context, input *ModifyVolumeInput, opts ...request.Option) (*ModifyVolumeOutput, error) {
  21323. req, out := c.ModifyVolumeRequest(input)
  21324. req.SetContext(ctx)
  21325. req.ApplyOptions(opts...)
  21326. return out, req.Send()
  21327. }
  21328. const opModifyVolumeAttribute = "ModifyVolumeAttribute"
  21329. // ModifyVolumeAttributeRequest generates a "aws/request.Request" representing the
  21330. // client's request for the ModifyVolumeAttribute operation. The "output" return
  21331. // value will be populated with the request's response once the request completes
  21332. // successfully.
  21333. //
  21334. // Use "Send" method on the returned Request to send the API call to the service.
  21335. // the "output" return value is not valid until after Send returns without error.
  21336. //
  21337. // See ModifyVolumeAttribute for more information on using the ModifyVolumeAttribute
  21338. // API call, and error handling.
  21339. //
  21340. // This method is useful when you want to inject custom logic or configuration
  21341. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21342. //
  21343. //
  21344. // // Example sending a request using the ModifyVolumeAttributeRequest method.
  21345. // req, resp := client.ModifyVolumeAttributeRequest(params)
  21346. //
  21347. // err := req.Send()
  21348. // if err == nil { // resp is now filled
  21349. // fmt.Println(resp)
  21350. // }
  21351. //
  21352. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttribute
  21353. func (c *EC2) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) (req *request.Request, output *ModifyVolumeAttributeOutput) {
  21354. op := &request.Operation{
  21355. Name: opModifyVolumeAttribute,
  21356. HTTPMethod: "POST",
  21357. HTTPPath: "/",
  21358. }
  21359. if input == nil {
  21360. input = &ModifyVolumeAttributeInput{}
  21361. }
  21362. output = &ModifyVolumeAttributeOutput{}
  21363. req = c.newRequest(op, input, output)
  21364. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  21365. return
  21366. }
  21367. // ModifyVolumeAttribute API operation for Amazon Elastic Compute Cloud.
  21368. //
  21369. // Modifies a volume attribute.
  21370. //
  21371. // By default, all I/O operations for the volume are suspended when the data
  21372. // on the volume is determined to be potentially inconsistent, to prevent undetectable,
  21373. // latent data corruption. The I/O access to the volume can be resumed by first
  21374. // enabling I/O access and then checking the data consistency on your volume.
  21375. //
  21376. // You can change the default behavior to resume I/O operations. We recommend
  21377. // that you change this only for boot volumes or for volumes that are stateless
  21378. // or disposable.
  21379. //
  21380. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21381. // with awserr.Error's Code and Message methods to get detailed information about
  21382. // the error.
  21383. //
  21384. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21385. // API operation ModifyVolumeAttribute for usage and error information.
  21386. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttribute
  21387. func (c *EC2) ModifyVolumeAttribute(input *ModifyVolumeAttributeInput) (*ModifyVolumeAttributeOutput, error) {
  21388. req, out := c.ModifyVolumeAttributeRequest(input)
  21389. return out, req.Send()
  21390. }
  21391. // ModifyVolumeAttributeWithContext is the same as ModifyVolumeAttribute with the addition of
  21392. // the ability to pass a context and additional request options.
  21393. //
  21394. // See ModifyVolumeAttribute for details on how to use this API operation.
  21395. //
  21396. // The context must be non-nil and will be used for request cancellation. If
  21397. // the context is nil a panic will occur. In the future the SDK may create
  21398. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21399. // for more information on using Contexts.
  21400. func (c *EC2) ModifyVolumeAttributeWithContext(ctx aws.Context, input *ModifyVolumeAttributeInput, opts ...request.Option) (*ModifyVolumeAttributeOutput, error) {
  21401. req, out := c.ModifyVolumeAttributeRequest(input)
  21402. req.SetContext(ctx)
  21403. req.ApplyOptions(opts...)
  21404. return out, req.Send()
  21405. }
  21406. const opModifyVpcAttribute = "ModifyVpcAttribute"
  21407. // ModifyVpcAttributeRequest generates a "aws/request.Request" representing the
  21408. // client's request for the ModifyVpcAttribute operation. The "output" return
  21409. // value will be populated with the request's response once the request completes
  21410. // successfully.
  21411. //
  21412. // Use "Send" method on the returned Request to send the API call to the service.
  21413. // the "output" return value is not valid until after Send returns without error.
  21414. //
  21415. // See ModifyVpcAttribute for more information on using the ModifyVpcAttribute
  21416. // API call, and error handling.
  21417. //
  21418. // This method is useful when you want to inject custom logic or configuration
  21419. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21420. //
  21421. //
  21422. // // Example sending a request using the ModifyVpcAttributeRequest method.
  21423. // req, resp := client.ModifyVpcAttributeRequest(params)
  21424. //
  21425. // err := req.Send()
  21426. // if err == nil { // resp is now filled
  21427. // fmt.Println(resp)
  21428. // }
  21429. //
  21430. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute
  21431. func (c *EC2) ModifyVpcAttributeRequest(input *ModifyVpcAttributeInput) (req *request.Request, output *ModifyVpcAttributeOutput) {
  21432. op := &request.Operation{
  21433. Name: opModifyVpcAttribute,
  21434. HTTPMethod: "POST",
  21435. HTTPPath: "/",
  21436. }
  21437. if input == nil {
  21438. input = &ModifyVpcAttributeInput{}
  21439. }
  21440. output = &ModifyVpcAttributeOutput{}
  21441. req = c.newRequest(op, input, output)
  21442. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  21443. return
  21444. }
  21445. // ModifyVpcAttribute API operation for Amazon Elastic Compute Cloud.
  21446. //
  21447. // Modifies the specified attribute of the specified VPC.
  21448. //
  21449. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21450. // with awserr.Error's Code and Message methods to get detailed information about
  21451. // the error.
  21452. //
  21453. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21454. // API operation ModifyVpcAttribute for usage and error information.
  21455. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute
  21456. func (c *EC2) ModifyVpcAttribute(input *ModifyVpcAttributeInput) (*ModifyVpcAttributeOutput, error) {
  21457. req, out := c.ModifyVpcAttributeRequest(input)
  21458. return out, req.Send()
  21459. }
  21460. // ModifyVpcAttributeWithContext is the same as ModifyVpcAttribute with the addition of
  21461. // the ability to pass a context and additional request options.
  21462. //
  21463. // See ModifyVpcAttribute for details on how to use this API operation.
  21464. //
  21465. // The context must be non-nil and will be used for request cancellation. If
  21466. // the context is nil a panic will occur. In the future the SDK may create
  21467. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21468. // for more information on using Contexts.
  21469. func (c *EC2) ModifyVpcAttributeWithContext(ctx aws.Context, input *ModifyVpcAttributeInput, opts ...request.Option) (*ModifyVpcAttributeOutput, error) {
  21470. req, out := c.ModifyVpcAttributeRequest(input)
  21471. req.SetContext(ctx)
  21472. req.ApplyOptions(opts...)
  21473. return out, req.Send()
  21474. }
  21475. const opModifyVpcEndpoint = "ModifyVpcEndpoint"
  21476. // ModifyVpcEndpointRequest generates a "aws/request.Request" representing the
  21477. // client's request for the ModifyVpcEndpoint operation. The "output" return
  21478. // value will be populated with the request's response once the request completes
  21479. // successfully.
  21480. //
  21481. // Use "Send" method on the returned Request to send the API call to the service.
  21482. // the "output" return value is not valid until after Send returns without error.
  21483. //
  21484. // See ModifyVpcEndpoint for more information on using the ModifyVpcEndpoint
  21485. // API call, and error handling.
  21486. //
  21487. // This method is useful when you want to inject custom logic or configuration
  21488. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21489. //
  21490. //
  21491. // // Example sending a request using the ModifyVpcEndpointRequest method.
  21492. // req, resp := client.ModifyVpcEndpointRequest(params)
  21493. //
  21494. // err := req.Send()
  21495. // if err == nil { // resp is now filled
  21496. // fmt.Println(resp)
  21497. // }
  21498. //
  21499. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpoint
  21500. func (c *EC2) ModifyVpcEndpointRequest(input *ModifyVpcEndpointInput) (req *request.Request, output *ModifyVpcEndpointOutput) {
  21501. op := &request.Operation{
  21502. Name: opModifyVpcEndpoint,
  21503. HTTPMethod: "POST",
  21504. HTTPPath: "/",
  21505. }
  21506. if input == nil {
  21507. input = &ModifyVpcEndpointInput{}
  21508. }
  21509. output = &ModifyVpcEndpointOutput{}
  21510. req = c.newRequest(op, input, output)
  21511. return
  21512. }
  21513. // ModifyVpcEndpoint API operation for Amazon Elastic Compute Cloud.
  21514. //
  21515. // Modifies attributes of a specified VPC endpoint. The attributes that you
  21516. // can modify depend on the type of VPC endpoint (interface or gateway). For
  21517. // more information, see VPC Endpoints (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-endpoints.html)
  21518. // in the Amazon Virtual Private Cloud User Guide.
  21519. //
  21520. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21521. // with awserr.Error's Code and Message methods to get detailed information about
  21522. // the error.
  21523. //
  21524. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21525. // API operation ModifyVpcEndpoint for usage and error information.
  21526. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpoint
  21527. func (c *EC2) ModifyVpcEndpoint(input *ModifyVpcEndpointInput) (*ModifyVpcEndpointOutput, error) {
  21528. req, out := c.ModifyVpcEndpointRequest(input)
  21529. return out, req.Send()
  21530. }
  21531. // ModifyVpcEndpointWithContext is the same as ModifyVpcEndpoint with the addition of
  21532. // the ability to pass a context and additional request options.
  21533. //
  21534. // See ModifyVpcEndpoint for details on how to use this API operation.
  21535. //
  21536. // The context must be non-nil and will be used for request cancellation. If
  21537. // the context is nil a panic will occur. In the future the SDK may create
  21538. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21539. // for more information on using Contexts.
  21540. func (c *EC2) ModifyVpcEndpointWithContext(ctx aws.Context, input *ModifyVpcEndpointInput, opts ...request.Option) (*ModifyVpcEndpointOutput, error) {
  21541. req, out := c.ModifyVpcEndpointRequest(input)
  21542. req.SetContext(ctx)
  21543. req.ApplyOptions(opts...)
  21544. return out, req.Send()
  21545. }
  21546. const opModifyVpcEndpointConnectionNotification = "ModifyVpcEndpointConnectionNotification"
  21547. // ModifyVpcEndpointConnectionNotificationRequest generates a "aws/request.Request" representing the
  21548. // client's request for the ModifyVpcEndpointConnectionNotification operation. The "output" return
  21549. // value will be populated with the request's response once the request completes
  21550. // successfully.
  21551. //
  21552. // Use "Send" method on the returned Request to send the API call to the service.
  21553. // the "output" return value is not valid until after Send returns without error.
  21554. //
  21555. // See ModifyVpcEndpointConnectionNotification for more information on using the ModifyVpcEndpointConnectionNotification
  21556. // API call, and error handling.
  21557. //
  21558. // This method is useful when you want to inject custom logic or configuration
  21559. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21560. //
  21561. //
  21562. // // Example sending a request using the ModifyVpcEndpointConnectionNotificationRequest method.
  21563. // req, resp := client.ModifyVpcEndpointConnectionNotificationRequest(params)
  21564. //
  21565. // err := req.Send()
  21566. // if err == nil { // resp is now filled
  21567. // fmt.Println(resp)
  21568. // }
  21569. //
  21570. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotification
  21571. func (c *EC2) ModifyVpcEndpointConnectionNotificationRequest(input *ModifyVpcEndpointConnectionNotificationInput) (req *request.Request, output *ModifyVpcEndpointConnectionNotificationOutput) {
  21572. op := &request.Operation{
  21573. Name: opModifyVpcEndpointConnectionNotification,
  21574. HTTPMethod: "POST",
  21575. HTTPPath: "/",
  21576. }
  21577. if input == nil {
  21578. input = &ModifyVpcEndpointConnectionNotificationInput{}
  21579. }
  21580. output = &ModifyVpcEndpointConnectionNotificationOutput{}
  21581. req = c.newRequest(op, input, output)
  21582. return
  21583. }
  21584. // ModifyVpcEndpointConnectionNotification API operation for Amazon Elastic Compute Cloud.
  21585. //
  21586. // Modifies a connection notification for VPC endpoint or VPC endpoint service.
  21587. // You can change the SNS topic for the notification, or the events for which
  21588. // to be notified.
  21589. //
  21590. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21591. // with awserr.Error's Code and Message methods to get detailed information about
  21592. // the error.
  21593. //
  21594. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21595. // API operation ModifyVpcEndpointConnectionNotification for usage and error information.
  21596. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotification
  21597. func (c *EC2) ModifyVpcEndpointConnectionNotification(input *ModifyVpcEndpointConnectionNotificationInput) (*ModifyVpcEndpointConnectionNotificationOutput, error) {
  21598. req, out := c.ModifyVpcEndpointConnectionNotificationRequest(input)
  21599. return out, req.Send()
  21600. }
  21601. // ModifyVpcEndpointConnectionNotificationWithContext is the same as ModifyVpcEndpointConnectionNotification with the addition of
  21602. // the ability to pass a context and additional request options.
  21603. //
  21604. // See ModifyVpcEndpointConnectionNotification for details on how to use this API operation.
  21605. //
  21606. // The context must be non-nil and will be used for request cancellation. If
  21607. // the context is nil a panic will occur. In the future the SDK may create
  21608. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21609. // for more information on using Contexts.
  21610. func (c *EC2) ModifyVpcEndpointConnectionNotificationWithContext(ctx aws.Context, input *ModifyVpcEndpointConnectionNotificationInput, opts ...request.Option) (*ModifyVpcEndpointConnectionNotificationOutput, error) {
  21611. req, out := c.ModifyVpcEndpointConnectionNotificationRequest(input)
  21612. req.SetContext(ctx)
  21613. req.ApplyOptions(opts...)
  21614. return out, req.Send()
  21615. }
  21616. const opModifyVpcEndpointServiceConfiguration = "ModifyVpcEndpointServiceConfiguration"
  21617. // ModifyVpcEndpointServiceConfigurationRequest generates a "aws/request.Request" representing the
  21618. // client's request for the ModifyVpcEndpointServiceConfiguration operation. The "output" return
  21619. // value will be populated with the request's response once the request completes
  21620. // successfully.
  21621. //
  21622. // Use "Send" method on the returned Request to send the API call to the service.
  21623. // the "output" return value is not valid until after Send returns without error.
  21624. //
  21625. // See ModifyVpcEndpointServiceConfiguration for more information on using the ModifyVpcEndpointServiceConfiguration
  21626. // API call, and error handling.
  21627. //
  21628. // This method is useful when you want to inject custom logic or configuration
  21629. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21630. //
  21631. //
  21632. // // Example sending a request using the ModifyVpcEndpointServiceConfigurationRequest method.
  21633. // req, resp := client.ModifyVpcEndpointServiceConfigurationRequest(params)
  21634. //
  21635. // err := req.Send()
  21636. // if err == nil { // resp is now filled
  21637. // fmt.Println(resp)
  21638. // }
  21639. //
  21640. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfiguration
  21641. func (c *EC2) ModifyVpcEndpointServiceConfigurationRequest(input *ModifyVpcEndpointServiceConfigurationInput) (req *request.Request, output *ModifyVpcEndpointServiceConfigurationOutput) {
  21642. op := &request.Operation{
  21643. Name: opModifyVpcEndpointServiceConfiguration,
  21644. HTTPMethod: "POST",
  21645. HTTPPath: "/",
  21646. }
  21647. if input == nil {
  21648. input = &ModifyVpcEndpointServiceConfigurationInput{}
  21649. }
  21650. output = &ModifyVpcEndpointServiceConfigurationOutput{}
  21651. req = c.newRequest(op, input, output)
  21652. return
  21653. }
  21654. // ModifyVpcEndpointServiceConfiguration API operation for Amazon Elastic Compute Cloud.
  21655. //
  21656. // Modifies the attributes of your VPC endpoint service configuration. You can
  21657. // change the Network Load Balancers for your service, and you can specify whether
  21658. // acceptance is required for requests to connect to your endpoint service through
  21659. // an interface VPC endpoint.
  21660. //
  21661. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21662. // with awserr.Error's Code and Message methods to get detailed information about
  21663. // the error.
  21664. //
  21665. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21666. // API operation ModifyVpcEndpointServiceConfiguration for usage and error information.
  21667. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfiguration
  21668. func (c *EC2) ModifyVpcEndpointServiceConfiguration(input *ModifyVpcEndpointServiceConfigurationInput) (*ModifyVpcEndpointServiceConfigurationOutput, error) {
  21669. req, out := c.ModifyVpcEndpointServiceConfigurationRequest(input)
  21670. return out, req.Send()
  21671. }
  21672. // ModifyVpcEndpointServiceConfigurationWithContext is the same as ModifyVpcEndpointServiceConfiguration with the addition of
  21673. // the ability to pass a context and additional request options.
  21674. //
  21675. // See ModifyVpcEndpointServiceConfiguration for details on how to use this API operation.
  21676. //
  21677. // The context must be non-nil and will be used for request cancellation. If
  21678. // the context is nil a panic will occur. In the future the SDK may create
  21679. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21680. // for more information on using Contexts.
  21681. func (c *EC2) ModifyVpcEndpointServiceConfigurationWithContext(ctx aws.Context, input *ModifyVpcEndpointServiceConfigurationInput, opts ...request.Option) (*ModifyVpcEndpointServiceConfigurationOutput, error) {
  21682. req, out := c.ModifyVpcEndpointServiceConfigurationRequest(input)
  21683. req.SetContext(ctx)
  21684. req.ApplyOptions(opts...)
  21685. return out, req.Send()
  21686. }
  21687. const opModifyVpcEndpointServicePermissions = "ModifyVpcEndpointServicePermissions"
  21688. // ModifyVpcEndpointServicePermissionsRequest generates a "aws/request.Request" representing the
  21689. // client's request for the ModifyVpcEndpointServicePermissions operation. The "output" return
  21690. // value will be populated with the request's response once the request completes
  21691. // successfully.
  21692. //
  21693. // Use "Send" method on the returned Request to send the API call to the service.
  21694. // the "output" return value is not valid until after Send returns without error.
  21695. //
  21696. // See ModifyVpcEndpointServicePermissions for more information on using the ModifyVpcEndpointServicePermissions
  21697. // API call, and error handling.
  21698. //
  21699. // This method is useful when you want to inject custom logic or configuration
  21700. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21701. //
  21702. //
  21703. // // Example sending a request using the ModifyVpcEndpointServicePermissionsRequest method.
  21704. // req, resp := client.ModifyVpcEndpointServicePermissionsRequest(params)
  21705. //
  21706. // err := req.Send()
  21707. // if err == nil { // resp is now filled
  21708. // fmt.Println(resp)
  21709. // }
  21710. //
  21711. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissions
  21712. func (c *EC2) ModifyVpcEndpointServicePermissionsRequest(input *ModifyVpcEndpointServicePermissionsInput) (req *request.Request, output *ModifyVpcEndpointServicePermissionsOutput) {
  21713. op := &request.Operation{
  21714. Name: opModifyVpcEndpointServicePermissions,
  21715. HTTPMethod: "POST",
  21716. HTTPPath: "/",
  21717. }
  21718. if input == nil {
  21719. input = &ModifyVpcEndpointServicePermissionsInput{}
  21720. }
  21721. output = &ModifyVpcEndpointServicePermissionsOutput{}
  21722. req = c.newRequest(op, input, output)
  21723. return
  21724. }
  21725. // ModifyVpcEndpointServicePermissions API operation for Amazon Elastic Compute Cloud.
  21726. //
  21727. // Modifies the permissions for your VPC endpoint service (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/endpoint-service.html).
  21728. // You can add or remove permissions for service consumers (IAM users, IAM roles,
  21729. // and AWS accounts) to connect to your endpoint service.
  21730. //
  21731. // If you grant permissions to all principals, the service is public. Any users
  21732. // who know the name of a public service can send a request to attach an endpoint.
  21733. // If the service does not require manual approval, attachments are automatically
  21734. // approved.
  21735. //
  21736. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21737. // with awserr.Error's Code and Message methods to get detailed information about
  21738. // the error.
  21739. //
  21740. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21741. // API operation ModifyVpcEndpointServicePermissions for usage and error information.
  21742. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissions
  21743. func (c *EC2) ModifyVpcEndpointServicePermissions(input *ModifyVpcEndpointServicePermissionsInput) (*ModifyVpcEndpointServicePermissionsOutput, error) {
  21744. req, out := c.ModifyVpcEndpointServicePermissionsRequest(input)
  21745. return out, req.Send()
  21746. }
  21747. // ModifyVpcEndpointServicePermissionsWithContext is the same as ModifyVpcEndpointServicePermissions with the addition of
  21748. // the ability to pass a context and additional request options.
  21749. //
  21750. // See ModifyVpcEndpointServicePermissions for details on how to use this API operation.
  21751. //
  21752. // The context must be non-nil and will be used for request cancellation. If
  21753. // the context is nil a panic will occur. In the future the SDK may create
  21754. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21755. // for more information on using Contexts.
  21756. func (c *EC2) ModifyVpcEndpointServicePermissionsWithContext(ctx aws.Context, input *ModifyVpcEndpointServicePermissionsInput, opts ...request.Option) (*ModifyVpcEndpointServicePermissionsOutput, error) {
  21757. req, out := c.ModifyVpcEndpointServicePermissionsRequest(input)
  21758. req.SetContext(ctx)
  21759. req.ApplyOptions(opts...)
  21760. return out, req.Send()
  21761. }
  21762. const opModifyVpcPeeringConnectionOptions = "ModifyVpcPeeringConnectionOptions"
  21763. // ModifyVpcPeeringConnectionOptionsRequest generates a "aws/request.Request" representing the
  21764. // client's request for the ModifyVpcPeeringConnectionOptions operation. The "output" return
  21765. // value will be populated with the request's response once the request completes
  21766. // successfully.
  21767. //
  21768. // Use "Send" method on the returned Request to send the API call to the service.
  21769. // the "output" return value is not valid until after Send returns without error.
  21770. //
  21771. // See ModifyVpcPeeringConnectionOptions for more information on using the ModifyVpcPeeringConnectionOptions
  21772. // API call, and error handling.
  21773. //
  21774. // This method is useful when you want to inject custom logic or configuration
  21775. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21776. //
  21777. //
  21778. // // Example sending a request using the ModifyVpcPeeringConnectionOptionsRequest method.
  21779. // req, resp := client.ModifyVpcPeeringConnectionOptionsRequest(params)
  21780. //
  21781. // err := req.Send()
  21782. // if err == nil { // resp is now filled
  21783. // fmt.Println(resp)
  21784. // }
  21785. //
  21786. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptions
  21787. func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringConnectionOptionsInput) (req *request.Request, output *ModifyVpcPeeringConnectionOptionsOutput) {
  21788. op := &request.Operation{
  21789. Name: opModifyVpcPeeringConnectionOptions,
  21790. HTTPMethod: "POST",
  21791. HTTPPath: "/",
  21792. }
  21793. if input == nil {
  21794. input = &ModifyVpcPeeringConnectionOptionsInput{}
  21795. }
  21796. output = &ModifyVpcPeeringConnectionOptionsOutput{}
  21797. req = c.newRequest(op, input, output)
  21798. return
  21799. }
  21800. // ModifyVpcPeeringConnectionOptions API operation for Amazon Elastic Compute Cloud.
  21801. //
  21802. // Modifies the VPC peering connection options on one side of a VPC peering
  21803. // connection. You can do the following:
  21804. //
  21805. // * Enable/disable communication over the peering connection between an
  21806. // EC2-Classic instance that's linked to your VPC (using ClassicLink) and
  21807. // instances in the peer VPC.
  21808. //
  21809. // * Enable/disable communication over the peering connection between instances
  21810. // in your VPC and an EC2-Classic instance that's linked to the peer VPC.
  21811. //
  21812. // * Enable/disable the ability to resolve public DNS hostnames to private
  21813. // IP addresses when queried from instances in the peer VPC.
  21814. //
  21815. // If the peered VPCs are in the same AWS account, you can enable DNS resolution
  21816. // for queries from the local VPC. This ensures that queries from the local
  21817. // VPC resolve to private IP addresses in the peer VPC. This option is not available
  21818. // if the peered VPCs are in different AWS accounts or different regions. For
  21819. // peered VPCs in different AWS accounts, each AWS account owner must initiate
  21820. // a separate request to modify the peering connection options. For inter-region
  21821. // peering connections, you must use the region for the requester VPC to modify
  21822. // the requester VPC peering options and the region for the accepter VPC to
  21823. // modify the accepter VPC peering options. To verify which VPCs are the accepter
  21824. // and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections
  21825. // command.
  21826. //
  21827. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21828. // with awserr.Error's Code and Message methods to get detailed information about
  21829. // the error.
  21830. //
  21831. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21832. // API operation ModifyVpcPeeringConnectionOptions for usage and error information.
  21833. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptions
  21834. func (c *EC2) ModifyVpcPeeringConnectionOptions(input *ModifyVpcPeeringConnectionOptionsInput) (*ModifyVpcPeeringConnectionOptionsOutput, error) {
  21835. req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input)
  21836. return out, req.Send()
  21837. }
  21838. // ModifyVpcPeeringConnectionOptionsWithContext is the same as ModifyVpcPeeringConnectionOptions with the addition of
  21839. // the ability to pass a context and additional request options.
  21840. //
  21841. // See ModifyVpcPeeringConnectionOptions for details on how to use this API operation.
  21842. //
  21843. // The context must be non-nil and will be used for request cancellation. If
  21844. // the context is nil a panic will occur. In the future the SDK may create
  21845. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21846. // for more information on using Contexts.
  21847. func (c *EC2) ModifyVpcPeeringConnectionOptionsWithContext(ctx aws.Context, input *ModifyVpcPeeringConnectionOptionsInput, opts ...request.Option) (*ModifyVpcPeeringConnectionOptionsOutput, error) {
  21848. req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input)
  21849. req.SetContext(ctx)
  21850. req.ApplyOptions(opts...)
  21851. return out, req.Send()
  21852. }
  21853. const opModifyVpcTenancy = "ModifyVpcTenancy"
  21854. // ModifyVpcTenancyRequest generates a "aws/request.Request" representing the
  21855. // client's request for the ModifyVpcTenancy operation. The "output" return
  21856. // value will be populated with the request's response once the request completes
  21857. // successfully.
  21858. //
  21859. // Use "Send" method on the returned Request to send the API call to the service.
  21860. // the "output" return value is not valid until after Send returns without error.
  21861. //
  21862. // See ModifyVpcTenancy for more information on using the ModifyVpcTenancy
  21863. // API call, and error handling.
  21864. //
  21865. // This method is useful when you want to inject custom logic or configuration
  21866. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21867. //
  21868. //
  21869. // // Example sending a request using the ModifyVpcTenancyRequest method.
  21870. // req, resp := client.ModifyVpcTenancyRequest(params)
  21871. //
  21872. // err := req.Send()
  21873. // if err == nil { // resp is now filled
  21874. // fmt.Println(resp)
  21875. // }
  21876. //
  21877. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcTenancy
  21878. func (c *EC2) ModifyVpcTenancyRequest(input *ModifyVpcTenancyInput) (req *request.Request, output *ModifyVpcTenancyOutput) {
  21879. op := &request.Operation{
  21880. Name: opModifyVpcTenancy,
  21881. HTTPMethod: "POST",
  21882. HTTPPath: "/",
  21883. }
  21884. if input == nil {
  21885. input = &ModifyVpcTenancyInput{}
  21886. }
  21887. output = &ModifyVpcTenancyOutput{}
  21888. req = c.newRequest(op, input, output)
  21889. return
  21890. }
  21891. // ModifyVpcTenancy API operation for Amazon Elastic Compute Cloud.
  21892. //
  21893. // Modifies the instance tenancy attribute of the specified VPC. You can change
  21894. // the instance tenancy attribute of a VPC to default only. You cannot change
  21895. // the instance tenancy attribute to dedicated.
  21896. //
  21897. // After you modify the tenancy of the VPC, any new instances that you launch
  21898. // into the VPC have a tenancy of default, unless you specify otherwise during
  21899. // launch. The tenancy of any existing instances in the VPC is not affected.
  21900. //
  21901. // For more information, see Dedicated Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html)
  21902. // in the Amazon Elastic Compute Cloud User Guide.
  21903. //
  21904. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21905. // with awserr.Error's Code and Message methods to get detailed information about
  21906. // the error.
  21907. //
  21908. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21909. // API operation ModifyVpcTenancy for usage and error information.
  21910. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcTenancy
  21911. func (c *EC2) ModifyVpcTenancy(input *ModifyVpcTenancyInput) (*ModifyVpcTenancyOutput, error) {
  21912. req, out := c.ModifyVpcTenancyRequest(input)
  21913. return out, req.Send()
  21914. }
  21915. // ModifyVpcTenancyWithContext is the same as ModifyVpcTenancy with the addition of
  21916. // the ability to pass a context and additional request options.
  21917. //
  21918. // See ModifyVpcTenancy for details on how to use this API operation.
  21919. //
  21920. // The context must be non-nil and will be used for request cancellation. If
  21921. // the context is nil a panic will occur. In the future the SDK may create
  21922. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21923. // for more information on using Contexts.
  21924. func (c *EC2) ModifyVpcTenancyWithContext(ctx aws.Context, input *ModifyVpcTenancyInput, opts ...request.Option) (*ModifyVpcTenancyOutput, error) {
  21925. req, out := c.ModifyVpcTenancyRequest(input)
  21926. req.SetContext(ctx)
  21927. req.ApplyOptions(opts...)
  21928. return out, req.Send()
  21929. }
  21930. const opMonitorInstances = "MonitorInstances"
  21931. // MonitorInstancesRequest generates a "aws/request.Request" representing the
  21932. // client's request for the MonitorInstances operation. The "output" return
  21933. // value will be populated with the request's response once the request completes
  21934. // successfully.
  21935. //
  21936. // Use "Send" method on the returned Request to send the API call to the service.
  21937. // the "output" return value is not valid until after Send returns without error.
  21938. //
  21939. // See MonitorInstances for more information on using the MonitorInstances
  21940. // API call, and error handling.
  21941. //
  21942. // This method is useful when you want to inject custom logic or configuration
  21943. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21944. //
  21945. //
  21946. // // Example sending a request using the MonitorInstancesRequest method.
  21947. // req, resp := client.MonitorInstancesRequest(params)
  21948. //
  21949. // err := req.Send()
  21950. // if err == nil { // resp is now filled
  21951. // fmt.Println(resp)
  21952. // }
  21953. //
  21954. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances
  21955. func (c *EC2) MonitorInstancesRequest(input *MonitorInstancesInput) (req *request.Request, output *MonitorInstancesOutput) {
  21956. op := &request.Operation{
  21957. Name: opMonitorInstances,
  21958. HTTPMethod: "POST",
  21959. HTTPPath: "/",
  21960. }
  21961. if input == nil {
  21962. input = &MonitorInstancesInput{}
  21963. }
  21964. output = &MonitorInstancesOutput{}
  21965. req = c.newRequest(op, input, output)
  21966. return
  21967. }
  21968. // MonitorInstances API operation for Amazon Elastic Compute Cloud.
  21969. //
  21970. // Enables detailed monitoring for a running instance. Otherwise, basic monitoring
  21971. // is enabled. For more information, see Monitoring Your Instances and Volumes
  21972. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html)
  21973. // in the Amazon Elastic Compute Cloud User Guide.
  21974. //
  21975. // To disable detailed monitoring, see .
  21976. //
  21977. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21978. // with awserr.Error's Code and Message methods to get detailed information about
  21979. // the error.
  21980. //
  21981. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21982. // API operation MonitorInstances for usage and error information.
  21983. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances
  21984. func (c *EC2) MonitorInstances(input *MonitorInstancesInput) (*MonitorInstancesOutput, error) {
  21985. req, out := c.MonitorInstancesRequest(input)
  21986. return out, req.Send()
  21987. }
  21988. // MonitorInstancesWithContext is the same as MonitorInstances with the addition of
  21989. // the ability to pass a context and additional request options.
  21990. //
  21991. // See MonitorInstances for details on how to use this API operation.
  21992. //
  21993. // The context must be non-nil and will be used for request cancellation. If
  21994. // the context is nil a panic will occur. In the future the SDK may create
  21995. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21996. // for more information on using Contexts.
  21997. func (c *EC2) MonitorInstancesWithContext(ctx aws.Context, input *MonitorInstancesInput, opts ...request.Option) (*MonitorInstancesOutput, error) {
  21998. req, out := c.MonitorInstancesRequest(input)
  21999. req.SetContext(ctx)
  22000. req.ApplyOptions(opts...)
  22001. return out, req.Send()
  22002. }
  22003. const opMoveAddressToVpc = "MoveAddressToVpc"
  22004. // MoveAddressToVpcRequest generates a "aws/request.Request" representing the
  22005. // client's request for the MoveAddressToVpc operation. The "output" return
  22006. // value will be populated with the request's response once the request completes
  22007. // successfully.
  22008. //
  22009. // Use "Send" method on the returned Request to send the API call to the service.
  22010. // the "output" return value is not valid until after Send returns without error.
  22011. //
  22012. // See MoveAddressToVpc for more information on using the MoveAddressToVpc
  22013. // API call, and error handling.
  22014. //
  22015. // This method is useful when you want to inject custom logic or configuration
  22016. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22017. //
  22018. //
  22019. // // Example sending a request using the MoveAddressToVpcRequest method.
  22020. // req, resp := client.MoveAddressToVpcRequest(params)
  22021. //
  22022. // err := req.Send()
  22023. // if err == nil { // resp is now filled
  22024. // fmt.Println(resp)
  22025. // }
  22026. //
  22027. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpc
  22028. func (c *EC2) MoveAddressToVpcRequest(input *MoveAddressToVpcInput) (req *request.Request, output *MoveAddressToVpcOutput) {
  22029. op := &request.Operation{
  22030. Name: opMoveAddressToVpc,
  22031. HTTPMethod: "POST",
  22032. HTTPPath: "/",
  22033. }
  22034. if input == nil {
  22035. input = &MoveAddressToVpcInput{}
  22036. }
  22037. output = &MoveAddressToVpcOutput{}
  22038. req = c.newRequest(op, input, output)
  22039. return
  22040. }
  22041. // MoveAddressToVpc API operation for Amazon Elastic Compute Cloud.
  22042. //
  22043. // Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC
  22044. // platform. The Elastic IP address must be allocated to your account for more
  22045. // than 24 hours, and it must not be associated with an instance. After the
  22046. // Elastic IP address is moved, it is no longer available for use in the EC2-Classic
  22047. // platform, unless you move it back using the RestoreAddressToClassic request.
  22048. // You cannot move an Elastic IP address that was originally allocated for use
  22049. // in the EC2-VPC platform to the EC2-Classic platform.
  22050. //
  22051. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22052. // with awserr.Error's Code and Message methods to get detailed information about
  22053. // the error.
  22054. //
  22055. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22056. // API operation MoveAddressToVpc for usage and error information.
  22057. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpc
  22058. func (c *EC2) MoveAddressToVpc(input *MoveAddressToVpcInput) (*MoveAddressToVpcOutput, error) {
  22059. req, out := c.MoveAddressToVpcRequest(input)
  22060. return out, req.Send()
  22061. }
  22062. // MoveAddressToVpcWithContext is the same as MoveAddressToVpc with the addition of
  22063. // the ability to pass a context and additional request options.
  22064. //
  22065. // See MoveAddressToVpc for details on how to use this API operation.
  22066. //
  22067. // The context must be non-nil and will be used for request cancellation. If
  22068. // the context is nil a panic will occur. In the future the SDK may create
  22069. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22070. // for more information on using Contexts.
  22071. func (c *EC2) MoveAddressToVpcWithContext(ctx aws.Context, input *MoveAddressToVpcInput, opts ...request.Option) (*MoveAddressToVpcOutput, error) {
  22072. req, out := c.MoveAddressToVpcRequest(input)
  22073. req.SetContext(ctx)
  22074. req.ApplyOptions(opts...)
  22075. return out, req.Send()
  22076. }
  22077. const opProvisionByoipCidr = "ProvisionByoipCidr"
  22078. // ProvisionByoipCidrRequest generates a "aws/request.Request" representing the
  22079. // client's request for the ProvisionByoipCidr operation. The "output" return
  22080. // value will be populated with the request's response once the request completes
  22081. // successfully.
  22082. //
  22083. // Use "Send" method on the returned Request to send the API call to the service.
  22084. // the "output" return value is not valid until after Send returns without error.
  22085. //
  22086. // See ProvisionByoipCidr for more information on using the ProvisionByoipCidr
  22087. // API call, and error handling.
  22088. //
  22089. // This method is useful when you want to inject custom logic or configuration
  22090. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22091. //
  22092. //
  22093. // // Example sending a request using the ProvisionByoipCidrRequest method.
  22094. // req, resp := client.ProvisionByoipCidrRequest(params)
  22095. //
  22096. // err := req.Send()
  22097. // if err == nil { // resp is now filled
  22098. // fmt.Println(resp)
  22099. // }
  22100. //
  22101. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ProvisionByoipCidr
  22102. func (c *EC2) ProvisionByoipCidrRequest(input *ProvisionByoipCidrInput) (req *request.Request, output *ProvisionByoipCidrOutput) {
  22103. op := &request.Operation{
  22104. Name: opProvisionByoipCidr,
  22105. HTTPMethod: "POST",
  22106. HTTPPath: "/",
  22107. }
  22108. if input == nil {
  22109. input = &ProvisionByoipCidrInput{}
  22110. }
  22111. output = &ProvisionByoipCidrOutput{}
  22112. req = c.newRequest(op, input, output)
  22113. return
  22114. }
  22115. // ProvisionByoipCidr API operation for Amazon Elastic Compute Cloud.
  22116. //
  22117. // Provisions an address range for use with your AWS resources through bring
  22118. // your own IP addresses (BYOIP) and creates a corresponding address pool. After
  22119. // the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.
  22120. //
  22121. // AWS verifies that you own the address range and are authorized to advertise
  22122. // it. You must ensure that the address range is registered to you and that
  22123. // you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise
  22124. // the address range. For more information, see Bring Your Own IP Addresses
  22125. // (BYOIP) (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html)
  22126. // in the Amazon Elastic Compute Cloud User Guide.
  22127. //
  22128. // Provisioning an address range is an asynchronous operation, so the call returns
  22129. // immediately, but the address range is not ready to use until its status changes
  22130. // from pending-provision to provisioned. To monitor the status of an address
  22131. // range, use DescribeByoipCidrs. To allocate an Elastic IP address from your
  22132. // address pool, use AllocateAddress with either the specific address from the
  22133. // address pool or the ID of the address pool.
  22134. //
  22135. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22136. // with awserr.Error's Code and Message methods to get detailed information about
  22137. // the error.
  22138. //
  22139. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22140. // API operation ProvisionByoipCidr for usage and error information.
  22141. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ProvisionByoipCidr
  22142. func (c *EC2) ProvisionByoipCidr(input *ProvisionByoipCidrInput) (*ProvisionByoipCidrOutput, error) {
  22143. req, out := c.ProvisionByoipCidrRequest(input)
  22144. return out, req.Send()
  22145. }
  22146. // ProvisionByoipCidrWithContext is the same as ProvisionByoipCidr with the addition of
  22147. // the ability to pass a context and additional request options.
  22148. //
  22149. // See ProvisionByoipCidr for details on how to use this API operation.
  22150. //
  22151. // The context must be non-nil and will be used for request cancellation. If
  22152. // the context is nil a panic will occur. In the future the SDK may create
  22153. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22154. // for more information on using Contexts.
  22155. func (c *EC2) ProvisionByoipCidrWithContext(ctx aws.Context, input *ProvisionByoipCidrInput, opts ...request.Option) (*ProvisionByoipCidrOutput, error) {
  22156. req, out := c.ProvisionByoipCidrRequest(input)
  22157. req.SetContext(ctx)
  22158. req.ApplyOptions(opts...)
  22159. return out, req.Send()
  22160. }
  22161. const opPurchaseHostReservation = "PurchaseHostReservation"
  22162. // PurchaseHostReservationRequest generates a "aws/request.Request" representing the
  22163. // client's request for the PurchaseHostReservation operation. The "output" return
  22164. // value will be populated with the request's response once the request completes
  22165. // successfully.
  22166. //
  22167. // Use "Send" method on the returned Request to send the API call to the service.
  22168. // the "output" return value is not valid until after Send returns without error.
  22169. //
  22170. // See PurchaseHostReservation for more information on using the PurchaseHostReservation
  22171. // API call, and error handling.
  22172. //
  22173. // This method is useful when you want to inject custom logic or configuration
  22174. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22175. //
  22176. //
  22177. // // Example sending a request using the PurchaseHostReservationRequest method.
  22178. // req, resp := client.PurchaseHostReservationRequest(params)
  22179. //
  22180. // err := req.Send()
  22181. // if err == nil { // resp is now filled
  22182. // fmt.Println(resp)
  22183. // }
  22184. //
  22185. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservation
  22186. func (c *EC2) PurchaseHostReservationRequest(input *PurchaseHostReservationInput) (req *request.Request, output *PurchaseHostReservationOutput) {
  22187. op := &request.Operation{
  22188. Name: opPurchaseHostReservation,
  22189. HTTPMethod: "POST",
  22190. HTTPPath: "/",
  22191. }
  22192. if input == nil {
  22193. input = &PurchaseHostReservationInput{}
  22194. }
  22195. output = &PurchaseHostReservationOutput{}
  22196. req = c.newRequest(op, input, output)
  22197. return
  22198. }
  22199. // PurchaseHostReservation API operation for Amazon Elastic Compute Cloud.
  22200. //
  22201. // Purchase a reservation with configurations that match those of your Dedicated
  22202. // Host. You must have active Dedicated Hosts in your account before you purchase
  22203. // a reservation. This action results in the specified reservation being purchased
  22204. // and charged to your account.
  22205. //
  22206. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22207. // with awserr.Error's Code and Message methods to get detailed information about
  22208. // the error.
  22209. //
  22210. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22211. // API operation PurchaseHostReservation for usage and error information.
  22212. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservation
  22213. func (c *EC2) PurchaseHostReservation(input *PurchaseHostReservationInput) (*PurchaseHostReservationOutput, error) {
  22214. req, out := c.PurchaseHostReservationRequest(input)
  22215. return out, req.Send()
  22216. }
  22217. // PurchaseHostReservationWithContext is the same as PurchaseHostReservation with the addition of
  22218. // the ability to pass a context and additional request options.
  22219. //
  22220. // See PurchaseHostReservation for details on how to use this API operation.
  22221. //
  22222. // The context must be non-nil and will be used for request cancellation. If
  22223. // the context is nil a panic will occur. In the future the SDK may create
  22224. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22225. // for more information on using Contexts.
  22226. func (c *EC2) PurchaseHostReservationWithContext(ctx aws.Context, input *PurchaseHostReservationInput, opts ...request.Option) (*PurchaseHostReservationOutput, error) {
  22227. req, out := c.PurchaseHostReservationRequest(input)
  22228. req.SetContext(ctx)
  22229. req.ApplyOptions(opts...)
  22230. return out, req.Send()
  22231. }
  22232. const opPurchaseReservedInstancesOffering = "PurchaseReservedInstancesOffering"
  22233. // PurchaseReservedInstancesOfferingRequest generates a "aws/request.Request" representing the
  22234. // client's request for the PurchaseReservedInstancesOffering operation. The "output" return
  22235. // value will be populated with the request's response once the request completes
  22236. // successfully.
  22237. //
  22238. // Use "Send" method on the returned Request to send the API call to the service.
  22239. // the "output" return value is not valid until after Send returns without error.
  22240. //
  22241. // See PurchaseReservedInstancesOffering for more information on using the PurchaseReservedInstancesOffering
  22242. // API call, and error handling.
  22243. //
  22244. // This method is useful when you want to inject custom logic or configuration
  22245. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22246. //
  22247. //
  22248. // // Example sending a request using the PurchaseReservedInstancesOfferingRequest method.
  22249. // req, resp := client.PurchaseReservedInstancesOfferingRequest(params)
  22250. //
  22251. // err := req.Send()
  22252. // if err == nil { // resp is now filled
  22253. // fmt.Println(resp)
  22254. // }
  22255. //
  22256. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOffering
  22257. func (c *EC2) PurchaseReservedInstancesOfferingRequest(input *PurchaseReservedInstancesOfferingInput) (req *request.Request, output *PurchaseReservedInstancesOfferingOutput) {
  22258. op := &request.Operation{
  22259. Name: opPurchaseReservedInstancesOffering,
  22260. HTTPMethod: "POST",
  22261. HTTPPath: "/",
  22262. }
  22263. if input == nil {
  22264. input = &PurchaseReservedInstancesOfferingInput{}
  22265. }
  22266. output = &PurchaseReservedInstancesOfferingOutput{}
  22267. req = c.newRequest(op, input, output)
  22268. return
  22269. }
  22270. // PurchaseReservedInstancesOffering API operation for Amazon Elastic Compute Cloud.
  22271. //
  22272. // Purchases a Reserved Instance for use with your account. With Reserved Instances,
  22273. // you pay a lower hourly rate compared to On-Demand instance pricing.
  22274. //
  22275. // Use DescribeReservedInstancesOfferings to get a list of Reserved Instance
  22276. // offerings that match your specifications. After you've purchased a Reserved
  22277. // Instance, you can check for your new Reserved Instance with DescribeReservedInstances.
  22278. //
  22279. // For more information, see Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html)
  22280. // and Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  22281. // in the Amazon Elastic Compute Cloud User Guide.
  22282. //
  22283. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22284. // with awserr.Error's Code and Message methods to get detailed information about
  22285. // the error.
  22286. //
  22287. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22288. // API operation PurchaseReservedInstancesOffering for usage and error information.
  22289. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOffering
  22290. func (c *EC2) PurchaseReservedInstancesOffering(input *PurchaseReservedInstancesOfferingInput) (*PurchaseReservedInstancesOfferingOutput, error) {
  22291. req, out := c.PurchaseReservedInstancesOfferingRequest(input)
  22292. return out, req.Send()
  22293. }
  22294. // PurchaseReservedInstancesOfferingWithContext is the same as PurchaseReservedInstancesOffering with the addition of
  22295. // the ability to pass a context and additional request options.
  22296. //
  22297. // See PurchaseReservedInstancesOffering for details on how to use this API operation.
  22298. //
  22299. // The context must be non-nil and will be used for request cancellation. If
  22300. // the context is nil a panic will occur. In the future the SDK may create
  22301. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22302. // for more information on using Contexts.
  22303. func (c *EC2) PurchaseReservedInstancesOfferingWithContext(ctx aws.Context, input *PurchaseReservedInstancesOfferingInput, opts ...request.Option) (*PurchaseReservedInstancesOfferingOutput, error) {
  22304. req, out := c.PurchaseReservedInstancesOfferingRequest(input)
  22305. req.SetContext(ctx)
  22306. req.ApplyOptions(opts...)
  22307. return out, req.Send()
  22308. }
  22309. const opPurchaseScheduledInstances = "PurchaseScheduledInstances"
  22310. // PurchaseScheduledInstancesRequest generates a "aws/request.Request" representing the
  22311. // client's request for the PurchaseScheduledInstances operation. The "output" return
  22312. // value will be populated with the request's response once the request completes
  22313. // successfully.
  22314. //
  22315. // Use "Send" method on the returned Request to send the API call to the service.
  22316. // the "output" return value is not valid until after Send returns without error.
  22317. //
  22318. // See PurchaseScheduledInstances for more information on using the PurchaseScheduledInstances
  22319. // API call, and error handling.
  22320. //
  22321. // This method is useful when you want to inject custom logic or configuration
  22322. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22323. //
  22324. //
  22325. // // Example sending a request using the PurchaseScheduledInstancesRequest method.
  22326. // req, resp := client.PurchaseScheduledInstancesRequest(params)
  22327. //
  22328. // err := req.Send()
  22329. // if err == nil { // resp is now filled
  22330. // fmt.Println(resp)
  22331. // }
  22332. //
  22333. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstances
  22334. func (c *EC2) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstancesInput) (req *request.Request, output *PurchaseScheduledInstancesOutput) {
  22335. op := &request.Operation{
  22336. Name: opPurchaseScheduledInstances,
  22337. HTTPMethod: "POST",
  22338. HTTPPath: "/",
  22339. }
  22340. if input == nil {
  22341. input = &PurchaseScheduledInstancesInput{}
  22342. }
  22343. output = &PurchaseScheduledInstancesOutput{}
  22344. req = c.newRequest(op, input, output)
  22345. return
  22346. }
  22347. // PurchaseScheduledInstances API operation for Amazon Elastic Compute Cloud.
  22348. //
  22349. // Purchases one or more Scheduled Instances with the specified schedule.
  22350. //
  22351. // Scheduled Instances enable you to purchase Amazon EC2 compute capacity by
  22352. // the hour for a one-year term. Before you can purchase a Scheduled Instance,
  22353. // you must call DescribeScheduledInstanceAvailability to check for available
  22354. // schedules and obtain a purchase token. After you purchase a Scheduled Instance,
  22355. // you must call RunScheduledInstances during each scheduled time period.
  22356. //
  22357. // After you purchase a Scheduled Instance, you can't cancel, modify, or resell
  22358. // your purchase.
  22359. //
  22360. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22361. // with awserr.Error's Code and Message methods to get detailed information about
  22362. // the error.
  22363. //
  22364. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22365. // API operation PurchaseScheduledInstances for usage and error information.
  22366. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstances
  22367. func (c *EC2) PurchaseScheduledInstances(input *PurchaseScheduledInstancesInput) (*PurchaseScheduledInstancesOutput, error) {
  22368. req, out := c.PurchaseScheduledInstancesRequest(input)
  22369. return out, req.Send()
  22370. }
  22371. // PurchaseScheduledInstancesWithContext is the same as PurchaseScheduledInstances with the addition of
  22372. // the ability to pass a context and additional request options.
  22373. //
  22374. // See PurchaseScheduledInstances for details on how to use this API operation.
  22375. //
  22376. // The context must be non-nil and will be used for request cancellation. If
  22377. // the context is nil a panic will occur. In the future the SDK may create
  22378. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22379. // for more information on using Contexts.
  22380. func (c *EC2) PurchaseScheduledInstancesWithContext(ctx aws.Context, input *PurchaseScheduledInstancesInput, opts ...request.Option) (*PurchaseScheduledInstancesOutput, error) {
  22381. req, out := c.PurchaseScheduledInstancesRequest(input)
  22382. req.SetContext(ctx)
  22383. req.ApplyOptions(opts...)
  22384. return out, req.Send()
  22385. }
  22386. const opRebootInstances = "RebootInstances"
  22387. // RebootInstancesRequest generates a "aws/request.Request" representing the
  22388. // client's request for the RebootInstances operation. The "output" return
  22389. // value will be populated with the request's response once the request completes
  22390. // successfully.
  22391. //
  22392. // Use "Send" method on the returned Request to send the API call to the service.
  22393. // the "output" return value is not valid until after Send returns without error.
  22394. //
  22395. // See RebootInstances for more information on using the RebootInstances
  22396. // API call, and error handling.
  22397. //
  22398. // This method is useful when you want to inject custom logic or configuration
  22399. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22400. //
  22401. //
  22402. // // Example sending a request using the RebootInstancesRequest method.
  22403. // req, resp := client.RebootInstancesRequest(params)
  22404. //
  22405. // err := req.Send()
  22406. // if err == nil { // resp is now filled
  22407. // fmt.Println(resp)
  22408. // }
  22409. //
  22410. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstances
  22411. func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request.Request, output *RebootInstancesOutput) {
  22412. op := &request.Operation{
  22413. Name: opRebootInstances,
  22414. HTTPMethod: "POST",
  22415. HTTPPath: "/",
  22416. }
  22417. if input == nil {
  22418. input = &RebootInstancesInput{}
  22419. }
  22420. output = &RebootInstancesOutput{}
  22421. req = c.newRequest(op, input, output)
  22422. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  22423. return
  22424. }
  22425. // RebootInstances API operation for Amazon Elastic Compute Cloud.
  22426. //
  22427. // Requests a reboot of one or more instances. This operation is asynchronous;
  22428. // it only queues a request to reboot the specified instances. The operation
  22429. // succeeds if the instances are valid and belong to you. Requests to reboot
  22430. // terminated instances are ignored.
  22431. //
  22432. // If an instance does not cleanly shut down within four minutes, Amazon EC2
  22433. // performs a hard reboot.
  22434. //
  22435. // For more information about troubleshooting, see Getting Console Output and
  22436. // Rebooting Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html)
  22437. // in the Amazon Elastic Compute Cloud User Guide.
  22438. //
  22439. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22440. // with awserr.Error's Code and Message methods to get detailed information about
  22441. // the error.
  22442. //
  22443. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22444. // API operation RebootInstances for usage and error information.
  22445. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstances
  22446. func (c *EC2) RebootInstances(input *RebootInstancesInput) (*RebootInstancesOutput, error) {
  22447. req, out := c.RebootInstancesRequest(input)
  22448. return out, req.Send()
  22449. }
  22450. // RebootInstancesWithContext is the same as RebootInstances with the addition of
  22451. // the ability to pass a context and additional request options.
  22452. //
  22453. // See RebootInstances for details on how to use this API operation.
  22454. //
  22455. // The context must be non-nil and will be used for request cancellation. If
  22456. // the context is nil a panic will occur. In the future the SDK may create
  22457. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22458. // for more information on using Contexts.
  22459. func (c *EC2) RebootInstancesWithContext(ctx aws.Context, input *RebootInstancesInput, opts ...request.Option) (*RebootInstancesOutput, error) {
  22460. req, out := c.RebootInstancesRequest(input)
  22461. req.SetContext(ctx)
  22462. req.ApplyOptions(opts...)
  22463. return out, req.Send()
  22464. }
  22465. const opRegisterImage = "RegisterImage"
  22466. // RegisterImageRequest generates a "aws/request.Request" representing the
  22467. // client's request for the RegisterImage operation. The "output" return
  22468. // value will be populated with the request's response once the request completes
  22469. // successfully.
  22470. //
  22471. // Use "Send" method on the returned Request to send the API call to the service.
  22472. // the "output" return value is not valid until after Send returns without error.
  22473. //
  22474. // See RegisterImage for more information on using the RegisterImage
  22475. // API call, and error handling.
  22476. //
  22477. // This method is useful when you want to inject custom logic or configuration
  22478. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22479. //
  22480. //
  22481. // // Example sending a request using the RegisterImageRequest method.
  22482. // req, resp := client.RegisterImageRequest(params)
  22483. //
  22484. // err := req.Send()
  22485. // if err == nil { // resp is now filled
  22486. // fmt.Println(resp)
  22487. // }
  22488. //
  22489. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImage
  22490. func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Request, output *RegisterImageOutput) {
  22491. op := &request.Operation{
  22492. Name: opRegisterImage,
  22493. HTTPMethod: "POST",
  22494. HTTPPath: "/",
  22495. }
  22496. if input == nil {
  22497. input = &RegisterImageInput{}
  22498. }
  22499. output = &RegisterImageOutput{}
  22500. req = c.newRequest(op, input, output)
  22501. return
  22502. }
  22503. // RegisterImage API operation for Amazon Elastic Compute Cloud.
  22504. //
  22505. // Registers an AMI. When you're creating an AMI, this is the final step you
  22506. // must complete before you can launch an instance from the AMI. For more information
  22507. // about creating AMIs, see Creating Your Own AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html)
  22508. // in the Amazon Elastic Compute Cloud User Guide.
  22509. //
  22510. // For Amazon EBS-backed instances, CreateImage creates and registers the AMI
  22511. // in a single request, so you don't have to register the AMI yourself.
  22512. //
  22513. // You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from
  22514. // a snapshot of a root device volume. You specify the snapshot using the block
  22515. // device mapping. For more information, see Launching a Linux Instance from
  22516. // a Backup (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-launch-snapshot.html)
  22517. // in the Amazon Elastic Compute Cloud User Guide.
  22518. //
  22519. // You can't register an image where a secondary (non-root) snapshot has AWS
  22520. // Marketplace product codes.
  22521. //
  22522. // Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE
  22523. // Linux Enterprise Server (SLES), use the EC2 billing product code associated
  22524. // with an AMI to verify the subscription status for package updates. Creating
  22525. // an AMI from an EBS snapshot does not maintain this billing code, and instances
  22526. // launched from such an AMI are not able to connect to package update infrastructure.
  22527. // If you purchase a Reserved Instance offering for one of these Linux distributions
  22528. // and launch instances using an AMI that does not contain the required billing
  22529. // code, your Reserved Instance is not applied to these instances.
  22530. //
  22531. // To create an AMI for operating systems that require a billing code, see CreateImage.
  22532. //
  22533. // If needed, you can deregister an AMI at any time. Any modifications you make
  22534. // to an AMI backed by an instance store volume invalidates its registration.
  22535. // If you make changes to an image, deregister the previous image and register
  22536. // the new image.
  22537. //
  22538. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22539. // with awserr.Error's Code and Message methods to get detailed information about
  22540. // the error.
  22541. //
  22542. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22543. // API operation RegisterImage for usage and error information.
  22544. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImage
  22545. func (c *EC2) RegisterImage(input *RegisterImageInput) (*RegisterImageOutput, error) {
  22546. req, out := c.RegisterImageRequest(input)
  22547. return out, req.Send()
  22548. }
  22549. // RegisterImageWithContext is the same as RegisterImage with the addition of
  22550. // the ability to pass a context and additional request options.
  22551. //
  22552. // See RegisterImage for details on how to use this API operation.
  22553. //
  22554. // The context must be non-nil and will be used for request cancellation. If
  22555. // the context is nil a panic will occur. In the future the SDK may create
  22556. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22557. // for more information on using Contexts.
  22558. func (c *EC2) RegisterImageWithContext(ctx aws.Context, input *RegisterImageInput, opts ...request.Option) (*RegisterImageOutput, error) {
  22559. req, out := c.RegisterImageRequest(input)
  22560. req.SetContext(ctx)
  22561. req.ApplyOptions(opts...)
  22562. return out, req.Send()
  22563. }
  22564. const opRejectTransitGatewayVpcAttachment = "RejectTransitGatewayVpcAttachment"
  22565. // RejectTransitGatewayVpcAttachmentRequest generates a "aws/request.Request" representing the
  22566. // client's request for the RejectTransitGatewayVpcAttachment operation. The "output" return
  22567. // value will be populated with the request's response once the request completes
  22568. // successfully.
  22569. //
  22570. // Use "Send" method on the returned Request to send the API call to the service.
  22571. // the "output" return value is not valid until after Send returns without error.
  22572. //
  22573. // See RejectTransitGatewayVpcAttachment for more information on using the RejectTransitGatewayVpcAttachment
  22574. // API call, and error handling.
  22575. //
  22576. // This method is useful when you want to inject custom logic or configuration
  22577. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22578. //
  22579. //
  22580. // // Example sending a request using the RejectTransitGatewayVpcAttachmentRequest method.
  22581. // req, resp := client.RejectTransitGatewayVpcAttachmentRequest(params)
  22582. //
  22583. // err := req.Send()
  22584. // if err == nil { // resp is now filled
  22585. // fmt.Println(resp)
  22586. // }
  22587. //
  22588. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectTransitGatewayVpcAttachment
  22589. func (c *EC2) RejectTransitGatewayVpcAttachmentRequest(input *RejectTransitGatewayVpcAttachmentInput) (req *request.Request, output *RejectTransitGatewayVpcAttachmentOutput) {
  22590. op := &request.Operation{
  22591. Name: opRejectTransitGatewayVpcAttachment,
  22592. HTTPMethod: "POST",
  22593. HTTPPath: "/",
  22594. }
  22595. if input == nil {
  22596. input = &RejectTransitGatewayVpcAttachmentInput{}
  22597. }
  22598. output = &RejectTransitGatewayVpcAttachmentOutput{}
  22599. req = c.newRequest(op, input, output)
  22600. return
  22601. }
  22602. // RejectTransitGatewayVpcAttachment API operation for Amazon Elastic Compute Cloud.
  22603. //
  22604. // Rejects a request to attach a VPC to a transit gateway.
  22605. //
  22606. // The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments
  22607. // to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment
  22608. // to accept a VPC attachment request.
  22609. //
  22610. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22611. // with awserr.Error's Code and Message methods to get detailed information about
  22612. // the error.
  22613. //
  22614. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22615. // API operation RejectTransitGatewayVpcAttachment for usage and error information.
  22616. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectTransitGatewayVpcAttachment
  22617. func (c *EC2) RejectTransitGatewayVpcAttachment(input *RejectTransitGatewayVpcAttachmentInput) (*RejectTransitGatewayVpcAttachmentOutput, error) {
  22618. req, out := c.RejectTransitGatewayVpcAttachmentRequest(input)
  22619. return out, req.Send()
  22620. }
  22621. // RejectTransitGatewayVpcAttachmentWithContext is the same as RejectTransitGatewayVpcAttachment with the addition of
  22622. // the ability to pass a context and additional request options.
  22623. //
  22624. // See RejectTransitGatewayVpcAttachment for details on how to use this API operation.
  22625. //
  22626. // The context must be non-nil and will be used for request cancellation. If
  22627. // the context is nil a panic will occur. In the future the SDK may create
  22628. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22629. // for more information on using Contexts.
  22630. func (c *EC2) RejectTransitGatewayVpcAttachmentWithContext(ctx aws.Context, input *RejectTransitGatewayVpcAttachmentInput, opts ...request.Option) (*RejectTransitGatewayVpcAttachmentOutput, error) {
  22631. req, out := c.RejectTransitGatewayVpcAttachmentRequest(input)
  22632. req.SetContext(ctx)
  22633. req.ApplyOptions(opts...)
  22634. return out, req.Send()
  22635. }
  22636. const opRejectVpcEndpointConnections = "RejectVpcEndpointConnections"
  22637. // RejectVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the
  22638. // client's request for the RejectVpcEndpointConnections operation. The "output" return
  22639. // value will be populated with the request's response once the request completes
  22640. // successfully.
  22641. //
  22642. // Use "Send" method on the returned Request to send the API call to the service.
  22643. // the "output" return value is not valid until after Send returns without error.
  22644. //
  22645. // See RejectVpcEndpointConnections for more information on using the RejectVpcEndpointConnections
  22646. // API call, and error handling.
  22647. //
  22648. // This method is useful when you want to inject custom logic or configuration
  22649. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22650. //
  22651. //
  22652. // // Example sending a request using the RejectVpcEndpointConnectionsRequest method.
  22653. // req, resp := client.RejectVpcEndpointConnectionsRequest(params)
  22654. //
  22655. // err := req.Send()
  22656. // if err == nil { // resp is now filled
  22657. // fmt.Println(resp)
  22658. // }
  22659. //
  22660. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnections
  22661. func (c *EC2) RejectVpcEndpointConnectionsRequest(input *RejectVpcEndpointConnectionsInput) (req *request.Request, output *RejectVpcEndpointConnectionsOutput) {
  22662. op := &request.Operation{
  22663. Name: opRejectVpcEndpointConnections,
  22664. HTTPMethod: "POST",
  22665. HTTPPath: "/",
  22666. }
  22667. if input == nil {
  22668. input = &RejectVpcEndpointConnectionsInput{}
  22669. }
  22670. output = &RejectVpcEndpointConnectionsOutput{}
  22671. req = c.newRequest(op, input, output)
  22672. return
  22673. }
  22674. // RejectVpcEndpointConnections API operation for Amazon Elastic Compute Cloud.
  22675. //
  22676. // Rejects one or more VPC endpoint connection requests to your VPC endpoint
  22677. // service.
  22678. //
  22679. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22680. // with awserr.Error's Code and Message methods to get detailed information about
  22681. // the error.
  22682. //
  22683. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22684. // API operation RejectVpcEndpointConnections for usage and error information.
  22685. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnections
  22686. func (c *EC2) RejectVpcEndpointConnections(input *RejectVpcEndpointConnectionsInput) (*RejectVpcEndpointConnectionsOutput, error) {
  22687. req, out := c.RejectVpcEndpointConnectionsRequest(input)
  22688. return out, req.Send()
  22689. }
  22690. // RejectVpcEndpointConnectionsWithContext is the same as RejectVpcEndpointConnections with the addition of
  22691. // the ability to pass a context and additional request options.
  22692. //
  22693. // See RejectVpcEndpointConnections for details on how to use this API operation.
  22694. //
  22695. // The context must be non-nil and will be used for request cancellation. If
  22696. // the context is nil a panic will occur. In the future the SDK may create
  22697. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22698. // for more information on using Contexts.
  22699. func (c *EC2) RejectVpcEndpointConnectionsWithContext(ctx aws.Context, input *RejectVpcEndpointConnectionsInput, opts ...request.Option) (*RejectVpcEndpointConnectionsOutput, error) {
  22700. req, out := c.RejectVpcEndpointConnectionsRequest(input)
  22701. req.SetContext(ctx)
  22702. req.ApplyOptions(opts...)
  22703. return out, req.Send()
  22704. }
  22705. const opRejectVpcPeeringConnection = "RejectVpcPeeringConnection"
  22706. // RejectVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  22707. // client's request for the RejectVpcPeeringConnection operation. The "output" return
  22708. // value will be populated with the request's response once the request completes
  22709. // successfully.
  22710. //
  22711. // Use "Send" method on the returned Request to send the API call to the service.
  22712. // the "output" return value is not valid until after Send returns without error.
  22713. //
  22714. // See RejectVpcPeeringConnection for more information on using the RejectVpcPeeringConnection
  22715. // API call, and error handling.
  22716. //
  22717. // This method is useful when you want to inject custom logic or configuration
  22718. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22719. //
  22720. //
  22721. // // Example sending a request using the RejectVpcPeeringConnectionRequest method.
  22722. // req, resp := client.RejectVpcPeeringConnectionRequest(params)
  22723. //
  22724. // err := req.Send()
  22725. // if err == nil { // resp is now filled
  22726. // fmt.Println(resp)
  22727. // }
  22728. //
  22729. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnection
  22730. func (c *EC2) RejectVpcPeeringConnectionRequest(input *RejectVpcPeeringConnectionInput) (req *request.Request, output *RejectVpcPeeringConnectionOutput) {
  22731. op := &request.Operation{
  22732. Name: opRejectVpcPeeringConnection,
  22733. HTTPMethod: "POST",
  22734. HTTPPath: "/",
  22735. }
  22736. if input == nil {
  22737. input = &RejectVpcPeeringConnectionInput{}
  22738. }
  22739. output = &RejectVpcPeeringConnectionOutput{}
  22740. req = c.newRequest(op, input, output)
  22741. return
  22742. }
  22743. // RejectVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  22744. //
  22745. // Rejects a VPC peering connection request. The VPC peering connection must
  22746. // be in the pending-acceptance state. Use the DescribeVpcPeeringConnections
  22747. // request to view your outstanding VPC peering connection requests. To delete
  22748. // an active VPC peering connection, or to delete a VPC peering connection request
  22749. // that you initiated, use DeleteVpcPeeringConnection.
  22750. //
  22751. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22752. // with awserr.Error's Code and Message methods to get detailed information about
  22753. // the error.
  22754. //
  22755. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22756. // API operation RejectVpcPeeringConnection for usage and error information.
  22757. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnection
  22758. func (c *EC2) RejectVpcPeeringConnection(input *RejectVpcPeeringConnectionInput) (*RejectVpcPeeringConnectionOutput, error) {
  22759. req, out := c.RejectVpcPeeringConnectionRequest(input)
  22760. return out, req.Send()
  22761. }
  22762. // RejectVpcPeeringConnectionWithContext is the same as RejectVpcPeeringConnection with the addition of
  22763. // the ability to pass a context and additional request options.
  22764. //
  22765. // See RejectVpcPeeringConnection for details on how to use this API operation.
  22766. //
  22767. // The context must be non-nil and will be used for request cancellation. If
  22768. // the context is nil a panic will occur. In the future the SDK may create
  22769. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22770. // for more information on using Contexts.
  22771. func (c *EC2) RejectVpcPeeringConnectionWithContext(ctx aws.Context, input *RejectVpcPeeringConnectionInput, opts ...request.Option) (*RejectVpcPeeringConnectionOutput, error) {
  22772. req, out := c.RejectVpcPeeringConnectionRequest(input)
  22773. req.SetContext(ctx)
  22774. req.ApplyOptions(opts...)
  22775. return out, req.Send()
  22776. }
  22777. const opReleaseAddress = "ReleaseAddress"
  22778. // ReleaseAddressRequest generates a "aws/request.Request" representing the
  22779. // client's request for the ReleaseAddress operation. The "output" return
  22780. // value will be populated with the request's response once the request completes
  22781. // successfully.
  22782. //
  22783. // Use "Send" method on the returned Request to send the API call to the service.
  22784. // the "output" return value is not valid until after Send returns without error.
  22785. //
  22786. // See ReleaseAddress for more information on using the ReleaseAddress
  22787. // API call, and error handling.
  22788. //
  22789. // This method is useful when you want to inject custom logic or configuration
  22790. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22791. //
  22792. //
  22793. // // Example sending a request using the ReleaseAddressRequest method.
  22794. // req, resp := client.ReleaseAddressRequest(params)
  22795. //
  22796. // err := req.Send()
  22797. // if err == nil { // resp is now filled
  22798. // fmt.Println(resp)
  22799. // }
  22800. //
  22801. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddress
  22802. func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Request, output *ReleaseAddressOutput) {
  22803. op := &request.Operation{
  22804. Name: opReleaseAddress,
  22805. HTTPMethod: "POST",
  22806. HTTPPath: "/",
  22807. }
  22808. if input == nil {
  22809. input = &ReleaseAddressInput{}
  22810. }
  22811. output = &ReleaseAddressOutput{}
  22812. req = c.newRequest(op, input, output)
  22813. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  22814. return
  22815. }
  22816. // ReleaseAddress API operation for Amazon Elastic Compute Cloud.
  22817. //
  22818. // Releases the specified Elastic IP address.
  22819. //
  22820. // [EC2-Classic, default VPC] Releasing an Elastic IP address automatically
  22821. // disassociates it from any instance that it's associated with. To disassociate
  22822. // an Elastic IP address without releasing it, use DisassociateAddress.
  22823. //
  22824. // [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic
  22825. // IP address before you can release it. Otherwise, Amazon EC2 returns an error
  22826. // (InvalidIPAddress.InUse).
  22827. //
  22828. // After releasing an Elastic IP address, it is released to the IP address pool.
  22829. // Be sure to update your DNS records and any servers or devices that communicate
  22830. // with the address. If you attempt to release an Elastic IP address that you
  22831. // already released, you'll get an AuthFailure error if the address is already
  22832. // allocated to another AWS account.
  22833. //
  22834. // [EC2-VPC] After you release an Elastic IP address for use in a VPC, you might
  22835. // be able to recover it. For more information, see AllocateAddress.
  22836. //
  22837. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22838. // with awserr.Error's Code and Message methods to get detailed information about
  22839. // the error.
  22840. //
  22841. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22842. // API operation ReleaseAddress for usage and error information.
  22843. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddress
  22844. func (c *EC2) ReleaseAddress(input *ReleaseAddressInput) (*ReleaseAddressOutput, error) {
  22845. req, out := c.ReleaseAddressRequest(input)
  22846. return out, req.Send()
  22847. }
  22848. // ReleaseAddressWithContext is the same as ReleaseAddress with the addition of
  22849. // the ability to pass a context and additional request options.
  22850. //
  22851. // See ReleaseAddress for details on how to use this API operation.
  22852. //
  22853. // The context must be non-nil and will be used for request cancellation. If
  22854. // the context is nil a panic will occur. In the future the SDK may create
  22855. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22856. // for more information on using Contexts.
  22857. func (c *EC2) ReleaseAddressWithContext(ctx aws.Context, input *ReleaseAddressInput, opts ...request.Option) (*ReleaseAddressOutput, error) {
  22858. req, out := c.ReleaseAddressRequest(input)
  22859. req.SetContext(ctx)
  22860. req.ApplyOptions(opts...)
  22861. return out, req.Send()
  22862. }
  22863. const opReleaseHosts = "ReleaseHosts"
  22864. // ReleaseHostsRequest generates a "aws/request.Request" representing the
  22865. // client's request for the ReleaseHosts operation. The "output" return
  22866. // value will be populated with the request's response once the request completes
  22867. // successfully.
  22868. //
  22869. // Use "Send" method on the returned Request to send the API call to the service.
  22870. // the "output" return value is not valid until after Send returns without error.
  22871. //
  22872. // See ReleaseHosts for more information on using the ReleaseHosts
  22873. // API call, and error handling.
  22874. //
  22875. // This method is useful when you want to inject custom logic or configuration
  22876. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22877. //
  22878. //
  22879. // // Example sending a request using the ReleaseHostsRequest method.
  22880. // req, resp := client.ReleaseHostsRequest(params)
  22881. //
  22882. // err := req.Send()
  22883. // if err == nil { // resp is now filled
  22884. // fmt.Println(resp)
  22885. // }
  22886. //
  22887. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHosts
  22888. func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Request, output *ReleaseHostsOutput) {
  22889. op := &request.Operation{
  22890. Name: opReleaseHosts,
  22891. HTTPMethod: "POST",
  22892. HTTPPath: "/",
  22893. }
  22894. if input == nil {
  22895. input = &ReleaseHostsInput{}
  22896. }
  22897. output = &ReleaseHostsOutput{}
  22898. req = c.newRequest(op, input, output)
  22899. return
  22900. }
  22901. // ReleaseHosts API operation for Amazon Elastic Compute Cloud.
  22902. //
  22903. // When you no longer want to use an On-Demand Dedicated Host it can be released.
  22904. // On-Demand billing is stopped and the host goes into released state. The host
  22905. // ID of Dedicated Hosts that have been released can no longer be specified
  22906. // in another request, for example, to modify the host. You must stop or terminate
  22907. // all instances on a host before it can be released.
  22908. //
  22909. // When Dedicated Hosts are released, it may take some time for them to stop
  22910. // counting toward your limit and you may receive capacity errors when trying
  22911. // to allocate new Dedicated Hosts. Wait a few minutes and then try again.
  22912. //
  22913. // Released hosts still appear in a DescribeHosts response.
  22914. //
  22915. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22916. // with awserr.Error's Code and Message methods to get detailed information about
  22917. // the error.
  22918. //
  22919. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22920. // API operation ReleaseHosts for usage and error information.
  22921. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHosts
  22922. func (c *EC2) ReleaseHosts(input *ReleaseHostsInput) (*ReleaseHostsOutput, error) {
  22923. req, out := c.ReleaseHostsRequest(input)
  22924. return out, req.Send()
  22925. }
  22926. // ReleaseHostsWithContext is the same as ReleaseHosts with the addition of
  22927. // the ability to pass a context and additional request options.
  22928. //
  22929. // See ReleaseHosts for details on how to use this API operation.
  22930. //
  22931. // The context must be non-nil and will be used for request cancellation. If
  22932. // the context is nil a panic will occur. In the future the SDK may create
  22933. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  22934. // for more information on using Contexts.
  22935. func (c *EC2) ReleaseHostsWithContext(ctx aws.Context, input *ReleaseHostsInput, opts ...request.Option) (*ReleaseHostsOutput, error) {
  22936. req, out := c.ReleaseHostsRequest(input)
  22937. req.SetContext(ctx)
  22938. req.ApplyOptions(opts...)
  22939. return out, req.Send()
  22940. }
  22941. const opReplaceIamInstanceProfileAssociation = "ReplaceIamInstanceProfileAssociation"
  22942. // ReplaceIamInstanceProfileAssociationRequest generates a "aws/request.Request" representing the
  22943. // client's request for the ReplaceIamInstanceProfileAssociation operation. The "output" return
  22944. // value will be populated with the request's response once the request completes
  22945. // successfully.
  22946. //
  22947. // Use "Send" method on the returned Request to send the API call to the service.
  22948. // the "output" return value is not valid until after Send returns without error.
  22949. //
  22950. // See ReplaceIamInstanceProfileAssociation for more information on using the ReplaceIamInstanceProfileAssociation
  22951. // API call, and error handling.
  22952. //
  22953. // This method is useful when you want to inject custom logic or configuration
  22954. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22955. //
  22956. //
  22957. // // Example sending a request using the ReplaceIamInstanceProfileAssociationRequest method.
  22958. // req, resp := client.ReplaceIamInstanceProfileAssociationRequest(params)
  22959. //
  22960. // err := req.Send()
  22961. // if err == nil { // resp is now filled
  22962. // fmt.Println(resp)
  22963. // }
  22964. //
  22965. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociation
  22966. func (c *EC2) ReplaceIamInstanceProfileAssociationRequest(input *ReplaceIamInstanceProfileAssociationInput) (req *request.Request, output *ReplaceIamInstanceProfileAssociationOutput) {
  22967. op := &request.Operation{
  22968. Name: opReplaceIamInstanceProfileAssociation,
  22969. HTTPMethod: "POST",
  22970. HTTPPath: "/",
  22971. }
  22972. if input == nil {
  22973. input = &ReplaceIamInstanceProfileAssociationInput{}
  22974. }
  22975. output = &ReplaceIamInstanceProfileAssociationOutput{}
  22976. req = c.newRequest(op, input, output)
  22977. return
  22978. }
  22979. // ReplaceIamInstanceProfileAssociation API operation for Amazon Elastic Compute Cloud.
  22980. //
  22981. // Replaces an IAM instance profile for the specified running instance. You
  22982. // can use this action to change the IAM instance profile that's associated
  22983. // with an instance without having to disassociate the existing IAM instance
  22984. // profile first.
  22985. //
  22986. // Use DescribeIamInstanceProfileAssociations to get the association ID.
  22987. //
  22988. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  22989. // with awserr.Error's Code and Message methods to get detailed information about
  22990. // the error.
  22991. //
  22992. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  22993. // API operation ReplaceIamInstanceProfileAssociation for usage and error information.
  22994. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociation
  22995. func (c *EC2) ReplaceIamInstanceProfileAssociation(input *ReplaceIamInstanceProfileAssociationInput) (*ReplaceIamInstanceProfileAssociationOutput, error) {
  22996. req, out := c.ReplaceIamInstanceProfileAssociationRequest(input)
  22997. return out, req.Send()
  22998. }
  22999. // ReplaceIamInstanceProfileAssociationWithContext is the same as ReplaceIamInstanceProfileAssociation with the addition of
  23000. // the ability to pass a context and additional request options.
  23001. //
  23002. // See ReplaceIamInstanceProfileAssociation for details on how to use this API operation.
  23003. //
  23004. // The context must be non-nil and will be used for request cancellation. If
  23005. // the context is nil a panic will occur. In the future the SDK may create
  23006. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23007. // for more information on using Contexts.
  23008. func (c *EC2) ReplaceIamInstanceProfileAssociationWithContext(ctx aws.Context, input *ReplaceIamInstanceProfileAssociationInput, opts ...request.Option) (*ReplaceIamInstanceProfileAssociationOutput, error) {
  23009. req, out := c.ReplaceIamInstanceProfileAssociationRequest(input)
  23010. req.SetContext(ctx)
  23011. req.ApplyOptions(opts...)
  23012. return out, req.Send()
  23013. }
  23014. const opReplaceNetworkAclAssociation = "ReplaceNetworkAclAssociation"
  23015. // ReplaceNetworkAclAssociationRequest generates a "aws/request.Request" representing the
  23016. // client's request for the ReplaceNetworkAclAssociation operation. The "output" return
  23017. // value will be populated with the request's response once the request completes
  23018. // successfully.
  23019. //
  23020. // Use "Send" method on the returned Request to send the API call to the service.
  23021. // the "output" return value is not valid until after Send returns without error.
  23022. //
  23023. // See ReplaceNetworkAclAssociation for more information on using the ReplaceNetworkAclAssociation
  23024. // API call, and error handling.
  23025. //
  23026. // This method is useful when you want to inject custom logic or configuration
  23027. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23028. //
  23029. //
  23030. // // Example sending a request using the ReplaceNetworkAclAssociationRequest method.
  23031. // req, resp := client.ReplaceNetworkAclAssociationRequest(params)
  23032. //
  23033. // err := req.Send()
  23034. // if err == nil { // resp is now filled
  23035. // fmt.Println(resp)
  23036. // }
  23037. //
  23038. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociation
  23039. func (c *EC2) ReplaceNetworkAclAssociationRequest(input *ReplaceNetworkAclAssociationInput) (req *request.Request, output *ReplaceNetworkAclAssociationOutput) {
  23040. op := &request.Operation{
  23041. Name: opReplaceNetworkAclAssociation,
  23042. HTTPMethod: "POST",
  23043. HTTPPath: "/",
  23044. }
  23045. if input == nil {
  23046. input = &ReplaceNetworkAclAssociationInput{}
  23047. }
  23048. output = &ReplaceNetworkAclAssociationOutput{}
  23049. req = c.newRequest(op, input, output)
  23050. return
  23051. }
  23052. // ReplaceNetworkAclAssociation API operation for Amazon Elastic Compute Cloud.
  23053. //
  23054. // Changes which network ACL a subnet is associated with. By default when you
  23055. // create a subnet, it's automatically associated with the default network ACL.
  23056. // For more information, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  23057. // in the Amazon Virtual Private Cloud User Guide.
  23058. //
  23059. // This is an idempotent operation.
  23060. //
  23061. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23062. // with awserr.Error's Code and Message methods to get detailed information about
  23063. // the error.
  23064. //
  23065. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23066. // API operation ReplaceNetworkAclAssociation for usage and error information.
  23067. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociation
  23068. func (c *EC2) ReplaceNetworkAclAssociation(input *ReplaceNetworkAclAssociationInput) (*ReplaceNetworkAclAssociationOutput, error) {
  23069. req, out := c.ReplaceNetworkAclAssociationRequest(input)
  23070. return out, req.Send()
  23071. }
  23072. // ReplaceNetworkAclAssociationWithContext is the same as ReplaceNetworkAclAssociation with the addition of
  23073. // the ability to pass a context and additional request options.
  23074. //
  23075. // See ReplaceNetworkAclAssociation for details on how to use this API operation.
  23076. //
  23077. // The context must be non-nil and will be used for request cancellation. If
  23078. // the context is nil a panic will occur. In the future the SDK may create
  23079. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23080. // for more information on using Contexts.
  23081. func (c *EC2) ReplaceNetworkAclAssociationWithContext(ctx aws.Context, input *ReplaceNetworkAclAssociationInput, opts ...request.Option) (*ReplaceNetworkAclAssociationOutput, error) {
  23082. req, out := c.ReplaceNetworkAclAssociationRequest(input)
  23083. req.SetContext(ctx)
  23084. req.ApplyOptions(opts...)
  23085. return out, req.Send()
  23086. }
  23087. const opReplaceNetworkAclEntry = "ReplaceNetworkAclEntry"
  23088. // ReplaceNetworkAclEntryRequest generates a "aws/request.Request" representing the
  23089. // client's request for the ReplaceNetworkAclEntry operation. The "output" return
  23090. // value will be populated with the request's response once the request completes
  23091. // successfully.
  23092. //
  23093. // Use "Send" method on the returned Request to send the API call to the service.
  23094. // the "output" return value is not valid until after Send returns without error.
  23095. //
  23096. // See ReplaceNetworkAclEntry for more information on using the ReplaceNetworkAclEntry
  23097. // API call, and error handling.
  23098. //
  23099. // This method is useful when you want to inject custom logic or configuration
  23100. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23101. //
  23102. //
  23103. // // Example sending a request using the ReplaceNetworkAclEntryRequest method.
  23104. // req, resp := client.ReplaceNetworkAclEntryRequest(params)
  23105. //
  23106. // err := req.Send()
  23107. // if err == nil { // resp is now filled
  23108. // fmt.Println(resp)
  23109. // }
  23110. //
  23111. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntry
  23112. func (c *EC2) ReplaceNetworkAclEntryRequest(input *ReplaceNetworkAclEntryInput) (req *request.Request, output *ReplaceNetworkAclEntryOutput) {
  23113. op := &request.Operation{
  23114. Name: opReplaceNetworkAclEntry,
  23115. HTTPMethod: "POST",
  23116. HTTPPath: "/",
  23117. }
  23118. if input == nil {
  23119. input = &ReplaceNetworkAclEntryInput{}
  23120. }
  23121. output = &ReplaceNetworkAclEntryOutput{}
  23122. req = c.newRequest(op, input, output)
  23123. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23124. return
  23125. }
  23126. // ReplaceNetworkAclEntry API operation for Amazon Elastic Compute Cloud.
  23127. //
  23128. // Replaces an entry (rule) in a network ACL. For more information, see Network
  23129. // ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  23130. // in the Amazon Virtual Private Cloud User Guide.
  23131. //
  23132. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23133. // with awserr.Error's Code and Message methods to get detailed information about
  23134. // the error.
  23135. //
  23136. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23137. // API operation ReplaceNetworkAclEntry for usage and error information.
  23138. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntry
  23139. func (c *EC2) ReplaceNetworkAclEntry(input *ReplaceNetworkAclEntryInput) (*ReplaceNetworkAclEntryOutput, error) {
  23140. req, out := c.ReplaceNetworkAclEntryRequest(input)
  23141. return out, req.Send()
  23142. }
  23143. // ReplaceNetworkAclEntryWithContext is the same as ReplaceNetworkAclEntry with the addition of
  23144. // the ability to pass a context and additional request options.
  23145. //
  23146. // See ReplaceNetworkAclEntry for details on how to use this API operation.
  23147. //
  23148. // The context must be non-nil and will be used for request cancellation. If
  23149. // the context is nil a panic will occur. In the future the SDK may create
  23150. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23151. // for more information on using Contexts.
  23152. func (c *EC2) ReplaceNetworkAclEntryWithContext(ctx aws.Context, input *ReplaceNetworkAclEntryInput, opts ...request.Option) (*ReplaceNetworkAclEntryOutput, error) {
  23153. req, out := c.ReplaceNetworkAclEntryRequest(input)
  23154. req.SetContext(ctx)
  23155. req.ApplyOptions(opts...)
  23156. return out, req.Send()
  23157. }
  23158. const opReplaceRoute = "ReplaceRoute"
  23159. // ReplaceRouteRequest generates a "aws/request.Request" representing the
  23160. // client's request for the ReplaceRoute operation. The "output" return
  23161. // value will be populated with the request's response once the request completes
  23162. // successfully.
  23163. //
  23164. // Use "Send" method on the returned Request to send the API call to the service.
  23165. // the "output" return value is not valid until after Send returns without error.
  23166. //
  23167. // See ReplaceRoute for more information on using the ReplaceRoute
  23168. // API call, and error handling.
  23169. //
  23170. // This method is useful when you want to inject custom logic or configuration
  23171. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23172. //
  23173. //
  23174. // // Example sending a request using the ReplaceRouteRequest method.
  23175. // req, resp := client.ReplaceRouteRequest(params)
  23176. //
  23177. // err := req.Send()
  23178. // if err == nil { // resp is now filled
  23179. // fmt.Println(resp)
  23180. // }
  23181. //
  23182. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute
  23183. func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Request, output *ReplaceRouteOutput) {
  23184. op := &request.Operation{
  23185. Name: opReplaceRoute,
  23186. HTTPMethod: "POST",
  23187. HTTPPath: "/",
  23188. }
  23189. if input == nil {
  23190. input = &ReplaceRouteInput{}
  23191. }
  23192. output = &ReplaceRouteOutput{}
  23193. req = c.newRequest(op, input, output)
  23194. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23195. return
  23196. }
  23197. // ReplaceRoute API operation for Amazon Elastic Compute Cloud.
  23198. //
  23199. // Replaces an existing route within a route table in a VPC. You must provide
  23200. // only one of the following: internet gateway or virtual private gateway, NAT
  23201. // instance, NAT gateway, VPC peering connection, network interface, or egress-only
  23202. // internet gateway.
  23203. //
  23204. // For more information, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  23205. // in the Amazon Virtual Private Cloud User Guide.
  23206. //
  23207. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23208. // with awserr.Error's Code and Message methods to get detailed information about
  23209. // the error.
  23210. //
  23211. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23212. // API operation ReplaceRoute for usage and error information.
  23213. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute
  23214. func (c *EC2) ReplaceRoute(input *ReplaceRouteInput) (*ReplaceRouteOutput, error) {
  23215. req, out := c.ReplaceRouteRequest(input)
  23216. return out, req.Send()
  23217. }
  23218. // ReplaceRouteWithContext is the same as ReplaceRoute with the addition of
  23219. // the ability to pass a context and additional request options.
  23220. //
  23221. // See ReplaceRoute for details on how to use this API operation.
  23222. //
  23223. // The context must be non-nil and will be used for request cancellation. If
  23224. // the context is nil a panic will occur. In the future the SDK may create
  23225. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23226. // for more information on using Contexts.
  23227. func (c *EC2) ReplaceRouteWithContext(ctx aws.Context, input *ReplaceRouteInput, opts ...request.Option) (*ReplaceRouteOutput, error) {
  23228. req, out := c.ReplaceRouteRequest(input)
  23229. req.SetContext(ctx)
  23230. req.ApplyOptions(opts...)
  23231. return out, req.Send()
  23232. }
  23233. const opReplaceRouteTableAssociation = "ReplaceRouteTableAssociation"
  23234. // ReplaceRouteTableAssociationRequest generates a "aws/request.Request" representing the
  23235. // client's request for the ReplaceRouteTableAssociation operation. The "output" return
  23236. // value will be populated with the request's response once the request completes
  23237. // successfully.
  23238. //
  23239. // Use "Send" method on the returned Request to send the API call to the service.
  23240. // the "output" return value is not valid until after Send returns without error.
  23241. //
  23242. // See ReplaceRouteTableAssociation for more information on using the ReplaceRouteTableAssociation
  23243. // API call, and error handling.
  23244. //
  23245. // This method is useful when you want to inject custom logic or configuration
  23246. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23247. //
  23248. //
  23249. // // Example sending a request using the ReplaceRouteTableAssociationRequest method.
  23250. // req, resp := client.ReplaceRouteTableAssociationRequest(params)
  23251. //
  23252. // err := req.Send()
  23253. // if err == nil { // resp is now filled
  23254. // fmt.Println(resp)
  23255. // }
  23256. //
  23257. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociation
  23258. func (c *EC2) ReplaceRouteTableAssociationRequest(input *ReplaceRouteTableAssociationInput) (req *request.Request, output *ReplaceRouteTableAssociationOutput) {
  23259. op := &request.Operation{
  23260. Name: opReplaceRouteTableAssociation,
  23261. HTTPMethod: "POST",
  23262. HTTPPath: "/",
  23263. }
  23264. if input == nil {
  23265. input = &ReplaceRouteTableAssociationInput{}
  23266. }
  23267. output = &ReplaceRouteTableAssociationOutput{}
  23268. req = c.newRequest(op, input, output)
  23269. return
  23270. }
  23271. // ReplaceRouteTableAssociation API operation for Amazon Elastic Compute Cloud.
  23272. //
  23273. // Changes the route table associated with a given subnet in a VPC. After the
  23274. // operation completes, the subnet uses the routes in the new route table it's
  23275. // associated with. For more information about route tables, see Route Tables
  23276. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  23277. // in the Amazon Virtual Private Cloud User Guide.
  23278. //
  23279. // You can also use ReplaceRouteTableAssociation to change which table is the
  23280. // main route table in the VPC. You just specify the main route table's association
  23281. // ID and the route table to be the new main route table.
  23282. //
  23283. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23284. // with awserr.Error's Code and Message methods to get detailed information about
  23285. // the error.
  23286. //
  23287. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23288. // API operation ReplaceRouteTableAssociation for usage and error information.
  23289. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociation
  23290. func (c *EC2) ReplaceRouteTableAssociation(input *ReplaceRouteTableAssociationInput) (*ReplaceRouteTableAssociationOutput, error) {
  23291. req, out := c.ReplaceRouteTableAssociationRequest(input)
  23292. return out, req.Send()
  23293. }
  23294. // ReplaceRouteTableAssociationWithContext is the same as ReplaceRouteTableAssociation with the addition of
  23295. // the ability to pass a context and additional request options.
  23296. //
  23297. // See ReplaceRouteTableAssociation for details on how to use this API operation.
  23298. //
  23299. // The context must be non-nil and will be used for request cancellation. If
  23300. // the context is nil a panic will occur. In the future the SDK may create
  23301. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23302. // for more information on using Contexts.
  23303. func (c *EC2) ReplaceRouteTableAssociationWithContext(ctx aws.Context, input *ReplaceRouteTableAssociationInput, opts ...request.Option) (*ReplaceRouteTableAssociationOutput, error) {
  23304. req, out := c.ReplaceRouteTableAssociationRequest(input)
  23305. req.SetContext(ctx)
  23306. req.ApplyOptions(opts...)
  23307. return out, req.Send()
  23308. }
  23309. const opReplaceTransitGatewayRoute = "ReplaceTransitGatewayRoute"
  23310. // ReplaceTransitGatewayRouteRequest generates a "aws/request.Request" representing the
  23311. // client's request for the ReplaceTransitGatewayRoute operation. The "output" return
  23312. // value will be populated with the request's response once the request completes
  23313. // successfully.
  23314. //
  23315. // Use "Send" method on the returned Request to send the API call to the service.
  23316. // the "output" return value is not valid until after Send returns without error.
  23317. //
  23318. // See ReplaceTransitGatewayRoute for more information on using the ReplaceTransitGatewayRoute
  23319. // API call, and error handling.
  23320. //
  23321. // This method is useful when you want to inject custom logic or configuration
  23322. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23323. //
  23324. //
  23325. // // Example sending a request using the ReplaceTransitGatewayRouteRequest method.
  23326. // req, resp := client.ReplaceTransitGatewayRouteRequest(params)
  23327. //
  23328. // err := req.Send()
  23329. // if err == nil { // resp is now filled
  23330. // fmt.Println(resp)
  23331. // }
  23332. //
  23333. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceTransitGatewayRoute
  23334. func (c *EC2) ReplaceTransitGatewayRouteRequest(input *ReplaceTransitGatewayRouteInput) (req *request.Request, output *ReplaceTransitGatewayRouteOutput) {
  23335. op := &request.Operation{
  23336. Name: opReplaceTransitGatewayRoute,
  23337. HTTPMethod: "POST",
  23338. HTTPPath: "/",
  23339. }
  23340. if input == nil {
  23341. input = &ReplaceTransitGatewayRouteInput{}
  23342. }
  23343. output = &ReplaceTransitGatewayRouteOutput{}
  23344. req = c.newRequest(op, input, output)
  23345. return
  23346. }
  23347. // ReplaceTransitGatewayRoute API operation for Amazon Elastic Compute Cloud.
  23348. //
  23349. // Replaces the specified route in the specified transit gateway route table.
  23350. //
  23351. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23352. // with awserr.Error's Code and Message methods to get detailed information about
  23353. // the error.
  23354. //
  23355. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23356. // API operation ReplaceTransitGatewayRoute for usage and error information.
  23357. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceTransitGatewayRoute
  23358. func (c *EC2) ReplaceTransitGatewayRoute(input *ReplaceTransitGatewayRouteInput) (*ReplaceTransitGatewayRouteOutput, error) {
  23359. req, out := c.ReplaceTransitGatewayRouteRequest(input)
  23360. return out, req.Send()
  23361. }
  23362. // ReplaceTransitGatewayRouteWithContext is the same as ReplaceTransitGatewayRoute with the addition of
  23363. // the ability to pass a context and additional request options.
  23364. //
  23365. // See ReplaceTransitGatewayRoute for details on how to use this API operation.
  23366. //
  23367. // The context must be non-nil and will be used for request cancellation. If
  23368. // the context is nil a panic will occur. In the future the SDK may create
  23369. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23370. // for more information on using Contexts.
  23371. func (c *EC2) ReplaceTransitGatewayRouteWithContext(ctx aws.Context, input *ReplaceTransitGatewayRouteInput, opts ...request.Option) (*ReplaceTransitGatewayRouteOutput, error) {
  23372. req, out := c.ReplaceTransitGatewayRouteRequest(input)
  23373. req.SetContext(ctx)
  23374. req.ApplyOptions(opts...)
  23375. return out, req.Send()
  23376. }
  23377. const opReportInstanceStatus = "ReportInstanceStatus"
  23378. // ReportInstanceStatusRequest generates a "aws/request.Request" representing the
  23379. // client's request for the ReportInstanceStatus operation. The "output" return
  23380. // value will be populated with the request's response once the request completes
  23381. // successfully.
  23382. //
  23383. // Use "Send" method on the returned Request to send the API call to the service.
  23384. // the "output" return value is not valid until after Send returns without error.
  23385. //
  23386. // See ReportInstanceStatus for more information on using the ReportInstanceStatus
  23387. // API call, and error handling.
  23388. //
  23389. // This method is useful when you want to inject custom logic or configuration
  23390. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23391. //
  23392. //
  23393. // // Example sending a request using the ReportInstanceStatusRequest method.
  23394. // req, resp := client.ReportInstanceStatusRequest(params)
  23395. //
  23396. // err := req.Send()
  23397. // if err == nil { // resp is now filled
  23398. // fmt.Println(resp)
  23399. // }
  23400. //
  23401. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatus
  23402. func (c *EC2) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) (req *request.Request, output *ReportInstanceStatusOutput) {
  23403. op := &request.Operation{
  23404. Name: opReportInstanceStatus,
  23405. HTTPMethod: "POST",
  23406. HTTPPath: "/",
  23407. }
  23408. if input == nil {
  23409. input = &ReportInstanceStatusInput{}
  23410. }
  23411. output = &ReportInstanceStatusOutput{}
  23412. req = c.newRequest(op, input, output)
  23413. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23414. return
  23415. }
  23416. // ReportInstanceStatus API operation for Amazon Elastic Compute Cloud.
  23417. //
  23418. // Submits feedback about the status of an instance. The instance must be in
  23419. // the running state. If your experience with the instance differs from the
  23420. // instance status returned by DescribeInstanceStatus, use ReportInstanceStatus
  23421. // to report your experience with the instance. Amazon EC2 collects this information
  23422. // to improve the accuracy of status checks.
  23423. //
  23424. // Use of this action does not change the value returned by DescribeInstanceStatus.
  23425. //
  23426. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23427. // with awserr.Error's Code and Message methods to get detailed information about
  23428. // the error.
  23429. //
  23430. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23431. // API operation ReportInstanceStatus for usage and error information.
  23432. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatus
  23433. func (c *EC2) ReportInstanceStatus(input *ReportInstanceStatusInput) (*ReportInstanceStatusOutput, error) {
  23434. req, out := c.ReportInstanceStatusRequest(input)
  23435. return out, req.Send()
  23436. }
  23437. // ReportInstanceStatusWithContext is the same as ReportInstanceStatus with the addition of
  23438. // the ability to pass a context and additional request options.
  23439. //
  23440. // See ReportInstanceStatus for details on how to use this API operation.
  23441. //
  23442. // The context must be non-nil and will be used for request cancellation. If
  23443. // the context is nil a panic will occur. In the future the SDK may create
  23444. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23445. // for more information on using Contexts.
  23446. func (c *EC2) ReportInstanceStatusWithContext(ctx aws.Context, input *ReportInstanceStatusInput, opts ...request.Option) (*ReportInstanceStatusOutput, error) {
  23447. req, out := c.ReportInstanceStatusRequest(input)
  23448. req.SetContext(ctx)
  23449. req.ApplyOptions(opts...)
  23450. return out, req.Send()
  23451. }
  23452. const opRequestSpotFleet = "RequestSpotFleet"
  23453. // RequestSpotFleetRequest generates a "aws/request.Request" representing the
  23454. // client's request for the RequestSpotFleet operation. The "output" return
  23455. // value will be populated with the request's response once the request completes
  23456. // successfully.
  23457. //
  23458. // Use "Send" method on the returned Request to send the API call to the service.
  23459. // the "output" return value is not valid until after Send returns without error.
  23460. //
  23461. // See RequestSpotFleet for more information on using the RequestSpotFleet
  23462. // API call, and error handling.
  23463. //
  23464. // This method is useful when you want to inject custom logic or configuration
  23465. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23466. //
  23467. //
  23468. // // Example sending a request using the RequestSpotFleetRequest method.
  23469. // req, resp := client.RequestSpotFleetRequest(params)
  23470. //
  23471. // err := req.Send()
  23472. // if err == nil { // resp is now filled
  23473. // fmt.Println(resp)
  23474. // }
  23475. //
  23476. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleet
  23477. func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *request.Request, output *RequestSpotFleetOutput) {
  23478. op := &request.Operation{
  23479. Name: opRequestSpotFleet,
  23480. HTTPMethod: "POST",
  23481. HTTPPath: "/",
  23482. }
  23483. if input == nil {
  23484. input = &RequestSpotFleetInput{}
  23485. }
  23486. output = &RequestSpotFleetOutput{}
  23487. req = c.newRequest(op, input, output)
  23488. return
  23489. }
  23490. // RequestSpotFleet API operation for Amazon Elastic Compute Cloud.
  23491. //
  23492. // Creates a Spot Fleet request.
  23493. //
  23494. // The Spot Fleet request specifies the total target capacity and the On-Demand
  23495. // target capacity. Amazon EC2 calculates the difference between the total capacity
  23496. // and On-Demand capacity, and launches the difference as Spot capacity.
  23497. //
  23498. // You can submit a single request that includes multiple launch specifications
  23499. // that vary by instance type, AMI, Availability Zone, or subnet.
  23500. //
  23501. // By default, the Spot Fleet requests Spot Instances in the Spot pool where
  23502. // the price per unit is the lowest. Each launch specification can include its
  23503. // own instance weighting that reflects the value of the instance type to your
  23504. // application workload.
  23505. //
  23506. // Alternatively, you can specify that the Spot Fleet distribute the target
  23507. // capacity across the Spot pools included in its launch specifications. By
  23508. // ensuring that the Spot Instances in your Spot Fleet are in different Spot
  23509. // pools, you can improve the availability of your fleet.
  23510. //
  23511. // You can specify tags for the Spot Instances. You cannot tag other resource
  23512. // types in a Spot Fleet request because only the instance resource type is
  23513. // supported.
  23514. //
  23515. // For more information, see Spot Fleet Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html)
  23516. // in the Amazon EC2 User Guide for Linux Instances.
  23517. //
  23518. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23519. // with awserr.Error's Code and Message methods to get detailed information about
  23520. // the error.
  23521. //
  23522. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23523. // API operation RequestSpotFleet for usage and error information.
  23524. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleet
  23525. func (c *EC2) RequestSpotFleet(input *RequestSpotFleetInput) (*RequestSpotFleetOutput, error) {
  23526. req, out := c.RequestSpotFleetRequest(input)
  23527. return out, req.Send()
  23528. }
  23529. // RequestSpotFleetWithContext is the same as RequestSpotFleet with the addition of
  23530. // the ability to pass a context and additional request options.
  23531. //
  23532. // See RequestSpotFleet for details on how to use this API operation.
  23533. //
  23534. // The context must be non-nil and will be used for request cancellation. If
  23535. // the context is nil a panic will occur. In the future the SDK may create
  23536. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23537. // for more information on using Contexts.
  23538. func (c *EC2) RequestSpotFleetWithContext(ctx aws.Context, input *RequestSpotFleetInput, opts ...request.Option) (*RequestSpotFleetOutput, error) {
  23539. req, out := c.RequestSpotFleetRequest(input)
  23540. req.SetContext(ctx)
  23541. req.ApplyOptions(opts...)
  23542. return out, req.Send()
  23543. }
  23544. const opRequestSpotInstances = "RequestSpotInstances"
  23545. // RequestSpotInstancesRequest generates a "aws/request.Request" representing the
  23546. // client's request for the RequestSpotInstances operation. The "output" return
  23547. // value will be populated with the request's response once the request completes
  23548. // successfully.
  23549. //
  23550. // Use "Send" method on the returned Request to send the API call to the service.
  23551. // the "output" return value is not valid until after Send returns without error.
  23552. //
  23553. // See RequestSpotInstances for more information on using the RequestSpotInstances
  23554. // API call, and error handling.
  23555. //
  23556. // This method is useful when you want to inject custom logic or configuration
  23557. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23558. //
  23559. //
  23560. // // Example sending a request using the RequestSpotInstancesRequest method.
  23561. // req, resp := client.RequestSpotInstancesRequest(params)
  23562. //
  23563. // err := req.Send()
  23564. // if err == nil { // resp is now filled
  23565. // fmt.Println(resp)
  23566. // }
  23567. //
  23568. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstances
  23569. func (c *EC2) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) (req *request.Request, output *RequestSpotInstancesOutput) {
  23570. op := &request.Operation{
  23571. Name: opRequestSpotInstances,
  23572. HTTPMethod: "POST",
  23573. HTTPPath: "/",
  23574. }
  23575. if input == nil {
  23576. input = &RequestSpotInstancesInput{}
  23577. }
  23578. output = &RequestSpotInstancesOutput{}
  23579. req = c.newRequest(op, input, output)
  23580. return
  23581. }
  23582. // RequestSpotInstances API operation for Amazon Elastic Compute Cloud.
  23583. //
  23584. // Creates a Spot Instance request.
  23585. //
  23586. // For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html)
  23587. // in the Amazon EC2 User Guide for Linux Instances.
  23588. //
  23589. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23590. // with awserr.Error's Code and Message methods to get detailed information about
  23591. // the error.
  23592. //
  23593. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23594. // API operation RequestSpotInstances for usage and error information.
  23595. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstances
  23596. func (c *EC2) RequestSpotInstances(input *RequestSpotInstancesInput) (*RequestSpotInstancesOutput, error) {
  23597. req, out := c.RequestSpotInstancesRequest(input)
  23598. return out, req.Send()
  23599. }
  23600. // RequestSpotInstancesWithContext is the same as RequestSpotInstances with the addition of
  23601. // the ability to pass a context and additional request options.
  23602. //
  23603. // See RequestSpotInstances for details on how to use this API operation.
  23604. //
  23605. // The context must be non-nil and will be used for request cancellation. If
  23606. // the context is nil a panic will occur. In the future the SDK may create
  23607. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23608. // for more information on using Contexts.
  23609. func (c *EC2) RequestSpotInstancesWithContext(ctx aws.Context, input *RequestSpotInstancesInput, opts ...request.Option) (*RequestSpotInstancesOutput, error) {
  23610. req, out := c.RequestSpotInstancesRequest(input)
  23611. req.SetContext(ctx)
  23612. req.ApplyOptions(opts...)
  23613. return out, req.Send()
  23614. }
  23615. const opResetFpgaImageAttribute = "ResetFpgaImageAttribute"
  23616. // ResetFpgaImageAttributeRequest generates a "aws/request.Request" representing the
  23617. // client's request for the ResetFpgaImageAttribute operation. The "output" return
  23618. // value will be populated with the request's response once the request completes
  23619. // successfully.
  23620. //
  23621. // Use "Send" method on the returned Request to send the API call to the service.
  23622. // the "output" return value is not valid until after Send returns without error.
  23623. //
  23624. // See ResetFpgaImageAttribute for more information on using the ResetFpgaImageAttribute
  23625. // API call, and error handling.
  23626. //
  23627. // This method is useful when you want to inject custom logic or configuration
  23628. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23629. //
  23630. //
  23631. // // Example sending a request using the ResetFpgaImageAttributeRequest method.
  23632. // req, resp := client.ResetFpgaImageAttributeRequest(params)
  23633. //
  23634. // err := req.Send()
  23635. // if err == nil { // resp is now filled
  23636. // fmt.Println(resp)
  23637. // }
  23638. //
  23639. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetFpgaImageAttribute
  23640. func (c *EC2) ResetFpgaImageAttributeRequest(input *ResetFpgaImageAttributeInput) (req *request.Request, output *ResetFpgaImageAttributeOutput) {
  23641. op := &request.Operation{
  23642. Name: opResetFpgaImageAttribute,
  23643. HTTPMethod: "POST",
  23644. HTTPPath: "/",
  23645. }
  23646. if input == nil {
  23647. input = &ResetFpgaImageAttributeInput{}
  23648. }
  23649. output = &ResetFpgaImageAttributeOutput{}
  23650. req = c.newRequest(op, input, output)
  23651. return
  23652. }
  23653. // ResetFpgaImageAttribute API operation for Amazon Elastic Compute Cloud.
  23654. //
  23655. // Resets the specified attribute of the specified Amazon FPGA Image (AFI) to
  23656. // its default value. You can only reset the load permission attribute.
  23657. //
  23658. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23659. // with awserr.Error's Code and Message methods to get detailed information about
  23660. // the error.
  23661. //
  23662. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23663. // API operation ResetFpgaImageAttribute for usage and error information.
  23664. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetFpgaImageAttribute
  23665. func (c *EC2) ResetFpgaImageAttribute(input *ResetFpgaImageAttributeInput) (*ResetFpgaImageAttributeOutput, error) {
  23666. req, out := c.ResetFpgaImageAttributeRequest(input)
  23667. return out, req.Send()
  23668. }
  23669. // ResetFpgaImageAttributeWithContext is the same as ResetFpgaImageAttribute with the addition of
  23670. // the ability to pass a context and additional request options.
  23671. //
  23672. // See ResetFpgaImageAttribute for details on how to use this API operation.
  23673. //
  23674. // The context must be non-nil and will be used for request cancellation. If
  23675. // the context is nil a panic will occur. In the future the SDK may create
  23676. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23677. // for more information on using Contexts.
  23678. func (c *EC2) ResetFpgaImageAttributeWithContext(ctx aws.Context, input *ResetFpgaImageAttributeInput, opts ...request.Option) (*ResetFpgaImageAttributeOutput, error) {
  23679. req, out := c.ResetFpgaImageAttributeRequest(input)
  23680. req.SetContext(ctx)
  23681. req.ApplyOptions(opts...)
  23682. return out, req.Send()
  23683. }
  23684. const opResetImageAttribute = "ResetImageAttribute"
  23685. // ResetImageAttributeRequest generates a "aws/request.Request" representing the
  23686. // client's request for the ResetImageAttribute operation. The "output" return
  23687. // value will be populated with the request's response once the request completes
  23688. // successfully.
  23689. //
  23690. // Use "Send" method on the returned Request to send the API call to the service.
  23691. // the "output" return value is not valid until after Send returns without error.
  23692. //
  23693. // See ResetImageAttribute for more information on using the ResetImageAttribute
  23694. // API call, and error handling.
  23695. //
  23696. // This method is useful when you want to inject custom logic or configuration
  23697. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23698. //
  23699. //
  23700. // // Example sending a request using the ResetImageAttributeRequest method.
  23701. // req, resp := client.ResetImageAttributeRequest(params)
  23702. //
  23703. // err := req.Send()
  23704. // if err == nil { // resp is now filled
  23705. // fmt.Println(resp)
  23706. // }
  23707. //
  23708. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttribute
  23709. func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req *request.Request, output *ResetImageAttributeOutput) {
  23710. op := &request.Operation{
  23711. Name: opResetImageAttribute,
  23712. HTTPMethod: "POST",
  23713. HTTPPath: "/",
  23714. }
  23715. if input == nil {
  23716. input = &ResetImageAttributeInput{}
  23717. }
  23718. output = &ResetImageAttributeOutput{}
  23719. req = c.newRequest(op, input, output)
  23720. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23721. return
  23722. }
  23723. // ResetImageAttribute API operation for Amazon Elastic Compute Cloud.
  23724. //
  23725. // Resets an attribute of an AMI to its default value.
  23726. //
  23727. // The productCodes attribute can't be reset.
  23728. //
  23729. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23730. // with awserr.Error's Code and Message methods to get detailed information about
  23731. // the error.
  23732. //
  23733. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23734. // API operation ResetImageAttribute for usage and error information.
  23735. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttribute
  23736. func (c *EC2) ResetImageAttribute(input *ResetImageAttributeInput) (*ResetImageAttributeOutput, error) {
  23737. req, out := c.ResetImageAttributeRequest(input)
  23738. return out, req.Send()
  23739. }
  23740. // ResetImageAttributeWithContext is the same as ResetImageAttribute with the addition of
  23741. // the ability to pass a context and additional request options.
  23742. //
  23743. // See ResetImageAttribute for details on how to use this API operation.
  23744. //
  23745. // The context must be non-nil and will be used for request cancellation. If
  23746. // the context is nil a panic will occur. In the future the SDK may create
  23747. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23748. // for more information on using Contexts.
  23749. func (c *EC2) ResetImageAttributeWithContext(ctx aws.Context, input *ResetImageAttributeInput, opts ...request.Option) (*ResetImageAttributeOutput, error) {
  23750. req, out := c.ResetImageAttributeRequest(input)
  23751. req.SetContext(ctx)
  23752. req.ApplyOptions(opts...)
  23753. return out, req.Send()
  23754. }
  23755. const opResetInstanceAttribute = "ResetInstanceAttribute"
  23756. // ResetInstanceAttributeRequest generates a "aws/request.Request" representing the
  23757. // client's request for the ResetInstanceAttribute operation. The "output" return
  23758. // value will be populated with the request's response once the request completes
  23759. // successfully.
  23760. //
  23761. // Use "Send" method on the returned Request to send the API call to the service.
  23762. // the "output" return value is not valid until after Send returns without error.
  23763. //
  23764. // See ResetInstanceAttribute for more information on using the ResetInstanceAttribute
  23765. // API call, and error handling.
  23766. //
  23767. // This method is useful when you want to inject custom logic or configuration
  23768. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23769. //
  23770. //
  23771. // // Example sending a request using the ResetInstanceAttributeRequest method.
  23772. // req, resp := client.ResetInstanceAttributeRequest(params)
  23773. //
  23774. // err := req.Send()
  23775. // if err == nil { // resp is now filled
  23776. // fmt.Println(resp)
  23777. // }
  23778. //
  23779. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttribute
  23780. func (c *EC2) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput) (req *request.Request, output *ResetInstanceAttributeOutput) {
  23781. op := &request.Operation{
  23782. Name: opResetInstanceAttribute,
  23783. HTTPMethod: "POST",
  23784. HTTPPath: "/",
  23785. }
  23786. if input == nil {
  23787. input = &ResetInstanceAttributeInput{}
  23788. }
  23789. output = &ResetInstanceAttributeOutput{}
  23790. req = c.newRequest(op, input, output)
  23791. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23792. return
  23793. }
  23794. // ResetInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  23795. //
  23796. // Resets an attribute of an instance to its default value. To reset the kernel
  23797. // or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck,
  23798. // the instance can be either running or stopped.
  23799. //
  23800. // The sourceDestCheck attribute controls whether source/destination checking
  23801. // is enabled. The default value is true, which means checking is enabled. This
  23802. // value must be false for a NAT instance to perform NAT. For more information,
  23803. // see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  23804. // in the Amazon Virtual Private Cloud User Guide.
  23805. //
  23806. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23807. // with awserr.Error's Code and Message methods to get detailed information about
  23808. // the error.
  23809. //
  23810. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23811. // API operation ResetInstanceAttribute for usage and error information.
  23812. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttribute
  23813. func (c *EC2) ResetInstanceAttribute(input *ResetInstanceAttributeInput) (*ResetInstanceAttributeOutput, error) {
  23814. req, out := c.ResetInstanceAttributeRequest(input)
  23815. return out, req.Send()
  23816. }
  23817. // ResetInstanceAttributeWithContext is the same as ResetInstanceAttribute with the addition of
  23818. // the ability to pass a context and additional request options.
  23819. //
  23820. // See ResetInstanceAttribute for details on how to use this API operation.
  23821. //
  23822. // The context must be non-nil and will be used for request cancellation. If
  23823. // the context is nil a panic will occur. In the future the SDK may create
  23824. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23825. // for more information on using Contexts.
  23826. func (c *EC2) ResetInstanceAttributeWithContext(ctx aws.Context, input *ResetInstanceAttributeInput, opts ...request.Option) (*ResetInstanceAttributeOutput, error) {
  23827. req, out := c.ResetInstanceAttributeRequest(input)
  23828. req.SetContext(ctx)
  23829. req.ApplyOptions(opts...)
  23830. return out, req.Send()
  23831. }
  23832. const opResetNetworkInterfaceAttribute = "ResetNetworkInterfaceAttribute"
  23833. // ResetNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  23834. // client's request for the ResetNetworkInterfaceAttribute operation. The "output" return
  23835. // value will be populated with the request's response once the request completes
  23836. // successfully.
  23837. //
  23838. // Use "Send" method on the returned Request to send the API call to the service.
  23839. // the "output" return value is not valid until after Send returns without error.
  23840. //
  23841. // See ResetNetworkInterfaceAttribute for more information on using the ResetNetworkInterfaceAttribute
  23842. // API call, and error handling.
  23843. //
  23844. // This method is useful when you want to inject custom logic or configuration
  23845. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23846. //
  23847. //
  23848. // // Example sending a request using the ResetNetworkInterfaceAttributeRequest method.
  23849. // req, resp := client.ResetNetworkInterfaceAttributeRequest(params)
  23850. //
  23851. // err := req.Send()
  23852. // if err == nil { // resp is now filled
  23853. // fmt.Println(resp)
  23854. // }
  23855. //
  23856. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttribute
  23857. func (c *EC2) ResetNetworkInterfaceAttributeRequest(input *ResetNetworkInterfaceAttributeInput) (req *request.Request, output *ResetNetworkInterfaceAttributeOutput) {
  23858. op := &request.Operation{
  23859. Name: opResetNetworkInterfaceAttribute,
  23860. HTTPMethod: "POST",
  23861. HTTPPath: "/",
  23862. }
  23863. if input == nil {
  23864. input = &ResetNetworkInterfaceAttributeInput{}
  23865. }
  23866. output = &ResetNetworkInterfaceAttributeOutput{}
  23867. req = c.newRequest(op, input, output)
  23868. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23869. return
  23870. }
  23871. // ResetNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  23872. //
  23873. // Resets a network interface attribute. You can specify only one attribute
  23874. // at a time.
  23875. //
  23876. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23877. // with awserr.Error's Code and Message methods to get detailed information about
  23878. // the error.
  23879. //
  23880. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23881. // API operation ResetNetworkInterfaceAttribute for usage and error information.
  23882. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttribute
  23883. func (c *EC2) ResetNetworkInterfaceAttribute(input *ResetNetworkInterfaceAttributeInput) (*ResetNetworkInterfaceAttributeOutput, error) {
  23884. req, out := c.ResetNetworkInterfaceAttributeRequest(input)
  23885. return out, req.Send()
  23886. }
  23887. // ResetNetworkInterfaceAttributeWithContext is the same as ResetNetworkInterfaceAttribute with the addition of
  23888. // the ability to pass a context and additional request options.
  23889. //
  23890. // See ResetNetworkInterfaceAttribute for details on how to use this API operation.
  23891. //
  23892. // The context must be non-nil and will be used for request cancellation. If
  23893. // the context is nil a panic will occur. In the future the SDK may create
  23894. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23895. // for more information on using Contexts.
  23896. func (c *EC2) ResetNetworkInterfaceAttributeWithContext(ctx aws.Context, input *ResetNetworkInterfaceAttributeInput, opts ...request.Option) (*ResetNetworkInterfaceAttributeOutput, error) {
  23897. req, out := c.ResetNetworkInterfaceAttributeRequest(input)
  23898. req.SetContext(ctx)
  23899. req.ApplyOptions(opts...)
  23900. return out, req.Send()
  23901. }
  23902. const opResetSnapshotAttribute = "ResetSnapshotAttribute"
  23903. // ResetSnapshotAttributeRequest generates a "aws/request.Request" representing the
  23904. // client's request for the ResetSnapshotAttribute operation. The "output" return
  23905. // value will be populated with the request's response once the request completes
  23906. // successfully.
  23907. //
  23908. // Use "Send" method on the returned Request to send the API call to the service.
  23909. // the "output" return value is not valid until after Send returns without error.
  23910. //
  23911. // See ResetSnapshotAttribute for more information on using the ResetSnapshotAttribute
  23912. // API call, and error handling.
  23913. //
  23914. // This method is useful when you want to inject custom logic or configuration
  23915. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23916. //
  23917. //
  23918. // // Example sending a request using the ResetSnapshotAttributeRequest method.
  23919. // req, resp := client.ResetSnapshotAttributeRequest(params)
  23920. //
  23921. // err := req.Send()
  23922. // if err == nil { // resp is now filled
  23923. // fmt.Println(resp)
  23924. // }
  23925. //
  23926. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttribute
  23927. func (c *EC2) ResetSnapshotAttributeRequest(input *ResetSnapshotAttributeInput) (req *request.Request, output *ResetSnapshotAttributeOutput) {
  23928. op := &request.Operation{
  23929. Name: opResetSnapshotAttribute,
  23930. HTTPMethod: "POST",
  23931. HTTPPath: "/",
  23932. }
  23933. if input == nil {
  23934. input = &ResetSnapshotAttributeInput{}
  23935. }
  23936. output = &ResetSnapshotAttributeOutput{}
  23937. req = c.newRequest(op, input, output)
  23938. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  23939. return
  23940. }
  23941. // ResetSnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  23942. //
  23943. // Resets permission settings for the specified snapshot.
  23944. //
  23945. // For more information about modifying snapshot permissions, see Sharing Snapshots
  23946. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html)
  23947. // in the Amazon Elastic Compute Cloud User Guide.
  23948. //
  23949. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  23950. // with awserr.Error's Code and Message methods to get detailed information about
  23951. // the error.
  23952. //
  23953. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  23954. // API operation ResetSnapshotAttribute for usage and error information.
  23955. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttribute
  23956. func (c *EC2) ResetSnapshotAttribute(input *ResetSnapshotAttributeInput) (*ResetSnapshotAttributeOutput, error) {
  23957. req, out := c.ResetSnapshotAttributeRequest(input)
  23958. return out, req.Send()
  23959. }
  23960. // ResetSnapshotAttributeWithContext is the same as ResetSnapshotAttribute with the addition of
  23961. // the ability to pass a context and additional request options.
  23962. //
  23963. // See ResetSnapshotAttribute for details on how to use this API operation.
  23964. //
  23965. // The context must be non-nil and will be used for request cancellation. If
  23966. // the context is nil a panic will occur. In the future the SDK may create
  23967. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  23968. // for more information on using Contexts.
  23969. func (c *EC2) ResetSnapshotAttributeWithContext(ctx aws.Context, input *ResetSnapshotAttributeInput, opts ...request.Option) (*ResetSnapshotAttributeOutput, error) {
  23970. req, out := c.ResetSnapshotAttributeRequest(input)
  23971. req.SetContext(ctx)
  23972. req.ApplyOptions(opts...)
  23973. return out, req.Send()
  23974. }
  23975. const opRestoreAddressToClassic = "RestoreAddressToClassic"
  23976. // RestoreAddressToClassicRequest generates a "aws/request.Request" representing the
  23977. // client's request for the RestoreAddressToClassic operation. The "output" return
  23978. // value will be populated with the request's response once the request completes
  23979. // successfully.
  23980. //
  23981. // Use "Send" method on the returned Request to send the API call to the service.
  23982. // the "output" return value is not valid until after Send returns without error.
  23983. //
  23984. // See RestoreAddressToClassic for more information on using the RestoreAddressToClassic
  23985. // API call, and error handling.
  23986. //
  23987. // This method is useful when you want to inject custom logic or configuration
  23988. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23989. //
  23990. //
  23991. // // Example sending a request using the RestoreAddressToClassicRequest method.
  23992. // req, resp := client.RestoreAddressToClassicRequest(params)
  23993. //
  23994. // err := req.Send()
  23995. // if err == nil { // resp is now filled
  23996. // fmt.Println(resp)
  23997. // }
  23998. //
  23999. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic
  24000. func (c *EC2) RestoreAddressToClassicRequest(input *RestoreAddressToClassicInput) (req *request.Request, output *RestoreAddressToClassicOutput) {
  24001. op := &request.Operation{
  24002. Name: opRestoreAddressToClassic,
  24003. HTTPMethod: "POST",
  24004. HTTPPath: "/",
  24005. }
  24006. if input == nil {
  24007. input = &RestoreAddressToClassicInput{}
  24008. }
  24009. output = &RestoreAddressToClassicOutput{}
  24010. req = c.newRequest(op, input, output)
  24011. return
  24012. }
  24013. // RestoreAddressToClassic API operation for Amazon Elastic Compute Cloud.
  24014. //
  24015. // Restores an Elastic IP address that was previously moved to the EC2-VPC platform
  24016. // back to the EC2-Classic platform. You cannot move an Elastic IP address that
  24017. // was originally allocated for use in EC2-VPC. The Elastic IP address must
  24018. // not be associated with an instance or network interface.
  24019. //
  24020. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24021. // with awserr.Error's Code and Message methods to get detailed information about
  24022. // the error.
  24023. //
  24024. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24025. // API operation RestoreAddressToClassic for usage and error information.
  24026. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic
  24027. func (c *EC2) RestoreAddressToClassic(input *RestoreAddressToClassicInput) (*RestoreAddressToClassicOutput, error) {
  24028. req, out := c.RestoreAddressToClassicRequest(input)
  24029. return out, req.Send()
  24030. }
  24031. // RestoreAddressToClassicWithContext is the same as RestoreAddressToClassic with the addition of
  24032. // the ability to pass a context and additional request options.
  24033. //
  24034. // See RestoreAddressToClassic for details on how to use this API operation.
  24035. //
  24036. // The context must be non-nil and will be used for request cancellation. If
  24037. // the context is nil a panic will occur. In the future the SDK may create
  24038. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24039. // for more information on using Contexts.
  24040. func (c *EC2) RestoreAddressToClassicWithContext(ctx aws.Context, input *RestoreAddressToClassicInput, opts ...request.Option) (*RestoreAddressToClassicOutput, error) {
  24041. req, out := c.RestoreAddressToClassicRequest(input)
  24042. req.SetContext(ctx)
  24043. req.ApplyOptions(opts...)
  24044. return out, req.Send()
  24045. }
  24046. const opRevokeClientVpnIngress = "RevokeClientVpnIngress"
  24047. // RevokeClientVpnIngressRequest generates a "aws/request.Request" representing the
  24048. // client's request for the RevokeClientVpnIngress operation. The "output" return
  24049. // value will be populated with the request's response once the request completes
  24050. // successfully.
  24051. //
  24052. // Use "Send" method on the returned Request to send the API call to the service.
  24053. // the "output" return value is not valid until after Send returns without error.
  24054. //
  24055. // See RevokeClientVpnIngress for more information on using the RevokeClientVpnIngress
  24056. // API call, and error handling.
  24057. //
  24058. // This method is useful when you want to inject custom logic or configuration
  24059. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24060. //
  24061. //
  24062. // // Example sending a request using the RevokeClientVpnIngressRequest method.
  24063. // req, resp := client.RevokeClientVpnIngressRequest(params)
  24064. //
  24065. // err := req.Send()
  24066. // if err == nil { // resp is now filled
  24067. // fmt.Println(resp)
  24068. // }
  24069. //
  24070. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeClientVpnIngress
  24071. func (c *EC2) RevokeClientVpnIngressRequest(input *RevokeClientVpnIngressInput) (req *request.Request, output *RevokeClientVpnIngressOutput) {
  24072. op := &request.Operation{
  24073. Name: opRevokeClientVpnIngress,
  24074. HTTPMethod: "POST",
  24075. HTTPPath: "/",
  24076. }
  24077. if input == nil {
  24078. input = &RevokeClientVpnIngressInput{}
  24079. }
  24080. output = &RevokeClientVpnIngressOutput{}
  24081. req = c.newRequest(op, input, output)
  24082. return
  24083. }
  24084. // RevokeClientVpnIngress API operation for Amazon Elastic Compute Cloud.
  24085. //
  24086. // Removes an ingress authorization rule from a Client VPN endpoint.
  24087. //
  24088. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24089. // with awserr.Error's Code and Message methods to get detailed information about
  24090. // the error.
  24091. //
  24092. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24093. // API operation RevokeClientVpnIngress for usage and error information.
  24094. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeClientVpnIngress
  24095. func (c *EC2) RevokeClientVpnIngress(input *RevokeClientVpnIngressInput) (*RevokeClientVpnIngressOutput, error) {
  24096. req, out := c.RevokeClientVpnIngressRequest(input)
  24097. return out, req.Send()
  24098. }
  24099. // RevokeClientVpnIngressWithContext is the same as RevokeClientVpnIngress with the addition of
  24100. // the ability to pass a context and additional request options.
  24101. //
  24102. // See RevokeClientVpnIngress for details on how to use this API operation.
  24103. //
  24104. // The context must be non-nil and will be used for request cancellation. If
  24105. // the context is nil a panic will occur. In the future the SDK may create
  24106. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24107. // for more information on using Contexts.
  24108. func (c *EC2) RevokeClientVpnIngressWithContext(ctx aws.Context, input *RevokeClientVpnIngressInput, opts ...request.Option) (*RevokeClientVpnIngressOutput, error) {
  24109. req, out := c.RevokeClientVpnIngressRequest(input)
  24110. req.SetContext(ctx)
  24111. req.ApplyOptions(opts...)
  24112. return out, req.Send()
  24113. }
  24114. const opRevokeSecurityGroupEgress = "RevokeSecurityGroupEgress"
  24115. // RevokeSecurityGroupEgressRequest generates a "aws/request.Request" representing the
  24116. // client's request for the RevokeSecurityGroupEgress operation. The "output" return
  24117. // value will be populated with the request's response once the request completes
  24118. // successfully.
  24119. //
  24120. // Use "Send" method on the returned Request to send the API call to the service.
  24121. // the "output" return value is not valid until after Send returns without error.
  24122. //
  24123. // See RevokeSecurityGroupEgress for more information on using the RevokeSecurityGroupEgress
  24124. // API call, and error handling.
  24125. //
  24126. // This method is useful when you want to inject custom logic or configuration
  24127. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24128. //
  24129. //
  24130. // // Example sending a request using the RevokeSecurityGroupEgressRequest method.
  24131. // req, resp := client.RevokeSecurityGroupEgressRequest(params)
  24132. //
  24133. // err := req.Send()
  24134. // if err == nil { // resp is now filled
  24135. // fmt.Println(resp)
  24136. // }
  24137. //
  24138. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgress
  24139. func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressInput) (req *request.Request, output *RevokeSecurityGroupEgressOutput) {
  24140. op := &request.Operation{
  24141. Name: opRevokeSecurityGroupEgress,
  24142. HTTPMethod: "POST",
  24143. HTTPPath: "/",
  24144. }
  24145. if input == nil {
  24146. input = &RevokeSecurityGroupEgressInput{}
  24147. }
  24148. output = &RevokeSecurityGroupEgressOutput{}
  24149. req = c.newRequest(op, input, output)
  24150. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  24151. return
  24152. }
  24153. // RevokeSecurityGroupEgress API operation for Amazon Elastic Compute Cloud.
  24154. //
  24155. // [EC2-VPC only] Removes one or more egress rules from a security group for
  24156. // EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic.
  24157. // To remove a rule, the values that you specify (for example, ports) must match
  24158. // the existing rule's values exactly.
  24159. //
  24160. // Each rule consists of the protocol and the IPv4 or IPv6 CIDR range or source
  24161. // security group. For the TCP and UDP protocols, you must also specify the
  24162. // destination port or range of ports. For the ICMP protocol, you must also
  24163. // specify the ICMP type and code. If the security group rule has a description,
  24164. // you do not have to specify the description to revoke the rule.
  24165. //
  24166. // Rule changes are propagated to instances within the security group as quickly
  24167. // as possible. However, a small delay might occur.
  24168. //
  24169. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24170. // with awserr.Error's Code and Message methods to get detailed information about
  24171. // the error.
  24172. //
  24173. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24174. // API operation RevokeSecurityGroupEgress for usage and error information.
  24175. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgress
  24176. func (c *EC2) RevokeSecurityGroupEgress(input *RevokeSecurityGroupEgressInput) (*RevokeSecurityGroupEgressOutput, error) {
  24177. req, out := c.RevokeSecurityGroupEgressRequest(input)
  24178. return out, req.Send()
  24179. }
  24180. // RevokeSecurityGroupEgressWithContext is the same as RevokeSecurityGroupEgress with the addition of
  24181. // the ability to pass a context and additional request options.
  24182. //
  24183. // See RevokeSecurityGroupEgress for details on how to use this API operation.
  24184. //
  24185. // The context must be non-nil and will be used for request cancellation. If
  24186. // the context is nil a panic will occur. In the future the SDK may create
  24187. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24188. // for more information on using Contexts.
  24189. func (c *EC2) RevokeSecurityGroupEgressWithContext(ctx aws.Context, input *RevokeSecurityGroupEgressInput, opts ...request.Option) (*RevokeSecurityGroupEgressOutput, error) {
  24190. req, out := c.RevokeSecurityGroupEgressRequest(input)
  24191. req.SetContext(ctx)
  24192. req.ApplyOptions(opts...)
  24193. return out, req.Send()
  24194. }
  24195. const opRevokeSecurityGroupIngress = "RevokeSecurityGroupIngress"
  24196. // RevokeSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  24197. // client's request for the RevokeSecurityGroupIngress operation. The "output" return
  24198. // value will be populated with the request's response once the request completes
  24199. // successfully.
  24200. //
  24201. // Use "Send" method on the returned Request to send the API call to the service.
  24202. // the "output" return value is not valid until after Send returns without error.
  24203. //
  24204. // See RevokeSecurityGroupIngress for more information on using the RevokeSecurityGroupIngress
  24205. // API call, and error handling.
  24206. //
  24207. // This method is useful when you want to inject custom logic or configuration
  24208. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24209. //
  24210. //
  24211. // // Example sending a request using the RevokeSecurityGroupIngressRequest method.
  24212. // req, resp := client.RevokeSecurityGroupIngressRequest(params)
  24213. //
  24214. // err := req.Send()
  24215. // if err == nil { // resp is now filled
  24216. // fmt.Println(resp)
  24217. // }
  24218. //
  24219. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngress
  24220. func (c *EC2) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngressInput) (req *request.Request, output *RevokeSecurityGroupIngressOutput) {
  24221. op := &request.Operation{
  24222. Name: opRevokeSecurityGroupIngress,
  24223. HTTPMethod: "POST",
  24224. HTTPPath: "/",
  24225. }
  24226. if input == nil {
  24227. input = &RevokeSecurityGroupIngressInput{}
  24228. }
  24229. output = &RevokeSecurityGroupIngressOutput{}
  24230. req = c.newRequest(op, input, output)
  24231. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  24232. return
  24233. }
  24234. // RevokeSecurityGroupIngress API operation for Amazon Elastic Compute Cloud.
  24235. //
  24236. // Removes one or more ingress rules from a security group. To remove a rule,
  24237. // the values that you specify (for example, ports) must match the existing
  24238. // rule's values exactly.
  24239. //
  24240. // [EC2-Classic security groups only] If the values you specify do not match
  24241. // the existing rule's values, no error is returned. Use DescribeSecurityGroups
  24242. // to verify that the rule has been removed.
  24243. //
  24244. // Each rule consists of the protocol and the CIDR range or source security
  24245. // group. For the TCP and UDP protocols, you must also specify the destination
  24246. // port or range of ports. For the ICMP protocol, you must also specify the
  24247. // ICMP type and code. If the security group rule has a description, you do
  24248. // not have to specify the description to revoke the rule.
  24249. //
  24250. // Rule changes are propagated to instances within the security group as quickly
  24251. // as possible. However, a small delay might occur.
  24252. //
  24253. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24254. // with awserr.Error's Code and Message methods to get detailed information about
  24255. // the error.
  24256. //
  24257. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24258. // API operation RevokeSecurityGroupIngress for usage and error information.
  24259. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngress
  24260. func (c *EC2) RevokeSecurityGroupIngress(input *RevokeSecurityGroupIngressInput) (*RevokeSecurityGroupIngressOutput, error) {
  24261. req, out := c.RevokeSecurityGroupIngressRequest(input)
  24262. return out, req.Send()
  24263. }
  24264. // RevokeSecurityGroupIngressWithContext is the same as RevokeSecurityGroupIngress with the addition of
  24265. // the ability to pass a context and additional request options.
  24266. //
  24267. // See RevokeSecurityGroupIngress for details on how to use this API operation.
  24268. //
  24269. // The context must be non-nil and will be used for request cancellation. If
  24270. // the context is nil a panic will occur. In the future the SDK may create
  24271. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24272. // for more information on using Contexts.
  24273. func (c *EC2) RevokeSecurityGroupIngressWithContext(ctx aws.Context, input *RevokeSecurityGroupIngressInput, opts ...request.Option) (*RevokeSecurityGroupIngressOutput, error) {
  24274. req, out := c.RevokeSecurityGroupIngressRequest(input)
  24275. req.SetContext(ctx)
  24276. req.ApplyOptions(opts...)
  24277. return out, req.Send()
  24278. }
  24279. const opRunInstances = "RunInstances"
  24280. // RunInstancesRequest generates a "aws/request.Request" representing the
  24281. // client's request for the RunInstances operation. The "output" return
  24282. // value will be populated with the request's response once the request completes
  24283. // successfully.
  24284. //
  24285. // Use "Send" method on the returned Request to send the API call to the service.
  24286. // the "output" return value is not valid until after Send returns without error.
  24287. //
  24288. // See RunInstances for more information on using the RunInstances
  24289. // API call, and error handling.
  24290. //
  24291. // This method is useful when you want to inject custom logic or configuration
  24292. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24293. //
  24294. //
  24295. // // Example sending a request using the RunInstancesRequest method.
  24296. // req, resp := client.RunInstancesRequest(params)
  24297. //
  24298. // err := req.Send()
  24299. // if err == nil { // resp is now filled
  24300. // fmt.Println(resp)
  24301. // }
  24302. //
  24303. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstances
  24304. func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Request, output *Reservation) {
  24305. op := &request.Operation{
  24306. Name: opRunInstances,
  24307. HTTPMethod: "POST",
  24308. HTTPPath: "/",
  24309. }
  24310. if input == nil {
  24311. input = &RunInstancesInput{}
  24312. }
  24313. output = &Reservation{}
  24314. req = c.newRequest(op, input, output)
  24315. return
  24316. }
  24317. // RunInstances API operation for Amazon Elastic Compute Cloud.
  24318. //
  24319. // Launches the specified number of instances using an AMI for which you have
  24320. // permissions.
  24321. //
  24322. // You can specify a number of options, or leave the default options. The following
  24323. // rules apply:
  24324. //
  24325. // * [EC2-VPC] If you don't specify a subnet ID, we choose a default subnet
  24326. // from your default VPC for you. If you don't have a default VPC, you must
  24327. // specify a subnet ID in the request.
  24328. //
  24329. // * [EC2-Classic] If don't specify an Availability Zone, we choose one for
  24330. // you.
  24331. //
  24332. // * Some instance types must be launched into a VPC. If you do not have
  24333. // a default VPC, or if you do not specify a subnet ID, the request fails.
  24334. // 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).
  24335. //
  24336. // * [EC2-VPC] All instances have a network interface with a primary private
  24337. // IPv4 address. If you don't specify this address, we choose one from the
  24338. // IPv4 range of your subnet.
  24339. //
  24340. // * Not all instance types support IPv6 addresses. For more information,
  24341. // see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  24342. //
  24343. // * If you don't specify a security group ID, we use the default security
  24344. // group. For more information, see Security Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html).
  24345. //
  24346. // * If any of the AMIs have a product code attached for which the user has
  24347. // not subscribed, the request fails.
  24348. //
  24349. // You can create a launch template (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html),
  24350. // which is a resource that contains the parameters to launch an instance. When
  24351. // you launch an instance using RunInstances, you can specify the launch template
  24352. // instead of specifying the launch parameters.
  24353. //
  24354. // To ensure faster instance launches, break up large requests into smaller
  24355. // batches. For example, create five separate launch requests for 100 instances
  24356. // each instead of one launch request for 500 instances.
  24357. //
  24358. // An instance is ready for you to use when it's in the running state. You can
  24359. // check the state of your instance using DescribeInstances. You can tag instances
  24360. // and EBS volumes during launch, after launch, or both. For more information,
  24361. // see CreateTags and Tagging Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html).
  24362. //
  24363. // Linux instances have access to the public key of the key pair at boot. You
  24364. // can use this key to provide secure access to the instance. Amazon EC2 public
  24365. // images use this feature to provide secure access without passwords. For more
  24366. // information, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  24367. // in the Amazon Elastic Compute Cloud User Guide.
  24368. //
  24369. // For troubleshooting, see What To Do If An Instance Immediately Terminates
  24370. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html),
  24371. // and Troubleshooting Connecting to Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html)
  24372. // in the Amazon Elastic Compute Cloud User Guide.
  24373. //
  24374. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24375. // with awserr.Error's Code and Message methods to get detailed information about
  24376. // the error.
  24377. //
  24378. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24379. // API operation RunInstances for usage and error information.
  24380. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstances
  24381. func (c *EC2) RunInstances(input *RunInstancesInput) (*Reservation, error) {
  24382. req, out := c.RunInstancesRequest(input)
  24383. return out, req.Send()
  24384. }
  24385. // RunInstancesWithContext is the same as RunInstances with the addition of
  24386. // the ability to pass a context and additional request options.
  24387. //
  24388. // See RunInstances for details on how to use this API operation.
  24389. //
  24390. // The context must be non-nil and will be used for request cancellation. If
  24391. // the context is nil a panic will occur. In the future the SDK may create
  24392. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24393. // for more information on using Contexts.
  24394. func (c *EC2) RunInstancesWithContext(ctx aws.Context, input *RunInstancesInput, opts ...request.Option) (*Reservation, error) {
  24395. req, out := c.RunInstancesRequest(input)
  24396. req.SetContext(ctx)
  24397. req.ApplyOptions(opts...)
  24398. return out, req.Send()
  24399. }
  24400. const opRunScheduledInstances = "RunScheduledInstances"
  24401. // RunScheduledInstancesRequest generates a "aws/request.Request" representing the
  24402. // client's request for the RunScheduledInstances operation. The "output" return
  24403. // value will be populated with the request's response once the request completes
  24404. // successfully.
  24405. //
  24406. // Use "Send" method on the returned Request to send the API call to the service.
  24407. // the "output" return value is not valid until after Send returns without error.
  24408. //
  24409. // See RunScheduledInstances for more information on using the RunScheduledInstances
  24410. // API call, and error handling.
  24411. //
  24412. // This method is useful when you want to inject custom logic or configuration
  24413. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24414. //
  24415. //
  24416. // // Example sending a request using the RunScheduledInstancesRequest method.
  24417. // req, resp := client.RunScheduledInstancesRequest(params)
  24418. //
  24419. // err := req.Send()
  24420. // if err == nil { // resp is now filled
  24421. // fmt.Println(resp)
  24422. // }
  24423. //
  24424. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstances
  24425. func (c *EC2) RunScheduledInstancesRequest(input *RunScheduledInstancesInput) (req *request.Request, output *RunScheduledInstancesOutput) {
  24426. op := &request.Operation{
  24427. Name: opRunScheduledInstances,
  24428. HTTPMethod: "POST",
  24429. HTTPPath: "/",
  24430. }
  24431. if input == nil {
  24432. input = &RunScheduledInstancesInput{}
  24433. }
  24434. output = &RunScheduledInstancesOutput{}
  24435. req = c.newRequest(op, input, output)
  24436. return
  24437. }
  24438. // RunScheduledInstances API operation for Amazon Elastic Compute Cloud.
  24439. //
  24440. // Launches the specified Scheduled Instances.
  24441. //
  24442. // Before you can launch a Scheduled Instance, you must purchase it and obtain
  24443. // an identifier using PurchaseScheduledInstances.
  24444. //
  24445. // You must launch a Scheduled Instance during its scheduled time period. You
  24446. // can't stop or reboot a Scheduled Instance, but you can terminate it as needed.
  24447. // If you terminate a Scheduled Instance before the current scheduled time period
  24448. // ends, you can launch it again after a few minutes. For more information,
  24449. // see Scheduled Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-scheduled-instances.html)
  24450. // in the Amazon Elastic Compute Cloud User Guide.
  24451. //
  24452. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24453. // with awserr.Error's Code and Message methods to get detailed information about
  24454. // the error.
  24455. //
  24456. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24457. // API operation RunScheduledInstances for usage and error information.
  24458. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstances
  24459. func (c *EC2) RunScheduledInstances(input *RunScheduledInstancesInput) (*RunScheduledInstancesOutput, error) {
  24460. req, out := c.RunScheduledInstancesRequest(input)
  24461. return out, req.Send()
  24462. }
  24463. // RunScheduledInstancesWithContext is the same as RunScheduledInstances with the addition of
  24464. // the ability to pass a context and additional request options.
  24465. //
  24466. // See RunScheduledInstances for details on how to use this API operation.
  24467. //
  24468. // The context must be non-nil and will be used for request cancellation. If
  24469. // the context is nil a panic will occur. In the future the SDK may create
  24470. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24471. // for more information on using Contexts.
  24472. func (c *EC2) RunScheduledInstancesWithContext(ctx aws.Context, input *RunScheduledInstancesInput, opts ...request.Option) (*RunScheduledInstancesOutput, error) {
  24473. req, out := c.RunScheduledInstancesRequest(input)
  24474. req.SetContext(ctx)
  24475. req.ApplyOptions(opts...)
  24476. return out, req.Send()
  24477. }
  24478. const opSearchTransitGatewayRoutes = "SearchTransitGatewayRoutes"
  24479. // SearchTransitGatewayRoutesRequest generates a "aws/request.Request" representing the
  24480. // client's request for the SearchTransitGatewayRoutes operation. The "output" return
  24481. // value will be populated with the request's response once the request completes
  24482. // successfully.
  24483. //
  24484. // Use "Send" method on the returned Request to send the API call to the service.
  24485. // the "output" return value is not valid until after Send returns without error.
  24486. //
  24487. // See SearchTransitGatewayRoutes for more information on using the SearchTransitGatewayRoutes
  24488. // API call, and error handling.
  24489. //
  24490. // This method is useful when you want to inject custom logic or configuration
  24491. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24492. //
  24493. //
  24494. // // Example sending a request using the SearchTransitGatewayRoutesRequest method.
  24495. // req, resp := client.SearchTransitGatewayRoutesRequest(params)
  24496. //
  24497. // err := req.Send()
  24498. // if err == nil { // resp is now filled
  24499. // fmt.Println(resp)
  24500. // }
  24501. //
  24502. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SearchTransitGatewayRoutes
  24503. func (c *EC2) SearchTransitGatewayRoutesRequest(input *SearchTransitGatewayRoutesInput) (req *request.Request, output *SearchTransitGatewayRoutesOutput) {
  24504. op := &request.Operation{
  24505. Name: opSearchTransitGatewayRoutes,
  24506. HTTPMethod: "POST",
  24507. HTTPPath: "/",
  24508. }
  24509. if input == nil {
  24510. input = &SearchTransitGatewayRoutesInput{}
  24511. }
  24512. output = &SearchTransitGatewayRoutesOutput{}
  24513. req = c.newRequest(op, input, output)
  24514. return
  24515. }
  24516. // SearchTransitGatewayRoutes API operation for Amazon Elastic Compute Cloud.
  24517. //
  24518. // Searches for routes in the specified transit gateway route table.
  24519. //
  24520. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24521. // with awserr.Error's Code and Message methods to get detailed information about
  24522. // the error.
  24523. //
  24524. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24525. // API operation SearchTransitGatewayRoutes for usage and error information.
  24526. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SearchTransitGatewayRoutes
  24527. func (c *EC2) SearchTransitGatewayRoutes(input *SearchTransitGatewayRoutesInput) (*SearchTransitGatewayRoutesOutput, error) {
  24528. req, out := c.SearchTransitGatewayRoutesRequest(input)
  24529. return out, req.Send()
  24530. }
  24531. // SearchTransitGatewayRoutesWithContext is the same as SearchTransitGatewayRoutes with the addition of
  24532. // the ability to pass a context and additional request options.
  24533. //
  24534. // See SearchTransitGatewayRoutes for details on how to use this API operation.
  24535. //
  24536. // The context must be non-nil and will be used for request cancellation. If
  24537. // the context is nil a panic will occur. In the future the SDK may create
  24538. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24539. // for more information on using Contexts.
  24540. func (c *EC2) SearchTransitGatewayRoutesWithContext(ctx aws.Context, input *SearchTransitGatewayRoutesInput, opts ...request.Option) (*SearchTransitGatewayRoutesOutput, error) {
  24541. req, out := c.SearchTransitGatewayRoutesRequest(input)
  24542. req.SetContext(ctx)
  24543. req.ApplyOptions(opts...)
  24544. return out, req.Send()
  24545. }
  24546. const opStartInstances = "StartInstances"
  24547. // StartInstancesRequest generates a "aws/request.Request" representing the
  24548. // client's request for the StartInstances operation. The "output" return
  24549. // value will be populated with the request's response once the request completes
  24550. // successfully.
  24551. //
  24552. // Use "Send" method on the returned Request to send the API call to the service.
  24553. // the "output" return value is not valid until after Send returns without error.
  24554. //
  24555. // See StartInstances for more information on using the StartInstances
  24556. // API call, and error handling.
  24557. //
  24558. // This method is useful when you want to inject custom logic or configuration
  24559. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24560. //
  24561. //
  24562. // // Example sending a request using the StartInstancesRequest method.
  24563. // req, resp := client.StartInstancesRequest(params)
  24564. //
  24565. // err := req.Send()
  24566. // if err == nil { // resp is now filled
  24567. // fmt.Println(resp)
  24568. // }
  24569. //
  24570. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstances
  24571. func (c *EC2) StartInstancesRequest(input *StartInstancesInput) (req *request.Request, output *StartInstancesOutput) {
  24572. op := &request.Operation{
  24573. Name: opStartInstances,
  24574. HTTPMethod: "POST",
  24575. HTTPPath: "/",
  24576. }
  24577. if input == nil {
  24578. input = &StartInstancesInput{}
  24579. }
  24580. output = &StartInstancesOutput{}
  24581. req = c.newRequest(op, input, output)
  24582. return
  24583. }
  24584. // StartInstances API operation for Amazon Elastic Compute Cloud.
  24585. //
  24586. // Starts an Amazon EBS-backed instance that you've previously stopped.
  24587. //
  24588. // Instances that use Amazon EBS volumes as their root devices can be quickly
  24589. // stopped and started. When an instance is stopped, the compute resources are
  24590. // released and you are not billed for instance usage. However, your root partition
  24591. // Amazon EBS volume remains and continues to persist your data, and you are
  24592. // charged for Amazon EBS volume usage. You can restart your instance at any
  24593. // time. Every time you start your Windows instance, Amazon EC2 charges you
  24594. // for a full instance hour. If you stop and restart your Windows instance,
  24595. // a new instance hour begins and Amazon EC2 charges you for another full instance
  24596. // hour even if you are still within the same 60-minute period when it was stopped.
  24597. // Every time you start your Linux instance, Amazon EC2 charges a one-minute
  24598. // minimum for instance usage, and thereafter charges per second for instance
  24599. // usage.
  24600. //
  24601. // Before stopping an instance, make sure it is in a state from which it can
  24602. // be restarted. Stopping an instance does not preserve data stored in RAM.
  24603. //
  24604. // Performing this operation on an instance that uses an instance store as its
  24605. // root device returns an error.
  24606. //
  24607. // For more information, see Stopping Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html)
  24608. // in the Amazon Elastic Compute Cloud User Guide.
  24609. //
  24610. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24611. // with awserr.Error's Code and Message methods to get detailed information about
  24612. // the error.
  24613. //
  24614. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24615. // API operation StartInstances for usage and error information.
  24616. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstances
  24617. func (c *EC2) StartInstances(input *StartInstancesInput) (*StartInstancesOutput, error) {
  24618. req, out := c.StartInstancesRequest(input)
  24619. return out, req.Send()
  24620. }
  24621. // StartInstancesWithContext is the same as StartInstances with the addition of
  24622. // the ability to pass a context and additional request options.
  24623. //
  24624. // See StartInstances for details on how to use this API operation.
  24625. //
  24626. // The context must be non-nil and will be used for request cancellation. If
  24627. // the context is nil a panic will occur. In the future the SDK may create
  24628. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24629. // for more information on using Contexts.
  24630. func (c *EC2) StartInstancesWithContext(ctx aws.Context, input *StartInstancesInput, opts ...request.Option) (*StartInstancesOutput, error) {
  24631. req, out := c.StartInstancesRequest(input)
  24632. req.SetContext(ctx)
  24633. req.ApplyOptions(opts...)
  24634. return out, req.Send()
  24635. }
  24636. const opStopInstances = "StopInstances"
  24637. // StopInstancesRequest generates a "aws/request.Request" representing the
  24638. // client's request for the StopInstances operation. The "output" return
  24639. // value will be populated with the request's response once the request completes
  24640. // successfully.
  24641. //
  24642. // Use "Send" method on the returned Request to send the API call to the service.
  24643. // the "output" return value is not valid until after Send returns without error.
  24644. //
  24645. // See StopInstances for more information on using the StopInstances
  24646. // API call, and error handling.
  24647. //
  24648. // This method is useful when you want to inject custom logic or configuration
  24649. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24650. //
  24651. //
  24652. // // Example sending a request using the StopInstancesRequest method.
  24653. // req, resp := client.StopInstancesRequest(params)
  24654. //
  24655. // err := req.Send()
  24656. // if err == nil { // resp is now filled
  24657. // fmt.Println(resp)
  24658. // }
  24659. //
  24660. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstances
  24661. func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Request, output *StopInstancesOutput) {
  24662. op := &request.Operation{
  24663. Name: opStopInstances,
  24664. HTTPMethod: "POST",
  24665. HTTPPath: "/",
  24666. }
  24667. if input == nil {
  24668. input = &StopInstancesInput{}
  24669. }
  24670. output = &StopInstancesOutput{}
  24671. req = c.newRequest(op, input, output)
  24672. return
  24673. }
  24674. // StopInstances API operation for Amazon Elastic Compute Cloud.
  24675. //
  24676. // Stops an Amazon EBS-backed instance.
  24677. //
  24678. // You can use the Stop action to hibernate an instance if the instance is enabled
  24679. // for hibernation (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#enabling-hibernation)
  24680. // and it meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites).
  24681. // For more information, see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  24682. // in the Amazon Elastic Compute Cloud User Guide.
  24683. //
  24684. // We don't charge usage for a stopped instance, or data transfer fees; however,
  24685. // your root partition Amazon EBS volume remains and continues to persist your
  24686. // data, and you are charged for Amazon EBS volume usage. Every time you start
  24687. // your Windows instance, Amazon EC2 charges you for a full instance hour. If
  24688. // you stop and restart your Windows instance, a new instance hour begins and
  24689. // Amazon EC2 charges you for another full instance hour even if you are still
  24690. // within the same 60-minute period when it was stopped. Every time you start
  24691. // your Linux instance, Amazon EC2 charges a one-minute minimum for instance
  24692. // usage, and thereafter charges per second for instance usage.
  24693. //
  24694. // You can't start, stop, or hibernate Spot Instances, and you can't stop or
  24695. // hibernate instance store-backed instances. For information about using hibernation
  24696. // for Spot Instances, see Hibernating Interrupted Spot Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html#hibernate-spot-instances)
  24697. // in the Amazon Elastic Compute Cloud User Guide.
  24698. //
  24699. // When you stop or hibernate an instance, we shut it down. You can restart
  24700. // your instance at any time. Before stopping or hibernating an instance, make
  24701. // sure it is in a state from which it can be restarted. Stopping an instance
  24702. // does not preserve data stored in RAM, but hibernating an instance does preserve
  24703. // data stored in RAM. If an instance cannot hibernate successfully, a normal
  24704. // shutdown occurs.
  24705. //
  24706. // Stopping and hibernating an instance is different to rebooting or terminating
  24707. // it. For example, when you stop or hibernate an instance, the root device
  24708. // and any other devices attached to the instance persist. When you terminate
  24709. // an instance, the root device and any other devices attached during the instance
  24710. // launch are automatically deleted. For more information about the differences
  24711. // between rebooting, stopping, hibernating, and terminating instances, see
  24712. // Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  24713. // in the Amazon Elastic Compute Cloud User Guide.
  24714. //
  24715. // When you stop an instance, we attempt to shut it down forcibly after a short
  24716. // while. If your instance appears stuck in the stopping state after a period
  24717. // of time, there may be an issue with the underlying host computer. For more
  24718. // information, see Troubleshooting Stopping Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html)
  24719. // in the Amazon Elastic Compute Cloud User Guide.
  24720. //
  24721. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24722. // with awserr.Error's Code and Message methods to get detailed information about
  24723. // the error.
  24724. //
  24725. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24726. // API operation StopInstances for usage and error information.
  24727. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstances
  24728. func (c *EC2) StopInstances(input *StopInstancesInput) (*StopInstancesOutput, error) {
  24729. req, out := c.StopInstancesRequest(input)
  24730. return out, req.Send()
  24731. }
  24732. // StopInstancesWithContext is the same as StopInstances with the addition of
  24733. // the ability to pass a context and additional request options.
  24734. //
  24735. // See StopInstances for details on how to use this API operation.
  24736. //
  24737. // The context must be non-nil and will be used for request cancellation. If
  24738. // the context is nil a panic will occur. In the future the SDK may create
  24739. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24740. // for more information on using Contexts.
  24741. func (c *EC2) StopInstancesWithContext(ctx aws.Context, input *StopInstancesInput, opts ...request.Option) (*StopInstancesOutput, error) {
  24742. req, out := c.StopInstancesRequest(input)
  24743. req.SetContext(ctx)
  24744. req.ApplyOptions(opts...)
  24745. return out, req.Send()
  24746. }
  24747. const opTerminateClientVpnConnections = "TerminateClientVpnConnections"
  24748. // TerminateClientVpnConnectionsRequest generates a "aws/request.Request" representing the
  24749. // client's request for the TerminateClientVpnConnections operation. The "output" return
  24750. // value will be populated with the request's response once the request completes
  24751. // successfully.
  24752. //
  24753. // Use "Send" method on the returned Request to send the API call to the service.
  24754. // the "output" return value is not valid until after Send returns without error.
  24755. //
  24756. // See TerminateClientVpnConnections for more information on using the TerminateClientVpnConnections
  24757. // API call, and error handling.
  24758. //
  24759. // This method is useful when you want to inject custom logic or configuration
  24760. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24761. //
  24762. //
  24763. // // Example sending a request using the TerminateClientVpnConnectionsRequest method.
  24764. // req, resp := client.TerminateClientVpnConnectionsRequest(params)
  24765. //
  24766. // err := req.Send()
  24767. // if err == nil { // resp is now filled
  24768. // fmt.Println(resp)
  24769. // }
  24770. //
  24771. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateClientVpnConnections
  24772. func (c *EC2) TerminateClientVpnConnectionsRequest(input *TerminateClientVpnConnectionsInput) (req *request.Request, output *TerminateClientVpnConnectionsOutput) {
  24773. op := &request.Operation{
  24774. Name: opTerminateClientVpnConnections,
  24775. HTTPMethod: "POST",
  24776. HTTPPath: "/",
  24777. }
  24778. if input == nil {
  24779. input = &TerminateClientVpnConnectionsInput{}
  24780. }
  24781. output = &TerminateClientVpnConnectionsOutput{}
  24782. req = c.newRequest(op, input, output)
  24783. return
  24784. }
  24785. // TerminateClientVpnConnections API operation for Amazon Elastic Compute Cloud.
  24786. //
  24787. // Terminates active Client VPN endpoint connections. This action can be used
  24788. // to terminate a specific client connection, or up to five connections established
  24789. // by a specific user.
  24790. //
  24791. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24792. // with awserr.Error's Code and Message methods to get detailed information about
  24793. // the error.
  24794. //
  24795. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24796. // API operation TerminateClientVpnConnections for usage and error information.
  24797. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateClientVpnConnections
  24798. func (c *EC2) TerminateClientVpnConnections(input *TerminateClientVpnConnectionsInput) (*TerminateClientVpnConnectionsOutput, error) {
  24799. req, out := c.TerminateClientVpnConnectionsRequest(input)
  24800. return out, req.Send()
  24801. }
  24802. // TerminateClientVpnConnectionsWithContext is the same as TerminateClientVpnConnections with the addition of
  24803. // the ability to pass a context and additional request options.
  24804. //
  24805. // See TerminateClientVpnConnections for details on how to use this API operation.
  24806. //
  24807. // The context must be non-nil and will be used for request cancellation. If
  24808. // the context is nil a panic will occur. In the future the SDK may create
  24809. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24810. // for more information on using Contexts.
  24811. func (c *EC2) TerminateClientVpnConnectionsWithContext(ctx aws.Context, input *TerminateClientVpnConnectionsInput, opts ...request.Option) (*TerminateClientVpnConnectionsOutput, error) {
  24812. req, out := c.TerminateClientVpnConnectionsRequest(input)
  24813. req.SetContext(ctx)
  24814. req.ApplyOptions(opts...)
  24815. return out, req.Send()
  24816. }
  24817. const opTerminateInstances = "TerminateInstances"
  24818. // TerminateInstancesRequest generates a "aws/request.Request" representing the
  24819. // client's request for the TerminateInstances operation. The "output" return
  24820. // value will be populated with the request's response once the request completes
  24821. // successfully.
  24822. //
  24823. // Use "Send" method on the returned Request to send the API call to the service.
  24824. // the "output" return value is not valid until after Send returns without error.
  24825. //
  24826. // See TerminateInstances for more information on using the TerminateInstances
  24827. // API call, and error handling.
  24828. //
  24829. // This method is useful when you want to inject custom logic or configuration
  24830. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24831. //
  24832. //
  24833. // // Example sending a request using the TerminateInstancesRequest method.
  24834. // req, resp := client.TerminateInstancesRequest(params)
  24835. //
  24836. // err := req.Send()
  24837. // if err == nil { // resp is now filled
  24838. // fmt.Println(resp)
  24839. // }
  24840. //
  24841. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstances
  24842. func (c *EC2) TerminateInstancesRequest(input *TerminateInstancesInput) (req *request.Request, output *TerminateInstancesOutput) {
  24843. op := &request.Operation{
  24844. Name: opTerminateInstances,
  24845. HTTPMethod: "POST",
  24846. HTTPPath: "/",
  24847. }
  24848. if input == nil {
  24849. input = &TerminateInstancesInput{}
  24850. }
  24851. output = &TerminateInstancesOutput{}
  24852. req = c.newRequest(op, input, output)
  24853. return
  24854. }
  24855. // TerminateInstances API operation for Amazon Elastic Compute Cloud.
  24856. //
  24857. // Shuts down one or more instances. This operation is idempotent; if you terminate
  24858. // an instance more than once, each call succeeds.
  24859. //
  24860. // If you specify multiple instances and the request fails (for example, because
  24861. // of a single incorrect instance ID), none of the instances are terminated.
  24862. //
  24863. // Terminated instances remain visible after termination (for approximately
  24864. // one hour).
  24865. //
  24866. // By default, Amazon EC2 deletes all EBS volumes that were attached when the
  24867. // instance launched. Volumes attached after instance launch continue running.
  24868. //
  24869. // You can stop, start, and terminate EBS-backed instances. You can only terminate
  24870. // instance store-backed instances. What happens to an instance differs if you
  24871. // stop it or terminate it. For example, when you stop an instance, the root
  24872. // device and any other devices attached to the instance persist. When you terminate
  24873. // an instance, any attached EBS volumes with the DeleteOnTermination block
  24874. // device mapping parameter set to true are automatically deleted. For more
  24875. // information about the differences between stopping and terminating instances,
  24876. // see Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  24877. // in the Amazon Elastic Compute Cloud User Guide.
  24878. //
  24879. // For more information about troubleshooting, see Troubleshooting Terminating
  24880. // Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesShuttingDown.html)
  24881. // in the Amazon Elastic Compute Cloud User Guide.
  24882. //
  24883. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24884. // with awserr.Error's Code and Message methods to get detailed information about
  24885. // the error.
  24886. //
  24887. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24888. // API operation TerminateInstances for usage and error information.
  24889. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstances
  24890. func (c *EC2) TerminateInstances(input *TerminateInstancesInput) (*TerminateInstancesOutput, error) {
  24891. req, out := c.TerminateInstancesRequest(input)
  24892. return out, req.Send()
  24893. }
  24894. // TerminateInstancesWithContext is the same as TerminateInstances with the addition of
  24895. // the ability to pass a context and additional request options.
  24896. //
  24897. // See TerminateInstances for details on how to use this API operation.
  24898. //
  24899. // The context must be non-nil and will be used for request cancellation. If
  24900. // the context is nil a panic will occur. In the future the SDK may create
  24901. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24902. // for more information on using Contexts.
  24903. func (c *EC2) TerminateInstancesWithContext(ctx aws.Context, input *TerminateInstancesInput, opts ...request.Option) (*TerminateInstancesOutput, error) {
  24904. req, out := c.TerminateInstancesRequest(input)
  24905. req.SetContext(ctx)
  24906. req.ApplyOptions(opts...)
  24907. return out, req.Send()
  24908. }
  24909. const opUnassignIpv6Addresses = "UnassignIpv6Addresses"
  24910. // UnassignIpv6AddressesRequest generates a "aws/request.Request" representing the
  24911. // client's request for the UnassignIpv6Addresses operation. The "output" return
  24912. // value will be populated with the request's response once the request completes
  24913. // successfully.
  24914. //
  24915. // Use "Send" method on the returned Request to send the API call to the service.
  24916. // the "output" return value is not valid until after Send returns without error.
  24917. //
  24918. // See UnassignIpv6Addresses for more information on using the UnassignIpv6Addresses
  24919. // API call, and error handling.
  24920. //
  24921. // This method is useful when you want to inject custom logic or configuration
  24922. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24923. //
  24924. //
  24925. // // Example sending a request using the UnassignIpv6AddressesRequest method.
  24926. // req, resp := client.UnassignIpv6AddressesRequest(params)
  24927. //
  24928. // err := req.Send()
  24929. // if err == nil { // resp is now filled
  24930. // fmt.Println(resp)
  24931. // }
  24932. //
  24933. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6Addresses
  24934. func (c *EC2) UnassignIpv6AddressesRequest(input *UnassignIpv6AddressesInput) (req *request.Request, output *UnassignIpv6AddressesOutput) {
  24935. op := &request.Operation{
  24936. Name: opUnassignIpv6Addresses,
  24937. HTTPMethod: "POST",
  24938. HTTPPath: "/",
  24939. }
  24940. if input == nil {
  24941. input = &UnassignIpv6AddressesInput{}
  24942. }
  24943. output = &UnassignIpv6AddressesOutput{}
  24944. req = c.newRequest(op, input, output)
  24945. return
  24946. }
  24947. // UnassignIpv6Addresses API operation for Amazon Elastic Compute Cloud.
  24948. //
  24949. // Unassigns one or more IPv6 addresses from a network interface.
  24950. //
  24951. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  24952. // with awserr.Error's Code and Message methods to get detailed information about
  24953. // the error.
  24954. //
  24955. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  24956. // API operation UnassignIpv6Addresses for usage and error information.
  24957. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6Addresses
  24958. func (c *EC2) UnassignIpv6Addresses(input *UnassignIpv6AddressesInput) (*UnassignIpv6AddressesOutput, error) {
  24959. req, out := c.UnassignIpv6AddressesRequest(input)
  24960. return out, req.Send()
  24961. }
  24962. // UnassignIpv6AddressesWithContext is the same as UnassignIpv6Addresses with the addition of
  24963. // the ability to pass a context and additional request options.
  24964. //
  24965. // See UnassignIpv6Addresses for details on how to use this API operation.
  24966. //
  24967. // The context must be non-nil and will be used for request cancellation. If
  24968. // the context is nil a panic will occur. In the future the SDK may create
  24969. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  24970. // for more information on using Contexts.
  24971. func (c *EC2) UnassignIpv6AddressesWithContext(ctx aws.Context, input *UnassignIpv6AddressesInput, opts ...request.Option) (*UnassignIpv6AddressesOutput, error) {
  24972. req, out := c.UnassignIpv6AddressesRequest(input)
  24973. req.SetContext(ctx)
  24974. req.ApplyOptions(opts...)
  24975. return out, req.Send()
  24976. }
  24977. const opUnassignPrivateIpAddresses = "UnassignPrivateIpAddresses"
  24978. // UnassignPrivateIpAddressesRequest generates a "aws/request.Request" representing the
  24979. // client's request for the UnassignPrivateIpAddresses operation. The "output" return
  24980. // value will be populated with the request's response once the request completes
  24981. // successfully.
  24982. //
  24983. // Use "Send" method on the returned Request to send the API call to the service.
  24984. // the "output" return value is not valid until after Send returns without error.
  24985. //
  24986. // See UnassignPrivateIpAddresses for more information on using the UnassignPrivateIpAddresses
  24987. // API call, and error handling.
  24988. //
  24989. // This method is useful when you want to inject custom logic or configuration
  24990. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  24991. //
  24992. //
  24993. // // Example sending a request using the UnassignPrivateIpAddressesRequest method.
  24994. // req, resp := client.UnassignPrivateIpAddressesRequest(params)
  24995. //
  24996. // err := req.Send()
  24997. // if err == nil { // resp is now filled
  24998. // fmt.Println(resp)
  24999. // }
  25000. //
  25001. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddresses
  25002. func (c *EC2) UnassignPrivateIpAddressesRequest(input *UnassignPrivateIpAddressesInput) (req *request.Request, output *UnassignPrivateIpAddressesOutput) {
  25003. op := &request.Operation{
  25004. Name: opUnassignPrivateIpAddresses,
  25005. HTTPMethod: "POST",
  25006. HTTPPath: "/",
  25007. }
  25008. if input == nil {
  25009. input = &UnassignPrivateIpAddressesInput{}
  25010. }
  25011. output = &UnassignPrivateIpAddressesOutput{}
  25012. req = c.newRequest(op, input, output)
  25013. req.Handlers.Unmarshal.Swap(ec2query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  25014. return
  25015. }
  25016. // UnassignPrivateIpAddresses API operation for Amazon Elastic Compute Cloud.
  25017. //
  25018. // Unassigns one or more secondary private IP addresses from a network interface.
  25019. //
  25020. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  25021. // with awserr.Error's Code and Message methods to get detailed information about
  25022. // the error.
  25023. //
  25024. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  25025. // API operation UnassignPrivateIpAddresses for usage and error information.
  25026. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddresses
  25027. func (c *EC2) UnassignPrivateIpAddresses(input *UnassignPrivateIpAddressesInput) (*UnassignPrivateIpAddressesOutput, error) {
  25028. req, out := c.UnassignPrivateIpAddressesRequest(input)
  25029. return out, req.Send()
  25030. }
  25031. // UnassignPrivateIpAddressesWithContext is the same as UnassignPrivateIpAddresses with the addition of
  25032. // the ability to pass a context and additional request options.
  25033. //
  25034. // See UnassignPrivateIpAddresses for details on how to use this API operation.
  25035. //
  25036. // The context must be non-nil and will be used for request cancellation. If
  25037. // the context is nil a panic will occur. In the future the SDK may create
  25038. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  25039. // for more information on using Contexts.
  25040. func (c *EC2) UnassignPrivateIpAddressesWithContext(ctx aws.Context, input *UnassignPrivateIpAddressesInput, opts ...request.Option) (*UnassignPrivateIpAddressesOutput, error) {
  25041. req, out := c.UnassignPrivateIpAddressesRequest(input)
  25042. req.SetContext(ctx)
  25043. req.ApplyOptions(opts...)
  25044. return out, req.Send()
  25045. }
  25046. const opUnmonitorInstances = "UnmonitorInstances"
  25047. // UnmonitorInstancesRequest generates a "aws/request.Request" representing the
  25048. // client's request for the UnmonitorInstances operation. The "output" return
  25049. // value will be populated with the request's response once the request completes
  25050. // successfully.
  25051. //
  25052. // Use "Send" method on the returned Request to send the API call to the service.
  25053. // the "output" return value is not valid until after Send returns without error.
  25054. //
  25055. // See UnmonitorInstances for more information on using the UnmonitorInstances
  25056. // API call, and error handling.
  25057. //
  25058. // This method is useful when you want to inject custom logic or configuration
  25059. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  25060. //
  25061. //
  25062. // // Example sending a request using the UnmonitorInstancesRequest method.
  25063. // req, resp := client.UnmonitorInstancesRequest(params)
  25064. //
  25065. // err := req.Send()
  25066. // if err == nil { // resp is now filled
  25067. // fmt.Println(resp)
  25068. // }
  25069. //
  25070. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstances
  25071. func (c *EC2) UnmonitorInstancesRequest(input *UnmonitorInstancesInput) (req *request.Request, output *UnmonitorInstancesOutput) {
  25072. op := &request.Operation{
  25073. Name: opUnmonitorInstances,
  25074. HTTPMethod: "POST",
  25075. HTTPPath: "/",
  25076. }
  25077. if input == nil {
  25078. input = &UnmonitorInstancesInput{}
  25079. }
  25080. output = &UnmonitorInstancesOutput{}
  25081. req = c.newRequest(op, input, output)
  25082. return
  25083. }
  25084. // UnmonitorInstances API operation for Amazon Elastic Compute Cloud.
  25085. //
  25086. // Disables detailed monitoring for a running instance. For more information,
  25087. // see Monitoring Your Instances and Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html)
  25088. // in the Amazon Elastic Compute Cloud User Guide.
  25089. //
  25090. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  25091. // with awserr.Error's Code and Message methods to get detailed information about
  25092. // the error.
  25093. //
  25094. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  25095. // API operation UnmonitorInstances for usage and error information.
  25096. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstances
  25097. func (c *EC2) UnmonitorInstances(input *UnmonitorInstancesInput) (*UnmonitorInstancesOutput, error) {
  25098. req, out := c.UnmonitorInstancesRequest(input)
  25099. return out, req.Send()
  25100. }
  25101. // UnmonitorInstancesWithContext is the same as UnmonitorInstances with the addition of
  25102. // the ability to pass a context and additional request options.
  25103. //
  25104. // See UnmonitorInstances for details on how to use this API operation.
  25105. //
  25106. // The context must be non-nil and will be used for request cancellation. If
  25107. // the context is nil a panic will occur. In the future the SDK may create
  25108. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  25109. // for more information on using Contexts.
  25110. func (c *EC2) UnmonitorInstancesWithContext(ctx aws.Context, input *UnmonitorInstancesInput, opts ...request.Option) (*UnmonitorInstancesOutput, error) {
  25111. req, out := c.UnmonitorInstancesRequest(input)
  25112. req.SetContext(ctx)
  25113. req.ApplyOptions(opts...)
  25114. return out, req.Send()
  25115. }
  25116. const opUpdateSecurityGroupRuleDescriptionsEgress = "UpdateSecurityGroupRuleDescriptionsEgress"
  25117. // UpdateSecurityGroupRuleDescriptionsEgressRequest generates a "aws/request.Request" representing the
  25118. // client's request for the UpdateSecurityGroupRuleDescriptionsEgress operation. The "output" return
  25119. // value will be populated with the request's response once the request completes
  25120. // successfully.
  25121. //
  25122. // Use "Send" method on the returned Request to send the API call to the service.
  25123. // the "output" return value is not valid until after Send returns without error.
  25124. //
  25125. // See UpdateSecurityGroupRuleDescriptionsEgress for more information on using the UpdateSecurityGroupRuleDescriptionsEgress
  25126. // API call, and error handling.
  25127. //
  25128. // This method is useful when you want to inject custom logic or configuration
  25129. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  25130. //
  25131. //
  25132. // // Example sending a request using the UpdateSecurityGroupRuleDescriptionsEgressRequest method.
  25133. // req, resp := client.UpdateSecurityGroupRuleDescriptionsEgressRequest(params)
  25134. //
  25135. // err := req.Send()
  25136. // if err == nil { // resp is now filled
  25137. // fmt.Println(resp)
  25138. // }
  25139. //
  25140. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsEgress
  25141. func (c *EC2) UpdateSecurityGroupRuleDescriptionsEgressRequest(input *UpdateSecurityGroupRuleDescriptionsEgressInput) (req *request.Request, output *UpdateSecurityGroupRuleDescriptionsEgressOutput) {
  25142. op := &request.Operation{
  25143. Name: opUpdateSecurityGroupRuleDescriptionsEgress,
  25144. HTTPMethod: "POST",
  25145. HTTPPath: "/",
  25146. }
  25147. if input == nil {
  25148. input = &UpdateSecurityGroupRuleDescriptionsEgressInput{}
  25149. }
  25150. output = &UpdateSecurityGroupRuleDescriptionsEgressOutput{}
  25151. req = c.newRequest(op, input, output)
  25152. return
  25153. }
  25154. // UpdateSecurityGroupRuleDescriptionsEgress API operation for Amazon Elastic Compute Cloud.
  25155. //
  25156. // [EC2-VPC only] Updates the description of an egress (outbound) security group
  25157. // rule. You can replace an existing description, or add a description to a
  25158. // rule that did not have one previously.
  25159. //
  25160. // You specify the description as part of the IP permissions structure. You
  25161. // can remove a description for a security group rule by omitting the description
  25162. // parameter in the request.
  25163. //
  25164. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  25165. // with awserr.Error's Code and Message methods to get detailed information about
  25166. // the error.
  25167. //
  25168. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  25169. // API operation UpdateSecurityGroupRuleDescriptionsEgress for usage and error information.
  25170. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsEgress
  25171. func (c *EC2) UpdateSecurityGroupRuleDescriptionsEgress(input *UpdateSecurityGroupRuleDescriptionsEgressInput) (*UpdateSecurityGroupRuleDescriptionsEgressOutput, error) {
  25172. req, out := c.UpdateSecurityGroupRuleDescriptionsEgressRequest(input)
  25173. return out, req.Send()
  25174. }
  25175. // UpdateSecurityGroupRuleDescriptionsEgressWithContext is the same as UpdateSecurityGroupRuleDescriptionsEgress with the addition of
  25176. // the ability to pass a context and additional request options.
  25177. //
  25178. // See UpdateSecurityGroupRuleDescriptionsEgress for details on how to use this API operation.
  25179. //
  25180. // The context must be non-nil and will be used for request cancellation. If
  25181. // the context is nil a panic will occur. In the future the SDK may create
  25182. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  25183. // for more information on using Contexts.
  25184. func (c *EC2) UpdateSecurityGroupRuleDescriptionsEgressWithContext(ctx aws.Context, input *UpdateSecurityGroupRuleDescriptionsEgressInput, opts ...request.Option) (*UpdateSecurityGroupRuleDescriptionsEgressOutput, error) {
  25185. req, out := c.UpdateSecurityGroupRuleDescriptionsEgressRequest(input)
  25186. req.SetContext(ctx)
  25187. req.ApplyOptions(opts...)
  25188. return out, req.Send()
  25189. }
  25190. const opUpdateSecurityGroupRuleDescriptionsIngress = "UpdateSecurityGroupRuleDescriptionsIngress"
  25191. // UpdateSecurityGroupRuleDescriptionsIngressRequest generates a "aws/request.Request" representing the
  25192. // client's request for the UpdateSecurityGroupRuleDescriptionsIngress operation. The "output" return
  25193. // value will be populated with the request's response once the request completes
  25194. // successfully.
  25195. //
  25196. // Use "Send" method on the returned Request to send the API call to the service.
  25197. // the "output" return value is not valid until after Send returns without error.
  25198. //
  25199. // See UpdateSecurityGroupRuleDescriptionsIngress for more information on using the UpdateSecurityGroupRuleDescriptionsIngress
  25200. // API call, and error handling.
  25201. //
  25202. // This method is useful when you want to inject custom logic or configuration
  25203. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  25204. //
  25205. //
  25206. // // Example sending a request using the UpdateSecurityGroupRuleDescriptionsIngressRequest method.
  25207. // req, resp := client.UpdateSecurityGroupRuleDescriptionsIngressRequest(params)
  25208. //
  25209. // err := req.Send()
  25210. // if err == nil { // resp is now filled
  25211. // fmt.Println(resp)
  25212. // }
  25213. //
  25214. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsIngress
  25215. func (c *EC2) UpdateSecurityGroupRuleDescriptionsIngressRequest(input *UpdateSecurityGroupRuleDescriptionsIngressInput) (req *request.Request, output *UpdateSecurityGroupRuleDescriptionsIngressOutput) {
  25216. op := &request.Operation{
  25217. Name: opUpdateSecurityGroupRuleDescriptionsIngress,
  25218. HTTPMethod: "POST",
  25219. HTTPPath: "/",
  25220. }
  25221. if input == nil {
  25222. input = &UpdateSecurityGroupRuleDescriptionsIngressInput{}
  25223. }
  25224. output = &UpdateSecurityGroupRuleDescriptionsIngressOutput{}
  25225. req = c.newRequest(op, input, output)
  25226. return
  25227. }
  25228. // UpdateSecurityGroupRuleDescriptionsIngress API operation for Amazon Elastic Compute Cloud.
  25229. //
  25230. // Updates the description of an ingress (inbound) security group rule. You
  25231. // can replace an existing description, or add a description to a rule that
  25232. // did not have one previously.
  25233. //
  25234. // You specify the description as part of the IP permissions structure. You
  25235. // can remove a description for a security group rule by omitting the description
  25236. // parameter in the request.
  25237. //
  25238. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  25239. // with awserr.Error's Code and Message methods to get detailed information about
  25240. // the error.
  25241. //
  25242. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  25243. // API operation UpdateSecurityGroupRuleDescriptionsIngress for usage and error information.
  25244. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsIngress
  25245. func (c *EC2) UpdateSecurityGroupRuleDescriptionsIngress(input *UpdateSecurityGroupRuleDescriptionsIngressInput) (*UpdateSecurityGroupRuleDescriptionsIngressOutput, error) {
  25246. req, out := c.UpdateSecurityGroupRuleDescriptionsIngressRequest(input)
  25247. return out, req.Send()
  25248. }
  25249. // UpdateSecurityGroupRuleDescriptionsIngressWithContext is the same as UpdateSecurityGroupRuleDescriptionsIngress with the addition of
  25250. // the ability to pass a context and additional request options.
  25251. //
  25252. // See UpdateSecurityGroupRuleDescriptionsIngress for details on how to use this API operation.
  25253. //
  25254. // The context must be non-nil and will be used for request cancellation. If
  25255. // the context is nil a panic will occur. In the future the SDK may create
  25256. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  25257. // for more information on using Contexts.
  25258. func (c *EC2) UpdateSecurityGroupRuleDescriptionsIngressWithContext(ctx aws.Context, input *UpdateSecurityGroupRuleDescriptionsIngressInput, opts ...request.Option) (*UpdateSecurityGroupRuleDescriptionsIngressOutput, error) {
  25259. req, out := c.UpdateSecurityGroupRuleDescriptionsIngressRequest(input)
  25260. req.SetContext(ctx)
  25261. req.ApplyOptions(opts...)
  25262. return out, req.Send()
  25263. }
  25264. const opWithdrawByoipCidr = "WithdrawByoipCidr"
  25265. // WithdrawByoipCidrRequest generates a "aws/request.Request" representing the
  25266. // client's request for the WithdrawByoipCidr operation. The "output" return
  25267. // value will be populated with the request's response once the request completes
  25268. // successfully.
  25269. //
  25270. // Use "Send" method on the returned Request to send the API call to the service.
  25271. // the "output" return value is not valid until after Send returns without error.
  25272. //
  25273. // See WithdrawByoipCidr for more information on using the WithdrawByoipCidr
  25274. // API call, and error handling.
  25275. //
  25276. // This method is useful when you want to inject custom logic or configuration
  25277. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  25278. //
  25279. //
  25280. // // Example sending a request using the WithdrawByoipCidrRequest method.
  25281. // req, resp := client.WithdrawByoipCidrRequest(params)
  25282. //
  25283. // err := req.Send()
  25284. // if err == nil { // resp is now filled
  25285. // fmt.Println(resp)
  25286. // }
  25287. //
  25288. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/WithdrawByoipCidr
  25289. func (c *EC2) WithdrawByoipCidrRequest(input *WithdrawByoipCidrInput) (req *request.Request, output *WithdrawByoipCidrOutput) {
  25290. op := &request.Operation{
  25291. Name: opWithdrawByoipCidr,
  25292. HTTPMethod: "POST",
  25293. HTTPPath: "/",
  25294. }
  25295. if input == nil {
  25296. input = &WithdrawByoipCidrInput{}
  25297. }
  25298. output = &WithdrawByoipCidrOutput{}
  25299. req = c.newRequest(op, input, output)
  25300. return
  25301. }
  25302. // WithdrawByoipCidr API operation for Amazon Elastic Compute Cloud.
  25303. //
  25304. // Stops advertising an IPv4 address range that is provisioned as an address
  25305. // pool.
  25306. //
  25307. // You can perform this operation at most once every 10 seconds, even if you
  25308. // specify different address ranges each time.
  25309. //
  25310. // It can take a few minutes before traffic to the specified addresses stops
  25311. // routing to AWS because of BGP propagation delays.
  25312. //
  25313. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  25314. // with awserr.Error's Code and Message methods to get detailed information about
  25315. // the error.
  25316. //
  25317. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  25318. // API operation WithdrawByoipCidr for usage and error information.
  25319. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/WithdrawByoipCidr
  25320. func (c *EC2) WithdrawByoipCidr(input *WithdrawByoipCidrInput) (*WithdrawByoipCidrOutput, error) {
  25321. req, out := c.WithdrawByoipCidrRequest(input)
  25322. return out, req.Send()
  25323. }
  25324. // WithdrawByoipCidrWithContext is the same as WithdrawByoipCidr with the addition of
  25325. // the ability to pass a context and additional request options.
  25326. //
  25327. // See WithdrawByoipCidr for details on how to use this API operation.
  25328. //
  25329. // The context must be non-nil and will be used for request cancellation. If
  25330. // the context is nil a panic will occur. In the future the SDK may create
  25331. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  25332. // for more information on using Contexts.
  25333. func (c *EC2) WithdrawByoipCidrWithContext(ctx aws.Context, input *WithdrawByoipCidrInput, opts ...request.Option) (*WithdrawByoipCidrOutput, error) {
  25334. req, out := c.WithdrawByoipCidrRequest(input)
  25335. req.SetContext(ctx)
  25336. req.ApplyOptions(opts...)
  25337. return out, req.Send()
  25338. }
  25339. // Contains the parameters for accepting the quote.
  25340. type AcceptReservedInstancesExchangeQuoteInput struct {
  25341. _ struct{} `type:"structure"`
  25342. // Checks whether you have the required permissions for the action, without
  25343. // actually making the request, and provides an error response. If you have
  25344. // the required permissions, the error response is DryRunOperation. Otherwise,
  25345. // it is UnauthorizedOperation.
  25346. DryRun *bool `type:"boolean"`
  25347. // The IDs of the Convertible Reserved Instances to exchange for another Convertible
  25348. // Reserved Instance of the same or higher value.
  25349. //
  25350. // ReservedInstanceIds is a required field
  25351. ReservedInstanceIds []*string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"`
  25352. // The configuration of the target Convertible Reserved Instance to exchange
  25353. // for your current Convertible Reserved Instances.
  25354. TargetConfigurations []*TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"`
  25355. }
  25356. // String returns the string representation
  25357. func (s AcceptReservedInstancesExchangeQuoteInput) String() string {
  25358. return awsutil.Prettify(s)
  25359. }
  25360. // GoString returns the string representation
  25361. func (s AcceptReservedInstancesExchangeQuoteInput) GoString() string {
  25362. return s.String()
  25363. }
  25364. // Validate inspects the fields of the type to determine if they are valid.
  25365. func (s *AcceptReservedInstancesExchangeQuoteInput) Validate() error {
  25366. invalidParams := request.ErrInvalidParams{Context: "AcceptReservedInstancesExchangeQuoteInput"}
  25367. if s.ReservedInstanceIds == nil {
  25368. invalidParams.Add(request.NewErrParamRequired("ReservedInstanceIds"))
  25369. }
  25370. if s.TargetConfigurations != nil {
  25371. for i, v := range s.TargetConfigurations {
  25372. if v == nil {
  25373. continue
  25374. }
  25375. if err := v.Validate(); err != nil {
  25376. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetConfigurations", i), err.(request.ErrInvalidParams))
  25377. }
  25378. }
  25379. }
  25380. if invalidParams.Len() > 0 {
  25381. return invalidParams
  25382. }
  25383. return nil
  25384. }
  25385. // SetDryRun sets the DryRun field's value.
  25386. func (s *AcceptReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *AcceptReservedInstancesExchangeQuoteInput {
  25387. s.DryRun = &v
  25388. return s
  25389. }
  25390. // SetReservedInstanceIds sets the ReservedInstanceIds field's value.
  25391. func (s *AcceptReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *AcceptReservedInstancesExchangeQuoteInput {
  25392. s.ReservedInstanceIds = v
  25393. return s
  25394. }
  25395. // SetTargetConfigurations sets the TargetConfigurations field's value.
  25396. func (s *AcceptReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *AcceptReservedInstancesExchangeQuoteInput {
  25397. s.TargetConfigurations = v
  25398. return s
  25399. }
  25400. // The result of the exchange and whether it was successful.
  25401. type AcceptReservedInstancesExchangeQuoteOutput struct {
  25402. _ struct{} `type:"structure"`
  25403. // The ID of the successful exchange.
  25404. ExchangeId *string `locationName:"exchangeId" type:"string"`
  25405. }
  25406. // String returns the string representation
  25407. func (s AcceptReservedInstancesExchangeQuoteOutput) String() string {
  25408. return awsutil.Prettify(s)
  25409. }
  25410. // GoString returns the string representation
  25411. func (s AcceptReservedInstancesExchangeQuoteOutput) GoString() string {
  25412. return s.String()
  25413. }
  25414. // SetExchangeId sets the ExchangeId field's value.
  25415. func (s *AcceptReservedInstancesExchangeQuoteOutput) SetExchangeId(v string) *AcceptReservedInstancesExchangeQuoteOutput {
  25416. s.ExchangeId = &v
  25417. return s
  25418. }
  25419. type AcceptTransitGatewayVpcAttachmentInput struct {
  25420. _ struct{} `type:"structure"`
  25421. // Checks whether you have the required permissions for the action, without
  25422. // actually making the request, and provides an error response. If you have
  25423. // the required permissions, the error response is DryRunOperation. Otherwise,
  25424. // it is UnauthorizedOperation.
  25425. DryRun *bool `type:"boolean"`
  25426. // The ID of the attachment.
  25427. //
  25428. // TransitGatewayAttachmentId is a required field
  25429. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  25430. }
  25431. // String returns the string representation
  25432. func (s AcceptTransitGatewayVpcAttachmentInput) String() string {
  25433. return awsutil.Prettify(s)
  25434. }
  25435. // GoString returns the string representation
  25436. func (s AcceptTransitGatewayVpcAttachmentInput) GoString() string {
  25437. return s.String()
  25438. }
  25439. // Validate inspects the fields of the type to determine if they are valid.
  25440. func (s *AcceptTransitGatewayVpcAttachmentInput) Validate() error {
  25441. invalidParams := request.ErrInvalidParams{Context: "AcceptTransitGatewayVpcAttachmentInput"}
  25442. if s.TransitGatewayAttachmentId == nil {
  25443. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  25444. }
  25445. if invalidParams.Len() > 0 {
  25446. return invalidParams
  25447. }
  25448. return nil
  25449. }
  25450. // SetDryRun sets the DryRun field's value.
  25451. func (s *AcceptTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *AcceptTransitGatewayVpcAttachmentInput {
  25452. s.DryRun = &v
  25453. return s
  25454. }
  25455. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  25456. func (s *AcceptTransitGatewayVpcAttachmentInput) SetTransitGatewayAttachmentId(v string) *AcceptTransitGatewayVpcAttachmentInput {
  25457. s.TransitGatewayAttachmentId = &v
  25458. return s
  25459. }
  25460. type AcceptTransitGatewayVpcAttachmentOutput struct {
  25461. _ struct{} `type:"structure"`
  25462. // The VPC attachment.
  25463. TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
  25464. }
  25465. // String returns the string representation
  25466. func (s AcceptTransitGatewayVpcAttachmentOutput) String() string {
  25467. return awsutil.Prettify(s)
  25468. }
  25469. // GoString returns the string representation
  25470. func (s AcceptTransitGatewayVpcAttachmentOutput) GoString() string {
  25471. return s.String()
  25472. }
  25473. // SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value.
  25474. func (s *AcceptTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *AcceptTransitGatewayVpcAttachmentOutput {
  25475. s.TransitGatewayVpcAttachment = v
  25476. return s
  25477. }
  25478. type AcceptVpcEndpointConnectionsInput struct {
  25479. _ struct{} `type:"structure"`
  25480. // Checks whether you have the required permissions for the action, without
  25481. // actually making the request, and provides an error response. If you have
  25482. // the required permissions, the error response is DryRunOperation. Otherwise,
  25483. // it is UnauthorizedOperation.
  25484. DryRun *bool `type:"boolean"`
  25485. // The ID of the endpoint service.
  25486. //
  25487. // ServiceId is a required field
  25488. ServiceId *string `type:"string" required:"true"`
  25489. // The IDs of one or more interface VPC endpoints.
  25490. //
  25491. // VpcEndpointIds is a required field
  25492. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  25493. }
  25494. // String returns the string representation
  25495. func (s AcceptVpcEndpointConnectionsInput) String() string {
  25496. return awsutil.Prettify(s)
  25497. }
  25498. // GoString returns the string representation
  25499. func (s AcceptVpcEndpointConnectionsInput) GoString() string {
  25500. return s.String()
  25501. }
  25502. // Validate inspects the fields of the type to determine if they are valid.
  25503. func (s *AcceptVpcEndpointConnectionsInput) Validate() error {
  25504. invalidParams := request.ErrInvalidParams{Context: "AcceptVpcEndpointConnectionsInput"}
  25505. if s.ServiceId == nil {
  25506. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  25507. }
  25508. if s.VpcEndpointIds == nil {
  25509. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  25510. }
  25511. if invalidParams.Len() > 0 {
  25512. return invalidParams
  25513. }
  25514. return nil
  25515. }
  25516. // SetDryRun sets the DryRun field's value.
  25517. func (s *AcceptVpcEndpointConnectionsInput) SetDryRun(v bool) *AcceptVpcEndpointConnectionsInput {
  25518. s.DryRun = &v
  25519. return s
  25520. }
  25521. // SetServiceId sets the ServiceId field's value.
  25522. func (s *AcceptVpcEndpointConnectionsInput) SetServiceId(v string) *AcceptVpcEndpointConnectionsInput {
  25523. s.ServiceId = &v
  25524. return s
  25525. }
  25526. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  25527. func (s *AcceptVpcEndpointConnectionsInput) SetVpcEndpointIds(v []*string) *AcceptVpcEndpointConnectionsInput {
  25528. s.VpcEndpointIds = v
  25529. return s
  25530. }
  25531. type AcceptVpcEndpointConnectionsOutput struct {
  25532. _ struct{} `type:"structure"`
  25533. // Information about the interface endpoints that were not accepted, if applicable.
  25534. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  25535. }
  25536. // String returns the string representation
  25537. func (s AcceptVpcEndpointConnectionsOutput) String() string {
  25538. return awsutil.Prettify(s)
  25539. }
  25540. // GoString returns the string representation
  25541. func (s AcceptVpcEndpointConnectionsOutput) GoString() string {
  25542. return s.String()
  25543. }
  25544. // SetUnsuccessful sets the Unsuccessful field's value.
  25545. func (s *AcceptVpcEndpointConnectionsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *AcceptVpcEndpointConnectionsOutput {
  25546. s.Unsuccessful = v
  25547. return s
  25548. }
  25549. type AcceptVpcPeeringConnectionInput struct {
  25550. _ struct{} `type:"structure"`
  25551. // Checks whether you have the required permissions for the action, without
  25552. // actually making the request, and provides an error response. If you have
  25553. // the required permissions, the error response is DryRunOperation. Otherwise,
  25554. // it is UnauthorizedOperation.
  25555. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25556. // The ID of the VPC peering connection. You must specify this parameter in
  25557. // the request.
  25558. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  25559. }
  25560. // String returns the string representation
  25561. func (s AcceptVpcPeeringConnectionInput) String() string {
  25562. return awsutil.Prettify(s)
  25563. }
  25564. // GoString returns the string representation
  25565. func (s AcceptVpcPeeringConnectionInput) GoString() string {
  25566. return s.String()
  25567. }
  25568. // SetDryRun sets the DryRun field's value.
  25569. func (s *AcceptVpcPeeringConnectionInput) SetDryRun(v bool) *AcceptVpcPeeringConnectionInput {
  25570. s.DryRun = &v
  25571. return s
  25572. }
  25573. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  25574. func (s *AcceptVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *AcceptVpcPeeringConnectionInput {
  25575. s.VpcPeeringConnectionId = &v
  25576. return s
  25577. }
  25578. type AcceptVpcPeeringConnectionOutput struct {
  25579. _ struct{} `type:"structure"`
  25580. // Information about the VPC peering connection.
  25581. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
  25582. }
  25583. // String returns the string representation
  25584. func (s AcceptVpcPeeringConnectionOutput) String() string {
  25585. return awsutil.Prettify(s)
  25586. }
  25587. // GoString returns the string representation
  25588. func (s AcceptVpcPeeringConnectionOutput) GoString() string {
  25589. return s.String()
  25590. }
  25591. // SetVpcPeeringConnection sets the VpcPeeringConnection field's value.
  25592. func (s *AcceptVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *AcceptVpcPeeringConnectionOutput {
  25593. s.VpcPeeringConnection = v
  25594. return s
  25595. }
  25596. // Describes an account attribute.
  25597. type AccountAttribute struct {
  25598. _ struct{} `type:"structure"`
  25599. // The name of the account attribute.
  25600. AttributeName *string `locationName:"attributeName" type:"string"`
  25601. // One or more values for the account attribute.
  25602. AttributeValues []*AccountAttributeValue `locationName:"attributeValueSet" locationNameList:"item" type:"list"`
  25603. }
  25604. // String returns the string representation
  25605. func (s AccountAttribute) String() string {
  25606. return awsutil.Prettify(s)
  25607. }
  25608. // GoString returns the string representation
  25609. func (s AccountAttribute) GoString() string {
  25610. return s.String()
  25611. }
  25612. // SetAttributeName sets the AttributeName field's value.
  25613. func (s *AccountAttribute) SetAttributeName(v string) *AccountAttribute {
  25614. s.AttributeName = &v
  25615. return s
  25616. }
  25617. // SetAttributeValues sets the AttributeValues field's value.
  25618. func (s *AccountAttribute) SetAttributeValues(v []*AccountAttributeValue) *AccountAttribute {
  25619. s.AttributeValues = v
  25620. return s
  25621. }
  25622. // Describes a value of an account attribute.
  25623. type AccountAttributeValue struct {
  25624. _ struct{} `type:"structure"`
  25625. // The value of the attribute.
  25626. AttributeValue *string `locationName:"attributeValue" type:"string"`
  25627. }
  25628. // String returns the string representation
  25629. func (s AccountAttributeValue) String() string {
  25630. return awsutil.Prettify(s)
  25631. }
  25632. // GoString returns the string representation
  25633. func (s AccountAttributeValue) GoString() string {
  25634. return s.String()
  25635. }
  25636. // SetAttributeValue sets the AttributeValue field's value.
  25637. func (s *AccountAttributeValue) SetAttributeValue(v string) *AccountAttributeValue {
  25638. s.AttributeValue = &v
  25639. return s
  25640. }
  25641. // Describes a running instance in a Spot Fleet.
  25642. type ActiveInstance struct {
  25643. _ struct{} `type:"structure"`
  25644. // The health status of the instance. If the status of either the instance status
  25645. // check or the system status check is impaired, the health status of the instance
  25646. // is unhealthy. Otherwise, the health status is healthy.
  25647. InstanceHealth *string `locationName:"instanceHealth" type:"string" enum:"InstanceHealthStatus"`
  25648. // The ID of the instance.
  25649. InstanceId *string `locationName:"instanceId" type:"string"`
  25650. // The instance type.
  25651. InstanceType *string `locationName:"instanceType" type:"string"`
  25652. // The ID of the Spot Instance request.
  25653. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  25654. }
  25655. // String returns the string representation
  25656. func (s ActiveInstance) String() string {
  25657. return awsutil.Prettify(s)
  25658. }
  25659. // GoString returns the string representation
  25660. func (s ActiveInstance) GoString() string {
  25661. return s.String()
  25662. }
  25663. // SetInstanceHealth sets the InstanceHealth field's value.
  25664. func (s *ActiveInstance) SetInstanceHealth(v string) *ActiveInstance {
  25665. s.InstanceHealth = &v
  25666. return s
  25667. }
  25668. // SetInstanceId sets the InstanceId field's value.
  25669. func (s *ActiveInstance) SetInstanceId(v string) *ActiveInstance {
  25670. s.InstanceId = &v
  25671. return s
  25672. }
  25673. // SetInstanceType sets the InstanceType field's value.
  25674. func (s *ActiveInstance) SetInstanceType(v string) *ActiveInstance {
  25675. s.InstanceType = &v
  25676. return s
  25677. }
  25678. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  25679. func (s *ActiveInstance) SetSpotInstanceRequestId(v string) *ActiveInstance {
  25680. s.SpotInstanceRequestId = &v
  25681. return s
  25682. }
  25683. // Describes an Elastic IP address.
  25684. type Address struct {
  25685. _ struct{} `type:"structure"`
  25686. // The ID representing the allocation of the address for use with EC2-VPC.
  25687. AllocationId *string `locationName:"allocationId" type:"string"`
  25688. // The ID representing the association of the address with an instance in a
  25689. // VPC.
  25690. AssociationId *string `locationName:"associationId" type:"string"`
  25691. // Indicates whether this Elastic IP address is for use with instances in EC2-Classic
  25692. // (standard) or instances in a VPC (vpc).
  25693. Domain *string `locationName:"domain" type:"string" enum:"DomainType"`
  25694. // The ID of the instance that the address is associated with (if any).
  25695. InstanceId *string `locationName:"instanceId" type:"string"`
  25696. // The ID of the network interface.
  25697. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  25698. // The ID of the AWS account that owns the network interface.
  25699. NetworkInterfaceOwnerId *string `locationName:"networkInterfaceOwnerId" type:"string"`
  25700. // The private IP address associated with the Elastic IP address.
  25701. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  25702. // The Elastic IP address.
  25703. PublicIp *string `locationName:"publicIp" type:"string"`
  25704. // The ID of an address pool.
  25705. PublicIpv4Pool *string `locationName:"publicIpv4Pool" type:"string"`
  25706. // Any tags assigned to the Elastic IP address.
  25707. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  25708. }
  25709. // String returns the string representation
  25710. func (s Address) String() string {
  25711. return awsutil.Prettify(s)
  25712. }
  25713. // GoString returns the string representation
  25714. func (s Address) GoString() string {
  25715. return s.String()
  25716. }
  25717. // SetAllocationId sets the AllocationId field's value.
  25718. func (s *Address) SetAllocationId(v string) *Address {
  25719. s.AllocationId = &v
  25720. return s
  25721. }
  25722. // SetAssociationId sets the AssociationId field's value.
  25723. func (s *Address) SetAssociationId(v string) *Address {
  25724. s.AssociationId = &v
  25725. return s
  25726. }
  25727. // SetDomain sets the Domain field's value.
  25728. func (s *Address) SetDomain(v string) *Address {
  25729. s.Domain = &v
  25730. return s
  25731. }
  25732. // SetInstanceId sets the InstanceId field's value.
  25733. func (s *Address) SetInstanceId(v string) *Address {
  25734. s.InstanceId = &v
  25735. return s
  25736. }
  25737. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  25738. func (s *Address) SetNetworkInterfaceId(v string) *Address {
  25739. s.NetworkInterfaceId = &v
  25740. return s
  25741. }
  25742. // SetNetworkInterfaceOwnerId sets the NetworkInterfaceOwnerId field's value.
  25743. func (s *Address) SetNetworkInterfaceOwnerId(v string) *Address {
  25744. s.NetworkInterfaceOwnerId = &v
  25745. return s
  25746. }
  25747. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  25748. func (s *Address) SetPrivateIpAddress(v string) *Address {
  25749. s.PrivateIpAddress = &v
  25750. return s
  25751. }
  25752. // SetPublicIp sets the PublicIp field's value.
  25753. func (s *Address) SetPublicIp(v string) *Address {
  25754. s.PublicIp = &v
  25755. return s
  25756. }
  25757. // SetPublicIpv4Pool sets the PublicIpv4Pool field's value.
  25758. func (s *Address) SetPublicIpv4Pool(v string) *Address {
  25759. s.PublicIpv4Pool = &v
  25760. return s
  25761. }
  25762. // SetTags sets the Tags field's value.
  25763. func (s *Address) SetTags(v []*Tag) *Address {
  25764. s.Tags = v
  25765. return s
  25766. }
  25767. type AdvertiseByoipCidrInput struct {
  25768. _ struct{} `type:"structure"`
  25769. // The IPv4 address range, in CIDR notation.
  25770. //
  25771. // Cidr is a required field
  25772. Cidr *string `type:"string" required:"true"`
  25773. // Checks whether you have the required permissions for the action, without
  25774. // actually making the request, and provides an error response. If you have
  25775. // the required permissions, the error response is DryRunOperation. Otherwise,
  25776. // it is UnauthorizedOperation.
  25777. DryRun *bool `type:"boolean"`
  25778. }
  25779. // String returns the string representation
  25780. func (s AdvertiseByoipCidrInput) String() string {
  25781. return awsutil.Prettify(s)
  25782. }
  25783. // GoString returns the string representation
  25784. func (s AdvertiseByoipCidrInput) GoString() string {
  25785. return s.String()
  25786. }
  25787. // Validate inspects the fields of the type to determine if they are valid.
  25788. func (s *AdvertiseByoipCidrInput) Validate() error {
  25789. invalidParams := request.ErrInvalidParams{Context: "AdvertiseByoipCidrInput"}
  25790. if s.Cidr == nil {
  25791. invalidParams.Add(request.NewErrParamRequired("Cidr"))
  25792. }
  25793. if invalidParams.Len() > 0 {
  25794. return invalidParams
  25795. }
  25796. return nil
  25797. }
  25798. // SetCidr sets the Cidr field's value.
  25799. func (s *AdvertiseByoipCidrInput) SetCidr(v string) *AdvertiseByoipCidrInput {
  25800. s.Cidr = &v
  25801. return s
  25802. }
  25803. // SetDryRun sets the DryRun field's value.
  25804. func (s *AdvertiseByoipCidrInput) SetDryRun(v bool) *AdvertiseByoipCidrInput {
  25805. s.DryRun = &v
  25806. return s
  25807. }
  25808. type AdvertiseByoipCidrOutput struct {
  25809. _ struct{} `type:"structure"`
  25810. // Information about the address range.
  25811. ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"`
  25812. }
  25813. // String returns the string representation
  25814. func (s AdvertiseByoipCidrOutput) String() string {
  25815. return awsutil.Prettify(s)
  25816. }
  25817. // GoString returns the string representation
  25818. func (s AdvertiseByoipCidrOutput) GoString() string {
  25819. return s.String()
  25820. }
  25821. // SetByoipCidr sets the ByoipCidr field's value.
  25822. func (s *AdvertiseByoipCidrOutput) SetByoipCidr(v *ByoipCidr) *AdvertiseByoipCidrOutput {
  25823. s.ByoipCidr = v
  25824. return s
  25825. }
  25826. type AllocateAddressInput struct {
  25827. _ struct{} `type:"structure"`
  25828. // [EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address
  25829. // pool.
  25830. Address *string `type:"string"`
  25831. // Set to vpc to allocate the address for use with instances in a VPC.
  25832. //
  25833. // Default: The address is for use with instances in EC2-Classic.
  25834. Domain *string `type:"string" enum:"DomainType"`
  25835. // Checks whether you have the required permissions for the action, without
  25836. // actually making the request, and provides an error response. If you have
  25837. // the required permissions, the error response is DryRunOperation. Otherwise,
  25838. // it is UnauthorizedOperation.
  25839. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25840. // The ID of an address pool that you own. Use this parameter to let Amazon
  25841. // EC2 select an address from the address pool. To specify a specific address
  25842. // from the address pool, use the Address parameter instead.
  25843. PublicIpv4Pool *string `type:"string"`
  25844. }
  25845. // String returns the string representation
  25846. func (s AllocateAddressInput) String() string {
  25847. return awsutil.Prettify(s)
  25848. }
  25849. // GoString returns the string representation
  25850. func (s AllocateAddressInput) GoString() string {
  25851. return s.String()
  25852. }
  25853. // SetAddress sets the Address field's value.
  25854. func (s *AllocateAddressInput) SetAddress(v string) *AllocateAddressInput {
  25855. s.Address = &v
  25856. return s
  25857. }
  25858. // SetDomain sets the Domain field's value.
  25859. func (s *AllocateAddressInput) SetDomain(v string) *AllocateAddressInput {
  25860. s.Domain = &v
  25861. return s
  25862. }
  25863. // SetDryRun sets the DryRun field's value.
  25864. func (s *AllocateAddressInput) SetDryRun(v bool) *AllocateAddressInput {
  25865. s.DryRun = &v
  25866. return s
  25867. }
  25868. // SetPublicIpv4Pool sets the PublicIpv4Pool field's value.
  25869. func (s *AllocateAddressInput) SetPublicIpv4Pool(v string) *AllocateAddressInput {
  25870. s.PublicIpv4Pool = &v
  25871. return s
  25872. }
  25873. type AllocateAddressOutput struct {
  25874. _ struct{} `type:"structure"`
  25875. // [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic
  25876. // IP address for use with instances in a VPC.
  25877. AllocationId *string `locationName:"allocationId" type:"string"`
  25878. // Indicates whether this Elastic IP address is for use with instances in EC2-Classic
  25879. // (standard) or instances in a VPC (vpc).
  25880. Domain *string `locationName:"domain" type:"string" enum:"DomainType"`
  25881. // The Elastic IP address.
  25882. PublicIp *string `locationName:"publicIp" type:"string"`
  25883. // The ID of an address pool.
  25884. PublicIpv4Pool *string `locationName:"publicIpv4Pool" type:"string"`
  25885. }
  25886. // String returns the string representation
  25887. func (s AllocateAddressOutput) String() string {
  25888. return awsutil.Prettify(s)
  25889. }
  25890. // GoString returns the string representation
  25891. func (s AllocateAddressOutput) GoString() string {
  25892. return s.String()
  25893. }
  25894. // SetAllocationId sets the AllocationId field's value.
  25895. func (s *AllocateAddressOutput) SetAllocationId(v string) *AllocateAddressOutput {
  25896. s.AllocationId = &v
  25897. return s
  25898. }
  25899. // SetDomain sets the Domain field's value.
  25900. func (s *AllocateAddressOutput) SetDomain(v string) *AllocateAddressOutput {
  25901. s.Domain = &v
  25902. return s
  25903. }
  25904. // SetPublicIp sets the PublicIp field's value.
  25905. func (s *AllocateAddressOutput) SetPublicIp(v string) *AllocateAddressOutput {
  25906. s.PublicIp = &v
  25907. return s
  25908. }
  25909. // SetPublicIpv4Pool sets the PublicIpv4Pool field's value.
  25910. func (s *AllocateAddressOutput) SetPublicIpv4Pool(v string) *AllocateAddressOutput {
  25911. s.PublicIpv4Pool = &v
  25912. return s
  25913. }
  25914. type AllocateHostsInput struct {
  25915. _ struct{} `type:"structure"`
  25916. // This is enabled by default. This property allows instances to be automatically
  25917. // placed onto available Dedicated Hosts, when you are launching instances without
  25918. // specifying a host ID.
  25919. //
  25920. // Default: Enabled
  25921. AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"`
  25922. // The Availability Zone for the Dedicated Hosts.
  25923. //
  25924. // AvailabilityZone is a required field
  25925. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  25926. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  25927. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  25928. // in the Amazon Elastic Compute Cloud User Guide.
  25929. ClientToken *string `locationName:"clientToken" type:"string"`
  25930. // Specify the instance type for which to configure your Dedicated Hosts. When
  25931. // you specify the instance type, that is the only instance type that you can
  25932. // launch onto that host.
  25933. //
  25934. // InstanceType is a required field
  25935. InstanceType *string `locationName:"instanceType" type:"string" required:"true"`
  25936. // The number of Dedicated Hosts to allocate to your account with these parameters.
  25937. //
  25938. // Quantity is a required field
  25939. Quantity *int64 `locationName:"quantity" type:"integer" required:"true"`
  25940. // The tags to apply to the Dedicated Host during creation.
  25941. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  25942. }
  25943. // String returns the string representation
  25944. func (s AllocateHostsInput) String() string {
  25945. return awsutil.Prettify(s)
  25946. }
  25947. // GoString returns the string representation
  25948. func (s AllocateHostsInput) GoString() string {
  25949. return s.String()
  25950. }
  25951. // Validate inspects the fields of the type to determine if they are valid.
  25952. func (s *AllocateHostsInput) Validate() error {
  25953. invalidParams := request.ErrInvalidParams{Context: "AllocateHostsInput"}
  25954. if s.AvailabilityZone == nil {
  25955. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  25956. }
  25957. if s.InstanceType == nil {
  25958. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  25959. }
  25960. if s.Quantity == nil {
  25961. invalidParams.Add(request.NewErrParamRequired("Quantity"))
  25962. }
  25963. if invalidParams.Len() > 0 {
  25964. return invalidParams
  25965. }
  25966. return nil
  25967. }
  25968. // SetAutoPlacement sets the AutoPlacement field's value.
  25969. func (s *AllocateHostsInput) SetAutoPlacement(v string) *AllocateHostsInput {
  25970. s.AutoPlacement = &v
  25971. return s
  25972. }
  25973. // SetAvailabilityZone sets the AvailabilityZone field's value.
  25974. func (s *AllocateHostsInput) SetAvailabilityZone(v string) *AllocateHostsInput {
  25975. s.AvailabilityZone = &v
  25976. return s
  25977. }
  25978. // SetClientToken sets the ClientToken field's value.
  25979. func (s *AllocateHostsInput) SetClientToken(v string) *AllocateHostsInput {
  25980. s.ClientToken = &v
  25981. return s
  25982. }
  25983. // SetInstanceType sets the InstanceType field's value.
  25984. func (s *AllocateHostsInput) SetInstanceType(v string) *AllocateHostsInput {
  25985. s.InstanceType = &v
  25986. return s
  25987. }
  25988. // SetQuantity sets the Quantity field's value.
  25989. func (s *AllocateHostsInput) SetQuantity(v int64) *AllocateHostsInput {
  25990. s.Quantity = &v
  25991. return s
  25992. }
  25993. // SetTagSpecifications sets the TagSpecifications field's value.
  25994. func (s *AllocateHostsInput) SetTagSpecifications(v []*TagSpecification) *AllocateHostsInput {
  25995. s.TagSpecifications = v
  25996. return s
  25997. }
  25998. // Contains the output of AllocateHosts.
  25999. type AllocateHostsOutput struct {
  26000. _ struct{} `type:"structure"`
  26001. // The ID of the allocated Dedicated Host. This is used to launch an instance
  26002. // onto a specific host.
  26003. HostIds []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  26004. }
  26005. // String returns the string representation
  26006. func (s AllocateHostsOutput) String() string {
  26007. return awsutil.Prettify(s)
  26008. }
  26009. // GoString returns the string representation
  26010. func (s AllocateHostsOutput) GoString() string {
  26011. return s.String()
  26012. }
  26013. // SetHostIds sets the HostIds field's value.
  26014. func (s *AllocateHostsOutput) SetHostIds(v []*string) *AllocateHostsOutput {
  26015. s.HostIds = v
  26016. return s
  26017. }
  26018. // Describes a principal.
  26019. type AllowedPrincipal struct {
  26020. _ struct{} `type:"structure"`
  26021. // The Amazon Resource Name (ARN) of the principal.
  26022. Principal *string `locationName:"principal" type:"string"`
  26023. // The type of principal.
  26024. PrincipalType *string `locationName:"principalType" type:"string" enum:"PrincipalType"`
  26025. }
  26026. // String returns the string representation
  26027. func (s AllowedPrincipal) String() string {
  26028. return awsutil.Prettify(s)
  26029. }
  26030. // GoString returns the string representation
  26031. func (s AllowedPrincipal) GoString() string {
  26032. return s.String()
  26033. }
  26034. // SetPrincipal sets the Principal field's value.
  26035. func (s *AllowedPrincipal) SetPrincipal(v string) *AllowedPrincipal {
  26036. s.Principal = &v
  26037. return s
  26038. }
  26039. // SetPrincipalType sets the PrincipalType field's value.
  26040. func (s *AllowedPrincipal) SetPrincipalType(v string) *AllowedPrincipal {
  26041. s.PrincipalType = &v
  26042. return s
  26043. }
  26044. type ApplySecurityGroupsToClientVpnTargetNetworkInput struct {
  26045. _ struct{} `type:"structure"`
  26046. // The ID of the Client VPN endpoint.
  26047. //
  26048. // ClientVpnEndpointId is a required field
  26049. ClientVpnEndpointId *string `type:"string" required:"true"`
  26050. // Checks whether you have the required permissions for the action, without
  26051. // actually making the request, and provides an error response. If you have
  26052. // the required permissions, the error response is DryRunOperation. Otherwise,
  26053. // it is UnauthorizedOperation.
  26054. DryRun *bool `type:"boolean"`
  26055. // The IDs of the security groups to apply to the associated target network.
  26056. // Up to 5 security groups can be applied to an associated target network.
  26057. //
  26058. // SecurityGroupIds is a required field
  26059. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list" required:"true"`
  26060. // The ID of the VPC in which the associated target network is located.
  26061. //
  26062. // VpcId is a required field
  26063. VpcId *string `type:"string" required:"true"`
  26064. }
  26065. // String returns the string representation
  26066. func (s ApplySecurityGroupsToClientVpnTargetNetworkInput) String() string {
  26067. return awsutil.Prettify(s)
  26068. }
  26069. // GoString returns the string representation
  26070. func (s ApplySecurityGroupsToClientVpnTargetNetworkInput) GoString() string {
  26071. return s.String()
  26072. }
  26073. // Validate inspects the fields of the type to determine if they are valid.
  26074. func (s *ApplySecurityGroupsToClientVpnTargetNetworkInput) Validate() error {
  26075. invalidParams := request.ErrInvalidParams{Context: "ApplySecurityGroupsToClientVpnTargetNetworkInput"}
  26076. if s.ClientVpnEndpointId == nil {
  26077. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  26078. }
  26079. if s.SecurityGroupIds == nil {
  26080. invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds"))
  26081. }
  26082. if s.VpcId == nil {
  26083. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  26084. }
  26085. if invalidParams.Len() > 0 {
  26086. return invalidParams
  26087. }
  26088. return nil
  26089. }
  26090. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  26091. func (s *ApplySecurityGroupsToClientVpnTargetNetworkInput) SetClientVpnEndpointId(v string) *ApplySecurityGroupsToClientVpnTargetNetworkInput {
  26092. s.ClientVpnEndpointId = &v
  26093. return s
  26094. }
  26095. // SetDryRun sets the DryRun field's value.
  26096. func (s *ApplySecurityGroupsToClientVpnTargetNetworkInput) SetDryRun(v bool) *ApplySecurityGroupsToClientVpnTargetNetworkInput {
  26097. s.DryRun = &v
  26098. return s
  26099. }
  26100. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  26101. func (s *ApplySecurityGroupsToClientVpnTargetNetworkInput) SetSecurityGroupIds(v []*string) *ApplySecurityGroupsToClientVpnTargetNetworkInput {
  26102. s.SecurityGroupIds = v
  26103. return s
  26104. }
  26105. // SetVpcId sets the VpcId field's value.
  26106. func (s *ApplySecurityGroupsToClientVpnTargetNetworkInput) SetVpcId(v string) *ApplySecurityGroupsToClientVpnTargetNetworkInput {
  26107. s.VpcId = &v
  26108. return s
  26109. }
  26110. type ApplySecurityGroupsToClientVpnTargetNetworkOutput struct {
  26111. _ struct{} `type:"structure"`
  26112. // The IDs of the applied security groups.
  26113. SecurityGroupIds []*string `locationName:"securityGroupIds" locationNameList:"item" type:"list"`
  26114. }
  26115. // String returns the string representation
  26116. func (s ApplySecurityGroupsToClientVpnTargetNetworkOutput) String() string {
  26117. return awsutil.Prettify(s)
  26118. }
  26119. // GoString returns the string representation
  26120. func (s ApplySecurityGroupsToClientVpnTargetNetworkOutput) GoString() string {
  26121. return s.String()
  26122. }
  26123. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  26124. func (s *ApplySecurityGroupsToClientVpnTargetNetworkOutput) SetSecurityGroupIds(v []*string) *ApplySecurityGroupsToClientVpnTargetNetworkOutput {
  26125. s.SecurityGroupIds = v
  26126. return s
  26127. }
  26128. type AssignIpv6AddressesInput struct {
  26129. _ struct{} `type:"structure"`
  26130. // The number of IPv6 addresses to assign to the network interface. Amazon EC2
  26131. // automatically selects the IPv6 addresses from the subnet range. You can't
  26132. // use this option if specifying specific IPv6 addresses.
  26133. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  26134. // One or more specific IPv6 addresses to be assigned to the network interface.
  26135. // You can't use this option if you're specifying a number of IPv6 addresses.
  26136. Ipv6Addresses []*string `locationName:"ipv6Addresses" locationNameList:"item" type:"list"`
  26137. // The ID of the network interface.
  26138. //
  26139. // NetworkInterfaceId is a required field
  26140. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  26141. }
  26142. // String returns the string representation
  26143. func (s AssignIpv6AddressesInput) String() string {
  26144. return awsutil.Prettify(s)
  26145. }
  26146. // GoString returns the string representation
  26147. func (s AssignIpv6AddressesInput) GoString() string {
  26148. return s.String()
  26149. }
  26150. // Validate inspects the fields of the type to determine if they are valid.
  26151. func (s *AssignIpv6AddressesInput) Validate() error {
  26152. invalidParams := request.ErrInvalidParams{Context: "AssignIpv6AddressesInput"}
  26153. if s.NetworkInterfaceId == nil {
  26154. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  26155. }
  26156. if invalidParams.Len() > 0 {
  26157. return invalidParams
  26158. }
  26159. return nil
  26160. }
  26161. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  26162. func (s *AssignIpv6AddressesInput) SetIpv6AddressCount(v int64) *AssignIpv6AddressesInput {
  26163. s.Ipv6AddressCount = &v
  26164. return s
  26165. }
  26166. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  26167. func (s *AssignIpv6AddressesInput) SetIpv6Addresses(v []*string) *AssignIpv6AddressesInput {
  26168. s.Ipv6Addresses = v
  26169. return s
  26170. }
  26171. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  26172. func (s *AssignIpv6AddressesInput) SetNetworkInterfaceId(v string) *AssignIpv6AddressesInput {
  26173. s.NetworkInterfaceId = &v
  26174. return s
  26175. }
  26176. type AssignIpv6AddressesOutput struct {
  26177. _ struct{} `type:"structure"`
  26178. // The IPv6 addresses assigned to the network interface.
  26179. AssignedIpv6Addresses []*string `locationName:"assignedIpv6Addresses" locationNameList:"item" type:"list"`
  26180. // The ID of the network interface.
  26181. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  26182. }
  26183. // String returns the string representation
  26184. func (s AssignIpv6AddressesOutput) String() string {
  26185. return awsutil.Prettify(s)
  26186. }
  26187. // GoString returns the string representation
  26188. func (s AssignIpv6AddressesOutput) GoString() string {
  26189. return s.String()
  26190. }
  26191. // SetAssignedIpv6Addresses sets the AssignedIpv6Addresses field's value.
  26192. func (s *AssignIpv6AddressesOutput) SetAssignedIpv6Addresses(v []*string) *AssignIpv6AddressesOutput {
  26193. s.AssignedIpv6Addresses = v
  26194. return s
  26195. }
  26196. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  26197. func (s *AssignIpv6AddressesOutput) SetNetworkInterfaceId(v string) *AssignIpv6AddressesOutput {
  26198. s.NetworkInterfaceId = &v
  26199. return s
  26200. }
  26201. // Contains the parameters for AssignPrivateIpAddresses.
  26202. type AssignPrivateIpAddressesInput struct {
  26203. _ struct{} `type:"structure"`
  26204. // Indicates whether to allow an IP address that is already assigned to another
  26205. // network interface or instance to be reassigned to the specified network interface.
  26206. AllowReassignment *bool `locationName:"allowReassignment" type:"boolean"`
  26207. // The ID of the network interface.
  26208. //
  26209. // NetworkInterfaceId is a required field
  26210. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  26211. // One or more IP addresses to be assigned as a secondary private IP address
  26212. // to the network interface. You can't specify this parameter when also specifying
  26213. // a number of secondary IP addresses.
  26214. //
  26215. // If you don't specify an IP address, Amazon EC2 automatically selects an IP
  26216. // address within the subnet range.
  26217. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list"`
  26218. // The number of secondary IP addresses to assign to the network interface.
  26219. // You can't specify this parameter when also specifying private IP addresses.
  26220. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  26221. }
  26222. // String returns the string representation
  26223. func (s AssignPrivateIpAddressesInput) String() string {
  26224. return awsutil.Prettify(s)
  26225. }
  26226. // GoString returns the string representation
  26227. func (s AssignPrivateIpAddressesInput) GoString() string {
  26228. return s.String()
  26229. }
  26230. // Validate inspects the fields of the type to determine if they are valid.
  26231. func (s *AssignPrivateIpAddressesInput) Validate() error {
  26232. invalidParams := request.ErrInvalidParams{Context: "AssignPrivateIpAddressesInput"}
  26233. if s.NetworkInterfaceId == nil {
  26234. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  26235. }
  26236. if invalidParams.Len() > 0 {
  26237. return invalidParams
  26238. }
  26239. return nil
  26240. }
  26241. // SetAllowReassignment sets the AllowReassignment field's value.
  26242. func (s *AssignPrivateIpAddressesInput) SetAllowReassignment(v bool) *AssignPrivateIpAddressesInput {
  26243. s.AllowReassignment = &v
  26244. return s
  26245. }
  26246. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  26247. func (s *AssignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *AssignPrivateIpAddressesInput {
  26248. s.NetworkInterfaceId = &v
  26249. return s
  26250. }
  26251. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  26252. func (s *AssignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *AssignPrivateIpAddressesInput {
  26253. s.PrivateIpAddresses = v
  26254. return s
  26255. }
  26256. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  26257. func (s *AssignPrivateIpAddressesInput) SetSecondaryPrivateIpAddressCount(v int64) *AssignPrivateIpAddressesInput {
  26258. s.SecondaryPrivateIpAddressCount = &v
  26259. return s
  26260. }
  26261. type AssignPrivateIpAddressesOutput struct {
  26262. _ struct{} `type:"structure"`
  26263. }
  26264. // String returns the string representation
  26265. func (s AssignPrivateIpAddressesOutput) String() string {
  26266. return awsutil.Prettify(s)
  26267. }
  26268. // GoString returns the string representation
  26269. func (s AssignPrivateIpAddressesOutput) GoString() string {
  26270. return s.String()
  26271. }
  26272. type AssociateAddressInput struct {
  26273. _ struct{} `type:"structure"`
  26274. // [EC2-VPC] The allocation ID. This is required for EC2-VPC.
  26275. AllocationId *string `type:"string"`
  26276. // [EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic
  26277. // IP address that is already associated with an instance or network interface
  26278. // to be reassociated with the specified instance or network interface. Otherwise,
  26279. // the operation fails. In a VPC in an EC2-VPC-only account, reassociation is
  26280. // automatic, therefore you can specify false to ensure the operation fails
  26281. // if the Elastic IP address is already associated with another resource.
  26282. AllowReassociation *bool `locationName:"allowReassociation" type:"boolean"`
  26283. // Checks whether you have the required permissions for the action, without
  26284. // actually making the request, and provides an error response. If you have
  26285. // the required permissions, the error response is DryRunOperation. Otherwise,
  26286. // it is UnauthorizedOperation.
  26287. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26288. // The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you
  26289. // can specify either the instance ID or the network interface ID, but not both.
  26290. // The operation fails if you specify an instance ID unless exactly one network
  26291. // interface is attached.
  26292. InstanceId *string `type:"string"`
  26293. // [EC2-VPC] The ID of the network interface. If the instance has more than
  26294. // one network interface, you must specify a network interface ID.
  26295. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  26296. // [EC2-VPC] The primary or secondary private IP address to associate with the
  26297. // Elastic IP address. If no private IP address is specified, the Elastic IP
  26298. // address is associated with the primary private IP address.
  26299. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  26300. // The Elastic IP address. This is required for EC2-Classic.
  26301. PublicIp *string `type:"string"`
  26302. }
  26303. // String returns the string representation
  26304. func (s AssociateAddressInput) String() string {
  26305. return awsutil.Prettify(s)
  26306. }
  26307. // GoString returns the string representation
  26308. func (s AssociateAddressInput) GoString() string {
  26309. return s.String()
  26310. }
  26311. // SetAllocationId sets the AllocationId field's value.
  26312. func (s *AssociateAddressInput) SetAllocationId(v string) *AssociateAddressInput {
  26313. s.AllocationId = &v
  26314. return s
  26315. }
  26316. // SetAllowReassociation sets the AllowReassociation field's value.
  26317. func (s *AssociateAddressInput) SetAllowReassociation(v bool) *AssociateAddressInput {
  26318. s.AllowReassociation = &v
  26319. return s
  26320. }
  26321. // SetDryRun sets the DryRun field's value.
  26322. func (s *AssociateAddressInput) SetDryRun(v bool) *AssociateAddressInput {
  26323. s.DryRun = &v
  26324. return s
  26325. }
  26326. // SetInstanceId sets the InstanceId field's value.
  26327. func (s *AssociateAddressInput) SetInstanceId(v string) *AssociateAddressInput {
  26328. s.InstanceId = &v
  26329. return s
  26330. }
  26331. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  26332. func (s *AssociateAddressInput) SetNetworkInterfaceId(v string) *AssociateAddressInput {
  26333. s.NetworkInterfaceId = &v
  26334. return s
  26335. }
  26336. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  26337. func (s *AssociateAddressInput) SetPrivateIpAddress(v string) *AssociateAddressInput {
  26338. s.PrivateIpAddress = &v
  26339. return s
  26340. }
  26341. // SetPublicIp sets the PublicIp field's value.
  26342. func (s *AssociateAddressInput) SetPublicIp(v string) *AssociateAddressInput {
  26343. s.PublicIp = &v
  26344. return s
  26345. }
  26346. type AssociateAddressOutput struct {
  26347. _ struct{} `type:"structure"`
  26348. // [EC2-VPC] The ID that represents the association of the Elastic IP address
  26349. // with an instance.
  26350. AssociationId *string `locationName:"associationId" type:"string"`
  26351. }
  26352. // String returns the string representation
  26353. func (s AssociateAddressOutput) String() string {
  26354. return awsutil.Prettify(s)
  26355. }
  26356. // GoString returns the string representation
  26357. func (s AssociateAddressOutput) GoString() string {
  26358. return s.String()
  26359. }
  26360. // SetAssociationId sets the AssociationId field's value.
  26361. func (s *AssociateAddressOutput) SetAssociationId(v string) *AssociateAddressOutput {
  26362. s.AssociationId = &v
  26363. return s
  26364. }
  26365. type AssociateClientVpnTargetNetworkInput struct {
  26366. _ struct{} `type:"structure"`
  26367. // The ID of the Client VPN endpoint.
  26368. //
  26369. // ClientVpnEndpointId is a required field
  26370. ClientVpnEndpointId *string `type:"string" required:"true"`
  26371. // Checks whether you have the required permissions for the action, without
  26372. // actually making the request, and provides an error response. If you have
  26373. // the required permissions, the error response is DryRunOperation. Otherwise,
  26374. // it is UnauthorizedOperation.
  26375. DryRun *bool `type:"boolean"`
  26376. // The ID of the subnet to associate with the Client VPN endpoint.
  26377. //
  26378. // SubnetId is a required field
  26379. SubnetId *string `type:"string" required:"true"`
  26380. }
  26381. // String returns the string representation
  26382. func (s AssociateClientVpnTargetNetworkInput) String() string {
  26383. return awsutil.Prettify(s)
  26384. }
  26385. // GoString returns the string representation
  26386. func (s AssociateClientVpnTargetNetworkInput) GoString() string {
  26387. return s.String()
  26388. }
  26389. // Validate inspects the fields of the type to determine if they are valid.
  26390. func (s *AssociateClientVpnTargetNetworkInput) Validate() error {
  26391. invalidParams := request.ErrInvalidParams{Context: "AssociateClientVpnTargetNetworkInput"}
  26392. if s.ClientVpnEndpointId == nil {
  26393. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  26394. }
  26395. if s.SubnetId == nil {
  26396. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  26397. }
  26398. if invalidParams.Len() > 0 {
  26399. return invalidParams
  26400. }
  26401. return nil
  26402. }
  26403. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  26404. func (s *AssociateClientVpnTargetNetworkInput) SetClientVpnEndpointId(v string) *AssociateClientVpnTargetNetworkInput {
  26405. s.ClientVpnEndpointId = &v
  26406. return s
  26407. }
  26408. // SetDryRun sets the DryRun field's value.
  26409. func (s *AssociateClientVpnTargetNetworkInput) SetDryRun(v bool) *AssociateClientVpnTargetNetworkInput {
  26410. s.DryRun = &v
  26411. return s
  26412. }
  26413. // SetSubnetId sets the SubnetId field's value.
  26414. func (s *AssociateClientVpnTargetNetworkInput) SetSubnetId(v string) *AssociateClientVpnTargetNetworkInput {
  26415. s.SubnetId = &v
  26416. return s
  26417. }
  26418. type AssociateClientVpnTargetNetworkOutput struct {
  26419. _ struct{} `type:"structure"`
  26420. // The unique ID of the target network association.
  26421. AssociationId *string `locationName:"associationId" type:"string"`
  26422. // The current state of the target network association.
  26423. Status *AssociationStatus `locationName:"status" type:"structure"`
  26424. }
  26425. // String returns the string representation
  26426. func (s AssociateClientVpnTargetNetworkOutput) String() string {
  26427. return awsutil.Prettify(s)
  26428. }
  26429. // GoString returns the string representation
  26430. func (s AssociateClientVpnTargetNetworkOutput) GoString() string {
  26431. return s.String()
  26432. }
  26433. // SetAssociationId sets the AssociationId field's value.
  26434. func (s *AssociateClientVpnTargetNetworkOutput) SetAssociationId(v string) *AssociateClientVpnTargetNetworkOutput {
  26435. s.AssociationId = &v
  26436. return s
  26437. }
  26438. // SetStatus sets the Status field's value.
  26439. func (s *AssociateClientVpnTargetNetworkOutput) SetStatus(v *AssociationStatus) *AssociateClientVpnTargetNetworkOutput {
  26440. s.Status = v
  26441. return s
  26442. }
  26443. type AssociateDhcpOptionsInput struct {
  26444. _ struct{} `type:"structure"`
  26445. // The ID of the DHCP options set, or default to associate no DHCP options with
  26446. // the VPC.
  26447. //
  26448. // DhcpOptionsId is a required field
  26449. DhcpOptionsId *string `type:"string" required:"true"`
  26450. // Checks whether you have the required permissions for the action, without
  26451. // actually making the request, and provides an error response. If you have
  26452. // the required permissions, the error response is DryRunOperation. Otherwise,
  26453. // it is UnauthorizedOperation.
  26454. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26455. // The ID of the VPC.
  26456. //
  26457. // VpcId is a required field
  26458. VpcId *string `type:"string" required:"true"`
  26459. }
  26460. // String returns the string representation
  26461. func (s AssociateDhcpOptionsInput) String() string {
  26462. return awsutil.Prettify(s)
  26463. }
  26464. // GoString returns the string representation
  26465. func (s AssociateDhcpOptionsInput) GoString() string {
  26466. return s.String()
  26467. }
  26468. // Validate inspects the fields of the type to determine if they are valid.
  26469. func (s *AssociateDhcpOptionsInput) Validate() error {
  26470. invalidParams := request.ErrInvalidParams{Context: "AssociateDhcpOptionsInput"}
  26471. if s.DhcpOptionsId == nil {
  26472. invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId"))
  26473. }
  26474. if s.VpcId == nil {
  26475. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  26476. }
  26477. if invalidParams.Len() > 0 {
  26478. return invalidParams
  26479. }
  26480. return nil
  26481. }
  26482. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  26483. func (s *AssociateDhcpOptionsInput) SetDhcpOptionsId(v string) *AssociateDhcpOptionsInput {
  26484. s.DhcpOptionsId = &v
  26485. return s
  26486. }
  26487. // SetDryRun sets the DryRun field's value.
  26488. func (s *AssociateDhcpOptionsInput) SetDryRun(v bool) *AssociateDhcpOptionsInput {
  26489. s.DryRun = &v
  26490. return s
  26491. }
  26492. // SetVpcId sets the VpcId field's value.
  26493. func (s *AssociateDhcpOptionsInput) SetVpcId(v string) *AssociateDhcpOptionsInput {
  26494. s.VpcId = &v
  26495. return s
  26496. }
  26497. type AssociateDhcpOptionsOutput struct {
  26498. _ struct{} `type:"structure"`
  26499. }
  26500. // String returns the string representation
  26501. func (s AssociateDhcpOptionsOutput) String() string {
  26502. return awsutil.Prettify(s)
  26503. }
  26504. // GoString returns the string representation
  26505. func (s AssociateDhcpOptionsOutput) GoString() string {
  26506. return s.String()
  26507. }
  26508. type AssociateIamInstanceProfileInput struct {
  26509. _ struct{} `type:"structure"`
  26510. // The IAM instance profile.
  26511. //
  26512. // IamInstanceProfile is a required field
  26513. IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"`
  26514. // The ID of the instance.
  26515. //
  26516. // InstanceId is a required field
  26517. InstanceId *string `type:"string" required:"true"`
  26518. }
  26519. // String returns the string representation
  26520. func (s AssociateIamInstanceProfileInput) String() string {
  26521. return awsutil.Prettify(s)
  26522. }
  26523. // GoString returns the string representation
  26524. func (s AssociateIamInstanceProfileInput) GoString() string {
  26525. return s.String()
  26526. }
  26527. // Validate inspects the fields of the type to determine if they are valid.
  26528. func (s *AssociateIamInstanceProfileInput) Validate() error {
  26529. invalidParams := request.ErrInvalidParams{Context: "AssociateIamInstanceProfileInput"}
  26530. if s.IamInstanceProfile == nil {
  26531. invalidParams.Add(request.NewErrParamRequired("IamInstanceProfile"))
  26532. }
  26533. if s.InstanceId == nil {
  26534. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  26535. }
  26536. if invalidParams.Len() > 0 {
  26537. return invalidParams
  26538. }
  26539. return nil
  26540. }
  26541. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  26542. func (s *AssociateIamInstanceProfileInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *AssociateIamInstanceProfileInput {
  26543. s.IamInstanceProfile = v
  26544. return s
  26545. }
  26546. // SetInstanceId sets the InstanceId field's value.
  26547. func (s *AssociateIamInstanceProfileInput) SetInstanceId(v string) *AssociateIamInstanceProfileInput {
  26548. s.InstanceId = &v
  26549. return s
  26550. }
  26551. type AssociateIamInstanceProfileOutput struct {
  26552. _ struct{} `type:"structure"`
  26553. // Information about the IAM instance profile association.
  26554. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  26555. }
  26556. // String returns the string representation
  26557. func (s AssociateIamInstanceProfileOutput) String() string {
  26558. return awsutil.Prettify(s)
  26559. }
  26560. // GoString returns the string representation
  26561. func (s AssociateIamInstanceProfileOutput) GoString() string {
  26562. return s.String()
  26563. }
  26564. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  26565. func (s *AssociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *AssociateIamInstanceProfileOutput {
  26566. s.IamInstanceProfileAssociation = v
  26567. return s
  26568. }
  26569. type AssociateRouteTableInput struct {
  26570. _ struct{} `type:"structure"`
  26571. // Checks whether you have the required permissions for the action, without
  26572. // actually making the request, and provides an error response. If you have
  26573. // the required permissions, the error response is DryRunOperation. Otherwise,
  26574. // it is UnauthorizedOperation.
  26575. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26576. // The ID of the route table.
  26577. //
  26578. // RouteTableId is a required field
  26579. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  26580. // The ID of the subnet.
  26581. //
  26582. // SubnetId is a required field
  26583. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  26584. }
  26585. // String returns the string representation
  26586. func (s AssociateRouteTableInput) String() string {
  26587. return awsutil.Prettify(s)
  26588. }
  26589. // GoString returns the string representation
  26590. func (s AssociateRouteTableInput) GoString() string {
  26591. return s.String()
  26592. }
  26593. // Validate inspects the fields of the type to determine if they are valid.
  26594. func (s *AssociateRouteTableInput) Validate() error {
  26595. invalidParams := request.ErrInvalidParams{Context: "AssociateRouteTableInput"}
  26596. if s.RouteTableId == nil {
  26597. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  26598. }
  26599. if s.SubnetId == nil {
  26600. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  26601. }
  26602. if invalidParams.Len() > 0 {
  26603. return invalidParams
  26604. }
  26605. return nil
  26606. }
  26607. // SetDryRun sets the DryRun field's value.
  26608. func (s *AssociateRouteTableInput) SetDryRun(v bool) *AssociateRouteTableInput {
  26609. s.DryRun = &v
  26610. return s
  26611. }
  26612. // SetRouteTableId sets the RouteTableId field's value.
  26613. func (s *AssociateRouteTableInput) SetRouteTableId(v string) *AssociateRouteTableInput {
  26614. s.RouteTableId = &v
  26615. return s
  26616. }
  26617. // SetSubnetId sets the SubnetId field's value.
  26618. func (s *AssociateRouteTableInput) SetSubnetId(v string) *AssociateRouteTableInput {
  26619. s.SubnetId = &v
  26620. return s
  26621. }
  26622. type AssociateRouteTableOutput struct {
  26623. _ struct{} `type:"structure"`
  26624. // The route table association ID. This ID is required for disassociating the
  26625. // route table.
  26626. AssociationId *string `locationName:"associationId" type:"string"`
  26627. }
  26628. // String returns the string representation
  26629. func (s AssociateRouteTableOutput) String() string {
  26630. return awsutil.Prettify(s)
  26631. }
  26632. // GoString returns the string representation
  26633. func (s AssociateRouteTableOutput) GoString() string {
  26634. return s.String()
  26635. }
  26636. // SetAssociationId sets the AssociationId field's value.
  26637. func (s *AssociateRouteTableOutput) SetAssociationId(v string) *AssociateRouteTableOutput {
  26638. s.AssociationId = &v
  26639. return s
  26640. }
  26641. type AssociateSubnetCidrBlockInput struct {
  26642. _ struct{} `type:"structure"`
  26643. // The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix length.
  26644. //
  26645. // Ipv6CidrBlock is a required field
  26646. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string" required:"true"`
  26647. // The ID of your subnet.
  26648. //
  26649. // SubnetId is a required field
  26650. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  26651. }
  26652. // String returns the string representation
  26653. func (s AssociateSubnetCidrBlockInput) String() string {
  26654. return awsutil.Prettify(s)
  26655. }
  26656. // GoString returns the string representation
  26657. func (s AssociateSubnetCidrBlockInput) GoString() string {
  26658. return s.String()
  26659. }
  26660. // Validate inspects the fields of the type to determine if they are valid.
  26661. func (s *AssociateSubnetCidrBlockInput) Validate() error {
  26662. invalidParams := request.ErrInvalidParams{Context: "AssociateSubnetCidrBlockInput"}
  26663. if s.Ipv6CidrBlock == nil {
  26664. invalidParams.Add(request.NewErrParamRequired("Ipv6CidrBlock"))
  26665. }
  26666. if s.SubnetId == nil {
  26667. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  26668. }
  26669. if invalidParams.Len() > 0 {
  26670. return invalidParams
  26671. }
  26672. return nil
  26673. }
  26674. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  26675. func (s *AssociateSubnetCidrBlockInput) SetIpv6CidrBlock(v string) *AssociateSubnetCidrBlockInput {
  26676. s.Ipv6CidrBlock = &v
  26677. return s
  26678. }
  26679. // SetSubnetId sets the SubnetId field's value.
  26680. func (s *AssociateSubnetCidrBlockInput) SetSubnetId(v string) *AssociateSubnetCidrBlockInput {
  26681. s.SubnetId = &v
  26682. return s
  26683. }
  26684. type AssociateSubnetCidrBlockOutput struct {
  26685. _ struct{} `type:"structure"`
  26686. // Information about the IPv6 CIDR block association.
  26687. Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  26688. // The ID of the subnet.
  26689. SubnetId *string `locationName:"subnetId" type:"string"`
  26690. }
  26691. // String returns the string representation
  26692. func (s AssociateSubnetCidrBlockOutput) String() string {
  26693. return awsutil.Prettify(s)
  26694. }
  26695. // GoString returns the string representation
  26696. func (s AssociateSubnetCidrBlockOutput) GoString() string {
  26697. return s.String()
  26698. }
  26699. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  26700. func (s *AssociateSubnetCidrBlockOutput) SetIpv6CidrBlockAssociation(v *SubnetIpv6CidrBlockAssociation) *AssociateSubnetCidrBlockOutput {
  26701. s.Ipv6CidrBlockAssociation = v
  26702. return s
  26703. }
  26704. // SetSubnetId sets the SubnetId field's value.
  26705. func (s *AssociateSubnetCidrBlockOutput) SetSubnetId(v string) *AssociateSubnetCidrBlockOutput {
  26706. s.SubnetId = &v
  26707. return s
  26708. }
  26709. type AssociateTransitGatewayRouteTableInput struct {
  26710. _ struct{} `type:"structure"`
  26711. // Checks whether you have the required permissions for the action, without
  26712. // actually making the request, and provides an error response. If you have
  26713. // the required permissions, the error response is DryRunOperation. Otherwise,
  26714. // it is UnauthorizedOperation.
  26715. DryRun *bool `type:"boolean"`
  26716. // The ID of the attachment.
  26717. //
  26718. // TransitGatewayAttachmentId is a required field
  26719. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  26720. // The ID of the transit gateway route table.
  26721. //
  26722. // TransitGatewayRouteTableId is a required field
  26723. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  26724. }
  26725. // String returns the string representation
  26726. func (s AssociateTransitGatewayRouteTableInput) String() string {
  26727. return awsutil.Prettify(s)
  26728. }
  26729. // GoString returns the string representation
  26730. func (s AssociateTransitGatewayRouteTableInput) GoString() string {
  26731. return s.String()
  26732. }
  26733. // Validate inspects the fields of the type to determine if they are valid.
  26734. func (s *AssociateTransitGatewayRouteTableInput) Validate() error {
  26735. invalidParams := request.ErrInvalidParams{Context: "AssociateTransitGatewayRouteTableInput"}
  26736. if s.TransitGatewayAttachmentId == nil {
  26737. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  26738. }
  26739. if s.TransitGatewayRouteTableId == nil {
  26740. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  26741. }
  26742. if invalidParams.Len() > 0 {
  26743. return invalidParams
  26744. }
  26745. return nil
  26746. }
  26747. // SetDryRun sets the DryRun field's value.
  26748. func (s *AssociateTransitGatewayRouteTableInput) SetDryRun(v bool) *AssociateTransitGatewayRouteTableInput {
  26749. s.DryRun = &v
  26750. return s
  26751. }
  26752. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  26753. func (s *AssociateTransitGatewayRouteTableInput) SetTransitGatewayAttachmentId(v string) *AssociateTransitGatewayRouteTableInput {
  26754. s.TransitGatewayAttachmentId = &v
  26755. return s
  26756. }
  26757. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  26758. func (s *AssociateTransitGatewayRouteTableInput) SetTransitGatewayRouteTableId(v string) *AssociateTransitGatewayRouteTableInput {
  26759. s.TransitGatewayRouteTableId = &v
  26760. return s
  26761. }
  26762. type AssociateTransitGatewayRouteTableOutput struct {
  26763. _ struct{} `type:"structure"`
  26764. // The ID of the association.
  26765. Association *TransitGatewayAssociation `locationName:"association" type:"structure"`
  26766. }
  26767. // String returns the string representation
  26768. func (s AssociateTransitGatewayRouteTableOutput) String() string {
  26769. return awsutil.Prettify(s)
  26770. }
  26771. // GoString returns the string representation
  26772. func (s AssociateTransitGatewayRouteTableOutput) GoString() string {
  26773. return s.String()
  26774. }
  26775. // SetAssociation sets the Association field's value.
  26776. func (s *AssociateTransitGatewayRouteTableOutput) SetAssociation(v *TransitGatewayAssociation) *AssociateTransitGatewayRouteTableOutput {
  26777. s.Association = v
  26778. return s
  26779. }
  26780. type AssociateVpcCidrBlockInput struct {
  26781. _ struct{} `type:"structure"`
  26782. // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for
  26783. // the VPC. You cannot specify the range of IPv6 addresses, or the size of the
  26784. // CIDR block.
  26785. AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"`
  26786. // An IPv4 CIDR block to associate with the VPC.
  26787. CidrBlock *string `type:"string"`
  26788. // The ID of the VPC.
  26789. //
  26790. // VpcId is a required field
  26791. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  26792. }
  26793. // String returns the string representation
  26794. func (s AssociateVpcCidrBlockInput) String() string {
  26795. return awsutil.Prettify(s)
  26796. }
  26797. // GoString returns the string representation
  26798. func (s AssociateVpcCidrBlockInput) GoString() string {
  26799. return s.String()
  26800. }
  26801. // Validate inspects the fields of the type to determine if they are valid.
  26802. func (s *AssociateVpcCidrBlockInput) Validate() error {
  26803. invalidParams := request.ErrInvalidParams{Context: "AssociateVpcCidrBlockInput"}
  26804. if s.VpcId == nil {
  26805. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  26806. }
  26807. if invalidParams.Len() > 0 {
  26808. return invalidParams
  26809. }
  26810. return nil
  26811. }
  26812. // SetAmazonProvidedIpv6CidrBlock sets the AmazonProvidedIpv6CidrBlock field's value.
  26813. func (s *AssociateVpcCidrBlockInput) SetAmazonProvidedIpv6CidrBlock(v bool) *AssociateVpcCidrBlockInput {
  26814. s.AmazonProvidedIpv6CidrBlock = &v
  26815. return s
  26816. }
  26817. // SetCidrBlock sets the CidrBlock field's value.
  26818. func (s *AssociateVpcCidrBlockInput) SetCidrBlock(v string) *AssociateVpcCidrBlockInput {
  26819. s.CidrBlock = &v
  26820. return s
  26821. }
  26822. // SetVpcId sets the VpcId field's value.
  26823. func (s *AssociateVpcCidrBlockInput) SetVpcId(v string) *AssociateVpcCidrBlockInput {
  26824. s.VpcId = &v
  26825. return s
  26826. }
  26827. type AssociateVpcCidrBlockOutput struct {
  26828. _ struct{} `type:"structure"`
  26829. // Information about the IPv4 CIDR block association.
  26830. CidrBlockAssociation *VpcCidrBlockAssociation `locationName:"cidrBlockAssociation" type:"structure"`
  26831. // Information about the IPv6 CIDR block association.
  26832. Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  26833. // The ID of the VPC.
  26834. VpcId *string `locationName:"vpcId" type:"string"`
  26835. }
  26836. // String returns the string representation
  26837. func (s AssociateVpcCidrBlockOutput) String() string {
  26838. return awsutil.Prettify(s)
  26839. }
  26840. // GoString returns the string representation
  26841. func (s AssociateVpcCidrBlockOutput) GoString() string {
  26842. return s.String()
  26843. }
  26844. // SetCidrBlockAssociation sets the CidrBlockAssociation field's value.
  26845. func (s *AssociateVpcCidrBlockOutput) SetCidrBlockAssociation(v *VpcCidrBlockAssociation) *AssociateVpcCidrBlockOutput {
  26846. s.CidrBlockAssociation = v
  26847. return s
  26848. }
  26849. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  26850. func (s *AssociateVpcCidrBlockOutput) SetIpv6CidrBlockAssociation(v *VpcIpv6CidrBlockAssociation) *AssociateVpcCidrBlockOutput {
  26851. s.Ipv6CidrBlockAssociation = v
  26852. return s
  26853. }
  26854. // SetVpcId sets the VpcId field's value.
  26855. func (s *AssociateVpcCidrBlockOutput) SetVpcId(v string) *AssociateVpcCidrBlockOutput {
  26856. s.VpcId = &v
  26857. return s
  26858. }
  26859. // Describes a target network that is associated with a Client VPN endpoint.
  26860. // A target network is a subnet in a VPC.
  26861. type AssociatedTargetNetwork struct {
  26862. _ struct{} `type:"structure"`
  26863. // The ID of the subnet.
  26864. NetworkId *string `locationName:"networkId" type:"string"`
  26865. // The target network type.
  26866. NetworkType *string `locationName:"networkType" type:"string" enum:"AssociatedNetworkType"`
  26867. }
  26868. // String returns the string representation
  26869. func (s AssociatedTargetNetwork) String() string {
  26870. return awsutil.Prettify(s)
  26871. }
  26872. // GoString returns the string representation
  26873. func (s AssociatedTargetNetwork) GoString() string {
  26874. return s.String()
  26875. }
  26876. // SetNetworkId sets the NetworkId field's value.
  26877. func (s *AssociatedTargetNetwork) SetNetworkId(v string) *AssociatedTargetNetwork {
  26878. s.NetworkId = &v
  26879. return s
  26880. }
  26881. // SetNetworkType sets the NetworkType field's value.
  26882. func (s *AssociatedTargetNetwork) SetNetworkType(v string) *AssociatedTargetNetwork {
  26883. s.NetworkType = &v
  26884. return s
  26885. }
  26886. // Describes the state of a target network association.
  26887. type AssociationStatus struct {
  26888. _ struct{} `type:"structure"`
  26889. // The state of the target network association.
  26890. Code *string `locationName:"code" type:"string" enum:"AssociationStatusCode"`
  26891. // A message about the status of the target network association, if applicable.
  26892. Message *string `locationName:"message" type:"string"`
  26893. }
  26894. // String returns the string representation
  26895. func (s AssociationStatus) String() string {
  26896. return awsutil.Prettify(s)
  26897. }
  26898. // GoString returns the string representation
  26899. func (s AssociationStatus) GoString() string {
  26900. return s.String()
  26901. }
  26902. // SetCode sets the Code field's value.
  26903. func (s *AssociationStatus) SetCode(v string) *AssociationStatus {
  26904. s.Code = &v
  26905. return s
  26906. }
  26907. // SetMessage sets the Message field's value.
  26908. func (s *AssociationStatus) SetMessage(v string) *AssociationStatus {
  26909. s.Message = &v
  26910. return s
  26911. }
  26912. type AttachClassicLinkVpcInput struct {
  26913. _ struct{} `type:"structure"`
  26914. // Checks whether you have the required permissions for the action, without
  26915. // actually making the request, and provides an error response. If you have
  26916. // the required permissions, the error response is DryRunOperation. Otherwise,
  26917. // it is UnauthorizedOperation.
  26918. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26919. // The ID of one or more of the VPC's security groups. You cannot specify security
  26920. // groups from a different VPC.
  26921. //
  26922. // Groups is a required field
  26923. Groups []*string `locationName:"SecurityGroupId" locationNameList:"groupId" type:"list" required:"true"`
  26924. // The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
  26925. //
  26926. // InstanceId is a required field
  26927. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  26928. // The ID of a ClassicLink-enabled VPC.
  26929. //
  26930. // VpcId is a required field
  26931. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  26932. }
  26933. // String returns the string representation
  26934. func (s AttachClassicLinkVpcInput) String() string {
  26935. return awsutil.Prettify(s)
  26936. }
  26937. // GoString returns the string representation
  26938. func (s AttachClassicLinkVpcInput) GoString() string {
  26939. return s.String()
  26940. }
  26941. // Validate inspects the fields of the type to determine if they are valid.
  26942. func (s *AttachClassicLinkVpcInput) Validate() error {
  26943. invalidParams := request.ErrInvalidParams{Context: "AttachClassicLinkVpcInput"}
  26944. if s.Groups == nil {
  26945. invalidParams.Add(request.NewErrParamRequired("Groups"))
  26946. }
  26947. if s.InstanceId == nil {
  26948. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  26949. }
  26950. if s.VpcId == nil {
  26951. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  26952. }
  26953. if invalidParams.Len() > 0 {
  26954. return invalidParams
  26955. }
  26956. return nil
  26957. }
  26958. // SetDryRun sets the DryRun field's value.
  26959. func (s *AttachClassicLinkVpcInput) SetDryRun(v bool) *AttachClassicLinkVpcInput {
  26960. s.DryRun = &v
  26961. return s
  26962. }
  26963. // SetGroups sets the Groups field's value.
  26964. func (s *AttachClassicLinkVpcInput) SetGroups(v []*string) *AttachClassicLinkVpcInput {
  26965. s.Groups = v
  26966. return s
  26967. }
  26968. // SetInstanceId sets the InstanceId field's value.
  26969. func (s *AttachClassicLinkVpcInput) SetInstanceId(v string) *AttachClassicLinkVpcInput {
  26970. s.InstanceId = &v
  26971. return s
  26972. }
  26973. // SetVpcId sets the VpcId field's value.
  26974. func (s *AttachClassicLinkVpcInput) SetVpcId(v string) *AttachClassicLinkVpcInput {
  26975. s.VpcId = &v
  26976. return s
  26977. }
  26978. type AttachClassicLinkVpcOutput struct {
  26979. _ struct{} `type:"structure"`
  26980. // Returns true if the request succeeds; otherwise, it returns an error.
  26981. Return *bool `locationName:"return" type:"boolean"`
  26982. }
  26983. // String returns the string representation
  26984. func (s AttachClassicLinkVpcOutput) String() string {
  26985. return awsutil.Prettify(s)
  26986. }
  26987. // GoString returns the string representation
  26988. func (s AttachClassicLinkVpcOutput) GoString() string {
  26989. return s.String()
  26990. }
  26991. // SetReturn sets the Return field's value.
  26992. func (s *AttachClassicLinkVpcOutput) SetReturn(v bool) *AttachClassicLinkVpcOutput {
  26993. s.Return = &v
  26994. return s
  26995. }
  26996. type AttachInternetGatewayInput struct {
  26997. _ struct{} `type:"structure"`
  26998. // Checks whether you have the required permissions for the action, without
  26999. // actually making the request, and provides an error response. If you have
  27000. // the required permissions, the error response is DryRunOperation. Otherwise,
  27001. // it is UnauthorizedOperation.
  27002. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27003. // The ID of the internet gateway.
  27004. //
  27005. // InternetGatewayId is a required field
  27006. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  27007. // The ID of the VPC.
  27008. //
  27009. // VpcId is a required field
  27010. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  27011. }
  27012. // String returns the string representation
  27013. func (s AttachInternetGatewayInput) String() string {
  27014. return awsutil.Prettify(s)
  27015. }
  27016. // GoString returns the string representation
  27017. func (s AttachInternetGatewayInput) GoString() string {
  27018. return s.String()
  27019. }
  27020. // Validate inspects the fields of the type to determine if they are valid.
  27021. func (s *AttachInternetGatewayInput) Validate() error {
  27022. invalidParams := request.ErrInvalidParams{Context: "AttachInternetGatewayInput"}
  27023. if s.InternetGatewayId == nil {
  27024. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  27025. }
  27026. if s.VpcId == nil {
  27027. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  27028. }
  27029. if invalidParams.Len() > 0 {
  27030. return invalidParams
  27031. }
  27032. return nil
  27033. }
  27034. // SetDryRun sets the DryRun field's value.
  27035. func (s *AttachInternetGatewayInput) SetDryRun(v bool) *AttachInternetGatewayInput {
  27036. s.DryRun = &v
  27037. return s
  27038. }
  27039. // SetInternetGatewayId sets the InternetGatewayId field's value.
  27040. func (s *AttachInternetGatewayInput) SetInternetGatewayId(v string) *AttachInternetGatewayInput {
  27041. s.InternetGatewayId = &v
  27042. return s
  27043. }
  27044. // SetVpcId sets the VpcId field's value.
  27045. func (s *AttachInternetGatewayInput) SetVpcId(v string) *AttachInternetGatewayInput {
  27046. s.VpcId = &v
  27047. return s
  27048. }
  27049. type AttachInternetGatewayOutput struct {
  27050. _ struct{} `type:"structure"`
  27051. }
  27052. // String returns the string representation
  27053. func (s AttachInternetGatewayOutput) String() string {
  27054. return awsutil.Prettify(s)
  27055. }
  27056. // GoString returns the string representation
  27057. func (s AttachInternetGatewayOutput) GoString() string {
  27058. return s.String()
  27059. }
  27060. // Contains the parameters for AttachNetworkInterface.
  27061. type AttachNetworkInterfaceInput struct {
  27062. _ struct{} `type:"structure"`
  27063. // The index of the device for the network interface attachment.
  27064. //
  27065. // DeviceIndex is a required field
  27066. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer" required:"true"`
  27067. // Checks whether you have the required permissions for the action, without
  27068. // actually making the request, and provides an error response. If you have
  27069. // the required permissions, the error response is DryRunOperation. Otherwise,
  27070. // it is UnauthorizedOperation.
  27071. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27072. // The ID of the instance.
  27073. //
  27074. // InstanceId is a required field
  27075. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  27076. // The ID of the network interface.
  27077. //
  27078. // NetworkInterfaceId is a required field
  27079. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  27080. }
  27081. // String returns the string representation
  27082. func (s AttachNetworkInterfaceInput) String() string {
  27083. return awsutil.Prettify(s)
  27084. }
  27085. // GoString returns the string representation
  27086. func (s AttachNetworkInterfaceInput) GoString() string {
  27087. return s.String()
  27088. }
  27089. // Validate inspects the fields of the type to determine if they are valid.
  27090. func (s *AttachNetworkInterfaceInput) Validate() error {
  27091. invalidParams := request.ErrInvalidParams{Context: "AttachNetworkInterfaceInput"}
  27092. if s.DeviceIndex == nil {
  27093. invalidParams.Add(request.NewErrParamRequired("DeviceIndex"))
  27094. }
  27095. if s.InstanceId == nil {
  27096. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  27097. }
  27098. if s.NetworkInterfaceId == nil {
  27099. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  27100. }
  27101. if invalidParams.Len() > 0 {
  27102. return invalidParams
  27103. }
  27104. return nil
  27105. }
  27106. // SetDeviceIndex sets the DeviceIndex field's value.
  27107. func (s *AttachNetworkInterfaceInput) SetDeviceIndex(v int64) *AttachNetworkInterfaceInput {
  27108. s.DeviceIndex = &v
  27109. return s
  27110. }
  27111. // SetDryRun sets the DryRun field's value.
  27112. func (s *AttachNetworkInterfaceInput) SetDryRun(v bool) *AttachNetworkInterfaceInput {
  27113. s.DryRun = &v
  27114. return s
  27115. }
  27116. // SetInstanceId sets the InstanceId field's value.
  27117. func (s *AttachNetworkInterfaceInput) SetInstanceId(v string) *AttachNetworkInterfaceInput {
  27118. s.InstanceId = &v
  27119. return s
  27120. }
  27121. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  27122. func (s *AttachNetworkInterfaceInput) SetNetworkInterfaceId(v string) *AttachNetworkInterfaceInput {
  27123. s.NetworkInterfaceId = &v
  27124. return s
  27125. }
  27126. // Contains the output of AttachNetworkInterface.
  27127. type AttachNetworkInterfaceOutput struct {
  27128. _ struct{} `type:"structure"`
  27129. // The ID of the network interface attachment.
  27130. AttachmentId *string `locationName:"attachmentId" type:"string"`
  27131. }
  27132. // String returns the string representation
  27133. func (s AttachNetworkInterfaceOutput) String() string {
  27134. return awsutil.Prettify(s)
  27135. }
  27136. // GoString returns the string representation
  27137. func (s AttachNetworkInterfaceOutput) GoString() string {
  27138. return s.String()
  27139. }
  27140. // SetAttachmentId sets the AttachmentId field's value.
  27141. func (s *AttachNetworkInterfaceOutput) SetAttachmentId(v string) *AttachNetworkInterfaceOutput {
  27142. s.AttachmentId = &v
  27143. return s
  27144. }
  27145. // Contains the parameters for AttachVolume.
  27146. type AttachVolumeInput struct {
  27147. _ struct{} `type:"structure"`
  27148. // The device name (for example, /dev/sdh or xvdh).
  27149. //
  27150. // Device is a required field
  27151. Device *string `type:"string" required:"true"`
  27152. // Checks whether you have the required permissions for the action, without
  27153. // actually making the request, and provides an error response. If you have
  27154. // the required permissions, the error response is DryRunOperation. Otherwise,
  27155. // it is UnauthorizedOperation.
  27156. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27157. // The ID of the instance.
  27158. //
  27159. // InstanceId is a required field
  27160. InstanceId *string `type:"string" required:"true"`
  27161. // The ID of the EBS volume. The volume and instance must be within the same
  27162. // Availability Zone.
  27163. //
  27164. // VolumeId is a required field
  27165. VolumeId *string `type:"string" required:"true"`
  27166. }
  27167. // String returns the string representation
  27168. func (s AttachVolumeInput) String() string {
  27169. return awsutil.Prettify(s)
  27170. }
  27171. // GoString returns the string representation
  27172. func (s AttachVolumeInput) GoString() string {
  27173. return s.String()
  27174. }
  27175. // Validate inspects the fields of the type to determine if they are valid.
  27176. func (s *AttachVolumeInput) Validate() error {
  27177. invalidParams := request.ErrInvalidParams{Context: "AttachVolumeInput"}
  27178. if s.Device == nil {
  27179. invalidParams.Add(request.NewErrParamRequired("Device"))
  27180. }
  27181. if s.InstanceId == nil {
  27182. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  27183. }
  27184. if s.VolumeId == nil {
  27185. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  27186. }
  27187. if invalidParams.Len() > 0 {
  27188. return invalidParams
  27189. }
  27190. return nil
  27191. }
  27192. // SetDevice sets the Device field's value.
  27193. func (s *AttachVolumeInput) SetDevice(v string) *AttachVolumeInput {
  27194. s.Device = &v
  27195. return s
  27196. }
  27197. // SetDryRun sets the DryRun field's value.
  27198. func (s *AttachVolumeInput) SetDryRun(v bool) *AttachVolumeInput {
  27199. s.DryRun = &v
  27200. return s
  27201. }
  27202. // SetInstanceId sets the InstanceId field's value.
  27203. func (s *AttachVolumeInput) SetInstanceId(v string) *AttachVolumeInput {
  27204. s.InstanceId = &v
  27205. return s
  27206. }
  27207. // SetVolumeId sets the VolumeId field's value.
  27208. func (s *AttachVolumeInput) SetVolumeId(v string) *AttachVolumeInput {
  27209. s.VolumeId = &v
  27210. return s
  27211. }
  27212. // Contains the parameters for AttachVpnGateway.
  27213. type AttachVpnGatewayInput struct {
  27214. _ struct{} `type:"structure"`
  27215. // Checks whether you have the required permissions for the action, without
  27216. // actually making the request, and provides an error response. If you have
  27217. // the required permissions, the error response is DryRunOperation. Otherwise,
  27218. // it is UnauthorizedOperation.
  27219. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27220. // The ID of the VPC.
  27221. //
  27222. // VpcId is a required field
  27223. VpcId *string `type:"string" required:"true"`
  27224. // The ID of the virtual private gateway.
  27225. //
  27226. // VpnGatewayId is a required field
  27227. VpnGatewayId *string `type:"string" required:"true"`
  27228. }
  27229. // String returns the string representation
  27230. func (s AttachVpnGatewayInput) String() string {
  27231. return awsutil.Prettify(s)
  27232. }
  27233. // GoString returns the string representation
  27234. func (s AttachVpnGatewayInput) GoString() string {
  27235. return s.String()
  27236. }
  27237. // Validate inspects the fields of the type to determine if they are valid.
  27238. func (s *AttachVpnGatewayInput) Validate() error {
  27239. invalidParams := request.ErrInvalidParams{Context: "AttachVpnGatewayInput"}
  27240. if s.VpcId == nil {
  27241. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  27242. }
  27243. if s.VpnGatewayId == nil {
  27244. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  27245. }
  27246. if invalidParams.Len() > 0 {
  27247. return invalidParams
  27248. }
  27249. return nil
  27250. }
  27251. // SetDryRun sets the DryRun field's value.
  27252. func (s *AttachVpnGatewayInput) SetDryRun(v bool) *AttachVpnGatewayInput {
  27253. s.DryRun = &v
  27254. return s
  27255. }
  27256. // SetVpcId sets the VpcId field's value.
  27257. func (s *AttachVpnGatewayInput) SetVpcId(v string) *AttachVpnGatewayInput {
  27258. s.VpcId = &v
  27259. return s
  27260. }
  27261. // SetVpnGatewayId sets the VpnGatewayId field's value.
  27262. func (s *AttachVpnGatewayInput) SetVpnGatewayId(v string) *AttachVpnGatewayInput {
  27263. s.VpnGatewayId = &v
  27264. return s
  27265. }
  27266. // Contains the output of AttachVpnGateway.
  27267. type AttachVpnGatewayOutput struct {
  27268. _ struct{} `type:"structure"`
  27269. // Information about the attachment.
  27270. VpcAttachment *VpcAttachment `locationName:"attachment" type:"structure"`
  27271. }
  27272. // String returns the string representation
  27273. func (s AttachVpnGatewayOutput) String() string {
  27274. return awsutil.Prettify(s)
  27275. }
  27276. // GoString returns the string representation
  27277. func (s AttachVpnGatewayOutput) GoString() string {
  27278. return s.String()
  27279. }
  27280. // SetVpcAttachment sets the VpcAttachment field's value.
  27281. func (s *AttachVpnGatewayOutput) SetVpcAttachment(v *VpcAttachment) *AttachVpnGatewayOutput {
  27282. s.VpcAttachment = v
  27283. return s
  27284. }
  27285. // Describes a value for a resource attribute that is a Boolean value.
  27286. type AttributeBooleanValue struct {
  27287. _ struct{} `type:"structure"`
  27288. // The attribute value. The valid values are true or false.
  27289. Value *bool `locationName:"value" type:"boolean"`
  27290. }
  27291. // String returns the string representation
  27292. func (s AttributeBooleanValue) String() string {
  27293. return awsutil.Prettify(s)
  27294. }
  27295. // GoString returns the string representation
  27296. func (s AttributeBooleanValue) GoString() string {
  27297. return s.String()
  27298. }
  27299. // SetValue sets the Value field's value.
  27300. func (s *AttributeBooleanValue) SetValue(v bool) *AttributeBooleanValue {
  27301. s.Value = &v
  27302. return s
  27303. }
  27304. // Describes a value for a resource attribute that is a String.
  27305. type AttributeValue struct {
  27306. _ struct{} `type:"structure"`
  27307. // The attribute value. The value is case-sensitive.
  27308. Value *string `locationName:"value" type:"string"`
  27309. }
  27310. // String returns the string representation
  27311. func (s AttributeValue) String() string {
  27312. return awsutil.Prettify(s)
  27313. }
  27314. // GoString returns the string representation
  27315. func (s AttributeValue) GoString() string {
  27316. return s.String()
  27317. }
  27318. // SetValue sets the Value field's value.
  27319. func (s *AttributeValue) SetValue(v string) *AttributeValue {
  27320. s.Value = &v
  27321. return s
  27322. }
  27323. // Information about an authorization rule.
  27324. type AuthorizationRule struct {
  27325. _ struct{} `type:"structure"`
  27326. // Indicates whether the authorization rule grants access to all clients.
  27327. AccessAll *bool `locationName:"accessAll" type:"boolean"`
  27328. // The ID of the Client VPN endpoint with which the authorization rule is associated.
  27329. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  27330. // A brief description of the authorization rule.
  27331. Description *string `locationName:"description" type:"string"`
  27332. // The IPv4 address range, in CIDR notation, of the network to which the authorization
  27333. // rule applies.
  27334. DestinationCidr *string `locationName:"destinationCidr" type:"string"`
  27335. // The ID of the Active Directory group to which the authorization rule grants
  27336. // access.
  27337. GroupId *string `locationName:"groupId" type:"string"`
  27338. // The current state of the authorization rule.
  27339. Status *ClientVpnAuthorizationRuleStatus `locationName:"status" type:"structure"`
  27340. }
  27341. // String returns the string representation
  27342. func (s AuthorizationRule) String() string {
  27343. return awsutil.Prettify(s)
  27344. }
  27345. // GoString returns the string representation
  27346. func (s AuthorizationRule) GoString() string {
  27347. return s.String()
  27348. }
  27349. // SetAccessAll sets the AccessAll field's value.
  27350. func (s *AuthorizationRule) SetAccessAll(v bool) *AuthorizationRule {
  27351. s.AccessAll = &v
  27352. return s
  27353. }
  27354. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  27355. func (s *AuthorizationRule) SetClientVpnEndpointId(v string) *AuthorizationRule {
  27356. s.ClientVpnEndpointId = &v
  27357. return s
  27358. }
  27359. // SetDescription sets the Description field's value.
  27360. func (s *AuthorizationRule) SetDescription(v string) *AuthorizationRule {
  27361. s.Description = &v
  27362. return s
  27363. }
  27364. // SetDestinationCidr sets the DestinationCidr field's value.
  27365. func (s *AuthorizationRule) SetDestinationCidr(v string) *AuthorizationRule {
  27366. s.DestinationCidr = &v
  27367. return s
  27368. }
  27369. // SetGroupId sets the GroupId field's value.
  27370. func (s *AuthorizationRule) SetGroupId(v string) *AuthorizationRule {
  27371. s.GroupId = &v
  27372. return s
  27373. }
  27374. // SetStatus sets the Status field's value.
  27375. func (s *AuthorizationRule) SetStatus(v *ClientVpnAuthorizationRuleStatus) *AuthorizationRule {
  27376. s.Status = v
  27377. return s
  27378. }
  27379. type AuthorizeClientVpnIngressInput struct {
  27380. _ struct{} `type:"structure"`
  27381. // The ID of the Active Directory group to grant access.
  27382. AccessGroupId *string `type:"string"`
  27383. // Indicates whether to grant access to all clients. Use true to grant all clients
  27384. // who successfully establish a VPN connection access to the network.
  27385. AuthorizeAllGroups *bool `type:"boolean"`
  27386. // The ID of the Client VPN endpoint.
  27387. //
  27388. // ClientVpnEndpointId is a required field
  27389. ClientVpnEndpointId *string `type:"string" required:"true"`
  27390. // A brief description of the authorization rule.
  27391. Description *string `type:"string"`
  27392. // Checks whether you have the required permissions for the action, without
  27393. // actually making the request, and provides an error response. If you have
  27394. // the required permissions, the error response is DryRunOperation. Otherwise,
  27395. // it is UnauthorizedOperation.
  27396. DryRun *bool `type:"boolean"`
  27397. // The IPv4 address range, in CIDR notation, of the network for which access
  27398. // is being authorized.
  27399. //
  27400. // TargetNetworkCidr is a required field
  27401. TargetNetworkCidr *string `type:"string" required:"true"`
  27402. }
  27403. // String returns the string representation
  27404. func (s AuthorizeClientVpnIngressInput) String() string {
  27405. return awsutil.Prettify(s)
  27406. }
  27407. // GoString returns the string representation
  27408. func (s AuthorizeClientVpnIngressInput) GoString() string {
  27409. return s.String()
  27410. }
  27411. // Validate inspects the fields of the type to determine if they are valid.
  27412. func (s *AuthorizeClientVpnIngressInput) Validate() error {
  27413. invalidParams := request.ErrInvalidParams{Context: "AuthorizeClientVpnIngressInput"}
  27414. if s.ClientVpnEndpointId == nil {
  27415. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  27416. }
  27417. if s.TargetNetworkCidr == nil {
  27418. invalidParams.Add(request.NewErrParamRequired("TargetNetworkCidr"))
  27419. }
  27420. if invalidParams.Len() > 0 {
  27421. return invalidParams
  27422. }
  27423. return nil
  27424. }
  27425. // SetAccessGroupId sets the AccessGroupId field's value.
  27426. func (s *AuthorizeClientVpnIngressInput) SetAccessGroupId(v string) *AuthorizeClientVpnIngressInput {
  27427. s.AccessGroupId = &v
  27428. return s
  27429. }
  27430. // SetAuthorizeAllGroups sets the AuthorizeAllGroups field's value.
  27431. func (s *AuthorizeClientVpnIngressInput) SetAuthorizeAllGroups(v bool) *AuthorizeClientVpnIngressInput {
  27432. s.AuthorizeAllGroups = &v
  27433. return s
  27434. }
  27435. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  27436. func (s *AuthorizeClientVpnIngressInput) SetClientVpnEndpointId(v string) *AuthorizeClientVpnIngressInput {
  27437. s.ClientVpnEndpointId = &v
  27438. return s
  27439. }
  27440. // SetDescription sets the Description field's value.
  27441. func (s *AuthorizeClientVpnIngressInput) SetDescription(v string) *AuthorizeClientVpnIngressInput {
  27442. s.Description = &v
  27443. return s
  27444. }
  27445. // SetDryRun sets the DryRun field's value.
  27446. func (s *AuthorizeClientVpnIngressInput) SetDryRun(v bool) *AuthorizeClientVpnIngressInput {
  27447. s.DryRun = &v
  27448. return s
  27449. }
  27450. // SetTargetNetworkCidr sets the TargetNetworkCidr field's value.
  27451. func (s *AuthorizeClientVpnIngressInput) SetTargetNetworkCidr(v string) *AuthorizeClientVpnIngressInput {
  27452. s.TargetNetworkCidr = &v
  27453. return s
  27454. }
  27455. type AuthorizeClientVpnIngressOutput struct {
  27456. _ struct{} `type:"structure"`
  27457. // The current state of the authorization rule.
  27458. Status *ClientVpnAuthorizationRuleStatus `locationName:"status" type:"structure"`
  27459. }
  27460. // String returns the string representation
  27461. func (s AuthorizeClientVpnIngressOutput) String() string {
  27462. return awsutil.Prettify(s)
  27463. }
  27464. // GoString returns the string representation
  27465. func (s AuthorizeClientVpnIngressOutput) GoString() string {
  27466. return s.String()
  27467. }
  27468. // SetStatus sets the Status field's value.
  27469. func (s *AuthorizeClientVpnIngressOutput) SetStatus(v *ClientVpnAuthorizationRuleStatus) *AuthorizeClientVpnIngressOutput {
  27470. s.Status = v
  27471. return s
  27472. }
  27473. type AuthorizeSecurityGroupEgressInput struct {
  27474. _ struct{} `type:"structure"`
  27475. // Not supported. Use a set of IP permissions to specify the CIDR.
  27476. CidrIp *string `locationName:"cidrIp" type:"string"`
  27477. // Checks whether you have the required permissions for the action, without
  27478. // actually making the request, and provides an error response. If you have
  27479. // the required permissions, the error response is DryRunOperation. Otherwise,
  27480. // it is UnauthorizedOperation.
  27481. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27482. // Not supported. Use a set of IP permissions to specify the port.
  27483. FromPort *int64 `locationName:"fromPort" type:"integer"`
  27484. // The ID of the security group.
  27485. //
  27486. // GroupId is a required field
  27487. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  27488. // One or more sets of IP permissions. You can't specify a destination security
  27489. // group and a CIDR IP address range in the same set of permissions.
  27490. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  27491. // Not supported. Use a set of IP permissions to specify the protocol name or
  27492. // number.
  27493. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  27494. // Not supported. Use a set of IP permissions to specify a destination security
  27495. // group.
  27496. SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`
  27497. // Not supported. Use a set of IP permissions to specify a destination security
  27498. // group.
  27499. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`
  27500. // Not supported. Use a set of IP permissions to specify the port.
  27501. ToPort *int64 `locationName:"toPort" type:"integer"`
  27502. }
  27503. // String returns the string representation
  27504. func (s AuthorizeSecurityGroupEgressInput) String() string {
  27505. return awsutil.Prettify(s)
  27506. }
  27507. // GoString returns the string representation
  27508. func (s AuthorizeSecurityGroupEgressInput) GoString() string {
  27509. return s.String()
  27510. }
  27511. // Validate inspects the fields of the type to determine if they are valid.
  27512. func (s *AuthorizeSecurityGroupEgressInput) Validate() error {
  27513. invalidParams := request.ErrInvalidParams{Context: "AuthorizeSecurityGroupEgressInput"}
  27514. if s.GroupId == nil {
  27515. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  27516. }
  27517. if invalidParams.Len() > 0 {
  27518. return invalidParams
  27519. }
  27520. return nil
  27521. }
  27522. // SetCidrIp sets the CidrIp field's value.
  27523. func (s *AuthorizeSecurityGroupEgressInput) SetCidrIp(v string) *AuthorizeSecurityGroupEgressInput {
  27524. s.CidrIp = &v
  27525. return s
  27526. }
  27527. // SetDryRun sets the DryRun field's value.
  27528. func (s *AuthorizeSecurityGroupEgressInput) SetDryRun(v bool) *AuthorizeSecurityGroupEgressInput {
  27529. s.DryRun = &v
  27530. return s
  27531. }
  27532. // SetFromPort sets the FromPort field's value.
  27533. func (s *AuthorizeSecurityGroupEgressInput) SetFromPort(v int64) *AuthorizeSecurityGroupEgressInput {
  27534. s.FromPort = &v
  27535. return s
  27536. }
  27537. // SetGroupId sets the GroupId field's value.
  27538. func (s *AuthorizeSecurityGroupEgressInput) SetGroupId(v string) *AuthorizeSecurityGroupEgressInput {
  27539. s.GroupId = &v
  27540. return s
  27541. }
  27542. // SetIpPermissions sets the IpPermissions field's value.
  27543. func (s *AuthorizeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupEgressInput {
  27544. s.IpPermissions = v
  27545. return s
  27546. }
  27547. // SetIpProtocol sets the IpProtocol field's value.
  27548. func (s *AuthorizeSecurityGroupEgressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupEgressInput {
  27549. s.IpProtocol = &v
  27550. return s
  27551. }
  27552. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  27553. func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupEgressInput {
  27554. s.SourceSecurityGroupName = &v
  27555. return s
  27556. }
  27557. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  27558. func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupEgressInput {
  27559. s.SourceSecurityGroupOwnerId = &v
  27560. return s
  27561. }
  27562. // SetToPort sets the ToPort field's value.
  27563. func (s *AuthorizeSecurityGroupEgressInput) SetToPort(v int64) *AuthorizeSecurityGroupEgressInput {
  27564. s.ToPort = &v
  27565. return s
  27566. }
  27567. type AuthorizeSecurityGroupEgressOutput struct {
  27568. _ struct{} `type:"structure"`
  27569. }
  27570. // String returns the string representation
  27571. func (s AuthorizeSecurityGroupEgressOutput) String() string {
  27572. return awsutil.Prettify(s)
  27573. }
  27574. // GoString returns the string representation
  27575. func (s AuthorizeSecurityGroupEgressOutput) GoString() string {
  27576. return s.String()
  27577. }
  27578. type AuthorizeSecurityGroupIngressInput struct {
  27579. _ struct{} `type:"structure"`
  27580. // The CIDR IPv4 address range. You can't specify this parameter when specifying
  27581. // a source security group.
  27582. CidrIp *string `type:"string"`
  27583. // Checks whether you have the required permissions for the action, without
  27584. // actually making the request, and provides an error response. If you have
  27585. // the required permissions, the error response is DryRunOperation. Otherwise,
  27586. // it is UnauthorizedOperation.
  27587. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27588. // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
  27589. // type number. For the ICMP/ICMPv6 type number, use -1 to specify all types.
  27590. // If you specify all ICMP/ICMPv6 types, you must specify all codes.
  27591. FromPort *int64 `type:"integer"`
  27592. // The ID of the security group. You must specify either the security group
  27593. // ID or the security group name in the request. For security groups in a nondefault
  27594. // VPC, you must specify the security group ID.
  27595. GroupId *string `type:"string"`
  27596. // [EC2-Classic, default VPC] The name of the security group. You must specify
  27597. // either the security group ID or the security group name in the request.
  27598. GroupName *string `type:"string"`
  27599. // One or more sets of IP permissions. Can be used to specify multiple rules
  27600. // in a single command.
  27601. IpPermissions []*IpPermission `locationNameList:"item" type:"list"`
  27602. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  27603. // (VPC only) Use -1 to specify all protocols. If you specify -1, or a protocol
  27604. // number other than tcp, udp, icmp, or 58 (ICMPv6), traffic on all ports is
  27605. // allowed, regardless of any ports you specify. For tcp, udp, and icmp, you
  27606. // must specify a port range. For protocol 58 (ICMPv6), you can optionally specify
  27607. // a port range; if you don't, traffic for all types and codes is allowed.
  27608. IpProtocol *string `type:"string"`
  27609. // [EC2-Classic, default VPC] The name of the source security group. You can't
  27610. // specify this parameter in combination with the following parameters: the
  27611. // CIDR IP address range, the start of the port range, the IP protocol, and
  27612. // the end of the port range. Creates rules that grant full ICMP, UDP, and TCP
  27613. // access. To create a rule with a specific IP protocol and port range, use
  27614. // a set of IP permissions instead. For EC2-VPC, the source security group must
  27615. // be in the same VPC.
  27616. SourceSecurityGroupName *string `type:"string"`
  27617. // [EC2-Classic] The AWS account ID for the source security group, if the source
  27618. // security group is in a different account. You can't specify this parameter
  27619. // in combination with the following parameters: the CIDR IP address range,
  27620. // the IP protocol, the start of the port range, and the end of the port range.
  27621. // Creates rules that grant full ICMP, UDP, and TCP access. To create a rule
  27622. // with a specific IP protocol and port range, use a set of IP permissions instead.
  27623. SourceSecurityGroupOwnerId *string `type:"string"`
  27624. // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code
  27625. // number. For the ICMP/ICMPv6 code number, use -1 to specify all codes. If
  27626. // you specify all ICMP/ICMPv6 types, you must specify all codes.
  27627. ToPort *int64 `type:"integer"`
  27628. }
  27629. // String returns the string representation
  27630. func (s AuthorizeSecurityGroupIngressInput) String() string {
  27631. return awsutil.Prettify(s)
  27632. }
  27633. // GoString returns the string representation
  27634. func (s AuthorizeSecurityGroupIngressInput) GoString() string {
  27635. return s.String()
  27636. }
  27637. // SetCidrIp sets the CidrIp field's value.
  27638. func (s *AuthorizeSecurityGroupIngressInput) SetCidrIp(v string) *AuthorizeSecurityGroupIngressInput {
  27639. s.CidrIp = &v
  27640. return s
  27641. }
  27642. // SetDryRun sets the DryRun field's value.
  27643. func (s *AuthorizeSecurityGroupIngressInput) SetDryRun(v bool) *AuthorizeSecurityGroupIngressInput {
  27644. s.DryRun = &v
  27645. return s
  27646. }
  27647. // SetFromPort sets the FromPort field's value.
  27648. func (s *AuthorizeSecurityGroupIngressInput) SetFromPort(v int64) *AuthorizeSecurityGroupIngressInput {
  27649. s.FromPort = &v
  27650. return s
  27651. }
  27652. // SetGroupId sets the GroupId field's value.
  27653. func (s *AuthorizeSecurityGroupIngressInput) SetGroupId(v string) *AuthorizeSecurityGroupIngressInput {
  27654. s.GroupId = &v
  27655. return s
  27656. }
  27657. // SetGroupName sets the GroupName field's value.
  27658. func (s *AuthorizeSecurityGroupIngressInput) SetGroupName(v string) *AuthorizeSecurityGroupIngressInput {
  27659. s.GroupName = &v
  27660. return s
  27661. }
  27662. // SetIpPermissions sets the IpPermissions field's value.
  27663. func (s *AuthorizeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupIngressInput {
  27664. s.IpPermissions = v
  27665. return s
  27666. }
  27667. // SetIpProtocol sets the IpProtocol field's value.
  27668. func (s *AuthorizeSecurityGroupIngressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupIngressInput {
  27669. s.IpProtocol = &v
  27670. return s
  27671. }
  27672. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  27673. func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupIngressInput {
  27674. s.SourceSecurityGroupName = &v
  27675. return s
  27676. }
  27677. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  27678. func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupIngressInput {
  27679. s.SourceSecurityGroupOwnerId = &v
  27680. return s
  27681. }
  27682. // SetToPort sets the ToPort field's value.
  27683. func (s *AuthorizeSecurityGroupIngressInput) SetToPort(v int64) *AuthorizeSecurityGroupIngressInput {
  27684. s.ToPort = &v
  27685. return s
  27686. }
  27687. type AuthorizeSecurityGroupIngressOutput struct {
  27688. _ struct{} `type:"structure"`
  27689. }
  27690. // String returns the string representation
  27691. func (s AuthorizeSecurityGroupIngressOutput) String() string {
  27692. return awsutil.Prettify(s)
  27693. }
  27694. // GoString returns the string representation
  27695. func (s AuthorizeSecurityGroupIngressOutput) GoString() string {
  27696. return s.String()
  27697. }
  27698. // Describes an Availability Zone.
  27699. type AvailabilityZone struct {
  27700. _ struct{} `type:"structure"`
  27701. // Any messages about the Availability Zone.
  27702. Messages []*AvailabilityZoneMessage `locationName:"messageSet" locationNameList:"item" type:"list"`
  27703. // The name of the region.
  27704. RegionName *string `locationName:"regionName" type:"string"`
  27705. // The state of the Availability Zone.
  27706. State *string `locationName:"zoneState" type:"string" enum:"AvailabilityZoneState"`
  27707. // The ID of the Availability Zone.
  27708. ZoneId *string `locationName:"zoneId" type:"string"`
  27709. // The name of the Availability Zone.
  27710. ZoneName *string `locationName:"zoneName" type:"string"`
  27711. }
  27712. // String returns the string representation
  27713. func (s AvailabilityZone) String() string {
  27714. return awsutil.Prettify(s)
  27715. }
  27716. // GoString returns the string representation
  27717. func (s AvailabilityZone) GoString() string {
  27718. return s.String()
  27719. }
  27720. // SetMessages sets the Messages field's value.
  27721. func (s *AvailabilityZone) SetMessages(v []*AvailabilityZoneMessage) *AvailabilityZone {
  27722. s.Messages = v
  27723. return s
  27724. }
  27725. // SetRegionName sets the RegionName field's value.
  27726. func (s *AvailabilityZone) SetRegionName(v string) *AvailabilityZone {
  27727. s.RegionName = &v
  27728. return s
  27729. }
  27730. // SetState sets the State field's value.
  27731. func (s *AvailabilityZone) SetState(v string) *AvailabilityZone {
  27732. s.State = &v
  27733. return s
  27734. }
  27735. // SetZoneId sets the ZoneId field's value.
  27736. func (s *AvailabilityZone) SetZoneId(v string) *AvailabilityZone {
  27737. s.ZoneId = &v
  27738. return s
  27739. }
  27740. // SetZoneName sets the ZoneName field's value.
  27741. func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone {
  27742. s.ZoneName = &v
  27743. return s
  27744. }
  27745. // Describes a message about an Availability Zone.
  27746. type AvailabilityZoneMessage struct {
  27747. _ struct{} `type:"structure"`
  27748. // The message about the Availability Zone.
  27749. Message *string `locationName:"message" type:"string"`
  27750. }
  27751. // String returns the string representation
  27752. func (s AvailabilityZoneMessage) String() string {
  27753. return awsutil.Prettify(s)
  27754. }
  27755. // GoString returns the string representation
  27756. func (s AvailabilityZoneMessage) GoString() string {
  27757. return s.String()
  27758. }
  27759. // SetMessage sets the Message field's value.
  27760. func (s *AvailabilityZoneMessage) SetMessage(v string) *AvailabilityZoneMessage {
  27761. s.Message = &v
  27762. return s
  27763. }
  27764. // The capacity information for instances launched onto the Dedicated Host.
  27765. type AvailableCapacity struct {
  27766. _ struct{} `type:"structure"`
  27767. // The total number of instances supported by the Dedicated Host.
  27768. AvailableInstanceCapacity []*InstanceCapacity `locationName:"availableInstanceCapacity" locationNameList:"item" type:"list"`
  27769. // The number of vCPUs available on the Dedicated Host.
  27770. AvailableVCpus *int64 `locationName:"availableVCpus" type:"integer"`
  27771. }
  27772. // String returns the string representation
  27773. func (s AvailableCapacity) String() string {
  27774. return awsutil.Prettify(s)
  27775. }
  27776. // GoString returns the string representation
  27777. func (s AvailableCapacity) GoString() string {
  27778. return s.String()
  27779. }
  27780. // SetAvailableInstanceCapacity sets the AvailableInstanceCapacity field's value.
  27781. func (s *AvailableCapacity) SetAvailableInstanceCapacity(v []*InstanceCapacity) *AvailableCapacity {
  27782. s.AvailableInstanceCapacity = v
  27783. return s
  27784. }
  27785. // SetAvailableVCpus sets the AvailableVCpus field's value.
  27786. func (s *AvailableCapacity) SetAvailableVCpus(v int64) *AvailableCapacity {
  27787. s.AvailableVCpus = &v
  27788. return s
  27789. }
  27790. type BlobAttributeValue struct {
  27791. _ struct{} `type:"structure"`
  27792. // Value is automatically base64 encoded/decoded by the SDK.
  27793. Value []byte `locationName:"value" type:"blob"`
  27794. }
  27795. // String returns the string representation
  27796. func (s BlobAttributeValue) String() string {
  27797. return awsutil.Prettify(s)
  27798. }
  27799. // GoString returns the string representation
  27800. func (s BlobAttributeValue) GoString() string {
  27801. return s.String()
  27802. }
  27803. // SetValue sets the Value field's value.
  27804. func (s *BlobAttributeValue) SetValue(v []byte) *BlobAttributeValue {
  27805. s.Value = v
  27806. return s
  27807. }
  27808. // Describes a block device mapping.
  27809. type BlockDeviceMapping struct {
  27810. _ struct{} `type:"structure"`
  27811. // The device name (for example, /dev/sdh or xvdh).
  27812. DeviceName *string `locationName:"deviceName" type:"string"`
  27813. // Parameters used to automatically set up EBS volumes when the instance is
  27814. // launched.
  27815. Ebs *EbsBlockDevice `locationName:"ebs" type:"structure"`
  27816. // Suppresses the specified device included in the block device mapping of the
  27817. // AMI.
  27818. NoDevice *string `locationName:"noDevice" type:"string"`
  27819. // The virtual device name (ephemeralN). Instance store volumes are numbered
  27820. // starting from 0. An instance type with 2 available instance store volumes
  27821. // can specify mappings for ephemeral0 and ephemeral1. The number of available
  27822. // instance store volumes depends on the instance type. After you connect to
  27823. // the instance, you must mount the volume.
  27824. //
  27825. // NVMe instance store volumes are automatically enumerated and assigned a device
  27826. // name. Including them in your block device mapping has no effect.
  27827. //
  27828. // Constraints: For M3 instances, you must specify instance store volumes in
  27829. // the block device mapping for the instance. When you launch an M3 instance,
  27830. // we ignore any instance store volumes specified in the block device mapping
  27831. // for the AMI.
  27832. VirtualName *string `locationName:"virtualName" type:"string"`
  27833. }
  27834. // String returns the string representation
  27835. func (s BlockDeviceMapping) String() string {
  27836. return awsutil.Prettify(s)
  27837. }
  27838. // GoString returns the string representation
  27839. func (s BlockDeviceMapping) GoString() string {
  27840. return s.String()
  27841. }
  27842. // SetDeviceName sets the DeviceName field's value.
  27843. func (s *BlockDeviceMapping) SetDeviceName(v string) *BlockDeviceMapping {
  27844. s.DeviceName = &v
  27845. return s
  27846. }
  27847. // SetEbs sets the Ebs field's value.
  27848. func (s *BlockDeviceMapping) SetEbs(v *EbsBlockDevice) *BlockDeviceMapping {
  27849. s.Ebs = v
  27850. return s
  27851. }
  27852. // SetNoDevice sets the NoDevice field's value.
  27853. func (s *BlockDeviceMapping) SetNoDevice(v string) *BlockDeviceMapping {
  27854. s.NoDevice = &v
  27855. return s
  27856. }
  27857. // SetVirtualName sets the VirtualName field's value.
  27858. func (s *BlockDeviceMapping) SetVirtualName(v string) *BlockDeviceMapping {
  27859. s.VirtualName = &v
  27860. return s
  27861. }
  27862. // Contains the parameters for BundleInstance.
  27863. type BundleInstanceInput struct {
  27864. _ struct{} `type:"structure"`
  27865. // Checks whether you have the required permissions for the action, without
  27866. // actually making the request, and provides an error response. If you have
  27867. // the required permissions, the error response is DryRunOperation. Otherwise,
  27868. // it is UnauthorizedOperation.
  27869. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27870. // The ID of the instance to bundle.
  27871. //
  27872. // Type: String
  27873. //
  27874. // Default: None
  27875. //
  27876. // Required: Yes
  27877. //
  27878. // InstanceId is a required field
  27879. InstanceId *string `type:"string" required:"true"`
  27880. // The bucket in which to store the AMI. You can specify a bucket that you already
  27881. // own or a new bucket that Amazon EC2 creates on your behalf. If you specify
  27882. // a bucket that belongs to someone else, Amazon EC2 returns an error.
  27883. //
  27884. // Storage is a required field
  27885. Storage *Storage `type:"structure" required:"true"`
  27886. }
  27887. // String returns the string representation
  27888. func (s BundleInstanceInput) String() string {
  27889. return awsutil.Prettify(s)
  27890. }
  27891. // GoString returns the string representation
  27892. func (s BundleInstanceInput) GoString() string {
  27893. return s.String()
  27894. }
  27895. // Validate inspects the fields of the type to determine if they are valid.
  27896. func (s *BundleInstanceInput) Validate() error {
  27897. invalidParams := request.ErrInvalidParams{Context: "BundleInstanceInput"}
  27898. if s.InstanceId == nil {
  27899. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  27900. }
  27901. if s.Storage == nil {
  27902. invalidParams.Add(request.NewErrParamRequired("Storage"))
  27903. }
  27904. if invalidParams.Len() > 0 {
  27905. return invalidParams
  27906. }
  27907. return nil
  27908. }
  27909. // SetDryRun sets the DryRun field's value.
  27910. func (s *BundleInstanceInput) SetDryRun(v bool) *BundleInstanceInput {
  27911. s.DryRun = &v
  27912. return s
  27913. }
  27914. // SetInstanceId sets the InstanceId field's value.
  27915. func (s *BundleInstanceInput) SetInstanceId(v string) *BundleInstanceInput {
  27916. s.InstanceId = &v
  27917. return s
  27918. }
  27919. // SetStorage sets the Storage field's value.
  27920. func (s *BundleInstanceInput) SetStorage(v *Storage) *BundleInstanceInput {
  27921. s.Storage = v
  27922. return s
  27923. }
  27924. // Contains the output of BundleInstance.
  27925. type BundleInstanceOutput struct {
  27926. _ struct{} `type:"structure"`
  27927. // Information about the bundle task.
  27928. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
  27929. }
  27930. // String returns the string representation
  27931. func (s BundleInstanceOutput) String() string {
  27932. return awsutil.Prettify(s)
  27933. }
  27934. // GoString returns the string representation
  27935. func (s BundleInstanceOutput) GoString() string {
  27936. return s.String()
  27937. }
  27938. // SetBundleTask sets the BundleTask field's value.
  27939. func (s *BundleInstanceOutput) SetBundleTask(v *BundleTask) *BundleInstanceOutput {
  27940. s.BundleTask = v
  27941. return s
  27942. }
  27943. // Describes a bundle task.
  27944. type BundleTask struct {
  27945. _ struct{} `type:"structure"`
  27946. // The ID of the bundle task.
  27947. BundleId *string `locationName:"bundleId" type:"string"`
  27948. // If the task fails, a description of the error.
  27949. BundleTaskError *BundleTaskError `locationName:"error" type:"structure"`
  27950. // The ID of the instance associated with this bundle task.
  27951. InstanceId *string `locationName:"instanceId" type:"string"`
  27952. // The level of task completion, as a percent (for example, 20%).
  27953. Progress *string `locationName:"progress" type:"string"`
  27954. // The time this task started.
  27955. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  27956. // The state of the task.
  27957. State *string `locationName:"state" type:"string" enum:"BundleTaskState"`
  27958. // The Amazon S3 storage locations.
  27959. Storage *Storage `locationName:"storage" type:"structure"`
  27960. // The time of the most recent update for the task.
  27961. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp"`
  27962. }
  27963. // String returns the string representation
  27964. func (s BundleTask) String() string {
  27965. return awsutil.Prettify(s)
  27966. }
  27967. // GoString returns the string representation
  27968. func (s BundleTask) GoString() string {
  27969. return s.String()
  27970. }
  27971. // SetBundleId sets the BundleId field's value.
  27972. func (s *BundleTask) SetBundleId(v string) *BundleTask {
  27973. s.BundleId = &v
  27974. return s
  27975. }
  27976. // SetBundleTaskError sets the BundleTaskError field's value.
  27977. func (s *BundleTask) SetBundleTaskError(v *BundleTaskError) *BundleTask {
  27978. s.BundleTaskError = v
  27979. return s
  27980. }
  27981. // SetInstanceId sets the InstanceId field's value.
  27982. func (s *BundleTask) SetInstanceId(v string) *BundleTask {
  27983. s.InstanceId = &v
  27984. return s
  27985. }
  27986. // SetProgress sets the Progress field's value.
  27987. func (s *BundleTask) SetProgress(v string) *BundleTask {
  27988. s.Progress = &v
  27989. return s
  27990. }
  27991. // SetStartTime sets the StartTime field's value.
  27992. func (s *BundleTask) SetStartTime(v time.Time) *BundleTask {
  27993. s.StartTime = &v
  27994. return s
  27995. }
  27996. // SetState sets the State field's value.
  27997. func (s *BundleTask) SetState(v string) *BundleTask {
  27998. s.State = &v
  27999. return s
  28000. }
  28001. // SetStorage sets the Storage field's value.
  28002. func (s *BundleTask) SetStorage(v *Storage) *BundleTask {
  28003. s.Storage = v
  28004. return s
  28005. }
  28006. // SetUpdateTime sets the UpdateTime field's value.
  28007. func (s *BundleTask) SetUpdateTime(v time.Time) *BundleTask {
  28008. s.UpdateTime = &v
  28009. return s
  28010. }
  28011. // Describes an error for BundleInstance.
  28012. type BundleTaskError struct {
  28013. _ struct{} `type:"structure"`
  28014. // The error code.
  28015. Code *string `locationName:"code" type:"string"`
  28016. // The error message.
  28017. Message *string `locationName:"message" type:"string"`
  28018. }
  28019. // String returns the string representation
  28020. func (s BundleTaskError) String() string {
  28021. return awsutil.Prettify(s)
  28022. }
  28023. // GoString returns the string representation
  28024. func (s BundleTaskError) GoString() string {
  28025. return s.String()
  28026. }
  28027. // SetCode sets the Code field's value.
  28028. func (s *BundleTaskError) SetCode(v string) *BundleTaskError {
  28029. s.Code = &v
  28030. return s
  28031. }
  28032. // SetMessage sets the Message field's value.
  28033. func (s *BundleTaskError) SetMessage(v string) *BundleTaskError {
  28034. s.Message = &v
  28035. return s
  28036. }
  28037. // Information about an address range that is provisioned for use with your
  28038. // AWS resources through bring your own IP addresses (BYOIP).
  28039. type ByoipCidr struct {
  28040. _ struct{} `type:"structure"`
  28041. // The public IPv4 address range, in CIDR notation.
  28042. Cidr *string `locationName:"cidr" type:"string"`
  28043. // The description of the address range.
  28044. Description *string `locationName:"description" type:"string"`
  28045. // The state of the address pool.
  28046. State *string `locationName:"state" type:"string" enum:"ByoipCidrState"`
  28047. // Upon success, contains the ID of the address pool. Otherwise, contains an
  28048. // error message.
  28049. StatusMessage *string `locationName:"statusMessage" type:"string"`
  28050. }
  28051. // String returns the string representation
  28052. func (s ByoipCidr) String() string {
  28053. return awsutil.Prettify(s)
  28054. }
  28055. // GoString returns the string representation
  28056. func (s ByoipCidr) GoString() string {
  28057. return s.String()
  28058. }
  28059. // SetCidr sets the Cidr field's value.
  28060. func (s *ByoipCidr) SetCidr(v string) *ByoipCidr {
  28061. s.Cidr = &v
  28062. return s
  28063. }
  28064. // SetDescription sets the Description field's value.
  28065. func (s *ByoipCidr) SetDescription(v string) *ByoipCidr {
  28066. s.Description = &v
  28067. return s
  28068. }
  28069. // SetState sets the State field's value.
  28070. func (s *ByoipCidr) SetState(v string) *ByoipCidr {
  28071. s.State = &v
  28072. return s
  28073. }
  28074. // SetStatusMessage sets the StatusMessage field's value.
  28075. func (s *ByoipCidr) SetStatusMessage(v string) *ByoipCidr {
  28076. s.StatusMessage = &v
  28077. return s
  28078. }
  28079. // Contains the parameters for CancelBundleTask.
  28080. type CancelBundleTaskInput struct {
  28081. _ struct{} `type:"structure"`
  28082. // The ID of the bundle task.
  28083. //
  28084. // BundleId is a required field
  28085. BundleId *string `type:"string" required:"true"`
  28086. // Checks whether you have the required permissions for the action, without
  28087. // actually making the request, and provides an error response. If you have
  28088. // the required permissions, the error response is DryRunOperation. Otherwise,
  28089. // it is UnauthorizedOperation.
  28090. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28091. }
  28092. // String returns the string representation
  28093. func (s CancelBundleTaskInput) String() string {
  28094. return awsutil.Prettify(s)
  28095. }
  28096. // GoString returns the string representation
  28097. func (s CancelBundleTaskInput) GoString() string {
  28098. return s.String()
  28099. }
  28100. // Validate inspects the fields of the type to determine if they are valid.
  28101. func (s *CancelBundleTaskInput) Validate() error {
  28102. invalidParams := request.ErrInvalidParams{Context: "CancelBundleTaskInput"}
  28103. if s.BundleId == nil {
  28104. invalidParams.Add(request.NewErrParamRequired("BundleId"))
  28105. }
  28106. if invalidParams.Len() > 0 {
  28107. return invalidParams
  28108. }
  28109. return nil
  28110. }
  28111. // SetBundleId sets the BundleId field's value.
  28112. func (s *CancelBundleTaskInput) SetBundleId(v string) *CancelBundleTaskInput {
  28113. s.BundleId = &v
  28114. return s
  28115. }
  28116. // SetDryRun sets the DryRun field's value.
  28117. func (s *CancelBundleTaskInput) SetDryRun(v bool) *CancelBundleTaskInput {
  28118. s.DryRun = &v
  28119. return s
  28120. }
  28121. // Contains the output of CancelBundleTask.
  28122. type CancelBundleTaskOutput struct {
  28123. _ struct{} `type:"structure"`
  28124. // Information about the bundle task.
  28125. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
  28126. }
  28127. // String returns the string representation
  28128. func (s CancelBundleTaskOutput) String() string {
  28129. return awsutil.Prettify(s)
  28130. }
  28131. // GoString returns the string representation
  28132. func (s CancelBundleTaskOutput) GoString() string {
  28133. return s.String()
  28134. }
  28135. // SetBundleTask sets the BundleTask field's value.
  28136. func (s *CancelBundleTaskOutput) SetBundleTask(v *BundleTask) *CancelBundleTaskOutput {
  28137. s.BundleTask = v
  28138. return s
  28139. }
  28140. type CancelCapacityReservationInput struct {
  28141. _ struct{} `type:"structure"`
  28142. // The ID of the Capacity Reservation to be cancelled.
  28143. //
  28144. // CapacityReservationId is a required field
  28145. CapacityReservationId *string `type:"string" required:"true"`
  28146. // Checks whether you have the required permissions for the action, without
  28147. // actually making the request, and provides an error response. If you have
  28148. // the required permissions, the error response is DryRunOperation. Otherwise,
  28149. // it is UnauthorizedOperation.
  28150. DryRun *bool `type:"boolean"`
  28151. }
  28152. // String returns the string representation
  28153. func (s CancelCapacityReservationInput) String() string {
  28154. return awsutil.Prettify(s)
  28155. }
  28156. // GoString returns the string representation
  28157. func (s CancelCapacityReservationInput) GoString() string {
  28158. return s.String()
  28159. }
  28160. // Validate inspects the fields of the type to determine if they are valid.
  28161. func (s *CancelCapacityReservationInput) Validate() error {
  28162. invalidParams := request.ErrInvalidParams{Context: "CancelCapacityReservationInput"}
  28163. if s.CapacityReservationId == nil {
  28164. invalidParams.Add(request.NewErrParamRequired("CapacityReservationId"))
  28165. }
  28166. if invalidParams.Len() > 0 {
  28167. return invalidParams
  28168. }
  28169. return nil
  28170. }
  28171. // SetCapacityReservationId sets the CapacityReservationId field's value.
  28172. func (s *CancelCapacityReservationInput) SetCapacityReservationId(v string) *CancelCapacityReservationInput {
  28173. s.CapacityReservationId = &v
  28174. return s
  28175. }
  28176. // SetDryRun sets the DryRun field's value.
  28177. func (s *CancelCapacityReservationInput) SetDryRun(v bool) *CancelCapacityReservationInput {
  28178. s.DryRun = &v
  28179. return s
  28180. }
  28181. type CancelCapacityReservationOutput struct {
  28182. _ struct{} `type:"structure"`
  28183. // Returns true if the request succeeds; otherwise, it returns an error.
  28184. Return *bool `locationName:"return" type:"boolean"`
  28185. }
  28186. // String returns the string representation
  28187. func (s CancelCapacityReservationOutput) String() string {
  28188. return awsutil.Prettify(s)
  28189. }
  28190. // GoString returns the string representation
  28191. func (s CancelCapacityReservationOutput) GoString() string {
  28192. return s.String()
  28193. }
  28194. // SetReturn sets the Return field's value.
  28195. func (s *CancelCapacityReservationOutput) SetReturn(v bool) *CancelCapacityReservationOutput {
  28196. s.Return = &v
  28197. return s
  28198. }
  28199. // Contains the parameters for CancelConversionTask.
  28200. type CancelConversionTaskInput struct {
  28201. _ struct{} `type:"structure"`
  28202. // The ID of the conversion task.
  28203. //
  28204. // ConversionTaskId is a required field
  28205. ConversionTaskId *string `locationName:"conversionTaskId" type:"string" required:"true"`
  28206. // Checks whether you have the required permissions for the action, without
  28207. // actually making the request, and provides an error response. If you have
  28208. // the required permissions, the error response is DryRunOperation. Otherwise,
  28209. // it is UnauthorizedOperation.
  28210. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28211. // The reason for canceling the conversion task.
  28212. ReasonMessage *string `locationName:"reasonMessage" type:"string"`
  28213. }
  28214. // String returns the string representation
  28215. func (s CancelConversionTaskInput) String() string {
  28216. return awsutil.Prettify(s)
  28217. }
  28218. // GoString returns the string representation
  28219. func (s CancelConversionTaskInput) GoString() string {
  28220. return s.String()
  28221. }
  28222. // Validate inspects the fields of the type to determine if they are valid.
  28223. func (s *CancelConversionTaskInput) Validate() error {
  28224. invalidParams := request.ErrInvalidParams{Context: "CancelConversionTaskInput"}
  28225. if s.ConversionTaskId == nil {
  28226. invalidParams.Add(request.NewErrParamRequired("ConversionTaskId"))
  28227. }
  28228. if invalidParams.Len() > 0 {
  28229. return invalidParams
  28230. }
  28231. return nil
  28232. }
  28233. // SetConversionTaskId sets the ConversionTaskId field's value.
  28234. func (s *CancelConversionTaskInput) SetConversionTaskId(v string) *CancelConversionTaskInput {
  28235. s.ConversionTaskId = &v
  28236. return s
  28237. }
  28238. // SetDryRun sets the DryRun field's value.
  28239. func (s *CancelConversionTaskInput) SetDryRun(v bool) *CancelConversionTaskInput {
  28240. s.DryRun = &v
  28241. return s
  28242. }
  28243. // SetReasonMessage sets the ReasonMessage field's value.
  28244. func (s *CancelConversionTaskInput) SetReasonMessage(v string) *CancelConversionTaskInput {
  28245. s.ReasonMessage = &v
  28246. return s
  28247. }
  28248. type CancelConversionTaskOutput struct {
  28249. _ struct{} `type:"structure"`
  28250. }
  28251. // String returns the string representation
  28252. func (s CancelConversionTaskOutput) String() string {
  28253. return awsutil.Prettify(s)
  28254. }
  28255. // GoString returns the string representation
  28256. func (s CancelConversionTaskOutput) GoString() string {
  28257. return s.String()
  28258. }
  28259. // Contains the parameters for CancelExportTask.
  28260. type CancelExportTaskInput struct {
  28261. _ struct{} `type:"structure"`
  28262. // The ID of the export task. This is the ID returned by CreateInstanceExportTask.
  28263. //
  28264. // ExportTaskId is a required field
  28265. ExportTaskId *string `locationName:"exportTaskId" type:"string" required:"true"`
  28266. }
  28267. // String returns the string representation
  28268. func (s CancelExportTaskInput) String() string {
  28269. return awsutil.Prettify(s)
  28270. }
  28271. // GoString returns the string representation
  28272. func (s CancelExportTaskInput) GoString() string {
  28273. return s.String()
  28274. }
  28275. // Validate inspects the fields of the type to determine if they are valid.
  28276. func (s *CancelExportTaskInput) Validate() error {
  28277. invalidParams := request.ErrInvalidParams{Context: "CancelExportTaskInput"}
  28278. if s.ExportTaskId == nil {
  28279. invalidParams.Add(request.NewErrParamRequired("ExportTaskId"))
  28280. }
  28281. if invalidParams.Len() > 0 {
  28282. return invalidParams
  28283. }
  28284. return nil
  28285. }
  28286. // SetExportTaskId sets the ExportTaskId field's value.
  28287. func (s *CancelExportTaskInput) SetExportTaskId(v string) *CancelExportTaskInput {
  28288. s.ExportTaskId = &v
  28289. return s
  28290. }
  28291. type CancelExportTaskOutput struct {
  28292. _ struct{} `type:"structure"`
  28293. }
  28294. // String returns the string representation
  28295. func (s CancelExportTaskOutput) String() string {
  28296. return awsutil.Prettify(s)
  28297. }
  28298. // GoString returns the string representation
  28299. func (s CancelExportTaskOutput) GoString() string {
  28300. return s.String()
  28301. }
  28302. // Contains the parameters for CancelImportTask.
  28303. type CancelImportTaskInput struct {
  28304. _ struct{} `type:"structure"`
  28305. // The reason for canceling the task.
  28306. CancelReason *string `type:"string"`
  28307. // Checks whether you have the required permissions for the action, without
  28308. // actually making the request, and provides an error response. If you have
  28309. // the required permissions, the error response is DryRunOperation. Otherwise,
  28310. // it is UnauthorizedOperation.
  28311. DryRun *bool `type:"boolean"`
  28312. // The ID of the import image or import snapshot task to be canceled.
  28313. ImportTaskId *string `type:"string"`
  28314. }
  28315. // String returns the string representation
  28316. func (s CancelImportTaskInput) String() string {
  28317. return awsutil.Prettify(s)
  28318. }
  28319. // GoString returns the string representation
  28320. func (s CancelImportTaskInput) GoString() string {
  28321. return s.String()
  28322. }
  28323. // SetCancelReason sets the CancelReason field's value.
  28324. func (s *CancelImportTaskInput) SetCancelReason(v string) *CancelImportTaskInput {
  28325. s.CancelReason = &v
  28326. return s
  28327. }
  28328. // SetDryRun sets the DryRun field's value.
  28329. func (s *CancelImportTaskInput) SetDryRun(v bool) *CancelImportTaskInput {
  28330. s.DryRun = &v
  28331. return s
  28332. }
  28333. // SetImportTaskId sets the ImportTaskId field's value.
  28334. func (s *CancelImportTaskInput) SetImportTaskId(v string) *CancelImportTaskInput {
  28335. s.ImportTaskId = &v
  28336. return s
  28337. }
  28338. // Contains the output for CancelImportTask.
  28339. type CancelImportTaskOutput struct {
  28340. _ struct{} `type:"structure"`
  28341. // The ID of the task being canceled.
  28342. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  28343. // The current state of the task being canceled.
  28344. PreviousState *string `locationName:"previousState" type:"string"`
  28345. // The current state of the task being canceled.
  28346. State *string `locationName:"state" type:"string"`
  28347. }
  28348. // String returns the string representation
  28349. func (s CancelImportTaskOutput) String() string {
  28350. return awsutil.Prettify(s)
  28351. }
  28352. // GoString returns the string representation
  28353. func (s CancelImportTaskOutput) GoString() string {
  28354. return s.String()
  28355. }
  28356. // SetImportTaskId sets the ImportTaskId field's value.
  28357. func (s *CancelImportTaskOutput) SetImportTaskId(v string) *CancelImportTaskOutput {
  28358. s.ImportTaskId = &v
  28359. return s
  28360. }
  28361. // SetPreviousState sets the PreviousState field's value.
  28362. func (s *CancelImportTaskOutput) SetPreviousState(v string) *CancelImportTaskOutput {
  28363. s.PreviousState = &v
  28364. return s
  28365. }
  28366. // SetState sets the State field's value.
  28367. func (s *CancelImportTaskOutput) SetState(v string) *CancelImportTaskOutput {
  28368. s.State = &v
  28369. return s
  28370. }
  28371. // Contains the parameters for CancelReservedInstancesListing.
  28372. type CancelReservedInstancesListingInput struct {
  28373. _ struct{} `type:"structure"`
  28374. // The ID of the Reserved Instance listing.
  28375. //
  28376. // ReservedInstancesListingId is a required field
  28377. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string" required:"true"`
  28378. }
  28379. // String returns the string representation
  28380. func (s CancelReservedInstancesListingInput) String() string {
  28381. return awsutil.Prettify(s)
  28382. }
  28383. // GoString returns the string representation
  28384. func (s CancelReservedInstancesListingInput) GoString() string {
  28385. return s.String()
  28386. }
  28387. // Validate inspects the fields of the type to determine if they are valid.
  28388. func (s *CancelReservedInstancesListingInput) Validate() error {
  28389. invalidParams := request.ErrInvalidParams{Context: "CancelReservedInstancesListingInput"}
  28390. if s.ReservedInstancesListingId == nil {
  28391. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesListingId"))
  28392. }
  28393. if invalidParams.Len() > 0 {
  28394. return invalidParams
  28395. }
  28396. return nil
  28397. }
  28398. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  28399. func (s *CancelReservedInstancesListingInput) SetReservedInstancesListingId(v string) *CancelReservedInstancesListingInput {
  28400. s.ReservedInstancesListingId = &v
  28401. return s
  28402. }
  28403. // Contains the output of CancelReservedInstancesListing.
  28404. type CancelReservedInstancesListingOutput struct {
  28405. _ struct{} `type:"structure"`
  28406. // The Reserved Instance listing.
  28407. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  28408. }
  28409. // String returns the string representation
  28410. func (s CancelReservedInstancesListingOutput) String() string {
  28411. return awsutil.Prettify(s)
  28412. }
  28413. // GoString returns the string representation
  28414. func (s CancelReservedInstancesListingOutput) GoString() string {
  28415. return s.String()
  28416. }
  28417. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  28418. func (s *CancelReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CancelReservedInstancesListingOutput {
  28419. s.ReservedInstancesListings = v
  28420. return s
  28421. }
  28422. // Describes a Spot Fleet error.
  28423. type CancelSpotFleetRequestsError struct {
  28424. _ struct{} `type:"structure"`
  28425. // The error code.
  28426. Code *string `locationName:"code" type:"string" enum:"CancelBatchErrorCode"`
  28427. // The description for the error code.
  28428. Message *string `locationName:"message" type:"string"`
  28429. }
  28430. // String returns the string representation
  28431. func (s CancelSpotFleetRequestsError) String() string {
  28432. return awsutil.Prettify(s)
  28433. }
  28434. // GoString returns the string representation
  28435. func (s CancelSpotFleetRequestsError) GoString() string {
  28436. return s.String()
  28437. }
  28438. // SetCode sets the Code field's value.
  28439. func (s *CancelSpotFleetRequestsError) SetCode(v string) *CancelSpotFleetRequestsError {
  28440. s.Code = &v
  28441. return s
  28442. }
  28443. // SetMessage sets the Message field's value.
  28444. func (s *CancelSpotFleetRequestsError) SetMessage(v string) *CancelSpotFleetRequestsError {
  28445. s.Message = &v
  28446. return s
  28447. }
  28448. // Describes a Spot Fleet request that was not successfully canceled.
  28449. type CancelSpotFleetRequestsErrorItem struct {
  28450. _ struct{} `type:"structure"`
  28451. // The error.
  28452. Error *CancelSpotFleetRequestsError `locationName:"error" type:"structure"`
  28453. // The ID of the Spot Fleet request.
  28454. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
  28455. }
  28456. // String returns the string representation
  28457. func (s CancelSpotFleetRequestsErrorItem) String() string {
  28458. return awsutil.Prettify(s)
  28459. }
  28460. // GoString returns the string representation
  28461. func (s CancelSpotFleetRequestsErrorItem) GoString() string {
  28462. return s.String()
  28463. }
  28464. // SetError sets the Error field's value.
  28465. func (s *CancelSpotFleetRequestsErrorItem) SetError(v *CancelSpotFleetRequestsError) *CancelSpotFleetRequestsErrorItem {
  28466. s.Error = v
  28467. return s
  28468. }
  28469. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  28470. func (s *CancelSpotFleetRequestsErrorItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsErrorItem {
  28471. s.SpotFleetRequestId = &v
  28472. return s
  28473. }
  28474. // Contains the parameters for CancelSpotFleetRequests.
  28475. type CancelSpotFleetRequestsInput struct {
  28476. _ struct{} `type:"structure"`
  28477. // Checks whether you have the required permissions for the action, without
  28478. // actually making the request, and provides an error response. If you have
  28479. // the required permissions, the error response is DryRunOperation. Otherwise,
  28480. // it is UnauthorizedOperation.
  28481. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28482. // The IDs of the Spot Fleet requests.
  28483. //
  28484. // SpotFleetRequestIds is a required field
  28485. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list" required:"true"`
  28486. // Indicates whether to terminate instances for a Spot Fleet request if it is
  28487. // canceled successfully.
  28488. //
  28489. // TerminateInstances is a required field
  28490. TerminateInstances *bool `locationName:"terminateInstances" type:"boolean" required:"true"`
  28491. }
  28492. // String returns the string representation
  28493. func (s CancelSpotFleetRequestsInput) String() string {
  28494. return awsutil.Prettify(s)
  28495. }
  28496. // GoString returns the string representation
  28497. func (s CancelSpotFleetRequestsInput) GoString() string {
  28498. return s.String()
  28499. }
  28500. // Validate inspects the fields of the type to determine if they are valid.
  28501. func (s *CancelSpotFleetRequestsInput) Validate() error {
  28502. invalidParams := request.ErrInvalidParams{Context: "CancelSpotFleetRequestsInput"}
  28503. if s.SpotFleetRequestIds == nil {
  28504. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestIds"))
  28505. }
  28506. if s.TerminateInstances == nil {
  28507. invalidParams.Add(request.NewErrParamRequired("TerminateInstances"))
  28508. }
  28509. if invalidParams.Len() > 0 {
  28510. return invalidParams
  28511. }
  28512. return nil
  28513. }
  28514. // SetDryRun sets the DryRun field's value.
  28515. func (s *CancelSpotFleetRequestsInput) SetDryRun(v bool) *CancelSpotFleetRequestsInput {
  28516. s.DryRun = &v
  28517. return s
  28518. }
  28519. // SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value.
  28520. func (s *CancelSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *CancelSpotFleetRequestsInput {
  28521. s.SpotFleetRequestIds = v
  28522. return s
  28523. }
  28524. // SetTerminateInstances sets the TerminateInstances field's value.
  28525. func (s *CancelSpotFleetRequestsInput) SetTerminateInstances(v bool) *CancelSpotFleetRequestsInput {
  28526. s.TerminateInstances = &v
  28527. return s
  28528. }
  28529. // Contains the output of CancelSpotFleetRequests.
  28530. type CancelSpotFleetRequestsOutput struct {
  28531. _ struct{} `type:"structure"`
  28532. // Information about the Spot Fleet requests that are successfully canceled.
  28533. SuccessfulFleetRequests []*CancelSpotFleetRequestsSuccessItem `locationName:"successfulFleetRequestSet" locationNameList:"item" type:"list"`
  28534. // Information about the Spot Fleet requests that are not successfully canceled.
  28535. UnsuccessfulFleetRequests []*CancelSpotFleetRequestsErrorItem `locationName:"unsuccessfulFleetRequestSet" locationNameList:"item" type:"list"`
  28536. }
  28537. // String returns the string representation
  28538. func (s CancelSpotFleetRequestsOutput) String() string {
  28539. return awsutil.Prettify(s)
  28540. }
  28541. // GoString returns the string representation
  28542. func (s CancelSpotFleetRequestsOutput) GoString() string {
  28543. return s.String()
  28544. }
  28545. // SetSuccessfulFleetRequests sets the SuccessfulFleetRequests field's value.
  28546. func (s *CancelSpotFleetRequestsOutput) SetSuccessfulFleetRequests(v []*CancelSpotFleetRequestsSuccessItem) *CancelSpotFleetRequestsOutput {
  28547. s.SuccessfulFleetRequests = v
  28548. return s
  28549. }
  28550. // SetUnsuccessfulFleetRequests sets the UnsuccessfulFleetRequests field's value.
  28551. func (s *CancelSpotFleetRequestsOutput) SetUnsuccessfulFleetRequests(v []*CancelSpotFleetRequestsErrorItem) *CancelSpotFleetRequestsOutput {
  28552. s.UnsuccessfulFleetRequests = v
  28553. return s
  28554. }
  28555. // Describes a Spot Fleet request that was successfully canceled.
  28556. type CancelSpotFleetRequestsSuccessItem struct {
  28557. _ struct{} `type:"structure"`
  28558. // The current state of the Spot Fleet request.
  28559. CurrentSpotFleetRequestState *string `locationName:"currentSpotFleetRequestState" type:"string" enum:"BatchState"`
  28560. // The previous state of the Spot Fleet request.
  28561. PreviousSpotFleetRequestState *string `locationName:"previousSpotFleetRequestState" type:"string" enum:"BatchState"`
  28562. // The ID of the Spot Fleet request.
  28563. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
  28564. }
  28565. // String returns the string representation
  28566. func (s CancelSpotFleetRequestsSuccessItem) String() string {
  28567. return awsutil.Prettify(s)
  28568. }
  28569. // GoString returns the string representation
  28570. func (s CancelSpotFleetRequestsSuccessItem) GoString() string {
  28571. return s.String()
  28572. }
  28573. // SetCurrentSpotFleetRequestState sets the CurrentSpotFleetRequestState field's value.
  28574. func (s *CancelSpotFleetRequestsSuccessItem) SetCurrentSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem {
  28575. s.CurrentSpotFleetRequestState = &v
  28576. return s
  28577. }
  28578. // SetPreviousSpotFleetRequestState sets the PreviousSpotFleetRequestState field's value.
  28579. func (s *CancelSpotFleetRequestsSuccessItem) SetPreviousSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem {
  28580. s.PreviousSpotFleetRequestState = &v
  28581. return s
  28582. }
  28583. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  28584. func (s *CancelSpotFleetRequestsSuccessItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsSuccessItem {
  28585. s.SpotFleetRequestId = &v
  28586. return s
  28587. }
  28588. // Contains the parameters for CancelSpotInstanceRequests.
  28589. type CancelSpotInstanceRequestsInput struct {
  28590. _ struct{} `type:"structure"`
  28591. // Checks whether you have the required permissions for the action, without
  28592. // actually making the request, and provides an error response. If you have
  28593. // the required permissions, the error response is DryRunOperation. Otherwise,
  28594. // it is UnauthorizedOperation.
  28595. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28596. // One or more Spot Instance request IDs.
  28597. //
  28598. // SpotInstanceRequestIds is a required field
  28599. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list" required:"true"`
  28600. }
  28601. // String returns the string representation
  28602. func (s CancelSpotInstanceRequestsInput) String() string {
  28603. return awsutil.Prettify(s)
  28604. }
  28605. // GoString returns the string representation
  28606. func (s CancelSpotInstanceRequestsInput) GoString() string {
  28607. return s.String()
  28608. }
  28609. // Validate inspects the fields of the type to determine if they are valid.
  28610. func (s *CancelSpotInstanceRequestsInput) Validate() error {
  28611. invalidParams := request.ErrInvalidParams{Context: "CancelSpotInstanceRequestsInput"}
  28612. if s.SpotInstanceRequestIds == nil {
  28613. invalidParams.Add(request.NewErrParamRequired("SpotInstanceRequestIds"))
  28614. }
  28615. if invalidParams.Len() > 0 {
  28616. return invalidParams
  28617. }
  28618. return nil
  28619. }
  28620. // SetDryRun sets the DryRun field's value.
  28621. func (s *CancelSpotInstanceRequestsInput) SetDryRun(v bool) *CancelSpotInstanceRequestsInput {
  28622. s.DryRun = &v
  28623. return s
  28624. }
  28625. // SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value.
  28626. func (s *CancelSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *CancelSpotInstanceRequestsInput {
  28627. s.SpotInstanceRequestIds = v
  28628. return s
  28629. }
  28630. // Contains the output of CancelSpotInstanceRequests.
  28631. type CancelSpotInstanceRequestsOutput struct {
  28632. _ struct{} `type:"structure"`
  28633. // One or more Spot Instance requests.
  28634. CancelledSpotInstanceRequests []*CancelledSpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  28635. }
  28636. // String returns the string representation
  28637. func (s CancelSpotInstanceRequestsOutput) String() string {
  28638. return awsutil.Prettify(s)
  28639. }
  28640. // GoString returns the string representation
  28641. func (s CancelSpotInstanceRequestsOutput) GoString() string {
  28642. return s.String()
  28643. }
  28644. // SetCancelledSpotInstanceRequests sets the CancelledSpotInstanceRequests field's value.
  28645. func (s *CancelSpotInstanceRequestsOutput) SetCancelledSpotInstanceRequests(v []*CancelledSpotInstanceRequest) *CancelSpotInstanceRequestsOutput {
  28646. s.CancelledSpotInstanceRequests = v
  28647. return s
  28648. }
  28649. // Describes a request to cancel a Spot Instance.
  28650. type CancelledSpotInstanceRequest struct {
  28651. _ struct{} `type:"structure"`
  28652. // The ID of the Spot Instance request.
  28653. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  28654. // The state of the Spot Instance request.
  28655. State *string `locationName:"state" type:"string" enum:"CancelSpotInstanceRequestState"`
  28656. }
  28657. // String returns the string representation
  28658. func (s CancelledSpotInstanceRequest) String() string {
  28659. return awsutil.Prettify(s)
  28660. }
  28661. // GoString returns the string representation
  28662. func (s CancelledSpotInstanceRequest) GoString() string {
  28663. return s.String()
  28664. }
  28665. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  28666. func (s *CancelledSpotInstanceRequest) SetSpotInstanceRequestId(v string) *CancelledSpotInstanceRequest {
  28667. s.SpotInstanceRequestId = &v
  28668. return s
  28669. }
  28670. // SetState sets the State field's value.
  28671. func (s *CancelledSpotInstanceRequest) SetState(v string) *CancelledSpotInstanceRequest {
  28672. s.State = &v
  28673. return s
  28674. }
  28675. // Describes a Capacity Reservation.
  28676. type CapacityReservation struct {
  28677. _ struct{} `type:"structure"`
  28678. // The Availability Zone in which the capacity is reserved.
  28679. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  28680. // The remaining capacity. Indicates the number of instances that can be launched
  28681. // in the Capacity Reservation.
  28682. AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"`
  28683. // The ID of the Capacity Reservation.
  28684. CapacityReservationId *string `locationName:"capacityReservationId" type:"string"`
  28685. // The date and time at which the Capacity Reservation was created.
  28686. CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
  28687. // Indicates whether the Capacity Reservation supports EBS-optimized instances.
  28688. // This optimization provides dedicated throughput to Amazon EBS and an optimized
  28689. // configuration stack to provide optimal I/O performance. This optimization
  28690. // isn't available with all instance types. Additional usage charges apply when
  28691. // using an EBS- optimized instance.
  28692. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  28693. // The date and time at which the Capacity Reservation expires. When a Capacity
  28694. // Reservation expires, the reserved capacity is released and you can no longer
  28695. // launch instances into it. The Capacity Reservation's state changes to expired
  28696. // when it reaches its end date and time.
  28697. EndDate *time.Time `locationName:"endDate" type:"timestamp"`
  28698. // Indicates the way in which the Capacity Reservation ends. A Capacity Reservation
  28699. // can have one of the following end types:
  28700. //
  28701. // * unlimited - The Capacity Reservation remains active until you explicitly
  28702. // cancel it.
  28703. //
  28704. // * limited - The Capacity Reservation expires automatically at a specified
  28705. // date and time.
  28706. EndDateType *string `locationName:"endDateType" type:"string" enum:"EndDateType"`
  28707. // Indicates whether the Capacity Reservation supports instances with temporary,
  28708. // block-level storage.
  28709. EphemeralStorage *bool `locationName:"ephemeralStorage" type:"boolean"`
  28710. // Indicates the type of instance launches that the Capacity Reservation accepts.
  28711. // The options include:
  28712. //
  28713. // * open - The Capacity Reservation accepts all instances that have matching
  28714. // attributes (instance type, platform, and Availability Zone). Instances
  28715. // that have matching attributes launch into the Capacity Reservation automatically
  28716. // without specifying any additional parameters.
  28717. //
  28718. // * targeted - The Capacity Reservation only accepts instances that have
  28719. // matching attributes (instance type, platform, and Availability Zone),
  28720. // and explicitly target the Capacity Reservation. This ensures that only
  28721. // permitted instances can use the reserved capacity.
  28722. InstanceMatchCriteria *string `locationName:"instanceMatchCriteria" type:"string" enum:"InstanceMatchCriteria"`
  28723. // The type of operating system for which the Capacity Reservation reserves
  28724. // capacity.
  28725. InstancePlatform *string `locationName:"instancePlatform" type:"string" enum:"CapacityReservationInstancePlatform"`
  28726. // The type of instance for which the Capacity Reservation reserves capacity.
  28727. InstanceType *string `locationName:"instanceType" type:"string"`
  28728. // The current state of the Capacity Reservation. A Capacity Reservation can
  28729. // be in one of the following states:
  28730. //
  28731. // * active - The Capacity Reservation is active and the capacity is available
  28732. // for your use.
  28733. //
  28734. // * cancelled - The Capacity Reservation expired automatically at the date
  28735. // and time specified in your request. The reserved capacity is no longer
  28736. // available for your use.
  28737. //
  28738. // * expired - The Capacity Reservation was manually cancelled. The reserved
  28739. // capacity is no longer available for your use.
  28740. //
  28741. // * pending - The Capacity Reservation request was successful but the capacity
  28742. // provisioning is still pending.
  28743. //
  28744. // * failed - The Capacity Reservation request has failed. A request might
  28745. // fail due to invalid request parameters, capacity constraints, or instance
  28746. // limit constraints. Failed requests are retained for 60 minutes.
  28747. State *string `locationName:"state" type:"string" enum:"CapacityReservationState"`
  28748. // Any tags assigned to the Capacity Reservation.
  28749. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  28750. // Indicates the tenancy of the Capacity Reservation. A Capacity Reservation
  28751. // can have one of the following tenancy settings:
  28752. //
  28753. // * default - The Capacity Reservation is created on hardware that is shared
  28754. // with other AWS accounts.
  28755. //
  28756. // * dedicated - The Capacity Reservation is created on single-tenant hardware
  28757. // that is dedicated to a single AWS account.
  28758. Tenancy *string `locationName:"tenancy" type:"string" enum:"CapacityReservationTenancy"`
  28759. // The number of instances for which the Capacity Reservation reserves capacity.
  28760. TotalInstanceCount *int64 `locationName:"totalInstanceCount" type:"integer"`
  28761. }
  28762. // String returns the string representation
  28763. func (s CapacityReservation) String() string {
  28764. return awsutil.Prettify(s)
  28765. }
  28766. // GoString returns the string representation
  28767. func (s CapacityReservation) GoString() string {
  28768. return s.String()
  28769. }
  28770. // SetAvailabilityZone sets the AvailabilityZone field's value.
  28771. func (s *CapacityReservation) SetAvailabilityZone(v string) *CapacityReservation {
  28772. s.AvailabilityZone = &v
  28773. return s
  28774. }
  28775. // SetAvailableInstanceCount sets the AvailableInstanceCount field's value.
  28776. func (s *CapacityReservation) SetAvailableInstanceCount(v int64) *CapacityReservation {
  28777. s.AvailableInstanceCount = &v
  28778. return s
  28779. }
  28780. // SetCapacityReservationId sets the CapacityReservationId field's value.
  28781. func (s *CapacityReservation) SetCapacityReservationId(v string) *CapacityReservation {
  28782. s.CapacityReservationId = &v
  28783. return s
  28784. }
  28785. // SetCreateDate sets the CreateDate field's value.
  28786. func (s *CapacityReservation) SetCreateDate(v time.Time) *CapacityReservation {
  28787. s.CreateDate = &v
  28788. return s
  28789. }
  28790. // SetEbsOptimized sets the EbsOptimized field's value.
  28791. func (s *CapacityReservation) SetEbsOptimized(v bool) *CapacityReservation {
  28792. s.EbsOptimized = &v
  28793. return s
  28794. }
  28795. // SetEndDate sets the EndDate field's value.
  28796. func (s *CapacityReservation) SetEndDate(v time.Time) *CapacityReservation {
  28797. s.EndDate = &v
  28798. return s
  28799. }
  28800. // SetEndDateType sets the EndDateType field's value.
  28801. func (s *CapacityReservation) SetEndDateType(v string) *CapacityReservation {
  28802. s.EndDateType = &v
  28803. return s
  28804. }
  28805. // SetEphemeralStorage sets the EphemeralStorage field's value.
  28806. func (s *CapacityReservation) SetEphemeralStorage(v bool) *CapacityReservation {
  28807. s.EphemeralStorage = &v
  28808. return s
  28809. }
  28810. // SetInstanceMatchCriteria sets the InstanceMatchCriteria field's value.
  28811. func (s *CapacityReservation) SetInstanceMatchCriteria(v string) *CapacityReservation {
  28812. s.InstanceMatchCriteria = &v
  28813. return s
  28814. }
  28815. // SetInstancePlatform sets the InstancePlatform field's value.
  28816. func (s *CapacityReservation) SetInstancePlatform(v string) *CapacityReservation {
  28817. s.InstancePlatform = &v
  28818. return s
  28819. }
  28820. // SetInstanceType sets the InstanceType field's value.
  28821. func (s *CapacityReservation) SetInstanceType(v string) *CapacityReservation {
  28822. s.InstanceType = &v
  28823. return s
  28824. }
  28825. // SetState sets the State field's value.
  28826. func (s *CapacityReservation) SetState(v string) *CapacityReservation {
  28827. s.State = &v
  28828. return s
  28829. }
  28830. // SetTags sets the Tags field's value.
  28831. func (s *CapacityReservation) SetTags(v []*Tag) *CapacityReservation {
  28832. s.Tags = v
  28833. return s
  28834. }
  28835. // SetTenancy sets the Tenancy field's value.
  28836. func (s *CapacityReservation) SetTenancy(v string) *CapacityReservation {
  28837. s.Tenancy = &v
  28838. return s
  28839. }
  28840. // SetTotalInstanceCount sets the TotalInstanceCount field's value.
  28841. func (s *CapacityReservation) SetTotalInstanceCount(v int64) *CapacityReservation {
  28842. s.TotalInstanceCount = &v
  28843. return s
  28844. }
  28845. // Describes an instance's Capacity Reservation targeting option. You can specify
  28846. // only one option at a time. Use the CapacityReservationPreference parameter
  28847. // to configure the instance to run as an On-Demand Instance or to run in any
  28848. // open Capacity Reservation that has matching attributes (instance type, platform,
  28849. // Availability Zone). Use the CapacityReservationTarget parameter to explicitly
  28850. // target a specific Capacity Reservation.
  28851. type CapacityReservationSpecification struct {
  28852. _ struct{} `type:"structure"`
  28853. // Indicates the instance's Capacity Reservation preferences. Possible preferences
  28854. // include:
  28855. //
  28856. // * open - The instance can run in any open Capacity Reservation that has
  28857. // matching attributes (instance type, platform, Availability Zone).
  28858. //
  28859. // * none - The instance avoids running in a Capacity Reservation even if
  28860. // one is available. The instance runs as an On-Demand Instance.
  28861. CapacityReservationPreference *string `type:"string" enum:"CapacityReservationPreference"`
  28862. // Information about the target Capacity Reservation.
  28863. CapacityReservationTarget *CapacityReservationTarget `type:"structure"`
  28864. }
  28865. // String returns the string representation
  28866. func (s CapacityReservationSpecification) String() string {
  28867. return awsutil.Prettify(s)
  28868. }
  28869. // GoString returns the string representation
  28870. func (s CapacityReservationSpecification) GoString() string {
  28871. return s.String()
  28872. }
  28873. // SetCapacityReservationPreference sets the CapacityReservationPreference field's value.
  28874. func (s *CapacityReservationSpecification) SetCapacityReservationPreference(v string) *CapacityReservationSpecification {
  28875. s.CapacityReservationPreference = &v
  28876. return s
  28877. }
  28878. // SetCapacityReservationTarget sets the CapacityReservationTarget field's value.
  28879. func (s *CapacityReservationSpecification) SetCapacityReservationTarget(v *CapacityReservationTarget) *CapacityReservationSpecification {
  28880. s.CapacityReservationTarget = v
  28881. return s
  28882. }
  28883. // Describes the instance's Capacity Reservation targeting preferences. The
  28884. // action returns the capacityReservationPreference response element if the
  28885. // instance is configured to run in On-Demand capacity, or if it is configured
  28886. // in run in any open Capacity Reservation that has matching attributes (instance
  28887. // type, platform, Availability Zone). The action returns the capacityReservationTarget
  28888. // response element if the instance explicily targets a specific Capacity Reservation.
  28889. type CapacityReservationSpecificationResponse struct {
  28890. _ struct{} `type:"structure"`
  28891. // Describes the instance's Capacity Reservation preferences. Possible preferences
  28892. // include:
  28893. //
  28894. // * open - The instance can run in any open Capacity Reservation that has
  28895. // matching attributes (instance type, platform, Availability Zone).
  28896. //
  28897. // * none - The instance avoids running in a Capacity Reservation even if
  28898. // one is available. The instance runs in On-Demand capacity.
  28899. CapacityReservationPreference *string `locationName:"capacityReservationPreference" type:"string" enum:"CapacityReservationPreference"`
  28900. // Information about the targeted Capacity Reservation.
  28901. CapacityReservationTarget *CapacityReservationTargetResponse `locationName:"capacityReservationTarget" type:"structure"`
  28902. }
  28903. // String returns the string representation
  28904. func (s CapacityReservationSpecificationResponse) String() string {
  28905. return awsutil.Prettify(s)
  28906. }
  28907. // GoString returns the string representation
  28908. func (s CapacityReservationSpecificationResponse) GoString() string {
  28909. return s.String()
  28910. }
  28911. // SetCapacityReservationPreference sets the CapacityReservationPreference field's value.
  28912. func (s *CapacityReservationSpecificationResponse) SetCapacityReservationPreference(v string) *CapacityReservationSpecificationResponse {
  28913. s.CapacityReservationPreference = &v
  28914. return s
  28915. }
  28916. // SetCapacityReservationTarget sets the CapacityReservationTarget field's value.
  28917. func (s *CapacityReservationSpecificationResponse) SetCapacityReservationTarget(v *CapacityReservationTargetResponse) *CapacityReservationSpecificationResponse {
  28918. s.CapacityReservationTarget = v
  28919. return s
  28920. }
  28921. // Describes a target Capacity Reservation.
  28922. type CapacityReservationTarget struct {
  28923. _ struct{} `type:"structure"`
  28924. // The ID of the Capacity Reservation.
  28925. CapacityReservationId *string `type:"string"`
  28926. }
  28927. // String returns the string representation
  28928. func (s CapacityReservationTarget) String() string {
  28929. return awsutil.Prettify(s)
  28930. }
  28931. // GoString returns the string representation
  28932. func (s CapacityReservationTarget) GoString() string {
  28933. return s.String()
  28934. }
  28935. // SetCapacityReservationId sets the CapacityReservationId field's value.
  28936. func (s *CapacityReservationTarget) SetCapacityReservationId(v string) *CapacityReservationTarget {
  28937. s.CapacityReservationId = &v
  28938. return s
  28939. }
  28940. // Describes a target Capacity Reservation.
  28941. type CapacityReservationTargetResponse struct {
  28942. _ struct{} `type:"structure"`
  28943. // The ID of the Capacity Reservation.
  28944. CapacityReservationId *string `locationName:"capacityReservationId" type:"string"`
  28945. }
  28946. // String returns the string representation
  28947. func (s CapacityReservationTargetResponse) String() string {
  28948. return awsutil.Prettify(s)
  28949. }
  28950. // GoString returns the string representation
  28951. func (s CapacityReservationTargetResponse) GoString() string {
  28952. return s.String()
  28953. }
  28954. // SetCapacityReservationId sets the CapacityReservationId field's value.
  28955. func (s *CapacityReservationTargetResponse) SetCapacityReservationId(v string) *CapacityReservationTargetResponse {
  28956. s.CapacityReservationId = &v
  28957. return s
  28958. }
  28959. // Information about the client certificate used for authentication.
  28960. type CertificateAuthentication struct {
  28961. _ struct{} `type:"structure"`
  28962. // The ARN of the client certificate.
  28963. ClientRootCertificateChain *string `locationName:"clientRootCertificateChain" type:"string"`
  28964. }
  28965. // String returns the string representation
  28966. func (s CertificateAuthentication) String() string {
  28967. return awsutil.Prettify(s)
  28968. }
  28969. // GoString returns the string representation
  28970. func (s CertificateAuthentication) GoString() string {
  28971. return s.String()
  28972. }
  28973. // SetClientRootCertificateChain sets the ClientRootCertificateChain field's value.
  28974. func (s *CertificateAuthentication) SetClientRootCertificateChain(v string) *CertificateAuthentication {
  28975. s.ClientRootCertificateChain = &v
  28976. return s
  28977. }
  28978. // Information about the client certificate to be used for authentication.
  28979. type CertificateAuthenticationRequest struct {
  28980. _ struct{} `type:"structure"`
  28981. // The ARN of the client certificate. The certificate must be signed by a certificate
  28982. // authority (CA) and it must be provisioned in AWS Certificate Manager (ACM).
  28983. ClientRootCertificateChainArn *string `type:"string"`
  28984. }
  28985. // String returns the string representation
  28986. func (s CertificateAuthenticationRequest) String() string {
  28987. return awsutil.Prettify(s)
  28988. }
  28989. // GoString returns the string representation
  28990. func (s CertificateAuthenticationRequest) GoString() string {
  28991. return s.String()
  28992. }
  28993. // SetClientRootCertificateChainArn sets the ClientRootCertificateChainArn field's value.
  28994. func (s *CertificateAuthenticationRequest) SetClientRootCertificateChainArn(v string) *CertificateAuthenticationRequest {
  28995. s.ClientRootCertificateChainArn = &v
  28996. return s
  28997. }
  28998. // Provides authorization for Amazon to bring a specific IP address range to
  28999. // a specific AWS account using bring your own IP addresses (BYOIP).
  29000. type CidrAuthorizationContext struct {
  29001. _ struct{} `type:"structure"`
  29002. // The plain-text authorization message for the prefix and account.
  29003. //
  29004. // Message is a required field
  29005. Message *string `type:"string" required:"true"`
  29006. // The signed authorization message for the prefix and account.
  29007. //
  29008. // Signature is a required field
  29009. Signature *string `type:"string" required:"true"`
  29010. }
  29011. // String returns the string representation
  29012. func (s CidrAuthorizationContext) String() string {
  29013. return awsutil.Prettify(s)
  29014. }
  29015. // GoString returns the string representation
  29016. func (s CidrAuthorizationContext) GoString() string {
  29017. return s.String()
  29018. }
  29019. // Validate inspects the fields of the type to determine if they are valid.
  29020. func (s *CidrAuthorizationContext) Validate() error {
  29021. invalidParams := request.ErrInvalidParams{Context: "CidrAuthorizationContext"}
  29022. if s.Message == nil {
  29023. invalidParams.Add(request.NewErrParamRequired("Message"))
  29024. }
  29025. if s.Signature == nil {
  29026. invalidParams.Add(request.NewErrParamRequired("Signature"))
  29027. }
  29028. if invalidParams.Len() > 0 {
  29029. return invalidParams
  29030. }
  29031. return nil
  29032. }
  29033. // SetMessage sets the Message field's value.
  29034. func (s *CidrAuthorizationContext) SetMessage(v string) *CidrAuthorizationContext {
  29035. s.Message = &v
  29036. return s
  29037. }
  29038. // SetSignature sets the Signature field's value.
  29039. func (s *CidrAuthorizationContext) SetSignature(v string) *CidrAuthorizationContext {
  29040. s.Signature = &v
  29041. return s
  29042. }
  29043. // Describes an IPv4 CIDR block.
  29044. type CidrBlock struct {
  29045. _ struct{} `type:"structure"`
  29046. // The IPv4 CIDR block.
  29047. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  29048. }
  29049. // String returns the string representation
  29050. func (s CidrBlock) String() string {
  29051. return awsutil.Prettify(s)
  29052. }
  29053. // GoString returns the string representation
  29054. func (s CidrBlock) GoString() string {
  29055. return s.String()
  29056. }
  29057. // SetCidrBlock sets the CidrBlock field's value.
  29058. func (s *CidrBlock) SetCidrBlock(v string) *CidrBlock {
  29059. s.CidrBlock = &v
  29060. return s
  29061. }
  29062. // Describes the ClassicLink DNS support status of a VPC.
  29063. type ClassicLinkDnsSupport struct {
  29064. _ struct{} `type:"structure"`
  29065. // Indicates whether ClassicLink DNS support is enabled for the VPC.
  29066. ClassicLinkDnsSupported *bool `locationName:"classicLinkDnsSupported" type:"boolean"`
  29067. // The ID of the VPC.
  29068. VpcId *string `locationName:"vpcId" type:"string"`
  29069. }
  29070. // String returns the string representation
  29071. func (s ClassicLinkDnsSupport) String() string {
  29072. return awsutil.Prettify(s)
  29073. }
  29074. // GoString returns the string representation
  29075. func (s ClassicLinkDnsSupport) GoString() string {
  29076. return s.String()
  29077. }
  29078. // SetClassicLinkDnsSupported sets the ClassicLinkDnsSupported field's value.
  29079. func (s *ClassicLinkDnsSupport) SetClassicLinkDnsSupported(v bool) *ClassicLinkDnsSupport {
  29080. s.ClassicLinkDnsSupported = &v
  29081. return s
  29082. }
  29083. // SetVpcId sets the VpcId field's value.
  29084. func (s *ClassicLinkDnsSupport) SetVpcId(v string) *ClassicLinkDnsSupport {
  29085. s.VpcId = &v
  29086. return s
  29087. }
  29088. // Describes a linked EC2-Classic instance.
  29089. type ClassicLinkInstance struct {
  29090. _ struct{} `type:"structure"`
  29091. // A list of security groups.
  29092. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  29093. // The ID of the instance.
  29094. InstanceId *string `locationName:"instanceId" type:"string"`
  29095. // Any tags assigned to the instance.
  29096. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  29097. // The ID of the VPC.
  29098. VpcId *string `locationName:"vpcId" type:"string"`
  29099. }
  29100. // String returns the string representation
  29101. func (s ClassicLinkInstance) String() string {
  29102. return awsutil.Prettify(s)
  29103. }
  29104. // GoString returns the string representation
  29105. func (s ClassicLinkInstance) GoString() string {
  29106. return s.String()
  29107. }
  29108. // SetGroups sets the Groups field's value.
  29109. func (s *ClassicLinkInstance) SetGroups(v []*GroupIdentifier) *ClassicLinkInstance {
  29110. s.Groups = v
  29111. return s
  29112. }
  29113. // SetInstanceId sets the InstanceId field's value.
  29114. func (s *ClassicLinkInstance) SetInstanceId(v string) *ClassicLinkInstance {
  29115. s.InstanceId = &v
  29116. return s
  29117. }
  29118. // SetTags sets the Tags field's value.
  29119. func (s *ClassicLinkInstance) SetTags(v []*Tag) *ClassicLinkInstance {
  29120. s.Tags = v
  29121. return s
  29122. }
  29123. // SetVpcId sets the VpcId field's value.
  29124. func (s *ClassicLinkInstance) SetVpcId(v string) *ClassicLinkInstance {
  29125. s.VpcId = &v
  29126. return s
  29127. }
  29128. // Describes a Classic Load Balancer.
  29129. type ClassicLoadBalancer struct {
  29130. _ struct{} `type:"structure"`
  29131. // The name of the load balancer.
  29132. Name *string `locationName:"name" type:"string"`
  29133. }
  29134. // String returns the string representation
  29135. func (s ClassicLoadBalancer) String() string {
  29136. return awsutil.Prettify(s)
  29137. }
  29138. // GoString returns the string representation
  29139. func (s ClassicLoadBalancer) GoString() string {
  29140. return s.String()
  29141. }
  29142. // SetName sets the Name field's value.
  29143. func (s *ClassicLoadBalancer) SetName(v string) *ClassicLoadBalancer {
  29144. s.Name = &v
  29145. return s
  29146. }
  29147. // Describes the Classic Load Balancers to attach to a Spot Fleet. Spot Fleet
  29148. // registers the running Spot Instances with these Classic Load Balancers.
  29149. type ClassicLoadBalancersConfig struct {
  29150. _ struct{} `type:"structure"`
  29151. // One or more Classic Load Balancers.
  29152. ClassicLoadBalancers []*ClassicLoadBalancer `locationName:"classicLoadBalancers" locationNameList:"item" min:"1" type:"list"`
  29153. }
  29154. // String returns the string representation
  29155. func (s ClassicLoadBalancersConfig) String() string {
  29156. return awsutil.Prettify(s)
  29157. }
  29158. // GoString returns the string representation
  29159. func (s ClassicLoadBalancersConfig) GoString() string {
  29160. return s.String()
  29161. }
  29162. // Validate inspects the fields of the type to determine if they are valid.
  29163. func (s *ClassicLoadBalancersConfig) Validate() error {
  29164. invalidParams := request.ErrInvalidParams{Context: "ClassicLoadBalancersConfig"}
  29165. if s.ClassicLoadBalancers != nil && len(s.ClassicLoadBalancers) < 1 {
  29166. invalidParams.Add(request.NewErrParamMinLen("ClassicLoadBalancers", 1))
  29167. }
  29168. if invalidParams.Len() > 0 {
  29169. return invalidParams
  29170. }
  29171. return nil
  29172. }
  29173. // SetClassicLoadBalancers sets the ClassicLoadBalancers field's value.
  29174. func (s *ClassicLoadBalancersConfig) SetClassicLoadBalancers(v []*ClassicLoadBalancer) *ClassicLoadBalancersConfig {
  29175. s.ClassicLoadBalancers = v
  29176. return s
  29177. }
  29178. // Describes the state of a client certificate revocation list.
  29179. type ClientCertificateRevocationListStatus struct {
  29180. _ struct{} `type:"structure"`
  29181. // The state of the client certificate revocation list.
  29182. Code *string `locationName:"code" type:"string" enum:"ClientCertificateRevocationListStatusCode"`
  29183. // A message about the status of the client certificate revocation list, if
  29184. // applicable.
  29185. Message *string `locationName:"message" type:"string"`
  29186. }
  29187. // String returns the string representation
  29188. func (s ClientCertificateRevocationListStatus) String() string {
  29189. return awsutil.Prettify(s)
  29190. }
  29191. // GoString returns the string representation
  29192. func (s ClientCertificateRevocationListStatus) GoString() string {
  29193. return s.String()
  29194. }
  29195. // SetCode sets the Code field's value.
  29196. func (s *ClientCertificateRevocationListStatus) SetCode(v string) *ClientCertificateRevocationListStatus {
  29197. s.Code = &v
  29198. return s
  29199. }
  29200. // SetMessage sets the Message field's value.
  29201. func (s *ClientCertificateRevocationListStatus) SetMessage(v string) *ClientCertificateRevocationListStatus {
  29202. s.Message = &v
  29203. return s
  29204. }
  29205. // Describes the client-specific data.
  29206. type ClientData struct {
  29207. _ struct{} `type:"structure"`
  29208. // A user-defined comment about the disk upload.
  29209. Comment *string `type:"string"`
  29210. // The time that the disk upload ends.
  29211. UploadEnd *time.Time `type:"timestamp"`
  29212. // The size of the uploaded disk image, in GiB.
  29213. UploadSize *float64 `type:"double"`
  29214. // The time that the disk upload starts.
  29215. UploadStart *time.Time `type:"timestamp"`
  29216. }
  29217. // String returns the string representation
  29218. func (s ClientData) String() string {
  29219. return awsutil.Prettify(s)
  29220. }
  29221. // GoString returns the string representation
  29222. func (s ClientData) GoString() string {
  29223. return s.String()
  29224. }
  29225. // SetComment sets the Comment field's value.
  29226. func (s *ClientData) SetComment(v string) *ClientData {
  29227. s.Comment = &v
  29228. return s
  29229. }
  29230. // SetUploadEnd sets the UploadEnd field's value.
  29231. func (s *ClientData) SetUploadEnd(v time.Time) *ClientData {
  29232. s.UploadEnd = &v
  29233. return s
  29234. }
  29235. // SetUploadSize sets the UploadSize field's value.
  29236. func (s *ClientData) SetUploadSize(v float64) *ClientData {
  29237. s.UploadSize = &v
  29238. return s
  29239. }
  29240. // SetUploadStart sets the UploadStart field's value.
  29241. func (s *ClientData) SetUploadStart(v time.Time) *ClientData {
  29242. s.UploadStart = &v
  29243. return s
  29244. }
  29245. // Describes the authentication methods used by a Client VPN endpoint. Client
  29246. // VPN supports Active Directory and mutual authentication. For more information,
  29247. // see Authentication (vpn/latest/clientvpn-admin/authentication-authrization.html#client-authentication)
  29248. // in the AWS Client VPN Admin Guide.
  29249. type ClientVpnAuthentication struct {
  29250. _ struct{} `type:"structure"`
  29251. // Information about the Active Directory, if applicable.
  29252. ActiveDirectory *DirectoryServiceAuthentication `locationName:"activeDirectory" type:"structure"`
  29253. // Information about the authentication certificates, if applicable.
  29254. MutualAuthentication *CertificateAuthentication `locationName:"mutualAuthentication" type:"structure"`
  29255. // The authentication type used.
  29256. Type *string `locationName:"type" type:"string" enum:"ClientVpnAuthenticationType"`
  29257. }
  29258. // String returns the string representation
  29259. func (s ClientVpnAuthentication) String() string {
  29260. return awsutil.Prettify(s)
  29261. }
  29262. // GoString returns the string representation
  29263. func (s ClientVpnAuthentication) GoString() string {
  29264. return s.String()
  29265. }
  29266. // SetActiveDirectory sets the ActiveDirectory field's value.
  29267. func (s *ClientVpnAuthentication) SetActiveDirectory(v *DirectoryServiceAuthentication) *ClientVpnAuthentication {
  29268. s.ActiveDirectory = v
  29269. return s
  29270. }
  29271. // SetMutualAuthentication sets the MutualAuthentication field's value.
  29272. func (s *ClientVpnAuthentication) SetMutualAuthentication(v *CertificateAuthentication) *ClientVpnAuthentication {
  29273. s.MutualAuthentication = v
  29274. return s
  29275. }
  29276. // SetType sets the Type field's value.
  29277. func (s *ClientVpnAuthentication) SetType(v string) *ClientVpnAuthentication {
  29278. s.Type = &v
  29279. return s
  29280. }
  29281. // Describes the authentication method to be used by a Client VPN endpoint.
  29282. // Client VPN supports Active Directory and mutual authentication. For more
  29283. // information, see Authentication (vpn/latest/clientvpn-admin/authentication-authrization.html#client-authentication)
  29284. // in the AWS Client VPN Admin Guide.
  29285. type ClientVpnAuthenticationRequest struct {
  29286. _ struct{} `type:"structure"`
  29287. // Information about the Active Directory to be used, if applicable. You must
  29288. // provide this information if Type is directory-service-authentication.
  29289. ActiveDirectory *DirectoryServiceAuthenticationRequest `type:"structure"`
  29290. // Information about the authentication certificates to be used, if applicable.
  29291. // You must provide this information if Type is certificate-authentication.
  29292. MutualAuthentication *CertificateAuthenticationRequest `type:"structure"`
  29293. // The type of client authentication to be used. Specify certificate-authentication
  29294. // to use certificate-based authentication, or directory-service-authentication
  29295. // to use Active Directory authentication.
  29296. Type *string `type:"string" enum:"ClientVpnAuthenticationType"`
  29297. }
  29298. // String returns the string representation
  29299. func (s ClientVpnAuthenticationRequest) String() string {
  29300. return awsutil.Prettify(s)
  29301. }
  29302. // GoString returns the string representation
  29303. func (s ClientVpnAuthenticationRequest) GoString() string {
  29304. return s.String()
  29305. }
  29306. // SetActiveDirectory sets the ActiveDirectory field's value.
  29307. func (s *ClientVpnAuthenticationRequest) SetActiveDirectory(v *DirectoryServiceAuthenticationRequest) *ClientVpnAuthenticationRequest {
  29308. s.ActiveDirectory = v
  29309. return s
  29310. }
  29311. // SetMutualAuthentication sets the MutualAuthentication field's value.
  29312. func (s *ClientVpnAuthenticationRequest) SetMutualAuthentication(v *CertificateAuthenticationRequest) *ClientVpnAuthenticationRequest {
  29313. s.MutualAuthentication = v
  29314. return s
  29315. }
  29316. // SetType sets the Type field's value.
  29317. func (s *ClientVpnAuthenticationRequest) SetType(v string) *ClientVpnAuthenticationRequest {
  29318. s.Type = &v
  29319. return s
  29320. }
  29321. // Describes the state of an authorization rule.
  29322. type ClientVpnAuthorizationRuleStatus struct {
  29323. _ struct{} `type:"structure"`
  29324. // The state of the authorization rule.
  29325. Code *string `locationName:"code" type:"string" enum:"ClientVpnAuthorizationRuleStatusCode"`
  29326. // A message about the status of the authorization rule, if applicable.
  29327. Message *string `locationName:"message" type:"string"`
  29328. }
  29329. // String returns the string representation
  29330. func (s ClientVpnAuthorizationRuleStatus) String() string {
  29331. return awsutil.Prettify(s)
  29332. }
  29333. // GoString returns the string representation
  29334. func (s ClientVpnAuthorizationRuleStatus) GoString() string {
  29335. return s.String()
  29336. }
  29337. // SetCode sets the Code field's value.
  29338. func (s *ClientVpnAuthorizationRuleStatus) SetCode(v string) *ClientVpnAuthorizationRuleStatus {
  29339. s.Code = &v
  29340. return s
  29341. }
  29342. // SetMessage sets the Message field's value.
  29343. func (s *ClientVpnAuthorizationRuleStatus) SetMessage(v string) *ClientVpnAuthorizationRuleStatus {
  29344. s.Message = &v
  29345. return s
  29346. }
  29347. // Describes a client connection.
  29348. type ClientVpnConnection struct {
  29349. _ struct{} `type:"structure"`
  29350. // The IP address of the client.
  29351. ClientIp *string `locationName:"clientIp" type:"string"`
  29352. // The ID of the Client VPN endpoint to which the client is connected.
  29353. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  29354. // The common name associated with the client. This is either the name of the
  29355. // client certificate, or the Active Directory user name.
  29356. CommonName *string `locationName:"commonName" type:"string"`
  29357. // The date and time the client connection was terminated.
  29358. ConnectionEndTime *string `locationName:"connectionEndTime" type:"string"`
  29359. // The date and time the client connection was established.
  29360. ConnectionEstablishedTime *string `locationName:"connectionEstablishedTime" type:"string"`
  29361. // The ID of the client connection.
  29362. ConnectionId *string `locationName:"connectionId" type:"string"`
  29363. // The number of bytes received by the client.
  29364. EgressBytes *string `locationName:"egressBytes" type:"string"`
  29365. // The number of packets received by the client.
  29366. EgressPackets *string `locationName:"egressPackets" type:"string"`
  29367. // The number of bytes sent by the client.
  29368. IngressBytes *string `locationName:"ingressBytes" type:"string"`
  29369. // The number of packets sent by the client.
  29370. IngressPackets *string `locationName:"ingressPackets" type:"string"`
  29371. // The current state of the client connection.
  29372. Status *ClientVpnConnectionStatus `locationName:"status" type:"structure"`
  29373. // The current date and time.
  29374. Timestamp *string `locationName:"timestamp" type:"string"`
  29375. // The username of the client who established the client connection. This information
  29376. // is only provided if Active Directory client authentication is used.
  29377. Username *string `locationName:"username" type:"string"`
  29378. }
  29379. // String returns the string representation
  29380. func (s ClientVpnConnection) String() string {
  29381. return awsutil.Prettify(s)
  29382. }
  29383. // GoString returns the string representation
  29384. func (s ClientVpnConnection) GoString() string {
  29385. return s.String()
  29386. }
  29387. // SetClientIp sets the ClientIp field's value.
  29388. func (s *ClientVpnConnection) SetClientIp(v string) *ClientVpnConnection {
  29389. s.ClientIp = &v
  29390. return s
  29391. }
  29392. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  29393. func (s *ClientVpnConnection) SetClientVpnEndpointId(v string) *ClientVpnConnection {
  29394. s.ClientVpnEndpointId = &v
  29395. return s
  29396. }
  29397. // SetCommonName sets the CommonName field's value.
  29398. func (s *ClientVpnConnection) SetCommonName(v string) *ClientVpnConnection {
  29399. s.CommonName = &v
  29400. return s
  29401. }
  29402. // SetConnectionEndTime sets the ConnectionEndTime field's value.
  29403. func (s *ClientVpnConnection) SetConnectionEndTime(v string) *ClientVpnConnection {
  29404. s.ConnectionEndTime = &v
  29405. return s
  29406. }
  29407. // SetConnectionEstablishedTime sets the ConnectionEstablishedTime field's value.
  29408. func (s *ClientVpnConnection) SetConnectionEstablishedTime(v string) *ClientVpnConnection {
  29409. s.ConnectionEstablishedTime = &v
  29410. return s
  29411. }
  29412. // SetConnectionId sets the ConnectionId field's value.
  29413. func (s *ClientVpnConnection) SetConnectionId(v string) *ClientVpnConnection {
  29414. s.ConnectionId = &v
  29415. return s
  29416. }
  29417. // SetEgressBytes sets the EgressBytes field's value.
  29418. func (s *ClientVpnConnection) SetEgressBytes(v string) *ClientVpnConnection {
  29419. s.EgressBytes = &v
  29420. return s
  29421. }
  29422. // SetEgressPackets sets the EgressPackets field's value.
  29423. func (s *ClientVpnConnection) SetEgressPackets(v string) *ClientVpnConnection {
  29424. s.EgressPackets = &v
  29425. return s
  29426. }
  29427. // SetIngressBytes sets the IngressBytes field's value.
  29428. func (s *ClientVpnConnection) SetIngressBytes(v string) *ClientVpnConnection {
  29429. s.IngressBytes = &v
  29430. return s
  29431. }
  29432. // SetIngressPackets sets the IngressPackets field's value.
  29433. func (s *ClientVpnConnection) SetIngressPackets(v string) *ClientVpnConnection {
  29434. s.IngressPackets = &v
  29435. return s
  29436. }
  29437. // SetStatus sets the Status field's value.
  29438. func (s *ClientVpnConnection) SetStatus(v *ClientVpnConnectionStatus) *ClientVpnConnection {
  29439. s.Status = v
  29440. return s
  29441. }
  29442. // SetTimestamp sets the Timestamp field's value.
  29443. func (s *ClientVpnConnection) SetTimestamp(v string) *ClientVpnConnection {
  29444. s.Timestamp = &v
  29445. return s
  29446. }
  29447. // SetUsername sets the Username field's value.
  29448. func (s *ClientVpnConnection) SetUsername(v string) *ClientVpnConnection {
  29449. s.Username = &v
  29450. return s
  29451. }
  29452. // Describes the status of a client connection.
  29453. type ClientVpnConnectionStatus struct {
  29454. _ struct{} `type:"structure"`
  29455. // The state of the client connection.
  29456. Code *string `locationName:"code" type:"string" enum:"ClientVpnConnectionStatusCode"`
  29457. // A message about the status of the client connection, if applicable.
  29458. Message *string `locationName:"message" type:"string"`
  29459. }
  29460. // String returns the string representation
  29461. func (s ClientVpnConnectionStatus) String() string {
  29462. return awsutil.Prettify(s)
  29463. }
  29464. // GoString returns the string representation
  29465. func (s ClientVpnConnectionStatus) GoString() string {
  29466. return s.String()
  29467. }
  29468. // SetCode sets the Code field's value.
  29469. func (s *ClientVpnConnectionStatus) SetCode(v string) *ClientVpnConnectionStatus {
  29470. s.Code = &v
  29471. return s
  29472. }
  29473. // SetMessage sets the Message field's value.
  29474. func (s *ClientVpnConnectionStatus) SetMessage(v string) *ClientVpnConnectionStatus {
  29475. s.Message = &v
  29476. return s
  29477. }
  29478. // Describes a Client VPN endpoint.
  29479. type ClientVpnEndpoint struct {
  29480. _ struct{} `type:"structure"`
  29481. // Information about the associated target networks. A target network is a subnet
  29482. // in a VPC.
  29483. AssociatedTargetNetworks []*AssociatedTargetNetwork `locationName:"associatedTargetNetwork" locationNameList:"item" type:"list"`
  29484. // Information about the authentication method used by the Client VPN endpoint.
  29485. AuthenticationOptions []*ClientVpnAuthentication `locationName:"authenticationOptions" locationNameList:"item" type:"list"`
  29486. // The IPv4 address range, in CIDR notation, from which client IP addresses
  29487. // are assigned.
  29488. ClientCidrBlock *string `locationName:"clientCidrBlock" type:"string"`
  29489. // The ID of the Client VPN endpoint.
  29490. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  29491. // Information about the client connection logging options for the Client VPN
  29492. // endpoint.
  29493. ConnectionLogOptions *ConnectionLogResponseOptions `locationName:"connectionLogOptions" type:"structure"`
  29494. // The date and time the Client VPN endpoint was created.
  29495. CreationTime *string `locationName:"creationTime" type:"string"`
  29496. // The date and time the Client VPN endpoint was deleted, if applicable. Information
  29497. // about deleted Client VPN endpoints is retained for 24 hours, unless a new
  29498. // Client VPN is created with the same name.
  29499. DeletionTime *string `locationName:"deletionTime" type:"string"`
  29500. // A brief description of the endpoint.
  29501. Description *string `locationName:"description" type:"string"`
  29502. // The DNS name to be used by clients when establishing a connection.
  29503. DnsName *string `locationName:"dnsName" type:"string"`
  29504. // The ARN of the server certificate.
  29505. ServerCertificateArn *string `locationName:"serverCertificateArn" type:"string"`
  29506. // Indicates whether VPN split tunneling is supported.
  29507. SplitTunnel *bool `locationName:"splitTunnel" type:"boolean"`
  29508. // The current state of the Client VPN endpoint.
  29509. Status *ClientVpnEndpointStatus `locationName:"status" type:"structure"`
  29510. // The transport protocol used by the Client VPN endpoint.
  29511. TransportProtocol *string `locationName:"transportProtocol" type:"string" enum:"TransportProtocol"`
  29512. // The protocol used by the VPN session.
  29513. VpnProtocol *string `locationName:"vpnProtocol" type:"string" enum:"VpnProtocol"`
  29514. }
  29515. // String returns the string representation
  29516. func (s ClientVpnEndpoint) String() string {
  29517. return awsutil.Prettify(s)
  29518. }
  29519. // GoString returns the string representation
  29520. func (s ClientVpnEndpoint) GoString() string {
  29521. return s.String()
  29522. }
  29523. // SetAssociatedTargetNetworks sets the AssociatedTargetNetworks field's value.
  29524. func (s *ClientVpnEndpoint) SetAssociatedTargetNetworks(v []*AssociatedTargetNetwork) *ClientVpnEndpoint {
  29525. s.AssociatedTargetNetworks = v
  29526. return s
  29527. }
  29528. // SetAuthenticationOptions sets the AuthenticationOptions field's value.
  29529. func (s *ClientVpnEndpoint) SetAuthenticationOptions(v []*ClientVpnAuthentication) *ClientVpnEndpoint {
  29530. s.AuthenticationOptions = v
  29531. return s
  29532. }
  29533. // SetClientCidrBlock sets the ClientCidrBlock field's value.
  29534. func (s *ClientVpnEndpoint) SetClientCidrBlock(v string) *ClientVpnEndpoint {
  29535. s.ClientCidrBlock = &v
  29536. return s
  29537. }
  29538. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  29539. func (s *ClientVpnEndpoint) SetClientVpnEndpointId(v string) *ClientVpnEndpoint {
  29540. s.ClientVpnEndpointId = &v
  29541. return s
  29542. }
  29543. // SetConnectionLogOptions sets the ConnectionLogOptions field's value.
  29544. func (s *ClientVpnEndpoint) SetConnectionLogOptions(v *ConnectionLogResponseOptions) *ClientVpnEndpoint {
  29545. s.ConnectionLogOptions = v
  29546. return s
  29547. }
  29548. // SetCreationTime sets the CreationTime field's value.
  29549. func (s *ClientVpnEndpoint) SetCreationTime(v string) *ClientVpnEndpoint {
  29550. s.CreationTime = &v
  29551. return s
  29552. }
  29553. // SetDeletionTime sets the DeletionTime field's value.
  29554. func (s *ClientVpnEndpoint) SetDeletionTime(v string) *ClientVpnEndpoint {
  29555. s.DeletionTime = &v
  29556. return s
  29557. }
  29558. // SetDescription sets the Description field's value.
  29559. func (s *ClientVpnEndpoint) SetDescription(v string) *ClientVpnEndpoint {
  29560. s.Description = &v
  29561. return s
  29562. }
  29563. // SetDnsName sets the DnsName field's value.
  29564. func (s *ClientVpnEndpoint) SetDnsName(v string) *ClientVpnEndpoint {
  29565. s.DnsName = &v
  29566. return s
  29567. }
  29568. // SetServerCertificateArn sets the ServerCertificateArn field's value.
  29569. func (s *ClientVpnEndpoint) SetServerCertificateArn(v string) *ClientVpnEndpoint {
  29570. s.ServerCertificateArn = &v
  29571. return s
  29572. }
  29573. // SetSplitTunnel sets the SplitTunnel field's value.
  29574. func (s *ClientVpnEndpoint) SetSplitTunnel(v bool) *ClientVpnEndpoint {
  29575. s.SplitTunnel = &v
  29576. return s
  29577. }
  29578. // SetStatus sets the Status field's value.
  29579. func (s *ClientVpnEndpoint) SetStatus(v *ClientVpnEndpointStatus) *ClientVpnEndpoint {
  29580. s.Status = v
  29581. return s
  29582. }
  29583. // SetTransportProtocol sets the TransportProtocol field's value.
  29584. func (s *ClientVpnEndpoint) SetTransportProtocol(v string) *ClientVpnEndpoint {
  29585. s.TransportProtocol = &v
  29586. return s
  29587. }
  29588. // SetVpnProtocol sets the VpnProtocol field's value.
  29589. func (s *ClientVpnEndpoint) SetVpnProtocol(v string) *ClientVpnEndpoint {
  29590. s.VpnProtocol = &v
  29591. return s
  29592. }
  29593. // Describes the state of a Client VPN endpoint.
  29594. type ClientVpnEndpointStatus struct {
  29595. _ struct{} `type:"structure"`
  29596. // The state of the Client VPN endpoint. Possible states include:
  29597. //
  29598. // * pending-associate - The Client VPN endpoint has been created but no
  29599. // target networks have been associated. The Client VPN endpoint cannot accept
  29600. // connections.
  29601. //
  29602. // * available - The Client VPN endpoint has been created and a target network
  29603. // has been associated. The Client VPN endpoint can accept connections.
  29604. //
  29605. // * deleting - The Client VPN endpoint is being deleted. The Client VPN
  29606. // endpoint cannot accept connections.
  29607. //
  29608. // * deleted - The Client VPN endpoint has been deleted. The Client VPN endpoint
  29609. // cannot accept connections.
  29610. Code *string `locationName:"code" type:"string" enum:"ClientVpnEndpointStatusCode"`
  29611. // A message about the status of the Client VPN endpoint.
  29612. Message *string `locationName:"message" type:"string"`
  29613. }
  29614. // String returns the string representation
  29615. func (s ClientVpnEndpointStatus) String() string {
  29616. return awsutil.Prettify(s)
  29617. }
  29618. // GoString returns the string representation
  29619. func (s ClientVpnEndpointStatus) GoString() string {
  29620. return s.String()
  29621. }
  29622. // SetCode sets the Code field's value.
  29623. func (s *ClientVpnEndpointStatus) SetCode(v string) *ClientVpnEndpointStatus {
  29624. s.Code = &v
  29625. return s
  29626. }
  29627. // SetMessage sets the Message field's value.
  29628. func (s *ClientVpnEndpointStatus) SetMessage(v string) *ClientVpnEndpointStatus {
  29629. s.Message = &v
  29630. return s
  29631. }
  29632. // Information about a Client VPN endpoint route.
  29633. type ClientVpnRoute struct {
  29634. _ struct{} `type:"structure"`
  29635. // The ID of the Client VPN endpoint with which the route is associated.
  29636. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  29637. // A brief description of the route.
  29638. Description *string `locationName:"description" type:"string"`
  29639. // The IPv4 address range, in CIDR notation, of the route destination.
  29640. DestinationCidr *string `locationName:"destinationCidr" type:"string"`
  29641. // Indicates how the route was associated with the Client VPN endpoint. associate
  29642. // indicates that the route was automatically added when the target network
  29643. // was associated with the Client VPN endpoint. add-route indicates that the
  29644. // route was manually added using the CreateClientVpnRoute action.
  29645. Origin *string `locationName:"origin" type:"string"`
  29646. // The current state of the route.
  29647. Status *ClientVpnRouteStatus `locationName:"status" type:"structure"`
  29648. // The ID of the subnet through which traffic is routed.
  29649. TargetSubnet *string `locationName:"targetSubnet" type:"string"`
  29650. // The route type.
  29651. Type *string `locationName:"type" type:"string"`
  29652. }
  29653. // String returns the string representation
  29654. func (s ClientVpnRoute) String() string {
  29655. return awsutil.Prettify(s)
  29656. }
  29657. // GoString returns the string representation
  29658. func (s ClientVpnRoute) GoString() string {
  29659. return s.String()
  29660. }
  29661. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  29662. func (s *ClientVpnRoute) SetClientVpnEndpointId(v string) *ClientVpnRoute {
  29663. s.ClientVpnEndpointId = &v
  29664. return s
  29665. }
  29666. // SetDescription sets the Description field's value.
  29667. func (s *ClientVpnRoute) SetDescription(v string) *ClientVpnRoute {
  29668. s.Description = &v
  29669. return s
  29670. }
  29671. // SetDestinationCidr sets the DestinationCidr field's value.
  29672. func (s *ClientVpnRoute) SetDestinationCidr(v string) *ClientVpnRoute {
  29673. s.DestinationCidr = &v
  29674. return s
  29675. }
  29676. // SetOrigin sets the Origin field's value.
  29677. func (s *ClientVpnRoute) SetOrigin(v string) *ClientVpnRoute {
  29678. s.Origin = &v
  29679. return s
  29680. }
  29681. // SetStatus sets the Status field's value.
  29682. func (s *ClientVpnRoute) SetStatus(v *ClientVpnRouteStatus) *ClientVpnRoute {
  29683. s.Status = v
  29684. return s
  29685. }
  29686. // SetTargetSubnet sets the TargetSubnet field's value.
  29687. func (s *ClientVpnRoute) SetTargetSubnet(v string) *ClientVpnRoute {
  29688. s.TargetSubnet = &v
  29689. return s
  29690. }
  29691. // SetType sets the Type field's value.
  29692. func (s *ClientVpnRoute) SetType(v string) *ClientVpnRoute {
  29693. s.Type = &v
  29694. return s
  29695. }
  29696. // Describes the state of a Client VPN endpoint route.
  29697. type ClientVpnRouteStatus struct {
  29698. _ struct{} `type:"structure"`
  29699. // The state of the Client VPN endpoint route.
  29700. Code *string `locationName:"code" type:"string" enum:"ClientVpnRouteStatusCode"`
  29701. // A message about the status of the Client VPN endpoint route, if applicable.
  29702. Message *string `locationName:"message" type:"string"`
  29703. }
  29704. // String returns the string representation
  29705. func (s ClientVpnRouteStatus) String() string {
  29706. return awsutil.Prettify(s)
  29707. }
  29708. // GoString returns the string representation
  29709. func (s ClientVpnRouteStatus) GoString() string {
  29710. return s.String()
  29711. }
  29712. // SetCode sets the Code field's value.
  29713. func (s *ClientVpnRouteStatus) SetCode(v string) *ClientVpnRouteStatus {
  29714. s.Code = &v
  29715. return s
  29716. }
  29717. // SetMessage sets the Message field's value.
  29718. func (s *ClientVpnRouteStatus) SetMessage(v string) *ClientVpnRouteStatus {
  29719. s.Message = &v
  29720. return s
  29721. }
  29722. type ConfirmProductInstanceInput struct {
  29723. _ struct{} `type:"structure"`
  29724. // Checks whether you have the required permissions for the action, without
  29725. // actually making the request, and provides an error response. If you have
  29726. // the required permissions, the error response is DryRunOperation. Otherwise,
  29727. // it is UnauthorizedOperation.
  29728. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29729. // The ID of the instance.
  29730. //
  29731. // InstanceId is a required field
  29732. InstanceId *string `type:"string" required:"true"`
  29733. // The product code. This must be a product code that you own.
  29734. //
  29735. // ProductCode is a required field
  29736. ProductCode *string `type:"string" required:"true"`
  29737. }
  29738. // String returns the string representation
  29739. func (s ConfirmProductInstanceInput) String() string {
  29740. return awsutil.Prettify(s)
  29741. }
  29742. // GoString returns the string representation
  29743. func (s ConfirmProductInstanceInput) GoString() string {
  29744. return s.String()
  29745. }
  29746. // Validate inspects the fields of the type to determine if they are valid.
  29747. func (s *ConfirmProductInstanceInput) Validate() error {
  29748. invalidParams := request.ErrInvalidParams{Context: "ConfirmProductInstanceInput"}
  29749. if s.InstanceId == nil {
  29750. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  29751. }
  29752. if s.ProductCode == nil {
  29753. invalidParams.Add(request.NewErrParamRequired("ProductCode"))
  29754. }
  29755. if invalidParams.Len() > 0 {
  29756. return invalidParams
  29757. }
  29758. return nil
  29759. }
  29760. // SetDryRun sets the DryRun field's value.
  29761. func (s *ConfirmProductInstanceInput) SetDryRun(v bool) *ConfirmProductInstanceInput {
  29762. s.DryRun = &v
  29763. return s
  29764. }
  29765. // SetInstanceId sets the InstanceId field's value.
  29766. func (s *ConfirmProductInstanceInput) SetInstanceId(v string) *ConfirmProductInstanceInput {
  29767. s.InstanceId = &v
  29768. return s
  29769. }
  29770. // SetProductCode sets the ProductCode field's value.
  29771. func (s *ConfirmProductInstanceInput) SetProductCode(v string) *ConfirmProductInstanceInput {
  29772. s.ProductCode = &v
  29773. return s
  29774. }
  29775. type ConfirmProductInstanceOutput struct {
  29776. _ struct{} `type:"structure"`
  29777. // The AWS account ID of the instance owner. This is only present if the product
  29778. // code is attached to the instance.
  29779. OwnerId *string `locationName:"ownerId" type:"string"`
  29780. // The return value of the request. Returns true if the specified product code
  29781. // is owned by the requester and associated with the specified instance.
  29782. Return *bool `locationName:"return" type:"boolean"`
  29783. }
  29784. // String returns the string representation
  29785. func (s ConfirmProductInstanceOutput) String() string {
  29786. return awsutil.Prettify(s)
  29787. }
  29788. // GoString returns the string representation
  29789. func (s ConfirmProductInstanceOutput) GoString() string {
  29790. return s.String()
  29791. }
  29792. // SetOwnerId sets the OwnerId field's value.
  29793. func (s *ConfirmProductInstanceOutput) SetOwnerId(v string) *ConfirmProductInstanceOutput {
  29794. s.OwnerId = &v
  29795. return s
  29796. }
  29797. // SetReturn sets the Return field's value.
  29798. func (s *ConfirmProductInstanceOutput) SetReturn(v bool) *ConfirmProductInstanceOutput {
  29799. s.Return = &v
  29800. return s
  29801. }
  29802. // Describes the client connection logging options for the Client VPN endpoint.
  29803. type ConnectionLogOptions struct {
  29804. _ struct{} `type:"structure"`
  29805. // The name of the CloudWatch Logs log group.
  29806. CloudwatchLogGroup *string `type:"string"`
  29807. // The name of the CloudWatch Logs log stream to which the connection data is
  29808. // published.
  29809. CloudwatchLogStream *string `type:"string"`
  29810. // Indicates whether connection logging is enabled.
  29811. Enabled *bool `type:"boolean"`
  29812. }
  29813. // String returns the string representation
  29814. func (s ConnectionLogOptions) String() string {
  29815. return awsutil.Prettify(s)
  29816. }
  29817. // GoString returns the string representation
  29818. func (s ConnectionLogOptions) GoString() string {
  29819. return s.String()
  29820. }
  29821. // SetCloudwatchLogGroup sets the CloudwatchLogGroup field's value.
  29822. func (s *ConnectionLogOptions) SetCloudwatchLogGroup(v string) *ConnectionLogOptions {
  29823. s.CloudwatchLogGroup = &v
  29824. return s
  29825. }
  29826. // SetCloudwatchLogStream sets the CloudwatchLogStream field's value.
  29827. func (s *ConnectionLogOptions) SetCloudwatchLogStream(v string) *ConnectionLogOptions {
  29828. s.CloudwatchLogStream = &v
  29829. return s
  29830. }
  29831. // SetEnabled sets the Enabled field's value.
  29832. func (s *ConnectionLogOptions) SetEnabled(v bool) *ConnectionLogOptions {
  29833. s.Enabled = &v
  29834. return s
  29835. }
  29836. // Information about the client connection logging options for a Client VPN
  29837. // endpoint.
  29838. type ConnectionLogResponseOptions struct {
  29839. _ struct{} `type:"structure"`
  29840. // The name of the Amazon CloudWatch Logs log group to which connection logging
  29841. // data is published.
  29842. CloudwatchLogGroup *string `type:"string"`
  29843. // The name of the Amazon CloudWatch Logs log stream to which connection logging
  29844. // data is published.
  29845. CloudwatchLogStream *string `type:"string"`
  29846. // Indicates whether client connection logging is enabled for the Client VPN
  29847. // endpoint.
  29848. Enabled *bool `type:"boolean"`
  29849. }
  29850. // String returns the string representation
  29851. func (s ConnectionLogResponseOptions) String() string {
  29852. return awsutil.Prettify(s)
  29853. }
  29854. // GoString returns the string representation
  29855. func (s ConnectionLogResponseOptions) GoString() string {
  29856. return s.String()
  29857. }
  29858. // SetCloudwatchLogGroup sets the CloudwatchLogGroup field's value.
  29859. func (s *ConnectionLogResponseOptions) SetCloudwatchLogGroup(v string) *ConnectionLogResponseOptions {
  29860. s.CloudwatchLogGroup = &v
  29861. return s
  29862. }
  29863. // SetCloudwatchLogStream sets the CloudwatchLogStream field's value.
  29864. func (s *ConnectionLogResponseOptions) SetCloudwatchLogStream(v string) *ConnectionLogResponseOptions {
  29865. s.CloudwatchLogStream = &v
  29866. return s
  29867. }
  29868. // SetEnabled sets the Enabled field's value.
  29869. func (s *ConnectionLogResponseOptions) SetEnabled(v bool) *ConnectionLogResponseOptions {
  29870. s.Enabled = &v
  29871. return s
  29872. }
  29873. // Describes a connection notification for a VPC endpoint or VPC endpoint service.
  29874. type ConnectionNotification struct {
  29875. _ struct{} `type:"structure"`
  29876. // The events for the notification. Valid values are Accept, Connect, Delete,
  29877. // and Reject.
  29878. ConnectionEvents []*string `locationName:"connectionEvents" locationNameList:"item" type:"list"`
  29879. // The ARN of the SNS topic for the notification.
  29880. ConnectionNotificationArn *string `locationName:"connectionNotificationArn" type:"string"`
  29881. // The ID of the notification.
  29882. ConnectionNotificationId *string `locationName:"connectionNotificationId" type:"string"`
  29883. // The state of the notification.
  29884. ConnectionNotificationState *string `locationName:"connectionNotificationState" type:"string" enum:"ConnectionNotificationState"`
  29885. // The type of notification.
  29886. ConnectionNotificationType *string `locationName:"connectionNotificationType" type:"string" enum:"ConnectionNotificationType"`
  29887. // The ID of the endpoint service.
  29888. ServiceId *string `locationName:"serviceId" type:"string"`
  29889. // The ID of the VPC endpoint.
  29890. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  29891. }
  29892. // String returns the string representation
  29893. func (s ConnectionNotification) String() string {
  29894. return awsutil.Prettify(s)
  29895. }
  29896. // GoString returns the string representation
  29897. func (s ConnectionNotification) GoString() string {
  29898. return s.String()
  29899. }
  29900. // SetConnectionEvents sets the ConnectionEvents field's value.
  29901. func (s *ConnectionNotification) SetConnectionEvents(v []*string) *ConnectionNotification {
  29902. s.ConnectionEvents = v
  29903. return s
  29904. }
  29905. // SetConnectionNotificationArn sets the ConnectionNotificationArn field's value.
  29906. func (s *ConnectionNotification) SetConnectionNotificationArn(v string) *ConnectionNotification {
  29907. s.ConnectionNotificationArn = &v
  29908. return s
  29909. }
  29910. // SetConnectionNotificationId sets the ConnectionNotificationId field's value.
  29911. func (s *ConnectionNotification) SetConnectionNotificationId(v string) *ConnectionNotification {
  29912. s.ConnectionNotificationId = &v
  29913. return s
  29914. }
  29915. // SetConnectionNotificationState sets the ConnectionNotificationState field's value.
  29916. func (s *ConnectionNotification) SetConnectionNotificationState(v string) *ConnectionNotification {
  29917. s.ConnectionNotificationState = &v
  29918. return s
  29919. }
  29920. // SetConnectionNotificationType sets the ConnectionNotificationType field's value.
  29921. func (s *ConnectionNotification) SetConnectionNotificationType(v string) *ConnectionNotification {
  29922. s.ConnectionNotificationType = &v
  29923. return s
  29924. }
  29925. // SetServiceId sets the ServiceId field's value.
  29926. func (s *ConnectionNotification) SetServiceId(v string) *ConnectionNotification {
  29927. s.ServiceId = &v
  29928. return s
  29929. }
  29930. // SetVpcEndpointId sets the VpcEndpointId field's value.
  29931. func (s *ConnectionNotification) SetVpcEndpointId(v string) *ConnectionNotification {
  29932. s.VpcEndpointId = &v
  29933. return s
  29934. }
  29935. // Describes a conversion task.
  29936. type ConversionTask struct {
  29937. _ struct{} `type:"structure"`
  29938. // The ID of the conversion task.
  29939. ConversionTaskId *string `locationName:"conversionTaskId" type:"string"`
  29940. // The time when the task expires. If the upload isn't complete before the expiration
  29941. // time, we automatically cancel the task.
  29942. ExpirationTime *string `locationName:"expirationTime" type:"string"`
  29943. // If the task is for importing an instance, this contains information about
  29944. // the import instance task.
  29945. ImportInstance *ImportInstanceTaskDetails `locationName:"importInstance" type:"structure"`
  29946. // If the task is for importing a volume, this contains information about the
  29947. // import volume task.
  29948. ImportVolume *ImportVolumeTaskDetails `locationName:"importVolume" type:"structure"`
  29949. // The state of the conversion task.
  29950. State *string `locationName:"state" type:"string" enum:"ConversionTaskState"`
  29951. // The status message related to the conversion task.
  29952. StatusMessage *string `locationName:"statusMessage" type:"string"`
  29953. // Any tags assigned to the task.
  29954. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  29955. }
  29956. // String returns the string representation
  29957. func (s ConversionTask) String() string {
  29958. return awsutil.Prettify(s)
  29959. }
  29960. // GoString returns the string representation
  29961. func (s ConversionTask) GoString() string {
  29962. return s.String()
  29963. }
  29964. // SetConversionTaskId sets the ConversionTaskId field's value.
  29965. func (s *ConversionTask) SetConversionTaskId(v string) *ConversionTask {
  29966. s.ConversionTaskId = &v
  29967. return s
  29968. }
  29969. // SetExpirationTime sets the ExpirationTime field's value.
  29970. func (s *ConversionTask) SetExpirationTime(v string) *ConversionTask {
  29971. s.ExpirationTime = &v
  29972. return s
  29973. }
  29974. // SetImportInstance sets the ImportInstance field's value.
  29975. func (s *ConversionTask) SetImportInstance(v *ImportInstanceTaskDetails) *ConversionTask {
  29976. s.ImportInstance = v
  29977. return s
  29978. }
  29979. // SetImportVolume sets the ImportVolume field's value.
  29980. func (s *ConversionTask) SetImportVolume(v *ImportVolumeTaskDetails) *ConversionTask {
  29981. s.ImportVolume = v
  29982. return s
  29983. }
  29984. // SetState sets the State field's value.
  29985. func (s *ConversionTask) SetState(v string) *ConversionTask {
  29986. s.State = &v
  29987. return s
  29988. }
  29989. // SetStatusMessage sets the StatusMessage field's value.
  29990. func (s *ConversionTask) SetStatusMessage(v string) *ConversionTask {
  29991. s.StatusMessage = &v
  29992. return s
  29993. }
  29994. // SetTags sets the Tags field's value.
  29995. func (s *ConversionTask) SetTags(v []*Tag) *ConversionTask {
  29996. s.Tags = v
  29997. return s
  29998. }
  29999. type CopyFpgaImageInput struct {
  30000. _ struct{} `type:"structure"`
  30001. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  30002. // of the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  30003. ClientToken *string `type:"string"`
  30004. // The description for the new AFI.
  30005. Description *string `type:"string"`
  30006. // Checks whether you have the required permissions for the action, without
  30007. // actually making the request, and provides an error response. If you have
  30008. // the required permissions, the error response is DryRunOperation. Otherwise,
  30009. // it is UnauthorizedOperation.
  30010. DryRun *bool `type:"boolean"`
  30011. // The name for the new AFI. The default is the name of the source AFI.
  30012. Name *string `type:"string"`
  30013. // The ID of the source AFI.
  30014. //
  30015. // SourceFpgaImageId is a required field
  30016. SourceFpgaImageId *string `type:"string" required:"true"`
  30017. // The region that contains the source AFI.
  30018. //
  30019. // SourceRegion is a required field
  30020. SourceRegion *string `type:"string" required:"true"`
  30021. }
  30022. // String returns the string representation
  30023. func (s CopyFpgaImageInput) String() string {
  30024. return awsutil.Prettify(s)
  30025. }
  30026. // GoString returns the string representation
  30027. func (s CopyFpgaImageInput) GoString() string {
  30028. return s.String()
  30029. }
  30030. // Validate inspects the fields of the type to determine if they are valid.
  30031. func (s *CopyFpgaImageInput) Validate() error {
  30032. invalidParams := request.ErrInvalidParams{Context: "CopyFpgaImageInput"}
  30033. if s.SourceFpgaImageId == nil {
  30034. invalidParams.Add(request.NewErrParamRequired("SourceFpgaImageId"))
  30035. }
  30036. if s.SourceRegion == nil {
  30037. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  30038. }
  30039. if invalidParams.Len() > 0 {
  30040. return invalidParams
  30041. }
  30042. return nil
  30043. }
  30044. // SetClientToken sets the ClientToken field's value.
  30045. func (s *CopyFpgaImageInput) SetClientToken(v string) *CopyFpgaImageInput {
  30046. s.ClientToken = &v
  30047. return s
  30048. }
  30049. // SetDescription sets the Description field's value.
  30050. func (s *CopyFpgaImageInput) SetDescription(v string) *CopyFpgaImageInput {
  30051. s.Description = &v
  30052. return s
  30053. }
  30054. // SetDryRun sets the DryRun field's value.
  30055. func (s *CopyFpgaImageInput) SetDryRun(v bool) *CopyFpgaImageInput {
  30056. s.DryRun = &v
  30057. return s
  30058. }
  30059. // SetName sets the Name field's value.
  30060. func (s *CopyFpgaImageInput) SetName(v string) *CopyFpgaImageInput {
  30061. s.Name = &v
  30062. return s
  30063. }
  30064. // SetSourceFpgaImageId sets the SourceFpgaImageId field's value.
  30065. func (s *CopyFpgaImageInput) SetSourceFpgaImageId(v string) *CopyFpgaImageInput {
  30066. s.SourceFpgaImageId = &v
  30067. return s
  30068. }
  30069. // SetSourceRegion sets the SourceRegion field's value.
  30070. func (s *CopyFpgaImageInput) SetSourceRegion(v string) *CopyFpgaImageInput {
  30071. s.SourceRegion = &v
  30072. return s
  30073. }
  30074. type CopyFpgaImageOutput struct {
  30075. _ struct{} `type:"structure"`
  30076. // The ID of the new AFI.
  30077. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  30078. }
  30079. // String returns the string representation
  30080. func (s CopyFpgaImageOutput) String() string {
  30081. return awsutil.Prettify(s)
  30082. }
  30083. // GoString returns the string representation
  30084. func (s CopyFpgaImageOutput) GoString() string {
  30085. return s.String()
  30086. }
  30087. // SetFpgaImageId sets the FpgaImageId field's value.
  30088. func (s *CopyFpgaImageOutput) SetFpgaImageId(v string) *CopyFpgaImageOutput {
  30089. s.FpgaImageId = &v
  30090. return s
  30091. }
  30092. // Contains the parameters for CopyImage.
  30093. type CopyImageInput struct {
  30094. _ struct{} `type:"structure"`
  30095. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  30096. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  30097. // in the Amazon Elastic Compute Cloud User Guide.
  30098. ClientToken *string `type:"string"`
  30099. // A description for the new AMI in the destination region.
  30100. Description *string `type:"string"`
  30101. // Checks whether you have the required permissions for the action, without
  30102. // actually making the request, and provides an error response. If you have
  30103. // the required permissions, the error response is DryRunOperation. Otherwise,
  30104. // it is UnauthorizedOperation.
  30105. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30106. // Specifies whether the destination snapshots of the copied image should be
  30107. // encrypted. You can encrypt a copy of an unencrypted snapshot, but you cannot
  30108. // create an unencrypted copy of an encrypted snapshot. The default CMK for
  30109. // EBS is used unless you specify a non-default AWS Key Management Service (AWS
  30110. // KMS) CMK using KmsKeyId. For more information, see Amazon EBS Encryption
  30111. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in
  30112. // the Amazon Elastic Compute Cloud User Guide.
  30113. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  30114. // An identifier for the AWS Key Management Service (AWS KMS) customer master
  30115. // key (CMK) to use when creating the encrypted volume. This parameter is only
  30116. // required if you want to use a non-default CMK; if this parameter is not specified,
  30117. // the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted
  30118. // flag must also be set.
  30119. //
  30120. // The CMK identifier may be provided in any of the following formats:
  30121. //
  30122. // * Key ID
  30123. //
  30124. // * Key alias, in the form alias/ExampleAlias
  30125. //
  30126. // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
  30127. // by the region of the CMK, the AWS account ID of the CMK owner, the key
  30128. // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  30129. //
  30130. //
  30131. // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
  30132. // followed by the region of the CMK, the AWS account ID of the CMK owner,
  30133. // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
  30134. //
  30135. //
  30136. // AWS parses KmsKeyId asynchronously, meaning that the action you call may
  30137. // appear to complete even though you provided an invalid identifier. This action
  30138. // will eventually report failure.
  30139. //
  30140. // The specified CMK must exist in the region that the snapshot is being copied
  30141. // to.
  30142. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  30143. // The name of the new AMI in the destination region.
  30144. //
  30145. // Name is a required field
  30146. Name *string `type:"string" required:"true"`
  30147. // The ID of the AMI to copy.
  30148. //
  30149. // SourceImageId is a required field
  30150. SourceImageId *string `type:"string" required:"true"`
  30151. // The name of the region that contains the AMI to copy.
  30152. //
  30153. // SourceRegion is a required field
  30154. SourceRegion *string `type:"string" required:"true"`
  30155. }
  30156. // String returns the string representation
  30157. func (s CopyImageInput) String() string {
  30158. return awsutil.Prettify(s)
  30159. }
  30160. // GoString returns the string representation
  30161. func (s CopyImageInput) GoString() string {
  30162. return s.String()
  30163. }
  30164. // Validate inspects the fields of the type to determine if they are valid.
  30165. func (s *CopyImageInput) Validate() error {
  30166. invalidParams := request.ErrInvalidParams{Context: "CopyImageInput"}
  30167. if s.Name == nil {
  30168. invalidParams.Add(request.NewErrParamRequired("Name"))
  30169. }
  30170. if s.SourceImageId == nil {
  30171. invalidParams.Add(request.NewErrParamRequired("SourceImageId"))
  30172. }
  30173. if s.SourceRegion == nil {
  30174. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  30175. }
  30176. if invalidParams.Len() > 0 {
  30177. return invalidParams
  30178. }
  30179. return nil
  30180. }
  30181. // SetClientToken sets the ClientToken field's value.
  30182. func (s *CopyImageInput) SetClientToken(v string) *CopyImageInput {
  30183. s.ClientToken = &v
  30184. return s
  30185. }
  30186. // SetDescription sets the Description field's value.
  30187. func (s *CopyImageInput) SetDescription(v string) *CopyImageInput {
  30188. s.Description = &v
  30189. return s
  30190. }
  30191. // SetDryRun sets the DryRun field's value.
  30192. func (s *CopyImageInput) SetDryRun(v bool) *CopyImageInput {
  30193. s.DryRun = &v
  30194. return s
  30195. }
  30196. // SetEncrypted sets the Encrypted field's value.
  30197. func (s *CopyImageInput) SetEncrypted(v bool) *CopyImageInput {
  30198. s.Encrypted = &v
  30199. return s
  30200. }
  30201. // SetKmsKeyId sets the KmsKeyId field's value.
  30202. func (s *CopyImageInput) SetKmsKeyId(v string) *CopyImageInput {
  30203. s.KmsKeyId = &v
  30204. return s
  30205. }
  30206. // SetName sets the Name field's value.
  30207. func (s *CopyImageInput) SetName(v string) *CopyImageInput {
  30208. s.Name = &v
  30209. return s
  30210. }
  30211. // SetSourceImageId sets the SourceImageId field's value.
  30212. func (s *CopyImageInput) SetSourceImageId(v string) *CopyImageInput {
  30213. s.SourceImageId = &v
  30214. return s
  30215. }
  30216. // SetSourceRegion sets the SourceRegion field's value.
  30217. func (s *CopyImageInput) SetSourceRegion(v string) *CopyImageInput {
  30218. s.SourceRegion = &v
  30219. return s
  30220. }
  30221. // Contains the output of CopyImage.
  30222. type CopyImageOutput struct {
  30223. _ struct{} `type:"structure"`
  30224. // The ID of the new AMI.
  30225. ImageId *string `locationName:"imageId" type:"string"`
  30226. }
  30227. // String returns the string representation
  30228. func (s CopyImageOutput) String() string {
  30229. return awsutil.Prettify(s)
  30230. }
  30231. // GoString returns the string representation
  30232. func (s CopyImageOutput) GoString() string {
  30233. return s.String()
  30234. }
  30235. // SetImageId sets the ImageId field's value.
  30236. func (s *CopyImageOutput) SetImageId(v string) *CopyImageOutput {
  30237. s.ImageId = &v
  30238. return s
  30239. }
  30240. // Contains the parameters for CopySnapshot.
  30241. type CopySnapshotInput struct {
  30242. _ struct{} `type:"structure"`
  30243. // A description for the EBS snapshot.
  30244. Description *string `type:"string"`
  30245. // The destination region to use in the PresignedUrl parameter of a snapshot
  30246. // copy operation. This parameter is only valid for specifying the destination
  30247. // region in a PresignedUrl parameter, where it is required.
  30248. //
  30249. // The snapshot copy is sent to the regional endpoint that you sent the HTTP
  30250. // request to (for example, ec2.us-east-1.amazonaws.com). With the AWS CLI,
  30251. // this is specified using the --region parameter or the default region in your
  30252. // AWS configuration file.
  30253. DestinationRegion *string `locationName:"destinationRegion" type:"string"`
  30254. // Checks whether you have the required permissions for the action, without
  30255. // actually making the request, and provides an error response. If you have
  30256. // the required permissions, the error response is DryRunOperation. Otherwise,
  30257. // it is UnauthorizedOperation.
  30258. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30259. // Specifies whether the destination snapshot should be encrypted. You can encrypt
  30260. // a copy of an unencrypted snapshot, but you cannot use it to create an unencrypted
  30261. // copy of an encrypted snapshot. Your default CMK for EBS is used unless you
  30262. // specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId.
  30263. // For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  30264. // in the Amazon Elastic Compute Cloud User Guide.
  30265. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  30266. // An identifier for the AWS Key Management Service (AWS KMS) customer master
  30267. // key (CMK) to use when creating the encrypted volume. This parameter is only
  30268. // required if you want to use a non-default CMK; if this parameter is not specified,
  30269. // the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted
  30270. // flag must also be set.
  30271. //
  30272. // The CMK identifier may be provided in any of the following formats:
  30273. //
  30274. // * Key ID
  30275. //
  30276. // * Key alias
  30277. //
  30278. // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
  30279. // by the region of the CMK, the AWS account ID of the CMK owner, the key
  30280. // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  30281. //
  30282. //
  30283. // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
  30284. // followed by the region of the CMK, the AWS account ID of the CMK owner,
  30285. // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
  30286. //
  30287. //
  30288. // AWS parses KmsKeyId asynchronously, meaning that the action you call may
  30289. // appear to complete even though you provided an invalid identifier. The action
  30290. // will eventually fail.
  30291. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  30292. // When you copy an encrypted source snapshot using the Amazon EC2 Query API,
  30293. // you must supply a pre-signed URL. This parameter is optional for unencrypted
  30294. // snapshots. For more information, see Query Requests (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html).
  30295. //
  30296. // The PresignedUrl should use the snapshot source endpoint, the CopySnapshot
  30297. // action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion
  30298. // parameters. The PresignedUrl must be signed using AWS Signature Version 4.
  30299. // Because EBS snapshots are stored in Amazon S3, the signing algorithm for
  30300. // this parameter uses the same logic that is described in Authenticating Requests
  30301. // by Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html)
  30302. // in the Amazon Simple Storage Service API Reference. An invalid or improperly
  30303. // signed PresignedUrl will cause the copy operation to fail asynchronously,
  30304. // and the snapshot will move to an error state.
  30305. PresignedUrl *string `locationName:"presignedUrl" type:"string"`
  30306. // The ID of the region that contains the snapshot to be copied.
  30307. //
  30308. // SourceRegion is a required field
  30309. SourceRegion *string `type:"string" required:"true"`
  30310. // The ID of the EBS snapshot to copy.
  30311. //
  30312. // SourceSnapshotId is a required field
  30313. SourceSnapshotId *string `type:"string" required:"true"`
  30314. }
  30315. // String returns the string representation
  30316. func (s CopySnapshotInput) String() string {
  30317. return awsutil.Prettify(s)
  30318. }
  30319. // GoString returns the string representation
  30320. func (s CopySnapshotInput) GoString() string {
  30321. return s.String()
  30322. }
  30323. // Validate inspects the fields of the type to determine if they are valid.
  30324. func (s *CopySnapshotInput) Validate() error {
  30325. invalidParams := request.ErrInvalidParams{Context: "CopySnapshotInput"}
  30326. if s.SourceRegion == nil {
  30327. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  30328. }
  30329. if s.SourceSnapshotId == nil {
  30330. invalidParams.Add(request.NewErrParamRequired("SourceSnapshotId"))
  30331. }
  30332. if invalidParams.Len() > 0 {
  30333. return invalidParams
  30334. }
  30335. return nil
  30336. }
  30337. // SetDescription sets the Description field's value.
  30338. func (s *CopySnapshotInput) SetDescription(v string) *CopySnapshotInput {
  30339. s.Description = &v
  30340. return s
  30341. }
  30342. // SetDestinationRegion sets the DestinationRegion field's value.
  30343. func (s *CopySnapshotInput) SetDestinationRegion(v string) *CopySnapshotInput {
  30344. s.DestinationRegion = &v
  30345. return s
  30346. }
  30347. // SetDryRun sets the DryRun field's value.
  30348. func (s *CopySnapshotInput) SetDryRun(v bool) *CopySnapshotInput {
  30349. s.DryRun = &v
  30350. return s
  30351. }
  30352. // SetEncrypted sets the Encrypted field's value.
  30353. func (s *CopySnapshotInput) SetEncrypted(v bool) *CopySnapshotInput {
  30354. s.Encrypted = &v
  30355. return s
  30356. }
  30357. // SetKmsKeyId sets the KmsKeyId field's value.
  30358. func (s *CopySnapshotInput) SetKmsKeyId(v string) *CopySnapshotInput {
  30359. s.KmsKeyId = &v
  30360. return s
  30361. }
  30362. // SetPresignedUrl sets the PresignedUrl field's value.
  30363. func (s *CopySnapshotInput) SetPresignedUrl(v string) *CopySnapshotInput {
  30364. s.PresignedUrl = &v
  30365. return s
  30366. }
  30367. // SetSourceRegion sets the SourceRegion field's value.
  30368. func (s *CopySnapshotInput) SetSourceRegion(v string) *CopySnapshotInput {
  30369. s.SourceRegion = &v
  30370. return s
  30371. }
  30372. // SetSourceSnapshotId sets the SourceSnapshotId field's value.
  30373. func (s *CopySnapshotInput) SetSourceSnapshotId(v string) *CopySnapshotInput {
  30374. s.SourceSnapshotId = &v
  30375. return s
  30376. }
  30377. // Contains the output of CopySnapshot.
  30378. type CopySnapshotOutput struct {
  30379. _ struct{} `type:"structure"`
  30380. // The ID of the new snapshot.
  30381. SnapshotId *string `locationName:"snapshotId" type:"string"`
  30382. }
  30383. // String returns the string representation
  30384. func (s CopySnapshotOutput) String() string {
  30385. return awsutil.Prettify(s)
  30386. }
  30387. // GoString returns the string representation
  30388. func (s CopySnapshotOutput) GoString() string {
  30389. return s.String()
  30390. }
  30391. // SetSnapshotId sets the SnapshotId field's value.
  30392. func (s *CopySnapshotOutput) SetSnapshotId(v string) *CopySnapshotOutput {
  30393. s.SnapshotId = &v
  30394. return s
  30395. }
  30396. // The CPU options for the instance.
  30397. type CpuOptions struct {
  30398. _ struct{} `type:"structure"`
  30399. // The number of CPU cores for the instance.
  30400. CoreCount *int64 `locationName:"coreCount" type:"integer"`
  30401. // The number of threads per CPU core.
  30402. ThreadsPerCore *int64 `locationName:"threadsPerCore" type:"integer"`
  30403. }
  30404. // String returns the string representation
  30405. func (s CpuOptions) String() string {
  30406. return awsutil.Prettify(s)
  30407. }
  30408. // GoString returns the string representation
  30409. func (s CpuOptions) GoString() string {
  30410. return s.String()
  30411. }
  30412. // SetCoreCount sets the CoreCount field's value.
  30413. func (s *CpuOptions) SetCoreCount(v int64) *CpuOptions {
  30414. s.CoreCount = &v
  30415. return s
  30416. }
  30417. // SetThreadsPerCore sets the ThreadsPerCore field's value.
  30418. func (s *CpuOptions) SetThreadsPerCore(v int64) *CpuOptions {
  30419. s.ThreadsPerCore = &v
  30420. return s
  30421. }
  30422. // The CPU options for the instance. Both the core count and threads per core
  30423. // must be specified in the request.
  30424. type CpuOptionsRequest struct {
  30425. _ struct{} `type:"structure"`
  30426. // The number of CPU cores for the instance.
  30427. CoreCount *int64 `type:"integer"`
  30428. // The number of threads per CPU core. To disable Intel Hyper-Threading Technology
  30429. // for the instance, specify a value of 1. Otherwise, specify the default value
  30430. // of 2.
  30431. ThreadsPerCore *int64 `type:"integer"`
  30432. }
  30433. // String returns the string representation
  30434. func (s CpuOptionsRequest) String() string {
  30435. return awsutil.Prettify(s)
  30436. }
  30437. // GoString returns the string representation
  30438. func (s CpuOptionsRequest) GoString() string {
  30439. return s.String()
  30440. }
  30441. // SetCoreCount sets the CoreCount field's value.
  30442. func (s *CpuOptionsRequest) SetCoreCount(v int64) *CpuOptionsRequest {
  30443. s.CoreCount = &v
  30444. return s
  30445. }
  30446. // SetThreadsPerCore sets the ThreadsPerCore field's value.
  30447. func (s *CpuOptionsRequest) SetThreadsPerCore(v int64) *CpuOptionsRequest {
  30448. s.ThreadsPerCore = &v
  30449. return s
  30450. }
  30451. type CreateCapacityReservationInput struct {
  30452. _ struct{} `type:"structure"`
  30453. // The Availability Zone in which to create the Capacity Reservation.
  30454. //
  30455. // AvailabilityZone is a required field
  30456. AvailabilityZone *string `type:"string" required:"true"`
  30457. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  30458. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  30459. //
  30460. // Constraint: Maximum 64 ASCII characters.
  30461. ClientToken *string `type:"string"`
  30462. // Checks whether you have the required permissions for the action, without
  30463. // actually making the request, and provides an error response. If you have
  30464. // the required permissions, the error response is DryRunOperation. Otherwise,
  30465. // it is UnauthorizedOperation.
  30466. DryRun *bool `type:"boolean"`
  30467. // Indicates whether the Capacity Reservation supports EBS-optimized instances.
  30468. // This optimization provides dedicated throughput to Amazon EBS and an optimized
  30469. // configuration stack to provide optimal I/O performance. This optimization
  30470. // isn't available with all instance types. Additional usage charges apply when
  30471. // using an EBS- optimized instance.
  30472. EbsOptimized *bool `type:"boolean"`
  30473. // The date and time at which the Capacity Reservation expires. When a Capacity
  30474. // Reservation expires, the reserved capacity is released and you can no longer
  30475. // launch instances into it. The Capacity Reservation's state changes to expired
  30476. // when it reaches its end date and time.
  30477. //
  30478. // You must provide an EndDate value if EndDateType is limited. Omit EndDate
  30479. // if EndDateType is unlimited.
  30480. //
  30481. // If the EndDateType is limited, the Capacity Reservation is cancelled within
  30482. // an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55,
  30483. // the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55
  30484. // on 5/31/2019.
  30485. EndDate *time.Time `type:"timestamp"`
  30486. // Indicates the way in which the Capacity Reservation ends. A Capacity Reservation
  30487. // can have one of the following end types:
  30488. //
  30489. // * unlimited - The Capacity Reservation remains active until you explicitly
  30490. // cancel it. Do not provide an EndDate if the EndDateType is unlimited.
  30491. //
  30492. // * limited - The Capacity Reservation expires automatically at a specified
  30493. // date and time. You must provide an EndDate value if the EndDateType value
  30494. // is limited.
  30495. EndDateType *string `type:"string" enum:"EndDateType"`
  30496. // Indicates whether the Capacity Reservation supports instances with temporary,
  30497. // block-level storage.
  30498. EphemeralStorage *bool `type:"boolean"`
  30499. // The number of instances for which to reserve capacity.
  30500. //
  30501. // InstanceCount is a required field
  30502. InstanceCount *int64 `type:"integer" required:"true"`
  30503. // Indicates the type of instance launches that the Capacity Reservation accepts.
  30504. // The options include:
  30505. //
  30506. // * open - The Capacity Reservation automatically matches all instances
  30507. // that have matching attributes (instance type, platform, and Availability
  30508. // Zone). Instances that have matching attributes run in the Capacity Reservation
  30509. // automatically without specifying any additional parameters.
  30510. //
  30511. // * targeted - The Capacity Reservation only accepts instances that have
  30512. // matching attributes (instance type, platform, and Availability Zone),
  30513. // and explicitly target the Capacity Reservation. This ensures that only
  30514. // permitted instances can use the reserved capacity.
  30515. //
  30516. // Default: open
  30517. InstanceMatchCriteria *string `type:"string" enum:"InstanceMatchCriteria"`
  30518. // The type of operating system for which to reserve capacity.
  30519. //
  30520. // InstancePlatform is a required field
  30521. InstancePlatform *string `type:"string" required:"true" enum:"CapacityReservationInstancePlatform"`
  30522. // The instance type for which to reserve capacity. For more information, see
  30523. // Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  30524. // in the Amazon Elastic Compute Cloud User Guide.
  30525. //
  30526. // InstanceType is a required field
  30527. InstanceType *string `type:"string" required:"true"`
  30528. // The tags to apply to the Capacity Reservation during launch.
  30529. TagSpecifications []*TagSpecification `locationNameList:"item" type:"list"`
  30530. // Indicates the tenancy of the Capacity Reservation. A Capacity Reservation
  30531. // can have one of the following tenancy settings:
  30532. //
  30533. // * default - The Capacity Reservation is created on hardware that is shared
  30534. // with other AWS accounts.
  30535. //
  30536. // * dedicated - The Capacity Reservation is created on single-tenant hardware
  30537. // that is dedicated to a single AWS account.
  30538. Tenancy *string `type:"string" enum:"CapacityReservationTenancy"`
  30539. }
  30540. // String returns the string representation
  30541. func (s CreateCapacityReservationInput) String() string {
  30542. return awsutil.Prettify(s)
  30543. }
  30544. // GoString returns the string representation
  30545. func (s CreateCapacityReservationInput) GoString() string {
  30546. return s.String()
  30547. }
  30548. // Validate inspects the fields of the type to determine if they are valid.
  30549. func (s *CreateCapacityReservationInput) Validate() error {
  30550. invalidParams := request.ErrInvalidParams{Context: "CreateCapacityReservationInput"}
  30551. if s.AvailabilityZone == nil {
  30552. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  30553. }
  30554. if s.InstanceCount == nil {
  30555. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  30556. }
  30557. if s.InstancePlatform == nil {
  30558. invalidParams.Add(request.NewErrParamRequired("InstancePlatform"))
  30559. }
  30560. if s.InstanceType == nil {
  30561. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  30562. }
  30563. if invalidParams.Len() > 0 {
  30564. return invalidParams
  30565. }
  30566. return nil
  30567. }
  30568. // SetAvailabilityZone sets the AvailabilityZone field's value.
  30569. func (s *CreateCapacityReservationInput) SetAvailabilityZone(v string) *CreateCapacityReservationInput {
  30570. s.AvailabilityZone = &v
  30571. return s
  30572. }
  30573. // SetClientToken sets the ClientToken field's value.
  30574. func (s *CreateCapacityReservationInput) SetClientToken(v string) *CreateCapacityReservationInput {
  30575. s.ClientToken = &v
  30576. return s
  30577. }
  30578. // SetDryRun sets the DryRun field's value.
  30579. func (s *CreateCapacityReservationInput) SetDryRun(v bool) *CreateCapacityReservationInput {
  30580. s.DryRun = &v
  30581. return s
  30582. }
  30583. // SetEbsOptimized sets the EbsOptimized field's value.
  30584. func (s *CreateCapacityReservationInput) SetEbsOptimized(v bool) *CreateCapacityReservationInput {
  30585. s.EbsOptimized = &v
  30586. return s
  30587. }
  30588. // SetEndDate sets the EndDate field's value.
  30589. func (s *CreateCapacityReservationInput) SetEndDate(v time.Time) *CreateCapacityReservationInput {
  30590. s.EndDate = &v
  30591. return s
  30592. }
  30593. // SetEndDateType sets the EndDateType field's value.
  30594. func (s *CreateCapacityReservationInput) SetEndDateType(v string) *CreateCapacityReservationInput {
  30595. s.EndDateType = &v
  30596. return s
  30597. }
  30598. // SetEphemeralStorage sets the EphemeralStorage field's value.
  30599. func (s *CreateCapacityReservationInput) SetEphemeralStorage(v bool) *CreateCapacityReservationInput {
  30600. s.EphemeralStorage = &v
  30601. return s
  30602. }
  30603. // SetInstanceCount sets the InstanceCount field's value.
  30604. func (s *CreateCapacityReservationInput) SetInstanceCount(v int64) *CreateCapacityReservationInput {
  30605. s.InstanceCount = &v
  30606. return s
  30607. }
  30608. // SetInstanceMatchCriteria sets the InstanceMatchCriteria field's value.
  30609. func (s *CreateCapacityReservationInput) SetInstanceMatchCriteria(v string) *CreateCapacityReservationInput {
  30610. s.InstanceMatchCriteria = &v
  30611. return s
  30612. }
  30613. // SetInstancePlatform sets the InstancePlatform field's value.
  30614. func (s *CreateCapacityReservationInput) SetInstancePlatform(v string) *CreateCapacityReservationInput {
  30615. s.InstancePlatform = &v
  30616. return s
  30617. }
  30618. // SetInstanceType sets the InstanceType field's value.
  30619. func (s *CreateCapacityReservationInput) SetInstanceType(v string) *CreateCapacityReservationInput {
  30620. s.InstanceType = &v
  30621. return s
  30622. }
  30623. // SetTagSpecifications sets the TagSpecifications field's value.
  30624. func (s *CreateCapacityReservationInput) SetTagSpecifications(v []*TagSpecification) *CreateCapacityReservationInput {
  30625. s.TagSpecifications = v
  30626. return s
  30627. }
  30628. // SetTenancy sets the Tenancy field's value.
  30629. func (s *CreateCapacityReservationInput) SetTenancy(v string) *CreateCapacityReservationInput {
  30630. s.Tenancy = &v
  30631. return s
  30632. }
  30633. type CreateCapacityReservationOutput struct {
  30634. _ struct{} `type:"structure"`
  30635. // Information about the Capacity Reservation.
  30636. CapacityReservation *CapacityReservation `locationName:"capacityReservation" type:"structure"`
  30637. }
  30638. // String returns the string representation
  30639. func (s CreateCapacityReservationOutput) String() string {
  30640. return awsutil.Prettify(s)
  30641. }
  30642. // GoString returns the string representation
  30643. func (s CreateCapacityReservationOutput) GoString() string {
  30644. return s.String()
  30645. }
  30646. // SetCapacityReservation sets the CapacityReservation field's value.
  30647. func (s *CreateCapacityReservationOutput) SetCapacityReservation(v *CapacityReservation) *CreateCapacityReservationOutput {
  30648. s.CapacityReservation = v
  30649. return s
  30650. }
  30651. type CreateClientVpnEndpointInput struct {
  30652. _ struct{} `type:"structure"`
  30653. // Information about the authentication method to be used to authenticate clients.
  30654. //
  30655. // AuthenticationOptions is a required field
  30656. AuthenticationOptions []*ClientVpnAuthenticationRequest `locationName:"Authentication" type:"list" required:"true"`
  30657. // The IPv4 address range, in CIDR notation, from which to assign client IP
  30658. // addresses. The address range cannot overlap with the local CIDR of the VPC
  30659. // in which the associated subnet is located, or the routes that you add manually.
  30660. // The address range cannot be changed after the Client VPN endpoint has been
  30661. // created. The CIDR block should be /22 or greater.
  30662. //
  30663. // ClientCidrBlock is a required field
  30664. ClientCidrBlock *string `type:"string" required:"true"`
  30665. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  30666. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  30667. ClientToken *string `type:"string" idempotencyToken:"true"`
  30668. // Information about the client connection logging options.
  30669. //
  30670. // If you enable client connection logging, data about client connections is
  30671. // sent to a Cloudwatch Logs log stream. The following information is logged:
  30672. //
  30673. // * Client connection requests
  30674. //
  30675. // * Client connection results (successful and unsuccessful)
  30676. //
  30677. // * Reasons for unsuccessful client connection requests
  30678. //
  30679. // * Client connection termination time
  30680. //
  30681. // ConnectionLogOptions is a required field
  30682. ConnectionLogOptions *ConnectionLogOptions `type:"structure" required:"true"`
  30683. // A brief description of the Client VPN endpoint.
  30684. Description *string `type:"string"`
  30685. // Information about the DNS servers to be used for DNS resolution. A Client
  30686. // VPN endpoint can have up to two DNS servers. If no DNS server is specified,
  30687. // the DNS address of the VPC that is to be associated with Client VPN endpoint
  30688. // is used as the DNS server.
  30689. DnsServers []*string `locationNameList:"item" type:"list"`
  30690. // Checks whether you have the required permissions for the action, without
  30691. // actually making the request, and provides an error response. If you have
  30692. // the required permissions, the error response is DryRunOperation. Otherwise,
  30693. // it is UnauthorizedOperation.
  30694. DryRun *bool `type:"boolean"`
  30695. // The ARN of the server certificate. For more information, see the AWS Certificate
  30696. // Manager User Guide (acm/latest/userguide/acm-overview.html) .
  30697. //
  30698. // ServerCertificateArn is a required field
  30699. ServerCertificateArn *string `type:"string" required:"true"`
  30700. // The transport protocol to be used by the VPN session.
  30701. //
  30702. // Default value: udp
  30703. TransportProtocol *string `type:"string" enum:"TransportProtocol"`
  30704. }
  30705. // String returns the string representation
  30706. func (s CreateClientVpnEndpointInput) String() string {
  30707. return awsutil.Prettify(s)
  30708. }
  30709. // GoString returns the string representation
  30710. func (s CreateClientVpnEndpointInput) GoString() string {
  30711. return s.String()
  30712. }
  30713. // Validate inspects the fields of the type to determine if they are valid.
  30714. func (s *CreateClientVpnEndpointInput) Validate() error {
  30715. invalidParams := request.ErrInvalidParams{Context: "CreateClientVpnEndpointInput"}
  30716. if s.AuthenticationOptions == nil {
  30717. invalidParams.Add(request.NewErrParamRequired("AuthenticationOptions"))
  30718. }
  30719. if s.ClientCidrBlock == nil {
  30720. invalidParams.Add(request.NewErrParamRequired("ClientCidrBlock"))
  30721. }
  30722. if s.ConnectionLogOptions == nil {
  30723. invalidParams.Add(request.NewErrParamRequired("ConnectionLogOptions"))
  30724. }
  30725. if s.ServerCertificateArn == nil {
  30726. invalidParams.Add(request.NewErrParamRequired("ServerCertificateArn"))
  30727. }
  30728. if invalidParams.Len() > 0 {
  30729. return invalidParams
  30730. }
  30731. return nil
  30732. }
  30733. // SetAuthenticationOptions sets the AuthenticationOptions field's value.
  30734. func (s *CreateClientVpnEndpointInput) SetAuthenticationOptions(v []*ClientVpnAuthenticationRequest) *CreateClientVpnEndpointInput {
  30735. s.AuthenticationOptions = v
  30736. return s
  30737. }
  30738. // SetClientCidrBlock sets the ClientCidrBlock field's value.
  30739. func (s *CreateClientVpnEndpointInput) SetClientCidrBlock(v string) *CreateClientVpnEndpointInput {
  30740. s.ClientCidrBlock = &v
  30741. return s
  30742. }
  30743. // SetClientToken sets the ClientToken field's value.
  30744. func (s *CreateClientVpnEndpointInput) SetClientToken(v string) *CreateClientVpnEndpointInput {
  30745. s.ClientToken = &v
  30746. return s
  30747. }
  30748. // SetConnectionLogOptions sets the ConnectionLogOptions field's value.
  30749. func (s *CreateClientVpnEndpointInput) SetConnectionLogOptions(v *ConnectionLogOptions) *CreateClientVpnEndpointInput {
  30750. s.ConnectionLogOptions = v
  30751. return s
  30752. }
  30753. // SetDescription sets the Description field's value.
  30754. func (s *CreateClientVpnEndpointInput) SetDescription(v string) *CreateClientVpnEndpointInput {
  30755. s.Description = &v
  30756. return s
  30757. }
  30758. // SetDnsServers sets the DnsServers field's value.
  30759. func (s *CreateClientVpnEndpointInput) SetDnsServers(v []*string) *CreateClientVpnEndpointInput {
  30760. s.DnsServers = v
  30761. return s
  30762. }
  30763. // SetDryRun sets the DryRun field's value.
  30764. func (s *CreateClientVpnEndpointInput) SetDryRun(v bool) *CreateClientVpnEndpointInput {
  30765. s.DryRun = &v
  30766. return s
  30767. }
  30768. // SetServerCertificateArn sets the ServerCertificateArn field's value.
  30769. func (s *CreateClientVpnEndpointInput) SetServerCertificateArn(v string) *CreateClientVpnEndpointInput {
  30770. s.ServerCertificateArn = &v
  30771. return s
  30772. }
  30773. // SetTransportProtocol sets the TransportProtocol field's value.
  30774. func (s *CreateClientVpnEndpointInput) SetTransportProtocol(v string) *CreateClientVpnEndpointInput {
  30775. s.TransportProtocol = &v
  30776. return s
  30777. }
  30778. type CreateClientVpnEndpointOutput struct {
  30779. _ struct{} `type:"structure"`
  30780. // The ID of the Client VPN endpoint.
  30781. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  30782. // The DNS name to be used by clients when establishing their VPN session.
  30783. DnsName *string `locationName:"dnsName" type:"string"`
  30784. // The current state of the Client VPN endpoint.
  30785. Status *ClientVpnEndpointStatus `locationName:"status" type:"structure"`
  30786. }
  30787. // String returns the string representation
  30788. func (s CreateClientVpnEndpointOutput) String() string {
  30789. return awsutil.Prettify(s)
  30790. }
  30791. // GoString returns the string representation
  30792. func (s CreateClientVpnEndpointOutput) GoString() string {
  30793. return s.String()
  30794. }
  30795. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  30796. func (s *CreateClientVpnEndpointOutput) SetClientVpnEndpointId(v string) *CreateClientVpnEndpointOutput {
  30797. s.ClientVpnEndpointId = &v
  30798. return s
  30799. }
  30800. // SetDnsName sets the DnsName field's value.
  30801. func (s *CreateClientVpnEndpointOutput) SetDnsName(v string) *CreateClientVpnEndpointOutput {
  30802. s.DnsName = &v
  30803. return s
  30804. }
  30805. // SetStatus sets the Status field's value.
  30806. func (s *CreateClientVpnEndpointOutput) SetStatus(v *ClientVpnEndpointStatus) *CreateClientVpnEndpointOutput {
  30807. s.Status = v
  30808. return s
  30809. }
  30810. type CreateClientVpnRouteInput struct {
  30811. _ struct{} `type:"structure"`
  30812. // The ID of the Client VPN endpoint to which to add the route.
  30813. //
  30814. // ClientVpnEndpointId is a required field
  30815. ClientVpnEndpointId *string `type:"string" required:"true"`
  30816. // A brief description of the route.
  30817. Description *string `type:"string"`
  30818. // The IPv4 address range, in CIDR notation, of the route destination. For example:
  30819. //
  30820. // * To add a route for Internet access, enter 0.0.0.0/0
  30821. //
  30822. // * To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range
  30823. //
  30824. // * To add a route for an on-premises network, enter the AWS Site-to-Site
  30825. // VPN connection's IPv4 CIDR range
  30826. //
  30827. // Route address ranges cannot overlap with the CIDR range specified for client
  30828. // allocation.
  30829. //
  30830. // DestinationCidrBlock is a required field
  30831. DestinationCidrBlock *string `type:"string" required:"true"`
  30832. // Checks whether you have the required permissions for the action, without
  30833. // actually making the request, and provides an error response. If you have
  30834. // the required permissions, the error response is DryRunOperation. Otherwise,
  30835. // it is UnauthorizedOperation.
  30836. DryRun *bool `type:"boolean"`
  30837. // The ID of the subnet through which you want to route traffic. The specified
  30838. // subnet must be an existing target network of the Client VPN endpoint.
  30839. //
  30840. // TargetVpcSubnetId is a required field
  30841. TargetVpcSubnetId *string `type:"string" required:"true"`
  30842. }
  30843. // String returns the string representation
  30844. func (s CreateClientVpnRouteInput) String() string {
  30845. return awsutil.Prettify(s)
  30846. }
  30847. // GoString returns the string representation
  30848. func (s CreateClientVpnRouteInput) GoString() string {
  30849. return s.String()
  30850. }
  30851. // Validate inspects the fields of the type to determine if they are valid.
  30852. func (s *CreateClientVpnRouteInput) Validate() error {
  30853. invalidParams := request.ErrInvalidParams{Context: "CreateClientVpnRouteInput"}
  30854. if s.ClientVpnEndpointId == nil {
  30855. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  30856. }
  30857. if s.DestinationCidrBlock == nil {
  30858. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  30859. }
  30860. if s.TargetVpcSubnetId == nil {
  30861. invalidParams.Add(request.NewErrParamRequired("TargetVpcSubnetId"))
  30862. }
  30863. if invalidParams.Len() > 0 {
  30864. return invalidParams
  30865. }
  30866. return nil
  30867. }
  30868. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  30869. func (s *CreateClientVpnRouteInput) SetClientVpnEndpointId(v string) *CreateClientVpnRouteInput {
  30870. s.ClientVpnEndpointId = &v
  30871. return s
  30872. }
  30873. // SetDescription sets the Description field's value.
  30874. func (s *CreateClientVpnRouteInput) SetDescription(v string) *CreateClientVpnRouteInput {
  30875. s.Description = &v
  30876. return s
  30877. }
  30878. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  30879. func (s *CreateClientVpnRouteInput) SetDestinationCidrBlock(v string) *CreateClientVpnRouteInput {
  30880. s.DestinationCidrBlock = &v
  30881. return s
  30882. }
  30883. // SetDryRun sets the DryRun field's value.
  30884. func (s *CreateClientVpnRouteInput) SetDryRun(v bool) *CreateClientVpnRouteInput {
  30885. s.DryRun = &v
  30886. return s
  30887. }
  30888. // SetTargetVpcSubnetId sets the TargetVpcSubnetId field's value.
  30889. func (s *CreateClientVpnRouteInput) SetTargetVpcSubnetId(v string) *CreateClientVpnRouteInput {
  30890. s.TargetVpcSubnetId = &v
  30891. return s
  30892. }
  30893. type CreateClientVpnRouteOutput struct {
  30894. _ struct{} `type:"structure"`
  30895. // The current state of the route.
  30896. Status *ClientVpnRouteStatus `locationName:"status" type:"structure"`
  30897. }
  30898. // String returns the string representation
  30899. func (s CreateClientVpnRouteOutput) String() string {
  30900. return awsutil.Prettify(s)
  30901. }
  30902. // GoString returns the string representation
  30903. func (s CreateClientVpnRouteOutput) GoString() string {
  30904. return s.String()
  30905. }
  30906. // SetStatus sets the Status field's value.
  30907. func (s *CreateClientVpnRouteOutput) SetStatus(v *ClientVpnRouteStatus) *CreateClientVpnRouteOutput {
  30908. s.Status = v
  30909. return s
  30910. }
  30911. // Contains the parameters for CreateCustomerGateway.
  30912. type CreateCustomerGatewayInput struct {
  30913. _ struct{} `type:"structure"`
  30914. // For devices that support BGP, the customer gateway's BGP ASN.
  30915. //
  30916. // Default: 65000
  30917. //
  30918. // BgpAsn is a required field
  30919. BgpAsn *int64 `type:"integer" required:"true"`
  30920. // Checks whether you have the required permissions for the action, without
  30921. // actually making the request, and provides an error response. If you have
  30922. // the required permissions, the error response is DryRunOperation. Otherwise,
  30923. // it is UnauthorizedOperation.
  30924. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30925. // The Internet-routable IP address for the customer gateway's outside interface.
  30926. // The address must be static.
  30927. //
  30928. // PublicIp is a required field
  30929. PublicIp *string `locationName:"IpAddress" type:"string" required:"true"`
  30930. // The type of VPN connection that this customer gateway supports (ipsec.1).
  30931. //
  30932. // Type is a required field
  30933. Type *string `type:"string" required:"true" enum:"GatewayType"`
  30934. }
  30935. // String returns the string representation
  30936. func (s CreateCustomerGatewayInput) String() string {
  30937. return awsutil.Prettify(s)
  30938. }
  30939. // GoString returns the string representation
  30940. func (s CreateCustomerGatewayInput) GoString() string {
  30941. return s.String()
  30942. }
  30943. // Validate inspects the fields of the type to determine if they are valid.
  30944. func (s *CreateCustomerGatewayInput) Validate() error {
  30945. invalidParams := request.ErrInvalidParams{Context: "CreateCustomerGatewayInput"}
  30946. if s.BgpAsn == nil {
  30947. invalidParams.Add(request.NewErrParamRequired("BgpAsn"))
  30948. }
  30949. if s.PublicIp == nil {
  30950. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  30951. }
  30952. if s.Type == nil {
  30953. invalidParams.Add(request.NewErrParamRequired("Type"))
  30954. }
  30955. if invalidParams.Len() > 0 {
  30956. return invalidParams
  30957. }
  30958. return nil
  30959. }
  30960. // SetBgpAsn sets the BgpAsn field's value.
  30961. func (s *CreateCustomerGatewayInput) SetBgpAsn(v int64) *CreateCustomerGatewayInput {
  30962. s.BgpAsn = &v
  30963. return s
  30964. }
  30965. // SetDryRun sets the DryRun field's value.
  30966. func (s *CreateCustomerGatewayInput) SetDryRun(v bool) *CreateCustomerGatewayInput {
  30967. s.DryRun = &v
  30968. return s
  30969. }
  30970. // SetPublicIp sets the PublicIp field's value.
  30971. func (s *CreateCustomerGatewayInput) SetPublicIp(v string) *CreateCustomerGatewayInput {
  30972. s.PublicIp = &v
  30973. return s
  30974. }
  30975. // SetType sets the Type field's value.
  30976. func (s *CreateCustomerGatewayInput) SetType(v string) *CreateCustomerGatewayInput {
  30977. s.Type = &v
  30978. return s
  30979. }
  30980. // Contains the output of CreateCustomerGateway.
  30981. type CreateCustomerGatewayOutput struct {
  30982. _ struct{} `type:"structure"`
  30983. // Information about the customer gateway.
  30984. CustomerGateway *CustomerGateway `locationName:"customerGateway" type:"structure"`
  30985. }
  30986. // String returns the string representation
  30987. func (s CreateCustomerGatewayOutput) String() string {
  30988. return awsutil.Prettify(s)
  30989. }
  30990. // GoString returns the string representation
  30991. func (s CreateCustomerGatewayOutput) GoString() string {
  30992. return s.String()
  30993. }
  30994. // SetCustomerGateway sets the CustomerGateway field's value.
  30995. func (s *CreateCustomerGatewayOutput) SetCustomerGateway(v *CustomerGateway) *CreateCustomerGatewayOutput {
  30996. s.CustomerGateway = v
  30997. return s
  30998. }
  30999. type CreateDefaultSubnetInput struct {
  31000. _ struct{} `type:"structure"`
  31001. // The Availability Zone in which to create the default subnet.
  31002. //
  31003. // AvailabilityZone is a required field
  31004. AvailabilityZone *string `type:"string" required:"true"`
  31005. // Checks whether you have the required permissions for the action, without
  31006. // actually making the request, and provides an error response. If you have
  31007. // the required permissions, the error response is DryRunOperation. Otherwise,
  31008. // it is UnauthorizedOperation.
  31009. DryRun *bool `type:"boolean"`
  31010. }
  31011. // String returns the string representation
  31012. func (s CreateDefaultSubnetInput) String() string {
  31013. return awsutil.Prettify(s)
  31014. }
  31015. // GoString returns the string representation
  31016. func (s CreateDefaultSubnetInput) GoString() string {
  31017. return s.String()
  31018. }
  31019. // Validate inspects the fields of the type to determine if they are valid.
  31020. func (s *CreateDefaultSubnetInput) Validate() error {
  31021. invalidParams := request.ErrInvalidParams{Context: "CreateDefaultSubnetInput"}
  31022. if s.AvailabilityZone == nil {
  31023. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  31024. }
  31025. if invalidParams.Len() > 0 {
  31026. return invalidParams
  31027. }
  31028. return nil
  31029. }
  31030. // SetAvailabilityZone sets the AvailabilityZone field's value.
  31031. func (s *CreateDefaultSubnetInput) SetAvailabilityZone(v string) *CreateDefaultSubnetInput {
  31032. s.AvailabilityZone = &v
  31033. return s
  31034. }
  31035. // SetDryRun sets the DryRun field's value.
  31036. func (s *CreateDefaultSubnetInput) SetDryRun(v bool) *CreateDefaultSubnetInput {
  31037. s.DryRun = &v
  31038. return s
  31039. }
  31040. type CreateDefaultSubnetOutput struct {
  31041. _ struct{} `type:"structure"`
  31042. // Information about the subnet.
  31043. Subnet *Subnet `locationName:"subnet" type:"structure"`
  31044. }
  31045. // String returns the string representation
  31046. func (s CreateDefaultSubnetOutput) String() string {
  31047. return awsutil.Prettify(s)
  31048. }
  31049. // GoString returns the string representation
  31050. func (s CreateDefaultSubnetOutput) GoString() string {
  31051. return s.String()
  31052. }
  31053. // SetSubnet sets the Subnet field's value.
  31054. func (s *CreateDefaultSubnetOutput) SetSubnet(v *Subnet) *CreateDefaultSubnetOutput {
  31055. s.Subnet = v
  31056. return s
  31057. }
  31058. type CreateDefaultVpcInput struct {
  31059. _ struct{} `type:"structure"`
  31060. // Checks whether you have the required permissions for the action, without
  31061. // actually making the request, and provides an error response. If you have
  31062. // the required permissions, the error response is DryRunOperation. Otherwise,
  31063. // it is UnauthorizedOperation.
  31064. DryRun *bool `type:"boolean"`
  31065. }
  31066. // String returns the string representation
  31067. func (s CreateDefaultVpcInput) String() string {
  31068. return awsutil.Prettify(s)
  31069. }
  31070. // GoString returns the string representation
  31071. func (s CreateDefaultVpcInput) GoString() string {
  31072. return s.String()
  31073. }
  31074. // SetDryRun sets the DryRun field's value.
  31075. func (s *CreateDefaultVpcInput) SetDryRun(v bool) *CreateDefaultVpcInput {
  31076. s.DryRun = &v
  31077. return s
  31078. }
  31079. type CreateDefaultVpcOutput struct {
  31080. _ struct{} `type:"structure"`
  31081. // Information about the VPC.
  31082. Vpc *Vpc `locationName:"vpc" type:"structure"`
  31083. }
  31084. // String returns the string representation
  31085. func (s CreateDefaultVpcOutput) String() string {
  31086. return awsutil.Prettify(s)
  31087. }
  31088. // GoString returns the string representation
  31089. func (s CreateDefaultVpcOutput) GoString() string {
  31090. return s.String()
  31091. }
  31092. // SetVpc sets the Vpc field's value.
  31093. func (s *CreateDefaultVpcOutput) SetVpc(v *Vpc) *CreateDefaultVpcOutput {
  31094. s.Vpc = v
  31095. return s
  31096. }
  31097. type CreateDhcpOptionsInput struct {
  31098. _ struct{} `type:"structure"`
  31099. // A DHCP configuration option.
  31100. //
  31101. // DhcpConfigurations is a required field
  31102. DhcpConfigurations []*NewDhcpConfiguration `locationName:"dhcpConfiguration" locationNameList:"item" type:"list" required:"true"`
  31103. // Checks whether you have the required permissions for the action, without
  31104. // actually making the request, and provides an error response. If you have
  31105. // the required permissions, the error response is DryRunOperation. Otherwise,
  31106. // it is UnauthorizedOperation.
  31107. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31108. }
  31109. // String returns the string representation
  31110. func (s CreateDhcpOptionsInput) String() string {
  31111. return awsutil.Prettify(s)
  31112. }
  31113. // GoString returns the string representation
  31114. func (s CreateDhcpOptionsInput) GoString() string {
  31115. return s.String()
  31116. }
  31117. // Validate inspects the fields of the type to determine if they are valid.
  31118. func (s *CreateDhcpOptionsInput) Validate() error {
  31119. invalidParams := request.ErrInvalidParams{Context: "CreateDhcpOptionsInput"}
  31120. if s.DhcpConfigurations == nil {
  31121. invalidParams.Add(request.NewErrParamRequired("DhcpConfigurations"))
  31122. }
  31123. if invalidParams.Len() > 0 {
  31124. return invalidParams
  31125. }
  31126. return nil
  31127. }
  31128. // SetDhcpConfigurations sets the DhcpConfigurations field's value.
  31129. func (s *CreateDhcpOptionsInput) SetDhcpConfigurations(v []*NewDhcpConfiguration) *CreateDhcpOptionsInput {
  31130. s.DhcpConfigurations = v
  31131. return s
  31132. }
  31133. // SetDryRun sets the DryRun field's value.
  31134. func (s *CreateDhcpOptionsInput) SetDryRun(v bool) *CreateDhcpOptionsInput {
  31135. s.DryRun = &v
  31136. return s
  31137. }
  31138. type CreateDhcpOptionsOutput struct {
  31139. _ struct{} `type:"structure"`
  31140. // A set of DHCP options.
  31141. DhcpOptions *DhcpOptions `locationName:"dhcpOptions" type:"structure"`
  31142. }
  31143. // String returns the string representation
  31144. func (s CreateDhcpOptionsOutput) String() string {
  31145. return awsutil.Prettify(s)
  31146. }
  31147. // GoString returns the string representation
  31148. func (s CreateDhcpOptionsOutput) GoString() string {
  31149. return s.String()
  31150. }
  31151. // SetDhcpOptions sets the DhcpOptions field's value.
  31152. func (s *CreateDhcpOptionsOutput) SetDhcpOptions(v *DhcpOptions) *CreateDhcpOptionsOutput {
  31153. s.DhcpOptions = v
  31154. return s
  31155. }
  31156. type CreateEgressOnlyInternetGatewayInput struct {
  31157. _ struct{} `type:"structure"`
  31158. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  31159. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  31160. ClientToken *string `type:"string"`
  31161. // Checks whether you have the required permissions for the action, without
  31162. // actually making the request, and provides an error response. If you have
  31163. // the required permissions, the error response is DryRunOperation. Otherwise,
  31164. // it is UnauthorizedOperation.
  31165. DryRun *bool `type:"boolean"`
  31166. // The ID of the VPC for which to create the egress-only internet gateway.
  31167. //
  31168. // VpcId is a required field
  31169. VpcId *string `type:"string" required:"true"`
  31170. }
  31171. // String returns the string representation
  31172. func (s CreateEgressOnlyInternetGatewayInput) String() string {
  31173. return awsutil.Prettify(s)
  31174. }
  31175. // GoString returns the string representation
  31176. func (s CreateEgressOnlyInternetGatewayInput) GoString() string {
  31177. return s.String()
  31178. }
  31179. // Validate inspects the fields of the type to determine if they are valid.
  31180. func (s *CreateEgressOnlyInternetGatewayInput) Validate() error {
  31181. invalidParams := request.ErrInvalidParams{Context: "CreateEgressOnlyInternetGatewayInput"}
  31182. if s.VpcId == nil {
  31183. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  31184. }
  31185. if invalidParams.Len() > 0 {
  31186. return invalidParams
  31187. }
  31188. return nil
  31189. }
  31190. // SetClientToken sets the ClientToken field's value.
  31191. func (s *CreateEgressOnlyInternetGatewayInput) SetClientToken(v string) *CreateEgressOnlyInternetGatewayInput {
  31192. s.ClientToken = &v
  31193. return s
  31194. }
  31195. // SetDryRun sets the DryRun field's value.
  31196. func (s *CreateEgressOnlyInternetGatewayInput) SetDryRun(v bool) *CreateEgressOnlyInternetGatewayInput {
  31197. s.DryRun = &v
  31198. return s
  31199. }
  31200. // SetVpcId sets the VpcId field's value.
  31201. func (s *CreateEgressOnlyInternetGatewayInput) SetVpcId(v string) *CreateEgressOnlyInternetGatewayInput {
  31202. s.VpcId = &v
  31203. return s
  31204. }
  31205. type CreateEgressOnlyInternetGatewayOutput struct {
  31206. _ struct{} `type:"structure"`
  31207. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  31208. // of the request.
  31209. ClientToken *string `locationName:"clientToken" type:"string"`
  31210. // Information about the egress-only internet gateway.
  31211. EgressOnlyInternetGateway *EgressOnlyInternetGateway `locationName:"egressOnlyInternetGateway" type:"structure"`
  31212. }
  31213. // String returns the string representation
  31214. func (s CreateEgressOnlyInternetGatewayOutput) String() string {
  31215. return awsutil.Prettify(s)
  31216. }
  31217. // GoString returns the string representation
  31218. func (s CreateEgressOnlyInternetGatewayOutput) GoString() string {
  31219. return s.String()
  31220. }
  31221. // SetClientToken sets the ClientToken field's value.
  31222. func (s *CreateEgressOnlyInternetGatewayOutput) SetClientToken(v string) *CreateEgressOnlyInternetGatewayOutput {
  31223. s.ClientToken = &v
  31224. return s
  31225. }
  31226. // SetEgressOnlyInternetGateway sets the EgressOnlyInternetGateway field's value.
  31227. func (s *CreateEgressOnlyInternetGatewayOutput) SetEgressOnlyInternetGateway(v *EgressOnlyInternetGateway) *CreateEgressOnlyInternetGatewayOutput {
  31228. s.EgressOnlyInternetGateway = v
  31229. return s
  31230. }
  31231. // Describes the instances that could not be launched by the fleet.
  31232. type CreateFleetError struct {
  31233. _ struct{} `type:"structure"`
  31234. // The error code that indicates why the instance could not be launched. For
  31235. // more information about error codes, see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
  31236. ErrorCode *string `locationName:"errorCode" type:"string"`
  31237. // The error message that describes why the instance could not be launched.
  31238. // For more information about error messages, see ee Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
  31239. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  31240. // The launch templates and overrides that were used for launching the instances.
  31241. // Any parameters that you specify in the Overrides override the same parameters
  31242. // in the launch template.
  31243. LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"`
  31244. // Indicates if the instance that could not be launched was a Spot Instance
  31245. // or On-Demand Instance.
  31246. Lifecycle *string `locationName:"lifecycle" type:"string" enum:"InstanceLifecycle"`
  31247. }
  31248. // String returns the string representation
  31249. func (s CreateFleetError) String() string {
  31250. return awsutil.Prettify(s)
  31251. }
  31252. // GoString returns the string representation
  31253. func (s CreateFleetError) GoString() string {
  31254. return s.String()
  31255. }
  31256. // SetErrorCode sets the ErrorCode field's value.
  31257. func (s *CreateFleetError) SetErrorCode(v string) *CreateFleetError {
  31258. s.ErrorCode = &v
  31259. return s
  31260. }
  31261. // SetErrorMessage sets the ErrorMessage field's value.
  31262. func (s *CreateFleetError) SetErrorMessage(v string) *CreateFleetError {
  31263. s.ErrorMessage = &v
  31264. return s
  31265. }
  31266. // SetLaunchTemplateAndOverrides sets the LaunchTemplateAndOverrides field's value.
  31267. func (s *CreateFleetError) SetLaunchTemplateAndOverrides(v *LaunchTemplateAndOverridesResponse) *CreateFleetError {
  31268. s.LaunchTemplateAndOverrides = v
  31269. return s
  31270. }
  31271. // SetLifecycle sets the Lifecycle field's value.
  31272. func (s *CreateFleetError) SetLifecycle(v string) *CreateFleetError {
  31273. s.Lifecycle = &v
  31274. return s
  31275. }
  31276. type CreateFleetInput struct {
  31277. _ struct{} `type:"structure"`
  31278. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  31279. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  31280. ClientToken *string `type:"string"`
  31281. // Checks whether you have the required permissions for the action, without
  31282. // actually making the request, and provides an error response. If you have
  31283. // the required permissions, the error response is DryRunOperation. Otherwise,
  31284. // it is UnauthorizedOperation.
  31285. DryRun *bool `type:"boolean"`
  31286. // Indicates whether running instances should be terminated if the total target
  31287. // capacity of the EC2 Fleet is decreased below the current size of the EC2
  31288. // Fleet.
  31289. ExcessCapacityTerminationPolicy *string `type:"string" enum:"FleetExcessCapacityTerminationPolicy"`
  31290. // The configuration for the EC2 Fleet.
  31291. //
  31292. // LaunchTemplateConfigs is a required field
  31293. LaunchTemplateConfigs []*FleetLaunchTemplateConfigRequest `locationNameList:"item" type:"list" required:"true"`
  31294. // The allocation strategy of On-Demand Instances in an EC2 Fleet.
  31295. OnDemandOptions *OnDemandOptionsRequest `type:"structure"`
  31296. // Indicates whether EC2 Fleet should replace unhealthy instances.
  31297. ReplaceUnhealthyInstances *bool `type:"boolean"`
  31298. // Describes the configuration of Spot Instances in an EC2 Fleet.
  31299. SpotOptions *SpotOptionsRequest `type:"structure"`
  31300. // The key-value pair for tagging the EC2 Fleet request on creation. The value
  31301. // for ResourceType must be fleet, otherwise the fleet request fails. To tag
  31302. // 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).
  31303. // For information about tagging after launch, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources).
  31304. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  31305. // The TotalTargetCapacity, OnDemandTargetCapacity, SpotTargetCapacity, and
  31306. // DefaultCapacityType structure.
  31307. //
  31308. // TargetCapacitySpecification is a required field
  31309. TargetCapacitySpecification *TargetCapacitySpecificationRequest `type:"structure" required:"true"`
  31310. // Indicates whether running instances should be terminated when the EC2 Fleet
  31311. // expires.
  31312. TerminateInstancesWithExpiration *bool `type:"boolean"`
  31313. // The type of the request. By default, the EC2 Fleet places an asynchronous
  31314. // request for your desired capacity, and maintains it by replenishing interrupted
  31315. // Spot Instances (maintain). A value of instant places a synchronous one-time
  31316. // request, and returns errors for any instances that could not be launched.
  31317. // A value of request places an asynchronous one-time request without maintaining
  31318. // capacity or submitting requests in alternative capacity pools if capacity
  31319. // 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)
  31320. // in the Amazon Elastic Compute Cloud User Guide.
  31321. Type *string `type:"string" enum:"FleetType"`
  31322. // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  31323. // The default is to start fulfilling the request immediately.
  31324. ValidFrom *time.Time `type:"timestamp"`
  31325. // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  31326. // At this point, no new EC2 Fleet requests are placed or able to fulfill the
  31327. // request. The default end date is 7 days from the current date.
  31328. ValidUntil *time.Time `type:"timestamp"`
  31329. }
  31330. // String returns the string representation
  31331. func (s CreateFleetInput) String() string {
  31332. return awsutil.Prettify(s)
  31333. }
  31334. // GoString returns the string representation
  31335. func (s CreateFleetInput) GoString() string {
  31336. return s.String()
  31337. }
  31338. // Validate inspects the fields of the type to determine if they are valid.
  31339. func (s *CreateFleetInput) Validate() error {
  31340. invalidParams := request.ErrInvalidParams{Context: "CreateFleetInput"}
  31341. if s.LaunchTemplateConfigs == nil {
  31342. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateConfigs"))
  31343. }
  31344. if s.TargetCapacitySpecification == nil {
  31345. invalidParams.Add(request.NewErrParamRequired("TargetCapacitySpecification"))
  31346. }
  31347. if s.LaunchTemplateConfigs != nil {
  31348. for i, v := range s.LaunchTemplateConfigs {
  31349. if v == nil {
  31350. continue
  31351. }
  31352. if err := v.Validate(); err != nil {
  31353. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LaunchTemplateConfigs", i), err.(request.ErrInvalidParams))
  31354. }
  31355. }
  31356. }
  31357. if s.TargetCapacitySpecification != nil {
  31358. if err := s.TargetCapacitySpecification.Validate(); err != nil {
  31359. invalidParams.AddNested("TargetCapacitySpecification", err.(request.ErrInvalidParams))
  31360. }
  31361. }
  31362. if invalidParams.Len() > 0 {
  31363. return invalidParams
  31364. }
  31365. return nil
  31366. }
  31367. // SetClientToken sets the ClientToken field's value.
  31368. func (s *CreateFleetInput) SetClientToken(v string) *CreateFleetInput {
  31369. s.ClientToken = &v
  31370. return s
  31371. }
  31372. // SetDryRun sets the DryRun field's value.
  31373. func (s *CreateFleetInput) SetDryRun(v bool) *CreateFleetInput {
  31374. s.DryRun = &v
  31375. return s
  31376. }
  31377. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  31378. func (s *CreateFleetInput) SetExcessCapacityTerminationPolicy(v string) *CreateFleetInput {
  31379. s.ExcessCapacityTerminationPolicy = &v
  31380. return s
  31381. }
  31382. // SetLaunchTemplateConfigs sets the LaunchTemplateConfigs field's value.
  31383. func (s *CreateFleetInput) SetLaunchTemplateConfigs(v []*FleetLaunchTemplateConfigRequest) *CreateFleetInput {
  31384. s.LaunchTemplateConfigs = v
  31385. return s
  31386. }
  31387. // SetOnDemandOptions sets the OnDemandOptions field's value.
  31388. func (s *CreateFleetInput) SetOnDemandOptions(v *OnDemandOptionsRequest) *CreateFleetInput {
  31389. s.OnDemandOptions = v
  31390. return s
  31391. }
  31392. // SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value.
  31393. func (s *CreateFleetInput) SetReplaceUnhealthyInstances(v bool) *CreateFleetInput {
  31394. s.ReplaceUnhealthyInstances = &v
  31395. return s
  31396. }
  31397. // SetSpotOptions sets the SpotOptions field's value.
  31398. func (s *CreateFleetInput) SetSpotOptions(v *SpotOptionsRequest) *CreateFleetInput {
  31399. s.SpotOptions = v
  31400. return s
  31401. }
  31402. // SetTagSpecifications sets the TagSpecifications field's value.
  31403. func (s *CreateFleetInput) SetTagSpecifications(v []*TagSpecification) *CreateFleetInput {
  31404. s.TagSpecifications = v
  31405. return s
  31406. }
  31407. // SetTargetCapacitySpecification sets the TargetCapacitySpecification field's value.
  31408. func (s *CreateFleetInput) SetTargetCapacitySpecification(v *TargetCapacitySpecificationRequest) *CreateFleetInput {
  31409. s.TargetCapacitySpecification = v
  31410. return s
  31411. }
  31412. // SetTerminateInstancesWithExpiration sets the TerminateInstancesWithExpiration field's value.
  31413. func (s *CreateFleetInput) SetTerminateInstancesWithExpiration(v bool) *CreateFleetInput {
  31414. s.TerminateInstancesWithExpiration = &v
  31415. return s
  31416. }
  31417. // SetType sets the Type field's value.
  31418. func (s *CreateFleetInput) SetType(v string) *CreateFleetInput {
  31419. s.Type = &v
  31420. return s
  31421. }
  31422. // SetValidFrom sets the ValidFrom field's value.
  31423. func (s *CreateFleetInput) SetValidFrom(v time.Time) *CreateFleetInput {
  31424. s.ValidFrom = &v
  31425. return s
  31426. }
  31427. // SetValidUntil sets the ValidUntil field's value.
  31428. func (s *CreateFleetInput) SetValidUntil(v time.Time) *CreateFleetInput {
  31429. s.ValidUntil = &v
  31430. return s
  31431. }
  31432. // Describes the instances that were launched by the fleet.
  31433. type CreateFleetInstance struct {
  31434. _ struct{} `type:"structure"`
  31435. // The IDs of the instances.
  31436. InstanceIds []*string `locationName:"instanceIds" locationNameList:"item" type:"list"`
  31437. // The instance type.
  31438. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  31439. // The launch templates and overrides that were used for launching the instances.
  31440. // Any parameters that you specify in the Overrides override the same parameters
  31441. // in the launch template.
  31442. LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"`
  31443. // Indicates if the instance that was launched is a Spot Instance or On-Demand
  31444. // Instance.
  31445. Lifecycle *string `locationName:"lifecycle" type:"string" enum:"InstanceLifecycle"`
  31446. // The value is Windows for Windows instances; otherwise blank.
  31447. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  31448. }
  31449. // String returns the string representation
  31450. func (s CreateFleetInstance) String() string {
  31451. return awsutil.Prettify(s)
  31452. }
  31453. // GoString returns the string representation
  31454. func (s CreateFleetInstance) GoString() string {
  31455. return s.String()
  31456. }
  31457. // SetInstanceIds sets the InstanceIds field's value.
  31458. func (s *CreateFleetInstance) SetInstanceIds(v []*string) *CreateFleetInstance {
  31459. s.InstanceIds = v
  31460. return s
  31461. }
  31462. // SetInstanceType sets the InstanceType field's value.
  31463. func (s *CreateFleetInstance) SetInstanceType(v string) *CreateFleetInstance {
  31464. s.InstanceType = &v
  31465. return s
  31466. }
  31467. // SetLaunchTemplateAndOverrides sets the LaunchTemplateAndOverrides field's value.
  31468. func (s *CreateFleetInstance) SetLaunchTemplateAndOverrides(v *LaunchTemplateAndOverridesResponse) *CreateFleetInstance {
  31469. s.LaunchTemplateAndOverrides = v
  31470. return s
  31471. }
  31472. // SetLifecycle sets the Lifecycle field's value.
  31473. func (s *CreateFleetInstance) SetLifecycle(v string) *CreateFleetInstance {
  31474. s.Lifecycle = &v
  31475. return s
  31476. }
  31477. // SetPlatform sets the Platform field's value.
  31478. func (s *CreateFleetInstance) SetPlatform(v string) *CreateFleetInstance {
  31479. s.Platform = &v
  31480. return s
  31481. }
  31482. type CreateFleetOutput struct {
  31483. _ struct{} `type:"structure"`
  31484. // Information about the instances that could not be launched by the fleet.
  31485. // Valid only when Type is set to instant.
  31486. Errors []*CreateFleetError `locationName:"errorSet" locationNameList:"item" type:"list"`
  31487. // The ID of the EC2 Fleet.
  31488. FleetId *string `locationName:"fleetId" type:"string"`
  31489. // Information about the instances that were launched by the fleet. Valid only
  31490. // when Type is set to instant.
  31491. Instances []*CreateFleetInstance `locationName:"fleetInstanceSet" locationNameList:"item" type:"list"`
  31492. }
  31493. // String returns the string representation
  31494. func (s CreateFleetOutput) String() string {
  31495. return awsutil.Prettify(s)
  31496. }
  31497. // GoString returns the string representation
  31498. func (s CreateFleetOutput) GoString() string {
  31499. return s.String()
  31500. }
  31501. // SetErrors sets the Errors field's value.
  31502. func (s *CreateFleetOutput) SetErrors(v []*CreateFleetError) *CreateFleetOutput {
  31503. s.Errors = v
  31504. return s
  31505. }
  31506. // SetFleetId sets the FleetId field's value.
  31507. func (s *CreateFleetOutput) SetFleetId(v string) *CreateFleetOutput {
  31508. s.FleetId = &v
  31509. return s
  31510. }
  31511. // SetInstances sets the Instances field's value.
  31512. func (s *CreateFleetOutput) SetInstances(v []*CreateFleetInstance) *CreateFleetOutput {
  31513. s.Instances = v
  31514. return s
  31515. }
  31516. type CreateFlowLogsInput struct {
  31517. _ struct{} `type:"structure"`
  31518. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  31519. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  31520. ClientToken *string `type:"string"`
  31521. // The ARN for the IAM role that's used to post flow logs to a log group.
  31522. DeliverLogsPermissionArn *string `type:"string"`
  31523. // Checks whether you have the required permissions for the action, without
  31524. // actually making the request, and provides an error response. If you have
  31525. // the required permissions, the error response is DryRunOperation. Otherwise,
  31526. // it is UnauthorizedOperation.
  31527. DryRun *bool `type:"boolean"`
  31528. // Specifies the destination to which the flow log data is to be published.
  31529. // Flow log data can be published to an CloudWatch Logs log group or an Amazon
  31530. // S3 bucket. The value specified for this parameter depends on the value specified
  31531. // for LogDestinationType.
  31532. //
  31533. // If LogDestinationType is not specified or cloud-watch-logs, specify the Amazon
  31534. // Resource Name (ARN) of the CloudWatch Logs log group.
  31535. //
  31536. // If LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. You
  31537. // can also specify a subfolder in the bucket. To specify a subfolder in the
  31538. // bucket, use the following ARN format: bucket_ARN/subfolder_name/. For example,
  31539. // to specify a subfolder named my-logs in a bucket named my-bucket, use the
  31540. // following ARN: arn:aws:s3:::my-bucket/my-logs/. You cannot use AWSLogs as
  31541. // a subfolder name. This is a reserved term.
  31542. LogDestination *string `type:"string"`
  31543. // Specifies the type of destination to which the flow log data is to be published.
  31544. // Flow log data can be published to CloudWatch Logs or Amazon S3. To publish
  31545. // flow log data to CloudWatch Logs, specify cloud-watch-logs. To publish flow
  31546. // log data to Amazon S3, specify s3.
  31547. //
  31548. // Default: cloud-watch-logs
  31549. LogDestinationType *string `type:"string" enum:"LogDestinationType"`
  31550. // The name of the log group.
  31551. LogGroupName *string `type:"string"`
  31552. // One or more subnet, network interface, or VPC IDs.
  31553. //
  31554. // Constraints: Maximum of 1000 resources
  31555. //
  31556. // ResourceIds is a required field
  31557. ResourceIds []*string `locationName:"ResourceId" locationNameList:"item" type:"list" required:"true"`
  31558. // The type of resource on which to create the flow log.
  31559. //
  31560. // ResourceType is a required field
  31561. ResourceType *string `type:"string" required:"true" enum:"FlowLogsResourceType"`
  31562. // The type of traffic to log.
  31563. //
  31564. // TrafficType is a required field
  31565. TrafficType *string `type:"string" required:"true" enum:"TrafficType"`
  31566. }
  31567. // String returns the string representation
  31568. func (s CreateFlowLogsInput) String() string {
  31569. return awsutil.Prettify(s)
  31570. }
  31571. // GoString returns the string representation
  31572. func (s CreateFlowLogsInput) GoString() string {
  31573. return s.String()
  31574. }
  31575. // Validate inspects the fields of the type to determine if they are valid.
  31576. func (s *CreateFlowLogsInput) Validate() error {
  31577. invalidParams := request.ErrInvalidParams{Context: "CreateFlowLogsInput"}
  31578. if s.ResourceIds == nil {
  31579. invalidParams.Add(request.NewErrParamRequired("ResourceIds"))
  31580. }
  31581. if s.ResourceType == nil {
  31582. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  31583. }
  31584. if s.TrafficType == nil {
  31585. invalidParams.Add(request.NewErrParamRequired("TrafficType"))
  31586. }
  31587. if invalidParams.Len() > 0 {
  31588. return invalidParams
  31589. }
  31590. return nil
  31591. }
  31592. // SetClientToken sets the ClientToken field's value.
  31593. func (s *CreateFlowLogsInput) SetClientToken(v string) *CreateFlowLogsInput {
  31594. s.ClientToken = &v
  31595. return s
  31596. }
  31597. // SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value.
  31598. func (s *CreateFlowLogsInput) SetDeliverLogsPermissionArn(v string) *CreateFlowLogsInput {
  31599. s.DeliverLogsPermissionArn = &v
  31600. return s
  31601. }
  31602. // SetDryRun sets the DryRun field's value.
  31603. func (s *CreateFlowLogsInput) SetDryRun(v bool) *CreateFlowLogsInput {
  31604. s.DryRun = &v
  31605. return s
  31606. }
  31607. // SetLogDestination sets the LogDestination field's value.
  31608. func (s *CreateFlowLogsInput) SetLogDestination(v string) *CreateFlowLogsInput {
  31609. s.LogDestination = &v
  31610. return s
  31611. }
  31612. // SetLogDestinationType sets the LogDestinationType field's value.
  31613. func (s *CreateFlowLogsInput) SetLogDestinationType(v string) *CreateFlowLogsInput {
  31614. s.LogDestinationType = &v
  31615. return s
  31616. }
  31617. // SetLogGroupName sets the LogGroupName field's value.
  31618. func (s *CreateFlowLogsInput) SetLogGroupName(v string) *CreateFlowLogsInput {
  31619. s.LogGroupName = &v
  31620. return s
  31621. }
  31622. // SetResourceIds sets the ResourceIds field's value.
  31623. func (s *CreateFlowLogsInput) SetResourceIds(v []*string) *CreateFlowLogsInput {
  31624. s.ResourceIds = v
  31625. return s
  31626. }
  31627. // SetResourceType sets the ResourceType field's value.
  31628. func (s *CreateFlowLogsInput) SetResourceType(v string) *CreateFlowLogsInput {
  31629. s.ResourceType = &v
  31630. return s
  31631. }
  31632. // SetTrafficType sets the TrafficType field's value.
  31633. func (s *CreateFlowLogsInput) SetTrafficType(v string) *CreateFlowLogsInput {
  31634. s.TrafficType = &v
  31635. return s
  31636. }
  31637. type CreateFlowLogsOutput struct {
  31638. _ struct{} `type:"structure"`
  31639. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  31640. // of the request.
  31641. ClientToken *string `locationName:"clientToken" type:"string"`
  31642. // The IDs of the flow logs.
  31643. FlowLogIds []*string `locationName:"flowLogIdSet" locationNameList:"item" type:"list"`
  31644. // Information about the flow logs that could not be created successfully.
  31645. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  31646. }
  31647. // String returns the string representation
  31648. func (s CreateFlowLogsOutput) String() string {
  31649. return awsutil.Prettify(s)
  31650. }
  31651. // GoString returns the string representation
  31652. func (s CreateFlowLogsOutput) GoString() string {
  31653. return s.String()
  31654. }
  31655. // SetClientToken sets the ClientToken field's value.
  31656. func (s *CreateFlowLogsOutput) SetClientToken(v string) *CreateFlowLogsOutput {
  31657. s.ClientToken = &v
  31658. return s
  31659. }
  31660. // SetFlowLogIds sets the FlowLogIds field's value.
  31661. func (s *CreateFlowLogsOutput) SetFlowLogIds(v []*string) *CreateFlowLogsOutput {
  31662. s.FlowLogIds = v
  31663. return s
  31664. }
  31665. // SetUnsuccessful sets the Unsuccessful field's value.
  31666. func (s *CreateFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *CreateFlowLogsOutput {
  31667. s.Unsuccessful = v
  31668. return s
  31669. }
  31670. type CreateFpgaImageInput struct {
  31671. _ struct{} `type:"structure"`
  31672. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  31673. // of the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  31674. ClientToken *string `type:"string"`
  31675. // A description for the AFI.
  31676. Description *string `type:"string"`
  31677. // Checks whether you have the required permissions for the action, without
  31678. // actually making the request, and provides an error response. If you have
  31679. // the required permissions, the error response is DryRunOperation. Otherwise,
  31680. // it is UnauthorizedOperation.
  31681. DryRun *bool `type:"boolean"`
  31682. // The location of the encrypted design checkpoint in Amazon S3. The input must
  31683. // be a tarball.
  31684. //
  31685. // InputStorageLocation is a required field
  31686. InputStorageLocation *StorageLocation `type:"structure" required:"true"`
  31687. // The location in Amazon S3 for the output logs.
  31688. LogsStorageLocation *StorageLocation `type:"structure"`
  31689. // A name for the AFI.
  31690. Name *string `type:"string"`
  31691. }
  31692. // String returns the string representation
  31693. func (s CreateFpgaImageInput) String() string {
  31694. return awsutil.Prettify(s)
  31695. }
  31696. // GoString returns the string representation
  31697. func (s CreateFpgaImageInput) GoString() string {
  31698. return s.String()
  31699. }
  31700. // Validate inspects the fields of the type to determine if they are valid.
  31701. func (s *CreateFpgaImageInput) Validate() error {
  31702. invalidParams := request.ErrInvalidParams{Context: "CreateFpgaImageInput"}
  31703. if s.InputStorageLocation == nil {
  31704. invalidParams.Add(request.NewErrParamRequired("InputStorageLocation"))
  31705. }
  31706. if invalidParams.Len() > 0 {
  31707. return invalidParams
  31708. }
  31709. return nil
  31710. }
  31711. // SetClientToken sets the ClientToken field's value.
  31712. func (s *CreateFpgaImageInput) SetClientToken(v string) *CreateFpgaImageInput {
  31713. s.ClientToken = &v
  31714. return s
  31715. }
  31716. // SetDescription sets the Description field's value.
  31717. func (s *CreateFpgaImageInput) SetDescription(v string) *CreateFpgaImageInput {
  31718. s.Description = &v
  31719. return s
  31720. }
  31721. // SetDryRun sets the DryRun field's value.
  31722. func (s *CreateFpgaImageInput) SetDryRun(v bool) *CreateFpgaImageInput {
  31723. s.DryRun = &v
  31724. return s
  31725. }
  31726. // SetInputStorageLocation sets the InputStorageLocation field's value.
  31727. func (s *CreateFpgaImageInput) SetInputStorageLocation(v *StorageLocation) *CreateFpgaImageInput {
  31728. s.InputStorageLocation = v
  31729. return s
  31730. }
  31731. // SetLogsStorageLocation sets the LogsStorageLocation field's value.
  31732. func (s *CreateFpgaImageInput) SetLogsStorageLocation(v *StorageLocation) *CreateFpgaImageInput {
  31733. s.LogsStorageLocation = v
  31734. return s
  31735. }
  31736. // SetName sets the Name field's value.
  31737. func (s *CreateFpgaImageInput) SetName(v string) *CreateFpgaImageInput {
  31738. s.Name = &v
  31739. return s
  31740. }
  31741. type CreateFpgaImageOutput struct {
  31742. _ struct{} `type:"structure"`
  31743. // The global FPGA image identifier (AGFI ID).
  31744. FpgaImageGlobalId *string `locationName:"fpgaImageGlobalId" type:"string"`
  31745. // The FPGA image identifier (AFI ID).
  31746. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  31747. }
  31748. // String returns the string representation
  31749. func (s CreateFpgaImageOutput) String() string {
  31750. return awsutil.Prettify(s)
  31751. }
  31752. // GoString returns the string representation
  31753. func (s CreateFpgaImageOutput) GoString() string {
  31754. return s.String()
  31755. }
  31756. // SetFpgaImageGlobalId sets the FpgaImageGlobalId field's value.
  31757. func (s *CreateFpgaImageOutput) SetFpgaImageGlobalId(v string) *CreateFpgaImageOutput {
  31758. s.FpgaImageGlobalId = &v
  31759. return s
  31760. }
  31761. // SetFpgaImageId sets the FpgaImageId field's value.
  31762. func (s *CreateFpgaImageOutput) SetFpgaImageId(v string) *CreateFpgaImageOutput {
  31763. s.FpgaImageId = &v
  31764. return s
  31765. }
  31766. // Contains the parameters for CreateImage.
  31767. type CreateImageInput struct {
  31768. _ struct{} `type:"structure"`
  31769. // Information about one or more block device mappings. This parameter cannot
  31770. // be used to modify the encryption status of existing volumes or snapshots.
  31771. // To create an AMI with encrypted snapshots, use the CopyImage action.
  31772. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  31773. // A description for the new image.
  31774. Description *string `locationName:"description" type:"string"`
  31775. // Checks whether you have the required permissions for the action, without
  31776. // actually making the request, and provides an error response. If you have
  31777. // the required permissions, the error response is DryRunOperation. Otherwise,
  31778. // it is UnauthorizedOperation.
  31779. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31780. // The ID of the instance.
  31781. //
  31782. // InstanceId is a required field
  31783. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  31784. // A name for the new image.
  31785. //
  31786. // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
  31787. // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
  31788. // at-signs (@), or underscores(_)
  31789. //
  31790. // Name is a required field
  31791. Name *string `locationName:"name" type:"string" required:"true"`
  31792. // By default, Amazon EC2 attempts to shut down and reboot the instance before
  31793. // creating the image. If the 'No Reboot' option is set, Amazon EC2 doesn't
  31794. // shut down the instance before creating the image. When this option is used,
  31795. // file system integrity on the created image can't be guaranteed.
  31796. NoReboot *bool `locationName:"noReboot" type:"boolean"`
  31797. }
  31798. // String returns the string representation
  31799. func (s CreateImageInput) String() string {
  31800. return awsutil.Prettify(s)
  31801. }
  31802. // GoString returns the string representation
  31803. func (s CreateImageInput) GoString() string {
  31804. return s.String()
  31805. }
  31806. // Validate inspects the fields of the type to determine if they are valid.
  31807. func (s *CreateImageInput) Validate() error {
  31808. invalidParams := request.ErrInvalidParams{Context: "CreateImageInput"}
  31809. if s.InstanceId == nil {
  31810. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  31811. }
  31812. if s.Name == nil {
  31813. invalidParams.Add(request.NewErrParamRequired("Name"))
  31814. }
  31815. if invalidParams.Len() > 0 {
  31816. return invalidParams
  31817. }
  31818. return nil
  31819. }
  31820. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  31821. func (s *CreateImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *CreateImageInput {
  31822. s.BlockDeviceMappings = v
  31823. return s
  31824. }
  31825. // SetDescription sets the Description field's value.
  31826. func (s *CreateImageInput) SetDescription(v string) *CreateImageInput {
  31827. s.Description = &v
  31828. return s
  31829. }
  31830. // SetDryRun sets the DryRun field's value.
  31831. func (s *CreateImageInput) SetDryRun(v bool) *CreateImageInput {
  31832. s.DryRun = &v
  31833. return s
  31834. }
  31835. // SetInstanceId sets the InstanceId field's value.
  31836. func (s *CreateImageInput) SetInstanceId(v string) *CreateImageInput {
  31837. s.InstanceId = &v
  31838. return s
  31839. }
  31840. // SetName sets the Name field's value.
  31841. func (s *CreateImageInput) SetName(v string) *CreateImageInput {
  31842. s.Name = &v
  31843. return s
  31844. }
  31845. // SetNoReboot sets the NoReboot field's value.
  31846. func (s *CreateImageInput) SetNoReboot(v bool) *CreateImageInput {
  31847. s.NoReboot = &v
  31848. return s
  31849. }
  31850. // Contains the output of CreateImage.
  31851. type CreateImageOutput struct {
  31852. _ struct{} `type:"structure"`
  31853. // The ID of the new AMI.
  31854. ImageId *string `locationName:"imageId" type:"string"`
  31855. }
  31856. // String returns the string representation
  31857. func (s CreateImageOutput) String() string {
  31858. return awsutil.Prettify(s)
  31859. }
  31860. // GoString returns the string representation
  31861. func (s CreateImageOutput) GoString() string {
  31862. return s.String()
  31863. }
  31864. // SetImageId sets the ImageId field's value.
  31865. func (s *CreateImageOutput) SetImageId(v string) *CreateImageOutput {
  31866. s.ImageId = &v
  31867. return s
  31868. }
  31869. // Contains the parameters for CreateInstanceExportTask.
  31870. type CreateInstanceExportTaskInput struct {
  31871. _ struct{} `type:"structure"`
  31872. // A description for the conversion task or the resource being exported. The
  31873. // maximum length is 255 bytes.
  31874. Description *string `locationName:"description" type:"string"`
  31875. // The format and location for an instance export task.
  31876. ExportToS3Task *ExportToS3TaskSpecification `locationName:"exportToS3" type:"structure"`
  31877. // The ID of the instance.
  31878. //
  31879. // InstanceId is a required field
  31880. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  31881. // The target virtualization environment.
  31882. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"`
  31883. }
  31884. // String returns the string representation
  31885. func (s CreateInstanceExportTaskInput) String() string {
  31886. return awsutil.Prettify(s)
  31887. }
  31888. // GoString returns the string representation
  31889. func (s CreateInstanceExportTaskInput) GoString() string {
  31890. return s.String()
  31891. }
  31892. // Validate inspects the fields of the type to determine if they are valid.
  31893. func (s *CreateInstanceExportTaskInput) Validate() error {
  31894. invalidParams := request.ErrInvalidParams{Context: "CreateInstanceExportTaskInput"}
  31895. if s.InstanceId == nil {
  31896. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  31897. }
  31898. if invalidParams.Len() > 0 {
  31899. return invalidParams
  31900. }
  31901. return nil
  31902. }
  31903. // SetDescription sets the Description field's value.
  31904. func (s *CreateInstanceExportTaskInput) SetDescription(v string) *CreateInstanceExportTaskInput {
  31905. s.Description = &v
  31906. return s
  31907. }
  31908. // SetExportToS3Task sets the ExportToS3Task field's value.
  31909. func (s *CreateInstanceExportTaskInput) SetExportToS3Task(v *ExportToS3TaskSpecification) *CreateInstanceExportTaskInput {
  31910. s.ExportToS3Task = v
  31911. return s
  31912. }
  31913. // SetInstanceId sets the InstanceId field's value.
  31914. func (s *CreateInstanceExportTaskInput) SetInstanceId(v string) *CreateInstanceExportTaskInput {
  31915. s.InstanceId = &v
  31916. return s
  31917. }
  31918. // SetTargetEnvironment sets the TargetEnvironment field's value.
  31919. func (s *CreateInstanceExportTaskInput) SetTargetEnvironment(v string) *CreateInstanceExportTaskInput {
  31920. s.TargetEnvironment = &v
  31921. return s
  31922. }
  31923. // Contains the output for CreateInstanceExportTask.
  31924. type CreateInstanceExportTaskOutput struct {
  31925. _ struct{} `type:"structure"`
  31926. // Information about the instance export task.
  31927. ExportTask *ExportTask `locationName:"exportTask" type:"structure"`
  31928. }
  31929. // String returns the string representation
  31930. func (s CreateInstanceExportTaskOutput) String() string {
  31931. return awsutil.Prettify(s)
  31932. }
  31933. // GoString returns the string representation
  31934. func (s CreateInstanceExportTaskOutput) GoString() string {
  31935. return s.String()
  31936. }
  31937. // SetExportTask sets the ExportTask field's value.
  31938. func (s *CreateInstanceExportTaskOutput) SetExportTask(v *ExportTask) *CreateInstanceExportTaskOutput {
  31939. s.ExportTask = v
  31940. return s
  31941. }
  31942. type CreateInternetGatewayInput struct {
  31943. _ struct{} `type:"structure"`
  31944. // Checks whether you have the required permissions for the action, without
  31945. // actually making the request, and provides an error response. If you have
  31946. // the required permissions, the error response is DryRunOperation. Otherwise,
  31947. // it is UnauthorizedOperation.
  31948. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31949. }
  31950. // String returns the string representation
  31951. func (s CreateInternetGatewayInput) String() string {
  31952. return awsutil.Prettify(s)
  31953. }
  31954. // GoString returns the string representation
  31955. func (s CreateInternetGatewayInput) GoString() string {
  31956. return s.String()
  31957. }
  31958. // SetDryRun sets the DryRun field's value.
  31959. func (s *CreateInternetGatewayInput) SetDryRun(v bool) *CreateInternetGatewayInput {
  31960. s.DryRun = &v
  31961. return s
  31962. }
  31963. type CreateInternetGatewayOutput struct {
  31964. _ struct{} `type:"structure"`
  31965. // Information about the internet gateway.
  31966. InternetGateway *InternetGateway `locationName:"internetGateway" type:"structure"`
  31967. }
  31968. // String returns the string representation
  31969. func (s CreateInternetGatewayOutput) String() string {
  31970. return awsutil.Prettify(s)
  31971. }
  31972. // GoString returns the string representation
  31973. func (s CreateInternetGatewayOutput) GoString() string {
  31974. return s.String()
  31975. }
  31976. // SetInternetGateway sets the InternetGateway field's value.
  31977. func (s *CreateInternetGatewayOutput) SetInternetGateway(v *InternetGateway) *CreateInternetGatewayOutput {
  31978. s.InternetGateway = v
  31979. return s
  31980. }
  31981. type CreateKeyPairInput struct {
  31982. _ struct{} `type:"structure"`
  31983. // Checks whether you have the required permissions for the action, without
  31984. // actually making the request, and provides an error response. If you have
  31985. // the required permissions, the error response is DryRunOperation. Otherwise,
  31986. // it is UnauthorizedOperation.
  31987. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31988. // A unique name for the key pair.
  31989. //
  31990. // Constraints: Up to 255 ASCII characters
  31991. //
  31992. // KeyName is a required field
  31993. KeyName *string `type:"string" required:"true"`
  31994. }
  31995. // String returns the string representation
  31996. func (s CreateKeyPairInput) String() string {
  31997. return awsutil.Prettify(s)
  31998. }
  31999. // GoString returns the string representation
  32000. func (s CreateKeyPairInput) GoString() string {
  32001. return s.String()
  32002. }
  32003. // Validate inspects the fields of the type to determine if they are valid.
  32004. func (s *CreateKeyPairInput) Validate() error {
  32005. invalidParams := request.ErrInvalidParams{Context: "CreateKeyPairInput"}
  32006. if s.KeyName == nil {
  32007. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  32008. }
  32009. if invalidParams.Len() > 0 {
  32010. return invalidParams
  32011. }
  32012. return nil
  32013. }
  32014. // SetDryRun sets the DryRun field's value.
  32015. func (s *CreateKeyPairInput) SetDryRun(v bool) *CreateKeyPairInput {
  32016. s.DryRun = &v
  32017. return s
  32018. }
  32019. // SetKeyName sets the KeyName field's value.
  32020. func (s *CreateKeyPairInput) SetKeyName(v string) *CreateKeyPairInput {
  32021. s.KeyName = &v
  32022. return s
  32023. }
  32024. // Describes a key pair.
  32025. type CreateKeyPairOutput struct {
  32026. _ struct{} `type:"structure"`
  32027. // The SHA-1 digest of the DER encoded private key.
  32028. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  32029. // An unencrypted PEM encoded RSA private key.
  32030. KeyMaterial *string `locationName:"keyMaterial" type:"string"`
  32031. // The name of the key pair.
  32032. KeyName *string `locationName:"keyName" type:"string"`
  32033. }
  32034. // String returns the string representation
  32035. func (s CreateKeyPairOutput) String() string {
  32036. return awsutil.Prettify(s)
  32037. }
  32038. // GoString returns the string representation
  32039. func (s CreateKeyPairOutput) GoString() string {
  32040. return s.String()
  32041. }
  32042. // SetKeyFingerprint sets the KeyFingerprint field's value.
  32043. func (s *CreateKeyPairOutput) SetKeyFingerprint(v string) *CreateKeyPairOutput {
  32044. s.KeyFingerprint = &v
  32045. return s
  32046. }
  32047. // SetKeyMaterial sets the KeyMaterial field's value.
  32048. func (s *CreateKeyPairOutput) SetKeyMaterial(v string) *CreateKeyPairOutput {
  32049. s.KeyMaterial = &v
  32050. return s
  32051. }
  32052. // SetKeyName sets the KeyName field's value.
  32053. func (s *CreateKeyPairOutput) SetKeyName(v string) *CreateKeyPairOutput {
  32054. s.KeyName = &v
  32055. return s
  32056. }
  32057. type CreateLaunchTemplateInput struct {
  32058. _ struct{} `type:"structure"`
  32059. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  32060. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  32061. ClientToken *string `type:"string"`
  32062. // Checks whether you have the required permissions for the action, without
  32063. // actually making the request, and provides an error response. If you have
  32064. // the required permissions, the error response is DryRunOperation. Otherwise,
  32065. // it is UnauthorizedOperation.
  32066. DryRun *bool `type:"boolean"`
  32067. // The information for the launch template.
  32068. //
  32069. // LaunchTemplateData is a required field
  32070. LaunchTemplateData *RequestLaunchTemplateData `type:"structure" required:"true"`
  32071. // A name for the launch template.
  32072. //
  32073. // LaunchTemplateName is a required field
  32074. LaunchTemplateName *string `min:"3" type:"string" required:"true"`
  32075. // A description for the first version of the launch template.
  32076. VersionDescription *string `type:"string"`
  32077. }
  32078. // String returns the string representation
  32079. func (s CreateLaunchTemplateInput) String() string {
  32080. return awsutil.Prettify(s)
  32081. }
  32082. // GoString returns the string representation
  32083. func (s CreateLaunchTemplateInput) GoString() string {
  32084. return s.String()
  32085. }
  32086. // Validate inspects the fields of the type to determine if they are valid.
  32087. func (s *CreateLaunchTemplateInput) Validate() error {
  32088. invalidParams := request.ErrInvalidParams{Context: "CreateLaunchTemplateInput"}
  32089. if s.LaunchTemplateData == nil {
  32090. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateData"))
  32091. }
  32092. if s.LaunchTemplateName == nil {
  32093. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateName"))
  32094. }
  32095. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  32096. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  32097. }
  32098. if s.LaunchTemplateData != nil {
  32099. if err := s.LaunchTemplateData.Validate(); err != nil {
  32100. invalidParams.AddNested("LaunchTemplateData", err.(request.ErrInvalidParams))
  32101. }
  32102. }
  32103. if invalidParams.Len() > 0 {
  32104. return invalidParams
  32105. }
  32106. return nil
  32107. }
  32108. // SetClientToken sets the ClientToken field's value.
  32109. func (s *CreateLaunchTemplateInput) SetClientToken(v string) *CreateLaunchTemplateInput {
  32110. s.ClientToken = &v
  32111. return s
  32112. }
  32113. // SetDryRun sets the DryRun field's value.
  32114. func (s *CreateLaunchTemplateInput) SetDryRun(v bool) *CreateLaunchTemplateInput {
  32115. s.DryRun = &v
  32116. return s
  32117. }
  32118. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  32119. func (s *CreateLaunchTemplateInput) SetLaunchTemplateData(v *RequestLaunchTemplateData) *CreateLaunchTemplateInput {
  32120. s.LaunchTemplateData = v
  32121. return s
  32122. }
  32123. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  32124. func (s *CreateLaunchTemplateInput) SetLaunchTemplateName(v string) *CreateLaunchTemplateInput {
  32125. s.LaunchTemplateName = &v
  32126. return s
  32127. }
  32128. // SetVersionDescription sets the VersionDescription field's value.
  32129. func (s *CreateLaunchTemplateInput) SetVersionDescription(v string) *CreateLaunchTemplateInput {
  32130. s.VersionDescription = &v
  32131. return s
  32132. }
  32133. type CreateLaunchTemplateOutput struct {
  32134. _ struct{} `type:"structure"`
  32135. // Information about the launch template.
  32136. LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
  32137. }
  32138. // String returns the string representation
  32139. func (s CreateLaunchTemplateOutput) String() string {
  32140. return awsutil.Prettify(s)
  32141. }
  32142. // GoString returns the string representation
  32143. func (s CreateLaunchTemplateOutput) GoString() string {
  32144. return s.String()
  32145. }
  32146. // SetLaunchTemplate sets the LaunchTemplate field's value.
  32147. func (s *CreateLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *CreateLaunchTemplateOutput {
  32148. s.LaunchTemplate = v
  32149. return s
  32150. }
  32151. type CreateLaunchTemplateVersionInput struct {
  32152. _ struct{} `type:"structure"`
  32153. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  32154. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  32155. ClientToken *string `type:"string"`
  32156. // Checks whether you have the required permissions for the action, without
  32157. // actually making the request, and provides an error response. If you have
  32158. // the required permissions, the error response is DryRunOperation. Otherwise,
  32159. // it is UnauthorizedOperation.
  32160. DryRun *bool `type:"boolean"`
  32161. // The information for the launch template.
  32162. //
  32163. // LaunchTemplateData is a required field
  32164. LaunchTemplateData *RequestLaunchTemplateData `type:"structure" required:"true"`
  32165. // The ID of the launch template. You must specify either the launch template
  32166. // ID or launch template name in the request.
  32167. LaunchTemplateId *string `type:"string"`
  32168. // The name of the launch template. You must specify either the launch template
  32169. // ID or launch template name in the request.
  32170. LaunchTemplateName *string `min:"3" type:"string"`
  32171. // The version number of the launch template version on which to base the new
  32172. // version. The new version inherits the same launch parameters as the source
  32173. // version, except for parameters that you specify in LaunchTemplateData.
  32174. SourceVersion *string `type:"string"`
  32175. // A description for the version of the launch template.
  32176. VersionDescription *string `type:"string"`
  32177. }
  32178. // String returns the string representation
  32179. func (s CreateLaunchTemplateVersionInput) String() string {
  32180. return awsutil.Prettify(s)
  32181. }
  32182. // GoString returns the string representation
  32183. func (s CreateLaunchTemplateVersionInput) GoString() string {
  32184. return s.String()
  32185. }
  32186. // Validate inspects the fields of the type to determine if they are valid.
  32187. func (s *CreateLaunchTemplateVersionInput) Validate() error {
  32188. invalidParams := request.ErrInvalidParams{Context: "CreateLaunchTemplateVersionInput"}
  32189. if s.LaunchTemplateData == nil {
  32190. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateData"))
  32191. }
  32192. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  32193. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  32194. }
  32195. if s.LaunchTemplateData != nil {
  32196. if err := s.LaunchTemplateData.Validate(); err != nil {
  32197. invalidParams.AddNested("LaunchTemplateData", err.(request.ErrInvalidParams))
  32198. }
  32199. }
  32200. if invalidParams.Len() > 0 {
  32201. return invalidParams
  32202. }
  32203. return nil
  32204. }
  32205. // SetClientToken sets the ClientToken field's value.
  32206. func (s *CreateLaunchTemplateVersionInput) SetClientToken(v string) *CreateLaunchTemplateVersionInput {
  32207. s.ClientToken = &v
  32208. return s
  32209. }
  32210. // SetDryRun sets the DryRun field's value.
  32211. func (s *CreateLaunchTemplateVersionInput) SetDryRun(v bool) *CreateLaunchTemplateVersionInput {
  32212. s.DryRun = &v
  32213. return s
  32214. }
  32215. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  32216. func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateData(v *RequestLaunchTemplateData) *CreateLaunchTemplateVersionInput {
  32217. s.LaunchTemplateData = v
  32218. return s
  32219. }
  32220. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  32221. func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateId(v string) *CreateLaunchTemplateVersionInput {
  32222. s.LaunchTemplateId = &v
  32223. return s
  32224. }
  32225. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  32226. func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateName(v string) *CreateLaunchTemplateVersionInput {
  32227. s.LaunchTemplateName = &v
  32228. return s
  32229. }
  32230. // SetSourceVersion sets the SourceVersion field's value.
  32231. func (s *CreateLaunchTemplateVersionInput) SetSourceVersion(v string) *CreateLaunchTemplateVersionInput {
  32232. s.SourceVersion = &v
  32233. return s
  32234. }
  32235. // SetVersionDescription sets the VersionDescription field's value.
  32236. func (s *CreateLaunchTemplateVersionInput) SetVersionDescription(v string) *CreateLaunchTemplateVersionInput {
  32237. s.VersionDescription = &v
  32238. return s
  32239. }
  32240. type CreateLaunchTemplateVersionOutput struct {
  32241. _ struct{} `type:"structure"`
  32242. // Information about the launch template version.
  32243. LaunchTemplateVersion *LaunchTemplateVersion `locationName:"launchTemplateVersion" type:"structure"`
  32244. }
  32245. // String returns the string representation
  32246. func (s CreateLaunchTemplateVersionOutput) String() string {
  32247. return awsutil.Prettify(s)
  32248. }
  32249. // GoString returns the string representation
  32250. func (s CreateLaunchTemplateVersionOutput) GoString() string {
  32251. return s.String()
  32252. }
  32253. // SetLaunchTemplateVersion sets the LaunchTemplateVersion field's value.
  32254. func (s *CreateLaunchTemplateVersionOutput) SetLaunchTemplateVersion(v *LaunchTemplateVersion) *CreateLaunchTemplateVersionOutput {
  32255. s.LaunchTemplateVersion = v
  32256. return s
  32257. }
  32258. type CreateNatGatewayInput struct {
  32259. _ struct{} `type:"structure"`
  32260. // The allocation ID of an Elastic IP address to associate with the NAT gateway.
  32261. // If the Elastic IP address is associated with another resource, you must first
  32262. // disassociate it.
  32263. //
  32264. // AllocationId is a required field
  32265. AllocationId *string `type:"string" required:"true"`
  32266. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  32267. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  32268. //
  32269. // Constraint: Maximum 64 ASCII characters.
  32270. ClientToken *string `type:"string"`
  32271. // The subnet in which to create the NAT gateway.
  32272. //
  32273. // SubnetId is a required field
  32274. SubnetId *string `type:"string" required:"true"`
  32275. }
  32276. // String returns the string representation
  32277. func (s CreateNatGatewayInput) String() string {
  32278. return awsutil.Prettify(s)
  32279. }
  32280. // GoString returns the string representation
  32281. func (s CreateNatGatewayInput) GoString() string {
  32282. return s.String()
  32283. }
  32284. // Validate inspects the fields of the type to determine if they are valid.
  32285. func (s *CreateNatGatewayInput) Validate() error {
  32286. invalidParams := request.ErrInvalidParams{Context: "CreateNatGatewayInput"}
  32287. if s.AllocationId == nil {
  32288. invalidParams.Add(request.NewErrParamRequired("AllocationId"))
  32289. }
  32290. if s.SubnetId == nil {
  32291. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  32292. }
  32293. if invalidParams.Len() > 0 {
  32294. return invalidParams
  32295. }
  32296. return nil
  32297. }
  32298. // SetAllocationId sets the AllocationId field's value.
  32299. func (s *CreateNatGatewayInput) SetAllocationId(v string) *CreateNatGatewayInput {
  32300. s.AllocationId = &v
  32301. return s
  32302. }
  32303. // SetClientToken sets the ClientToken field's value.
  32304. func (s *CreateNatGatewayInput) SetClientToken(v string) *CreateNatGatewayInput {
  32305. s.ClientToken = &v
  32306. return s
  32307. }
  32308. // SetSubnetId sets the SubnetId field's value.
  32309. func (s *CreateNatGatewayInput) SetSubnetId(v string) *CreateNatGatewayInput {
  32310. s.SubnetId = &v
  32311. return s
  32312. }
  32313. type CreateNatGatewayOutput struct {
  32314. _ struct{} `type:"structure"`
  32315. // Unique, case-sensitive identifier to ensure the idempotency of the request.
  32316. // Only returned if a client token was provided in the request.
  32317. ClientToken *string `locationName:"clientToken" type:"string"`
  32318. // Information about the NAT gateway.
  32319. NatGateway *NatGateway `locationName:"natGateway" type:"structure"`
  32320. }
  32321. // String returns the string representation
  32322. func (s CreateNatGatewayOutput) String() string {
  32323. return awsutil.Prettify(s)
  32324. }
  32325. // GoString returns the string representation
  32326. func (s CreateNatGatewayOutput) GoString() string {
  32327. return s.String()
  32328. }
  32329. // SetClientToken sets the ClientToken field's value.
  32330. func (s *CreateNatGatewayOutput) SetClientToken(v string) *CreateNatGatewayOutput {
  32331. s.ClientToken = &v
  32332. return s
  32333. }
  32334. // SetNatGateway sets the NatGateway field's value.
  32335. func (s *CreateNatGatewayOutput) SetNatGateway(v *NatGateway) *CreateNatGatewayOutput {
  32336. s.NatGateway = v
  32337. return s
  32338. }
  32339. type CreateNetworkAclEntryInput struct {
  32340. _ struct{} `type:"structure"`
  32341. // The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
  32342. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  32343. // Checks whether you have the required permissions for the action, without
  32344. // actually making the request, and provides an error response. If you have
  32345. // the required permissions, the error response is DryRunOperation. Otherwise,
  32346. // it is UnauthorizedOperation.
  32347. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32348. // Indicates whether this is an egress rule (rule is applied to traffic leaving
  32349. // the subnet).
  32350. //
  32351. // Egress is a required field
  32352. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  32353. // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol
  32354. // 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block.
  32355. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`
  32356. // The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64).
  32357. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  32358. // The ID of the network ACL.
  32359. //
  32360. // NetworkAclId is a required field
  32361. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  32362. // TCP or UDP protocols: The range of ports the rule applies to. Required if
  32363. // specifying protocol 6 (TCP) or 17 (UDP).
  32364. PortRange *PortRange `locationName:"portRange" type:"structure"`
  32365. // The protocol number. A value of "-1" means all protocols. If you specify
  32366. // "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP),
  32367. // traffic on all ports is allowed, regardless of any ports or ICMP types or
  32368. // codes that you specify. If you specify protocol "58" (ICMPv6) and specify
  32369. // an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless
  32370. // of any that you specify. If you specify protocol "58" (ICMPv6) and specify
  32371. // an IPv6 CIDR block, you must specify an ICMP type and code.
  32372. //
  32373. // Protocol is a required field
  32374. Protocol *string `locationName:"protocol" type:"string" required:"true"`
  32375. // Indicates whether to allow or deny the traffic that matches the rule.
  32376. //
  32377. // RuleAction is a required field
  32378. RuleAction *string `locationName:"ruleAction" type:"string" required:"true" enum:"RuleAction"`
  32379. // The rule number for the entry (for example, 100). ACL entries are processed
  32380. // in ascending order by rule number.
  32381. //
  32382. // Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is
  32383. // reserved for internal use.
  32384. //
  32385. // RuleNumber is a required field
  32386. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  32387. }
  32388. // String returns the string representation
  32389. func (s CreateNetworkAclEntryInput) String() string {
  32390. return awsutil.Prettify(s)
  32391. }
  32392. // GoString returns the string representation
  32393. func (s CreateNetworkAclEntryInput) GoString() string {
  32394. return s.String()
  32395. }
  32396. // Validate inspects the fields of the type to determine if they are valid.
  32397. func (s *CreateNetworkAclEntryInput) Validate() error {
  32398. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclEntryInput"}
  32399. if s.Egress == nil {
  32400. invalidParams.Add(request.NewErrParamRequired("Egress"))
  32401. }
  32402. if s.NetworkAclId == nil {
  32403. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  32404. }
  32405. if s.Protocol == nil {
  32406. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  32407. }
  32408. if s.RuleAction == nil {
  32409. invalidParams.Add(request.NewErrParamRequired("RuleAction"))
  32410. }
  32411. if s.RuleNumber == nil {
  32412. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  32413. }
  32414. if invalidParams.Len() > 0 {
  32415. return invalidParams
  32416. }
  32417. return nil
  32418. }
  32419. // SetCidrBlock sets the CidrBlock field's value.
  32420. func (s *CreateNetworkAclEntryInput) SetCidrBlock(v string) *CreateNetworkAclEntryInput {
  32421. s.CidrBlock = &v
  32422. return s
  32423. }
  32424. // SetDryRun sets the DryRun field's value.
  32425. func (s *CreateNetworkAclEntryInput) SetDryRun(v bool) *CreateNetworkAclEntryInput {
  32426. s.DryRun = &v
  32427. return s
  32428. }
  32429. // SetEgress sets the Egress field's value.
  32430. func (s *CreateNetworkAclEntryInput) SetEgress(v bool) *CreateNetworkAclEntryInput {
  32431. s.Egress = &v
  32432. return s
  32433. }
  32434. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  32435. func (s *CreateNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *CreateNetworkAclEntryInput {
  32436. s.IcmpTypeCode = v
  32437. return s
  32438. }
  32439. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  32440. func (s *CreateNetworkAclEntryInput) SetIpv6CidrBlock(v string) *CreateNetworkAclEntryInput {
  32441. s.Ipv6CidrBlock = &v
  32442. return s
  32443. }
  32444. // SetNetworkAclId sets the NetworkAclId field's value.
  32445. func (s *CreateNetworkAclEntryInput) SetNetworkAclId(v string) *CreateNetworkAclEntryInput {
  32446. s.NetworkAclId = &v
  32447. return s
  32448. }
  32449. // SetPortRange sets the PortRange field's value.
  32450. func (s *CreateNetworkAclEntryInput) SetPortRange(v *PortRange) *CreateNetworkAclEntryInput {
  32451. s.PortRange = v
  32452. return s
  32453. }
  32454. // SetProtocol sets the Protocol field's value.
  32455. func (s *CreateNetworkAclEntryInput) SetProtocol(v string) *CreateNetworkAclEntryInput {
  32456. s.Protocol = &v
  32457. return s
  32458. }
  32459. // SetRuleAction sets the RuleAction field's value.
  32460. func (s *CreateNetworkAclEntryInput) SetRuleAction(v string) *CreateNetworkAclEntryInput {
  32461. s.RuleAction = &v
  32462. return s
  32463. }
  32464. // SetRuleNumber sets the RuleNumber field's value.
  32465. func (s *CreateNetworkAclEntryInput) SetRuleNumber(v int64) *CreateNetworkAclEntryInput {
  32466. s.RuleNumber = &v
  32467. return s
  32468. }
  32469. type CreateNetworkAclEntryOutput struct {
  32470. _ struct{} `type:"structure"`
  32471. }
  32472. // String returns the string representation
  32473. func (s CreateNetworkAclEntryOutput) String() string {
  32474. return awsutil.Prettify(s)
  32475. }
  32476. // GoString returns the string representation
  32477. func (s CreateNetworkAclEntryOutput) GoString() string {
  32478. return s.String()
  32479. }
  32480. type CreateNetworkAclInput struct {
  32481. _ struct{} `type:"structure"`
  32482. // Checks whether you have the required permissions for the action, without
  32483. // actually making the request, and provides an error response. If you have
  32484. // the required permissions, the error response is DryRunOperation. Otherwise,
  32485. // it is UnauthorizedOperation.
  32486. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32487. // The ID of the VPC.
  32488. //
  32489. // VpcId is a required field
  32490. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  32491. }
  32492. // String returns the string representation
  32493. func (s CreateNetworkAclInput) String() string {
  32494. return awsutil.Prettify(s)
  32495. }
  32496. // GoString returns the string representation
  32497. func (s CreateNetworkAclInput) GoString() string {
  32498. return s.String()
  32499. }
  32500. // Validate inspects the fields of the type to determine if they are valid.
  32501. func (s *CreateNetworkAclInput) Validate() error {
  32502. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclInput"}
  32503. if s.VpcId == nil {
  32504. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  32505. }
  32506. if invalidParams.Len() > 0 {
  32507. return invalidParams
  32508. }
  32509. return nil
  32510. }
  32511. // SetDryRun sets the DryRun field's value.
  32512. func (s *CreateNetworkAclInput) SetDryRun(v bool) *CreateNetworkAclInput {
  32513. s.DryRun = &v
  32514. return s
  32515. }
  32516. // SetVpcId sets the VpcId field's value.
  32517. func (s *CreateNetworkAclInput) SetVpcId(v string) *CreateNetworkAclInput {
  32518. s.VpcId = &v
  32519. return s
  32520. }
  32521. type CreateNetworkAclOutput struct {
  32522. _ struct{} `type:"structure"`
  32523. // Information about the network ACL.
  32524. NetworkAcl *NetworkAcl `locationName:"networkAcl" type:"structure"`
  32525. }
  32526. // String returns the string representation
  32527. func (s CreateNetworkAclOutput) String() string {
  32528. return awsutil.Prettify(s)
  32529. }
  32530. // GoString returns the string representation
  32531. func (s CreateNetworkAclOutput) GoString() string {
  32532. return s.String()
  32533. }
  32534. // SetNetworkAcl sets the NetworkAcl field's value.
  32535. func (s *CreateNetworkAclOutput) SetNetworkAcl(v *NetworkAcl) *CreateNetworkAclOutput {
  32536. s.NetworkAcl = v
  32537. return s
  32538. }
  32539. // Contains the parameters for CreateNetworkInterface.
  32540. type CreateNetworkInterfaceInput struct {
  32541. _ struct{} `type:"structure"`
  32542. // A description for the network interface.
  32543. Description *string `locationName:"description" type:"string"`
  32544. // Checks whether you have the required permissions for the action, without
  32545. // actually making the request, and provides an error response. If you have
  32546. // the required permissions, the error response is DryRunOperation. Otherwise,
  32547. // it is UnauthorizedOperation.
  32548. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32549. // The IDs of one or more security groups.
  32550. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  32551. // The number of IPv6 addresses to assign to a network interface. Amazon EC2
  32552. // automatically selects the IPv6 addresses from the subnet range. You can't
  32553. // use this option if specifying specific IPv6 addresses. If your subnet has
  32554. // the AssignIpv6AddressOnCreation attribute set to true, you can specify 0
  32555. // to override this setting.
  32556. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  32557. // One or more specific IPv6 addresses from the IPv6 CIDR block range of your
  32558. // subnet. You can't use this option if you're specifying a number of IPv6 addresses.
  32559. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6Addresses" locationNameList:"item" type:"list"`
  32560. // The primary private IPv4 address of the network interface. If you don't specify
  32561. // an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR
  32562. // range. If you specify an IP address, you cannot indicate any IP addresses
  32563. // specified in privateIpAddresses as primary (only one IP address can be designated
  32564. // as primary).
  32565. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  32566. // One or more private IPv4 addresses.
  32567. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddresses" locationNameList:"item" type:"list"`
  32568. // The number of secondary private IPv4 addresses to assign to a network interface.
  32569. // When you specify a number of secondary IPv4 addresses, Amazon EC2 selects
  32570. // these IP addresses within the subnet's IPv4 CIDR range. You can't specify
  32571. // this option and specify more than one private IP address using privateIpAddresses.
  32572. //
  32573. // The number of IP addresses you can assign to a network interface varies by
  32574. // instance type. For more information, see IP Addresses Per ENI Per Instance
  32575. // Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI)
  32576. // in the Amazon Virtual Private Cloud User Guide.
  32577. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  32578. // The ID of the subnet to associate with the network interface.
  32579. //
  32580. // SubnetId is a required field
  32581. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  32582. }
  32583. // String returns the string representation
  32584. func (s CreateNetworkInterfaceInput) String() string {
  32585. return awsutil.Prettify(s)
  32586. }
  32587. // GoString returns the string representation
  32588. func (s CreateNetworkInterfaceInput) GoString() string {
  32589. return s.String()
  32590. }
  32591. // Validate inspects the fields of the type to determine if they are valid.
  32592. func (s *CreateNetworkInterfaceInput) Validate() error {
  32593. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkInterfaceInput"}
  32594. if s.SubnetId == nil {
  32595. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  32596. }
  32597. if invalidParams.Len() > 0 {
  32598. return invalidParams
  32599. }
  32600. return nil
  32601. }
  32602. // SetDescription sets the Description field's value.
  32603. func (s *CreateNetworkInterfaceInput) SetDescription(v string) *CreateNetworkInterfaceInput {
  32604. s.Description = &v
  32605. return s
  32606. }
  32607. // SetDryRun sets the DryRun field's value.
  32608. func (s *CreateNetworkInterfaceInput) SetDryRun(v bool) *CreateNetworkInterfaceInput {
  32609. s.DryRun = &v
  32610. return s
  32611. }
  32612. // SetGroups sets the Groups field's value.
  32613. func (s *CreateNetworkInterfaceInput) SetGroups(v []*string) *CreateNetworkInterfaceInput {
  32614. s.Groups = v
  32615. return s
  32616. }
  32617. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  32618. func (s *CreateNetworkInterfaceInput) SetIpv6AddressCount(v int64) *CreateNetworkInterfaceInput {
  32619. s.Ipv6AddressCount = &v
  32620. return s
  32621. }
  32622. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  32623. func (s *CreateNetworkInterfaceInput) SetIpv6Addresses(v []*InstanceIpv6Address) *CreateNetworkInterfaceInput {
  32624. s.Ipv6Addresses = v
  32625. return s
  32626. }
  32627. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  32628. func (s *CreateNetworkInterfaceInput) SetPrivateIpAddress(v string) *CreateNetworkInterfaceInput {
  32629. s.PrivateIpAddress = &v
  32630. return s
  32631. }
  32632. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  32633. func (s *CreateNetworkInterfaceInput) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *CreateNetworkInterfaceInput {
  32634. s.PrivateIpAddresses = v
  32635. return s
  32636. }
  32637. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  32638. func (s *CreateNetworkInterfaceInput) SetSecondaryPrivateIpAddressCount(v int64) *CreateNetworkInterfaceInput {
  32639. s.SecondaryPrivateIpAddressCount = &v
  32640. return s
  32641. }
  32642. // SetSubnetId sets the SubnetId field's value.
  32643. func (s *CreateNetworkInterfaceInput) SetSubnetId(v string) *CreateNetworkInterfaceInput {
  32644. s.SubnetId = &v
  32645. return s
  32646. }
  32647. // Contains the output of CreateNetworkInterface.
  32648. type CreateNetworkInterfaceOutput struct {
  32649. _ struct{} `type:"structure"`
  32650. // Information about the network interface.
  32651. NetworkInterface *NetworkInterface `locationName:"networkInterface" type:"structure"`
  32652. }
  32653. // String returns the string representation
  32654. func (s CreateNetworkInterfaceOutput) String() string {
  32655. return awsutil.Prettify(s)
  32656. }
  32657. // GoString returns the string representation
  32658. func (s CreateNetworkInterfaceOutput) GoString() string {
  32659. return s.String()
  32660. }
  32661. // SetNetworkInterface sets the NetworkInterface field's value.
  32662. func (s *CreateNetworkInterfaceOutput) SetNetworkInterface(v *NetworkInterface) *CreateNetworkInterfaceOutput {
  32663. s.NetworkInterface = v
  32664. return s
  32665. }
  32666. // Contains the parameters for CreateNetworkInterfacePermission.
  32667. type CreateNetworkInterfacePermissionInput struct {
  32668. _ struct{} `type:"structure"`
  32669. // The AWS account ID.
  32670. AwsAccountId *string `type:"string"`
  32671. // The AWS service. Currently not supported.
  32672. AwsService *string `type:"string"`
  32673. // Checks whether you have the required permissions for the action, without
  32674. // actually making the request, and provides an error response. If you have
  32675. // the required permissions, the error response is DryRunOperation. Otherwise,
  32676. // it is UnauthorizedOperation.
  32677. DryRun *bool `type:"boolean"`
  32678. // The ID of the network interface.
  32679. //
  32680. // NetworkInterfaceId is a required field
  32681. NetworkInterfaceId *string `type:"string" required:"true"`
  32682. // The type of permission to grant.
  32683. //
  32684. // Permission is a required field
  32685. Permission *string `type:"string" required:"true" enum:"InterfacePermissionType"`
  32686. }
  32687. // String returns the string representation
  32688. func (s CreateNetworkInterfacePermissionInput) String() string {
  32689. return awsutil.Prettify(s)
  32690. }
  32691. // GoString returns the string representation
  32692. func (s CreateNetworkInterfacePermissionInput) GoString() string {
  32693. return s.String()
  32694. }
  32695. // Validate inspects the fields of the type to determine if they are valid.
  32696. func (s *CreateNetworkInterfacePermissionInput) Validate() error {
  32697. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkInterfacePermissionInput"}
  32698. if s.NetworkInterfaceId == nil {
  32699. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  32700. }
  32701. if s.Permission == nil {
  32702. invalidParams.Add(request.NewErrParamRequired("Permission"))
  32703. }
  32704. if invalidParams.Len() > 0 {
  32705. return invalidParams
  32706. }
  32707. return nil
  32708. }
  32709. // SetAwsAccountId sets the AwsAccountId field's value.
  32710. func (s *CreateNetworkInterfacePermissionInput) SetAwsAccountId(v string) *CreateNetworkInterfacePermissionInput {
  32711. s.AwsAccountId = &v
  32712. return s
  32713. }
  32714. // SetAwsService sets the AwsService field's value.
  32715. func (s *CreateNetworkInterfacePermissionInput) SetAwsService(v string) *CreateNetworkInterfacePermissionInput {
  32716. s.AwsService = &v
  32717. return s
  32718. }
  32719. // SetDryRun sets the DryRun field's value.
  32720. func (s *CreateNetworkInterfacePermissionInput) SetDryRun(v bool) *CreateNetworkInterfacePermissionInput {
  32721. s.DryRun = &v
  32722. return s
  32723. }
  32724. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  32725. func (s *CreateNetworkInterfacePermissionInput) SetNetworkInterfaceId(v string) *CreateNetworkInterfacePermissionInput {
  32726. s.NetworkInterfaceId = &v
  32727. return s
  32728. }
  32729. // SetPermission sets the Permission field's value.
  32730. func (s *CreateNetworkInterfacePermissionInput) SetPermission(v string) *CreateNetworkInterfacePermissionInput {
  32731. s.Permission = &v
  32732. return s
  32733. }
  32734. // Contains the output of CreateNetworkInterfacePermission.
  32735. type CreateNetworkInterfacePermissionOutput struct {
  32736. _ struct{} `type:"structure"`
  32737. // Information about the permission for the network interface.
  32738. InterfacePermission *NetworkInterfacePermission `locationName:"interfacePermission" type:"structure"`
  32739. }
  32740. // String returns the string representation
  32741. func (s CreateNetworkInterfacePermissionOutput) String() string {
  32742. return awsutil.Prettify(s)
  32743. }
  32744. // GoString returns the string representation
  32745. func (s CreateNetworkInterfacePermissionOutput) GoString() string {
  32746. return s.String()
  32747. }
  32748. // SetInterfacePermission sets the InterfacePermission field's value.
  32749. func (s *CreateNetworkInterfacePermissionOutput) SetInterfacePermission(v *NetworkInterfacePermission) *CreateNetworkInterfacePermissionOutput {
  32750. s.InterfacePermission = v
  32751. return s
  32752. }
  32753. type CreatePlacementGroupInput struct {
  32754. _ struct{} `type:"structure"`
  32755. // Checks whether you have the required permissions for the action, without
  32756. // actually making the request, and provides an error response. If you have
  32757. // the required permissions, the error response is DryRunOperation. Otherwise,
  32758. // it is UnauthorizedOperation.
  32759. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32760. // A name for the placement group. Must be unique within the scope of your account
  32761. // for the Region.
  32762. //
  32763. // Constraints: Up to 255 ASCII characters
  32764. GroupName *string `locationName:"groupName" type:"string"`
  32765. // The number of partitions. Valid only when Strategy is set to partition.
  32766. PartitionCount *int64 `type:"integer"`
  32767. // The placement strategy.
  32768. Strategy *string `locationName:"strategy" type:"string" enum:"PlacementStrategy"`
  32769. }
  32770. // String returns the string representation
  32771. func (s CreatePlacementGroupInput) String() string {
  32772. return awsutil.Prettify(s)
  32773. }
  32774. // GoString returns the string representation
  32775. func (s CreatePlacementGroupInput) GoString() string {
  32776. return s.String()
  32777. }
  32778. // SetDryRun sets the DryRun field's value.
  32779. func (s *CreatePlacementGroupInput) SetDryRun(v bool) *CreatePlacementGroupInput {
  32780. s.DryRun = &v
  32781. return s
  32782. }
  32783. // SetGroupName sets the GroupName field's value.
  32784. func (s *CreatePlacementGroupInput) SetGroupName(v string) *CreatePlacementGroupInput {
  32785. s.GroupName = &v
  32786. return s
  32787. }
  32788. // SetPartitionCount sets the PartitionCount field's value.
  32789. func (s *CreatePlacementGroupInput) SetPartitionCount(v int64) *CreatePlacementGroupInput {
  32790. s.PartitionCount = &v
  32791. return s
  32792. }
  32793. // SetStrategy sets the Strategy field's value.
  32794. func (s *CreatePlacementGroupInput) SetStrategy(v string) *CreatePlacementGroupInput {
  32795. s.Strategy = &v
  32796. return s
  32797. }
  32798. type CreatePlacementGroupOutput struct {
  32799. _ struct{} `type:"structure"`
  32800. }
  32801. // String returns the string representation
  32802. func (s CreatePlacementGroupOutput) String() string {
  32803. return awsutil.Prettify(s)
  32804. }
  32805. // GoString returns the string representation
  32806. func (s CreatePlacementGroupOutput) GoString() string {
  32807. return s.String()
  32808. }
  32809. // Contains the parameters for CreateReservedInstancesListing.
  32810. type CreateReservedInstancesListingInput struct {
  32811. _ struct{} `type:"structure"`
  32812. // Unique, case-sensitive identifier you provide to ensure idempotency of your
  32813. // listings. This helps avoid duplicate listings. For more information, see
  32814. // Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  32815. //
  32816. // ClientToken is a required field
  32817. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  32818. // The number of instances that are a part of a Reserved Instance account to
  32819. // be listed in the Reserved Instance Marketplace. This number should be less
  32820. // than or equal to the instance count associated with the Reserved Instance
  32821. // ID specified in this call.
  32822. //
  32823. // InstanceCount is a required field
  32824. InstanceCount *int64 `locationName:"instanceCount" type:"integer" required:"true"`
  32825. // A list specifying the price of the Standard Reserved Instance for each month
  32826. // remaining in the Reserved Instance term.
  32827. //
  32828. // PriceSchedules is a required field
  32829. PriceSchedules []*PriceScheduleSpecification `locationName:"priceSchedules" locationNameList:"item" type:"list" required:"true"`
  32830. // The ID of the active Standard Reserved Instance.
  32831. //
  32832. // ReservedInstancesId is a required field
  32833. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string" required:"true"`
  32834. }
  32835. // String returns the string representation
  32836. func (s CreateReservedInstancesListingInput) String() string {
  32837. return awsutil.Prettify(s)
  32838. }
  32839. // GoString returns the string representation
  32840. func (s CreateReservedInstancesListingInput) GoString() string {
  32841. return s.String()
  32842. }
  32843. // Validate inspects the fields of the type to determine if they are valid.
  32844. func (s *CreateReservedInstancesListingInput) Validate() error {
  32845. invalidParams := request.ErrInvalidParams{Context: "CreateReservedInstancesListingInput"}
  32846. if s.ClientToken == nil {
  32847. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  32848. }
  32849. if s.InstanceCount == nil {
  32850. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  32851. }
  32852. if s.PriceSchedules == nil {
  32853. invalidParams.Add(request.NewErrParamRequired("PriceSchedules"))
  32854. }
  32855. if s.ReservedInstancesId == nil {
  32856. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesId"))
  32857. }
  32858. if invalidParams.Len() > 0 {
  32859. return invalidParams
  32860. }
  32861. return nil
  32862. }
  32863. // SetClientToken sets the ClientToken field's value.
  32864. func (s *CreateReservedInstancesListingInput) SetClientToken(v string) *CreateReservedInstancesListingInput {
  32865. s.ClientToken = &v
  32866. return s
  32867. }
  32868. // SetInstanceCount sets the InstanceCount field's value.
  32869. func (s *CreateReservedInstancesListingInput) SetInstanceCount(v int64) *CreateReservedInstancesListingInput {
  32870. s.InstanceCount = &v
  32871. return s
  32872. }
  32873. // SetPriceSchedules sets the PriceSchedules field's value.
  32874. func (s *CreateReservedInstancesListingInput) SetPriceSchedules(v []*PriceScheduleSpecification) *CreateReservedInstancesListingInput {
  32875. s.PriceSchedules = v
  32876. return s
  32877. }
  32878. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  32879. func (s *CreateReservedInstancesListingInput) SetReservedInstancesId(v string) *CreateReservedInstancesListingInput {
  32880. s.ReservedInstancesId = &v
  32881. return s
  32882. }
  32883. // Contains the output of CreateReservedInstancesListing.
  32884. type CreateReservedInstancesListingOutput struct {
  32885. _ struct{} `type:"structure"`
  32886. // Information about the Standard Reserved Instance listing.
  32887. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  32888. }
  32889. // String returns the string representation
  32890. func (s CreateReservedInstancesListingOutput) String() string {
  32891. return awsutil.Prettify(s)
  32892. }
  32893. // GoString returns the string representation
  32894. func (s CreateReservedInstancesListingOutput) GoString() string {
  32895. return s.String()
  32896. }
  32897. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  32898. func (s *CreateReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CreateReservedInstancesListingOutput {
  32899. s.ReservedInstancesListings = v
  32900. return s
  32901. }
  32902. type CreateRouteInput struct {
  32903. _ struct{} `type:"structure"`
  32904. // The IPv4 CIDR address block used for the destination match. Routing decisions
  32905. // are based on the most specific match.
  32906. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  32907. // The IPv6 CIDR block used for the destination match. Routing decisions are
  32908. // based on the most specific match.
  32909. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  32910. // Checks whether you have the required permissions for the action, without
  32911. // actually making the request, and provides an error response. If you have
  32912. // the required permissions, the error response is DryRunOperation. Otherwise,
  32913. // it is UnauthorizedOperation.
  32914. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32915. // [IPv6 traffic only] The ID of an egress-only internet gateway.
  32916. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  32917. // The ID of an internet gateway or virtual private gateway attached to your
  32918. // VPC.
  32919. GatewayId *string `locationName:"gatewayId" type:"string"`
  32920. // The ID of a NAT instance in your VPC. The operation fails if you specify
  32921. // an instance ID unless exactly one network interface is attached.
  32922. InstanceId *string `locationName:"instanceId" type:"string"`
  32923. // [IPv4 traffic only] The ID of a NAT gateway.
  32924. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  32925. // The ID of a network interface.
  32926. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  32927. // The ID of the route table for the route.
  32928. //
  32929. // RouteTableId is a required field
  32930. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  32931. // The ID of a transit gateway.
  32932. TransitGatewayId *string `type:"string"`
  32933. // The ID of a VPC peering connection.
  32934. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  32935. }
  32936. // String returns the string representation
  32937. func (s CreateRouteInput) String() string {
  32938. return awsutil.Prettify(s)
  32939. }
  32940. // GoString returns the string representation
  32941. func (s CreateRouteInput) GoString() string {
  32942. return s.String()
  32943. }
  32944. // Validate inspects the fields of the type to determine if they are valid.
  32945. func (s *CreateRouteInput) Validate() error {
  32946. invalidParams := request.ErrInvalidParams{Context: "CreateRouteInput"}
  32947. if s.RouteTableId == nil {
  32948. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  32949. }
  32950. if invalidParams.Len() > 0 {
  32951. return invalidParams
  32952. }
  32953. return nil
  32954. }
  32955. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  32956. func (s *CreateRouteInput) SetDestinationCidrBlock(v string) *CreateRouteInput {
  32957. s.DestinationCidrBlock = &v
  32958. return s
  32959. }
  32960. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  32961. func (s *CreateRouteInput) SetDestinationIpv6CidrBlock(v string) *CreateRouteInput {
  32962. s.DestinationIpv6CidrBlock = &v
  32963. return s
  32964. }
  32965. // SetDryRun sets the DryRun field's value.
  32966. func (s *CreateRouteInput) SetDryRun(v bool) *CreateRouteInput {
  32967. s.DryRun = &v
  32968. return s
  32969. }
  32970. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  32971. func (s *CreateRouteInput) SetEgressOnlyInternetGatewayId(v string) *CreateRouteInput {
  32972. s.EgressOnlyInternetGatewayId = &v
  32973. return s
  32974. }
  32975. // SetGatewayId sets the GatewayId field's value.
  32976. func (s *CreateRouteInput) SetGatewayId(v string) *CreateRouteInput {
  32977. s.GatewayId = &v
  32978. return s
  32979. }
  32980. // SetInstanceId sets the InstanceId field's value.
  32981. func (s *CreateRouteInput) SetInstanceId(v string) *CreateRouteInput {
  32982. s.InstanceId = &v
  32983. return s
  32984. }
  32985. // SetNatGatewayId sets the NatGatewayId field's value.
  32986. func (s *CreateRouteInput) SetNatGatewayId(v string) *CreateRouteInput {
  32987. s.NatGatewayId = &v
  32988. return s
  32989. }
  32990. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  32991. func (s *CreateRouteInput) SetNetworkInterfaceId(v string) *CreateRouteInput {
  32992. s.NetworkInterfaceId = &v
  32993. return s
  32994. }
  32995. // SetRouteTableId sets the RouteTableId field's value.
  32996. func (s *CreateRouteInput) SetRouteTableId(v string) *CreateRouteInput {
  32997. s.RouteTableId = &v
  32998. return s
  32999. }
  33000. // SetTransitGatewayId sets the TransitGatewayId field's value.
  33001. func (s *CreateRouteInput) SetTransitGatewayId(v string) *CreateRouteInput {
  33002. s.TransitGatewayId = &v
  33003. return s
  33004. }
  33005. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  33006. func (s *CreateRouteInput) SetVpcPeeringConnectionId(v string) *CreateRouteInput {
  33007. s.VpcPeeringConnectionId = &v
  33008. return s
  33009. }
  33010. type CreateRouteOutput struct {
  33011. _ struct{} `type:"structure"`
  33012. // Returns true if the request succeeds; otherwise, it returns an error.
  33013. Return *bool `locationName:"return" type:"boolean"`
  33014. }
  33015. // String returns the string representation
  33016. func (s CreateRouteOutput) String() string {
  33017. return awsutil.Prettify(s)
  33018. }
  33019. // GoString returns the string representation
  33020. func (s CreateRouteOutput) GoString() string {
  33021. return s.String()
  33022. }
  33023. // SetReturn sets the Return field's value.
  33024. func (s *CreateRouteOutput) SetReturn(v bool) *CreateRouteOutput {
  33025. s.Return = &v
  33026. return s
  33027. }
  33028. type CreateRouteTableInput struct {
  33029. _ struct{} `type:"structure"`
  33030. // Checks whether you have the required permissions for the action, without
  33031. // actually making the request, and provides an error response. If you have
  33032. // the required permissions, the error response is DryRunOperation. Otherwise,
  33033. // it is UnauthorizedOperation.
  33034. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33035. // The ID of the VPC.
  33036. //
  33037. // VpcId is a required field
  33038. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  33039. }
  33040. // String returns the string representation
  33041. func (s CreateRouteTableInput) String() string {
  33042. return awsutil.Prettify(s)
  33043. }
  33044. // GoString returns the string representation
  33045. func (s CreateRouteTableInput) GoString() string {
  33046. return s.String()
  33047. }
  33048. // Validate inspects the fields of the type to determine if they are valid.
  33049. func (s *CreateRouteTableInput) Validate() error {
  33050. invalidParams := request.ErrInvalidParams{Context: "CreateRouteTableInput"}
  33051. if s.VpcId == nil {
  33052. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  33053. }
  33054. if invalidParams.Len() > 0 {
  33055. return invalidParams
  33056. }
  33057. return nil
  33058. }
  33059. // SetDryRun sets the DryRun field's value.
  33060. func (s *CreateRouteTableInput) SetDryRun(v bool) *CreateRouteTableInput {
  33061. s.DryRun = &v
  33062. return s
  33063. }
  33064. // SetVpcId sets the VpcId field's value.
  33065. func (s *CreateRouteTableInput) SetVpcId(v string) *CreateRouteTableInput {
  33066. s.VpcId = &v
  33067. return s
  33068. }
  33069. type CreateRouteTableOutput struct {
  33070. _ struct{} `type:"structure"`
  33071. // Information about the route table.
  33072. RouteTable *RouteTable `locationName:"routeTable" type:"structure"`
  33073. }
  33074. // String returns the string representation
  33075. func (s CreateRouteTableOutput) String() string {
  33076. return awsutil.Prettify(s)
  33077. }
  33078. // GoString returns the string representation
  33079. func (s CreateRouteTableOutput) GoString() string {
  33080. return s.String()
  33081. }
  33082. // SetRouteTable sets the RouteTable field's value.
  33083. func (s *CreateRouteTableOutput) SetRouteTable(v *RouteTable) *CreateRouteTableOutput {
  33084. s.RouteTable = v
  33085. return s
  33086. }
  33087. type CreateSecurityGroupInput struct {
  33088. _ struct{} `type:"structure"`
  33089. // A description for the security group. This is informational only.
  33090. //
  33091. // Constraints: Up to 255 characters in length
  33092. //
  33093. // Constraints for EC2-Classic: ASCII characters
  33094. //
  33095. // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
  33096. //
  33097. // Description is a required field
  33098. Description *string `locationName:"GroupDescription" type:"string" required:"true"`
  33099. // Checks whether you have the required permissions for the action, without
  33100. // actually making the request, and provides an error response. If you have
  33101. // the required permissions, the error response is DryRunOperation. Otherwise,
  33102. // it is UnauthorizedOperation.
  33103. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33104. // The name of the security group.
  33105. //
  33106. // Constraints: Up to 255 characters in length. Cannot start with sg-.
  33107. //
  33108. // Constraints for EC2-Classic: ASCII characters
  33109. //
  33110. // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
  33111. //
  33112. // GroupName is a required field
  33113. GroupName *string `type:"string" required:"true"`
  33114. // [EC2-VPC] The ID of the VPC. Required for EC2-VPC.
  33115. VpcId *string `type:"string"`
  33116. }
  33117. // String returns the string representation
  33118. func (s CreateSecurityGroupInput) String() string {
  33119. return awsutil.Prettify(s)
  33120. }
  33121. // GoString returns the string representation
  33122. func (s CreateSecurityGroupInput) GoString() string {
  33123. return s.String()
  33124. }
  33125. // Validate inspects the fields of the type to determine if they are valid.
  33126. func (s *CreateSecurityGroupInput) Validate() error {
  33127. invalidParams := request.ErrInvalidParams{Context: "CreateSecurityGroupInput"}
  33128. if s.Description == nil {
  33129. invalidParams.Add(request.NewErrParamRequired("Description"))
  33130. }
  33131. if s.GroupName == nil {
  33132. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  33133. }
  33134. if invalidParams.Len() > 0 {
  33135. return invalidParams
  33136. }
  33137. return nil
  33138. }
  33139. // SetDescription sets the Description field's value.
  33140. func (s *CreateSecurityGroupInput) SetDescription(v string) *CreateSecurityGroupInput {
  33141. s.Description = &v
  33142. return s
  33143. }
  33144. // SetDryRun sets the DryRun field's value.
  33145. func (s *CreateSecurityGroupInput) SetDryRun(v bool) *CreateSecurityGroupInput {
  33146. s.DryRun = &v
  33147. return s
  33148. }
  33149. // SetGroupName sets the GroupName field's value.
  33150. func (s *CreateSecurityGroupInput) SetGroupName(v string) *CreateSecurityGroupInput {
  33151. s.GroupName = &v
  33152. return s
  33153. }
  33154. // SetVpcId sets the VpcId field's value.
  33155. func (s *CreateSecurityGroupInput) SetVpcId(v string) *CreateSecurityGroupInput {
  33156. s.VpcId = &v
  33157. return s
  33158. }
  33159. type CreateSecurityGroupOutput struct {
  33160. _ struct{} `type:"structure"`
  33161. // The ID of the security group.
  33162. GroupId *string `locationName:"groupId" type:"string"`
  33163. }
  33164. // String returns the string representation
  33165. func (s CreateSecurityGroupOutput) String() string {
  33166. return awsutil.Prettify(s)
  33167. }
  33168. // GoString returns the string representation
  33169. func (s CreateSecurityGroupOutput) GoString() string {
  33170. return s.String()
  33171. }
  33172. // SetGroupId sets the GroupId field's value.
  33173. func (s *CreateSecurityGroupOutput) SetGroupId(v string) *CreateSecurityGroupOutput {
  33174. s.GroupId = &v
  33175. return s
  33176. }
  33177. // Contains the parameters for CreateSnapshot.
  33178. type CreateSnapshotInput struct {
  33179. _ struct{} `type:"structure"`
  33180. // A description for the snapshot.
  33181. Description *string `type:"string"`
  33182. // Checks whether you have the required permissions for the action, without
  33183. // actually making the request, and provides an error response. If you have
  33184. // the required permissions, the error response is DryRunOperation. Otherwise,
  33185. // it is UnauthorizedOperation.
  33186. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33187. // The tags to apply to the snapshot during creation.
  33188. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  33189. // The ID of the EBS volume.
  33190. //
  33191. // VolumeId is a required field
  33192. VolumeId *string `type:"string" required:"true"`
  33193. }
  33194. // String returns the string representation
  33195. func (s CreateSnapshotInput) String() string {
  33196. return awsutil.Prettify(s)
  33197. }
  33198. // GoString returns the string representation
  33199. func (s CreateSnapshotInput) GoString() string {
  33200. return s.String()
  33201. }
  33202. // Validate inspects the fields of the type to determine if they are valid.
  33203. func (s *CreateSnapshotInput) Validate() error {
  33204. invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"}
  33205. if s.VolumeId == nil {
  33206. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  33207. }
  33208. if invalidParams.Len() > 0 {
  33209. return invalidParams
  33210. }
  33211. return nil
  33212. }
  33213. // SetDescription sets the Description field's value.
  33214. func (s *CreateSnapshotInput) SetDescription(v string) *CreateSnapshotInput {
  33215. s.Description = &v
  33216. return s
  33217. }
  33218. // SetDryRun sets the DryRun field's value.
  33219. func (s *CreateSnapshotInput) SetDryRun(v bool) *CreateSnapshotInput {
  33220. s.DryRun = &v
  33221. return s
  33222. }
  33223. // SetTagSpecifications sets the TagSpecifications field's value.
  33224. func (s *CreateSnapshotInput) SetTagSpecifications(v []*TagSpecification) *CreateSnapshotInput {
  33225. s.TagSpecifications = v
  33226. return s
  33227. }
  33228. // SetVolumeId sets the VolumeId field's value.
  33229. func (s *CreateSnapshotInput) SetVolumeId(v string) *CreateSnapshotInput {
  33230. s.VolumeId = &v
  33231. return s
  33232. }
  33233. // Contains the parameters for CreateSpotDatafeedSubscription.
  33234. type CreateSpotDatafeedSubscriptionInput struct {
  33235. _ struct{} `type:"structure"`
  33236. // The Amazon S3 bucket in which to store the Spot Instance data feed.
  33237. //
  33238. // Bucket is a required field
  33239. Bucket *string `locationName:"bucket" type:"string" required:"true"`
  33240. // Checks whether you have the required permissions for the action, without
  33241. // actually making the request, and provides an error response. If you have
  33242. // the required permissions, the error response is DryRunOperation. Otherwise,
  33243. // it is UnauthorizedOperation.
  33244. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33245. // A prefix for the data feed file names.
  33246. Prefix *string `locationName:"prefix" type:"string"`
  33247. }
  33248. // String returns the string representation
  33249. func (s CreateSpotDatafeedSubscriptionInput) String() string {
  33250. return awsutil.Prettify(s)
  33251. }
  33252. // GoString returns the string representation
  33253. func (s CreateSpotDatafeedSubscriptionInput) GoString() string {
  33254. return s.String()
  33255. }
  33256. // Validate inspects the fields of the type to determine if they are valid.
  33257. func (s *CreateSpotDatafeedSubscriptionInput) Validate() error {
  33258. invalidParams := request.ErrInvalidParams{Context: "CreateSpotDatafeedSubscriptionInput"}
  33259. if s.Bucket == nil {
  33260. invalidParams.Add(request.NewErrParamRequired("Bucket"))
  33261. }
  33262. if invalidParams.Len() > 0 {
  33263. return invalidParams
  33264. }
  33265. return nil
  33266. }
  33267. // SetBucket sets the Bucket field's value.
  33268. func (s *CreateSpotDatafeedSubscriptionInput) SetBucket(v string) *CreateSpotDatafeedSubscriptionInput {
  33269. s.Bucket = &v
  33270. return s
  33271. }
  33272. // SetDryRun sets the DryRun field's value.
  33273. func (s *CreateSpotDatafeedSubscriptionInput) SetDryRun(v bool) *CreateSpotDatafeedSubscriptionInput {
  33274. s.DryRun = &v
  33275. return s
  33276. }
  33277. // SetPrefix sets the Prefix field's value.
  33278. func (s *CreateSpotDatafeedSubscriptionInput) SetPrefix(v string) *CreateSpotDatafeedSubscriptionInput {
  33279. s.Prefix = &v
  33280. return s
  33281. }
  33282. // Contains the output of CreateSpotDatafeedSubscription.
  33283. type CreateSpotDatafeedSubscriptionOutput struct {
  33284. _ struct{} `type:"structure"`
  33285. // The Spot Instance data feed subscription.
  33286. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
  33287. }
  33288. // String returns the string representation
  33289. func (s CreateSpotDatafeedSubscriptionOutput) String() string {
  33290. return awsutil.Prettify(s)
  33291. }
  33292. // GoString returns the string representation
  33293. func (s CreateSpotDatafeedSubscriptionOutput) GoString() string {
  33294. return s.String()
  33295. }
  33296. // SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value.
  33297. func (s *CreateSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *CreateSpotDatafeedSubscriptionOutput {
  33298. s.SpotDatafeedSubscription = v
  33299. return s
  33300. }
  33301. type CreateSubnetInput struct {
  33302. _ struct{} `type:"structure"`
  33303. // The Availability Zone for the subnet.
  33304. //
  33305. // Default: AWS selects one for you. If you create more than one subnet in your
  33306. // VPC, we may not necessarily select a different zone for each subnet.
  33307. AvailabilityZone *string `type:"string"`
  33308. // The AZ ID of the subnet.
  33309. AvailabilityZoneId *string `type:"string"`
  33310. // The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.
  33311. //
  33312. // CidrBlock is a required field
  33313. CidrBlock *string `type:"string" required:"true"`
  33314. // Checks whether you have the required permissions for the action, without
  33315. // actually making the request, and provides an error response. If you have
  33316. // the required permissions, the error response is DryRunOperation. Otherwise,
  33317. // it is UnauthorizedOperation.
  33318. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33319. // The IPv6 network range for the subnet, in CIDR notation. The subnet size
  33320. // must use a /64 prefix length.
  33321. Ipv6CidrBlock *string `type:"string"`
  33322. // The ID of the VPC.
  33323. //
  33324. // VpcId is a required field
  33325. VpcId *string `type:"string" required:"true"`
  33326. }
  33327. // String returns the string representation
  33328. func (s CreateSubnetInput) String() string {
  33329. return awsutil.Prettify(s)
  33330. }
  33331. // GoString returns the string representation
  33332. func (s CreateSubnetInput) GoString() string {
  33333. return s.String()
  33334. }
  33335. // Validate inspects the fields of the type to determine if they are valid.
  33336. func (s *CreateSubnetInput) Validate() error {
  33337. invalidParams := request.ErrInvalidParams{Context: "CreateSubnetInput"}
  33338. if s.CidrBlock == nil {
  33339. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  33340. }
  33341. if s.VpcId == nil {
  33342. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  33343. }
  33344. if invalidParams.Len() > 0 {
  33345. return invalidParams
  33346. }
  33347. return nil
  33348. }
  33349. // SetAvailabilityZone sets the AvailabilityZone field's value.
  33350. func (s *CreateSubnetInput) SetAvailabilityZone(v string) *CreateSubnetInput {
  33351. s.AvailabilityZone = &v
  33352. return s
  33353. }
  33354. // SetAvailabilityZoneId sets the AvailabilityZoneId field's value.
  33355. func (s *CreateSubnetInput) SetAvailabilityZoneId(v string) *CreateSubnetInput {
  33356. s.AvailabilityZoneId = &v
  33357. return s
  33358. }
  33359. // SetCidrBlock sets the CidrBlock field's value.
  33360. func (s *CreateSubnetInput) SetCidrBlock(v string) *CreateSubnetInput {
  33361. s.CidrBlock = &v
  33362. return s
  33363. }
  33364. // SetDryRun sets the DryRun field's value.
  33365. func (s *CreateSubnetInput) SetDryRun(v bool) *CreateSubnetInput {
  33366. s.DryRun = &v
  33367. return s
  33368. }
  33369. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  33370. func (s *CreateSubnetInput) SetIpv6CidrBlock(v string) *CreateSubnetInput {
  33371. s.Ipv6CidrBlock = &v
  33372. return s
  33373. }
  33374. // SetVpcId sets the VpcId field's value.
  33375. func (s *CreateSubnetInput) SetVpcId(v string) *CreateSubnetInput {
  33376. s.VpcId = &v
  33377. return s
  33378. }
  33379. type CreateSubnetOutput struct {
  33380. _ struct{} `type:"structure"`
  33381. // Information about the subnet.
  33382. Subnet *Subnet `locationName:"subnet" type:"structure"`
  33383. }
  33384. // String returns the string representation
  33385. func (s CreateSubnetOutput) String() string {
  33386. return awsutil.Prettify(s)
  33387. }
  33388. // GoString returns the string representation
  33389. func (s CreateSubnetOutput) GoString() string {
  33390. return s.String()
  33391. }
  33392. // SetSubnet sets the Subnet field's value.
  33393. func (s *CreateSubnetOutput) SetSubnet(v *Subnet) *CreateSubnetOutput {
  33394. s.Subnet = v
  33395. return s
  33396. }
  33397. type CreateTagsInput struct {
  33398. _ struct{} `type:"structure"`
  33399. // Checks whether you have the required permissions for the action, without
  33400. // actually making the request, and provides an error response. If you have
  33401. // the required permissions, the error response is DryRunOperation. Otherwise,
  33402. // it is UnauthorizedOperation.
  33403. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33404. // The IDs of one or more resources, separated by spaces.
  33405. //
  33406. // Constraints: Up to 1000 resource IDs. We recommend breaking up this request
  33407. // into smaller batches.
  33408. //
  33409. // Resources is a required field
  33410. Resources []*string `locationName:"ResourceId" type:"list" required:"true"`
  33411. // One or more tags. The value parameter is required, but if you don't want
  33412. // the tag to have a value, specify the parameter with no value, and we set
  33413. // the value to an empty string.
  33414. //
  33415. // Tags is a required field
  33416. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list" required:"true"`
  33417. }
  33418. // String returns the string representation
  33419. func (s CreateTagsInput) String() string {
  33420. return awsutil.Prettify(s)
  33421. }
  33422. // GoString returns the string representation
  33423. func (s CreateTagsInput) GoString() string {
  33424. return s.String()
  33425. }
  33426. // Validate inspects the fields of the type to determine if they are valid.
  33427. func (s *CreateTagsInput) Validate() error {
  33428. invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"}
  33429. if s.Resources == nil {
  33430. invalidParams.Add(request.NewErrParamRequired("Resources"))
  33431. }
  33432. if s.Tags == nil {
  33433. invalidParams.Add(request.NewErrParamRequired("Tags"))
  33434. }
  33435. if invalidParams.Len() > 0 {
  33436. return invalidParams
  33437. }
  33438. return nil
  33439. }
  33440. // SetDryRun sets the DryRun field's value.
  33441. func (s *CreateTagsInput) SetDryRun(v bool) *CreateTagsInput {
  33442. s.DryRun = &v
  33443. return s
  33444. }
  33445. // SetResources sets the Resources field's value.
  33446. func (s *CreateTagsInput) SetResources(v []*string) *CreateTagsInput {
  33447. s.Resources = v
  33448. return s
  33449. }
  33450. // SetTags sets the Tags field's value.
  33451. func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput {
  33452. s.Tags = v
  33453. return s
  33454. }
  33455. type CreateTagsOutput struct {
  33456. _ struct{} `type:"structure"`
  33457. }
  33458. // String returns the string representation
  33459. func (s CreateTagsOutput) String() string {
  33460. return awsutil.Prettify(s)
  33461. }
  33462. // GoString returns the string representation
  33463. func (s CreateTagsOutput) GoString() string {
  33464. return s.String()
  33465. }
  33466. type CreateTransitGatewayInput struct {
  33467. _ struct{} `type:"structure"`
  33468. // A description of the transit gateway.
  33469. Description *string `type:"string"`
  33470. // Checks whether you have the required permissions for the action, without
  33471. // actually making the request, and provides an error response. If you have
  33472. // the required permissions, the error response is DryRunOperation. Otherwise,
  33473. // it is UnauthorizedOperation.
  33474. DryRun *bool `type:"boolean"`
  33475. // The transit gateway options.
  33476. Options *TransitGatewayRequestOptions `type:"structure"`
  33477. // The tags to apply to the transit gateway.
  33478. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  33479. }
  33480. // String returns the string representation
  33481. func (s CreateTransitGatewayInput) String() string {
  33482. return awsutil.Prettify(s)
  33483. }
  33484. // GoString returns the string representation
  33485. func (s CreateTransitGatewayInput) GoString() string {
  33486. return s.String()
  33487. }
  33488. // SetDescription sets the Description field's value.
  33489. func (s *CreateTransitGatewayInput) SetDescription(v string) *CreateTransitGatewayInput {
  33490. s.Description = &v
  33491. return s
  33492. }
  33493. // SetDryRun sets the DryRun field's value.
  33494. func (s *CreateTransitGatewayInput) SetDryRun(v bool) *CreateTransitGatewayInput {
  33495. s.DryRun = &v
  33496. return s
  33497. }
  33498. // SetOptions sets the Options field's value.
  33499. func (s *CreateTransitGatewayInput) SetOptions(v *TransitGatewayRequestOptions) *CreateTransitGatewayInput {
  33500. s.Options = v
  33501. return s
  33502. }
  33503. // SetTagSpecifications sets the TagSpecifications field's value.
  33504. func (s *CreateTransitGatewayInput) SetTagSpecifications(v []*TagSpecification) *CreateTransitGatewayInput {
  33505. s.TagSpecifications = v
  33506. return s
  33507. }
  33508. type CreateTransitGatewayOutput struct {
  33509. _ struct{} `type:"structure"`
  33510. // Information about the transit gateway.
  33511. TransitGateway *TransitGateway `locationName:"transitGateway" type:"structure"`
  33512. }
  33513. // String returns the string representation
  33514. func (s CreateTransitGatewayOutput) String() string {
  33515. return awsutil.Prettify(s)
  33516. }
  33517. // GoString returns the string representation
  33518. func (s CreateTransitGatewayOutput) GoString() string {
  33519. return s.String()
  33520. }
  33521. // SetTransitGateway sets the TransitGateway field's value.
  33522. func (s *CreateTransitGatewayOutput) SetTransitGateway(v *TransitGateway) *CreateTransitGatewayOutput {
  33523. s.TransitGateway = v
  33524. return s
  33525. }
  33526. type CreateTransitGatewayRouteInput struct {
  33527. _ struct{} `type:"structure"`
  33528. // Indicates whether traffic matching this route is to be dropped.
  33529. Blackhole *bool `type:"boolean"`
  33530. // The CIDR range used for destination matches. Routing decisions are based
  33531. // on the most specific match.
  33532. //
  33533. // DestinationCidrBlock is a required field
  33534. DestinationCidrBlock *string `type:"string" required:"true"`
  33535. // Checks whether you have the required permissions for the action, without
  33536. // actually making the request, and provides an error response. If you have
  33537. // the required permissions, the error response is DryRunOperation. Otherwise,
  33538. // it is UnauthorizedOperation.
  33539. DryRun *bool `type:"boolean"`
  33540. // The ID of the attachment.
  33541. TransitGatewayAttachmentId *string `type:"string"`
  33542. // The ID of the transit gateway route table.
  33543. //
  33544. // TransitGatewayRouteTableId is a required field
  33545. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  33546. }
  33547. // String returns the string representation
  33548. func (s CreateTransitGatewayRouteInput) String() string {
  33549. return awsutil.Prettify(s)
  33550. }
  33551. // GoString returns the string representation
  33552. func (s CreateTransitGatewayRouteInput) GoString() string {
  33553. return s.String()
  33554. }
  33555. // Validate inspects the fields of the type to determine if they are valid.
  33556. func (s *CreateTransitGatewayRouteInput) Validate() error {
  33557. invalidParams := request.ErrInvalidParams{Context: "CreateTransitGatewayRouteInput"}
  33558. if s.DestinationCidrBlock == nil {
  33559. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  33560. }
  33561. if s.TransitGatewayRouteTableId == nil {
  33562. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  33563. }
  33564. if invalidParams.Len() > 0 {
  33565. return invalidParams
  33566. }
  33567. return nil
  33568. }
  33569. // SetBlackhole sets the Blackhole field's value.
  33570. func (s *CreateTransitGatewayRouteInput) SetBlackhole(v bool) *CreateTransitGatewayRouteInput {
  33571. s.Blackhole = &v
  33572. return s
  33573. }
  33574. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  33575. func (s *CreateTransitGatewayRouteInput) SetDestinationCidrBlock(v string) *CreateTransitGatewayRouteInput {
  33576. s.DestinationCidrBlock = &v
  33577. return s
  33578. }
  33579. // SetDryRun sets the DryRun field's value.
  33580. func (s *CreateTransitGatewayRouteInput) SetDryRun(v bool) *CreateTransitGatewayRouteInput {
  33581. s.DryRun = &v
  33582. return s
  33583. }
  33584. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  33585. func (s *CreateTransitGatewayRouteInput) SetTransitGatewayAttachmentId(v string) *CreateTransitGatewayRouteInput {
  33586. s.TransitGatewayAttachmentId = &v
  33587. return s
  33588. }
  33589. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  33590. func (s *CreateTransitGatewayRouteInput) SetTransitGatewayRouteTableId(v string) *CreateTransitGatewayRouteInput {
  33591. s.TransitGatewayRouteTableId = &v
  33592. return s
  33593. }
  33594. type CreateTransitGatewayRouteOutput struct {
  33595. _ struct{} `type:"structure"`
  33596. // Information about the route.
  33597. Route *TransitGatewayRoute `locationName:"route" type:"structure"`
  33598. }
  33599. // String returns the string representation
  33600. func (s CreateTransitGatewayRouteOutput) String() string {
  33601. return awsutil.Prettify(s)
  33602. }
  33603. // GoString returns the string representation
  33604. func (s CreateTransitGatewayRouteOutput) GoString() string {
  33605. return s.String()
  33606. }
  33607. // SetRoute sets the Route field's value.
  33608. func (s *CreateTransitGatewayRouteOutput) SetRoute(v *TransitGatewayRoute) *CreateTransitGatewayRouteOutput {
  33609. s.Route = v
  33610. return s
  33611. }
  33612. type CreateTransitGatewayRouteTableInput struct {
  33613. _ struct{} `type:"structure"`
  33614. // Checks whether you have the required permissions for the action, without
  33615. // actually making the request, and provides an error response. If you have
  33616. // the required permissions, the error response is DryRunOperation. Otherwise,
  33617. // it is UnauthorizedOperation.
  33618. DryRun *bool `type:"boolean"`
  33619. // The tags to apply to the transit gateway route table.
  33620. TagSpecifications []*TagSpecification `locationNameList:"item" type:"list"`
  33621. // The ID of the transit gateway.
  33622. //
  33623. // TransitGatewayId is a required field
  33624. TransitGatewayId *string `type:"string" required:"true"`
  33625. }
  33626. // String returns the string representation
  33627. func (s CreateTransitGatewayRouteTableInput) String() string {
  33628. return awsutil.Prettify(s)
  33629. }
  33630. // GoString returns the string representation
  33631. func (s CreateTransitGatewayRouteTableInput) GoString() string {
  33632. return s.String()
  33633. }
  33634. // Validate inspects the fields of the type to determine if they are valid.
  33635. func (s *CreateTransitGatewayRouteTableInput) Validate() error {
  33636. invalidParams := request.ErrInvalidParams{Context: "CreateTransitGatewayRouteTableInput"}
  33637. if s.TransitGatewayId == nil {
  33638. invalidParams.Add(request.NewErrParamRequired("TransitGatewayId"))
  33639. }
  33640. if invalidParams.Len() > 0 {
  33641. return invalidParams
  33642. }
  33643. return nil
  33644. }
  33645. // SetDryRun sets the DryRun field's value.
  33646. func (s *CreateTransitGatewayRouteTableInput) SetDryRun(v bool) *CreateTransitGatewayRouteTableInput {
  33647. s.DryRun = &v
  33648. return s
  33649. }
  33650. // SetTagSpecifications sets the TagSpecifications field's value.
  33651. func (s *CreateTransitGatewayRouteTableInput) SetTagSpecifications(v []*TagSpecification) *CreateTransitGatewayRouteTableInput {
  33652. s.TagSpecifications = v
  33653. return s
  33654. }
  33655. // SetTransitGatewayId sets the TransitGatewayId field's value.
  33656. func (s *CreateTransitGatewayRouteTableInput) SetTransitGatewayId(v string) *CreateTransitGatewayRouteTableInput {
  33657. s.TransitGatewayId = &v
  33658. return s
  33659. }
  33660. type CreateTransitGatewayRouteTableOutput struct {
  33661. _ struct{} `type:"structure"`
  33662. // Information about the transit gateway route table.
  33663. TransitGatewayRouteTable *TransitGatewayRouteTable `locationName:"transitGatewayRouteTable" type:"structure"`
  33664. }
  33665. // String returns the string representation
  33666. func (s CreateTransitGatewayRouteTableOutput) String() string {
  33667. return awsutil.Prettify(s)
  33668. }
  33669. // GoString returns the string representation
  33670. func (s CreateTransitGatewayRouteTableOutput) GoString() string {
  33671. return s.String()
  33672. }
  33673. // SetTransitGatewayRouteTable sets the TransitGatewayRouteTable field's value.
  33674. func (s *CreateTransitGatewayRouteTableOutput) SetTransitGatewayRouteTable(v *TransitGatewayRouteTable) *CreateTransitGatewayRouteTableOutput {
  33675. s.TransitGatewayRouteTable = v
  33676. return s
  33677. }
  33678. type CreateTransitGatewayVpcAttachmentInput struct {
  33679. _ struct{} `type:"structure"`
  33680. // Checks whether you have the required permissions for the action, without
  33681. // actually making the request, and provides an error response. If you have
  33682. // the required permissions, the error response is DryRunOperation. Otherwise,
  33683. // it is UnauthorizedOperation.
  33684. DryRun *bool `type:"boolean"`
  33685. // The VPC attachment options.
  33686. Options *CreateTransitGatewayVpcAttachmentRequestOptions `type:"structure"`
  33687. // The IDs of one or more subnets. You can specify only one subnet per Availability
  33688. // Zone. You must specify at least one subnet, but we recommend that you specify
  33689. // two subnets for better availability. The transit gateway uses one IP address
  33690. // from each specified subnet.
  33691. //
  33692. // SubnetIds is a required field
  33693. SubnetIds []*string `locationNameList:"item" type:"list" required:"true"`
  33694. // The tags to apply to the VPC attachment.
  33695. TagSpecifications []*TagSpecification `locationNameList:"item" type:"list"`
  33696. // The ID of the transit gateway.
  33697. //
  33698. // TransitGatewayId is a required field
  33699. TransitGatewayId *string `type:"string" required:"true"`
  33700. // The ID of the VPC.
  33701. //
  33702. // VpcId is a required field
  33703. VpcId *string `type:"string" required:"true"`
  33704. }
  33705. // String returns the string representation
  33706. func (s CreateTransitGatewayVpcAttachmentInput) String() string {
  33707. return awsutil.Prettify(s)
  33708. }
  33709. // GoString returns the string representation
  33710. func (s CreateTransitGatewayVpcAttachmentInput) GoString() string {
  33711. return s.String()
  33712. }
  33713. // Validate inspects the fields of the type to determine if they are valid.
  33714. func (s *CreateTransitGatewayVpcAttachmentInput) Validate() error {
  33715. invalidParams := request.ErrInvalidParams{Context: "CreateTransitGatewayVpcAttachmentInput"}
  33716. if s.SubnetIds == nil {
  33717. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  33718. }
  33719. if s.TransitGatewayId == nil {
  33720. invalidParams.Add(request.NewErrParamRequired("TransitGatewayId"))
  33721. }
  33722. if s.VpcId == nil {
  33723. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  33724. }
  33725. if invalidParams.Len() > 0 {
  33726. return invalidParams
  33727. }
  33728. return nil
  33729. }
  33730. // SetDryRun sets the DryRun field's value.
  33731. func (s *CreateTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *CreateTransitGatewayVpcAttachmentInput {
  33732. s.DryRun = &v
  33733. return s
  33734. }
  33735. // SetOptions sets the Options field's value.
  33736. func (s *CreateTransitGatewayVpcAttachmentInput) SetOptions(v *CreateTransitGatewayVpcAttachmentRequestOptions) *CreateTransitGatewayVpcAttachmentInput {
  33737. s.Options = v
  33738. return s
  33739. }
  33740. // SetSubnetIds sets the SubnetIds field's value.
  33741. func (s *CreateTransitGatewayVpcAttachmentInput) SetSubnetIds(v []*string) *CreateTransitGatewayVpcAttachmentInput {
  33742. s.SubnetIds = v
  33743. return s
  33744. }
  33745. // SetTagSpecifications sets the TagSpecifications field's value.
  33746. func (s *CreateTransitGatewayVpcAttachmentInput) SetTagSpecifications(v []*TagSpecification) *CreateTransitGatewayVpcAttachmentInput {
  33747. s.TagSpecifications = v
  33748. return s
  33749. }
  33750. // SetTransitGatewayId sets the TransitGatewayId field's value.
  33751. func (s *CreateTransitGatewayVpcAttachmentInput) SetTransitGatewayId(v string) *CreateTransitGatewayVpcAttachmentInput {
  33752. s.TransitGatewayId = &v
  33753. return s
  33754. }
  33755. // SetVpcId sets the VpcId field's value.
  33756. func (s *CreateTransitGatewayVpcAttachmentInput) SetVpcId(v string) *CreateTransitGatewayVpcAttachmentInput {
  33757. s.VpcId = &v
  33758. return s
  33759. }
  33760. type CreateTransitGatewayVpcAttachmentOutput struct {
  33761. _ struct{} `type:"structure"`
  33762. // Information about the VPC attachment.
  33763. TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
  33764. }
  33765. // String returns the string representation
  33766. func (s CreateTransitGatewayVpcAttachmentOutput) String() string {
  33767. return awsutil.Prettify(s)
  33768. }
  33769. // GoString returns the string representation
  33770. func (s CreateTransitGatewayVpcAttachmentOutput) GoString() string {
  33771. return s.String()
  33772. }
  33773. // SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value.
  33774. func (s *CreateTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *CreateTransitGatewayVpcAttachmentOutput {
  33775. s.TransitGatewayVpcAttachment = v
  33776. return s
  33777. }
  33778. // Describes the options for a VPC attachment.
  33779. type CreateTransitGatewayVpcAttachmentRequestOptions struct {
  33780. _ struct{} `type:"structure"`
  33781. // Enable or disable DNS support. The default is enable.
  33782. DnsSupport *string `type:"string" enum:"DnsSupportValue"`
  33783. // Enable or disable IPv6 support. The default is enable.
  33784. Ipv6Support *string `type:"string" enum:"Ipv6SupportValue"`
  33785. }
  33786. // String returns the string representation
  33787. func (s CreateTransitGatewayVpcAttachmentRequestOptions) String() string {
  33788. return awsutil.Prettify(s)
  33789. }
  33790. // GoString returns the string representation
  33791. func (s CreateTransitGatewayVpcAttachmentRequestOptions) GoString() string {
  33792. return s.String()
  33793. }
  33794. // SetDnsSupport sets the DnsSupport field's value.
  33795. func (s *CreateTransitGatewayVpcAttachmentRequestOptions) SetDnsSupport(v string) *CreateTransitGatewayVpcAttachmentRequestOptions {
  33796. s.DnsSupport = &v
  33797. return s
  33798. }
  33799. // SetIpv6Support sets the Ipv6Support field's value.
  33800. func (s *CreateTransitGatewayVpcAttachmentRequestOptions) SetIpv6Support(v string) *CreateTransitGatewayVpcAttachmentRequestOptions {
  33801. s.Ipv6Support = &v
  33802. return s
  33803. }
  33804. // Contains the parameters for CreateVolume.
  33805. type CreateVolumeInput struct {
  33806. _ struct{} `type:"structure"`
  33807. // The Availability Zone in which to create the volume. Use DescribeAvailabilityZones
  33808. // to list the Availability Zones that are currently available to you.
  33809. //
  33810. // AvailabilityZone is a required field
  33811. AvailabilityZone *string `type:"string" required:"true"`
  33812. // Checks whether you have the required permissions for the action, without
  33813. // actually making the request, and provides an error response. If you have
  33814. // the required permissions, the error response is DryRunOperation. Otherwise,
  33815. // it is UnauthorizedOperation.
  33816. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33817. // Specifies whether the volume should be encrypted. Encrypted Amazon EBS volumes
  33818. // may only be attached to instances that support Amazon EBS encryption. Volumes
  33819. // that are created from encrypted snapshots are automatically encrypted. There
  33820. // is no way to create an encrypted volume from an unencrypted snapshot or vice
  33821. // versa. If your AMI uses encrypted volumes, you can only launch it on supported
  33822. // instance types. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  33823. // in the Amazon Elastic Compute Cloud User Guide.
  33824. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  33825. // The number of I/O operations per second (IOPS) to provision for the volume,
  33826. // with a maximum ratio of 50 IOPS/GiB. Range is 100 to 64,000 IOPS for volumes
  33827. // in most regions. Maximum IOPS of 64,000 is guaranteed only on Nitro-based
  33828. // instances (AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances).
  33829. // Other instance families guarantee performance up to 32,000 IOPS. For more
  33830. // information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  33831. // in the Amazon Elastic Compute Cloud User Guide.
  33832. //
  33833. // This parameter is valid only for Provisioned IOPS SSD (io1) volumes.
  33834. Iops *int64 `type:"integer"`
  33835. // An identifier for the AWS Key Management Service (AWS KMS) customer master
  33836. // key (CMK) to use when creating the encrypted volume. This parameter is only
  33837. // required if you want to use a non-default CMK; if this parameter is not specified,
  33838. // the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted
  33839. // flag must also be set.
  33840. //
  33841. // The CMK identifier may be provided in any of the following formats:
  33842. //
  33843. // * Key ID
  33844. //
  33845. // * Key alias
  33846. //
  33847. // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
  33848. // by the region of the CMK, the AWS account ID of the CMK owner, the key
  33849. // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  33850. //
  33851. //
  33852. // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
  33853. // followed by the region of the CMK, the AWS account ID of the CMK owner,
  33854. // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
  33855. //
  33856. //
  33857. // AWS parses KmsKeyId asynchronously, meaning that the action you call may
  33858. // appear to complete even though you provided an invalid identifier. The action
  33859. // will eventually fail.
  33860. KmsKeyId *string `type:"string"`
  33861. // The size of the volume, in GiBs.
  33862. //
  33863. // Constraints: 1-16,384 for gp2, 4-16,384 for io1, 500-16,384 for st1, 500-16,384
  33864. // for sc1, and 1-1,024 for standard. If you specify a snapshot, the volume
  33865. // size must be equal to or larger than the snapshot size.
  33866. //
  33867. // Default: If you're creating the volume from a snapshot and don't specify
  33868. // a volume size, the default is the snapshot size.
  33869. Size *int64 `type:"integer"`
  33870. // The snapshot from which to create the volume.
  33871. SnapshotId *string `type:"string"`
  33872. // The tags to apply to the volume during creation.
  33873. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  33874. // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
  33875. // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
  33876. // for Magnetic volumes.
  33877. //
  33878. // Defaults: If no volume type is specified, the default is standard in us-east-1,
  33879. // eu-west-1, eu-central-1, us-west-2, us-west-1, sa-east-1, ap-northeast-1,
  33880. // ap-northeast-2, ap-southeast-1, ap-southeast-2, ap-south-1, us-gov-west-1,
  33881. // and cn-north-1. In all other regions, EBS defaults to gp2.
  33882. VolumeType *string `type:"string" enum:"VolumeType"`
  33883. }
  33884. // String returns the string representation
  33885. func (s CreateVolumeInput) String() string {
  33886. return awsutil.Prettify(s)
  33887. }
  33888. // GoString returns the string representation
  33889. func (s CreateVolumeInput) GoString() string {
  33890. return s.String()
  33891. }
  33892. // Validate inspects the fields of the type to determine if they are valid.
  33893. func (s *CreateVolumeInput) Validate() error {
  33894. invalidParams := request.ErrInvalidParams{Context: "CreateVolumeInput"}
  33895. if s.AvailabilityZone == nil {
  33896. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  33897. }
  33898. if invalidParams.Len() > 0 {
  33899. return invalidParams
  33900. }
  33901. return nil
  33902. }
  33903. // SetAvailabilityZone sets the AvailabilityZone field's value.
  33904. func (s *CreateVolumeInput) SetAvailabilityZone(v string) *CreateVolumeInput {
  33905. s.AvailabilityZone = &v
  33906. return s
  33907. }
  33908. // SetDryRun sets the DryRun field's value.
  33909. func (s *CreateVolumeInput) SetDryRun(v bool) *CreateVolumeInput {
  33910. s.DryRun = &v
  33911. return s
  33912. }
  33913. // SetEncrypted sets the Encrypted field's value.
  33914. func (s *CreateVolumeInput) SetEncrypted(v bool) *CreateVolumeInput {
  33915. s.Encrypted = &v
  33916. return s
  33917. }
  33918. // SetIops sets the Iops field's value.
  33919. func (s *CreateVolumeInput) SetIops(v int64) *CreateVolumeInput {
  33920. s.Iops = &v
  33921. return s
  33922. }
  33923. // SetKmsKeyId sets the KmsKeyId field's value.
  33924. func (s *CreateVolumeInput) SetKmsKeyId(v string) *CreateVolumeInput {
  33925. s.KmsKeyId = &v
  33926. return s
  33927. }
  33928. // SetSize sets the Size field's value.
  33929. func (s *CreateVolumeInput) SetSize(v int64) *CreateVolumeInput {
  33930. s.Size = &v
  33931. return s
  33932. }
  33933. // SetSnapshotId sets the SnapshotId field's value.
  33934. func (s *CreateVolumeInput) SetSnapshotId(v string) *CreateVolumeInput {
  33935. s.SnapshotId = &v
  33936. return s
  33937. }
  33938. // SetTagSpecifications sets the TagSpecifications field's value.
  33939. func (s *CreateVolumeInput) SetTagSpecifications(v []*TagSpecification) *CreateVolumeInput {
  33940. s.TagSpecifications = v
  33941. return s
  33942. }
  33943. // SetVolumeType sets the VolumeType field's value.
  33944. func (s *CreateVolumeInput) SetVolumeType(v string) *CreateVolumeInput {
  33945. s.VolumeType = &v
  33946. return s
  33947. }
  33948. // Describes the user or group to be added or removed from the permissions for
  33949. // a volume.
  33950. type CreateVolumePermission struct {
  33951. _ struct{} `type:"structure"`
  33952. // The specific group that is to be added or removed from a volume's list of
  33953. // create volume permissions.
  33954. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  33955. // The specific AWS account ID that is to be added or removed from a volume's
  33956. // list of create volume permissions.
  33957. UserId *string `locationName:"userId" type:"string"`
  33958. }
  33959. // String returns the string representation
  33960. func (s CreateVolumePermission) String() string {
  33961. return awsutil.Prettify(s)
  33962. }
  33963. // GoString returns the string representation
  33964. func (s CreateVolumePermission) GoString() string {
  33965. return s.String()
  33966. }
  33967. // SetGroup sets the Group field's value.
  33968. func (s *CreateVolumePermission) SetGroup(v string) *CreateVolumePermission {
  33969. s.Group = &v
  33970. return s
  33971. }
  33972. // SetUserId sets the UserId field's value.
  33973. func (s *CreateVolumePermission) SetUserId(v string) *CreateVolumePermission {
  33974. s.UserId = &v
  33975. return s
  33976. }
  33977. // Describes modifications to the permissions for a volume.
  33978. type CreateVolumePermissionModifications struct {
  33979. _ struct{} `type:"structure"`
  33980. // Adds a specific AWS account ID or group to a volume's list of create volume
  33981. // permissions.
  33982. Add []*CreateVolumePermission `locationNameList:"item" type:"list"`
  33983. // Removes a specific AWS account ID or group from a volume's list of create
  33984. // volume permissions.
  33985. Remove []*CreateVolumePermission `locationNameList:"item" type:"list"`
  33986. }
  33987. // String returns the string representation
  33988. func (s CreateVolumePermissionModifications) String() string {
  33989. return awsutil.Prettify(s)
  33990. }
  33991. // GoString returns the string representation
  33992. func (s CreateVolumePermissionModifications) GoString() string {
  33993. return s.String()
  33994. }
  33995. // SetAdd sets the Add field's value.
  33996. func (s *CreateVolumePermissionModifications) SetAdd(v []*CreateVolumePermission) *CreateVolumePermissionModifications {
  33997. s.Add = v
  33998. return s
  33999. }
  34000. // SetRemove sets the Remove field's value.
  34001. func (s *CreateVolumePermissionModifications) SetRemove(v []*CreateVolumePermission) *CreateVolumePermissionModifications {
  34002. s.Remove = v
  34003. return s
  34004. }
  34005. type CreateVpcEndpointConnectionNotificationInput struct {
  34006. _ struct{} `type:"structure"`
  34007. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  34008. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  34009. ClientToken *string `type:"string"`
  34010. // One or more endpoint events for which to receive notifications. Valid values
  34011. // are Accept, Connect, Delete, and Reject.
  34012. //
  34013. // ConnectionEvents is a required field
  34014. ConnectionEvents []*string `locationNameList:"item" type:"list" required:"true"`
  34015. // The ARN of the SNS topic for the notifications.
  34016. //
  34017. // ConnectionNotificationArn is a required field
  34018. ConnectionNotificationArn *string `type:"string" required:"true"`
  34019. // Checks whether you have the required permissions for the action, without
  34020. // actually making the request, and provides an error response. If you have
  34021. // the required permissions, the error response is DryRunOperation. Otherwise,
  34022. // it is UnauthorizedOperation.
  34023. DryRun *bool `type:"boolean"`
  34024. // The ID of the endpoint service.
  34025. ServiceId *string `type:"string"`
  34026. // The ID of the endpoint.
  34027. VpcEndpointId *string `type:"string"`
  34028. }
  34029. // String returns the string representation
  34030. func (s CreateVpcEndpointConnectionNotificationInput) String() string {
  34031. return awsutil.Prettify(s)
  34032. }
  34033. // GoString returns the string representation
  34034. func (s CreateVpcEndpointConnectionNotificationInput) GoString() string {
  34035. return s.String()
  34036. }
  34037. // Validate inspects the fields of the type to determine if they are valid.
  34038. func (s *CreateVpcEndpointConnectionNotificationInput) Validate() error {
  34039. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointConnectionNotificationInput"}
  34040. if s.ConnectionEvents == nil {
  34041. invalidParams.Add(request.NewErrParamRequired("ConnectionEvents"))
  34042. }
  34043. if s.ConnectionNotificationArn == nil {
  34044. invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationArn"))
  34045. }
  34046. if invalidParams.Len() > 0 {
  34047. return invalidParams
  34048. }
  34049. return nil
  34050. }
  34051. // SetClientToken sets the ClientToken field's value.
  34052. func (s *CreateVpcEndpointConnectionNotificationInput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationInput {
  34053. s.ClientToken = &v
  34054. return s
  34055. }
  34056. // SetConnectionEvents sets the ConnectionEvents field's value.
  34057. func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionEvents(v []*string) *CreateVpcEndpointConnectionNotificationInput {
  34058. s.ConnectionEvents = v
  34059. return s
  34060. }
  34061. // SetConnectionNotificationArn sets the ConnectionNotificationArn field's value.
  34062. func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionNotificationArn(v string) *CreateVpcEndpointConnectionNotificationInput {
  34063. s.ConnectionNotificationArn = &v
  34064. return s
  34065. }
  34066. // SetDryRun sets the DryRun field's value.
  34067. func (s *CreateVpcEndpointConnectionNotificationInput) SetDryRun(v bool) *CreateVpcEndpointConnectionNotificationInput {
  34068. s.DryRun = &v
  34069. return s
  34070. }
  34071. // SetServiceId sets the ServiceId field's value.
  34072. func (s *CreateVpcEndpointConnectionNotificationInput) SetServiceId(v string) *CreateVpcEndpointConnectionNotificationInput {
  34073. s.ServiceId = &v
  34074. return s
  34075. }
  34076. // SetVpcEndpointId sets the VpcEndpointId field's value.
  34077. func (s *CreateVpcEndpointConnectionNotificationInput) SetVpcEndpointId(v string) *CreateVpcEndpointConnectionNotificationInput {
  34078. s.VpcEndpointId = &v
  34079. return s
  34080. }
  34081. type CreateVpcEndpointConnectionNotificationOutput struct {
  34082. _ struct{} `type:"structure"`
  34083. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  34084. // the request.
  34085. ClientToken *string `locationName:"clientToken" type:"string"`
  34086. // Information about the notification.
  34087. ConnectionNotification *ConnectionNotification `locationName:"connectionNotification" type:"structure"`
  34088. }
  34089. // String returns the string representation
  34090. func (s CreateVpcEndpointConnectionNotificationOutput) String() string {
  34091. return awsutil.Prettify(s)
  34092. }
  34093. // GoString returns the string representation
  34094. func (s CreateVpcEndpointConnectionNotificationOutput) GoString() string {
  34095. return s.String()
  34096. }
  34097. // SetClientToken sets the ClientToken field's value.
  34098. func (s *CreateVpcEndpointConnectionNotificationOutput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationOutput {
  34099. s.ClientToken = &v
  34100. return s
  34101. }
  34102. // SetConnectionNotification sets the ConnectionNotification field's value.
  34103. func (s *CreateVpcEndpointConnectionNotificationOutput) SetConnectionNotification(v *ConnectionNotification) *CreateVpcEndpointConnectionNotificationOutput {
  34104. s.ConnectionNotification = v
  34105. return s
  34106. }
  34107. // Contains the parameters for CreateVpcEndpoint.
  34108. type CreateVpcEndpointInput struct {
  34109. _ struct{} `type:"structure"`
  34110. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  34111. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  34112. ClientToken *string `type:"string"`
  34113. // Checks whether you have the required permissions for the action, without
  34114. // actually making the request, and provides an error response. If you have
  34115. // the required permissions, the error response is DryRunOperation. Otherwise,
  34116. // it is UnauthorizedOperation.
  34117. DryRun *bool `type:"boolean"`
  34118. // (Gateway endpoint) A policy to attach to the endpoint that controls access
  34119. // to the service. The policy must be in valid JSON format. If this parameter
  34120. // is not specified, we attach a default policy that allows full access to the
  34121. // service.
  34122. PolicyDocument *string `type:"string"`
  34123. // (Interface endpoint) Indicate whether to associate a private hosted zone
  34124. // with the specified VPC. The private hosted zone contains a record set for
  34125. // the default public DNS name for the service for the region (for example,
  34126. // kinesis.us-east-1.amazonaws.com) which resolves to the private IP addresses
  34127. // of the endpoint network interfaces in the VPC. This enables you to make requests
  34128. // to the default public DNS name for the service instead of the public DNS
  34129. // names that are automatically generated by the VPC endpoint service.
  34130. //
  34131. // To use a private hosted zone, you must set the following VPC attributes to
  34132. // true: enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to
  34133. // set the VPC attributes.
  34134. //
  34135. // Default: false
  34136. PrivateDnsEnabled *bool `type:"boolean"`
  34137. // (Gateway endpoint) One or more route table IDs.
  34138. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"`
  34139. // (Interface endpoint) The ID of one or more security groups to associate with
  34140. // the endpoint network interface.
  34141. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`
  34142. // The service name. To get a list of available services, use the DescribeVpcEndpointServices
  34143. // request, or get the name from the service provider.
  34144. //
  34145. // ServiceName is a required field
  34146. ServiceName *string `type:"string" required:"true"`
  34147. // (Interface endpoint) The ID of one or more subnets in which to create an
  34148. // endpoint network interface.
  34149. SubnetIds []*string `locationName:"SubnetId" locationNameList:"item" type:"list"`
  34150. // The type of endpoint.
  34151. //
  34152. // Default: Gateway
  34153. VpcEndpointType *string `type:"string" enum:"VpcEndpointType"`
  34154. // The ID of the VPC in which the endpoint will be used.
  34155. //
  34156. // VpcId is a required field
  34157. VpcId *string `type:"string" required:"true"`
  34158. }
  34159. // String returns the string representation
  34160. func (s CreateVpcEndpointInput) String() string {
  34161. return awsutil.Prettify(s)
  34162. }
  34163. // GoString returns the string representation
  34164. func (s CreateVpcEndpointInput) GoString() string {
  34165. return s.String()
  34166. }
  34167. // Validate inspects the fields of the type to determine if they are valid.
  34168. func (s *CreateVpcEndpointInput) Validate() error {
  34169. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointInput"}
  34170. if s.ServiceName == nil {
  34171. invalidParams.Add(request.NewErrParamRequired("ServiceName"))
  34172. }
  34173. if s.VpcId == nil {
  34174. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  34175. }
  34176. if invalidParams.Len() > 0 {
  34177. return invalidParams
  34178. }
  34179. return nil
  34180. }
  34181. // SetClientToken sets the ClientToken field's value.
  34182. func (s *CreateVpcEndpointInput) SetClientToken(v string) *CreateVpcEndpointInput {
  34183. s.ClientToken = &v
  34184. return s
  34185. }
  34186. // SetDryRun sets the DryRun field's value.
  34187. func (s *CreateVpcEndpointInput) SetDryRun(v bool) *CreateVpcEndpointInput {
  34188. s.DryRun = &v
  34189. return s
  34190. }
  34191. // SetPolicyDocument sets the PolicyDocument field's value.
  34192. func (s *CreateVpcEndpointInput) SetPolicyDocument(v string) *CreateVpcEndpointInput {
  34193. s.PolicyDocument = &v
  34194. return s
  34195. }
  34196. // SetPrivateDnsEnabled sets the PrivateDnsEnabled field's value.
  34197. func (s *CreateVpcEndpointInput) SetPrivateDnsEnabled(v bool) *CreateVpcEndpointInput {
  34198. s.PrivateDnsEnabled = &v
  34199. return s
  34200. }
  34201. // SetRouteTableIds sets the RouteTableIds field's value.
  34202. func (s *CreateVpcEndpointInput) SetRouteTableIds(v []*string) *CreateVpcEndpointInput {
  34203. s.RouteTableIds = v
  34204. return s
  34205. }
  34206. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  34207. func (s *CreateVpcEndpointInput) SetSecurityGroupIds(v []*string) *CreateVpcEndpointInput {
  34208. s.SecurityGroupIds = v
  34209. return s
  34210. }
  34211. // SetServiceName sets the ServiceName field's value.
  34212. func (s *CreateVpcEndpointInput) SetServiceName(v string) *CreateVpcEndpointInput {
  34213. s.ServiceName = &v
  34214. return s
  34215. }
  34216. // SetSubnetIds sets the SubnetIds field's value.
  34217. func (s *CreateVpcEndpointInput) SetSubnetIds(v []*string) *CreateVpcEndpointInput {
  34218. s.SubnetIds = v
  34219. return s
  34220. }
  34221. // SetVpcEndpointType sets the VpcEndpointType field's value.
  34222. func (s *CreateVpcEndpointInput) SetVpcEndpointType(v string) *CreateVpcEndpointInput {
  34223. s.VpcEndpointType = &v
  34224. return s
  34225. }
  34226. // SetVpcId sets the VpcId field's value.
  34227. func (s *CreateVpcEndpointInput) SetVpcId(v string) *CreateVpcEndpointInput {
  34228. s.VpcId = &v
  34229. return s
  34230. }
  34231. // Contains the output of CreateVpcEndpoint.
  34232. type CreateVpcEndpointOutput struct {
  34233. _ struct{} `type:"structure"`
  34234. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  34235. // the request.
  34236. ClientToken *string `locationName:"clientToken" type:"string"`
  34237. // Information about the endpoint.
  34238. VpcEndpoint *VpcEndpoint `locationName:"vpcEndpoint" type:"structure"`
  34239. }
  34240. // String returns the string representation
  34241. func (s CreateVpcEndpointOutput) String() string {
  34242. return awsutil.Prettify(s)
  34243. }
  34244. // GoString returns the string representation
  34245. func (s CreateVpcEndpointOutput) GoString() string {
  34246. return s.String()
  34247. }
  34248. // SetClientToken sets the ClientToken field's value.
  34249. func (s *CreateVpcEndpointOutput) SetClientToken(v string) *CreateVpcEndpointOutput {
  34250. s.ClientToken = &v
  34251. return s
  34252. }
  34253. // SetVpcEndpoint sets the VpcEndpoint field's value.
  34254. func (s *CreateVpcEndpointOutput) SetVpcEndpoint(v *VpcEndpoint) *CreateVpcEndpointOutput {
  34255. s.VpcEndpoint = v
  34256. return s
  34257. }
  34258. type CreateVpcEndpointServiceConfigurationInput struct {
  34259. _ struct{} `type:"structure"`
  34260. // Indicate whether requests from service consumers to create an endpoint to
  34261. // your service must be accepted. To accept a request, use AcceptVpcEndpointConnections.
  34262. AcceptanceRequired *bool `type:"boolean"`
  34263. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  34264. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  34265. ClientToken *string `type:"string"`
  34266. // Checks whether you have the required permissions for the action, without
  34267. // actually making the request, and provides an error response. If you have
  34268. // the required permissions, the error response is DryRunOperation. Otherwise,
  34269. // it is UnauthorizedOperation.
  34270. DryRun *bool `type:"boolean"`
  34271. // The Amazon Resource Names (ARNs) of one or more Network Load Balancers for
  34272. // your service.
  34273. //
  34274. // NetworkLoadBalancerArns is a required field
  34275. NetworkLoadBalancerArns []*string `locationName:"NetworkLoadBalancerArn" locationNameList:"item" type:"list" required:"true"`
  34276. }
  34277. // String returns the string representation
  34278. func (s CreateVpcEndpointServiceConfigurationInput) String() string {
  34279. return awsutil.Prettify(s)
  34280. }
  34281. // GoString returns the string representation
  34282. func (s CreateVpcEndpointServiceConfigurationInput) GoString() string {
  34283. return s.String()
  34284. }
  34285. // Validate inspects the fields of the type to determine if they are valid.
  34286. func (s *CreateVpcEndpointServiceConfigurationInput) Validate() error {
  34287. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointServiceConfigurationInput"}
  34288. if s.NetworkLoadBalancerArns == nil {
  34289. invalidParams.Add(request.NewErrParamRequired("NetworkLoadBalancerArns"))
  34290. }
  34291. if invalidParams.Len() > 0 {
  34292. return invalidParams
  34293. }
  34294. return nil
  34295. }
  34296. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  34297. func (s *CreateVpcEndpointServiceConfigurationInput) SetAcceptanceRequired(v bool) *CreateVpcEndpointServiceConfigurationInput {
  34298. s.AcceptanceRequired = &v
  34299. return s
  34300. }
  34301. // SetClientToken sets the ClientToken field's value.
  34302. func (s *CreateVpcEndpointServiceConfigurationInput) SetClientToken(v string) *CreateVpcEndpointServiceConfigurationInput {
  34303. s.ClientToken = &v
  34304. return s
  34305. }
  34306. // SetDryRun sets the DryRun field's value.
  34307. func (s *CreateVpcEndpointServiceConfigurationInput) SetDryRun(v bool) *CreateVpcEndpointServiceConfigurationInput {
  34308. s.DryRun = &v
  34309. return s
  34310. }
  34311. // SetNetworkLoadBalancerArns sets the NetworkLoadBalancerArns field's value.
  34312. func (s *CreateVpcEndpointServiceConfigurationInput) SetNetworkLoadBalancerArns(v []*string) *CreateVpcEndpointServiceConfigurationInput {
  34313. s.NetworkLoadBalancerArns = v
  34314. return s
  34315. }
  34316. type CreateVpcEndpointServiceConfigurationOutput struct {
  34317. _ struct{} `type:"structure"`
  34318. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  34319. // the request.
  34320. ClientToken *string `locationName:"clientToken" type:"string"`
  34321. // Information about the service configuration.
  34322. ServiceConfiguration *ServiceConfiguration `locationName:"serviceConfiguration" type:"structure"`
  34323. }
  34324. // String returns the string representation
  34325. func (s CreateVpcEndpointServiceConfigurationOutput) String() string {
  34326. return awsutil.Prettify(s)
  34327. }
  34328. // GoString returns the string representation
  34329. func (s CreateVpcEndpointServiceConfigurationOutput) GoString() string {
  34330. return s.String()
  34331. }
  34332. // SetClientToken sets the ClientToken field's value.
  34333. func (s *CreateVpcEndpointServiceConfigurationOutput) SetClientToken(v string) *CreateVpcEndpointServiceConfigurationOutput {
  34334. s.ClientToken = &v
  34335. return s
  34336. }
  34337. // SetServiceConfiguration sets the ServiceConfiguration field's value.
  34338. func (s *CreateVpcEndpointServiceConfigurationOutput) SetServiceConfiguration(v *ServiceConfiguration) *CreateVpcEndpointServiceConfigurationOutput {
  34339. s.ServiceConfiguration = v
  34340. return s
  34341. }
  34342. type CreateVpcInput struct {
  34343. _ struct{} `type:"structure"`
  34344. // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for
  34345. // the VPC. You cannot specify the range of IP addresses, or the size of the
  34346. // CIDR block.
  34347. AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"`
  34348. // The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
  34349. //
  34350. // CidrBlock is a required field
  34351. CidrBlock *string `type:"string" required:"true"`
  34352. // Checks whether you have the required permissions for the action, without
  34353. // actually making the request, and provides an error response. If you have
  34354. // the required permissions, the error response is DryRunOperation. Otherwise,
  34355. // it is UnauthorizedOperation.
  34356. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34357. // The tenancy options for instances launched into the VPC. For default, instances
  34358. // are launched with shared tenancy by default. You can launch instances with
  34359. // any tenancy into a shared tenancy VPC. For dedicated, instances are launched
  34360. // as dedicated tenancy instances by default. You can only launch instances
  34361. // with a tenancy of dedicated or host into a dedicated tenancy VPC.
  34362. //
  34363. // Important: The host value cannot be used with this parameter. Use the default
  34364. // or dedicated values only.
  34365. //
  34366. // Default: default
  34367. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  34368. }
  34369. // String returns the string representation
  34370. func (s CreateVpcInput) String() string {
  34371. return awsutil.Prettify(s)
  34372. }
  34373. // GoString returns the string representation
  34374. func (s CreateVpcInput) GoString() string {
  34375. return s.String()
  34376. }
  34377. // Validate inspects the fields of the type to determine if they are valid.
  34378. func (s *CreateVpcInput) Validate() error {
  34379. invalidParams := request.ErrInvalidParams{Context: "CreateVpcInput"}
  34380. if s.CidrBlock == nil {
  34381. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  34382. }
  34383. if invalidParams.Len() > 0 {
  34384. return invalidParams
  34385. }
  34386. return nil
  34387. }
  34388. // SetAmazonProvidedIpv6CidrBlock sets the AmazonProvidedIpv6CidrBlock field's value.
  34389. func (s *CreateVpcInput) SetAmazonProvidedIpv6CidrBlock(v bool) *CreateVpcInput {
  34390. s.AmazonProvidedIpv6CidrBlock = &v
  34391. return s
  34392. }
  34393. // SetCidrBlock sets the CidrBlock field's value.
  34394. func (s *CreateVpcInput) SetCidrBlock(v string) *CreateVpcInput {
  34395. s.CidrBlock = &v
  34396. return s
  34397. }
  34398. // SetDryRun sets the DryRun field's value.
  34399. func (s *CreateVpcInput) SetDryRun(v bool) *CreateVpcInput {
  34400. s.DryRun = &v
  34401. return s
  34402. }
  34403. // SetInstanceTenancy sets the InstanceTenancy field's value.
  34404. func (s *CreateVpcInput) SetInstanceTenancy(v string) *CreateVpcInput {
  34405. s.InstanceTenancy = &v
  34406. return s
  34407. }
  34408. type CreateVpcOutput struct {
  34409. _ struct{} `type:"structure"`
  34410. // Information about the VPC.
  34411. Vpc *Vpc `locationName:"vpc" type:"structure"`
  34412. }
  34413. // String returns the string representation
  34414. func (s CreateVpcOutput) String() string {
  34415. return awsutil.Prettify(s)
  34416. }
  34417. // GoString returns the string representation
  34418. func (s CreateVpcOutput) GoString() string {
  34419. return s.String()
  34420. }
  34421. // SetVpc sets the Vpc field's value.
  34422. func (s *CreateVpcOutput) SetVpc(v *Vpc) *CreateVpcOutput {
  34423. s.Vpc = v
  34424. return s
  34425. }
  34426. type CreateVpcPeeringConnectionInput struct {
  34427. _ struct{} `type:"structure"`
  34428. // Checks whether you have the required permissions for the action, without
  34429. // actually making the request, and provides an error response. If you have
  34430. // the required permissions, the error response is DryRunOperation. Otherwise,
  34431. // it is UnauthorizedOperation.
  34432. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34433. // The AWS account ID of the owner of the accepter VPC.
  34434. //
  34435. // Default: Your AWS account ID
  34436. PeerOwnerId *string `locationName:"peerOwnerId" type:"string"`
  34437. // The region code for the accepter VPC, if the accepter VPC is located in a
  34438. // region other than the region in which you make the request.
  34439. //
  34440. // Default: The region in which you make the request.
  34441. PeerRegion *string `type:"string"`
  34442. // The ID of the VPC with which you are creating the VPC peering connection.
  34443. // You must specify this parameter in the request.
  34444. PeerVpcId *string `locationName:"peerVpcId" type:"string"`
  34445. // The ID of the requester VPC. You must specify this parameter in the request.
  34446. VpcId *string `locationName:"vpcId" type:"string"`
  34447. }
  34448. // String returns the string representation
  34449. func (s CreateVpcPeeringConnectionInput) String() string {
  34450. return awsutil.Prettify(s)
  34451. }
  34452. // GoString returns the string representation
  34453. func (s CreateVpcPeeringConnectionInput) GoString() string {
  34454. return s.String()
  34455. }
  34456. // SetDryRun sets the DryRun field's value.
  34457. func (s *CreateVpcPeeringConnectionInput) SetDryRun(v bool) *CreateVpcPeeringConnectionInput {
  34458. s.DryRun = &v
  34459. return s
  34460. }
  34461. // SetPeerOwnerId sets the PeerOwnerId field's value.
  34462. func (s *CreateVpcPeeringConnectionInput) SetPeerOwnerId(v string) *CreateVpcPeeringConnectionInput {
  34463. s.PeerOwnerId = &v
  34464. return s
  34465. }
  34466. // SetPeerRegion sets the PeerRegion field's value.
  34467. func (s *CreateVpcPeeringConnectionInput) SetPeerRegion(v string) *CreateVpcPeeringConnectionInput {
  34468. s.PeerRegion = &v
  34469. return s
  34470. }
  34471. // SetPeerVpcId sets the PeerVpcId field's value.
  34472. func (s *CreateVpcPeeringConnectionInput) SetPeerVpcId(v string) *CreateVpcPeeringConnectionInput {
  34473. s.PeerVpcId = &v
  34474. return s
  34475. }
  34476. // SetVpcId sets the VpcId field's value.
  34477. func (s *CreateVpcPeeringConnectionInput) SetVpcId(v string) *CreateVpcPeeringConnectionInput {
  34478. s.VpcId = &v
  34479. return s
  34480. }
  34481. type CreateVpcPeeringConnectionOutput struct {
  34482. _ struct{} `type:"structure"`
  34483. // Information about the VPC peering connection.
  34484. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
  34485. }
  34486. // String returns the string representation
  34487. func (s CreateVpcPeeringConnectionOutput) String() string {
  34488. return awsutil.Prettify(s)
  34489. }
  34490. // GoString returns the string representation
  34491. func (s CreateVpcPeeringConnectionOutput) GoString() string {
  34492. return s.String()
  34493. }
  34494. // SetVpcPeeringConnection sets the VpcPeeringConnection field's value.
  34495. func (s *CreateVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *CreateVpcPeeringConnectionOutput {
  34496. s.VpcPeeringConnection = v
  34497. return s
  34498. }
  34499. // Contains the parameters for CreateVpnConnection.
  34500. type CreateVpnConnectionInput struct {
  34501. _ struct{} `type:"structure"`
  34502. // The ID of the customer gateway.
  34503. //
  34504. // CustomerGatewayId is a required field
  34505. CustomerGatewayId *string `type:"string" required:"true"`
  34506. // Checks whether you have the required permissions for the action, without
  34507. // actually making the request, and provides an error response. If you have
  34508. // the required permissions, the error response is DryRunOperation. Otherwise,
  34509. // it is UnauthorizedOperation.
  34510. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34511. // The options for the VPN connection.
  34512. Options *VpnConnectionOptionsSpecification `locationName:"options" type:"structure"`
  34513. // The ID of the transit gateway. If you specify a transit gateway, you cannot
  34514. // specify a virtual private gateway.
  34515. TransitGatewayId *string `type:"string"`
  34516. // The type of VPN connection (ipsec.1).
  34517. //
  34518. // Type is a required field
  34519. Type *string `type:"string" required:"true"`
  34520. // The ID of the virtual private gateway. If you specify a virtual private gateway,
  34521. // you cannot specify a transit gateway.
  34522. VpnGatewayId *string `type:"string"`
  34523. }
  34524. // String returns the string representation
  34525. func (s CreateVpnConnectionInput) String() string {
  34526. return awsutil.Prettify(s)
  34527. }
  34528. // GoString returns the string representation
  34529. func (s CreateVpnConnectionInput) GoString() string {
  34530. return s.String()
  34531. }
  34532. // Validate inspects the fields of the type to determine if they are valid.
  34533. func (s *CreateVpnConnectionInput) Validate() error {
  34534. invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionInput"}
  34535. if s.CustomerGatewayId == nil {
  34536. invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId"))
  34537. }
  34538. if s.Type == nil {
  34539. invalidParams.Add(request.NewErrParamRequired("Type"))
  34540. }
  34541. if invalidParams.Len() > 0 {
  34542. return invalidParams
  34543. }
  34544. return nil
  34545. }
  34546. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  34547. func (s *CreateVpnConnectionInput) SetCustomerGatewayId(v string) *CreateVpnConnectionInput {
  34548. s.CustomerGatewayId = &v
  34549. return s
  34550. }
  34551. // SetDryRun sets the DryRun field's value.
  34552. func (s *CreateVpnConnectionInput) SetDryRun(v bool) *CreateVpnConnectionInput {
  34553. s.DryRun = &v
  34554. return s
  34555. }
  34556. // SetOptions sets the Options field's value.
  34557. func (s *CreateVpnConnectionInput) SetOptions(v *VpnConnectionOptionsSpecification) *CreateVpnConnectionInput {
  34558. s.Options = v
  34559. return s
  34560. }
  34561. // SetTransitGatewayId sets the TransitGatewayId field's value.
  34562. func (s *CreateVpnConnectionInput) SetTransitGatewayId(v string) *CreateVpnConnectionInput {
  34563. s.TransitGatewayId = &v
  34564. return s
  34565. }
  34566. // SetType sets the Type field's value.
  34567. func (s *CreateVpnConnectionInput) SetType(v string) *CreateVpnConnectionInput {
  34568. s.Type = &v
  34569. return s
  34570. }
  34571. // SetVpnGatewayId sets the VpnGatewayId field's value.
  34572. func (s *CreateVpnConnectionInput) SetVpnGatewayId(v string) *CreateVpnConnectionInput {
  34573. s.VpnGatewayId = &v
  34574. return s
  34575. }
  34576. // Contains the output of CreateVpnConnection.
  34577. type CreateVpnConnectionOutput struct {
  34578. _ struct{} `type:"structure"`
  34579. // Information about the VPN connection.
  34580. VpnConnection *VpnConnection `locationName:"vpnConnection" type:"structure"`
  34581. }
  34582. // String returns the string representation
  34583. func (s CreateVpnConnectionOutput) String() string {
  34584. return awsutil.Prettify(s)
  34585. }
  34586. // GoString returns the string representation
  34587. func (s CreateVpnConnectionOutput) GoString() string {
  34588. return s.String()
  34589. }
  34590. // SetVpnConnection sets the VpnConnection field's value.
  34591. func (s *CreateVpnConnectionOutput) SetVpnConnection(v *VpnConnection) *CreateVpnConnectionOutput {
  34592. s.VpnConnection = v
  34593. return s
  34594. }
  34595. // Contains the parameters for CreateVpnConnectionRoute.
  34596. type CreateVpnConnectionRouteInput struct {
  34597. _ struct{} `type:"structure"`
  34598. // The CIDR block associated with the local subnet of the customer network.
  34599. //
  34600. // DestinationCidrBlock is a required field
  34601. DestinationCidrBlock *string `type:"string" required:"true"`
  34602. // The ID of the VPN connection.
  34603. //
  34604. // VpnConnectionId is a required field
  34605. VpnConnectionId *string `type:"string" required:"true"`
  34606. }
  34607. // String returns the string representation
  34608. func (s CreateVpnConnectionRouteInput) String() string {
  34609. return awsutil.Prettify(s)
  34610. }
  34611. // GoString returns the string representation
  34612. func (s CreateVpnConnectionRouteInput) GoString() string {
  34613. return s.String()
  34614. }
  34615. // Validate inspects the fields of the type to determine if they are valid.
  34616. func (s *CreateVpnConnectionRouteInput) Validate() error {
  34617. invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionRouteInput"}
  34618. if s.DestinationCidrBlock == nil {
  34619. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  34620. }
  34621. if s.VpnConnectionId == nil {
  34622. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  34623. }
  34624. if invalidParams.Len() > 0 {
  34625. return invalidParams
  34626. }
  34627. return nil
  34628. }
  34629. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  34630. func (s *CreateVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *CreateVpnConnectionRouteInput {
  34631. s.DestinationCidrBlock = &v
  34632. return s
  34633. }
  34634. // SetVpnConnectionId sets the VpnConnectionId field's value.
  34635. func (s *CreateVpnConnectionRouteInput) SetVpnConnectionId(v string) *CreateVpnConnectionRouteInput {
  34636. s.VpnConnectionId = &v
  34637. return s
  34638. }
  34639. type CreateVpnConnectionRouteOutput struct {
  34640. _ struct{} `type:"structure"`
  34641. }
  34642. // String returns the string representation
  34643. func (s CreateVpnConnectionRouteOutput) String() string {
  34644. return awsutil.Prettify(s)
  34645. }
  34646. // GoString returns the string representation
  34647. func (s CreateVpnConnectionRouteOutput) GoString() string {
  34648. return s.String()
  34649. }
  34650. // Contains the parameters for CreateVpnGateway.
  34651. type CreateVpnGatewayInput struct {
  34652. _ struct{} `type:"structure"`
  34653. // A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
  34654. // If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If
  34655. // you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.
  34656. //
  34657. // Default: 64512
  34658. AmazonSideAsn *int64 `type:"long"`
  34659. // The Availability Zone for the virtual private gateway.
  34660. AvailabilityZone *string `type:"string"`
  34661. // Checks whether you have the required permissions for the action, without
  34662. // actually making the request, and provides an error response. If you have
  34663. // the required permissions, the error response is DryRunOperation. Otherwise,
  34664. // it is UnauthorizedOperation.
  34665. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34666. // The type of VPN connection this virtual private gateway supports.
  34667. //
  34668. // Type is a required field
  34669. Type *string `type:"string" required:"true" enum:"GatewayType"`
  34670. }
  34671. // String returns the string representation
  34672. func (s CreateVpnGatewayInput) String() string {
  34673. return awsutil.Prettify(s)
  34674. }
  34675. // GoString returns the string representation
  34676. func (s CreateVpnGatewayInput) GoString() string {
  34677. return s.String()
  34678. }
  34679. // Validate inspects the fields of the type to determine if they are valid.
  34680. func (s *CreateVpnGatewayInput) Validate() error {
  34681. invalidParams := request.ErrInvalidParams{Context: "CreateVpnGatewayInput"}
  34682. if s.Type == nil {
  34683. invalidParams.Add(request.NewErrParamRequired("Type"))
  34684. }
  34685. if invalidParams.Len() > 0 {
  34686. return invalidParams
  34687. }
  34688. return nil
  34689. }
  34690. // SetAmazonSideAsn sets the AmazonSideAsn field's value.
  34691. func (s *CreateVpnGatewayInput) SetAmazonSideAsn(v int64) *CreateVpnGatewayInput {
  34692. s.AmazonSideAsn = &v
  34693. return s
  34694. }
  34695. // SetAvailabilityZone sets the AvailabilityZone field's value.
  34696. func (s *CreateVpnGatewayInput) SetAvailabilityZone(v string) *CreateVpnGatewayInput {
  34697. s.AvailabilityZone = &v
  34698. return s
  34699. }
  34700. // SetDryRun sets the DryRun field's value.
  34701. func (s *CreateVpnGatewayInput) SetDryRun(v bool) *CreateVpnGatewayInput {
  34702. s.DryRun = &v
  34703. return s
  34704. }
  34705. // SetType sets the Type field's value.
  34706. func (s *CreateVpnGatewayInput) SetType(v string) *CreateVpnGatewayInput {
  34707. s.Type = &v
  34708. return s
  34709. }
  34710. // Contains the output of CreateVpnGateway.
  34711. type CreateVpnGatewayOutput struct {
  34712. _ struct{} `type:"structure"`
  34713. // Information about the virtual private gateway.
  34714. VpnGateway *VpnGateway `locationName:"vpnGateway" type:"structure"`
  34715. }
  34716. // String returns the string representation
  34717. func (s CreateVpnGatewayOutput) String() string {
  34718. return awsutil.Prettify(s)
  34719. }
  34720. // GoString returns the string representation
  34721. func (s CreateVpnGatewayOutput) GoString() string {
  34722. return s.String()
  34723. }
  34724. // SetVpnGateway sets the VpnGateway field's value.
  34725. func (s *CreateVpnGatewayOutput) SetVpnGateway(v *VpnGateway) *CreateVpnGatewayOutput {
  34726. s.VpnGateway = v
  34727. return s
  34728. }
  34729. // Describes the credit option for CPU usage of a T2 or T3 instance.
  34730. type CreditSpecification struct {
  34731. _ struct{} `type:"structure"`
  34732. // The credit option for CPU usage of a T2 or T3 instance. Valid values are
  34733. // standard and unlimited.
  34734. CpuCredits *string `locationName:"cpuCredits" type:"string"`
  34735. }
  34736. // String returns the string representation
  34737. func (s CreditSpecification) String() string {
  34738. return awsutil.Prettify(s)
  34739. }
  34740. // GoString returns the string representation
  34741. func (s CreditSpecification) GoString() string {
  34742. return s.String()
  34743. }
  34744. // SetCpuCredits sets the CpuCredits field's value.
  34745. func (s *CreditSpecification) SetCpuCredits(v string) *CreditSpecification {
  34746. s.CpuCredits = &v
  34747. return s
  34748. }
  34749. // The credit option for CPU usage of a T2 or T3 instance.
  34750. type CreditSpecificationRequest struct {
  34751. _ struct{} `type:"structure"`
  34752. // The credit option for CPU usage of a T2 or T3 instance. Valid values are
  34753. // standard and unlimited.
  34754. //
  34755. // CpuCredits is a required field
  34756. CpuCredits *string `type:"string" required:"true"`
  34757. }
  34758. // String returns the string representation
  34759. func (s CreditSpecificationRequest) String() string {
  34760. return awsutil.Prettify(s)
  34761. }
  34762. // GoString returns the string representation
  34763. func (s CreditSpecificationRequest) GoString() string {
  34764. return s.String()
  34765. }
  34766. // Validate inspects the fields of the type to determine if they are valid.
  34767. func (s *CreditSpecificationRequest) Validate() error {
  34768. invalidParams := request.ErrInvalidParams{Context: "CreditSpecificationRequest"}
  34769. if s.CpuCredits == nil {
  34770. invalidParams.Add(request.NewErrParamRequired("CpuCredits"))
  34771. }
  34772. if invalidParams.Len() > 0 {
  34773. return invalidParams
  34774. }
  34775. return nil
  34776. }
  34777. // SetCpuCredits sets the CpuCredits field's value.
  34778. func (s *CreditSpecificationRequest) SetCpuCredits(v string) *CreditSpecificationRequest {
  34779. s.CpuCredits = &v
  34780. return s
  34781. }
  34782. // Describes a customer gateway.
  34783. type CustomerGateway struct {
  34784. _ struct{} `type:"structure"`
  34785. // The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number
  34786. // (ASN).
  34787. BgpAsn *string `locationName:"bgpAsn" type:"string"`
  34788. // The ID of the customer gateway.
  34789. CustomerGatewayId *string `locationName:"customerGatewayId" type:"string"`
  34790. // The Internet-routable IP address of the customer gateway's outside interface.
  34791. IpAddress *string `locationName:"ipAddress" type:"string"`
  34792. // The current state of the customer gateway (pending | available | deleting
  34793. // | deleted).
  34794. State *string `locationName:"state" type:"string"`
  34795. // Any tags assigned to the customer gateway.
  34796. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  34797. // The type of VPN connection the customer gateway supports (ipsec.1).
  34798. Type *string `locationName:"type" type:"string"`
  34799. }
  34800. // String returns the string representation
  34801. func (s CustomerGateway) String() string {
  34802. return awsutil.Prettify(s)
  34803. }
  34804. // GoString returns the string representation
  34805. func (s CustomerGateway) GoString() string {
  34806. return s.String()
  34807. }
  34808. // SetBgpAsn sets the BgpAsn field's value.
  34809. func (s *CustomerGateway) SetBgpAsn(v string) *CustomerGateway {
  34810. s.BgpAsn = &v
  34811. return s
  34812. }
  34813. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  34814. func (s *CustomerGateway) SetCustomerGatewayId(v string) *CustomerGateway {
  34815. s.CustomerGatewayId = &v
  34816. return s
  34817. }
  34818. // SetIpAddress sets the IpAddress field's value.
  34819. func (s *CustomerGateway) SetIpAddress(v string) *CustomerGateway {
  34820. s.IpAddress = &v
  34821. return s
  34822. }
  34823. // SetState sets the State field's value.
  34824. func (s *CustomerGateway) SetState(v string) *CustomerGateway {
  34825. s.State = &v
  34826. return s
  34827. }
  34828. // SetTags sets the Tags field's value.
  34829. func (s *CustomerGateway) SetTags(v []*Tag) *CustomerGateway {
  34830. s.Tags = v
  34831. return s
  34832. }
  34833. // SetType sets the Type field's value.
  34834. func (s *CustomerGateway) SetType(v string) *CustomerGateway {
  34835. s.Type = &v
  34836. return s
  34837. }
  34838. type DeleteClientVpnEndpointInput struct {
  34839. _ struct{} `type:"structure"`
  34840. // The ID of the Client VPN to be deleted.
  34841. //
  34842. // ClientVpnEndpointId is a required field
  34843. ClientVpnEndpointId *string `type:"string" required:"true"`
  34844. // Checks whether you have the required permissions for the action, without
  34845. // actually making the request, and provides an error response. If you have
  34846. // the required permissions, the error response is DryRunOperation. Otherwise,
  34847. // it is UnauthorizedOperation.
  34848. DryRun *bool `type:"boolean"`
  34849. }
  34850. // String returns the string representation
  34851. func (s DeleteClientVpnEndpointInput) String() string {
  34852. return awsutil.Prettify(s)
  34853. }
  34854. // GoString returns the string representation
  34855. func (s DeleteClientVpnEndpointInput) GoString() string {
  34856. return s.String()
  34857. }
  34858. // Validate inspects the fields of the type to determine if they are valid.
  34859. func (s *DeleteClientVpnEndpointInput) Validate() error {
  34860. invalidParams := request.ErrInvalidParams{Context: "DeleteClientVpnEndpointInput"}
  34861. if s.ClientVpnEndpointId == nil {
  34862. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  34863. }
  34864. if invalidParams.Len() > 0 {
  34865. return invalidParams
  34866. }
  34867. return nil
  34868. }
  34869. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  34870. func (s *DeleteClientVpnEndpointInput) SetClientVpnEndpointId(v string) *DeleteClientVpnEndpointInput {
  34871. s.ClientVpnEndpointId = &v
  34872. return s
  34873. }
  34874. // SetDryRun sets the DryRun field's value.
  34875. func (s *DeleteClientVpnEndpointInput) SetDryRun(v bool) *DeleteClientVpnEndpointInput {
  34876. s.DryRun = &v
  34877. return s
  34878. }
  34879. type DeleteClientVpnEndpointOutput struct {
  34880. _ struct{} `type:"structure"`
  34881. // The current state of the Client VPN endpoint.
  34882. Status *ClientVpnEndpointStatus `locationName:"status" type:"structure"`
  34883. }
  34884. // String returns the string representation
  34885. func (s DeleteClientVpnEndpointOutput) String() string {
  34886. return awsutil.Prettify(s)
  34887. }
  34888. // GoString returns the string representation
  34889. func (s DeleteClientVpnEndpointOutput) GoString() string {
  34890. return s.String()
  34891. }
  34892. // SetStatus sets the Status field's value.
  34893. func (s *DeleteClientVpnEndpointOutput) SetStatus(v *ClientVpnEndpointStatus) *DeleteClientVpnEndpointOutput {
  34894. s.Status = v
  34895. return s
  34896. }
  34897. type DeleteClientVpnRouteInput struct {
  34898. _ struct{} `type:"structure"`
  34899. // The ID of the Client VPN endpoint from which the route is to be deleted.
  34900. //
  34901. // ClientVpnEndpointId is a required field
  34902. ClientVpnEndpointId *string `type:"string" required:"true"`
  34903. // The IPv4 address range, in CIDR notation, of the route to be deleted.
  34904. //
  34905. // DestinationCidrBlock is a required field
  34906. DestinationCidrBlock *string `type:"string" required:"true"`
  34907. // Checks whether you have the required permissions for the action, without
  34908. // actually making the request, and provides an error response. If you have
  34909. // the required permissions, the error response is DryRunOperation. Otherwise,
  34910. // it is UnauthorizedOperation.
  34911. DryRun *bool `type:"boolean"`
  34912. // The ID of the target subnet used by the route.
  34913. TargetVpcSubnetId *string `type:"string"`
  34914. }
  34915. // String returns the string representation
  34916. func (s DeleteClientVpnRouteInput) String() string {
  34917. return awsutil.Prettify(s)
  34918. }
  34919. // GoString returns the string representation
  34920. func (s DeleteClientVpnRouteInput) GoString() string {
  34921. return s.String()
  34922. }
  34923. // Validate inspects the fields of the type to determine if they are valid.
  34924. func (s *DeleteClientVpnRouteInput) Validate() error {
  34925. invalidParams := request.ErrInvalidParams{Context: "DeleteClientVpnRouteInput"}
  34926. if s.ClientVpnEndpointId == nil {
  34927. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  34928. }
  34929. if s.DestinationCidrBlock == nil {
  34930. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  34931. }
  34932. if invalidParams.Len() > 0 {
  34933. return invalidParams
  34934. }
  34935. return nil
  34936. }
  34937. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  34938. func (s *DeleteClientVpnRouteInput) SetClientVpnEndpointId(v string) *DeleteClientVpnRouteInput {
  34939. s.ClientVpnEndpointId = &v
  34940. return s
  34941. }
  34942. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  34943. func (s *DeleteClientVpnRouteInput) SetDestinationCidrBlock(v string) *DeleteClientVpnRouteInput {
  34944. s.DestinationCidrBlock = &v
  34945. return s
  34946. }
  34947. // SetDryRun sets the DryRun field's value.
  34948. func (s *DeleteClientVpnRouteInput) SetDryRun(v bool) *DeleteClientVpnRouteInput {
  34949. s.DryRun = &v
  34950. return s
  34951. }
  34952. // SetTargetVpcSubnetId sets the TargetVpcSubnetId field's value.
  34953. func (s *DeleteClientVpnRouteInput) SetTargetVpcSubnetId(v string) *DeleteClientVpnRouteInput {
  34954. s.TargetVpcSubnetId = &v
  34955. return s
  34956. }
  34957. type DeleteClientVpnRouteOutput struct {
  34958. _ struct{} `type:"structure"`
  34959. // The current state of the route.
  34960. Status *ClientVpnRouteStatus `locationName:"status" type:"structure"`
  34961. }
  34962. // String returns the string representation
  34963. func (s DeleteClientVpnRouteOutput) String() string {
  34964. return awsutil.Prettify(s)
  34965. }
  34966. // GoString returns the string representation
  34967. func (s DeleteClientVpnRouteOutput) GoString() string {
  34968. return s.String()
  34969. }
  34970. // SetStatus sets the Status field's value.
  34971. func (s *DeleteClientVpnRouteOutput) SetStatus(v *ClientVpnRouteStatus) *DeleteClientVpnRouteOutput {
  34972. s.Status = v
  34973. return s
  34974. }
  34975. // Contains the parameters for DeleteCustomerGateway.
  34976. type DeleteCustomerGatewayInput struct {
  34977. _ struct{} `type:"structure"`
  34978. // The ID of the customer gateway.
  34979. //
  34980. // CustomerGatewayId is a required field
  34981. CustomerGatewayId *string `type:"string" required:"true"`
  34982. // Checks whether you have the required permissions for the action, without
  34983. // actually making the request, and provides an error response. If you have
  34984. // the required permissions, the error response is DryRunOperation. Otherwise,
  34985. // it is UnauthorizedOperation.
  34986. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34987. }
  34988. // String returns the string representation
  34989. func (s DeleteCustomerGatewayInput) String() string {
  34990. return awsutil.Prettify(s)
  34991. }
  34992. // GoString returns the string representation
  34993. func (s DeleteCustomerGatewayInput) GoString() string {
  34994. return s.String()
  34995. }
  34996. // Validate inspects the fields of the type to determine if they are valid.
  34997. func (s *DeleteCustomerGatewayInput) Validate() error {
  34998. invalidParams := request.ErrInvalidParams{Context: "DeleteCustomerGatewayInput"}
  34999. if s.CustomerGatewayId == nil {
  35000. invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId"))
  35001. }
  35002. if invalidParams.Len() > 0 {
  35003. return invalidParams
  35004. }
  35005. return nil
  35006. }
  35007. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  35008. func (s *DeleteCustomerGatewayInput) SetCustomerGatewayId(v string) *DeleteCustomerGatewayInput {
  35009. s.CustomerGatewayId = &v
  35010. return s
  35011. }
  35012. // SetDryRun sets the DryRun field's value.
  35013. func (s *DeleteCustomerGatewayInput) SetDryRun(v bool) *DeleteCustomerGatewayInput {
  35014. s.DryRun = &v
  35015. return s
  35016. }
  35017. type DeleteCustomerGatewayOutput struct {
  35018. _ struct{} `type:"structure"`
  35019. }
  35020. // String returns the string representation
  35021. func (s DeleteCustomerGatewayOutput) String() string {
  35022. return awsutil.Prettify(s)
  35023. }
  35024. // GoString returns the string representation
  35025. func (s DeleteCustomerGatewayOutput) GoString() string {
  35026. return s.String()
  35027. }
  35028. type DeleteDhcpOptionsInput struct {
  35029. _ struct{} `type:"structure"`
  35030. // The ID of the DHCP options set.
  35031. //
  35032. // DhcpOptionsId is a required field
  35033. DhcpOptionsId *string `type:"string" required:"true"`
  35034. // Checks whether you have the required permissions for the action, without
  35035. // actually making the request, and provides an error response. If you have
  35036. // the required permissions, the error response is DryRunOperation. Otherwise,
  35037. // it is UnauthorizedOperation.
  35038. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35039. }
  35040. // String returns the string representation
  35041. func (s DeleteDhcpOptionsInput) String() string {
  35042. return awsutil.Prettify(s)
  35043. }
  35044. // GoString returns the string representation
  35045. func (s DeleteDhcpOptionsInput) GoString() string {
  35046. return s.String()
  35047. }
  35048. // Validate inspects the fields of the type to determine if they are valid.
  35049. func (s *DeleteDhcpOptionsInput) Validate() error {
  35050. invalidParams := request.ErrInvalidParams{Context: "DeleteDhcpOptionsInput"}
  35051. if s.DhcpOptionsId == nil {
  35052. invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId"))
  35053. }
  35054. if invalidParams.Len() > 0 {
  35055. return invalidParams
  35056. }
  35057. return nil
  35058. }
  35059. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  35060. func (s *DeleteDhcpOptionsInput) SetDhcpOptionsId(v string) *DeleteDhcpOptionsInput {
  35061. s.DhcpOptionsId = &v
  35062. return s
  35063. }
  35064. // SetDryRun sets the DryRun field's value.
  35065. func (s *DeleteDhcpOptionsInput) SetDryRun(v bool) *DeleteDhcpOptionsInput {
  35066. s.DryRun = &v
  35067. return s
  35068. }
  35069. type DeleteDhcpOptionsOutput struct {
  35070. _ struct{} `type:"structure"`
  35071. }
  35072. // String returns the string representation
  35073. func (s DeleteDhcpOptionsOutput) String() string {
  35074. return awsutil.Prettify(s)
  35075. }
  35076. // GoString returns the string representation
  35077. func (s DeleteDhcpOptionsOutput) GoString() string {
  35078. return s.String()
  35079. }
  35080. type DeleteEgressOnlyInternetGatewayInput struct {
  35081. _ struct{} `type:"structure"`
  35082. // Checks whether you have the required permissions for the action, without
  35083. // actually making the request, and provides an error response. If you have
  35084. // the required permissions, the error response is DryRunOperation. Otherwise,
  35085. // it is UnauthorizedOperation.
  35086. DryRun *bool `type:"boolean"`
  35087. // The ID of the egress-only internet gateway.
  35088. //
  35089. // EgressOnlyInternetGatewayId is a required field
  35090. EgressOnlyInternetGatewayId *string `type:"string" required:"true"`
  35091. }
  35092. // String returns the string representation
  35093. func (s DeleteEgressOnlyInternetGatewayInput) String() string {
  35094. return awsutil.Prettify(s)
  35095. }
  35096. // GoString returns the string representation
  35097. func (s DeleteEgressOnlyInternetGatewayInput) GoString() string {
  35098. return s.String()
  35099. }
  35100. // Validate inspects the fields of the type to determine if they are valid.
  35101. func (s *DeleteEgressOnlyInternetGatewayInput) Validate() error {
  35102. invalidParams := request.ErrInvalidParams{Context: "DeleteEgressOnlyInternetGatewayInput"}
  35103. if s.EgressOnlyInternetGatewayId == nil {
  35104. invalidParams.Add(request.NewErrParamRequired("EgressOnlyInternetGatewayId"))
  35105. }
  35106. if invalidParams.Len() > 0 {
  35107. return invalidParams
  35108. }
  35109. return nil
  35110. }
  35111. // SetDryRun sets the DryRun field's value.
  35112. func (s *DeleteEgressOnlyInternetGatewayInput) SetDryRun(v bool) *DeleteEgressOnlyInternetGatewayInput {
  35113. s.DryRun = &v
  35114. return s
  35115. }
  35116. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  35117. func (s *DeleteEgressOnlyInternetGatewayInput) SetEgressOnlyInternetGatewayId(v string) *DeleteEgressOnlyInternetGatewayInput {
  35118. s.EgressOnlyInternetGatewayId = &v
  35119. return s
  35120. }
  35121. type DeleteEgressOnlyInternetGatewayOutput struct {
  35122. _ struct{} `type:"structure"`
  35123. // Returns true if the request succeeds; otherwise, it returns an error.
  35124. ReturnCode *bool `locationName:"returnCode" type:"boolean"`
  35125. }
  35126. // String returns the string representation
  35127. func (s DeleteEgressOnlyInternetGatewayOutput) String() string {
  35128. return awsutil.Prettify(s)
  35129. }
  35130. // GoString returns the string representation
  35131. func (s DeleteEgressOnlyInternetGatewayOutput) GoString() string {
  35132. return s.String()
  35133. }
  35134. // SetReturnCode sets the ReturnCode field's value.
  35135. func (s *DeleteEgressOnlyInternetGatewayOutput) SetReturnCode(v bool) *DeleteEgressOnlyInternetGatewayOutput {
  35136. s.ReturnCode = &v
  35137. return s
  35138. }
  35139. // Describes an EC2 Fleet error.
  35140. type DeleteFleetError struct {
  35141. _ struct{} `type:"structure"`
  35142. // The error code.
  35143. Code *string `locationName:"code" type:"string" enum:"DeleteFleetErrorCode"`
  35144. // The description for the error code.
  35145. Message *string `locationName:"message" type:"string"`
  35146. }
  35147. // String returns the string representation
  35148. func (s DeleteFleetError) String() string {
  35149. return awsutil.Prettify(s)
  35150. }
  35151. // GoString returns the string representation
  35152. func (s DeleteFleetError) GoString() string {
  35153. return s.String()
  35154. }
  35155. // SetCode sets the Code field's value.
  35156. func (s *DeleteFleetError) SetCode(v string) *DeleteFleetError {
  35157. s.Code = &v
  35158. return s
  35159. }
  35160. // SetMessage sets the Message field's value.
  35161. func (s *DeleteFleetError) SetMessage(v string) *DeleteFleetError {
  35162. s.Message = &v
  35163. return s
  35164. }
  35165. // Describes an EC2 Fleet that was not successfully deleted.
  35166. type DeleteFleetErrorItem struct {
  35167. _ struct{} `type:"structure"`
  35168. // The error.
  35169. Error *DeleteFleetError `locationName:"error" type:"structure"`
  35170. // The ID of the EC2 Fleet.
  35171. FleetId *string `locationName:"fleetId" type:"string"`
  35172. }
  35173. // String returns the string representation
  35174. func (s DeleteFleetErrorItem) String() string {
  35175. return awsutil.Prettify(s)
  35176. }
  35177. // GoString returns the string representation
  35178. func (s DeleteFleetErrorItem) GoString() string {
  35179. return s.String()
  35180. }
  35181. // SetError sets the Error field's value.
  35182. func (s *DeleteFleetErrorItem) SetError(v *DeleteFleetError) *DeleteFleetErrorItem {
  35183. s.Error = v
  35184. return s
  35185. }
  35186. // SetFleetId sets the FleetId field's value.
  35187. func (s *DeleteFleetErrorItem) SetFleetId(v string) *DeleteFleetErrorItem {
  35188. s.FleetId = &v
  35189. return s
  35190. }
  35191. // Describes an EC2 Fleet that was successfully deleted.
  35192. type DeleteFleetSuccessItem struct {
  35193. _ struct{} `type:"structure"`
  35194. // The current state of the EC2 Fleet.
  35195. CurrentFleetState *string `locationName:"currentFleetState" type:"string" enum:"FleetStateCode"`
  35196. // The ID of the EC2 Fleet.
  35197. FleetId *string `locationName:"fleetId" type:"string"`
  35198. // The previous state of the EC2 Fleet.
  35199. PreviousFleetState *string `locationName:"previousFleetState" type:"string" enum:"FleetStateCode"`
  35200. }
  35201. // String returns the string representation
  35202. func (s DeleteFleetSuccessItem) String() string {
  35203. return awsutil.Prettify(s)
  35204. }
  35205. // GoString returns the string representation
  35206. func (s DeleteFleetSuccessItem) GoString() string {
  35207. return s.String()
  35208. }
  35209. // SetCurrentFleetState sets the CurrentFleetState field's value.
  35210. func (s *DeleteFleetSuccessItem) SetCurrentFleetState(v string) *DeleteFleetSuccessItem {
  35211. s.CurrentFleetState = &v
  35212. return s
  35213. }
  35214. // SetFleetId sets the FleetId field's value.
  35215. func (s *DeleteFleetSuccessItem) SetFleetId(v string) *DeleteFleetSuccessItem {
  35216. s.FleetId = &v
  35217. return s
  35218. }
  35219. // SetPreviousFleetState sets the PreviousFleetState field's value.
  35220. func (s *DeleteFleetSuccessItem) SetPreviousFleetState(v string) *DeleteFleetSuccessItem {
  35221. s.PreviousFleetState = &v
  35222. return s
  35223. }
  35224. type DeleteFleetsInput struct {
  35225. _ struct{} `type:"structure"`
  35226. // Checks whether you have the required permissions for the action, without
  35227. // actually making the request, and provides an error response. If you have
  35228. // the required permissions, the error response is DryRunOperation. Otherwise,
  35229. // it is UnauthorizedOperation.
  35230. DryRun *bool `type:"boolean"`
  35231. // The IDs of the EC2 Fleets.
  35232. //
  35233. // FleetIds is a required field
  35234. FleetIds []*string `locationName:"FleetId" type:"list" required:"true"`
  35235. // Indicates whether to terminate instances for an EC2 Fleet if it is deleted
  35236. // successfully.
  35237. //
  35238. // TerminateInstances is a required field
  35239. TerminateInstances *bool `type:"boolean" required:"true"`
  35240. }
  35241. // String returns the string representation
  35242. func (s DeleteFleetsInput) String() string {
  35243. return awsutil.Prettify(s)
  35244. }
  35245. // GoString returns the string representation
  35246. func (s DeleteFleetsInput) GoString() string {
  35247. return s.String()
  35248. }
  35249. // Validate inspects the fields of the type to determine if they are valid.
  35250. func (s *DeleteFleetsInput) Validate() error {
  35251. invalidParams := request.ErrInvalidParams{Context: "DeleteFleetsInput"}
  35252. if s.FleetIds == nil {
  35253. invalidParams.Add(request.NewErrParamRequired("FleetIds"))
  35254. }
  35255. if s.TerminateInstances == nil {
  35256. invalidParams.Add(request.NewErrParamRequired("TerminateInstances"))
  35257. }
  35258. if invalidParams.Len() > 0 {
  35259. return invalidParams
  35260. }
  35261. return nil
  35262. }
  35263. // SetDryRun sets the DryRun field's value.
  35264. func (s *DeleteFleetsInput) SetDryRun(v bool) *DeleteFleetsInput {
  35265. s.DryRun = &v
  35266. return s
  35267. }
  35268. // SetFleetIds sets the FleetIds field's value.
  35269. func (s *DeleteFleetsInput) SetFleetIds(v []*string) *DeleteFleetsInput {
  35270. s.FleetIds = v
  35271. return s
  35272. }
  35273. // SetTerminateInstances sets the TerminateInstances field's value.
  35274. func (s *DeleteFleetsInput) SetTerminateInstances(v bool) *DeleteFleetsInput {
  35275. s.TerminateInstances = &v
  35276. return s
  35277. }
  35278. type DeleteFleetsOutput struct {
  35279. _ struct{} `type:"structure"`
  35280. // Information about the EC2 Fleets that are successfully deleted.
  35281. SuccessfulFleetDeletions []*DeleteFleetSuccessItem `locationName:"successfulFleetDeletionSet" locationNameList:"item" type:"list"`
  35282. // Information about the EC2 Fleets that are not successfully deleted.
  35283. UnsuccessfulFleetDeletions []*DeleteFleetErrorItem `locationName:"unsuccessfulFleetDeletionSet" locationNameList:"item" type:"list"`
  35284. }
  35285. // String returns the string representation
  35286. func (s DeleteFleetsOutput) String() string {
  35287. return awsutil.Prettify(s)
  35288. }
  35289. // GoString returns the string representation
  35290. func (s DeleteFleetsOutput) GoString() string {
  35291. return s.String()
  35292. }
  35293. // SetSuccessfulFleetDeletions sets the SuccessfulFleetDeletions field's value.
  35294. func (s *DeleteFleetsOutput) SetSuccessfulFleetDeletions(v []*DeleteFleetSuccessItem) *DeleteFleetsOutput {
  35295. s.SuccessfulFleetDeletions = v
  35296. return s
  35297. }
  35298. // SetUnsuccessfulFleetDeletions sets the UnsuccessfulFleetDeletions field's value.
  35299. func (s *DeleteFleetsOutput) SetUnsuccessfulFleetDeletions(v []*DeleteFleetErrorItem) *DeleteFleetsOutput {
  35300. s.UnsuccessfulFleetDeletions = v
  35301. return s
  35302. }
  35303. type DeleteFlowLogsInput struct {
  35304. _ struct{} `type:"structure"`
  35305. // Checks whether you have the required permissions for the action, without
  35306. // actually making the request, and provides an error response. If you have
  35307. // the required permissions, the error response is DryRunOperation. Otherwise,
  35308. // it is UnauthorizedOperation.
  35309. DryRun *bool `type:"boolean"`
  35310. // One or more flow log IDs.
  35311. //
  35312. // FlowLogIds is a required field
  35313. FlowLogIds []*string `locationName:"FlowLogId" locationNameList:"item" type:"list" required:"true"`
  35314. }
  35315. // String returns the string representation
  35316. func (s DeleteFlowLogsInput) String() string {
  35317. return awsutil.Prettify(s)
  35318. }
  35319. // GoString returns the string representation
  35320. func (s DeleteFlowLogsInput) GoString() string {
  35321. return s.String()
  35322. }
  35323. // Validate inspects the fields of the type to determine if they are valid.
  35324. func (s *DeleteFlowLogsInput) Validate() error {
  35325. invalidParams := request.ErrInvalidParams{Context: "DeleteFlowLogsInput"}
  35326. if s.FlowLogIds == nil {
  35327. invalidParams.Add(request.NewErrParamRequired("FlowLogIds"))
  35328. }
  35329. if invalidParams.Len() > 0 {
  35330. return invalidParams
  35331. }
  35332. return nil
  35333. }
  35334. // SetDryRun sets the DryRun field's value.
  35335. func (s *DeleteFlowLogsInput) SetDryRun(v bool) *DeleteFlowLogsInput {
  35336. s.DryRun = &v
  35337. return s
  35338. }
  35339. // SetFlowLogIds sets the FlowLogIds field's value.
  35340. func (s *DeleteFlowLogsInput) SetFlowLogIds(v []*string) *DeleteFlowLogsInput {
  35341. s.FlowLogIds = v
  35342. return s
  35343. }
  35344. type DeleteFlowLogsOutput struct {
  35345. _ struct{} `type:"structure"`
  35346. // Information about the flow logs that could not be deleted successfully.
  35347. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  35348. }
  35349. // String returns the string representation
  35350. func (s DeleteFlowLogsOutput) String() string {
  35351. return awsutil.Prettify(s)
  35352. }
  35353. // GoString returns the string representation
  35354. func (s DeleteFlowLogsOutput) GoString() string {
  35355. return s.String()
  35356. }
  35357. // SetUnsuccessful sets the Unsuccessful field's value.
  35358. func (s *DeleteFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteFlowLogsOutput {
  35359. s.Unsuccessful = v
  35360. return s
  35361. }
  35362. type DeleteFpgaImageInput struct {
  35363. _ struct{} `type:"structure"`
  35364. // Checks whether you have the required permissions for the action, without
  35365. // actually making the request, and provides an error response. If you have
  35366. // the required permissions, the error response is DryRunOperation. Otherwise,
  35367. // it is UnauthorizedOperation.
  35368. DryRun *bool `type:"boolean"`
  35369. // The ID of the AFI.
  35370. //
  35371. // FpgaImageId is a required field
  35372. FpgaImageId *string `type:"string" required:"true"`
  35373. }
  35374. // String returns the string representation
  35375. func (s DeleteFpgaImageInput) String() string {
  35376. return awsutil.Prettify(s)
  35377. }
  35378. // GoString returns the string representation
  35379. func (s DeleteFpgaImageInput) GoString() string {
  35380. return s.String()
  35381. }
  35382. // Validate inspects the fields of the type to determine if they are valid.
  35383. func (s *DeleteFpgaImageInput) Validate() error {
  35384. invalidParams := request.ErrInvalidParams{Context: "DeleteFpgaImageInput"}
  35385. if s.FpgaImageId == nil {
  35386. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  35387. }
  35388. if invalidParams.Len() > 0 {
  35389. return invalidParams
  35390. }
  35391. return nil
  35392. }
  35393. // SetDryRun sets the DryRun field's value.
  35394. func (s *DeleteFpgaImageInput) SetDryRun(v bool) *DeleteFpgaImageInput {
  35395. s.DryRun = &v
  35396. return s
  35397. }
  35398. // SetFpgaImageId sets the FpgaImageId field's value.
  35399. func (s *DeleteFpgaImageInput) SetFpgaImageId(v string) *DeleteFpgaImageInput {
  35400. s.FpgaImageId = &v
  35401. return s
  35402. }
  35403. type DeleteFpgaImageOutput struct {
  35404. _ struct{} `type:"structure"`
  35405. // Is true if the request succeeds, and an error otherwise.
  35406. Return *bool `locationName:"return" type:"boolean"`
  35407. }
  35408. // String returns the string representation
  35409. func (s DeleteFpgaImageOutput) String() string {
  35410. return awsutil.Prettify(s)
  35411. }
  35412. // GoString returns the string representation
  35413. func (s DeleteFpgaImageOutput) GoString() string {
  35414. return s.String()
  35415. }
  35416. // SetReturn sets the Return field's value.
  35417. func (s *DeleteFpgaImageOutput) SetReturn(v bool) *DeleteFpgaImageOutput {
  35418. s.Return = &v
  35419. return s
  35420. }
  35421. type DeleteInternetGatewayInput struct {
  35422. _ struct{} `type:"structure"`
  35423. // Checks whether you have the required permissions for the action, without
  35424. // actually making the request, and provides an error response. If you have
  35425. // the required permissions, the error response is DryRunOperation. Otherwise,
  35426. // it is UnauthorizedOperation.
  35427. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35428. // The ID of the internet gateway.
  35429. //
  35430. // InternetGatewayId is a required field
  35431. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  35432. }
  35433. // String returns the string representation
  35434. func (s DeleteInternetGatewayInput) String() string {
  35435. return awsutil.Prettify(s)
  35436. }
  35437. // GoString returns the string representation
  35438. func (s DeleteInternetGatewayInput) GoString() string {
  35439. return s.String()
  35440. }
  35441. // Validate inspects the fields of the type to determine if they are valid.
  35442. func (s *DeleteInternetGatewayInput) Validate() error {
  35443. invalidParams := request.ErrInvalidParams{Context: "DeleteInternetGatewayInput"}
  35444. if s.InternetGatewayId == nil {
  35445. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  35446. }
  35447. if invalidParams.Len() > 0 {
  35448. return invalidParams
  35449. }
  35450. return nil
  35451. }
  35452. // SetDryRun sets the DryRun field's value.
  35453. func (s *DeleteInternetGatewayInput) SetDryRun(v bool) *DeleteInternetGatewayInput {
  35454. s.DryRun = &v
  35455. return s
  35456. }
  35457. // SetInternetGatewayId sets the InternetGatewayId field's value.
  35458. func (s *DeleteInternetGatewayInput) SetInternetGatewayId(v string) *DeleteInternetGatewayInput {
  35459. s.InternetGatewayId = &v
  35460. return s
  35461. }
  35462. type DeleteInternetGatewayOutput struct {
  35463. _ struct{} `type:"structure"`
  35464. }
  35465. // String returns the string representation
  35466. func (s DeleteInternetGatewayOutput) String() string {
  35467. return awsutil.Prettify(s)
  35468. }
  35469. // GoString returns the string representation
  35470. func (s DeleteInternetGatewayOutput) GoString() string {
  35471. return s.String()
  35472. }
  35473. type DeleteKeyPairInput struct {
  35474. _ struct{} `type:"structure"`
  35475. // Checks whether you have the required permissions for the action, without
  35476. // actually making the request, and provides an error response. If you have
  35477. // the required permissions, the error response is DryRunOperation. Otherwise,
  35478. // it is UnauthorizedOperation.
  35479. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35480. // The name of the key pair.
  35481. //
  35482. // KeyName is a required field
  35483. KeyName *string `type:"string" required:"true"`
  35484. }
  35485. // String returns the string representation
  35486. func (s DeleteKeyPairInput) String() string {
  35487. return awsutil.Prettify(s)
  35488. }
  35489. // GoString returns the string representation
  35490. func (s DeleteKeyPairInput) GoString() string {
  35491. return s.String()
  35492. }
  35493. // Validate inspects the fields of the type to determine if they are valid.
  35494. func (s *DeleteKeyPairInput) Validate() error {
  35495. invalidParams := request.ErrInvalidParams{Context: "DeleteKeyPairInput"}
  35496. if s.KeyName == nil {
  35497. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  35498. }
  35499. if invalidParams.Len() > 0 {
  35500. return invalidParams
  35501. }
  35502. return nil
  35503. }
  35504. // SetDryRun sets the DryRun field's value.
  35505. func (s *DeleteKeyPairInput) SetDryRun(v bool) *DeleteKeyPairInput {
  35506. s.DryRun = &v
  35507. return s
  35508. }
  35509. // SetKeyName sets the KeyName field's value.
  35510. func (s *DeleteKeyPairInput) SetKeyName(v string) *DeleteKeyPairInput {
  35511. s.KeyName = &v
  35512. return s
  35513. }
  35514. type DeleteKeyPairOutput struct {
  35515. _ struct{} `type:"structure"`
  35516. }
  35517. // String returns the string representation
  35518. func (s DeleteKeyPairOutput) String() string {
  35519. return awsutil.Prettify(s)
  35520. }
  35521. // GoString returns the string representation
  35522. func (s DeleteKeyPairOutput) GoString() string {
  35523. return s.String()
  35524. }
  35525. type DeleteLaunchTemplateInput struct {
  35526. _ struct{} `type:"structure"`
  35527. // Checks whether you have the required permissions for the action, without
  35528. // actually making the request, and provides an error response. If you have
  35529. // the required permissions, the error response is DryRunOperation. Otherwise,
  35530. // it is UnauthorizedOperation.
  35531. DryRun *bool `type:"boolean"`
  35532. // The ID of the launch template. You must specify either the launch template
  35533. // ID or launch template name in the request.
  35534. LaunchTemplateId *string `type:"string"`
  35535. // The name of the launch template. You must specify either the launch template
  35536. // ID or launch template name in the request.
  35537. LaunchTemplateName *string `min:"3" type:"string"`
  35538. }
  35539. // String returns the string representation
  35540. func (s DeleteLaunchTemplateInput) String() string {
  35541. return awsutil.Prettify(s)
  35542. }
  35543. // GoString returns the string representation
  35544. func (s DeleteLaunchTemplateInput) GoString() string {
  35545. return s.String()
  35546. }
  35547. // Validate inspects the fields of the type to determine if they are valid.
  35548. func (s *DeleteLaunchTemplateInput) Validate() error {
  35549. invalidParams := request.ErrInvalidParams{Context: "DeleteLaunchTemplateInput"}
  35550. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  35551. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  35552. }
  35553. if invalidParams.Len() > 0 {
  35554. return invalidParams
  35555. }
  35556. return nil
  35557. }
  35558. // SetDryRun sets the DryRun field's value.
  35559. func (s *DeleteLaunchTemplateInput) SetDryRun(v bool) *DeleteLaunchTemplateInput {
  35560. s.DryRun = &v
  35561. return s
  35562. }
  35563. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  35564. func (s *DeleteLaunchTemplateInput) SetLaunchTemplateId(v string) *DeleteLaunchTemplateInput {
  35565. s.LaunchTemplateId = &v
  35566. return s
  35567. }
  35568. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  35569. func (s *DeleteLaunchTemplateInput) SetLaunchTemplateName(v string) *DeleteLaunchTemplateInput {
  35570. s.LaunchTemplateName = &v
  35571. return s
  35572. }
  35573. type DeleteLaunchTemplateOutput struct {
  35574. _ struct{} `type:"structure"`
  35575. // Information about the launch template.
  35576. LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
  35577. }
  35578. // String returns the string representation
  35579. func (s DeleteLaunchTemplateOutput) String() string {
  35580. return awsutil.Prettify(s)
  35581. }
  35582. // GoString returns the string representation
  35583. func (s DeleteLaunchTemplateOutput) GoString() string {
  35584. return s.String()
  35585. }
  35586. // SetLaunchTemplate sets the LaunchTemplate field's value.
  35587. func (s *DeleteLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *DeleteLaunchTemplateOutput {
  35588. s.LaunchTemplate = v
  35589. return s
  35590. }
  35591. type DeleteLaunchTemplateVersionsInput struct {
  35592. _ struct{} `type:"structure"`
  35593. // Checks whether you have the required permissions for the action, without
  35594. // actually making the request, and provides an error response. If you have
  35595. // the required permissions, the error response is DryRunOperation. Otherwise,
  35596. // it is UnauthorizedOperation.
  35597. DryRun *bool `type:"boolean"`
  35598. // The ID of the launch template. You must specify either the launch template
  35599. // ID or launch template name in the request.
  35600. LaunchTemplateId *string `type:"string"`
  35601. // The name of the launch template. You must specify either the launch template
  35602. // ID or launch template name in the request.
  35603. LaunchTemplateName *string `min:"3" type:"string"`
  35604. // The version numbers of one or more launch template versions to delete.
  35605. //
  35606. // Versions is a required field
  35607. Versions []*string `locationName:"LaunchTemplateVersion" locationNameList:"item" type:"list" required:"true"`
  35608. }
  35609. // String returns the string representation
  35610. func (s DeleteLaunchTemplateVersionsInput) String() string {
  35611. return awsutil.Prettify(s)
  35612. }
  35613. // GoString returns the string representation
  35614. func (s DeleteLaunchTemplateVersionsInput) GoString() string {
  35615. return s.String()
  35616. }
  35617. // Validate inspects the fields of the type to determine if they are valid.
  35618. func (s *DeleteLaunchTemplateVersionsInput) Validate() error {
  35619. invalidParams := request.ErrInvalidParams{Context: "DeleteLaunchTemplateVersionsInput"}
  35620. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  35621. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  35622. }
  35623. if s.Versions == nil {
  35624. invalidParams.Add(request.NewErrParamRequired("Versions"))
  35625. }
  35626. if invalidParams.Len() > 0 {
  35627. return invalidParams
  35628. }
  35629. return nil
  35630. }
  35631. // SetDryRun sets the DryRun field's value.
  35632. func (s *DeleteLaunchTemplateVersionsInput) SetDryRun(v bool) *DeleteLaunchTemplateVersionsInput {
  35633. s.DryRun = &v
  35634. return s
  35635. }
  35636. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  35637. func (s *DeleteLaunchTemplateVersionsInput) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsInput {
  35638. s.LaunchTemplateId = &v
  35639. return s
  35640. }
  35641. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  35642. func (s *DeleteLaunchTemplateVersionsInput) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsInput {
  35643. s.LaunchTemplateName = &v
  35644. return s
  35645. }
  35646. // SetVersions sets the Versions field's value.
  35647. func (s *DeleteLaunchTemplateVersionsInput) SetVersions(v []*string) *DeleteLaunchTemplateVersionsInput {
  35648. s.Versions = v
  35649. return s
  35650. }
  35651. type DeleteLaunchTemplateVersionsOutput struct {
  35652. _ struct{} `type:"structure"`
  35653. // Information about the launch template versions that were successfully deleted.
  35654. SuccessfullyDeletedLaunchTemplateVersions []*DeleteLaunchTemplateVersionsResponseSuccessItem `locationName:"successfullyDeletedLaunchTemplateVersionSet" locationNameList:"item" type:"list"`
  35655. // Information about the launch template versions that could not be deleted.
  35656. UnsuccessfullyDeletedLaunchTemplateVersions []*DeleteLaunchTemplateVersionsResponseErrorItem `locationName:"unsuccessfullyDeletedLaunchTemplateVersionSet" locationNameList:"item" type:"list"`
  35657. }
  35658. // String returns the string representation
  35659. func (s DeleteLaunchTemplateVersionsOutput) String() string {
  35660. return awsutil.Prettify(s)
  35661. }
  35662. // GoString returns the string representation
  35663. func (s DeleteLaunchTemplateVersionsOutput) GoString() string {
  35664. return s.String()
  35665. }
  35666. // SetSuccessfullyDeletedLaunchTemplateVersions sets the SuccessfullyDeletedLaunchTemplateVersions field's value.
  35667. func (s *DeleteLaunchTemplateVersionsOutput) SetSuccessfullyDeletedLaunchTemplateVersions(v []*DeleteLaunchTemplateVersionsResponseSuccessItem) *DeleteLaunchTemplateVersionsOutput {
  35668. s.SuccessfullyDeletedLaunchTemplateVersions = v
  35669. return s
  35670. }
  35671. // SetUnsuccessfullyDeletedLaunchTemplateVersions sets the UnsuccessfullyDeletedLaunchTemplateVersions field's value.
  35672. func (s *DeleteLaunchTemplateVersionsOutput) SetUnsuccessfullyDeletedLaunchTemplateVersions(v []*DeleteLaunchTemplateVersionsResponseErrorItem) *DeleteLaunchTemplateVersionsOutput {
  35673. s.UnsuccessfullyDeletedLaunchTemplateVersions = v
  35674. return s
  35675. }
  35676. // Describes a launch template version that could not be deleted.
  35677. type DeleteLaunchTemplateVersionsResponseErrorItem struct {
  35678. _ struct{} `type:"structure"`
  35679. // The ID of the launch template.
  35680. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  35681. // The name of the launch template.
  35682. LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"`
  35683. // Information about the error.
  35684. ResponseError *ResponseError `locationName:"responseError" type:"structure"`
  35685. // The version number of the launch template.
  35686. VersionNumber *int64 `locationName:"versionNumber" type:"long"`
  35687. }
  35688. // String returns the string representation
  35689. func (s DeleteLaunchTemplateVersionsResponseErrorItem) String() string {
  35690. return awsutil.Prettify(s)
  35691. }
  35692. // GoString returns the string representation
  35693. func (s DeleteLaunchTemplateVersionsResponseErrorItem) GoString() string {
  35694. return s.String()
  35695. }
  35696. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  35697. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsResponseErrorItem {
  35698. s.LaunchTemplateId = &v
  35699. return s
  35700. }
  35701. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  35702. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsResponseErrorItem {
  35703. s.LaunchTemplateName = &v
  35704. return s
  35705. }
  35706. // SetResponseError sets the ResponseError field's value.
  35707. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetResponseError(v *ResponseError) *DeleteLaunchTemplateVersionsResponseErrorItem {
  35708. s.ResponseError = v
  35709. return s
  35710. }
  35711. // SetVersionNumber sets the VersionNumber field's value.
  35712. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetVersionNumber(v int64) *DeleteLaunchTemplateVersionsResponseErrorItem {
  35713. s.VersionNumber = &v
  35714. return s
  35715. }
  35716. // Describes a launch template version that was successfully deleted.
  35717. type DeleteLaunchTemplateVersionsResponseSuccessItem struct {
  35718. _ struct{} `type:"structure"`
  35719. // The ID of the launch template.
  35720. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  35721. // The name of the launch template.
  35722. LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"`
  35723. // The version number of the launch template.
  35724. VersionNumber *int64 `locationName:"versionNumber" type:"long"`
  35725. }
  35726. // String returns the string representation
  35727. func (s DeleteLaunchTemplateVersionsResponseSuccessItem) String() string {
  35728. return awsutil.Prettify(s)
  35729. }
  35730. // GoString returns the string representation
  35731. func (s DeleteLaunchTemplateVersionsResponseSuccessItem) GoString() string {
  35732. return s.String()
  35733. }
  35734. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  35735. func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsResponseSuccessItem {
  35736. s.LaunchTemplateId = &v
  35737. return s
  35738. }
  35739. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  35740. func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsResponseSuccessItem {
  35741. s.LaunchTemplateName = &v
  35742. return s
  35743. }
  35744. // SetVersionNumber sets the VersionNumber field's value.
  35745. func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetVersionNumber(v int64) *DeleteLaunchTemplateVersionsResponseSuccessItem {
  35746. s.VersionNumber = &v
  35747. return s
  35748. }
  35749. type DeleteNatGatewayInput struct {
  35750. _ struct{} `type:"structure"`
  35751. // The ID of the NAT gateway.
  35752. //
  35753. // NatGatewayId is a required field
  35754. NatGatewayId *string `type:"string" required:"true"`
  35755. }
  35756. // String returns the string representation
  35757. func (s DeleteNatGatewayInput) String() string {
  35758. return awsutil.Prettify(s)
  35759. }
  35760. // GoString returns the string representation
  35761. func (s DeleteNatGatewayInput) GoString() string {
  35762. return s.String()
  35763. }
  35764. // Validate inspects the fields of the type to determine if they are valid.
  35765. func (s *DeleteNatGatewayInput) Validate() error {
  35766. invalidParams := request.ErrInvalidParams{Context: "DeleteNatGatewayInput"}
  35767. if s.NatGatewayId == nil {
  35768. invalidParams.Add(request.NewErrParamRequired("NatGatewayId"))
  35769. }
  35770. if invalidParams.Len() > 0 {
  35771. return invalidParams
  35772. }
  35773. return nil
  35774. }
  35775. // SetNatGatewayId sets the NatGatewayId field's value.
  35776. func (s *DeleteNatGatewayInput) SetNatGatewayId(v string) *DeleteNatGatewayInput {
  35777. s.NatGatewayId = &v
  35778. return s
  35779. }
  35780. type DeleteNatGatewayOutput struct {
  35781. _ struct{} `type:"structure"`
  35782. // The ID of the NAT gateway.
  35783. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  35784. }
  35785. // String returns the string representation
  35786. func (s DeleteNatGatewayOutput) String() string {
  35787. return awsutil.Prettify(s)
  35788. }
  35789. // GoString returns the string representation
  35790. func (s DeleteNatGatewayOutput) GoString() string {
  35791. return s.String()
  35792. }
  35793. // SetNatGatewayId sets the NatGatewayId field's value.
  35794. func (s *DeleteNatGatewayOutput) SetNatGatewayId(v string) *DeleteNatGatewayOutput {
  35795. s.NatGatewayId = &v
  35796. return s
  35797. }
  35798. type DeleteNetworkAclEntryInput struct {
  35799. _ struct{} `type:"structure"`
  35800. // Checks whether you have the required permissions for the action, without
  35801. // actually making the request, and provides an error response. If you have
  35802. // the required permissions, the error response is DryRunOperation. Otherwise,
  35803. // it is UnauthorizedOperation.
  35804. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35805. // Indicates whether the rule is an egress rule.
  35806. //
  35807. // Egress is a required field
  35808. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  35809. // The ID of the network ACL.
  35810. //
  35811. // NetworkAclId is a required field
  35812. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  35813. // The rule number of the entry to delete.
  35814. //
  35815. // RuleNumber is a required field
  35816. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  35817. }
  35818. // String returns the string representation
  35819. func (s DeleteNetworkAclEntryInput) String() string {
  35820. return awsutil.Prettify(s)
  35821. }
  35822. // GoString returns the string representation
  35823. func (s DeleteNetworkAclEntryInput) GoString() string {
  35824. return s.String()
  35825. }
  35826. // Validate inspects the fields of the type to determine if they are valid.
  35827. func (s *DeleteNetworkAclEntryInput) Validate() error {
  35828. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclEntryInput"}
  35829. if s.Egress == nil {
  35830. invalidParams.Add(request.NewErrParamRequired("Egress"))
  35831. }
  35832. if s.NetworkAclId == nil {
  35833. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  35834. }
  35835. if s.RuleNumber == nil {
  35836. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  35837. }
  35838. if invalidParams.Len() > 0 {
  35839. return invalidParams
  35840. }
  35841. return nil
  35842. }
  35843. // SetDryRun sets the DryRun field's value.
  35844. func (s *DeleteNetworkAclEntryInput) SetDryRun(v bool) *DeleteNetworkAclEntryInput {
  35845. s.DryRun = &v
  35846. return s
  35847. }
  35848. // SetEgress sets the Egress field's value.
  35849. func (s *DeleteNetworkAclEntryInput) SetEgress(v bool) *DeleteNetworkAclEntryInput {
  35850. s.Egress = &v
  35851. return s
  35852. }
  35853. // SetNetworkAclId sets the NetworkAclId field's value.
  35854. func (s *DeleteNetworkAclEntryInput) SetNetworkAclId(v string) *DeleteNetworkAclEntryInput {
  35855. s.NetworkAclId = &v
  35856. return s
  35857. }
  35858. // SetRuleNumber sets the RuleNumber field's value.
  35859. func (s *DeleteNetworkAclEntryInput) SetRuleNumber(v int64) *DeleteNetworkAclEntryInput {
  35860. s.RuleNumber = &v
  35861. return s
  35862. }
  35863. type DeleteNetworkAclEntryOutput struct {
  35864. _ struct{} `type:"structure"`
  35865. }
  35866. // String returns the string representation
  35867. func (s DeleteNetworkAclEntryOutput) String() string {
  35868. return awsutil.Prettify(s)
  35869. }
  35870. // GoString returns the string representation
  35871. func (s DeleteNetworkAclEntryOutput) GoString() string {
  35872. return s.String()
  35873. }
  35874. type DeleteNetworkAclInput struct {
  35875. _ struct{} `type:"structure"`
  35876. // Checks whether you have the required permissions for the action, without
  35877. // actually making the request, and provides an error response. If you have
  35878. // the required permissions, the error response is DryRunOperation. Otherwise,
  35879. // it is UnauthorizedOperation.
  35880. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35881. // The ID of the network ACL.
  35882. //
  35883. // NetworkAclId is a required field
  35884. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  35885. }
  35886. // String returns the string representation
  35887. func (s DeleteNetworkAclInput) String() string {
  35888. return awsutil.Prettify(s)
  35889. }
  35890. // GoString returns the string representation
  35891. func (s DeleteNetworkAclInput) GoString() string {
  35892. return s.String()
  35893. }
  35894. // Validate inspects the fields of the type to determine if they are valid.
  35895. func (s *DeleteNetworkAclInput) Validate() error {
  35896. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclInput"}
  35897. if s.NetworkAclId == nil {
  35898. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  35899. }
  35900. if invalidParams.Len() > 0 {
  35901. return invalidParams
  35902. }
  35903. return nil
  35904. }
  35905. // SetDryRun sets the DryRun field's value.
  35906. func (s *DeleteNetworkAclInput) SetDryRun(v bool) *DeleteNetworkAclInput {
  35907. s.DryRun = &v
  35908. return s
  35909. }
  35910. // SetNetworkAclId sets the NetworkAclId field's value.
  35911. func (s *DeleteNetworkAclInput) SetNetworkAclId(v string) *DeleteNetworkAclInput {
  35912. s.NetworkAclId = &v
  35913. return s
  35914. }
  35915. type DeleteNetworkAclOutput struct {
  35916. _ struct{} `type:"structure"`
  35917. }
  35918. // String returns the string representation
  35919. func (s DeleteNetworkAclOutput) String() string {
  35920. return awsutil.Prettify(s)
  35921. }
  35922. // GoString returns the string representation
  35923. func (s DeleteNetworkAclOutput) GoString() string {
  35924. return s.String()
  35925. }
  35926. // Contains the parameters for DeleteNetworkInterface.
  35927. type DeleteNetworkInterfaceInput struct {
  35928. _ struct{} `type:"structure"`
  35929. // Checks whether you have the required permissions for the action, without
  35930. // actually making the request, and provides an error response. If you have
  35931. // the required permissions, the error response is DryRunOperation. Otherwise,
  35932. // it is UnauthorizedOperation.
  35933. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35934. // The ID of the network interface.
  35935. //
  35936. // NetworkInterfaceId is a required field
  35937. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  35938. }
  35939. // String returns the string representation
  35940. func (s DeleteNetworkInterfaceInput) String() string {
  35941. return awsutil.Prettify(s)
  35942. }
  35943. // GoString returns the string representation
  35944. func (s DeleteNetworkInterfaceInput) GoString() string {
  35945. return s.String()
  35946. }
  35947. // Validate inspects the fields of the type to determine if they are valid.
  35948. func (s *DeleteNetworkInterfaceInput) Validate() error {
  35949. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkInterfaceInput"}
  35950. if s.NetworkInterfaceId == nil {
  35951. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  35952. }
  35953. if invalidParams.Len() > 0 {
  35954. return invalidParams
  35955. }
  35956. return nil
  35957. }
  35958. // SetDryRun sets the DryRun field's value.
  35959. func (s *DeleteNetworkInterfaceInput) SetDryRun(v bool) *DeleteNetworkInterfaceInput {
  35960. s.DryRun = &v
  35961. return s
  35962. }
  35963. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  35964. func (s *DeleteNetworkInterfaceInput) SetNetworkInterfaceId(v string) *DeleteNetworkInterfaceInput {
  35965. s.NetworkInterfaceId = &v
  35966. return s
  35967. }
  35968. type DeleteNetworkInterfaceOutput struct {
  35969. _ struct{} `type:"structure"`
  35970. }
  35971. // String returns the string representation
  35972. func (s DeleteNetworkInterfaceOutput) String() string {
  35973. return awsutil.Prettify(s)
  35974. }
  35975. // GoString returns the string representation
  35976. func (s DeleteNetworkInterfaceOutput) GoString() string {
  35977. return s.String()
  35978. }
  35979. // Contains the parameters for DeleteNetworkInterfacePermission.
  35980. type DeleteNetworkInterfacePermissionInput struct {
  35981. _ struct{} `type:"structure"`
  35982. // Checks whether you have the required permissions for the action, without
  35983. // actually making the request, and provides an error response. If you have
  35984. // the required permissions, the error response is DryRunOperation. Otherwise,
  35985. // it is UnauthorizedOperation.
  35986. DryRun *bool `type:"boolean"`
  35987. // Specify true to remove the permission even if the network interface is attached
  35988. // to an instance.
  35989. Force *bool `type:"boolean"`
  35990. // The ID of the network interface permission.
  35991. //
  35992. // NetworkInterfacePermissionId is a required field
  35993. NetworkInterfacePermissionId *string `type:"string" required:"true"`
  35994. }
  35995. // String returns the string representation
  35996. func (s DeleteNetworkInterfacePermissionInput) String() string {
  35997. return awsutil.Prettify(s)
  35998. }
  35999. // GoString returns the string representation
  36000. func (s DeleteNetworkInterfacePermissionInput) GoString() string {
  36001. return s.String()
  36002. }
  36003. // Validate inspects the fields of the type to determine if they are valid.
  36004. func (s *DeleteNetworkInterfacePermissionInput) Validate() error {
  36005. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkInterfacePermissionInput"}
  36006. if s.NetworkInterfacePermissionId == nil {
  36007. invalidParams.Add(request.NewErrParamRequired("NetworkInterfacePermissionId"))
  36008. }
  36009. if invalidParams.Len() > 0 {
  36010. return invalidParams
  36011. }
  36012. return nil
  36013. }
  36014. // SetDryRun sets the DryRun field's value.
  36015. func (s *DeleteNetworkInterfacePermissionInput) SetDryRun(v bool) *DeleteNetworkInterfacePermissionInput {
  36016. s.DryRun = &v
  36017. return s
  36018. }
  36019. // SetForce sets the Force field's value.
  36020. func (s *DeleteNetworkInterfacePermissionInput) SetForce(v bool) *DeleteNetworkInterfacePermissionInput {
  36021. s.Force = &v
  36022. return s
  36023. }
  36024. // SetNetworkInterfacePermissionId sets the NetworkInterfacePermissionId field's value.
  36025. func (s *DeleteNetworkInterfacePermissionInput) SetNetworkInterfacePermissionId(v string) *DeleteNetworkInterfacePermissionInput {
  36026. s.NetworkInterfacePermissionId = &v
  36027. return s
  36028. }
  36029. // Contains the output for DeleteNetworkInterfacePermission.
  36030. type DeleteNetworkInterfacePermissionOutput struct {
  36031. _ struct{} `type:"structure"`
  36032. // Returns true if the request succeeds, otherwise returns an error.
  36033. Return *bool `locationName:"return" type:"boolean"`
  36034. }
  36035. // String returns the string representation
  36036. func (s DeleteNetworkInterfacePermissionOutput) String() string {
  36037. return awsutil.Prettify(s)
  36038. }
  36039. // GoString returns the string representation
  36040. func (s DeleteNetworkInterfacePermissionOutput) GoString() string {
  36041. return s.String()
  36042. }
  36043. // SetReturn sets the Return field's value.
  36044. func (s *DeleteNetworkInterfacePermissionOutput) SetReturn(v bool) *DeleteNetworkInterfacePermissionOutput {
  36045. s.Return = &v
  36046. return s
  36047. }
  36048. type DeletePlacementGroupInput struct {
  36049. _ struct{} `type:"structure"`
  36050. // Checks whether you have the required permissions for the action, without
  36051. // actually making the request, and provides an error response. If you have
  36052. // the required permissions, the error response is DryRunOperation. Otherwise,
  36053. // it is UnauthorizedOperation.
  36054. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36055. // The name of the placement group.
  36056. //
  36057. // GroupName is a required field
  36058. GroupName *string `locationName:"groupName" type:"string" required:"true"`
  36059. }
  36060. // String returns the string representation
  36061. func (s DeletePlacementGroupInput) String() string {
  36062. return awsutil.Prettify(s)
  36063. }
  36064. // GoString returns the string representation
  36065. func (s DeletePlacementGroupInput) GoString() string {
  36066. return s.String()
  36067. }
  36068. // Validate inspects the fields of the type to determine if they are valid.
  36069. func (s *DeletePlacementGroupInput) Validate() error {
  36070. invalidParams := request.ErrInvalidParams{Context: "DeletePlacementGroupInput"}
  36071. if s.GroupName == nil {
  36072. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  36073. }
  36074. if invalidParams.Len() > 0 {
  36075. return invalidParams
  36076. }
  36077. return nil
  36078. }
  36079. // SetDryRun sets the DryRun field's value.
  36080. func (s *DeletePlacementGroupInput) SetDryRun(v bool) *DeletePlacementGroupInput {
  36081. s.DryRun = &v
  36082. return s
  36083. }
  36084. // SetGroupName sets the GroupName field's value.
  36085. func (s *DeletePlacementGroupInput) SetGroupName(v string) *DeletePlacementGroupInput {
  36086. s.GroupName = &v
  36087. return s
  36088. }
  36089. type DeletePlacementGroupOutput struct {
  36090. _ struct{} `type:"structure"`
  36091. }
  36092. // String returns the string representation
  36093. func (s DeletePlacementGroupOutput) String() string {
  36094. return awsutil.Prettify(s)
  36095. }
  36096. // GoString returns the string representation
  36097. func (s DeletePlacementGroupOutput) GoString() string {
  36098. return s.String()
  36099. }
  36100. type DeleteRouteInput struct {
  36101. _ struct{} `type:"structure"`
  36102. // The IPv4 CIDR range for the route. The value you specify must match the CIDR
  36103. // for the route exactly.
  36104. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  36105. // The IPv6 CIDR range for the route. The value you specify must match the CIDR
  36106. // for the route exactly.
  36107. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  36108. // Checks whether you have the required permissions for the action, without
  36109. // actually making the request, and provides an error response. If you have
  36110. // the required permissions, the error response is DryRunOperation. Otherwise,
  36111. // it is UnauthorizedOperation.
  36112. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36113. // The ID of the route table.
  36114. //
  36115. // RouteTableId is a required field
  36116. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  36117. }
  36118. // String returns the string representation
  36119. func (s DeleteRouteInput) String() string {
  36120. return awsutil.Prettify(s)
  36121. }
  36122. // GoString returns the string representation
  36123. func (s DeleteRouteInput) GoString() string {
  36124. return s.String()
  36125. }
  36126. // Validate inspects the fields of the type to determine if they are valid.
  36127. func (s *DeleteRouteInput) Validate() error {
  36128. invalidParams := request.ErrInvalidParams{Context: "DeleteRouteInput"}
  36129. if s.RouteTableId == nil {
  36130. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  36131. }
  36132. if invalidParams.Len() > 0 {
  36133. return invalidParams
  36134. }
  36135. return nil
  36136. }
  36137. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  36138. func (s *DeleteRouteInput) SetDestinationCidrBlock(v string) *DeleteRouteInput {
  36139. s.DestinationCidrBlock = &v
  36140. return s
  36141. }
  36142. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  36143. func (s *DeleteRouteInput) SetDestinationIpv6CidrBlock(v string) *DeleteRouteInput {
  36144. s.DestinationIpv6CidrBlock = &v
  36145. return s
  36146. }
  36147. // SetDryRun sets the DryRun field's value.
  36148. func (s *DeleteRouteInput) SetDryRun(v bool) *DeleteRouteInput {
  36149. s.DryRun = &v
  36150. return s
  36151. }
  36152. // SetRouteTableId sets the RouteTableId field's value.
  36153. func (s *DeleteRouteInput) SetRouteTableId(v string) *DeleteRouteInput {
  36154. s.RouteTableId = &v
  36155. return s
  36156. }
  36157. type DeleteRouteOutput struct {
  36158. _ struct{} `type:"structure"`
  36159. }
  36160. // String returns the string representation
  36161. func (s DeleteRouteOutput) String() string {
  36162. return awsutil.Prettify(s)
  36163. }
  36164. // GoString returns the string representation
  36165. func (s DeleteRouteOutput) GoString() string {
  36166. return s.String()
  36167. }
  36168. type DeleteRouteTableInput struct {
  36169. _ struct{} `type:"structure"`
  36170. // Checks whether you have the required permissions for the action, without
  36171. // actually making the request, and provides an error response. If you have
  36172. // the required permissions, the error response is DryRunOperation. Otherwise,
  36173. // it is UnauthorizedOperation.
  36174. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36175. // The ID of the route table.
  36176. //
  36177. // RouteTableId is a required field
  36178. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  36179. }
  36180. // String returns the string representation
  36181. func (s DeleteRouteTableInput) String() string {
  36182. return awsutil.Prettify(s)
  36183. }
  36184. // GoString returns the string representation
  36185. func (s DeleteRouteTableInput) GoString() string {
  36186. return s.String()
  36187. }
  36188. // Validate inspects the fields of the type to determine if they are valid.
  36189. func (s *DeleteRouteTableInput) Validate() error {
  36190. invalidParams := request.ErrInvalidParams{Context: "DeleteRouteTableInput"}
  36191. if s.RouteTableId == nil {
  36192. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  36193. }
  36194. if invalidParams.Len() > 0 {
  36195. return invalidParams
  36196. }
  36197. return nil
  36198. }
  36199. // SetDryRun sets the DryRun field's value.
  36200. func (s *DeleteRouteTableInput) SetDryRun(v bool) *DeleteRouteTableInput {
  36201. s.DryRun = &v
  36202. return s
  36203. }
  36204. // SetRouteTableId sets the RouteTableId field's value.
  36205. func (s *DeleteRouteTableInput) SetRouteTableId(v string) *DeleteRouteTableInput {
  36206. s.RouteTableId = &v
  36207. return s
  36208. }
  36209. type DeleteRouteTableOutput struct {
  36210. _ struct{} `type:"structure"`
  36211. }
  36212. // String returns the string representation
  36213. func (s DeleteRouteTableOutput) String() string {
  36214. return awsutil.Prettify(s)
  36215. }
  36216. // GoString returns the string representation
  36217. func (s DeleteRouteTableOutput) GoString() string {
  36218. return s.String()
  36219. }
  36220. type DeleteSecurityGroupInput struct {
  36221. _ struct{} `type:"structure"`
  36222. // Checks whether you have the required permissions for the action, without
  36223. // actually making the request, and provides an error response. If you have
  36224. // the required permissions, the error response is DryRunOperation. Otherwise,
  36225. // it is UnauthorizedOperation.
  36226. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36227. // The ID of the security group. Required for a nondefault VPC.
  36228. GroupId *string `type:"string"`
  36229. // [EC2-Classic, default VPC] The name of the security group. You can specify
  36230. // either the security group name or the security group ID.
  36231. GroupName *string `type:"string"`
  36232. }
  36233. // String returns the string representation
  36234. func (s DeleteSecurityGroupInput) String() string {
  36235. return awsutil.Prettify(s)
  36236. }
  36237. // GoString returns the string representation
  36238. func (s DeleteSecurityGroupInput) GoString() string {
  36239. return s.String()
  36240. }
  36241. // SetDryRun sets the DryRun field's value.
  36242. func (s *DeleteSecurityGroupInput) SetDryRun(v bool) *DeleteSecurityGroupInput {
  36243. s.DryRun = &v
  36244. return s
  36245. }
  36246. // SetGroupId sets the GroupId field's value.
  36247. func (s *DeleteSecurityGroupInput) SetGroupId(v string) *DeleteSecurityGroupInput {
  36248. s.GroupId = &v
  36249. return s
  36250. }
  36251. // SetGroupName sets the GroupName field's value.
  36252. func (s *DeleteSecurityGroupInput) SetGroupName(v string) *DeleteSecurityGroupInput {
  36253. s.GroupName = &v
  36254. return s
  36255. }
  36256. type DeleteSecurityGroupOutput struct {
  36257. _ struct{} `type:"structure"`
  36258. }
  36259. // String returns the string representation
  36260. func (s DeleteSecurityGroupOutput) String() string {
  36261. return awsutil.Prettify(s)
  36262. }
  36263. // GoString returns the string representation
  36264. func (s DeleteSecurityGroupOutput) GoString() string {
  36265. return s.String()
  36266. }
  36267. // Contains the parameters for DeleteSnapshot.
  36268. type DeleteSnapshotInput struct {
  36269. _ struct{} `type:"structure"`
  36270. // Checks whether you have the required permissions for the action, without
  36271. // actually making the request, and provides an error response. If you have
  36272. // the required permissions, the error response is DryRunOperation. Otherwise,
  36273. // it is UnauthorizedOperation.
  36274. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36275. // The ID of the EBS snapshot.
  36276. //
  36277. // SnapshotId is a required field
  36278. SnapshotId *string `type:"string" required:"true"`
  36279. }
  36280. // String returns the string representation
  36281. func (s DeleteSnapshotInput) String() string {
  36282. return awsutil.Prettify(s)
  36283. }
  36284. // GoString returns the string representation
  36285. func (s DeleteSnapshotInput) GoString() string {
  36286. return s.String()
  36287. }
  36288. // Validate inspects the fields of the type to determine if they are valid.
  36289. func (s *DeleteSnapshotInput) Validate() error {
  36290. invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotInput"}
  36291. if s.SnapshotId == nil {
  36292. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  36293. }
  36294. if invalidParams.Len() > 0 {
  36295. return invalidParams
  36296. }
  36297. return nil
  36298. }
  36299. // SetDryRun sets the DryRun field's value.
  36300. func (s *DeleteSnapshotInput) SetDryRun(v bool) *DeleteSnapshotInput {
  36301. s.DryRun = &v
  36302. return s
  36303. }
  36304. // SetSnapshotId sets the SnapshotId field's value.
  36305. func (s *DeleteSnapshotInput) SetSnapshotId(v string) *DeleteSnapshotInput {
  36306. s.SnapshotId = &v
  36307. return s
  36308. }
  36309. type DeleteSnapshotOutput struct {
  36310. _ struct{} `type:"structure"`
  36311. }
  36312. // String returns the string representation
  36313. func (s DeleteSnapshotOutput) String() string {
  36314. return awsutil.Prettify(s)
  36315. }
  36316. // GoString returns the string representation
  36317. func (s DeleteSnapshotOutput) GoString() string {
  36318. return s.String()
  36319. }
  36320. // Contains the parameters for DeleteSpotDatafeedSubscription.
  36321. type DeleteSpotDatafeedSubscriptionInput struct {
  36322. _ struct{} `type:"structure"`
  36323. // Checks whether you have the required permissions for the action, without
  36324. // actually making the request, and provides an error response. If you have
  36325. // the required permissions, the error response is DryRunOperation. Otherwise,
  36326. // it is UnauthorizedOperation.
  36327. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36328. }
  36329. // String returns the string representation
  36330. func (s DeleteSpotDatafeedSubscriptionInput) String() string {
  36331. return awsutil.Prettify(s)
  36332. }
  36333. // GoString returns the string representation
  36334. func (s DeleteSpotDatafeedSubscriptionInput) GoString() string {
  36335. return s.String()
  36336. }
  36337. // SetDryRun sets the DryRun field's value.
  36338. func (s *DeleteSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DeleteSpotDatafeedSubscriptionInput {
  36339. s.DryRun = &v
  36340. return s
  36341. }
  36342. type DeleteSpotDatafeedSubscriptionOutput struct {
  36343. _ struct{} `type:"structure"`
  36344. }
  36345. // String returns the string representation
  36346. func (s DeleteSpotDatafeedSubscriptionOutput) String() string {
  36347. return awsutil.Prettify(s)
  36348. }
  36349. // GoString returns the string representation
  36350. func (s DeleteSpotDatafeedSubscriptionOutput) GoString() string {
  36351. return s.String()
  36352. }
  36353. type DeleteSubnetInput struct {
  36354. _ struct{} `type:"structure"`
  36355. // Checks whether you have the required permissions for the action, without
  36356. // actually making the request, and provides an error response. If you have
  36357. // the required permissions, the error response is DryRunOperation. Otherwise,
  36358. // it is UnauthorizedOperation.
  36359. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36360. // The ID of the subnet.
  36361. //
  36362. // SubnetId is a required field
  36363. SubnetId *string `type:"string" required:"true"`
  36364. }
  36365. // String returns the string representation
  36366. func (s DeleteSubnetInput) String() string {
  36367. return awsutil.Prettify(s)
  36368. }
  36369. // GoString returns the string representation
  36370. func (s DeleteSubnetInput) GoString() string {
  36371. return s.String()
  36372. }
  36373. // Validate inspects the fields of the type to determine if they are valid.
  36374. func (s *DeleteSubnetInput) Validate() error {
  36375. invalidParams := request.ErrInvalidParams{Context: "DeleteSubnetInput"}
  36376. if s.SubnetId == nil {
  36377. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  36378. }
  36379. if invalidParams.Len() > 0 {
  36380. return invalidParams
  36381. }
  36382. return nil
  36383. }
  36384. // SetDryRun sets the DryRun field's value.
  36385. func (s *DeleteSubnetInput) SetDryRun(v bool) *DeleteSubnetInput {
  36386. s.DryRun = &v
  36387. return s
  36388. }
  36389. // SetSubnetId sets the SubnetId field's value.
  36390. func (s *DeleteSubnetInput) SetSubnetId(v string) *DeleteSubnetInput {
  36391. s.SubnetId = &v
  36392. return s
  36393. }
  36394. type DeleteSubnetOutput struct {
  36395. _ struct{} `type:"structure"`
  36396. }
  36397. // String returns the string representation
  36398. func (s DeleteSubnetOutput) String() string {
  36399. return awsutil.Prettify(s)
  36400. }
  36401. // GoString returns the string representation
  36402. func (s DeleteSubnetOutput) GoString() string {
  36403. return s.String()
  36404. }
  36405. type DeleteTagsInput struct {
  36406. _ struct{} `type:"structure"`
  36407. // Checks whether you have the required permissions for the action, without
  36408. // actually making the request, and provides an error response. If you have
  36409. // the required permissions, the error response is DryRunOperation. Otherwise,
  36410. // it is UnauthorizedOperation.
  36411. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36412. // The IDs of one or more resources, separated by spaces.
  36413. //
  36414. // Constraints: Up to 1000 resource IDs. We recommend breaking up this request
  36415. // into smaller batches.
  36416. //
  36417. // Resources is a required field
  36418. Resources []*string `locationName:"resourceId" type:"list" required:"true"`
  36419. // One or more tags to delete. Specify a tag key and an optional tag value to
  36420. // delete specific tags. If you specify a tag key without a tag value, we delete
  36421. // any tag with this key regardless of its value. If you specify a tag key with
  36422. // an empty string as the tag value, we delete the tag only if its value is
  36423. // an empty string.
  36424. //
  36425. // If you omit this parameter, we delete all user-defined tags for the specified
  36426. // resources. We do not delete AWS-generated tags (tags that have the aws: prefix).
  36427. Tags []*Tag `locationName:"tag" locationNameList:"item" type:"list"`
  36428. }
  36429. // String returns the string representation
  36430. func (s DeleteTagsInput) String() string {
  36431. return awsutil.Prettify(s)
  36432. }
  36433. // GoString returns the string representation
  36434. func (s DeleteTagsInput) GoString() string {
  36435. return s.String()
  36436. }
  36437. // Validate inspects the fields of the type to determine if they are valid.
  36438. func (s *DeleteTagsInput) Validate() error {
  36439. invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
  36440. if s.Resources == nil {
  36441. invalidParams.Add(request.NewErrParamRequired("Resources"))
  36442. }
  36443. if invalidParams.Len() > 0 {
  36444. return invalidParams
  36445. }
  36446. return nil
  36447. }
  36448. // SetDryRun sets the DryRun field's value.
  36449. func (s *DeleteTagsInput) SetDryRun(v bool) *DeleteTagsInput {
  36450. s.DryRun = &v
  36451. return s
  36452. }
  36453. // SetResources sets the Resources field's value.
  36454. func (s *DeleteTagsInput) SetResources(v []*string) *DeleteTagsInput {
  36455. s.Resources = v
  36456. return s
  36457. }
  36458. // SetTags sets the Tags field's value.
  36459. func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput {
  36460. s.Tags = v
  36461. return s
  36462. }
  36463. type DeleteTagsOutput struct {
  36464. _ struct{} `type:"structure"`
  36465. }
  36466. // String returns the string representation
  36467. func (s DeleteTagsOutput) String() string {
  36468. return awsutil.Prettify(s)
  36469. }
  36470. // GoString returns the string representation
  36471. func (s DeleteTagsOutput) GoString() string {
  36472. return s.String()
  36473. }
  36474. type DeleteTransitGatewayInput struct {
  36475. _ struct{} `type:"structure"`
  36476. // Checks whether you have the required permissions for the action, without
  36477. // actually making the request, and provides an error response. If you have
  36478. // the required permissions, the error response is DryRunOperation. Otherwise,
  36479. // it is UnauthorizedOperation.
  36480. DryRun *bool `type:"boolean"`
  36481. // The ID of the transit gateway.
  36482. //
  36483. // TransitGatewayId is a required field
  36484. TransitGatewayId *string `type:"string" required:"true"`
  36485. }
  36486. // String returns the string representation
  36487. func (s DeleteTransitGatewayInput) String() string {
  36488. return awsutil.Prettify(s)
  36489. }
  36490. // GoString returns the string representation
  36491. func (s DeleteTransitGatewayInput) GoString() string {
  36492. return s.String()
  36493. }
  36494. // Validate inspects the fields of the type to determine if they are valid.
  36495. func (s *DeleteTransitGatewayInput) Validate() error {
  36496. invalidParams := request.ErrInvalidParams{Context: "DeleteTransitGatewayInput"}
  36497. if s.TransitGatewayId == nil {
  36498. invalidParams.Add(request.NewErrParamRequired("TransitGatewayId"))
  36499. }
  36500. if invalidParams.Len() > 0 {
  36501. return invalidParams
  36502. }
  36503. return nil
  36504. }
  36505. // SetDryRun sets the DryRun field's value.
  36506. func (s *DeleteTransitGatewayInput) SetDryRun(v bool) *DeleteTransitGatewayInput {
  36507. s.DryRun = &v
  36508. return s
  36509. }
  36510. // SetTransitGatewayId sets the TransitGatewayId field's value.
  36511. func (s *DeleteTransitGatewayInput) SetTransitGatewayId(v string) *DeleteTransitGatewayInput {
  36512. s.TransitGatewayId = &v
  36513. return s
  36514. }
  36515. type DeleteTransitGatewayOutput struct {
  36516. _ struct{} `type:"structure"`
  36517. // Information about the deleted transit gateway.
  36518. TransitGateway *TransitGateway `locationName:"transitGateway" type:"structure"`
  36519. }
  36520. // String returns the string representation
  36521. func (s DeleteTransitGatewayOutput) String() string {
  36522. return awsutil.Prettify(s)
  36523. }
  36524. // GoString returns the string representation
  36525. func (s DeleteTransitGatewayOutput) GoString() string {
  36526. return s.String()
  36527. }
  36528. // SetTransitGateway sets the TransitGateway field's value.
  36529. func (s *DeleteTransitGatewayOutput) SetTransitGateway(v *TransitGateway) *DeleteTransitGatewayOutput {
  36530. s.TransitGateway = v
  36531. return s
  36532. }
  36533. type DeleteTransitGatewayRouteInput struct {
  36534. _ struct{} `type:"structure"`
  36535. // The CIDR range for the route. This must match the CIDR for the route exactly.
  36536. //
  36537. // DestinationCidrBlock is a required field
  36538. DestinationCidrBlock *string `type:"string" required:"true"`
  36539. // Checks whether you have the required permissions for the action, without
  36540. // actually making the request, and provides an error response. If you have
  36541. // the required permissions, the error response is DryRunOperation. Otherwise,
  36542. // it is UnauthorizedOperation.
  36543. DryRun *bool `type:"boolean"`
  36544. // The ID of the transit gateway route table.
  36545. //
  36546. // TransitGatewayRouteTableId is a required field
  36547. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  36548. }
  36549. // String returns the string representation
  36550. func (s DeleteTransitGatewayRouteInput) String() string {
  36551. return awsutil.Prettify(s)
  36552. }
  36553. // GoString returns the string representation
  36554. func (s DeleteTransitGatewayRouteInput) GoString() string {
  36555. return s.String()
  36556. }
  36557. // Validate inspects the fields of the type to determine if they are valid.
  36558. func (s *DeleteTransitGatewayRouteInput) Validate() error {
  36559. invalidParams := request.ErrInvalidParams{Context: "DeleteTransitGatewayRouteInput"}
  36560. if s.DestinationCidrBlock == nil {
  36561. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  36562. }
  36563. if s.TransitGatewayRouteTableId == nil {
  36564. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  36565. }
  36566. if invalidParams.Len() > 0 {
  36567. return invalidParams
  36568. }
  36569. return nil
  36570. }
  36571. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  36572. func (s *DeleteTransitGatewayRouteInput) SetDestinationCidrBlock(v string) *DeleteTransitGatewayRouteInput {
  36573. s.DestinationCidrBlock = &v
  36574. return s
  36575. }
  36576. // SetDryRun sets the DryRun field's value.
  36577. func (s *DeleteTransitGatewayRouteInput) SetDryRun(v bool) *DeleteTransitGatewayRouteInput {
  36578. s.DryRun = &v
  36579. return s
  36580. }
  36581. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  36582. func (s *DeleteTransitGatewayRouteInput) SetTransitGatewayRouteTableId(v string) *DeleteTransitGatewayRouteInput {
  36583. s.TransitGatewayRouteTableId = &v
  36584. return s
  36585. }
  36586. type DeleteTransitGatewayRouteOutput struct {
  36587. _ struct{} `type:"structure"`
  36588. // Information about the route.
  36589. Route *TransitGatewayRoute `locationName:"route" type:"structure"`
  36590. }
  36591. // String returns the string representation
  36592. func (s DeleteTransitGatewayRouteOutput) String() string {
  36593. return awsutil.Prettify(s)
  36594. }
  36595. // GoString returns the string representation
  36596. func (s DeleteTransitGatewayRouteOutput) GoString() string {
  36597. return s.String()
  36598. }
  36599. // SetRoute sets the Route field's value.
  36600. func (s *DeleteTransitGatewayRouteOutput) SetRoute(v *TransitGatewayRoute) *DeleteTransitGatewayRouteOutput {
  36601. s.Route = v
  36602. return s
  36603. }
  36604. type DeleteTransitGatewayRouteTableInput struct {
  36605. _ struct{} `type:"structure"`
  36606. // Checks whether you have the required permissions for the action, without
  36607. // actually making the request, and provides an error response. If you have
  36608. // the required permissions, the error response is DryRunOperation. Otherwise,
  36609. // it is UnauthorizedOperation.
  36610. DryRun *bool `type:"boolean"`
  36611. // The ID of the transit gateway route table.
  36612. //
  36613. // TransitGatewayRouteTableId is a required field
  36614. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  36615. }
  36616. // String returns the string representation
  36617. func (s DeleteTransitGatewayRouteTableInput) String() string {
  36618. return awsutil.Prettify(s)
  36619. }
  36620. // GoString returns the string representation
  36621. func (s DeleteTransitGatewayRouteTableInput) GoString() string {
  36622. return s.String()
  36623. }
  36624. // Validate inspects the fields of the type to determine if they are valid.
  36625. func (s *DeleteTransitGatewayRouteTableInput) Validate() error {
  36626. invalidParams := request.ErrInvalidParams{Context: "DeleteTransitGatewayRouteTableInput"}
  36627. if s.TransitGatewayRouteTableId == nil {
  36628. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  36629. }
  36630. if invalidParams.Len() > 0 {
  36631. return invalidParams
  36632. }
  36633. return nil
  36634. }
  36635. // SetDryRun sets the DryRun field's value.
  36636. func (s *DeleteTransitGatewayRouteTableInput) SetDryRun(v bool) *DeleteTransitGatewayRouteTableInput {
  36637. s.DryRun = &v
  36638. return s
  36639. }
  36640. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  36641. func (s *DeleteTransitGatewayRouteTableInput) SetTransitGatewayRouteTableId(v string) *DeleteTransitGatewayRouteTableInput {
  36642. s.TransitGatewayRouteTableId = &v
  36643. return s
  36644. }
  36645. type DeleteTransitGatewayRouteTableOutput struct {
  36646. _ struct{} `type:"structure"`
  36647. // Information about the deleted transit gateway route table.
  36648. TransitGatewayRouteTable *TransitGatewayRouteTable `locationName:"transitGatewayRouteTable" type:"structure"`
  36649. }
  36650. // String returns the string representation
  36651. func (s DeleteTransitGatewayRouteTableOutput) String() string {
  36652. return awsutil.Prettify(s)
  36653. }
  36654. // GoString returns the string representation
  36655. func (s DeleteTransitGatewayRouteTableOutput) GoString() string {
  36656. return s.String()
  36657. }
  36658. // SetTransitGatewayRouteTable sets the TransitGatewayRouteTable field's value.
  36659. func (s *DeleteTransitGatewayRouteTableOutput) SetTransitGatewayRouteTable(v *TransitGatewayRouteTable) *DeleteTransitGatewayRouteTableOutput {
  36660. s.TransitGatewayRouteTable = v
  36661. return s
  36662. }
  36663. type DeleteTransitGatewayVpcAttachmentInput struct {
  36664. _ struct{} `type:"structure"`
  36665. // Checks whether you have the required permissions for the action, without
  36666. // actually making the request, and provides an error response. If you have
  36667. // the required permissions, the error response is DryRunOperation. Otherwise,
  36668. // it is UnauthorizedOperation.
  36669. DryRun *bool `type:"boolean"`
  36670. // The ID of the attachment.
  36671. //
  36672. // TransitGatewayAttachmentId is a required field
  36673. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  36674. }
  36675. // String returns the string representation
  36676. func (s DeleteTransitGatewayVpcAttachmentInput) String() string {
  36677. return awsutil.Prettify(s)
  36678. }
  36679. // GoString returns the string representation
  36680. func (s DeleteTransitGatewayVpcAttachmentInput) GoString() string {
  36681. return s.String()
  36682. }
  36683. // Validate inspects the fields of the type to determine if they are valid.
  36684. func (s *DeleteTransitGatewayVpcAttachmentInput) Validate() error {
  36685. invalidParams := request.ErrInvalidParams{Context: "DeleteTransitGatewayVpcAttachmentInput"}
  36686. if s.TransitGatewayAttachmentId == nil {
  36687. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  36688. }
  36689. if invalidParams.Len() > 0 {
  36690. return invalidParams
  36691. }
  36692. return nil
  36693. }
  36694. // SetDryRun sets the DryRun field's value.
  36695. func (s *DeleteTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *DeleteTransitGatewayVpcAttachmentInput {
  36696. s.DryRun = &v
  36697. return s
  36698. }
  36699. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  36700. func (s *DeleteTransitGatewayVpcAttachmentInput) SetTransitGatewayAttachmentId(v string) *DeleteTransitGatewayVpcAttachmentInput {
  36701. s.TransitGatewayAttachmentId = &v
  36702. return s
  36703. }
  36704. type DeleteTransitGatewayVpcAttachmentOutput struct {
  36705. _ struct{} `type:"structure"`
  36706. // Information about the deleted VPC attachment.
  36707. TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
  36708. }
  36709. // String returns the string representation
  36710. func (s DeleteTransitGatewayVpcAttachmentOutput) String() string {
  36711. return awsutil.Prettify(s)
  36712. }
  36713. // GoString returns the string representation
  36714. func (s DeleteTransitGatewayVpcAttachmentOutput) GoString() string {
  36715. return s.String()
  36716. }
  36717. // SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value.
  36718. func (s *DeleteTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *DeleteTransitGatewayVpcAttachmentOutput {
  36719. s.TransitGatewayVpcAttachment = v
  36720. return s
  36721. }
  36722. // Contains the parameters for DeleteVolume.
  36723. type DeleteVolumeInput struct {
  36724. _ struct{} `type:"structure"`
  36725. // Checks whether you have the required permissions for the action, without
  36726. // actually making the request, and provides an error response. If you have
  36727. // the required permissions, the error response is DryRunOperation. Otherwise,
  36728. // it is UnauthorizedOperation.
  36729. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36730. // The ID of the volume.
  36731. //
  36732. // VolumeId is a required field
  36733. VolumeId *string `type:"string" required:"true"`
  36734. }
  36735. // String returns the string representation
  36736. func (s DeleteVolumeInput) String() string {
  36737. return awsutil.Prettify(s)
  36738. }
  36739. // GoString returns the string representation
  36740. func (s DeleteVolumeInput) GoString() string {
  36741. return s.String()
  36742. }
  36743. // Validate inspects the fields of the type to determine if they are valid.
  36744. func (s *DeleteVolumeInput) Validate() error {
  36745. invalidParams := request.ErrInvalidParams{Context: "DeleteVolumeInput"}
  36746. if s.VolumeId == nil {
  36747. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  36748. }
  36749. if invalidParams.Len() > 0 {
  36750. return invalidParams
  36751. }
  36752. return nil
  36753. }
  36754. // SetDryRun sets the DryRun field's value.
  36755. func (s *DeleteVolumeInput) SetDryRun(v bool) *DeleteVolumeInput {
  36756. s.DryRun = &v
  36757. return s
  36758. }
  36759. // SetVolumeId sets the VolumeId field's value.
  36760. func (s *DeleteVolumeInput) SetVolumeId(v string) *DeleteVolumeInput {
  36761. s.VolumeId = &v
  36762. return s
  36763. }
  36764. type DeleteVolumeOutput struct {
  36765. _ struct{} `type:"structure"`
  36766. }
  36767. // String returns the string representation
  36768. func (s DeleteVolumeOutput) String() string {
  36769. return awsutil.Prettify(s)
  36770. }
  36771. // GoString returns the string representation
  36772. func (s DeleteVolumeOutput) GoString() string {
  36773. return s.String()
  36774. }
  36775. type DeleteVpcEndpointConnectionNotificationsInput struct {
  36776. _ struct{} `type:"structure"`
  36777. // One or more notification IDs.
  36778. //
  36779. // ConnectionNotificationIds is a required field
  36780. ConnectionNotificationIds []*string `locationName:"ConnectionNotificationId" locationNameList:"item" type:"list" required:"true"`
  36781. // Checks whether you have the required permissions for the action, without
  36782. // actually making the request, and provides an error response. If you have
  36783. // the required permissions, the error response is DryRunOperation. Otherwise,
  36784. // it is UnauthorizedOperation.
  36785. DryRun *bool `type:"boolean"`
  36786. }
  36787. // String returns the string representation
  36788. func (s DeleteVpcEndpointConnectionNotificationsInput) String() string {
  36789. return awsutil.Prettify(s)
  36790. }
  36791. // GoString returns the string representation
  36792. func (s DeleteVpcEndpointConnectionNotificationsInput) GoString() string {
  36793. return s.String()
  36794. }
  36795. // Validate inspects the fields of the type to determine if they are valid.
  36796. func (s *DeleteVpcEndpointConnectionNotificationsInput) Validate() error {
  36797. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointConnectionNotificationsInput"}
  36798. if s.ConnectionNotificationIds == nil {
  36799. invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationIds"))
  36800. }
  36801. if invalidParams.Len() > 0 {
  36802. return invalidParams
  36803. }
  36804. return nil
  36805. }
  36806. // SetConnectionNotificationIds sets the ConnectionNotificationIds field's value.
  36807. func (s *DeleteVpcEndpointConnectionNotificationsInput) SetConnectionNotificationIds(v []*string) *DeleteVpcEndpointConnectionNotificationsInput {
  36808. s.ConnectionNotificationIds = v
  36809. return s
  36810. }
  36811. // SetDryRun sets the DryRun field's value.
  36812. func (s *DeleteVpcEndpointConnectionNotificationsInput) SetDryRun(v bool) *DeleteVpcEndpointConnectionNotificationsInput {
  36813. s.DryRun = &v
  36814. return s
  36815. }
  36816. type DeleteVpcEndpointConnectionNotificationsOutput struct {
  36817. _ struct{} `type:"structure"`
  36818. // Information about the notifications that could not be deleted successfully.
  36819. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  36820. }
  36821. // String returns the string representation
  36822. func (s DeleteVpcEndpointConnectionNotificationsOutput) String() string {
  36823. return awsutil.Prettify(s)
  36824. }
  36825. // GoString returns the string representation
  36826. func (s DeleteVpcEndpointConnectionNotificationsOutput) GoString() string {
  36827. return s.String()
  36828. }
  36829. // SetUnsuccessful sets the Unsuccessful field's value.
  36830. func (s *DeleteVpcEndpointConnectionNotificationsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointConnectionNotificationsOutput {
  36831. s.Unsuccessful = v
  36832. return s
  36833. }
  36834. type DeleteVpcEndpointServiceConfigurationsInput struct {
  36835. _ struct{} `type:"structure"`
  36836. // Checks whether you have the required permissions for the action, without
  36837. // actually making the request, and provides an error response. If you have
  36838. // the required permissions, the error response is DryRunOperation. Otherwise,
  36839. // it is UnauthorizedOperation.
  36840. DryRun *bool `type:"boolean"`
  36841. // The IDs of one or more services.
  36842. //
  36843. // ServiceIds is a required field
  36844. ServiceIds []*string `locationName:"ServiceId" locationNameList:"item" type:"list" required:"true"`
  36845. }
  36846. // String returns the string representation
  36847. func (s DeleteVpcEndpointServiceConfigurationsInput) String() string {
  36848. return awsutil.Prettify(s)
  36849. }
  36850. // GoString returns the string representation
  36851. func (s DeleteVpcEndpointServiceConfigurationsInput) GoString() string {
  36852. return s.String()
  36853. }
  36854. // Validate inspects the fields of the type to determine if they are valid.
  36855. func (s *DeleteVpcEndpointServiceConfigurationsInput) Validate() error {
  36856. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointServiceConfigurationsInput"}
  36857. if s.ServiceIds == nil {
  36858. invalidParams.Add(request.NewErrParamRequired("ServiceIds"))
  36859. }
  36860. if invalidParams.Len() > 0 {
  36861. return invalidParams
  36862. }
  36863. return nil
  36864. }
  36865. // SetDryRun sets the DryRun field's value.
  36866. func (s *DeleteVpcEndpointServiceConfigurationsInput) SetDryRun(v bool) *DeleteVpcEndpointServiceConfigurationsInput {
  36867. s.DryRun = &v
  36868. return s
  36869. }
  36870. // SetServiceIds sets the ServiceIds field's value.
  36871. func (s *DeleteVpcEndpointServiceConfigurationsInput) SetServiceIds(v []*string) *DeleteVpcEndpointServiceConfigurationsInput {
  36872. s.ServiceIds = v
  36873. return s
  36874. }
  36875. type DeleteVpcEndpointServiceConfigurationsOutput struct {
  36876. _ struct{} `type:"structure"`
  36877. // Information about the service configurations that were not deleted, if applicable.
  36878. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  36879. }
  36880. // String returns the string representation
  36881. func (s DeleteVpcEndpointServiceConfigurationsOutput) String() string {
  36882. return awsutil.Prettify(s)
  36883. }
  36884. // GoString returns the string representation
  36885. func (s DeleteVpcEndpointServiceConfigurationsOutput) GoString() string {
  36886. return s.String()
  36887. }
  36888. // SetUnsuccessful sets the Unsuccessful field's value.
  36889. func (s *DeleteVpcEndpointServiceConfigurationsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointServiceConfigurationsOutput {
  36890. s.Unsuccessful = v
  36891. return s
  36892. }
  36893. // Contains the parameters for DeleteVpcEndpoints.
  36894. type DeleteVpcEndpointsInput struct {
  36895. _ struct{} `type:"structure"`
  36896. // Checks whether you have the required permissions for the action, without
  36897. // actually making the request, and provides an error response. If you have
  36898. // the required permissions, the error response is DryRunOperation. Otherwise,
  36899. // it is UnauthorizedOperation.
  36900. DryRun *bool `type:"boolean"`
  36901. // One or more VPC endpoint IDs.
  36902. //
  36903. // VpcEndpointIds is a required field
  36904. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  36905. }
  36906. // String returns the string representation
  36907. func (s DeleteVpcEndpointsInput) String() string {
  36908. return awsutil.Prettify(s)
  36909. }
  36910. // GoString returns the string representation
  36911. func (s DeleteVpcEndpointsInput) GoString() string {
  36912. return s.String()
  36913. }
  36914. // Validate inspects the fields of the type to determine if they are valid.
  36915. func (s *DeleteVpcEndpointsInput) Validate() error {
  36916. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointsInput"}
  36917. if s.VpcEndpointIds == nil {
  36918. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  36919. }
  36920. if invalidParams.Len() > 0 {
  36921. return invalidParams
  36922. }
  36923. return nil
  36924. }
  36925. // SetDryRun sets the DryRun field's value.
  36926. func (s *DeleteVpcEndpointsInput) SetDryRun(v bool) *DeleteVpcEndpointsInput {
  36927. s.DryRun = &v
  36928. return s
  36929. }
  36930. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  36931. func (s *DeleteVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DeleteVpcEndpointsInput {
  36932. s.VpcEndpointIds = v
  36933. return s
  36934. }
  36935. // Contains the output of DeleteVpcEndpoints.
  36936. type DeleteVpcEndpointsOutput struct {
  36937. _ struct{} `type:"structure"`
  36938. // Information about the VPC endpoints that were not successfully deleted.
  36939. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  36940. }
  36941. // String returns the string representation
  36942. func (s DeleteVpcEndpointsOutput) String() string {
  36943. return awsutil.Prettify(s)
  36944. }
  36945. // GoString returns the string representation
  36946. func (s DeleteVpcEndpointsOutput) GoString() string {
  36947. return s.String()
  36948. }
  36949. // SetUnsuccessful sets the Unsuccessful field's value.
  36950. func (s *DeleteVpcEndpointsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointsOutput {
  36951. s.Unsuccessful = v
  36952. return s
  36953. }
  36954. type DeleteVpcInput struct {
  36955. _ struct{} `type:"structure"`
  36956. // Checks whether you have the required permissions for the action, without
  36957. // actually making the request, and provides an error response. If you have
  36958. // the required permissions, the error response is DryRunOperation. Otherwise,
  36959. // it is UnauthorizedOperation.
  36960. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36961. // The ID of the VPC.
  36962. //
  36963. // VpcId is a required field
  36964. VpcId *string `type:"string" required:"true"`
  36965. }
  36966. // String returns the string representation
  36967. func (s DeleteVpcInput) String() string {
  36968. return awsutil.Prettify(s)
  36969. }
  36970. // GoString returns the string representation
  36971. func (s DeleteVpcInput) GoString() string {
  36972. return s.String()
  36973. }
  36974. // Validate inspects the fields of the type to determine if they are valid.
  36975. func (s *DeleteVpcInput) Validate() error {
  36976. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcInput"}
  36977. if s.VpcId == nil {
  36978. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  36979. }
  36980. if invalidParams.Len() > 0 {
  36981. return invalidParams
  36982. }
  36983. return nil
  36984. }
  36985. // SetDryRun sets the DryRun field's value.
  36986. func (s *DeleteVpcInput) SetDryRun(v bool) *DeleteVpcInput {
  36987. s.DryRun = &v
  36988. return s
  36989. }
  36990. // SetVpcId sets the VpcId field's value.
  36991. func (s *DeleteVpcInput) SetVpcId(v string) *DeleteVpcInput {
  36992. s.VpcId = &v
  36993. return s
  36994. }
  36995. type DeleteVpcOutput struct {
  36996. _ struct{} `type:"structure"`
  36997. }
  36998. // String returns the string representation
  36999. func (s DeleteVpcOutput) String() string {
  37000. return awsutil.Prettify(s)
  37001. }
  37002. // GoString returns the string representation
  37003. func (s DeleteVpcOutput) GoString() string {
  37004. return s.String()
  37005. }
  37006. type DeleteVpcPeeringConnectionInput struct {
  37007. _ struct{} `type:"structure"`
  37008. // Checks whether you have the required permissions for the action, without
  37009. // actually making the request, and provides an error response. If you have
  37010. // the required permissions, the error response is DryRunOperation. Otherwise,
  37011. // it is UnauthorizedOperation.
  37012. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37013. // The ID of the VPC peering connection.
  37014. //
  37015. // VpcPeeringConnectionId is a required field
  37016. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
  37017. }
  37018. // String returns the string representation
  37019. func (s DeleteVpcPeeringConnectionInput) String() string {
  37020. return awsutil.Prettify(s)
  37021. }
  37022. // GoString returns the string representation
  37023. func (s DeleteVpcPeeringConnectionInput) GoString() string {
  37024. return s.String()
  37025. }
  37026. // Validate inspects the fields of the type to determine if they are valid.
  37027. func (s *DeleteVpcPeeringConnectionInput) Validate() error {
  37028. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcPeeringConnectionInput"}
  37029. if s.VpcPeeringConnectionId == nil {
  37030. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  37031. }
  37032. if invalidParams.Len() > 0 {
  37033. return invalidParams
  37034. }
  37035. return nil
  37036. }
  37037. // SetDryRun sets the DryRun field's value.
  37038. func (s *DeleteVpcPeeringConnectionInput) SetDryRun(v bool) *DeleteVpcPeeringConnectionInput {
  37039. s.DryRun = &v
  37040. return s
  37041. }
  37042. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  37043. func (s *DeleteVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *DeleteVpcPeeringConnectionInput {
  37044. s.VpcPeeringConnectionId = &v
  37045. return s
  37046. }
  37047. type DeleteVpcPeeringConnectionOutput struct {
  37048. _ struct{} `type:"structure"`
  37049. // Returns true if the request succeeds; otherwise, it returns an error.
  37050. Return *bool `locationName:"return" type:"boolean"`
  37051. }
  37052. // String returns the string representation
  37053. func (s DeleteVpcPeeringConnectionOutput) String() string {
  37054. return awsutil.Prettify(s)
  37055. }
  37056. // GoString returns the string representation
  37057. func (s DeleteVpcPeeringConnectionOutput) GoString() string {
  37058. return s.String()
  37059. }
  37060. // SetReturn sets the Return field's value.
  37061. func (s *DeleteVpcPeeringConnectionOutput) SetReturn(v bool) *DeleteVpcPeeringConnectionOutput {
  37062. s.Return = &v
  37063. return s
  37064. }
  37065. // Contains the parameters for DeleteVpnConnection.
  37066. type DeleteVpnConnectionInput struct {
  37067. _ struct{} `type:"structure"`
  37068. // Checks whether you have the required permissions for the action, without
  37069. // actually making the request, and provides an error response. If you have
  37070. // the required permissions, the error response is DryRunOperation. Otherwise,
  37071. // it is UnauthorizedOperation.
  37072. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37073. // The ID of the VPN connection.
  37074. //
  37075. // VpnConnectionId is a required field
  37076. VpnConnectionId *string `type:"string" required:"true"`
  37077. }
  37078. // String returns the string representation
  37079. func (s DeleteVpnConnectionInput) String() string {
  37080. return awsutil.Prettify(s)
  37081. }
  37082. // GoString returns the string representation
  37083. func (s DeleteVpnConnectionInput) GoString() string {
  37084. return s.String()
  37085. }
  37086. // Validate inspects the fields of the type to determine if they are valid.
  37087. func (s *DeleteVpnConnectionInput) Validate() error {
  37088. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionInput"}
  37089. if s.VpnConnectionId == nil {
  37090. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  37091. }
  37092. if invalidParams.Len() > 0 {
  37093. return invalidParams
  37094. }
  37095. return nil
  37096. }
  37097. // SetDryRun sets the DryRun field's value.
  37098. func (s *DeleteVpnConnectionInput) SetDryRun(v bool) *DeleteVpnConnectionInput {
  37099. s.DryRun = &v
  37100. return s
  37101. }
  37102. // SetVpnConnectionId sets the VpnConnectionId field's value.
  37103. func (s *DeleteVpnConnectionInput) SetVpnConnectionId(v string) *DeleteVpnConnectionInput {
  37104. s.VpnConnectionId = &v
  37105. return s
  37106. }
  37107. type DeleteVpnConnectionOutput struct {
  37108. _ struct{} `type:"structure"`
  37109. }
  37110. // String returns the string representation
  37111. func (s DeleteVpnConnectionOutput) String() string {
  37112. return awsutil.Prettify(s)
  37113. }
  37114. // GoString returns the string representation
  37115. func (s DeleteVpnConnectionOutput) GoString() string {
  37116. return s.String()
  37117. }
  37118. // Contains the parameters for DeleteVpnConnectionRoute.
  37119. type DeleteVpnConnectionRouteInput struct {
  37120. _ struct{} `type:"structure"`
  37121. // The CIDR block associated with the local subnet of the customer network.
  37122. //
  37123. // DestinationCidrBlock is a required field
  37124. DestinationCidrBlock *string `type:"string" required:"true"`
  37125. // The ID of the VPN connection.
  37126. //
  37127. // VpnConnectionId is a required field
  37128. VpnConnectionId *string `type:"string" required:"true"`
  37129. }
  37130. // String returns the string representation
  37131. func (s DeleteVpnConnectionRouteInput) String() string {
  37132. return awsutil.Prettify(s)
  37133. }
  37134. // GoString returns the string representation
  37135. func (s DeleteVpnConnectionRouteInput) GoString() string {
  37136. return s.String()
  37137. }
  37138. // Validate inspects the fields of the type to determine if they are valid.
  37139. func (s *DeleteVpnConnectionRouteInput) Validate() error {
  37140. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionRouteInput"}
  37141. if s.DestinationCidrBlock == nil {
  37142. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  37143. }
  37144. if s.VpnConnectionId == nil {
  37145. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  37146. }
  37147. if invalidParams.Len() > 0 {
  37148. return invalidParams
  37149. }
  37150. return nil
  37151. }
  37152. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  37153. func (s *DeleteVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *DeleteVpnConnectionRouteInput {
  37154. s.DestinationCidrBlock = &v
  37155. return s
  37156. }
  37157. // SetVpnConnectionId sets the VpnConnectionId field's value.
  37158. func (s *DeleteVpnConnectionRouteInput) SetVpnConnectionId(v string) *DeleteVpnConnectionRouteInput {
  37159. s.VpnConnectionId = &v
  37160. return s
  37161. }
  37162. type DeleteVpnConnectionRouteOutput struct {
  37163. _ struct{} `type:"structure"`
  37164. }
  37165. // String returns the string representation
  37166. func (s DeleteVpnConnectionRouteOutput) String() string {
  37167. return awsutil.Prettify(s)
  37168. }
  37169. // GoString returns the string representation
  37170. func (s DeleteVpnConnectionRouteOutput) GoString() string {
  37171. return s.String()
  37172. }
  37173. // Contains the parameters for DeleteVpnGateway.
  37174. type DeleteVpnGatewayInput struct {
  37175. _ struct{} `type:"structure"`
  37176. // Checks whether you have the required permissions for the action, without
  37177. // actually making the request, and provides an error response. If you have
  37178. // the required permissions, the error response is DryRunOperation. Otherwise,
  37179. // it is UnauthorizedOperation.
  37180. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37181. // The ID of the virtual private gateway.
  37182. //
  37183. // VpnGatewayId is a required field
  37184. VpnGatewayId *string `type:"string" required:"true"`
  37185. }
  37186. // String returns the string representation
  37187. func (s DeleteVpnGatewayInput) String() string {
  37188. return awsutil.Prettify(s)
  37189. }
  37190. // GoString returns the string representation
  37191. func (s DeleteVpnGatewayInput) GoString() string {
  37192. return s.String()
  37193. }
  37194. // Validate inspects the fields of the type to determine if they are valid.
  37195. func (s *DeleteVpnGatewayInput) Validate() error {
  37196. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnGatewayInput"}
  37197. if s.VpnGatewayId == nil {
  37198. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  37199. }
  37200. if invalidParams.Len() > 0 {
  37201. return invalidParams
  37202. }
  37203. return nil
  37204. }
  37205. // SetDryRun sets the DryRun field's value.
  37206. func (s *DeleteVpnGatewayInput) SetDryRun(v bool) *DeleteVpnGatewayInput {
  37207. s.DryRun = &v
  37208. return s
  37209. }
  37210. // SetVpnGatewayId sets the VpnGatewayId field's value.
  37211. func (s *DeleteVpnGatewayInput) SetVpnGatewayId(v string) *DeleteVpnGatewayInput {
  37212. s.VpnGatewayId = &v
  37213. return s
  37214. }
  37215. type DeleteVpnGatewayOutput struct {
  37216. _ struct{} `type:"structure"`
  37217. }
  37218. // String returns the string representation
  37219. func (s DeleteVpnGatewayOutput) String() string {
  37220. return awsutil.Prettify(s)
  37221. }
  37222. // GoString returns the string representation
  37223. func (s DeleteVpnGatewayOutput) GoString() string {
  37224. return s.String()
  37225. }
  37226. type DeprovisionByoipCidrInput struct {
  37227. _ struct{} `type:"structure"`
  37228. // The public IPv4 address range, in CIDR notation. The prefix must be the same
  37229. // prefix that you specified when you provisioned the address range.
  37230. //
  37231. // Cidr is a required field
  37232. Cidr *string `type:"string" required:"true"`
  37233. // Checks whether you have the required permissions for the action, without
  37234. // actually making the request, and provides an error response. If you have
  37235. // the required permissions, the error response is DryRunOperation. Otherwise,
  37236. // it is UnauthorizedOperation.
  37237. DryRun *bool `type:"boolean"`
  37238. }
  37239. // String returns the string representation
  37240. func (s DeprovisionByoipCidrInput) String() string {
  37241. return awsutil.Prettify(s)
  37242. }
  37243. // GoString returns the string representation
  37244. func (s DeprovisionByoipCidrInput) GoString() string {
  37245. return s.String()
  37246. }
  37247. // Validate inspects the fields of the type to determine if they are valid.
  37248. func (s *DeprovisionByoipCidrInput) Validate() error {
  37249. invalidParams := request.ErrInvalidParams{Context: "DeprovisionByoipCidrInput"}
  37250. if s.Cidr == nil {
  37251. invalidParams.Add(request.NewErrParamRequired("Cidr"))
  37252. }
  37253. if invalidParams.Len() > 0 {
  37254. return invalidParams
  37255. }
  37256. return nil
  37257. }
  37258. // SetCidr sets the Cidr field's value.
  37259. func (s *DeprovisionByoipCidrInput) SetCidr(v string) *DeprovisionByoipCidrInput {
  37260. s.Cidr = &v
  37261. return s
  37262. }
  37263. // SetDryRun sets the DryRun field's value.
  37264. func (s *DeprovisionByoipCidrInput) SetDryRun(v bool) *DeprovisionByoipCidrInput {
  37265. s.DryRun = &v
  37266. return s
  37267. }
  37268. type DeprovisionByoipCidrOutput struct {
  37269. _ struct{} `type:"structure"`
  37270. // Information about the address range.
  37271. ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"`
  37272. }
  37273. // String returns the string representation
  37274. func (s DeprovisionByoipCidrOutput) String() string {
  37275. return awsutil.Prettify(s)
  37276. }
  37277. // GoString returns the string representation
  37278. func (s DeprovisionByoipCidrOutput) GoString() string {
  37279. return s.String()
  37280. }
  37281. // SetByoipCidr sets the ByoipCidr field's value.
  37282. func (s *DeprovisionByoipCidrOutput) SetByoipCidr(v *ByoipCidr) *DeprovisionByoipCidrOutput {
  37283. s.ByoipCidr = v
  37284. return s
  37285. }
  37286. // Contains the parameters for DeregisterImage.
  37287. type DeregisterImageInput struct {
  37288. _ struct{} `type:"structure"`
  37289. // Checks whether you have the required permissions for the action, without
  37290. // actually making the request, and provides an error response. If you have
  37291. // the required permissions, the error response is DryRunOperation. Otherwise,
  37292. // it is UnauthorizedOperation.
  37293. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37294. // The ID of the AMI.
  37295. //
  37296. // ImageId is a required field
  37297. ImageId *string `type:"string" required:"true"`
  37298. }
  37299. // String returns the string representation
  37300. func (s DeregisterImageInput) String() string {
  37301. return awsutil.Prettify(s)
  37302. }
  37303. // GoString returns the string representation
  37304. func (s DeregisterImageInput) GoString() string {
  37305. return s.String()
  37306. }
  37307. // Validate inspects the fields of the type to determine if they are valid.
  37308. func (s *DeregisterImageInput) Validate() error {
  37309. invalidParams := request.ErrInvalidParams{Context: "DeregisterImageInput"}
  37310. if s.ImageId == nil {
  37311. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  37312. }
  37313. if invalidParams.Len() > 0 {
  37314. return invalidParams
  37315. }
  37316. return nil
  37317. }
  37318. // SetDryRun sets the DryRun field's value.
  37319. func (s *DeregisterImageInput) SetDryRun(v bool) *DeregisterImageInput {
  37320. s.DryRun = &v
  37321. return s
  37322. }
  37323. // SetImageId sets the ImageId field's value.
  37324. func (s *DeregisterImageInput) SetImageId(v string) *DeregisterImageInput {
  37325. s.ImageId = &v
  37326. return s
  37327. }
  37328. type DeregisterImageOutput struct {
  37329. _ struct{} `type:"structure"`
  37330. }
  37331. // String returns the string representation
  37332. func (s DeregisterImageOutput) String() string {
  37333. return awsutil.Prettify(s)
  37334. }
  37335. // GoString returns the string representation
  37336. func (s DeregisterImageOutput) GoString() string {
  37337. return s.String()
  37338. }
  37339. type DescribeAccountAttributesInput struct {
  37340. _ struct{} `type:"structure"`
  37341. // One or more account attribute names.
  37342. AttributeNames []*string `locationName:"attributeName" locationNameList:"attributeName" type:"list"`
  37343. // Checks whether you have the required permissions for the action, without
  37344. // actually making the request, and provides an error response. If you have
  37345. // the required permissions, the error response is DryRunOperation. Otherwise,
  37346. // it is UnauthorizedOperation.
  37347. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37348. }
  37349. // String returns the string representation
  37350. func (s DescribeAccountAttributesInput) String() string {
  37351. return awsutil.Prettify(s)
  37352. }
  37353. // GoString returns the string representation
  37354. func (s DescribeAccountAttributesInput) GoString() string {
  37355. return s.String()
  37356. }
  37357. // SetAttributeNames sets the AttributeNames field's value.
  37358. func (s *DescribeAccountAttributesInput) SetAttributeNames(v []*string) *DescribeAccountAttributesInput {
  37359. s.AttributeNames = v
  37360. return s
  37361. }
  37362. // SetDryRun sets the DryRun field's value.
  37363. func (s *DescribeAccountAttributesInput) SetDryRun(v bool) *DescribeAccountAttributesInput {
  37364. s.DryRun = &v
  37365. return s
  37366. }
  37367. type DescribeAccountAttributesOutput struct {
  37368. _ struct{} `type:"structure"`
  37369. // Information about one or more account attributes.
  37370. AccountAttributes []*AccountAttribute `locationName:"accountAttributeSet" locationNameList:"item" type:"list"`
  37371. }
  37372. // String returns the string representation
  37373. func (s DescribeAccountAttributesOutput) String() string {
  37374. return awsutil.Prettify(s)
  37375. }
  37376. // GoString returns the string representation
  37377. func (s DescribeAccountAttributesOutput) GoString() string {
  37378. return s.String()
  37379. }
  37380. // SetAccountAttributes sets the AccountAttributes field's value.
  37381. func (s *DescribeAccountAttributesOutput) SetAccountAttributes(v []*AccountAttribute) *DescribeAccountAttributesOutput {
  37382. s.AccountAttributes = v
  37383. return s
  37384. }
  37385. type DescribeAddressesInput struct {
  37386. _ struct{} `type:"structure"`
  37387. // [EC2-VPC] One or more allocation IDs.
  37388. //
  37389. // Default: Describes all your Elastic IP addresses.
  37390. AllocationIds []*string `locationName:"AllocationId" locationNameList:"AllocationId" type:"list"`
  37391. // Checks whether you have the required permissions for the action, without
  37392. // actually making the request, and provides an error response. If you have
  37393. // the required permissions, the error response is DryRunOperation. Otherwise,
  37394. // it is UnauthorizedOperation.
  37395. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37396. // One or more filters. Filter names and values are case-sensitive.
  37397. //
  37398. // * allocation-id - [EC2-VPC] The allocation ID for the address.
  37399. //
  37400. // * association-id - [EC2-VPC] The association ID for the address.
  37401. //
  37402. // * domain - Indicates whether the address is for use in EC2-Classic (standard)
  37403. // or in a VPC (vpc).
  37404. //
  37405. // * instance-id - The ID of the instance the address is associated with,
  37406. // if any.
  37407. //
  37408. // * network-interface-id - [EC2-VPC] The ID of the network interface that
  37409. // the address is associated with, if any.
  37410. //
  37411. // * network-interface-owner-id - The AWS account ID of the owner.
  37412. //
  37413. // * private-ip-address - [EC2-VPC] The private IP address associated with
  37414. // the Elastic IP address.
  37415. //
  37416. // * public-ip - The Elastic IP address.
  37417. //
  37418. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  37419. // Use the tag key in the filter name and the tag value as the filter value.
  37420. // For example, to find all resources that have a tag with the key Owner
  37421. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  37422. // the filter value.
  37423. //
  37424. // * tag-key - The key of a tag assigned to the resource. Use this filter
  37425. // to find all resources assigned a tag with a specific key, regardless of
  37426. // the tag value.
  37427. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37428. // [EC2-Classic] One or more Elastic IP addresses.
  37429. //
  37430. // Default: Describes all your Elastic IP addresses.
  37431. PublicIps []*string `locationName:"PublicIp" locationNameList:"PublicIp" type:"list"`
  37432. }
  37433. // String returns the string representation
  37434. func (s DescribeAddressesInput) String() string {
  37435. return awsutil.Prettify(s)
  37436. }
  37437. // GoString returns the string representation
  37438. func (s DescribeAddressesInput) GoString() string {
  37439. return s.String()
  37440. }
  37441. // SetAllocationIds sets the AllocationIds field's value.
  37442. func (s *DescribeAddressesInput) SetAllocationIds(v []*string) *DescribeAddressesInput {
  37443. s.AllocationIds = v
  37444. return s
  37445. }
  37446. // SetDryRun sets the DryRun field's value.
  37447. func (s *DescribeAddressesInput) SetDryRun(v bool) *DescribeAddressesInput {
  37448. s.DryRun = &v
  37449. return s
  37450. }
  37451. // SetFilters sets the Filters field's value.
  37452. func (s *DescribeAddressesInput) SetFilters(v []*Filter) *DescribeAddressesInput {
  37453. s.Filters = v
  37454. return s
  37455. }
  37456. // SetPublicIps sets the PublicIps field's value.
  37457. func (s *DescribeAddressesInput) SetPublicIps(v []*string) *DescribeAddressesInput {
  37458. s.PublicIps = v
  37459. return s
  37460. }
  37461. type DescribeAddressesOutput struct {
  37462. _ struct{} `type:"structure"`
  37463. // Information about one or more Elastic IP addresses.
  37464. Addresses []*Address `locationName:"addressesSet" locationNameList:"item" type:"list"`
  37465. }
  37466. // String returns the string representation
  37467. func (s DescribeAddressesOutput) String() string {
  37468. return awsutil.Prettify(s)
  37469. }
  37470. // GoString returns the string representation
  37471. func (s DescribeAddressesOutput) GoString() string {
  37472. return s.String()
  37473. }
  37474. // SetAddresses sets the Addresses field's value.
  37475. func (s *DescribeAddressesOutput) SetAddresses(v []*Address) *DescribeAddressesOutput {
  37476. s.Addresses = v
  37477. return s
  37478. }
  37479. type DescribeAggregateIdFormatInput struct {
  37480. _ struct{} `type:"structure"`
  37481. // Checks whether you have the required permissions for the action, without
  37482. // actually making the request, and provides an error response. If you have
  37483. // the required permissions, the error response is DryRunOperation. Otherwise,
  37484. // it is UnauthorizedOperation.
  37485. DryRun *bool `type:"boolean"`
  37486. }
  37487. // String returns the string representation
  37488. func (s DescribeAggregateIdFormatInput) String() string {
  37489. return awsutil.Prettify(s)
  37490. }
  37491. // GoString returns the string representation
  37492. func (s DescribeAggregateIdFormatInput) GoString() string {
  37493. return s.String()
  37494. }
  37495. // SetDryRun sets the DryRun field's value.
  37496. func (s *DescribeAggregateIdFormatInput) SetDryRun(v bool) *DescribeAggregateIdFormatInput {
  37497. s.DryRun = &v
  37498. return s
  37499. }
  37500. type DescribeAggregateIdFormatOutput struct {
  37501. _ struct{} `type:"structure"`
  37502. // Information about each resource's ID format.
  37503. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  37504. // Indicates whether all resource types in the region are configured to use
  37505. // longer IDs. This value is only true if all users are configured to use longer
  37506. // IDs for all resources types in the region.
  37507. UseLongIdsAggregated *bool `locationName:"useLongIdsAggregated" type:"boolean"`
  37508. }
  37509. // String returns the string representation
  37510. func (s DescribeAggregateIdFormatOutput) String() string {
  37511. return awsutil.Prettify(s)
  37512. }
  37513. // GoString returns the string representation
  37514. func (s DescribeAggregateIdFormatOutput) GoString() string {
  37515. return s.String()
  37516. }
  37517. // SetStatuses sets the Statuses field's value.
  37518. func (s *DescribeAggregateIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeAggregateIdFormatOutput {
  37519. s.Statuses = v
  37520. return s
  37521. }
  37522. // SetUseLongIdsAggregated sets the UseLongIdsAggregated field's value.
  37523. func (s *DescribeAggregateIdFormatOutput) SetUseLongIdsAggregated(v bool) *DescribeAggregateIdFormatOutput {
  37524. s.UseLongIdsAggregated = &v
  37525. return s
  37526. }
  37527. type DescribeAvailabilityZonesInput struct {
  37528. _ struct{} `type:"structure"`
  37529. // Checks whether you have the required permissions for the action, without
  37530. // actually making the request, and provides an error response. If you have
  37531. // the required permissions, the error response is DryRunOperation. Otherwise,
  37532. // it is UnauthorizedOperation.
  37533. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37534. // One or more filters.
  37535. //
  37536. // * message - Information about the Availability Zone.
  37537. //
  37538. // * region-name - The name of the region for the Availability Zone (for
  37539. // example, us-east-1).
  37540. //
  37541. // * state - The state of the Availability Zone (available | information
  37542. // | impaired | unavailable).
  37543. //
  37544. // * zone-id - The ID of the Availability Zone (for example, use1-az1).
  37545. //
  37546. // * zone-name - The name of the Availability Zone (for example, us-east-1a).
  37547. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37548. // The IDs of one or more Availability Zones.
  37549. ZoneIds []*string `locationName:"ZoneId" locationNameList:"ZoneId" type:"list"`
  37550. // The names of one or more Availability Zones.
  37551. ZoneNames []*string `locationName:"ZoneName" locationNameList:"ZoneName" type:"list"`
  37552. }
  37553. // String returns the string representation
  37554. func (s DescribeAvailabilityZonesInput) String() string {
  37555. return awsutil.Prettify(s)
  37556. }
  37557. // GoString returns the string representation
  37558. func (s DescribeAvailabilityZonesInput) GoString() string {
  37559. return s.String()
  37560. }
  37561. // SetDryRun sets the DryRun field's value.
  37562. func (s *DescribeAvailabilityZonesInput) SetDryRun(v bool) *DescribeAvailabilityZonesInput {
  37563. s.DryRun = &v
  37564. return s
  37565. }
  37566. // SetFilters sets the Filters field's value.
  37567. func (s *DescribeAvailabilityZonesInput) SetFilters(v []*Filter) *DescribeAvailabilityZonesInput {
  37568. s.Filters = v
  37569. return s
  37570. }
  37571. // SetZoneIds sets the ZoneIds field's value.
  37572. func (s *DescribeAvailabilityZonesInput) SetZoneIds(v []*string) *DescribeAvailabilityZonesInput {
  37573. s.ZoneIds = v
  37574. return s
  37575. }
  37576. // SetZoneNames sets the ZoneNames field's value.
  37577. func (s *DescribeAvailabilityZonesInput) SetZoneNames(v []*string) *DescribeAvailabilityZonesInput {
  37578. s.ZoneNames = v
  37579. return s
  37580. }
  37581. type DescribeAvailabilityZonesOutput struct {
  37582. _ struct{} `type:"structure"`
  37583. // Information about one or more Availability Zones.
  37584. AvailabilityZones []*AvailabilityZone `locationName:"availabilityZoneInfo" locationNameList:"item" type:"list"`
  37585. }
  37586. // String returns the string representation
  37587. func (s DescribeAvailabilityZonesOutput) String() string {
  37588. return awsutil.Prettify(s)
  37589. }
  37590. // GoString returns the string representation
  37591. func (s DescribeAvailabilityZonesOutput) GoString() string {
  37592. return s.String()
  37593. }
  37594. // SetAvailabilityZones sets the AvailabilityZones field's value.
  37595. func (s *DescribeAvailabilityZonesOutput) SetAvailabilityZones(v []*AvailabilityZone) *DescribeAvailabilityZonesOutput {
  37596. s.AvailabilityZones = v
  37597. return s
  37598. }
  37599. // Contains the parameters for DescribeBundleTasks.
  37600. type DescribeBundleTasksInput struct {
  37601. _ struct{} `type:"structure"`
  37602. // One or more bundle task IDs.
  37603. //
  37604. // Default: Describes all your bundle tasks.
  37605. BundleIds []*string `locationName:"BundleId" locationNameList:"BundleId" type:"list"`
  37606. // Checks whether you have the required permissions for the action, without
  37607. // actually making the request, and provides an error response. If you have
  37608. // the required permissions, the error response is DryRunOperation. Otherwise,
  37609. // it is UnauthorizedOperation.
  37610. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37611. // One or more filters.
  37612. //
  37613. // * bundle-id - The ID of the bundle task.
  37614. //
  37615. // * error-code - If the task failed, the error code returned.
  37616. //
  37617. // * error-message - If the task failed, the error message returned.
  37618. //
  37619. // * instance-id - The ID of the instance.
  37620. //
  37621. // * progress - The level of task completion, as a percentage (for example,
  37622. // 20%).
  37623. //
  37624. // * s3-bucket - The Amazon S3 bucket to store the AMI.
  37625. //
  37626. // * s3-prefix - The beginning of the AMI name.
  37627. //
  37628. // * start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z).
  37629. //
  37630. // * state - The state of the task (pending | waiting-for-shutdown | bundling
  37631. // | storing | cancelling | complete | failed).
  37632. //
  37633. // * update-time - The time of the most recent update for the task.
  37634. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37635. }
  37636. // String returns the string representation
  37637. func (s DescribeBundleTasksInput) String() string {
  37638. return awsutil.Prettify(s)
  37639. }
  37640. // GoString returns the string representation
  37641. func (s DescribeBundleTasksInput) GoString() string {
  37642. return s.String()
  37643. }
  37644. // SetBundleIds sets the BundleIds field's value.
  37645. func (s *DescribeBundleTasksInput) SetBundleIds(v []*string) *DescribeBundleTasksInput {
  37646. s.BundleIds = v
  37647. return s
  37648. }
  37649. // SetDryRun sets the DryRun field's value.
  37650. func (s *DescribeBundleTasksInput) SetDryRun(v bool) *DescribeBundleTasksInput {
  37651. s.DryRun = &v
  37652. return s
  37653. }
  37654. // SetFilters sets the Filters field's value.
  37655. func (s *DescribeBundleTasksInput) SetFilters(v []*Filter) *DescribeBundleTasksInput {
  37656. s.Filters = v
  37657. return s
  37658. }
  37659. // Contains the output of DescribeBundleTasks.
  37660. type DescribeBundleTasksOutput struct {
  37661. _ struct{} `type:"structure"`
  37662. // Information about one or more bundle tasks.
  37663. BundleTasks []*BundleTask `locationName:"bundleInstanceTasksSet" locationNameList:"item" type:"list"`
  37664. }
  37665. // String returns the string representation
  37666. func (s DescribeBundleTasksOutput) String() string {
  37667. return awsutil.Prettify(s)
  37668. }
  37669. // GoString returns the string representation
  37670. func (s DescribeBundleTasksOutput) GoString() string {
  37671. return s.String()
  37672. }
  37673. // SetBundleTasks sets the BundleTasks field's value.
  37674. func (s *DescribeBundleTasksOutput) SetBundleTasks(v []*BundleTask) *DescribeBundleTasksOutput {
  37675. s.BundleTasks = v
  37676. return s
  37677. }
  37678. type DescribeByoipCidrsInput struct {
  37679. _ struct{} `type:"structure"`
  37680. // Checks whether you have the required permissions for the action, without
  37681. // actually making the request, and provides an error response. If you have
  37682. // the required permissions, the error response is DryRunOperation. Otherwise,
  37683. // it is UnauthorizedOperation.
  37684. DryRun *bool `type:"boolean"`
  37685. // The maximum number of results to return with a single call. To retrieve the
  37686. // remaining results, make another call with the returned nextToken value.
  37687. //
  37688. // MaxResults is a required field
  37689. MaxResults *int64 `min:"5" type:"integer" required:"true"`
  37690. // The token for the next page of results.
  37691. NextToken *string `min:"1" type:"string"`
  37692. }
  37693. // String returns the string representation
  37694. func (s DescribeByoipCidrsInput) String() string {
  37695. return awsutil.Prettify(s)
  37696. }
  37697. // GoString returns the string representation
  37698. func (s DescribeByoipCidrsInput) GoString() string {
  37699. return s.String()
  37700. }
  37701. // Validate inspects the fields of the type to determine if they are valid.
  37702. func (s *DescribeByoipCidrsInput) Validate() error {
  37703. invalidParams := request.ErrInvalidParams{Context: "DescribeByoipCidrsInput"}
  37704. if s.MaxResults == nil {
  37705. invalidParams.Add(request.NewErrParamRequired("MaxResults"))
  37706. }
  37707. if s.MaxResults != nil && *s.MaxResults < 5 {
  37708. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  37709. }
  37710. if s.NextToken != nil && len(*s.NextToken) < 1 {
  37711. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  37712. }
  37713. if invalidParams.Len() > 0 {
  37714. return invalidParams
  37715. }
  37716. return nil
  37717. }
  37718. // SetDryRun sets the DryRun field's value.
  37719. func (s *DescribeByoipCidrsInput) SetDryRun(v bool) *DescribeByoipCidrsInput {
  37720. s.DryRun = &v
  37721. return s
  37722. }
  37723. // SetMaxResults sets the MaxResults field's value.
  37724. func (s *DescribeByoipCidrsInput) SetMaxResults(v int64) *DescribeByoipCidrsInput {
  37725. s.MaxResults = &v
  37726. return s
  37727. }
  37728. // SetNextToken sets the NextToken field's value.
  37729. func (s *DescribeByoipCidrsInput) SetNextToken(v string) *DescribeByoipCidrsInput {
  37730. s.NextToken = &v
  37731. return s
  37732. }
  37733. type DescribeByoipCidrsOutput struct {
  37734. _ struct{} `type:"structure"`
  37735. // Information about your address ranges.
  37736. ByoipCidrs []*ByoipCidr `locationName:"byoipCidrSet" locationNameList:"item" type:"list"`
  37737. // The token to use to retrieve the next page of results. This value is null
  37738. // when there are no more results to return.
  37739. NextToken *string `locationName:"nextToken" type:"string"`
  37740. }
  37741. // String returns the string representation
  37742. func (s DescribeByoipCidrsOutput) String() string {
  37743. return awsutil.Prettify(s)
  37744. }
  37745. // GoString returns the string representation
  37746. func (s DescribeByoipCidrsOutput) GoString() string {
  37747. return s.String()
  37748. }
  37749. // SetByoipCidrs sets the ByoipCidrs field's value.
  37750. func (s *DescribeByoipCidrsOutput) SetByoipCidrs(v []*ByoipCidr) *DescribeByoipCidrsOutput {
  37751. s.ByoipCidrs = v
  37752. return s
  37753. }
  37754. // SetNextToken sets the NextToken field's value.
  37755. func (s *DescribeByoipCidrsOutput) SetNextToken(v string) *DescribeByoipCidrsOutput {
  37756. s.NextToken = &v
  37757. return s
  37758. }
  37759. type DescribeCapacityReservationsInput struct {
  37760. _ struct{} `type:"structure"`
  37761. // The ID of the Capacity Reservation.
  37762. CapacityReservationIds []*string `locationName:"CapacityReservationId" locationNameList:"item" type:"list"`
  37763. // Checks whether you have the required permissions for the action, without
  37764. // actually making the request, and provides an error response. If you have
  37765. // the required permissions, the error response is DryRunOperation. Otherwise,
  37766. // it is UnauthorizedOperation.
  37767. DryRun *bool `type:"boolean"`
  37768. // One or more filters.
  37769. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37770. // The maximum number of results to return for the request in a single page.
  37771. // The remaining results can be seen by sending another request with the returned
  37772. // nextToken value.
  37773. MaxResults *int64 `type:"integer"`
  37774. // The token to retrieve the next page of results.
  37775. NextToken *string `type:"string"`
  37776. }
  37777. // String returns the string representation
  37778. func (s DescribeCapacityReservationsInput) String() string {
  37779. return awsutil.Prettify(s)
  37780. }
  37781. // GoString returns the string representation
  37782. func (s DescribeCapacityReservationsInput) GoString() string {
  37783. return s.String()
  37784. }
  37785. // SetCapacityReservationIds sets the CapacityReservationIds field's value.
  37786. func (s *DescribeCapacityReservationsInput) SetCapacityReservationIds(v []*string) *DescribeCapacityReservationsInput {
  37787. s.CapacityReservationIds = v
  37788. return s
  37789. }
  37790. // SetDryRun sets the DryRun field's value.
  37791. func (s *DescribeCapacityReservationsInput) SetDryRun(v bool) *DescribeCapacityReservationsInput {
  37792. s.DryRun = &v
  37793. return s
  37794. }
  37795. // SetFilters sets the Filters field's value.
  37796. func (s *DescribeCapacityReservationsInput) SetFilters(v []*Filter) *DescribeCapacityReservationsInput {
  37797. s.Filters = v
  37798. return s
  37799. }
  37800. // SetMaxResults sets the MaxResults field's value.
  37801. func (s *DescribeCapacityReservationsInput) SetMaxResults(v int64) *DescribeCapacityReservationsInput {
  37802. s.MaxResults = &v
  37803. return s
  37804. }
  37805. // SetNextToken sets the NextToken field's value.
  37806. func (s *DescribeCapacityReservationsInput) SetNextToken(v string) *DescribeCapacityReservationsInput {
  37807. s.NextToken = &v
  37808. return s
  37809. }
  37810. type DescribeCapacityReservationsOutput struct {
  37811. _ struct{} `type:"structure"`
  37812. // Information about the Capacity Reservations.
  37813. CapacityReservations []*CapacityReservation `locationName:"capacityReservationSet" locationNameList:"item" type:"list"`
  37814. // The token to use to retrieve the next page of results. This value is null
  37815. // when there are no more results to return.
  37816. NextToken *string `locationName:"nextToken" type:"string"`
  37817. }
  37818. // String returns the string representation
  37819. func (s DescribeCapacityReservationsOutput) String() string {
  37820. return awsutil.Prettify(s)
  37821. }
  37822. // GoString returns the string representation
  37823. func (s DescribeCapacityReservationsOutput) GoString() string {
  37824. return s.String()
  37825. }
  37826. // SetCapacityReservations sets the CapacityReservations field's value.
  37827. func (s *DescribeCapacityReservationsOutput) SetCapacityReservations(v []*CapacityReservation) *DescribeCapacityReservationsOutput {
  37828. s.CapacityReservations = v
  37829. return s
  37830. }
  37831. // SetNextToken sets the NextToken field's value.
  37832. func (s *DescribeCapacityReservationsOutput) SetNextToken(v string) *DescribeCapacityReservationsOutput {
  37833. s.NextToken = &v
  37834. return s
  37835. }
  37836. type DescribeClassicLinkInstancesInput struct {
  37837. _ struct{} `type:"structure"`
  37838. // Checks whether you have the required permissions for the action, without
  37839. // actually making the request, and provides an error response. If you have
  37840. // the required permissions, the error response is DryRunOperation. Otherwise,
  37841. // it is UnauthorizedOperation.
  37842. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37843. // One or more filters.
  37844. //
  37845. // * group-id - The ID of a VPC security group that's associated with the
  37846. // instance.
  37847. //
  37848. // * instance-id - The ID of the instance.
  37849. //
  37850. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  37851. // Use the tag key in the filter name and the tag value as the filter value.
  37852. // For example, to find all resources that have a tag with the key Owner
  37853. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  37854. // the filter value.
  37855. //
  37856. // * tag-key - The key of a tag assigned to the resource. Use this filter
  37857. // to find all resources assigned a tag with a specific key, regardless of
  37858. // the tag value.
  37859. //
  37860. // * vpc-id - The ID of the VPC to which the instance is linked.
  37861. //
  37862. // vpc-id - The ID of the VPC that the instance is linked to.
  37863. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37864. // One or more instance IDs. Must be instances linked to a VPC through ClassicLink.
  37865. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  37866. // The maximum number of results to return for the request in a single page.
  37867. // The remaining results of the initial request can be seen by sending another
  37868. // request with the returned NextToken value. This value can be between 5 and
  37869. // 1000. If MaxResults is given a value larger than 1000, only 1000 results
  37870. // are returned. You cannot specify this parameter and the instance IDs parameter
  37871. // in the same request.
  37872. //
  37873. // Constraint: If the value is greater than 1000, we return only 1000 items.
  37874. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  37875. // The token to retrieve the next page of results.
  37876. NextToken *string `locationName:"nextToken" type:"string"`
  37877. }
  37878. // String returns the string representation
  37879. func (s DescribeClassicLinkInstancesInput) String() string {
  37880. return awsutil.Prettify(s)
  37881. }
  37882. // GoString returns the string representation
  37883. func (s DescribeClassicLinkInstancesInput) GoString() string {
  37884. return s.String()
  37885. }
  37886. // SetDryRun sets the DryRun field's value.
  37887. func (s *DescribeClassicLinkInstancesInput) SetDryRun(v bool) *DescribeClassicLinkInstancesInput {
  37888. s.DryRun = &v
  37889. return s
  37890. }
  37891. // SetFilters sets the Filters field's value.
  37892. func (s *DescribeClassicLinkInstancesInput) SetFilters(v []*Filter) *DescribeClassicLinkInstancesInput {
  37893. s.Filters = v
  37894. return s
  37895. }
  37896. // SetInstanceIds sets the InstanceIds field's value.
  37897. func (s *DescribeClassicLinkInstancesInput) SetInstanceIds(v []*string) *DescribeClassicLinkInstancesInput {
  37898. s.InstanceIds = v
  37899. return s
  37900. }
  37901. // SetMaxResults sets the MaxResults field's value.
  37902. func (s *DescribeClassicLinkInstancesInput) SetMaxResults(v int64) *DescribeClassicLinkInstancesInput {
  37903. s.MaxResults = &v
  37904. return s
  37905. }
  37906. // SetNextToken sets the NextToken field's value.
  37907. func (s *DescribeClassicLinkInstancesInput) SetNextToken(v string) *DescribeClassicLinkInstancesInput {
  37908. s.NextToken = &v
  37909. return s
  37910. }
  37911. type DescribeClassicLinkInstancesOutput struct {
  37912. _ struct{} `type:"structure"`
  37913. // Information about one or more linked EC2-Classic instances.
  37914. Instances []*ClassicLinkInstance `locationName:"instancesSet" locationNameList:"item" type:"list"`
  37915. // The token to use to retrieve the next page of results. This value is null
  37916. // when there are no more results to return.
  37917. NextToken *string `locationName:"nextToken" type:"string"`
  37918. }
  37919. // String returns the string representation
  37920. func (s DescribeClassicLinkInstancesOutput) String() string {
  37921. return awsutil.Prettify(s)
  37922. }
  37923. // GoString returns the string representation
  37924. func (s DescribeClassicLinkInstancesOutput) GoString() string {
  37925. return s.String()
  37926. }
  37927. // SetInstances sets the Instances field's value.
  37928. func (s *DescribeClassicLinkInstancesOutput) SetInstances(v []*ClassicLinkInstance) *DescribeClassicLinkInstancesOutput {
  37929. s.Instances = v
  37930. return s
  37931. }
  37932. // SetNextToken sets the NextToken field's value.
  37933. func (s *DescribeClassicLinkInstancesOutput) SetNextToken(v string) *DescribeClassicLinkInstancesOutput {
  37934. s.NextToken = &v
  37935. return s
  37936. }
  37937. type DescribeClientVpnAuthorizationRulesInput struct {
  37938. _ struct{} `type:"structure"`
  37939. // The ID of the Client VPN endpoint.
  37940. //
  37941. // ClientVpnEndpointId is a required field
  37942. ClientVpnEndpointId *string `type:"string" required:"true"`
  37943. // Checks whether you have the required permissions for the action, without
  37944. // actually making the request, and provides an error response. If you have
  37945. // the required permissions, the error response is DryRunOperation. Otherwise,
  37946. // it is UnauthorizedOperation.
  37947. DryRun *bool `type:"boolean"`
  37948. // One or more filters. Filter names and values are case-sensitive.
  37949. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37950. // The maximum number of results to return for the request in a single page.
  37951. // The remaining results can be seen by sending another request with the nextToken
  37952. // value.
  37953. MaxResults *int64 `min:"5" type:"integer"`
  37954. // The token to retrieve the next page of results.
  37955. NextToken *string `min:"1" type:"string"`
  37956. }
  37957. // String returns the string representation
  37958. func (s DescribeClientVpnAuthorizationRulesInput) String() string {
  37959. return awsutil.Prettify(s)
  37960. }
  37961. // GoString returns the string representation
  37962. func (s DescribeClientVpnAuthorizationRulesInput) GoString() string {
  37963. return s.String()
  37964. }
  37965. // Validate inspects the fields of the type to determine if they are valid.
  37966. func (s *DescribeClientVpnAuthorizationRulesInput) Validate() error {
  37967. invalidParams := request.ErrInvalidParams{Context: "DescribeClientVpnAuthorizationRulesInput"}
  37968. if s.ClientVpnEndpointId == nil {
  37969. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  37970. }
  37971. if s.MaxResults != nil && *s.MaxResults < 5 {
  37972. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  37973. }
  37974. if s.NextToken != nil && len(*s.NextToken) < 1 {
  37975. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  37976. }
  37977. if invalidParams.Len() > 0 {
  37978. return invalidParams
  37979. }
  37980. return nil
  37981. }
  37982. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  37983. func (s *DescribeClientVpnAuthorizationRulesInput) SetClientVpnEndpointId(v string) *DescribeClientVpnAuthorizationRulesInput {
  37984. s.ClientVpnEndpointId = &v
  37985. return s
  37986. }
  37987. // SetDryRun sets the DryRun field's value.
  37988. func (s *DescribeClientVpnAuthorizationRulesInput) SetDryRun(v bool) *DescribeClientVpnAuthorizationRulesInput {
  37989. s.DryRun = &v
  37990. return s
  37991. }
  37992. // SetFilters sets the Filters field's value.
  37993. func (s *DescribeClientVpnAuthorizationRulesInput) SetFilters(v []*Filter) *DescribeClientVpnAuthorizationRulesInput {
  37994. s.Filters = v
  37995. return s
  37996. }
  37997. // SetMaxResults sets the MaxResults field's value.
  37998. func (s *DescribeClientVpnAuthorizationRulesInput) SetMaxResults(v int64) *DescribeClientVpnAuthorizationRulesInput {
  37999. s.MaxResults = &v
  38000. return s
  38001. }
  38002. // SetNextToken sets the NextToken field's value.
  38003. func (s *DescribeClientVpnAuthorizationRulesInput) SetNextToken(v string) *DescribeClientVpnAuthorizationRulesInput {
  38004. s.NextToken = &v
  38005. return s
  38006. }
  38007. type DescribeClientVpnAuthorizationRulesOutput struct {
  38008. _ struct{} `type:"structure"`
  38009. // Information about the authorization rules.
  38010. AuthorizationRules []*AuthorizationRule `locationName:"authorizationRule" locationNameList:"item" type:"list"`
  38011. // The token to use to retrieve the next page of results. This value is null
  38012. // when there are no more results to return.
  38013. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  38014. }
  38015. // String returns the string representation
  38016. func (s DescribeClientVpnAuthorizationRulesOutput) String() string {
  38017. return awsutil.Prettify(s)
  38018. }
  38019. // GoString returns the string representation
  38020. func (s DescribeClientVpnAuthorizationRulesOutput) GoString() string {
  38021. return s.String()
  38022. }
  38023. // SetAuthorizationRules sets the AuthorizationRules field's value.
  38024. func (s *DescribeClientVpnAuthorizationRulesOutput) SetAuthorizationRules(v []*AuthorizationRule) *DescribeClientVpnAuthorizationRulesOutput {
  38025. s.AuthorizationRules = v
  38026. return s
  38027. }
  38028. // SetNextToken sets the NextToken field's value.
  38029. func (s *DescribeClientVpnAuthorizationRulesOutput) SetNextToken(v string) *DescribeClientVpnAuthorizationRulesOutput {
  38030. s.NextToken = &v
  38031. return s
  38032. }
  38033. type DescribeClientVpnConnectionsInput struct {
  38034. _ struct{} `type:"structure"`
  38035. // The ID of the Client VPN endpoint.
  38036. //
  38037. // ClientVpnEndpointId is a required field
  38038. ClientVpnEndpointId *string `type:"string" required:"true"`
  38039. // Checks whether you have the required permissions for the action, without
  38040. // actually making the request, and provides an error response. If you have
  38041. // the required permissions, the error response is DryRunOperation. Otherwise,
  38042. // it is UnauthorizedOperation.
  38043. DryRun *bool `type:"boolean"`
  38044. // One or more filters. Filter names and values are case-sensitive.
  38045. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38046. // The maximum number of results to return for the request in a single page.
  38047. // The remaining results can be seen by sending another request with the nextToken
  38048. // value.
  38049. MaxResults *int64 `min:"5" type:"integer"`
  38050. // The token to retrieve the next page of results.
  38051. NextToken *string `min:"1" type:"string"`
  38052. }
  38053. // String returns the string representation
  38054. func (s DescribeClientVpnConnectionsInput) String() string {
  38055. return awsutil.Prettify(s)
  38056. }
  38057. // GoString returns the string representation
  38058. func (s DescribeClientVpnConnectionsInput) GoString() string {
  38059. return s.String()
  38060. }
  38061. // Validate inspects the fields of the type to determine if they are valid.
  38062. func (s *DescribeClientVpnConnectionsInput) Validate() error {
  38063. invalidParams := request.ErrInvalidParams{Context: "DescribeClientVpnConnectionsInput"}
  38064. if s.ClientVpnEndpointId == nil {
  38065. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  38066. }
  38067. if s.MaxResults != nil && *s.MaxResults < 5 {
  38068. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  38069. }
  38070. if s.NextToken != nil && len(*s.NextToken) < 1 {
  38071. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  38072. }
  38073. if invalidParams.Len() > 0 {
  38074. return invalidParams
  38075. }
  38076. return nil
  38077. }
  38078. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  38079. func (s *DescribeClientVpnConnectionsInput) SetClientVpnEndpointId(v string) *DescribeClientVpnConnectionsInput {
  38080. s.ClientVpnEndpointId = &v
  38081. return s
  38082. }
  38083. // SetDryRun sets the DryRun field's value.
  38084. func (s *DescribeClientVpnConnectionsInput) SetDryRun(v bool) *DescribeClientVpnConnectionsInput {
  38085. s.DryRun = &v
  38086. return s
  38087. }
  38088. // SetFilters sets the Filters field's value.
  38089. func (s *DescribeClientVpnConnectionsInput) SetFilters(v []*Filter) *DescribeClientVpnConnectionsInput {
  38090. s.Filters = v
  38091. return s
  38092. }
  38093. // SetMaxResults sets the MaxResults field's value.
  38094. func (s *DescribeClientVpnConnectionsInput) SetMaxResults(v int64) *DescribeClientVpnConnectionsInput {
  38095. s.MaxResults = &v
  38096. return s
  38097. }
  38098. // SetNextToken sets the NextToken field's value.
  38099. func (s *DescribeClientVpnConnectionsInput) SetNextToken(v string) *DescribeClientVpnConnectionsInput {
  38100. s.NextToken = &v
  38101. return s
  38102. }
  38103. type DescribeClientVpnConnectionsOutput struct {
  38104. _ struct{} `type:"structure"`
  38105. // Information about the active and terminated client connections.
  38106. Connections []*ClientVpnConnection `locationName:"connections" locationNameList:"item" type:"list"`
  38107. // The token to use to retrieve the next page of results. This value is null
  38108. // when there are no more results to return.
  38109. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  38110. }
  38111. // String returns the string representation
  38112. func (s DescribeClientVpnConnectionsOutput) String() string {
  38113. return awsutil.Prettify(s)
  38114. }
  38115. // GoString returns the string representation
  38116. func (s DescribeClientVpnConnectionsOutput) GoString() string {
  38117. return s.String()
  38118. }
  38119. // SetConnections sets the Connections field's value.
  38120. func (s *DescribeClientVpnConnectionsOutput) SetConnections(v []*ClientVpnConnection) *DescribeClientVpnConnectionsOutput {
  38121. s.Connections = v
  38122. return s
  38123. }
  38124. // SetNextToken sets the NextToken field's value.
  38125. func (s *DescribeClientVpnConnectionsOutput) SetNextToken(v string) *DescribeClientVpnConnectionsOutput {
  38126. s.NextToken = &v
  38127. return s
  38128. }
  38129. type DescribeClientVpnEndpointsInput struct {
  38130. _ struct{} `type:"structure"`
  38131. // The ID of the Client VPN endpoint.
  38132. ClientVpnEndpointIds []*string `locationName:"ClientVpnEndpointId" locationNameList:"item" type:"list"`
  38133. // Checks whether you have the required permissions for the action, without
  38134. // actually making the request, and provides an error response. If you have
  38135. // the required permissions, the error response is DryRunOperation. Otherwise,
  38136. // it is UnauthorizedOperation.
  38137. DryRun *bool `type:"boolean"`
  38138. // One or more filters. Filter names and values are case-sensitive.
  38139. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38140. // The maximum number of results to return for the request in a single page.
  38141. // The remaining results can be seen by sending another request with the nextToken
  38142. // value.
  38143. MaxResults *int64 `min:"5" type:"integer"`
  38144. // The token to retrieve the next page of results.
  38145. NextToken *string `min:"1" type:"string"`
  38146. }
  38147. // String returns the string representation
  38148. func (s DescribeClientVpnEndpointsInput) String() string {
  38149. return awsutil.Prettify(s)
  38150. }
  38151. // GoString returns the string representation
  38152. func (s DescribeClientVpnEndpointsInput) GoString() string {
  38153. return s.String()
  38154. }
  38155. // Validate inspects the fields of the type to determine if they are valid.
  38156. func (s *DescribeClientVpnEndpointsInput) Validate() error {
  38157. invalidParams := request.ErrInvalidParams{Context: "DescribeClientVpnEndpointsInput"}
  38158. if s.MaxResults != nil && *s.MaxResults < 5 {
  38159. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  38160. }
  38161. if s.NextToken != nil && len(*s.NextToken) < 1 {
  38162. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  38163. }
  38164. if invalidParams.Len() > 0 {
  38165. return invalidParams
  38166. }
  38167. return nil
  38168. }
  38169. // SetClientVpnEndpointIds sets the ClientVpnEndpointIds field's value.
  38170. func (s *DescribeClientVpnEndpointsInput) SetClientVpnEndpointIds(v []*string) *DescribeClientVpnEndpointsInput {
  38171. s.ClientVpnEndpointIds = v
  38172. return s
  38173. }
  38174. // SetDryRun sets the DryRun field's value.
  38175. func (s *DescribeClientVpnEndpointsInput) SetDryRun(v bool) *DescribeClientVpnEndpointsInput {
  38176. s.DryRun = &v
  38177. return s
  38178. }
  38179. // SetFilters sets the Filters field's value.
  38180. func (s *DescribeClientVpnEndpointsInput) SetFilters(v []*Filter) *DescribeClientVpnEndpointsInput {
  38181. s.Filters = v
  38182. return s
  38183. }
  38184. // SetMaxResults sets the MaxResults field's value.
  38185. func (s *DescribeClientVpnEndpointsInput) SetMaxResults(v int64) *DescribeClientVpnEndpointsInput {
  38186. s.MaxResults = &v
  38187. return s
  38188. }
  38189. // SetNextToken sets the NextToken field's value.
  38190. func (s *DescribeClientVpnEndpointsInput) SetNextToken(v string) *DescribeClientVpnEndpointsInput {
  38191. s.NextToken = &v
  38192. return s
  38193. }
  38194. type DescribeClientVpnEndpointsOutput struct {
  38195. _ struct{} `type:"structure"`
  38196. // Information about the Client VPN endpoints.
  38197. ClientVpnEndpoints []*ClientVpnEndpoint `locationName:"clientVpnEndpoint" locationNameList:"item" type:"list"`
  38198. // The token to use to retrieve the next page of results. This value is null
  38199. // when there are no more results to return.
  38200. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  38201. }
  38202. // String returns the string representation
  38203. func (s DescribeClientVpnEndpointsOutput) String() string {
  38204. return awsutil.Prettify(s)
  38205. }
  38206. // GoString returns the string representation
  38207. func (s DescribeClientVpnEndpointsOutput) GoString() string {
  38208. return s.String()
  38209. }
  38210. // SetClientVpnEndpoints sets the ClientVpnEndpoints field's value.
  38211. func (s *DescribeClientVpnEndpointsOutput) SetClientVpnEndpoints(v []*ClientVpnEndpoint) *DescribeClientVpnEndpointsOutput {
  38212. s.ClientVpnEndpoints = v
  38213. return s
  38214. }
  38215. // SetNextToken sets the NextToken field's value.
  38216. func (s *DescribeClientVpnEndpointsOutput) SetNextToken(v string) *DescribeClientVpnEndpointsOutput {
  38217. s.NextToken = &v
  38218. return s
  38219. }
  38220. type DescribeClientVpnRoutesInput struct {
  38221. _ struct{} `type:"structure"`
  38222. // The ID of the Client VPN endpoint.
  38223. //
  38224. // ClientVpnEndpointId is a required field
  38225. ClientVpnEndpointId *string `type:"string" required:"true"`
  38226. // Checks whether you have the required permissions for the action, without
  38227. // actually making the request, and provides an error response. If you have
  38228. // the required permissions, the error response is DryRunOperation. Otherwise,
  38229. // it is UnauthorizedOperation.
  38230. DryRun *bool `type:"boolean"`
  38231. // One or more filters. Filter names and values are case-sensitive.
  38232. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38233. // The maximum number of results to return for the request in a single page.
  38234. // The remaining results can be seen by sending another request with the nextToken
  38235. // value.
  38236. MaxResults *int64 `min:"5" type:"integer"`
  38237. // The token to retrieve the next page of results.
  38238. NextToken *string `min:"1" type:"string"`
  38239. }
  38240. // String returns the string representation
  38241. func (s DescribeClientVpnRoutesInput) String() string {
  38242. return awsutil.Prettify(s)
  38243. }
  38244. // GoString returns the string representation
  38245. func (s DescribeClientVpnRoutesInput) GoString() string {
  38246. return s.String()
  38247. }
  38248. // Validate inspects the fields of the type to determine if they are valid.
  38249. func (s *DescribeClientVpnRoutesInput) Validate() error {
  38250. invalidParams := request.ErrInvalidParams{Context: "DescribeClientVpnRoutesInput"}
  38251. if s.ClientVpnEndpointId == nil {
  38252. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  38253. }
  38254. if s.MaxResults != nil && *s.MaxResults < 5 {
  38255. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  38256. }
  38257. if s.NextToken != nil && len(*s.NextToken) < 1 {
  38258. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  38259. }
  38260. if invalidParams.Len() > 0 {
  38261. return invalidParams
  38262. }
  38263. return nil
  38264. }
  38265. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  38266. func (s *DescribeClientVpnRoutesInput) SetClientVpnEndpointId(v string) *DescribeClientVpnRoutesInput {
  38267. s.ClientVpnEndpointId = &v
  38268. return s
  38269. }
  38270. // SetDryRun sets the DryRun field's value.
  38271. func (s *DescribeClientVpnRoutesInput) SetDryRun(v bool) *DescribeClientVpnRoutesInput {
  38272. s.DryRun = &v
  38273. return s
  38274. }
  38275. // SetFilters sets the Filters field's value.
  38276. func (s *DescribeClientVpnRoutesInput) SetFilters(v []*Filter) *DescribeClientVpnRoutesInput {
  38277. s.Filters = v
  38278. return s
  38279. }
  38280. // SetMaxResults sets the MaxResults field's value.
  38281. func (s *DescribeClientVpnRoutesInput) SetMaxResults(v int64) *DescribeClientVpnRoutesInput {
  38282. s.MaxResults = &v
  38283. return s
  38284. }
  38285. // SetNextToken sets the NextToken field's value.
  38286. func (s *DescribeClientVpnRoutesInput) SetNextToken(v string) *DescribeClientVpnRoutesInput {
  38287. s.NextToken = &v
  38288. return s
  38289. }
  38290. type DescribeClientVpnRoutesOutput struct {
  38291. _ struct{} `type:"structure"`
  38292. // The token to use to retrieve the next page of results. This value is null
  38293. // when there are no more results to return.
  38294. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  38295. // Information about the Client VPN endpoint routes.
  38296. Routes []*ClientVpnRoute `locationName:"routes" locationNameList:"item" type:"list"`
  38297. }
  38298. // String returns the string representation
  38299. func (s DescribeClientVpnRoutesOutput) String() string {
  38300. return awsutil.Prettify(s)
  38301. }
  38302. // GoString returns the string representation
  38303. func (s DescribeClientVpnRoutesOutput) GoString() string {
  38304. return s.String()
  38305. }
  38306. // SetNextToken sets the NextToken field's value.
  38307. func (s *DescribeClientVpnRoutesOutput) SetNextToken(v string) *DescribeClientVpnRoutesOutput {
  38308. s.NextToken = &v
  38309. return s
  38310. }
  38311. // SetRoutes sets the Routes field's value.
  38312. func (s *DescribeClientVpnRoutesOutput) SetRoutes(v []*ClientVpnRoute) *DescribeClientVpnRoutesOutput {
  38313. s.Routes = v
  38314. return s
  38315. }
  38316. type DescribeClientVpnTargetNetworksInput struct {
  38317. _ struct{} `type:"structure"`
  38318. // The IDs of the target network associations.
  38319. AssociationIds []*string `locationNameList:"item" type:"list"`
  38320. // The ID of the Client VPN endpoint.
  38321. //
  38322. // ClientVpnEndpointId is a required field
  38323. ClientVpnEndpointId *string `type:"string" required:"true"`
  38324. // Checks whether you have the required permissions for the action, without
  38325. // actually making the request, and provides an error response. If you have
  38326. // the required permissions, the error response is DryRunOperation. Otherwise,
  38327. // it is UnauthorizedOperation.
  38328. DryRun *bool `type:"boolean"`
  38329. // One or more filters. Filter names and values are case-sensitive.
  38330. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38331. // The maximum number of results to return for the request in a single page.
  38332. // The remaining results can be seen by sending another request with the nextToken
  38333. // value.
  38334. MaxResults *int64 `min:"5" type:"integer"`
  38335. // The token to retrieve the next page of results.
  38336. NextToken *string `min:"1" type:"string"`
  38337. }
  38338. // String returns the string representation
  38339. func (s DescribeClientVpnTargetNetworksInput) String() string {
  38340. return awsutil.Prettify(s)
  38341. }
  38342. // GoString returns the string representation
  38343. func (s DescribeClientVpnTargetNetworksInput) GoString() string {
  38344. return s.String()
  38345. }
  38346. // Validate inspects the fields of the type to determine if they are valid.
  38347. func (s *DescribeClientVpnTargetNetworksInput) Validate() error {
  38348. invalidParams := request.ErrInvalidParams{Context: "DescribeClientVpnTargetNetworksInput"}
  38349. if s.ClientVpnEndpointId == nil {
  38350. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  38351. }
  38352. if s.MaxResults != nil && *s.MaxResults < 5 {
  38353. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  38354. }
  38355. if s.NextToken != nil && len(*s.NextToken) < 1 {
  38356. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  38357. }
  38358. if invalidParams.Len() > 0 {
  38359. return invalidParams
  38360. }
  38361. return nil
  38362. }
  38363. // SetAssociationIds sets the AssociationIds field's value.
  38364. func (s *DescribeClientVpnTargetNetworksInput) SetAssociationIds(v []*string) *DescribeClientVpnTargetNetworksInput {
  38365. s.AssociationIds = v
  38366. return s
  38367. }
  38368. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  38369. func (s *DescribeClientVpnTargetNetworksInput) SetClientVpnEndpointId(v string) *DescribeClientVpnTargetNetworksInput {
  38370. s.ClientVpnEndpointId = &v
  38371. return s
  38372. }
  38373. // SetDryRun sets the DryRun field's value.
  38374. func (s *DescribeClientVpnTargetNetworksInput) SetDryRun(v bool) *DescribeClientVpnTargetNetworksInput {
  38375. s.DryRun = &v
  38376. return s
  38377. }
  38378. // SetFilters sets the Filters field's value.
  38379. func (s *DescribeClientVpnTargetNetworksInput) SetFilters(v []*Filter) *DescribeClientVpnTargetNetworksInput {
  38380. s.Filters = v
  38381. return s
  38382. }
  38383. // SetMaxResults sets the MaxResults field's value.
  38384. func (s *DescribeClientVpnTargetNetworksInput) SetMaxResults(v int64) *DescribeClientVpnTargetNetworksInput {
  38385. s.MaxResults = &v
  38386. return s
  38387. }
  38388. // SetNextToken sets the NextToken field's value.
  38389. func (s *DescribeClientVpnTargetNetworksInput) SetNextToken(v string) *DescribeClientVpnTargetNetworksInput {
  38390. s.NextToken = &v
  38391. return s
  38392. }
  38393. type DescribeClientVpnTargetNetworksOutput struct {
  38394. _ struct{} `type:"structure"`
  38395. // Information about the associated target networks.
  38396. ClientVpnTargetNetworks []*TargetNetwork `locationName:"clientVpnTargetNetworks" locationNameList:"item" type:"list"`
  38397. // The token to use to retrieve the next page of results. This value is null
  38398. // when there are no more results to return.
  38399. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  38400. }
  38401. // String returns the string representation
  38402. func (s DescribeClientVpnTargetNetworksOutput) String() string {
  38403. return awsutil.Prettify(s)
  38404. }
  38405. // GoString returns the string representation
  38406. func (s DescribeClientVpnTargetNetworksOutput) GoString() string {
  38407. return s.String()
  38408. }
  38409. // SetClientVpnTargetNetworks sets the ClientVpnTargetNetworks field's value.
  38410. func (s *DescribeClientVpnTargetNetworksOutput) SetClientVpnTargetNetworks(v []*TargetNetwork) *DescribeClientVpnTargetNetworksOutput {
  38411. s.ClientVpnTargetNetworks = v
  38412. return s
  38413. }
  38414. // SetNextToken sets the NextToken field's value.
  38415. func (s *DescribeClientVpnTargetNetworksOutput) SetNextToken(v string) *DescribeClientVpnTargetNetworksOutput {
  38416. s.NextToken = &v
  38417. return s
  38418. }
  38419. // Contains the parameters for DescribeConversionTasks.
  38420. type DescribeConversionTasksInput struct {
  38421. _ struct{} `type:"structure"`
  38422. // One or more conversion task IDs.
  38423. ConversionTaskIds []*string `locationName:"conversionTaskId" locationNameList:"item" type:"list"`
  38424. // Checks whether you have the required permissions for the action, without
  38425. // actually making the request, and provides an error response. If you have
  38426. // the required permissions, the error response is DryRunOperation. Otherwise,
  38427. // it is UnauthorizedOperation.
  38428. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38429. }
  38430. // String returns the string representation
  38431. func (s DescribeConversionTasksInput) String() string {
  38432. return awsutil.Prettify(s)
  38433. }
  38434. // GoString returns the string representation
  38435. func (s DescribeConversionTasksInput) GoString() string {
  38436. return s.String()
  38437. }
  38438. // SetConversionTaskIds sets the ConversionTaskIds field's value.
  38439. func (s *DescribeConversionTasksInput) SetConversionTaskIds(v []*string) *DescribeConversionTasksInput {
  38440. s.ConversionTaskIds = v
  38441. return s
  38442. }
  38443. // SetDryRun sets the DryRun field's value.
  38444. func (s *DescribeConversionTasksInput) SetDryRun(v bool) *DescribeConversionTasksInput {
  38445. s.DryRun = &v
  38446. return s
  38447. }
  38448. // Contains the output for DescribeConversionTasks.
  38449. type DescribeConversionTasksOutput struct {
  38450. _ struct{} `type:"structure"`
  38451. // Information about the conversion tasks.
  38452. ConversionTasks []*ConversionTask `locationName:"conversionTasks" locationNameList:"item" type:"list"`
  38453. }
  38454. // String returns the string representation
  38455. func (s DescribeConversionTasksOutput) String() string {
  38456. return awsutil.Prettify(s)
  38457. }
  38458. // GoString returns the string representation
  38459. func (s DescribeConversionTasksOutput) GoString() string {
  38460. return s.String()
  38461. }
  38462. // SetConversionTasks sets the ConversionTasks field's value.
  38463. func (s *DescribeConversionTasksOutput) SetConversionTasks(v []*ConversionTask) *DescribeConversionTasksOutput {
  38464. s.ConversionTasks = v
  38465. return s
  38466. }
  38467. // Contains the parameters for DescribeCustomerGateways.
  38468. type DescribeCustomerGatewaysInput struct {
  38469. _ struct{} `type:"structure"`
  38470. // One or more customer gateway IDs.
  38471. //
  38472. // Default: Describes all your customer gateways.
  38473. CustomerGatewayIds []*string `locationName:"CustomerGatewayId" locationNameList:"CustomerGatewayId" type:"list"`
  38474. // Checks whether you have the required permissions for the action, without
  38475. // actually making the request, and provides an error response. If you have
  38476. // the required permissions, the error response is DryRunOperation. Otherwise,
  38477. // it is UnauthorizedOperation.
  38478. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38479. // One or more filters.
  38480. //
  38481. // * bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous
  38482. // System Number (ASN).
  38483. //
  38484. // * customer-gateway-id - The ID of the customer gateway.
  38485. //
  38486. // * ip-address - The IP address of the customer gateway's Internet-routable
  38487. // external interface.
  38488. //
  38489. // * state - The state of the customer gateway (pending | available | deleting
  38490. // | deleted).
  38491. //
  38492. // * type - The type of customer gateway. Currently, the only supported type
  38493. // is ipsec.1.
  38494. //
  38495. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  38496. // Use the tag key in the filter name and the tag value as the filter value.
  38497. // For example, to find all resources that have a tag with the key Owner
  38498. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  38499. // the filter value.
  38500. //
  38501. // * tag-key - The key of a tag assigned to the resource. Use this filter
  38502. // to find all resources assigned a tag with a specific key, regardless of
  38503. // the tag value.
  38504. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38505. }
  38506. // String returns the string representation
  38507. func (s DescribeCustomerGatewaysInput) String() string {
  38508. return awsutil.Prettify(s)
  38509. }
  38510. // GoString returns the string representation
  38511. func (s DescribeCustomerGatewaysInput) GoString() string {
  38512. return s.String()
  38513. }
  38514. // SetCustomerGatewayIds sets the CustomerGatewayIds field's value.
  38515. func (s *DescribeCustomerGatewaysInput) SetCustomerGatewayIds(v []*string) *DescribeCustomerGatewaysInput {
  38516. s.CustomerGatewayIds = v
  38517. return s
  38518. }
  38519. // SetDryRun sets the DryRun field's value.
  38520. func (s *DescribeCustomerGatewaysInput) SetDryRun(v bool) *DescribeCustomerGatewaysInput {
  38521. s.DryRun = &v
  38522. return s
  38523. }
  38524. // SetFilters sets the Filters field's value.
  38525. func (s *DescribeCustomerGatewaysInput) SetFilters(v []*Filter) *DescribeCustomerGatewaysInput {
  38526. s.Filters = v
  38527. return s
  38528. }
  38529. // Contains the output of DescribeCustomerGateways.
  38530. type DescribeCustomerGatewaysOutput struct {
  38531. _ struct{} `type:"structure"`
  38532. // Information about one or more customer gateways.
  38533. CustomerGateways []*CustomerGateway `locationName:"customerGatewaySet" locationNameList:"item" type:"list"`
  38534. }
  38535. // String returns the string representation
  38536. func (s DescribeCustomerGatewaysOutput) String() string {
  38537. return awsutil.Prettify(s)
  38538. }
  38539. // GoString returns the string representation
  38540. func (s DescribeCustomerGatewaysOutput) GoString() string {
  38541. return s.String()
  38542. }
  38543. // SetCustomerGateways sets the CustomerGateways field's value.
  38544. func (s *DescribeCustomerGatewaysOutput) SetCustomerGateways(v []*CustomerGateway) *DescribeCustomerGatewaysOutput {
  38545. s.CustomerGateways = v
  38546. return s
  38547. }
  38548. type DescribeDhcpOptionsInput struct {
  38549. _ struct{} `type:"structure"`
  38550. // The IDs of one or more DHCP options sets.
  38551. //
  38552. // Default: Describes all your DHCP options sets.
  38553. DhcpOptionsIds []*string `locationName:"DhcpOptionsId" locationNameList:"DhcpOptionsId" type:"list"`
  38554. // Checks whether you have the required permissions for the action, without
  38555. // actually making the request, and provides an error response. If you have
  38556. // the required permissions, the error response is DryRunOperation. Otherwise,
  38557. // it is UnauthorizedOperation.
  38558. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38559. // One or more filters.
  38560. //
  38561. // * dhcp-options-id - The ID of a DHCP options set.
  38562. //
  38563. // * key - The key for one of the options (for example, domain-name).
  38564. //
  38565. // * value - The value for one of the options.
  38566. //
  38567. // * owner-id - The ID of the AWS account that owns the DHCP options set.
  38568. //
  38569. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  38570. // Use the tag key in the filter name and the tag value as the filter value.
  38571. // For example, to find all resources that have a tag with the key Owner
  38572. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  38573. // the filter value.
  38574. //
  38575. // * tag-key - The key of a tag assigned to the resource. Use this filter
  38576. // to find all resources assigned a tag with a specific key, regardless of
  38577. // the tag value.
  38578. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38579. }
  38580. // String returns the string representation
  38581. func (s DescribeDhcpOptionsInput) String() string {
  38582. return awsutil.Prettify(s)
  38583. }
  38584. // GoString returns the string representation
  38585. func (s DescribeDhcpOptionsInput) GoString() string {
  38586. return s.String()
  38587. }
  38588. // SetDhcpOptionsIds sets the DhcpOptionsIds field's value.
  38589. func (s *DescribeDhcpOptionsInput) SetDhcpOptionsIds(v []*string) *DescribeDhcpOptionsInput {
  38590. s.DhcpOptionsIds = v
  38591. return s
  38592. }
  38593. // SetDryRun sets the DryRun field's value.
  38594. func (s *DescribeDhcpOptionsInput) SetDryRun(v bool) *DescribeDhcpOptionsInput {
  38595. s.DryRun = &v
  38596. return s
  38597. }
  38598. // SetFilters sets the Filters field's value.
  38599. func (s *DescribeDhcpOptionsInput) SetFilters(v []*Filter) *DescribeDhcpOptionsInput {
  38600. s.Filters = v
  38601. return s
  38602. }
  38603. type DescribeDhcpOptionsOutput struct {
  38604. _ struct{} `type:"structure"`
  38605. // Information about one or more DHCP options sets.
  38606. DhcpOptions []*DhcpOptions `locationName:"dhcpOptionsSet" locationNameList:"item" type:"list"`
  38607. }
  38608. // String returns the string representation
  38609. func (s DescribeDhcpOptionsOutput) String() string {
  38610. return awsutil.Prettify(s)
  38611. }
  38612. // GoString returns the string representation
  38613. func (s DescribeDhcpOptionsOutput) GoString() string {
  38614. return s.String()
  38615. }
  38616. // SetDhcpOptions sets the DhcpOptions field's value.
  38617. func (s *DescribeDhcpOptionsOutput) SetDhcpOptions(v []*DhcpOptions) *DescribeDhcpOptionsOutput {
  38618. s.DhcpOptions = v
  38619. return s
  38620. }
  38621. type DescribeEgressOnlyInternetGatewaysInput struct {
  38622. _ struct{} `type:"structure"`
  38623. // Checks whether you have the required permissions for the action, without
  38624. // actually making the request, and provides an error response. If you have
  38625. // the required permissions, the error response is DryRunOperation. Otherwise,
  38626. // it is UnauthorizedOperation.
  38627. DryRun *bool `type:"boolean"`
  38628. // One or more egress-only internet gateway IDs.
  38629. EgressOnlyInternetGatewayIds []*string `locationName:"EgressOnlyInternetGatewayId" locationNameList:"item" type:"list"`
  38630. // The maximum number of results to return for the request in a single page.
  38631. // The remaining results can be seen by sending another request with the returned
  38632. // NextToken value. This value can be between 5 and 1000. If MaxResults is given
  38633. // a value larger than 1000, only 1000 results are returned.
  38634. MaxResults *int64 `type:"integer"`
  38635. // The token to retrieve the next page of results.
  38636. NextToken *string `type:"string"`
  38637. }
  38638. // String returns the string representation
  38639. func (s DescribeEgressOnlyInternetGatewaysInput) String() string {
  38640. return awsutil.Prettify(s)
  38641. }
  38642. // GoString returns the string representation
  38643. func (s DescribeEgressOnlyInternetGatewaysInput) GoString() string {
  38644. return s.String()
  38645. }
  38646. // SetDryRun sets the DryRun field's value.
  38647. func (s *DescribeEgressOnlyInternetGatewaysInput) SetDryRun(v bool) *DescribeEgressOnlyInternetGatewaysInput {
  38648. s.DryRun = &v
  38649. return s
  38650. }
  38651. // SetEgressOnlyInternetGatewayIds sets the EgressOnlyInternetGatewayIds field's value.
  38652. func (s *DescribeEgressOnlyInternetGatewaysInput) SetEgressOnlyInternetGatewayIds(v []*string) *DescribeEgressOnlyInternetGatewaysInput {
  38653. s.EgressOnlyInternetGatewayIds = v
  38654. return s
  38655. }
  38656. // SetMaxResults sets the MaxResults field's value.
  38657. func (s *DescribeEgressOnlyInternetGatewaysInput) SetMaxResults(v int64) *DescribeEgressOnlyInternetGatewaysInput {
  38658. s.MaxResults = &v
  38659. return s
  38660. }
  38661. // SetNextToken sets the NextToken field's value.
  38662. func (s *DescribeEgressOnlyInternetGatewaysInput) SetNextToken(v string) *DescribeEgressOnlyInternetGatewaysInput {
  38663. s.NextToken = &v
  38664. return s
  38665. }
  38666. type DescribeEgressOnlyInternetGatewaysOutput struct {
  38667. _ struct{} `type:"structure"`
  38668. // Information about the egress-only internet gateways.
  38669. EgressOnlyInternetGateways []*EgressOnlyInternetGateway `locationName:"egressOnlyInternetGatewaySet" locationNameList:"item" type:"list"`
  38670. // The token to use to retrieve the next page of results.
  38671. NextToken *string `locationName:"nextToken" type:"string"`
  38672. }
  38673. // String returns the string representation
  38674. func (s DescribeEgressOnlyInternetGatewaysOutput) String() string {
  38675. return awsutil.Prettify(s)
  38676. }
  38677. // GoString returns the string representation
  38678. func (s DescribeEgressOnlyInternetGatewaysOutput) GoString() string {
  38679. return s.String()
  38680. }
  38681. // SetEgressOnlyInternetGateways sets the EgressOnlyInternetGateways field's value.
  38682. func (s *DescribeEgressOnlyInternetGatewaysOutput) SetEgressOnlyInternetGateways(v []*EgressOnlyInternetGateway) *DescribeEgressOnlyInternetGatewaysOutput {
  38683. s.EgressOnlyInternetGateways = v
  38684. return s
  38685. }
  38686. // SetNextToken sets the NextToken field's value.
  38687. func (s *DescribeEgressOnlyInternetGatewaysOutput) SetNextToken(v string) *DescribeEgressOnlyInternetGatewaysOutput {
  38688. s.NextToken = &v
  38689. return s
  38690. }
  38691. type DescribeElasticGpusInput struct {
  38692. _ struct{} `type:"structure"`
  38693. // Checks whether you have the required permissions for the action, without
  38694. // actually making the request, and provides an error response. If you have
  38695. // the required permissions, the error response is DryRunOperation. Otherwise,
  38696. // it is UnauthorizedOperation.
  38697. DryRun *bool `type:"boolean"`
  38698. // One or more Elastic Graphics accelerator IDs.
  38699. ElasticGpuIds []*string `locationName:"ElasticGpuId" locationNameList:"item" type:"list"`
  38700. // One or more filters.
  38701. //
  38702. // * availability-zone - The Availability Zone in which the Elastic Graphics
  38703. // accelerator resides.
  38704. //
  38705. // * elastic-gpu-health - The status of the Elastic Graphics accelerator
  38706. // (OK | IMPAIRED).
  38707. //
  38708. // * elastic-gpu-state - The state of the Elastic Graphics accelerator (ATTACHED).
  38709. //
  38710. // * elastic-gpu-type - The type of Elastic Graphics accelerator; for example,
  38711. // eg1.medium.
  38712. //
  38713. // * instance-id - The ID of the instance to which the Elastic Graphics accelerator
  38714. // is associated.
  38715. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38716. // The maximum number of results to return in a single call. To retrieve the
  38717. // remaining results, make another call with the returned NextToken value. This
  38718. // value can be between 5 and 1000.
  38719. MaxResults *int64 `type:"integer"`
  38720. // The token to request the next page of results.
  38721. NextToken *string `type:"string"`
  38722. }
  38723. // String returns the string representation
  38724. func (s DescribeElasticGpusInput) String() string {
  38725. return awsutil.Prettify(s)
  38726. }
  38727. // GoString returns the string representation
  38728. func (s DescribeElasticGpusInput) GoString() string {
  38729. return s.String()
  38730. }
  38731. // SetDryRun sets the DryRun field's value.
  38732. func (s *DescribeElasticGpusInput) SetDryRun(v bool) *DescribeElasticGpusInput {
  38733. s.DryRun = &v
  38734. return s
  38735. }
  38736. // SetElasticGpuIds sets the ElasticGpuIds field's value.
  38737. func (s *DescribeElasticGpusInput) SetElasticGpuIds(v []*string) *DescribeElasticGpusInput {
  38738. s.ElasticGpuIds = v
  38739. return s
  38740. }
  38741. // SetFilters sets the Filters field's value.
  38742. func (s *DescribeElasticGpusInput) SetFilters(v []*Filter) *DescribeElasticGpusInput {
  38743. s.Filters = v
  38744. return s
  38745. }
  38746. // SetMaxResults sets the MaxResults field's value.
  38747. func (s *DescribeElasticGpusInput) SetMaxResults(v int64) *DescribeElasticGpusInput {
  38748. s.MaxResults = &v
  38749. return s
  38750. }
  38751. // SetNextToken sets the NextToken field's value.
  38752. func (s *DescribeElasticGpusInput) SetNextToken(v string) *DescribeElasticGpusInput {
  38753. s.NextToken = &v
  38754. return s
  38755. }
  38756. type DescribeElasticGpusOutput struct {
  38757. _ struct{} `type:"structure"`
  38758. // Information about the Elastic Graphics accelerators.
  38759. ElasticGpuSet []*ElasticGpus `locationName:"elasticGpuSet" locationNameList:"item" type:"list"`
  38760. // The total number of items to return. If the total number of items available
  38761. // is more than the value specified in max-items then a Next-Token will be provided
  38762. // in the output that you can use to resume pagination.
  38763. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  38764. // The token to use to retrieve the next page of results. This value is null
  38765. // when there are no more results to return.
  38766. NextToken *string `locationName:"nextToken" type:"string"`
  38767. }
  38768. // String returns the string representation
  38769. func (s DescribeElasticGpusOutput) String() string {
  38770. return awsutil.Prettify(s)
  38771. }
  38772. // GoString returns the string representation
  38773. func (s DescribeElasticGpusOutput) GoString() string {
  38774. return s.String()
  38775. }
  38776. // SetElasticGpuSet sets the ElasticGpuSet field's value.
  38777. func (s *DescribeElasticGpusOutput) SetElasticGpuSet(v []*ElasticGpus) *DescribeElasticGpusOutput {
  38778. s.ElasticGpuSet = v
  38779. return s
  38780. }
  38781. // SetMaxResults sets the MaxResults field's value.
  38782. func (s *DescribeElasticGpusOutput) SetMaxResults(v int64) *DescribeElasticGpusOutput {
  38783. s.MaxResults = &v
  38784. return s
  38785. }
  38786. // SetNextToken sets the NextToken field's value.
  38787. func (s *DescribeElasticGpusOutput) SetNextToken(v string) *DescribeElasticGpusOutput {
  38788. s.NextToken = &v
  38789. return s
  38790. }
  38791. // Contains the parameters for DescribeExportTasks.
  38792. type DescribeExportTasksInput struct {
  38793. _ struct{} `type:"structure"`
  38794. // One or more export task IDs.
  38795. ExportTaskIds []*string `locationName:"exportTaskId" locationNameList:"ExportTaskId" type:"list"`
  38796. }
  38797. // String returns the string representation
  38798. func (s DescribeExportTasksInput) String() string {
  38799. return awsutil.Prettify(s)
  38800. }
  38801. // GoString returns the string representation
  38802. func (s DescribeExportTasksInput) GoString() string {
  38803. return s.String()
  38804. }
  38805. // SetExportTaskIds sets the ExportTaskIds field's value.
  38806. func (s *DescribeExportTasksInput) SetExportTaskIds(v []*string) *DescribeExportTasksInput {
  38807. s.ExportTaskIds = v
  38808. return s
  38809. }
  38810. // Contains the output for DescribeExportTasks.
  38811. type DescribeExportTasksOutput struct {
  38812. _ struct{} `type:"structure"`
  38813. // Information about the export tasks.
  38814. ExportTasks []*ExportTask `locationName:"exportTaskSet" locationNameList:"item" type:"list"`
  38815. }
  38816. // String returns the string representation
  38817. func (s DescribeExportTasksOutput) String() string {
  38818. return awsutil.Prettify(s)
  38819. }
  38820. // GoString returns the string representation
  38821. func (s DescribeExportTasksOutput) GoString() string {
  38822. return s.String()
  38823. }
  38824. // SetExportTasks sets the ExportTasks field's value.
  38825. func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExportTasksOutput {
  38826. s.ExportTasks = v
  38827. return s
  38828. }
  38829. // Describes the instances that could not be launched by the fleet.
  38830. type DescribeFleetError struct {
  38831. _ struct{} `type:"structure"`
  38832. // The error code that indicates why the instance could not be launched. For
  38833. // more information about error codes, see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
  38834. ErrorCode *string `locationName:"errorCode" type:"string"`
  38835. // The error message that describes why the instance could not be launched.
  38836. // For more information about error messages, see ee Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html).
  38837. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  38838. // The launch templates and overrides that were used for launching the instances.
  38839. // Any parameters that you specify in the Overrides override the same parameters
  38840. // in the launch template.
  38841. LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"`
  38842. // Indicates if the instance that could not be launched was a Spot Instance
  38843. // or On-Demand Instance.
  38844. Lifecycle *string `locationName:"lifecycle" type:"string" enum:"InstanceLifecycle"`
  38845. }
  38846. // String returns the string representation
  38847. func (s DescribeFleetError) String() string {
  38848. return awsutil.Prettify(s)
  38849. }
  38850. // GoString returns the string representation
  38851. func (s DescribeFleetError) GoString() string {
  38852. return s.String()
  38853. }
  38854. // SetErrorCode sets the ErrorCode field's value.
  38855. func (s *DescribeFleetError) SetErrorCode(v string) *DescribeFleetError {
  38856. s.ErrorCode = &v
  38857. return s
  38858. }
  38859. // SetErrorMessage sets the ErrorMessage field's value.
  38860. func (s *DescribeFleetError) SetErrorMessage(v string) *DescribeFleetError {
  38861. s.ErrorMessage = &v
  38862. return s
  38863. }
  38864. // SetLaunchTemplateAndOverrides sets the LaunchTemplateAndOverrides field's value.
  38865. func (s *DescribeFleetError) SetLaunchTemplateAndOverrides(v *LaunchTemplateAndOverridesResponse) *DescribeFleetError {
  38866. s.LaunchTemplateAndOverrides = v
  38867. return s
  38868. }
  38869. // SetLifecycle sets the Lifecycle field's value.
  38870. func (s *DescribeFleetError) SetLifecycle(v string) *DescribeFleetError {
  38871. s.Lifecycle = &v
  38872. return s
  38873. }
  38874. type DescribeFleetHistoryInput struct {
  38875. _ struct{} `type:"structure"`
  38876. // Checks whether you have the required permissions for the action, without
  38877. // actually making the request, and provides an error response. If you have
  38878. // the required permissions, the error response is DryRunOperation. Otherwise,
  38879. // it is UnauthorizedOperation.
  38880. DryRun *bool `type:"boolean"`
  38881. // The type of events to describe. By default, all events are described.
  38882. EventType *string `type:"string" enum:"FleetEventType"`
  38883. // The ID of the EC2 Fleet.
  38884. //
  38885. // FleetId is a required field
  38886. FleetId *string `type:"string" required:"true"`
  38887. // The maximum number of results to return in a single call. Specify a value
  38888. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  38889. // results, make another call with the returned NextToken value.
  38890. MaxResults *int64 `type:"integer"`
  38891. // The token for the next set of results.
  38892. NextToken *string `type:"string"`
  38893. // The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  38894. //
  38895. // StartTime is a required field
  38896. StartTime *time.Time `type:"timestamp" required:"true"`
  38897. }
  38898. // String returns the string representation
  38899. func (s DescribeFleetHistoryInput) String() string {
  38900. return awsutil.Prettify(s)
  38901. }
  38902. // GoString returns the string representation
  38903. func (s DescribeFleetHistoryInput) GoString() string {
  38904. return s.String()
  38905. }
  38906. // Validate inspects the fields of the type to determine if they are valid.
  38907. func (s *DescribeFleetHistoryInput) Validate() error {
  38908. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetHistoryInput"}
  38909. if s.FleetId == nil {
  38910. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  38911. }
  38912. if s.StartTime == nil {
  38913. invalidParams.Add(request.NewErrParamRequired("StartTime"))
  38914. }
  38915. if invalidParams.Len() > 0 {
  38916. return invalidParams
  38917. }
  38918. return nil
  38919. }
  38920. // SetDryRun sets the DryRun field's value.
  38921. func (s *DescribeFleetHistoryInput) SetDryRun(v bool) *DescribeFleetHistoryInput {
  38922. s.DryRun = &v
  38923. return s
  38924. }
  38925. // SetEventType sets the EventType field's value.
  38926. func (s *DescribeFleetHistoryInput) SetEventType(v string) *DescribeFleetHistoryInput {
  38927. s.EventType = &v
  38928. return s
  38929. }
  38930. // SetFleetId sets the FleetId field's value.
  38931. func (s *DescribeFleetHistoryInput) SetFleetId(v string) *DescribeFleetHistoryInput {
  38932. s.FleetId = &v
  38933. return s
  38934. }
  38935. // SetMaxResults sets the MaxResults field's value.
  38936. func (s *DescribeFleetHistoryInput) SetMaxResults(v int64) *DescribeFleetHistoryInput {
  38937. s.MaxResults = &v
  38938. return s
  38939. }
  38940. // SetNextToken sets the NextToken field's value.
  38941. func (s *DescribeFleetHistoryInput) SetNextToken(v string) *DescribeFleetHistoryInput {
  38942. s.NextToken = &v
  38943. return s
  38944. }
  38945. // SetStartTime sets the StartTime field's value.
  38946. func (s *DescribeFleetHistoryInput) SetStartTime(v time.Time) *DescribeFleetHistoryInput {
  38947. s.StartTime = &v
  38948. return s
  38949. }
  38950. type DescribeFleetHistoryOutput struct {
  38951. _ struct{} `type:"structure"`
  38952. // The ID of the EC Fleet.
  38953. FleetId *string `locationName:"fleetId" type:"string"`
  38954. // Information about the events in the history of the EC2 Fleet.
  38955. HistoryRecords []*HistoryRecordEntry `locationName:"historyRecordSet" locationNameList:"item" type:"list"`
  38956. // The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  38957. // All records up to this time were retrieved.
  38958. //
  38959. // If nextToken indicates that there are more results, this value is not present.
  38960. LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp"`
  38961. // The token for the next set of results.
  38962. NextToken *string `locationName:"nextToken" type:"string"`
  38963. // The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  38964. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  38965. }
  38966. // String returns the string representation
  38967. func (s DescribeFleetHistoryOutput) String() string {
  38968. return awsutil.Prettify(s)
  38969. }
  38970. // GoString returns the string representation
  38971. func (s DescribeFleetHistoryOutput) GoString() string {
  38972. return s.String()
  38973. }
  38974. // SetFleetId sets the FleetId field's value.
  38975. func (s *DescribeFleetHistoryOutput) SetFleetId(v string) *DescribeFleetHistoryOutput {
  38976. s.FleetId = &v
  38977. return s
  38978. }
  38979. // SetHistoryRecords sets the HistoryRecords field's value.
  38980. func (s *DescribeFleetHistoryOutput) SetHistoryRecords(v []*HistoryRecordEntry) *DescribeFleetHistoryOutput {
  38981. s.HistoryRecords = v
  38982. return s
  38983. }
  38984. // SetLastEvaluatedTime sets the LastEvaluatedTime field's value.
  38985. func (s *DescribeFleetHistoryOutput) SetLastEvaluatedTime(v time.Time) *DescribeFleetHistoryOutput {
  38986. s.LastEvaluatedTime = &v
  38987. return s
  38988. }
  38989. // SetNextToken sets the NextToken field's value.
  38990. func (s *DescribeFleetHistoryOutput) SetNextToken(v string) *DescribeFleetHistoryOutput {
  38991. s.NextToken = &v
  38992. return s
  38993. }
  38994. // SetStartTime sets the StartTime field's value.
  38995. func (s *DescribeFleetHistoryOutput) SetStartTime(v time.Time) *DescribeFleetHistoryOutput {
  38996. s.StartTime = &v
  38997. return s
  38998. }
  38999. type DescribeFleetInstancesInput struct {
  39000. _ struct{} `type:"structure"`
  39001. // Checks whether you have the required permissions for the action, without
  39002. // actually making the request, and provides an error response. If you have
  39003. // the required permissions, the error response is DryRunOperation. Otherwise,
  39004. // it is UnauthorizedOperation.
  39005. DryRun *bool `type:"boolean"`
  39006. // One or more filters.
  39007. //
  39008. // * instance-type - The instance type.
  39009. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  39010. // The ID of the EC2 Fleet.
  39011. //
  39012. // FleetId is a required field
  39013. FleetId *string `type:"string" required:"true"`
  39014. // The maximum number of results to return in a single call. Specify a value
  39015. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  39016. // results, make another call with the returned NextToken value.
  39017. MaxResults *int64 `type:"integer"`
  39018. // The token for the next set of results.
  39019. NextToken *string `type:"string"`
  39020. }
  39021. // String returns the string representation
  39022. func (s DescribeFleetInstancesInput) String() string {
  39023. return awsutil.Prettify(s)
  39024. }
  39025. // GoString returns the string representation
  39026. func (s DescribeFleetInstancesInput) GoString() string {
  39027. return s.String()
  39028. }
  39029. // Validate inspects the fields of the type to determine if they are valid.
  39030. func (s *DescribeFleetInstancesInput) Validate() error {
  39031. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetInstancesInput"}
  39032. if s.FleetId == nil {
  39033. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  39034. }
  39035. if invalidParams.Len() > 0 {
  39036. return invalidParams
  39037. }
  39038. return nil
  39039. }
  39040. // SetDryRun sets the DryRun field's value.
  39041. func (s *DescribeFleetInstancesInput) SetDryRun(v bool) *DescribeFleetInstancesInput {
  39042. s.DryRun = &v
  39043. return s
  39044. }
  39045. // SetFilters sets the Filters field's value.
  39046. func (s *DescribeFleetInstancesInput) SetFilters(v []*Filter) *DescribeFleetInstancesInput {
  39047. s.Filters = v
  39048. return s
  39049. }
  39050. // SetFleetId sets the FleetId field's value.
  39051. func (s *DescribeFleetInstancesInput) SetFleetId(v string) *DescribeFleetInstancesInput {
  39052. s.FleetId = &v
  39053. return s
  39054. }
  39055. // SetMaxResults sets the MaxResults field's value.
  39056. func (s *DescribeFleetInstancesInput) SetMaxResults(v int64) *DescribeFleetInstancesInput {
  39057. s.MaxResults = &v
  39058. return s
  39059. }
  39060. // SetNextToken sets the NextToken field's value.
  39061. func (s *DescribeFleetInstancesInput) SetNextToken(v string) *DescribeFleetInstancesInput {
  39062. s.NextToken = &v
  39063. return s
  39064. }
  39065. type DescribeFleetInstancesOutput struct {
  39066. _ struct{} `type:"structure"`
  39067. // The running instances. This list is refreshed periodically and might be out
  39068. // of date.
  39069. ActiveInstances []*ActiveInstance `locationName:"activeInstanceSet" locationNameList:"item" type:"list"`
  39070. // The ID of the EC2 Fleet.
  39071. FleetId *string `locationName:"fleetId" type:"string"`
  39072. // The token for the next set of results.
  39073. NextToken *string `locationName:"nextToken" type:"string"`
  39074. }
  39075. // String returns the string representation
  39076. func (s DescribeFleetInstancesOutput) String() string {
  39077. return awsutil.Prettify(s)
  39078. }
  39079. // GoString returns the string representation
  39080. func (s DescribeFleetInstancesOutput) GoString() string {
  39081. return s.String()
  39082. }
  39083. // SetActiveInstances sets the ActiveInstances field's value.
  39084. func (s *DescribeFleetInstancesOutput) SetActiveInstances(v []*ActiveInstance) *DescribeFleetInstancesOutput {
  39085. s.ActiveInstances = v
  39086. return s
  39087. }
  39088. // SetFleetId sets the FleetId field's value.
  39089. func (s *DescribeFleetInstancesOutput) SetFleetId(v string) *DescribeFleetInstancesOutput {
  39090. s.FleetId = &v
  39091. return s
  39092. }
  39093. // SetNextToken sets the NextToken field's value.
  39094. func (s *DescribeFleetInstancesOutput) SetNextToken(v string) *DescribeFleetInstancesOutput {
  39095. s.NextToken = &v
  39096. return s
  39097. }
  39098. type DescribeFleetsInput struct {
  39099. _ struct{} `type:"structure"`
  39100. // Checks whether you have the required permissions for the action, without
  39101. // actually making the request, and provides an error response. If you have
  39102. // the required permissions, the error response is DryRunOperation. Otherwise,
  39103. // it is UnauthorizedOperation.
  39104. DryRun *bool `type:"boolean"`
  39105. // One or more filters.
  39106. //
  39107. // * activity-status - The progress of the EC2 Fleet ( error | pending-fulfillment
  39108. // | pending-termination | fulfilled).
  39109. //
  39110. // * excess-capacity-termination-policy - Indicates whether to terminate
  39111. // running instances if the target capacity is decreased below the current
  39112. // EC2 Fleet size (true | false).
  39113. //
  39114. // * fleet-state - The state of the EC2 Fleet (submitted | active | deleted
  39115. // | failed | deleted-running | deleted-terminating | modifying).
  39116. //
  39117. // * replace-unhealthy-instances - Indicates whether EC2 Fleet should replace
  39118. // unhealthy instances (true | false).
  39119. //
  39120. // * type - The type of request (instant | request | maintain).
  39121. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  39122. // The ID of the EC2 Fleets.
  39123. FleetIds []*string `locationName:"FleetId" type:"list"`
  39124. // The maximum number of results to return in a single call. Specify a value
  39125. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  39126. // results, make another call with the returned NextToken value.
  39127. MaxResults *int64 `type:"integer"`
  39128. // The token for the next set of results.
  39129. NextToken *string `type:"string"`
  39130. }
  39131. // String returns the string representation
  39132. func (s DescribeFleetsInput) String() string {
  39133. return awsutil.Prettify(s)
  39134. }
  39135. // GoString returns the string representation
  39136. func (s DescribeFleetsInput) GoString() string {
  39137. return s.String()
  39138. }
  39139. // SetDryRun sets the DryRun field's value.
  39140. func (s *DescribeFleetsInput) SetDryRun(v bool) *DescribeFleetsInput {
  39141. s.DryRun = &v
  39142. return s
  39143. }
  39144. // SetFilters sets the Filters field's value.
  39145. func (s *DescribeFleetsInput) SetFilters(v []*Filter) *DescribeFleetsInput {
  39146. s.Filters = v
  39147. return s
  39148. }
  39149. // SetFleetIds sets the FleetIds field's value.
  39150. func (s *DescribeFleetsInput) SetFleetIds(v []*string) *DescribeFleetsInput {
  39151. s.FleetIds = v
  39152. return s
  39153. }
  39154. // SetMaxResults sets the MaxResults field's value.
  39155. func (s *DescribeFleetsInput) SetMaxResults(v int64) *DescribeFleetsInput {
  39156. s.MaxResults = &v
  39157. return s
  39158. }
  39159. // SetNextToken sets the NextToken field's value.
  39160. func (s *DescribeFleetsInput) SetNextToken(v string) *DescribeFleetsInput {
  39161. s.NextToken = &v
  39162. return s
  39163. }
  39164. // Describes the instances that were launched by the fleet.
  39165. type DescribeFleetsInstances struct {
  39166. _ struct{} `type:"structure"`
  39167. // The IDs of the instances.
  39168. InstanceIds []*string `locationName:"instanceIds" locationNameList:"item" type:"list"`
  39169. // The instance type.
  39170. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  39171. // The launch templates and overrides that were used for launching the instances.
  39172. // Any parameters that you specify in the Overrides override the same parameters
  39173. // in the launch template.
  39174. LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"`
  39175. // Indicates if the instance that was launched is a Spot Instance or On-Demand
  39176. // Instance.
  39177. Lifecycle *string `locationName:"lifecycle" type:"string" enum:"InstanceLifecycle"`
  39178. // The value is Windows for Windows instances; otherwise blank.
  39179. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  39180. }
  39181. // String returns the string representation
  39182. func (s DescribeFleetsInstances) String() string {
  39183. return awsutil.Prettify(s)
  39184. }
  39185. // GoString returns the string representation
  39186. func (s DescribeFleetsInstances) GoString() string {
  39187. return s.String()
  39188. }
  39189. // SetInstanceIds sets the InstanceIds field's value.
  39190. func (s *DescribeFleetsInstances) SetInstanceIds(v []*string) *DescribeFleetsInstances {
  39191. s.InstanceIds = v
  39192. return s
  39193. }
  39194. // SetInstanceType sets the InstanceType field's value.
  39195. func (s *DescribeFleetsInstances) SetInstanceType(v string) *DescribeFleetsInstances {
  39196. s.InstanceType = &v
  39197. return s
  39198. }
  39199. // SetLaunchTemplateAndOverrides sets the LaunchTemplateAndOverrides field's value.
  39200. func (s *DescribeFleetsInstances) SetLaunchTemplateAndOverrides(v *LaunchTemplateAndOverridesResponse) *DescribeFleetsInstances {
  39201. s.LaunchTemplateAndOverrides = v
  39202. return s
  39203. }
  39204. // SetLifecycle sets the Lifecycle field's value.
  39205. func (s *DescribeFleetsInstances) SetLifecycle(v string) *DescribeFleetsInstances {
  39206. s.Lifecycle = &v
  39207. return s
  39208. }
  39209. // SetPlatform sets the Platform field's value.
  39210. func (s *DescribeFleetsInstances) SetPlatform(v string) *DescribeFleetsInstances {
  39211. s.Platform = &v
  39212. return s
  39213. }
  39214. type DescribeFleetsOutput struct {
  39215. _ struct{} `type:"structure"`
  39216. // Information about the EC2 Fleets.
  39217. Fleets []*FleetData `locationName:"fleetSet" locationNameList:"item" type:"list"`
  39218. // The token for the next set of results.
  39219. NextToken *string `locationName:"nextToken" type:"string"`
  39220. }
  39221. // String returns the string representation
  39222. func (s DescribeFleetsOutput) String() string {
  39223. return awsutil.Prettify(s)
  39224. }
  39225. // GoString returns the string representation
  39226. func (s DescribeFleetsOutput) GoString() string {
  39227. return s.String()
  39228. }
  39229. // SetFleets sets the Fleets field's value.
  39230. func (s *DescribeFleetsOutput) SetFleets(v []*FleetData) *DescribeFleetsOutput {
  39231. s.Fleets = v
  39232. return s
  39233. }
  39234. // SetNextToken sets the NextToken field's value.
  39235. func (s *DescribeFleetsOutput) SetNextToken(v string) *DescribeFleetsOutput {
  39236. s.NextToken = &v
  39237. return s
  39238. }
  39239. type DescribeFlowLogsInput struct {
  39240. _ struct{} `type:"structure"`
  39241. // Checks whether you have the required permissions for the action, without
  39242. // actually making the request, and provides an error response. If you have
  39243. // the required permissions, the error response is DryRunOperation. Otherwise,
  39244. // it is UnauthorizedOperation.
  39245. DryRun *bool `type:"boolean"`
  39246. // One or more filters.
  39247. //
  39248. // * deliver-log-status - The status of the logs delivery (SUCCESS | FAILED).
  39249. //
  39250. // * log-destination-type - The type of destination to which the flow log
  39251. // publishes data. Possible destination types include cloud-watch-logs and
  39252. // S3.
  39253. //
  39254. // * flow-log-id - The ID of the flow log.
  39255. //
  39256. // * log-group-name - The name of the log group.
  39257. //
  39258. // * resource-id - The ID of the VPC, subnet, or network interface.
  39259. //
  39260. // * traffic-type - The type of traffic (ACCEPT | REJECT | ALL).
  39261. Filter []*Filter `locationNameList:"Filter" type:"list"`
  39262. // One or more flow log IDs.
  39263. FlowLogIds []*string `locationName:"FlowLogId" locationNameList:"item" type:"list"`
  39264. // The maximum number of results to return for the request in a single page.
  39265. // The remaining results can be seen by sending another request with the returned
  39266. // NextToken value. This value can be between 5 and 1000. If MaxResults is given
  39267. // a value larger than 1000, only 1000 results are returned. You cannot specify
  39268. // this parameter and the flow log IDs parameter in the same request.
  39269. MaxResults *int64 `type:"integer"`
  39270. // The token to retrieve the next page of results.
  39271. NextToken *string `type:"string"`
  39272. }
  39273. // String returns the string representation
  39274. func (s DescribeFlowLogsInput) String() string {
  39275. return awsutil.Prettify(s)
  39276. }
  39277. // GoString returns the string representation
  39278. func (s DescribeFlowLogsInput) GoString() string {
  39279. return s.String()
  39280. }
  39281. // SetDryRun sets the DryRun field's value.
  39282. func (s *DescribeFlowLogsInput) SetDryRun(v bool) *DescribeFlowLogsInput {
  39283. s.DryRun = &v
  39284. return s
  39285. }
  39286. // SetFilter sets the Filter field's value.
  39287. func (s *DescribeFlowLogsInput) SetFilter(v []*Filter) *DescribeFlowLogsInput {
  39288. s.Filter = v
  39289. return s
  39290. }
  39291. // SetFlowLogIds sets the FlowLogIds field's value.
  39292. func (s *DescribeFlowLogsInput) SetFlowLogIds(v []*string) *DescribeFlowLogsInput {
  39293. s.FlowLogIds = v
  39294. return s
  39295. }
  39296. // SetMaxResults sets the MaxResults field's value.
  39297. func (s *DescribeFlowLogsInput) SetMaxResults(v int64) *DescribeFlowLogsInput {
  39298. s.MaxResults = &v
  39299. return s
  39300. }
  39301. // SetNextToken sets the NextToken field's value.
  39302. func (s *DescribeFlowLogsInput) SetNextToken(v string) *DescribeFlowLogsInput {
  39303. s.NextToken = &v
  39304. return s
  39305. }
  39306. type DescribeFlowLogsOutput struct {
  39307. _ struct{} `type:"structure"`
  39308. // Information about the flow logs.
  39309. FlowLogs []*FlowLog `locationName:"flowLogSet" locationNameList:"item" type:"list"`
  39310. // The token to use to retrieve the next page of results. This value is null
  39311. // when there are no more results to return.
  39312. NextToken *string `locationName:"nextToken" type:"string"`
  39313. }
  39314. // String returns the string representation
  39315. func (s DescribeFlowLogsOutput) String() string {
  39316. return awsutil.Prettify(s)
  39317. }
  39318. // GoString returns the string representation
  39319. func (s DescribeFlowLogsOutput) GoString() string {
  39320. return s.String()
  39321. }
  39322. // SetFlowLogs sets the FlowLogs field's value.
  39323. func (s *DescribeFlowLogsOutput) SetFlowLogs(v []*FlowLog) *DescribeFlowLogsOutput {
  39324. s.FlowLogs = v
  39325. return s
  39326. }
  39327. // SetNextToken sets the NextToken field's value.
  39328. func (s *DescribeFlowLogsOutput) SetNextToken(v string) *DescribeFlowLogsOutput {
  39329. s.NextToken = &v
  39330. return s
  39331. }
  39332. type DescribeFpgaImageAttributeInput struct {
  39333. _ struct{} `type:"structure"`
  39334. // The AFI attribute.
  39335. //
  39336. // Attribute is a required field
  39337. Attribute *string `type:"string" required:"true" enum:"FpgaImageAttributeName"`
  39338. // Checks whether you have the required permissions for the action, without
  39339. // actually making the request, and provides an error response. If you have
  39340. // the required permissions, the error response is DryRunOperation. Otherwise,
  39341. // it is UnauthorizedOperation.
  39342. DryRun *bool `type:"boolean"`
  39343. // The ID of the AFI.
  39344. //
  39345. // FpgaImageId is a required field
  39346. FpgaImageId *string `type:"string" required:"true"`
  39347. }
  39348. // String returns the string representation
  39349. func (s DescribeFpgaImageAttributeInput) String() string {
  39350. return awsutil.Prettify(s)
  39351. }
  39352. // GoString returns the string representation
  39353. func (s DescribeFpgaImageAttributeInput) GoString() string {
  39354. return s.String()
  39355. }
  39356. // Validate inspects the fields of the type to determine if they are valid.
  39357. func (s *DescribeFpgaImageAttributeInput) Validate() error {
  39358. invalidParams := request.ErrInvalidParams{Context: "DescribeFpgaImageAttributeInput"}
  39359. if s.Attribute == nil {
  39360. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  39361. }
  39362. if s.FpgaImageId == nil {
  39363. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  39364. }
  39365. if invalidParams.Len() > 0 {
  39366. return invalidParams
  39367. }
  39368. return nil
  39369. }
  39370. // SetAttribute sets the Attribute field's value.
  39371. func (s *DescribeFpgaImageAttributeInput) SetAttribute(v string) *DescribeFpgaImageAttributeInput {
  39372. s.Attribute = &v
  39373. return s
  39374. }
  39375. // SetDryRun sets the DryRun field's value.
  39376. func (s *DescribeFpgaImageAttributeInput) SetDryRun(v bool) *DescribeFpgaImageAttributeInput {
  39377. s.DryRun = &v
  39378. return s
  39379. }
  39380. // SetFpgaImageId sets the FpgaImageId field's value.
  39381. func (s *DescribeFpgaImageAttributeInput) SetFpgaImageId(v string) *DescribeFpgaImageAttributeInput {
  39382. s.FpgaImageId = &v
  39383. return s
  39384. }
  39385. type DescribeFpgaImageAttributeOutput struct {
  39386. _ struct{} `type:"structure"`
  39387. // Information about the attribute.
  39388. FpgaImageAttribute *FpgaImageAttribute `locationName:"fpgaImageAttribute" type:"structure"`
  39389. }
  39390. // String returns the string representation
  39391. func (s DescribeFpgaImageAttributeOutput) String() string {
  39392. return awsutil.Prettify(s)
  39393. }
  39394. // GoString returns the string representation
  39395. func (s DescribeFpgaImageAttributeOutput) GoString() string {
  39396. return s.String()
  39397. }
  39398. // SetFpgaImageAttribute sets the FpgaImageAttribute field's value.
  39399. func (s *DescribeFpgaImageAttributeOutput) SetFpgaImageAttribute(v *FpgaImageAttribute) *DescribeFpgaImageAttributeOutput {
  39400. s.FpgaImageAttribute = v
  39401. return s
  39402. }
  39403. type DescribeFpgaImagesInput struct {
  39404. _ struct{} `type:"structure"`
  39405. // Checks whether you have the required permissions for the action, without
  39406. // actually making the request, and provides an error response. If you have
  39407. // the required permissions, the error response is DryRunOperation. Otherwise,
  39408. // it is UnauthorizedOperation.
  39409. DryRun *bool `type:"boolean"`
  39410. // One or more filters.
  39411. //
  39412. // * create-time - The creation time of the AFI.
  39413. //
  39414. // * fpga-image-id - The FPGA image identifier (AFI ID).
  39415. //
  39416. // * fpga-image-global-id - The global FPGA image identifier (AGFI ID).
  39417. //
  39418. // * name - The name of the AFI.
  39419. //
  39420. // * owner-id - The AWS account ID of the AFI owner.
  39421. //
  39422. // * product-code - The product code.
  39423. //
  39424. // * shell-version - The version of the AWS Shell that was used to create
  39425. // the bitstream.
  39426. //
  39427. // * state - The state of the AFI (pending | failed | available | unavailable).
  39428. //
  39429. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  39430. // Use the tag key in the filter name and the tag value as the filter value.
  39431. // For example, to find all resources that have a tag with the key Owner
  39432. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  39433. // the filter value.
  39434. //
  39435. // * tag-key - The key of a tag assigned to the resource. Use this filter
  39436. // to find all resources assigned a tag with a specific key, regardless of
  39437. // the tag value.
  39438. //
  39439. // * update-time - The time of the most recent update.
  39440. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  39441. // One or more AFI IDs.
  39442. FpgaImageIds []*string `locationName:"FpgaImageId" locationNameList:"item" type:"list"`
  39443. // The maximum number of results to return in a single call.
  39444. MaxResults *int64 `min:"5" type:"integer"`
  39445. // The token to retrieve the next page of results.
  39446. NextToken *string `min:"1" type:"string"`
  39447. // Filters the AFI by owner. Specify an AWS account ID, self (owner is the sender
  39448. // of the request), or an AWS owner alias (valid values are amazon | aws-marketplace).
  39449. Owners []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  39450. }
  39451. // String returns the string representation
  39452. func (s DescribeFpgaImagesInput) String() string {
  39453. return awsutil.Prettify(s)
  39454. }
  39455. // GoString returns the string representation
  39456. func (s DescribeFpgaImagesInput) GoString() string {
  39457. return s.String()
  39458. }
  39459. // Validate inspects the fields of the type to determine if they are valid.
  39460. func (s *DescribeFpgaImagesInput) Validate() error {
  39461. invalidParams := request.ErrInvalidParams{Context: "DescribeFpgaImagesInput"}
  39462. if s.MaxResults != nil && *s.MaxResults < 5 {
  39463. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  39464. }
  39465. if s.NextToken != nil && len(*s.NextToken) < 1 {
  39466. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  39467. }
  39468. if invalidParams.Len() > 0 {
  39469. return invalidParams
  39470. }
  39471. return nil
  39472. }
  39473. // SetDryRun sets the DryRun field's value.
  39474. func (s *DescribeFpgaImagesInput) SetDryRun(v bool) *DescribeFpgaImagesInput {
  39475. s.DryRun = &v
  39476. return s
  39477. }
  39478. // SetFilters sets the Filters field's value.
  39479. func (s *DescribeFpgaImagesInput) SetFilters(v []*Filter) *DescribeFpgaImagesInput {
  39480. s.Filters = v
  39481. return s
  39482. }
  39483. // SetFpgaImageIds sets the FpgaImageIds field's value.
  39484. func (s *DescribeFpgaImagesInput) SetFpgaImageIds(v []*string) *DescribeFpgaImagesInput {
  39485. s.FpgaImageIds = v
  39486. return s
  39487. }
  39488. // SetMaxResults sets the MaxResults field's value.
  39489. func (s *DescribeFpgaImagesInput) SetMaxResults(v int64) *DescribeFpgaImagesInput {
  39490. s.MaxResults = &v
  39491. return s
  39492. }
  39493. // SetNextToken sets the NextToken field's value.
  39494. func (s *DescribeFpgaImagesInput) SetNextToken(v string) *DescribeFpgaImagesInput {
  39495. s.NextToken = &v
  39496. return s
  39497. }
  39498. // SetOwners sets the Owners field's value.
  39499. func (s *DescribeFpgaImagesInput) SetOwners(v []*string) *DescribeFpgaImagesInput {
  39500. s.Owners = v
  39501. return s
  39502. }
  39503. type DescribeFpgaImagesOutput struct {
  39504. _ struct{} `type:"structure"`
  39505. // Information about one or more FPGA images.
  39506. FpgaImages []*FpgaImage `locationName:"fpgaImageSet" locationNameList:"item" type:"list"`
  39507. // The token to use to retrieve the next page of results. This value is null
  39508. // when there are no more results to return.
  39509. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  39510. }
  39511. // String returns the string representation
  39512. func (s DescribeFpgaImagesOutput) String() string {
  39513. return awsutil.Prettify(s)
  39514. }
  39515. // GoString returns the string representation
  39516. func (s DescribeFpgaImagesOutput) GoString() string {
  39517. return s.String()
  39518. }
  39519. // SetFpgaImages sets the FpgaImages field's value.
  39520. func (s *DescribeFpgaImagesOutput) SetFpgaImages(v []*FpgaImage) *DescribeFpgaImagesOutput {
  39521. s.FpgaImages = v
  39522. return s
  39523. }
  39524. // SetNextToken sets the NextToken field's value.
  39525. func (s *DescribeFpgaImagesOutput) SetNextToken(v string) *DescribeFpgaImagesOutput {
  39526. s.NextToken = &v
  39527. return s
  39528. }
  39529. type DescribeHostReservationOfferingsInput struct {
  39530. _ struct{} `type:"structure"`
  39531. // One or more filters.
  39532. //
  39533. // * instance-family - The instance family of the offering (for example,
  39534. // m4).
  39535. //
  39536. // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).
  39537. Filter []*Filter `locationNameList:"Filter" type:"list"`
  39538. // This is the maximum duration of the reservation to purchase, specified in
  39539. // seconds. Reservations are available in one-year and three-year terms. The
  39540. // number of seconds specified must be the number of seconds in a year (365x24x60x60)
  39541. // times one of the supported durations (1 or 3). For example, specify 94608000
  39542. // for three years.
  39543. MaxDuration *int64 `type:"integer"`
  39544. // The maximum number of results to return for the request in a single page.
  39545. // The remaining results can be seen by sending another request with the returned
  39546. // nextToken value. This value can be between 5 and 500. If maxResults is given
  39547. // a larger value than 500, you receive an error.
  39548. MaxResults *int64 `type:"integer"`
  39549. // This is the minimum duration of the reservation you'd like to purchase, specified
  39550. // in seconds. Reservations are available in one-year and three-year terms.
  39551. // The number of seconds specified must be the number of seconds in a year (365x24x60x60)
  39552. // times one of the supported durations (1 or 3). For example, specify 31536000
  39553. // for one year.
  39554. MinDuration *int64 `type:"integer"`
  39555. // The token to use to retrieve the next page of results.
  39556. NextToken *string `type:"string"`
  39557. // The ID of the reservation offering.
  39558. OfferingId *string `type:"string"`
  39559. }
  39560. // String returns the string representation
  39561. func (s DescribeHostReservationOfferingsInput) String() string {
  39562. return awsutil.Prettify(s)
  39563. }
  39564. // GoString returns the string representation
  39565. func (s DescribeHostReservationOfferingsInput) GoString() string {
  39566. return s.String()
  39567. }
  39568. // SetFilter sets the Filter field's value.
  39569. func (s *DescribeHostReservationOfferingsInput) SetFilter(v []*Filter) *DescribeHostReservationOfferingsInput {
  39570. s.Filter = v
  39571. return s
  39572. }
  39573. // SetMaxDuration sets the MaxDuration field's value.
  39574. func (s *DescribeHostReservationOfferingsInput) SetMaxDuration(v int64) *DescribeHostReservationOfferingsInput {
  39575. s.MaxDuration = &v
  39576. return s
  39577. }
  39578. // SetMaxResults sets the MaxResults field's value.
  39579. func (s *DescribeHostReservationOfferingsInput) SetMaxResults(v int64) *DescribeHostReservationOfferingsInput {
  39580. s.MaxResults = &v
  39581. return s
  39582. }
  39583. // SetMinDuration sets the MinDuration field's value.
  39584. func (s *DescribeHostReservationOfferingsInput) SetMinDuration(v int64) *DescribeHostReservationOfferingsInput {
  39585. s.MinDuration = &v
  39586. return s
  39587. }
  39588. // SetNextToken sets the NextToken field's value.
  39589. func (s *DescribeHostReservationOfferingsInput) SetNextToken(v string) *DescribeHostReservationOfferingsInput {
  39590. s.NextToken = &v
  39591. return s
  39592. }
  39593. // SetOfferingId sets the OfferingId field's value.
  39594. func (s *DescribeHostReservationOfferingsInput) SetOfferingId(v string) *DescribeHostReservationOfferingsInput {
  39595. s.OfferingId = &v
  39596. return s
  39597. }
  39598. type DescribeHostReservationOfferingsOutput struct {
  39599. _ struct{} `type:"structure"`
  39600. // The token to use to retrieve the next page of results. This value is null
  39601. // when there are no more results to return.
  39602. NextToken *string `locationName:"nextToken" type:"string"`
  39603. // Information about the offerings.
  39604. OfferingSet []*HostOffering `locationName:"offeringSet" locationNameList:"item" type:"list"`
  39605. }
  39606. // String returns the string representation
  39607. func (s DescribeHostReservationOfferingsOutput) String() string {
  39608. return awsutil.Prettify(s)
  39609. }
  39610. // GoString returns the string representation
  39611. func (s DescribeHostReservationOfferingsOutput) GoString() string {
  39612. return s.String()
  39613. }
  39614. // SetNextToken sets the NextToken field's value.
  39615. func (s *DescribeHostReservationOfferingsOutput) SetNextToken(v string) *DescribeHostReservationOfferingsOutput {
  39616. s.NextToken = &v
  39617. return s
  39618. }
  39619. // SetOfferingSet sets the OfferingSet field's value.
  39620. func (s *DescribeHostReservationOfferingsOutput) SetOfferingSet(v []*HostOffering) *DescribeHostReservationOfferingsOutput {
  39621. s.OfferingSet = v
  39622. return s
  39623. }
  39624. type DescribeHostReservationsInput struct {
  39625. _ struct{} `type:"structure"`
  39626. // One or more filters.
  39627. //
  39628. // * instance-family - The instance family (for example, m4).
  39629. //
  39630. // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).
  39631. //
  39632. // * state - The state of the reservation (payment-pending | payment-failed
  39633. // | active | retired).
  39634. Filter []*Filter `locationNameList:"Filter" type:"list"`
  39635. // One or more host reservation IDs.
  39636. HostReservationIdSet []*string `locationNameList:"item" type:"list"`
  39637. // The maximum number of results to return for the request in a single page.
  39638. // The remaining results can be seen by sending another request with the returned
  39639. // nextToken value. This value can be between 5 and 500. If maxResults is given
  39640. // a larger value than 500, you receive an error.
  39641. MaxResults *int64 `type:"integer"`
  39642. // The token to use to retrieve the next page of results.
  39643. NextToken *string `type:"string"`
  39644. }
  39645. // String returns the string representation
  39646. func (s DescribeHostReservationsInput) String() string {
  39647. return awsutil.Prettify(s)
  39648. }
  39649. // GoString returns the string representation
  39650. func (s DescribeHostReservationsInput) GoString() string {
  39651. return s.String()
  39652. }
  39653. // SetFilter sets the Filter field's value.
  39654. func (s *DescribeHostReservationsInput) SetFilter(v []*Filter) *DescribeHostReservationsInput {
  39655. s.Filter = v
  39656. return s
  39657. }
  39658. // SetHostReservationIdSet sets the HostReservationIdSet field's value.
  39659. func (s *DescribeHostReservationsInput) SetHostReservationIdSet(v []*string) *DescribeHostReservationsInput {
  39660. s.HostReservationIdSet = v
  39661. return s
  39662. }
  39663. // SetMaxResults sets the MaxResults field's value.
  39664. func (s *DescribeHostReservationsInput) SetMaxResults(v int64) *DescribeHostReservationsInput {
  39665. s.MaxResults = &v
  39666. return s
  39667. }
  39668. // SetNextToken sets the NextToken field's value.
  39669. func (s *DescribeHostReservationsInput) SetNextToken(v string) *DescribeHostReservationsInput {
  39670. s.NextToken = &v
  39671. return s
  39672. }
  39673. type DescribeHostReservationsOutput struct {
  39674. _ struct{} `type:"structure"`
  39675. // Details about the reservation's configuration.
  39676. HostReservationSet []*HostReservation `locationName:"hostReservationSet" locationNameList:"item" type:"list"`
  39677. // The token to use to retrieve the next page of results. This value is null
  39678. // when there are no more results to return.
  39679. NextToken *string `locationName:"nextToken" type:"string"`
  39680. }
  39681. // String returns the string representation
  39682. func (s DescribeHostReservationsOutput) String() string {
  39683. return awsutil.Prettify(s)
  39684. }
  39685. // GoString returns the string representation
  39686. func (s DescribeHostReservationsOutput) GoString() string {
  39687. return s.String()
  39688. }
  39689. // SetHostReservationSet sets the HostReservationSet field's value.
  39690. func (s *DescribeHostReservationsOutput) SetHostReservationSet(v []*HostReservation) *DescribeHostReservationsOutput {
  39691. s.HostReservationSet = v
  39692. return s
  39693. }
  39694. // SetNextToken sets the NextToken field's value.
  39695. func (s *DescribeHostReservationsOutput) SetNextToken(v string) *DescribeHostReservationsOutput {
  39696. s.NextToken = &v
  39697. return s
  39698. }
  39699. type DescribeHostsInput struct {
  39700. _ struct{} `type:"structure"`
  39701. // One or more filters.
  39702. //
  39703. // * auto-placement - Whether auto-placement is enabled or disabled (on |
  39704. // off).
  39705. //
  39706. // * availability-zone - The Availability Zone of the host.
  39707. //
  39708. // * client-token - The idempotency token that you provided when you allocated
  39709. // the host.
  39710. //
  39711. // * host-reservation-id - The ID of the reservation assigned to this host.
  39712. //
  39713. // * instance-type - The instance type size that the Dedicated Host is configured
  39714. // to support.
  39715. //
  39716. // * state - The allocation state of the Dedicated Host (available | under-assessment
  39717. // | permanent-failure | released | released-permanent-failure).
  39718. //
  39719. // * tag-key - The key of a tag assigned to the resource. Use this filter
  39720. // to find all resources assigned a tag with a specific key, regardless of
  39721. // the tag value.
  39722. Filter []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  39723. // The IDs of the Dedicated Hosts. The IDs are used for targeted instance launches.
  39724. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list"`
  39725. // The maximum number of results to return for the request in a single page.
  39726. // The remaining results can be seen by sending another request with the returned
  39727. // nextToken value. This value can be between 5 and 500. If maxResults is given
  39728. // a larger value than 500, you receive an error. You cannot specify this parameter
  39729. // and the host IDs parameter in the same request.
  39730. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  39731. // The token to retrieve the next page of results.
  39732. NextToken *string `locationName:"nextToken" type:"string"`
  39733. }
  39734. // String returns the string representation
  39735. func (s DescribeHostsInput) String() string {
  39736. return awsutil.Prettify(s)
  39737. }
  39738. // GoString returns the string representation
  39739. func (s DescribeHostsInput) GoString() string {
  39740. return s.String()
  39741. }
  39742. // SetFilter sets the Filter field's value.
  39743. func (s *DescribeHostsInput) SetFilter(v []*Filter) *DescribeHostsInput {
  39744. s.Filter = v
  39745. return s
  39746. }
  39747. // SetHostIds sets the HostIds field's value.
  39748. func (s *DescribeHostsInput) SetHostIds(v []*string) *DescribeHostsInput {
  39749. s.HostIds = v
  39750. return s
  39751. }
  39752. // SetMaxResults sets the MaxResults field's value.
  39753. func (s *DescribeHostsInput) SetMaxResults(v int64) *DescribeHostsInput {
  39754. s.MaxResults = &v
  39755. return s
  39756. }
  39757. // SetNextToken sets the NextToken field's value.
  39758. func (s *DescribeHostsInput) SetNextToken(v string) *DescribeHostsInput {
  39759. s.NextToken = &v
  39760. return s
  39761. }
  39762. type DescribeHostsOutput struct {
  39763. _ struct{} `type:"structure"`
  39764. // Information about the Dedicated Hosts.
  39765. Hosts []*Host `locationName:"hostSet" locationNameList:"item" type:"list"`
  39766. // The token to use to retrieve the next page of results. This value is null
  39767. // when there are no more results to return.
  39768. NextToken *string `locationName:"nextToken" type:"string"`
  39769. }
  39770. // String returns the string representation
  39771. func (s DescribeHostsOutput) String() string {
  39772. return awsutil.Prettify(s)
  39773. }
  39774. // GoString returns the string representation
  39775. func (s DescribeHostsOutput) GoString() string {
  39776. return s.String()
  39777. }
  39778. // SetHosts sets the Hosts field's value.
  39779. func (s *DescribeHostsOutput) SetHosts(v []*Host) *DescribeHostsOutput {
  39780. s.Hosts = v
  39781. return s
  39782. }
  39783. // SetNextToken sets the NextToken field's value.
  39784. func (s *DescribeHostsOutput) SetNextToken(v string) *DescribeHostsOutput {
  39785. s.NextToken = &v
  39786. return s
  39787. }
  39788. type DescribeIamInstanceProfileAssociationsInput struct {
  39789. _ struct{} `type:"structure"`
  39790. // One or more IAM instance profile associations.
  39791. AssociationIds []*string `locationName:"AssociationId" locationNameList:"AssociationId" type:"list"`
  39792. // One or more filters.
  39793. //
  39794. // * instance-id - The ID of the instance.
  39795. //
  39796. // * state - The state of the association (associating | associated | disassociating
  39797. // | disassociated).
  39798. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  39799. // The maximum number of results to return in a single call. To retrieve the
  39800. // remaining results, make another call with the returned NextToken value.
  39801. MaxResults *int64 `min:"5" type:"integer"`
  39802. // The token to request the next page of results.
  39803. NextToken *string `min:"1" type:"string"`
  39804. }
  39805. // String returns the string representation
  39806. func (s DescribeIamInstanceProfileAssociationsInput) String() string {
  39807. return awsutil.Prettify(s)
  39808. }
  39809. // GoString returns the string representation
  39810. func (s DescribeIamInstanceProfileAssociationsInput) GoString() string {
  39811. return s.String()
  39812. }
  39813. // Validate inspects the fields of the type to determine if they are valid.
  39814. func (s *DescribeIamInstanceProfileAssociationsInput) Validate() error {
  39815. invalidParams := request.ErrInvalidParams{Context: "DescribeIamInstanceProfileAssociationsInput"}
  39816. if s.MaxResults != nil && *s.MaxResults < 5 {
  39817. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  39818. }
  39819. if s.NextToken != nil && len(*s.NextToken) < 1 {
  39820. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  39821. }
  39822. if invalidParams.Len() > 0 {
  39823. return invalidParams
  39824. }
  39825. return nil
  39826. }
  39827. // SetAssociationIds sets the AssociationIds field's value.
  39828. func (s *DescribeIamInstanceProfileAssociationsInput) SetAssociationIds(v []*string) *DescribeIamInstanceProfileAssociationsInput {
  39829. s.AssociationIds = v
  39830. return s
  39831. }
  39832. // SetFilters sets the Filters field's value.
  39833. func (s *DescribeIamInstanceProfileAssociationsInput) SetFilters(v []*Filter) *DescribeIamInstanceProfileAssociationsInput {
  39834. s.Filters = v
  39835. return s
  39836. }
  39837. // SetMaxResults sets the MaxResults field's value.
  39838. func (s *DescribeIamInstanceProfileAssociationsInput) SetMaxResults(v int64) *DescribeIamInstanceProfileAssociationsInput {
  39839. s.MaxResults = &v
  39840. return s
  39841. }
  39842. // SetNextToken sets the NextToken field's value.
  39843. func (s *DescribeIamInstanceProfileAssociationsInput) SetNextToken(v string) *DescribeIamInstanceProfileAssociationsInput {
  39844. s.NextToken = &v
  39845. return s
  39846. }
  39847. type DescribeIamInstanceProfileAssociationsOutput struct {
  39848. _ struct{} `type:"structure"`
  39849. // Information about one or more IAM instance profile associations.
  39850. IamInstanceProfileAssociations []*IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociationSet" locationNameList:"item" type:"list"`
  39851. // The token to use to retrieve the next page of results. This value is null
  39852. // when there are no more results to return.
  39853. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  39854. }
  39855. // String returns the string representation
  39856. func (s DescribeIamInstanceProfileAssociationsOutput) String() string {
  39857. return awsutil.Prettify(s)
  39858. }
  39859. // GoString returns the string representation
  39860. func (s DescribeIamInstanceProfileAssociationsOutput) GoString() string {
  39861. return s.String()
  39862. }
  39863. // SetIamInstanceProfileAssociations sets the IamInstanceProfileAssociations field's value.
  39864. func (s *DescribeIamInstanceProfileAssociationsOutput) SetIamInstanceProfileAssociations(v []*IamInstanceProfileAssociation) *DescribeIamInstanceProfileAssociationsOutput {
  39865. s.IamInstanceProfileAssociations = v
  39866. return s
  39867. }
  39868. // SetNextToken sets the NextToken field's value.
  39869. func (s *DescribeIamInstanceProfileAssociationsOutput) SetNextToken(v string) *DescribeIamInstanceProfileAssociationsOutput {
  39870. s.NextToken = &v
  39871. return s
  39872. }
  39873. type DescribeIdFormatInput struct {
  39874. _ struct{} `type:"structure"`
  39875. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  39876. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  39877. // | image | import-task | instance | internet-gateway | network-acl | network-acl-association
  39878. // | network-interface | network-interface-attachment | prefix-list | reservation
  39879. // | route-table | route-table-association | security-group | snapshot | subnet
  39880. // | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  39881. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway
  39882. Resource *string `type:"string"`
  39883. }
  39884. // String returns the string representation
  39885. func (s DescribeIdFormatInput) String() string {
  39886. return awsutil.Prettify(s)
  39887. }
  39888. // GoString returns the string representation
  39889. func (s DescribeIdFormatInput) GoString() string {
  39890. return s.String()
  39891. }
  39892. // SetResource sets the Resource field's value.
  39893. func (s *DescribeIdFormatInput) SetResource(v string) *DescribeIdFormatInput {
  39894. s.Resource = &v
  39895. return s
  39896. }
  39897. type DescribeIdFormatOutput struct {
  39898. _ struct{} `type:"structure"`
  39899. // Information about the ID format for the resource.
  39900. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  39901. }
  39902. // String returns the string representation
  39903. func (s DescribeIdFormatOutput) String() string {
  39904. return awsutil.Prettify(s)
  39905. }
  39906. // GoString returns the string representation
  39907. func (s DescribeIdFormatOutput) GoString() string {
  39908. return s.String()
  39909. }
  39910. // SetStatuses sets the Statuses field's value.
  39911. func (s *DescribeIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdFormatOutput {
  39912. s.Statuses = v
  39913. return s
  39914. }
  39915. type DescribeIdentityIdFormatInput struct {
  39916. _ struct{} `type:"structure"`
  39917. // The ARN of the principal, which can be an IAM role, IAM user, or the root
  39918. // user.
  39919. //
  39920. // PrincipalArn is a required field
  39921. PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
  39922. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  39923. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  39924. // | image | import-task | instance | internet-gateway | network-acl | network-acl-association
  39925. // | network-interface | network-interface-attachment | prefix-list | reservation
  39926. // | route-table | route-table-association | security-group | snapshot | subnet
  39927. // | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  39928. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway
  39929. Resource *string `locationName:"resource" type:"string"`
  39930. }
  39931. // String returns the string representation
  39932. func (s DescribeIdentityIdFormatInput) String() string {
  39933. return awsutil.Prettify(s)
  39934. }
  39935. // GoString returns the string representation
  39936. func (s DescribeIdentityIdFormatInput) GoString() string {
  39937. return s.String()
  39938. }
  39939. // Validate inspects the fields of the type to determine if they are valid.
  39940. func (s *DescribeIdentityIdFormatInput) Validate() error {
  39941. invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityIdFormatInput"}
  39942. if s.PrincipalArn == nil {
  39943. invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
  39944. }
  39945. if invalidParams.Len() > 0 {
  39946. return invalidParams
  39947. }
  39948. return nil
  39949. }
  39950. // SetPrincipalArn sets the PrincipalArn field's value.
  39951. func (s *DescribeIdentityIdFormatInput) SetPrincipalArn(v string) *DescribeIdentityIdFormatInput {
  39952. s.PrincipalArn = &v
  39953. return s
  39954. }
  39955. // SetResource sets the Resource field's value.
  39956. func (s *DescribeIdentityIdFormatInput) SetResource(v string) *DescribeIdentityIdFormatInput {
  39957. s.Resource = &v
  39958. return s
  39959. }
  39960. type DescribeIdentityIdFormatOutput struct {
  39961. _ struct{} `type:"structure"`
  39962. // Information about the ID format for the resources.
  39963. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  39964. }
  39965. // String returns the string representation
  39966. func (s DescribeIdentityIdFormatOutput) String() string {
  39967. return awsutil.Prettify(s)
  39968. }
  39969. // GoString returns the string representation
  39970. func (s DescribeIdentityIdFormatOutput) GoString() string {
  39971. return s.String()
  39972. }
  39973. // SetStatuses sets the Statuses field's value.
  39974. func (s *DescribeIdentityIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdentityIdFormatOutput {
  39975. s.Statuses = v
  39976. return s
  39977. }
  39978. // Contains the parameters for DescribeImageAttribute.
  39979. type DescribeImageAttributeInput struct {
  39980. _ struct{} `type:"structure"`
  39981. // The AMI attribute.
  39982. //
  39983. // Note: Depending on your account privileges, the blockDeviceMapping attribute
  39984. // may return a Client.AuthFailure error. If this happens, use DescribeImages
  39985. // to get information about the block device mapping for the AMI.
  39986. //
  39987. // Attribute is a required field
  39988. Attribute *string `type:"string" required:"true" enum:"ImageAttributeName"`
  39989. // Checks whether you have the required permissions for the action, without
  39990. // actually making the request, and provides an error response. If you have
  39991. // the required permissions, the error response is DryRunOperation. Otherwise,
  39992. // it is UnauthorizedOperation.
  39993. DryRun *bool `locationName:"dryRun" type:"boolean"`
  39994. // The ID of the AMI.
  39995. //
  39996. // ImageId is a required field
  39997. ImageId *string `type:"string" required:"true"`
  39998. }
  39999. // String returns the string representation
  40000. func (s DescribeImageAttributeInput) String() string {
  40001. return awsutil.Prettify(s)
  40002. }
  40003. // GoString returns the string representation
  40004. func (s DescribeImageAttributeInput) GoString() string {
  40005. return s.String()
  40006. }
  40007. // Validate inspects the fields of the type to determine if they are valid.
  40008. func (s *DescribeImageAttributeInput) Validate() error {
  40009. invalidParams := request.ErrInvalidParams{Context: "DescribeImageAttributeInput"}
  40010. if s.Attribute == nil {
  40011. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  40012. }
  40013. if s.ImageId == nil {
  40014. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  40015. }
  40016. if invalidParams.Len() > 0 {
  40017. return invalidParams
  40018. }
  40019. return nil
  40020. }
  40021. // SetAttribute sets the Attribute field's value.
  40022. func (s *DescribeImageAttributeInput) SetAttribute(v string) *DescribeImageAttributeInput {
  40023. s.Attribute = &v
  40024. return s
  40025. }
  40026. // SetDryRun sets the DryRun field's value.
  40027. func (s *DescribeImageAttributeInput) SetDryRun(v bool) *DescribeImageAttributeInput {
  40028. s.DryRun = &v
  40029. return s
  40030. }
  40031. // SetImageId sets the ImageId field's value.
  40032. func (s *DescribeImageAttributeInput) SetImageId(v string) *DescribeImageAttributeInput {
  40033. s.ImageId = &v
  40034. return s
  40035. }
  40036. // Describes an image attribute.
  40037. type DescribeImageAttributeOutput struct {
  40038. _ struct{} `type:"structure"`
  40039. // One or more block device mapping entries.
  40040. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  40041. // A description for the AMI.
  40042. Description *AttributeValue `locationName:"description" type:"structure"`
  40043. // The ID of the AMI.
  40044. ImageId *string `locationName:"imageId" type:"string"`
  40045. // The kernel ID.
  40046. KernelId *AttributeValue `locationName:"kernel" type:"structure"`
  40047. // One or more launch permissions.
  40048. LaunchPermissions []*LaunchPermission `locationName:"launchPermission" locationNameList:"item" type:"list"`
  40049. // One or more product codes.
  40050. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  40051. // The RAM disk ID.
  40052. RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`
  40053. // Indicates whether enhanced networking with the Intel 82599 Virtual Function
  40054. // interface is enabled.
  40055. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  40056. }
  40057. // String returns the string representation
  40058. func (s DescribeImageAttributeOutput) String() string {
  40059. return awsutil.Prettify(s)
  40060. }
  40061. // GoString returns the string representation
  40062. func (s DescribeImageAttributeOutput) GoString() string {
  40063. return s.String()
  40064. }
  40065. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  40066. func (s *DescribeImageAttributeOutput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *DescribeImageAttributeOutput {
  40067. s.BlockDeviceMappings = v
  40068. return s
  40069. }
  40070. // SetDescription sets the Description field's value.
  40071. func (s *DescribeImageAttributeOutput) SetDescription(v *AttributeValue) *DescribeImageAttributeOutput {
  40072. s.Description = v
  40073. return s
  40074. }
  40075. // SetImageId sets the ImageId field's value.
  40076. func (s *DescribeImageAttributeOutput) SetImageId(v string) *DescribeImageAttributeOutput {
  40077. s.ImageId = &v
  40078. return s
  40079. }
  40080. // SetKernelId sets the KernelId field's value.
  40081. func (s *DescribeImageAttributeOutput) SetKernelId(v *AttributeValue) *DescribeImageAttributeOutput {
  40082. s.KernelId = v
  40083. return s
  40084. }
  40085. // SetLaunchPermissions sets the LaunchPermissions field's value.
  40086. func (s *DescribeImageAttributeOutput) SetLaunchPermissions(v []*LaunchPermission) *DescribeImageAttributeOutput {
  40087. s.LaunchPermissions = v
  40088. return s
  40089. }
  40090. // SetProductCodes sets the ProductCodes field's value.
  40091. func (s *DescribeImageAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeImageAttributeOutput {
  40092. s.ProductCodes = v
  40093. return s
  40094. }
  40095. // SetRamdiskId sets the RamdiskId field's value.
  40096. func (s *DescribeImageAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeImageAttributeOutput {
  40097. s.RamdiskId = v
  40098. return s
  40099. }
  40100. // SetSriovNetSupport sets the SriovNetSupport field's value.
  40101. func (s *DescribeImageAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeImageAttributeOutput {
  40102. s.SriovNetSupport = v
  40103. return s
  40104. }
  40105. // Contains the parameters for DescribeImages.
  40106. type DescribeImagesInput struct {
  40107. _ struct{} `type:"structure"`
  40108. // Checks whether you have the required permissions for the action, without
  40109. // actually making the request, and provides an error response. If you have
  40110. // the required permissions, the error response is DryRunOperation. Otherwise,
  40111. // it is UnauthorizedOperation.
  40112. DryRun *bool `locationName:"dryRun" type:"boolean"`
  40113. // Scopes the images by users with explicit launch permissions. Specify an AWS
  40114. // account ID, self (the sender of the request), or all (public AMIs).
  40115. ExecutableUsers []*string `locationName:"ExecutableBy" locationNameList:"ExecutableBy" type:"list"`
  40116. // One or more filters.
  40117. //
  40118. // * architecture - The image architecture (i386 | x86_64).
  40119. //
  40120. // * block-device-mapping.delete-on-termination - A Boolean value that indicates
  40121. // whether the Amazon EBS volume is deleted on instance termination.
  40122. //
  40123. // * block-device-mapping.device-name - The device name specified in the
  40124. // block device mapping (for example, /dev/sdh or xvdh).
  40125. //
  40126. // * block-device-mapping.snapshot-id - The ID of the snapshot used for the
  40127. // EBS volume.
  40128. //
  40129. // * block-device-mapping.volume-size - The volume size of the EBS volume,
  40130. // in GiB.
  40131. //
  40132. // * block-device-mapping.volume-type - The volume type of the EBS volume
  40133. // (gp2 | io1 | st1 | sc1 | standard).
  40134. //
  40135. // * description - The description of the image (provided during image creation).
  40136. //
  40137. // * ena-support - A Boolean that indicates whether enhanced networking with
  40138. // ENA is enabled.
  40139. //
  40140. // * hypervisor - The hypervisor type (ovm | xen).
  40141. //
  40142. // * image-id - The ID of the image.
  40143. //
  40144. // * image-type - The image type (machine | kernel | ramdisk).
  40145. //
  40146. // * is-public - A Boolean that indicates whether the image is public.
  40147. //
  40148. // * kernel-id - The kernel ID.
  40149. //
  40150. // * manifest-location - The location of the image manifest.
  40151. //
  40152. // * name - The name of the AMI (provided during image creation).
  40153. //
  40154. // * owner-alias - String value from an Amazon-maintained list (amazon |
  40155. // aws-marketplace | microsoft) of snapshot owners. Not to be confused with
  40156. // the user-configured AWS account alias, which is set from the IAM console.
  40157. //
  40158. // * owner-id - The AWS account ID of the image owner.
  40159. //
  40160. // * platform - The platform. To only list Windows-based AMIs, use windows.
  40161. //
  40162. // * product-code - The product code.
  40163. //
  40164. // * product-code.type - The type of the product code (devpay | marketplace).
  40165. //
  40166. // * ramdisk-id - The RAM disk ID.
  40167. //
  40168. // * root-device-name - The device name of the root device volume (for example,
  40169. // /dev/sda1).
  40170. //
  40171. // * root-device-type - The type of the root device volume (ebs | instance-store).
  40172. //
  40173. // * state - The state of the image (available | pending | failed).
  40174. //
  40175. // * state-reason-code - The reason code for the state change.
  40176. //
  40177. // * state-reason-message - The message for the state change.
  40178. //
  40179. // * sriov-net-support - A value of simple indicates that enhanced networking
  40180. // with the Intel 82599 VF interface is enabled.
  40181. //
  40182. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  40183. // Use the tag key in the filter name and the tag value as the filter value.
  40184. // For example, to find all resources that have a tag with the key Owner
  40185. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  40186. // the filter value.
  40187. //
  40188. // * tag-key - The key of a tag assigned to the resource. Use this filter
  40189. // to find all resources assigned a tag with a specific key, regardless of
  40190. // the tag value.
  40191. //
  40192. // * virtualization-type - The virtualization type (paravirtual | hvm).
  40193. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  40194. // One or more image IDs.
  40195. //
  40196. // Default: Describes all images available to you.
  40197. ImageIds []*string `locationName:"ImageId" locationNameList:"ImageId" type:"list"`
  40198. // Filters the images by the owner. Specify an AWS account ID, self (owner is
  40199. // the sender of the request), or an AWS owner alias (valid values are amazon
  40200. // | aws-marketplace | microsoft). Omitting this option returns all images for
  40201. // which you have launch permissions, regardless of ownership.
  40202. Owners []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  40203. }
  40204. // String returns the string representation
  40205. func (s DescribeImagesInput) String() string {
  40206. return awsutil.Prettify(s)
  40207. }
  40208. // GoString returns the string representation
  40209. func (s DescribeImagesInput) GoString() string {
  40210. return s.String()
  40211. }
  40212. // SetDryRun sets the DryRun field's value.
  40213. func (s *DescribeImagesInput) SetDryRun(v bool) *DescribeImagesInput {
  40214. s.DryRun = &v
  40215. return s
  40216. }
  40217. // SetExecutableUsers sets the ExecutableUsers field's value.
  40218. func (s *DescribeImagesInput) SetExecutableUsers(v []*string) *DescribeImagesInput {
  40219. s.ExecutableUsers = v
  40220. return s
  40221. }
  40222. // SetFilters sets the Filters field's value.
  40223. func (s *DescribeImagesInput) SetFilters(v []*Filter) *DescribeImagesInput {
  40224. s.Filters = v
  40225. return s
  40226. }
  40227. // SetImageIds sets the ImageIds field's value.
  40228. func (s *DescribeImagesInput) SetImageIds(v []*string) *DescribeImagesInput {
  40229. s.ImageIds = v
  40230. return s
  40231. }
  40232. // SetOwners sets the Owners field's value.
  40233. func (s *DescribeImagesInput) SetOwners(v []*string) *DescribeImagesInput {
  40234. s.Owners = v
  40235. return s
  40236. }
  40237. // Contains the output of DescribeImages.
  40238. type DescribeImagesOutput struct {
  40239. _ struct{} `type:"structure"`
  40240. // Information about one or more images.
  40241. Images []*Image `locationName:"imagesSet" locationNameList:"item" type:"list"`
  40242. }
  40243. // String returns the string representation
  40244. func (s DescribeImagesOutput) String() string {
  40245. return awsutil.Prettify(s)
  40246. }
  40247. // GoString returns the string representation
  40248. func (s DescribeImagesOutput) GoString() string {
  40249. return s.String()
  40250. }
  40251. // SetImages sets the Images field's value.
  40252. func (s *DescribeImagesOutput) SetImages(v []*Image) *DescribeImagesOutput {
  40253. s.Images = v
  40254. return s
  40255. }
  40256. // Contains the parameters for DescribeImportImageTasks.
  40257. type DescribeImportImageTasksInput struct {
  40258. _ struct{} `type:"structure"`
  40259. // Checks whether you have the required permissions for the action, without
  40260. // actually making the request, and provides an error response. If you have
  40261. // the required permissions, the error response is DryRunOperation. Otherwise,
  40262. // it is UnauthorizedOperation.
  40263. DryRun *bool `type:"boolean"`
  40264. // Filter tasks using the task-state filter and one of the following values:
  40265. // active, completed, deleting, deleted.
  40266. Filters []*Filter `locationNameList:"Filter" type:"list"`
  40267. // A list of import image task IDs.
  40268. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`
  40269. // The maximum number of results to return in a single call. To retrieve the
  40270. // remaining results, make another call with the returned NextToken value.
  40271. MaxResults *int64 `type:"integer"`
  40272. // A token that indicates the next page of results.
  40273. NextToken *string `type:"string"`
  40274. }
  40275. // String returns the string representation
  40276. func (s DescribeImportImageTasksInput) String() string {
  40277. return awsutil.Prettify(s)
  40278. }
  40279. // GoString returns the string representation
  40280. func (s DescribeImportImageTasksInput) GoString() string {
  40281. return s.String()
  40282. }
  40283. // SetDryRun sets the DryRun field's value.
  40284. func (s *DescribeImportImageTasksInput) SetDryRun(v bool) *DescribeImportImageTasksInput {
  40285. s.DryRun = &v
  40286. return s
  40287. }
  40288. // SetFilters sets the Filters field's value.
  40289. func (s *DescribeImportImageTasksInput) SetFilters(v []*Filter) *DescribeImportImageTasksInput {
  40290. s.Filters = v
  40291. return s
  40292. }
  40293. // SetImportTaskIds sets the ImportTaskIds field's value.
  40294. func (s *DescribeImportImageTasksInput) SetImportTaskIds(v []*string) *DescribeImportImageTasksInput {
  40295. s.ImportTaskIds = v
  40296. return s
  40297. }
  40298. // SetMaxResults sets the MaxResults field's value.
  40299. func (s *DescribeImportImageTasksInput) SetMaxResults(v int64) *DescribeImportImageTasksInput {
  40300. s.MaxResults = &v
  40301. return s
  40302. }
  40303. // SetNextToken sets the NextToken field's value.
  40304. func (s *DescribeImportImageTasksInput) SetNextToken(v string) *DescribeImportImageTasksInput {
  40305. s.NextToken = &v
  40306. return s
  40307. }
  40308. // Contains the output for DescribeImportImageTasks.
  40309. type DescribeImportImageTasksOutput struct {
  40310. _ struct{} `type:"structure"`
  40311. // A list of zero or more import image tasks that are currently active or were
  40312. // completed or canceled in the previous 7 days.
  40313. ImportImageTasks []*ImportImageTask `locationName:"importImageTaskSet" locationNameList:"item" type:"list"`
  40314. // The token to use to get the next page of results. This value is null when
  40315. // there are no more results to return.
  40316. NextToken *string `locationName:"nextToken" type:"string"`
  40317. }
  40318. // String returns the string representation
  40319. func (s DescribeImportImageTasksOutput) String() string {
  40320. return awsutil.Prettify(s)
  40321. }
  40322. // GoString returns the string representation
  40323. func (s DescribeImportImageTasksOutput) GoString() string {
  40324. return s.String()
  40325. }
  40326. // SetImportImageTasks sets the ImportImageTasks field's value.
  40327. func (s *DescribeImportImageTasksOutput) SetImportImageTasks(v []*ImportImageTask) *DescribeImportImageTasksOutput {
  40328. s.ImportImageTasks = v
  40329. return s
  40330. }
  40331. // SetNextToken sets the NextToken field's value.
  40332. func (s *DescribeImportImageTasksOutput) SetNextToken(v string) *DescribeImportImageTasksOutput {
  40333. s.NextToken = &v
  40334. return s
  40335. }
  40336. // Contains the parameters for DescribeImportSnapshotTasks.
  40337. type DescribeImportSnapshotTasksInput struct {
  40338. _ struct{} `type:"structure"`
  40339. // Checks whether you have the required permissions for the action, without
  40340. // actually making the request, and provides an error response. If you have
  40341. // the required permissions, the error response is DryRunOperation. Otherwise,
  40342. // it is UnauthorizedOperation.
  40343. DryRun *bool `type:"boolean"`
  40344. // One or more filters.
  40345. Filters []*Filter `locationNameList:"Filter" type:"list"`
  40346. // A list of import snapshot task IDs.
  40347. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`
  40348. // The maximum number of results to return in a single call. To retrieve the
  40349. // remaining results, make another call with the returned NextToken value.
  40350. MaxResults *int64 `type:"integer"`
  40351. // A token that indicates the next page of results.
  40352. NextToken *string `type:"string"`
  40353. }
  40354. // String returns the string representation
  40355. func (s DescribeImportSnapshotTasksInput) String() string {
  40356. return awsutil.Prettify(s)
  40357. }
  40358. // GoString returns the string representation
  40359. func (s DescribeImportSnapshotTasksInput) GoString() string {
  40360. return s.String()
  40361. }
  40362. // SetDryRun sets the DryRun field's value.
  40363. func (s *DescribeImportSnapshotTasksInput) SetDryRun(v bool) *DescribeImportSnapshotTasksInput {
  40364. s.DryRun = &v
  40365. return s
  40366. }
  40367. // SetFilters sets the Filters field's value.
  40368. func (s *DescribeImportSnapshotTasksInput) SetFilters(v []*Filter) *DescribeImportSnapshotTasksInput {
  40369. s.Filters = v
  40370. return s
  40371. }
  40372. // SetImportTaskIds sets the ImportTaskIds field's value.
  40373. func (s *DescribeImportSnapshotTasksInput) SetImportTaskIds(v []*string) *DescribeImportSnapshotTasksInput {
  40374. s.ImportTaskIds = v
  40375. return s
  40376. }
  40377. // SetMaxResults sets the MaxResults field's value.
  40378. func (s *DescribeImportSnapshotTasksInput) SetMaxResults(v int64) *DescribeImportSnapshotTasksInput {
  40379. s.MaxResults = &v
  40380. return s
  40381. }
  40382. // SetNextToken sets the NextToken field's value.
  40383. func (s *DescribeImportSnapshotTasksInput) SetNextToken(v string) *DescribeImportSnapshotTasksInput {
  40384. s.NextToken = &v
  40385. return s
  40386. }
  40387. // Contains the output for DescribeImportSnapshotTasks.
  40388. type DescribeImportSnapshotTasksOutput struct {
  40389. _ struct{} `type:"structure"`
  40390. // A list of zero or more import snapshot tasks that are currently active or
  40391. // were completed or canceled in the previous 7 days.
  40392. ImportSnapshotTasks []*ImportSnapshotTask `locationName:"importSnapshotTaskSet" locationNameList:"item" type:"list"`
  40393. // The token to use to get the next page of results. This value is null when
  40394. // there are no more results to return.
  40395. NextToken *string `locationName:"nextToken" type:"string"`
  40396. }
  40397. // String returns the string representation
  40398. func (s DescribeImportSnapshotTasksOutput) String() string {
  40399. return awsutil.Prettify(s)
  40400. }
  40401. // GoString returns the string representation
  40402. func (s DescribeImportSnapshotTasksOutput) GoString() string {
  40403. return s.String()
  40404. }
  40405. // SetImportSnapshotTasks sets the ImportSnapshotTasks field's value.
  40406. func (s *DescribeImportSnapshotTasksOutput) SetImportSnapshotTasks(v []*ImportSnapshotTask) *DescribeImportSnapshotTasksOutput {
  40407. s.ImportSnapshotTasks = v
  40408. return s
  40409. }
  40410. // SetNextToken sets the NextToken field's value.
  40411. func (s *DescribeImportSnapshotTasksOutput) SetNextToken(v string) *DescribeImportSnapshotTasksOutput {
  40412. s.NextToken = &v
  40413. return s
  40414. }
  40415. type DescribeInstanceAttributeInput struct {
  40416. _ struct{} `type:"structure"`
  40417. // The instance attribute.
  40418. //
  40419. // Note: The enaSupport attribute is not supported at this time.
  40420. //
  40421. // Attribute is a required field
  40422. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"`
  40423. // Checks whether you have the required permissions for the action, without
  40424. // actually making the request, and provides an error response. If you have
  40425. // the required permissions, the error response is DryRunOperation. Otherwise,
  40426. // it is UnauthorizedOperation.
  40427. DryRun *bool `locationName:"dryRun" type:"boolean"`
  40428. // The ID of the instance.
  40429. //
  40430. // InstanceId is a required field
  40431. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  40432. }
  40433. // String returns the string representation
  40434. func (s DescribeInstanceAttributeInput) String() string {
  40435. return awsutil.Prettify(s)
  40436. }
  40437. // GoString returns the string representation
  40438. func (s DescribeInstanceAttributeInput) GoString() string {
  40439. return s.String()
  40440. }
  40441. // Validate inspects the fields of the type to determine if they are valid.
  40442. func (s *DescribeInstanceAttributeInput) Validate() error {
  40443. invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceAttributeInput"}
  40444. if s.Attribute == nil {
  40445. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  40446. }
  40447. if s.InstanceId == nil {
  40448. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  40449. }
  40450. if invalidParams.Len() > 0 {
  40451. return invalidParams
  40452. }
  40453. return nil
  40454. }
  40455. // SetAttribute sets the Attribute field's value.
  40456. func (s *DescribeInstanceAttributeInput) SetAttribute(v string) *DescribeInstanceAttributeInput {
  40457. s.Attribute = &v
  40458. return s
  40459. }
  40460. // SetDryRun sets the DryRun field's value.
  40461. func (s *DescribeInstanceAttributeInput) SetDryRun(v bool) *DescribeInstanceAttributeInput {
  40462. s.DryRun = &v
  40463. return s
  40464. }
  40465. // SetInstanceId sets the InstanceId field's value.
  40466. func (s *DescribeInstanceAttributeInput) SetInstanceId(v string) *DescribeInstanceAttributeInput {
  40467. s.InstanceId = &v
  40468. return s
  40469. }
  40470. // Describes an instance attribute.
  40471. type DescribeInstanceAttributeOutput struct {
  40472. _ struct{} `type:"structure"`
  40473. // The block device mapping of the instance.
  40474. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  40475. // If the value is true, you can't terminate the instance through the Amazon
  40476. // EC2 console, CLI, or API; otherwise, you can.
  40477. DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`
  40478. // Indicates whether the instance is optimized for Amazon EBS I/O.
  40479. EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`
  40480. // Indicates whether enhanced networking with ENA is enabled.
  40481. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`
  40482. // The security groups associated with the instance.
  40483. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  40484. // The ID of the instance.
  40485. InstanceId *string `locationName:"instanceId" type:"string"`
  40486. // Indicates whether an instance stops or terminates when you initiate shutdown
  40487. // from the instance (using the operating system command for system shutdown).
  40488. InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`
  40489. // The instance type.
  40490. InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`
  40491. // The kernel ID.
  40492. KernelId *AttributeValue `locationName:"kernel" type:"structure"`
  40493. // A list of product codes.
  40494. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  40495. // The RAM disk ID.
  40496. RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`
  40497. // The device name of the root device volume (for example, /dev/sda1).
  40498. RootDeviceName *AttributeValue `locationName:"rootDeviceName" type:"structure"`
  40499. // Indicates whether source/destination checking is enabled. A value of true
  40500. // means that checking is enabled, and false means that checking is disabled.
  40501. // This value must be false for a NAT instance to perform NAT.
  40502. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  40503. // Indicates whether enhanced networking with the Intel 82599 Virtual Function
  40504. // interface is enabled.
  40505. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  40506. // The user data.
  40507. UserData *AttributeValue `locationName:"userData" type:"structure"`
  40508. }
  40509. // String returns the string representation
  40510. func (s DescribeInstanceAttributeOutput) String() string {
  40511. return awsutil.Prettify(s)
  40512. }
  40513. // GoString returns the string representation
  40514. func (s DescribeInstanceAttributeOutput) GoString() string {
  40515. return s.String()
  40516. }
  40517. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  40518. func (s *DescribeInstanceAttributeOutput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *DescribeInstanceAttributeOutput {
  40519. s.BlockDeviceMappings = v
  40520. return s
  40521. }
  40522. // SetDisableApiTermination sets the DisableApiTermination field's value.
  40523. func (s *DescribeInstanceAttributeOutput) SetDisableApiTermination(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  40524. s.DisableApiTermination = v
  40525. return s
  40526. }
  40527. // SetEbsOptimized sets the EbsOptimized field's value.
  40528. func (s *DescribeInstanceAttributeOutput) SetEbsOptimized(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  40529. s.EbsOptimized = v
  40530. return s
  40531. }
  40532. // SetEnaSupport sets the EnaSupport field's value.
  40533. func (s *DescribeInstanceAttributeOutput) SetEnaSupport(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  40534. s.EnaSupport = v
  40535. return s
  40536. }
  40537. // SetGroups sets the Groups field's value.
  40538. func (s *DescribeInstanceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeInstanceAttributeOutput {
  40539. s.Groups = v
  40540. return s
  40541. }
  40542. // SetInstanceId sets the InstanceId field's value.
  40543. func (s *DescribeInstanceAttributeOutput) SetInstanceId(v string) *DescribeInstanceAttributeOutput {
  40544. s.InstanceId = &v
  40545. return s
  40546. }
  40547. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  40548. func (s *DescribeInstanceAttributeOutput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40549. s.InstanceInitiatedShutdownBehavior = v
  40550. return s
  40551. }
  40552. // SetInstanceType sets the InstanceType field's value.
  40553. func (s *DescribeInstanceAttributeOutput) SetInstanceType(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40554. s.InstanceType = v
  40555. return s
  40556. }
  40557. // SetKernelId sets the KernelId field's value.
  40558. func (s *DescribeInstanceAttributeOutput) SetKernelId(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40559. s.KernelId = v
  40560. return s
  40561. }
  40562. // SetProductCodes sets the ProductCodes field's value.
  40563. func (s *DescribeInstanceAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeInstanceAttributeOutput {
  40564. s.ProductCodes = v
  40565. return s
  40566. }
  40567. // SetRamdiskId sets the RamdiskId field's value.
  40568. func (s *DescribeInstanceAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40569. s.RamdiskId = v
  40570. return s
  40571. }
  40572. // SetRootDeviceName sets the RootDeviceName field's value.
  40573. func (s *DescribeInstanceAttributeOutput) SetRootDeviceName(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40574. s.RootDeviceName = v
  40575. return s
  40576. }
  40577. // SetSourceDestCheck sets the SourceDestCheck field's value.
  40578. func (s *DescribeInstanceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  40579. s.SourceDestCheck = v
  40580. return s
  40581. }
  40582. // SetSriovNetSupport sets the SriovNetSupport field's value.
  40583. func (s *DescribeInstanceAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40584. s.SriovNetSupport = v
  40585. return s
  40586. }
  40587. // SetUserData sets the UserData field's value.
  40588. func (s *DescribeInstanceAttributeOutput) SetUserData(v *AttributeValue) *DescribeInstanceAttributeOutput {
  40589. s.UserData = v
  40590. return s
  40591. }
  40592. type DescribeInstanceCreditSpecificationsInput struct {
  40593. _ struct{} `type:"structure"`
  40594. // Checks whether you have the required permissions for the action, without
  40595. // actually making the request, and provides an error response. If you have
  40596. // the required permissions, the error response is DryRunOperation. Otherwise,
  40597. // it is UnauthorizedOperation.
  40598. DryRun *bool `type:"boolean"`
  40599. // One or more filters.
  40600. //
  40601. // * instance-id - The ID of the instance.
  40602. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  40603. // One or more instance IDs.
  40604. //
  40605. // Default: Describes all your instances.
  40606. //
  40607. // Constraints: Maximum 1000 explicitly specified instance IDs.
  40608. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  40609. // The maximum number of results to return in a single call. To retrieve the
  40610. // remaining results, make another call with the returned NextToken value. This
  40611. // value can be between 5 and 1000. You cannot specify this parameter and the
  40612. // instance IDs parameter in the same call.
  40613. MaxResults *int64 `type:"integer"`
  40614. // The token to retrieve the next page of results.
  40615. NextToken *string `type:"string"`
  40616. }
  40617. // String returns the string representation
  40618. func (s DescribeInstanceCreditSpecificationsInput) String() string {
  40619. return awsutil.Prettify(s)
  40620. }
  40621. // GoString returns the string representation
  40622. func (s DescribeInstanceCreditSpecificationsInput) GoString() string {
  40623. return s.String()
  40624. }
  40625. // SetDryRun sets the DryRun field's value.
  40626. func (s *DescribeInstanceCreditSpecificationsInput) SetDryRun(v bool) *DescribeInstanceCreditSpecificationsInput {
  40627. s.DryRun = &v
  40628. return s
  40629. }
  40630. // SetFilters sets the Filters field's value.
  40631. func (s *DescribeInstanceCreditSpecificationsInput) SetFilters(v []*Filter) *DescribeInstanceCreditSpecificationsInput {
  40632. s.Filters = v
  40633. return s
  40634. }
  40635. // SetInstanceIds sets the InstanceIds field's value.
  40636. func (s *DescribeInstanceCreditSpecificationsInput) SetInstanceIds(v []*string) *DescribeInstanceCreditSpecificationsInput {
  40637. s.InstanceIds = v
  40638. return s
  40639. }
  40640. // SetMaxResults sets the MaxResults field's value.
  40641. func (s *DescribeInstanceCreditSpecificationsInput) SetMaxResults(v int64) *DescribeInstanceCreditSpecificationsInput {
  40642. s.MaxResults = &v
  40643. return s
  40644. }
  40645. // SetNextToken sets the NextToken field's value.
  40646. func (s *DescribeInstanceCreditSpecificationsInput) SetNextToken(v string) *DescribeInstanceCreditSpecificationsInput {
  40647. s.NextToken = &v
  40648. return s
  40649. }
  40650. type DescribeInstanceCreditSpecificationsOutput struct {
  40651. _ struct{} `type:"structure"`
  40652. // Information about the credit option for CPU usage of an instance.
  40653. InstanceCreditSpecifications []*InstanceCreditSpecification `locationName:"instanceCreditSpecificationSet" locationNameList:"item" type:"list"`
  40654. // The token to use to retrieve the next page of results. This value is null
  40655. // when there are no more results to return.
  40656. NextToken *string `locationName:"nextToken" type:"string"`
  40657. }
  40658. // String returns the string representation
  40659. func (s DescribeInstanceCreditSpecificationsOutput) String() string {
  40660. return awsutil.Prettify(s)
  40661. }
  40662. // GoString returns the string representation
  40663. func (s DescribeInstanceCreditSpecificationsOutput) GoString() string {
  40664. return s.String()
  40665. }
  40666. // SetInstanceCreditSpecifications sets the InstanceCreditSpecifications field's value.
  40667. func (s *DescribeInstanceCreditSpecificationsOutput) SetInstanceCreditSpecifications(v []*InstanceCreditSpecification) *DescribeInstanceCreditSpecificationsOutput {
  40668. s.InstanceCreditSpecifications = v
  40669. return s
  40670. }
  40671. // SetNextToken sets the NextToken field's value.
  40672. func (s *DescribeInstanceCreditSpecificationsOutput) SetNextToken(v string) *DescribeInstanceCreditSpecificationsOutput {
  40673. s.NextToken = &v
  40674. return s
  40675. }
  40676. type DescribeInstanceStatusInput struct {
  40677. _ struct{} `type:"structure"`
  40678. // Checks whether you have the required permissions for the action, without
  40679. // actually making the request, and provides an error response. If you have
  40680. // the required permissions, the error response is DryRunOperation. Otherwise,
  40681. // it is UnauthorizedOperation.
  40682. DryRun *bool `locationName:"dryRun" type:"boolean"`
  40683. // One or more filters.
  40684. //
  40685. // * availability-zone - The Availability Zone of the instance.
  40686. //
  40687. // * event.code - The code for the scheduled event (instance-reboot | system-reboot
  40688. // | system-maintenance | instance-retirement | instance-stop).
  40689. //
  40690. // * event.description - A description of the event.
  40691. //
  40692. // * event.not-after - The latest end time for the scheduled event (for example,
  40693. // 2014-09-15T17:15:20.000Z).
  40694. //
  40695. // * event.not-before - The earliest start time for the scheduled event (for
  40696. // example, 2014-09-15T17:15:20.000Z).
  40697. //
  40698. // * instance-state-code - The code for the instance state, as a 16-bit unsigned
  40699. // integer. The high byte is used for internal purposes and should be ignored.
  40700. // The low byte is set based on the state represented. The valid values are
  40701. // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
  40702. // and 80 (stopped).
  40703. //
  40704. // * instance-state-name - The state of the instance (pending | running |
  40705. // shutting-down | terminated | stopping | stopped).
  40706. //
  40707. // * instance-status.reachability - Filters on instance status where the
  40708. // name is reachability (passed | failed | initializing | insufficient-data).
  40709. //
  40710. // * instance-status.status - The status of the instance (ok | impaired |
  40711. // initializing | insufficient-data | not-applicable).
  40712. //
  40713. // * system-status.reachability - Filters on system status where the name
  40714. // is reachability (passed | failed | initializing | insufficient-data).
  40715. //
  40716. // * system-status.status - The system status of the instance (ok | impaired
  40717. // | initializing | insufficient-data | not-applicable).
  40718. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  40719. // When true, includes the health status for all instances. When false, includes
  40720. // the health status for running instances only.
  40721. //
  40722. // Default: false
  40723. IncludeAllInstances *bool `locationName:"includeAllInstances" type:"boolean"`
  40724. // One or more instance IDs.
  40725. //
  40726. // Default: Describes all your instances.
  40727. //
  40728. // Constraints: Maximum 100 explicitly specified instance IDs.
  40729. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  40730. // The maximum number of results to return in a single call. To retrieve the
  40731. // remaining results, make another call with the returned NextToken value. This
  40732. // value can be between 5 and 1000. You cannot specify this parameter and the
  40733. // instance IDs parameter in the same call.
  40734. MaxResults *int64 `type:"integer"`
  40735. // The token to retrieve the next page of results.
  40736. NextToken *string `type:"string"`
  40737. }
  40738. // String returns the string representation
  40739. func (s DescribeInstanceStatusInput) String() string {
  40740. return awsutil.Prettify(s)
  40741. }
  40742. // GoString returns the string representation
  40743. func (s DescribeInstanceStatusInput) GoString() string {
  40744. return s.String()
  40745. }
  40746. // SetDryRun sets the DryRun field's value.
  40747. func (s *DescribeInstanceStatusInput) SetDryRun(v bool) *DescribeInstanceStatusInput {
  40748. s.DryRun = &v
  40749. return s
  40750. }
  40751. // SetFilters sets the Filters field's value.
  40752. func (s *DescribeInstanceStatusInput) SetFilters(v []*Filter) *DescribeInstanceStatusInput {
  40753. s.Filters = v
  40754. return s
  40755. }
  40756. // SetIncludeAllInstances sets the IncludeAllInstances field's value.
  40757. func (s *DescribeInstanceStatusInput) SetIncludeAllInstances(v bool) *DescribeInstanceStatusInput {
  40758. s.IncludeAllInstances = &v
  40759. return s
  40760. }
  40761. // SetInstanceIds sets the InstanceIds field's value.
  40762. func (s *DescribeInstanceStatusInput) SetInstanceIds(v []*string) *DescribeInstanceStatusInput {
  40763. s.InstanceIds = v
  40764. return s
  40765. }
  40766. // SetMaxResults sets the MaxResults field's value.
  40767. func (s *DescribeInstanceStatusInput) SetMaxResults(v int64) *DescribeInstanceStatusInput {
  40768. s.MaxResults = &v
  40769. return s
  40770. }
  40771. // SetNextToken sets the NextToken field's value.
  40772. func (s *DescribeInstanceStatusInput) SetNextToken(v string) *DescribeInstanceStatusInput {
  40773. s.NextToken = &v
  40774. return s
  40775. }
  40776. type DescribeInstanceStatusOutput struct {
  40777. _ struct{} `type:"structure"`
  40778. // One or more instance status descriptions.
  40779. InstanceStatuses []*InstanceStatus `locationName:"instanceStatusSet" locationNameList:"item" type:"list"`
  40780. // The token to use to retrieve the next page of results. This value is null
  40781. // when there are no more results to return.
  40782. NextToken *string `locationName:"nextToken" type:"string"`
  40783. }
  40784. // String returns the string representation
  40785. func (s DescribeInstanceStatusOutput) String() string {
  40786. return awsutil.Prettify(s)
  40787. }
  40788. // GoString returns the string representation
  40789. func (s DescribeInstanceStatusOutput) GoString() string {
  40790. return s.String()
  40791. }
  40792. // SetInstanceStatuses sets the InstanceStatuses field's value.
  40793. func (s *DescribeInstanceStatusOutput) SetInstanceStatuses(v []*InstanceStatus) *DescribeInstanceStatusOutput {
  40794. s.InstanceStatuses = v
  40795. return s
  40796. }
  40797. // SetNextToken sets the NextToken field's value.
  40798. func (s *DescribeInstanceStatusOutput) SetNextToken(v string) *DescribeInstanceStatusOutput {
  40799. s.NextToken = &v
  40800. return s
  40801. }
  40802. type DescribeInstancesInput struct {
  40803. _ struct{} `type:"structure"`
  40804. // Checks whether you have the required permissions for the action, without
  40805. // actually making the request, and provides an error response. If you have
  40806. // the required permissions, the error response is DryRunOperation. Otherwise,
  40807. // it is UnauthorizedOperation.
  40808. DryRun *bool `locationName:"dryRun" type:"boolean"`
  40809. // One or more filters.
  40810. //
  40811. // * affinity - The affinity setting for an instance running on a Dedicated
  40812. // Host (default | host).
  40813. //
  40814. // * architecture - The instance architecture (i386 | x86_64).
  40815. //
  40816. // * availability-zone - The Availability Zone of the instance.
  40817. //
  40818. // * block-device-mapping.attach-time - The attach time for an EBS volume
  40819. // mapped to the instance, for example, 2010-09-15T17:15:20.000Z.
  40820. //
  40821. // * block-device-mapping.delete-on-termination - A Boolean that indicates
  40822. // whether the EBS volume is deleted on instance termination.
  40823. //
  40824. // * block-device-mapping.device-name - The device name specified in the
  40825. // block device mapping (for example, /dev/sdh or xvdh).
  40826. //
  40827. // * block-device-mapping.status - The status for the EBS volume (attaching
  40828. // | attached | detaching | detached).
  40829. //
  40830. // * block-device-mapping.volume-id - The volume ID of the EBS volume.
  40831. //
  40832. // * client-token - The idempotency token you provided when you launched
  40833. // the instance.
  40834. //
  40835. // * dns-name - The public DNS name of the instance.
  40836. //
  40837. // * group-id - The ID of the security group for the instance. EC2-Classic
  40838. // only.
  40839. //
  40840. // * group-name - The name of the security group for the instance. EC2-Classic
  40841. // only.
  40842. //
  40843. // * hibernation-options.configured - A Boolean that indicates whether the
  40844. // instance is enabled for hibernation. A value of true means that the instance
  40845. // is enabled for hibernation.
  40846. //
  40847. // * host-id - The ID of the Dedicated Host on which the instance is running,
  40848. // if applicable.
  40849. //
  40850. // * hypervisor - The hypervisor type of the instance (ovm | xen).
  40851. //
  40852. // * iam-instance-profile.arn - The instance profile associated with the
  40853. // instance. Specified as an ARN.
  40854. //
  40855. // * image-id - The ID of the image used to launch the instance.
  40856. //
  40857. // * instance-id - The ID of the instance.
  40858. //
  40859. // * instance-lifecycle - Indicates whether this is a Spot Instance or a
  40860. // Scheduled Instance (spot | scheduled).
  40861. //
  40862. // * instance-state-code - The state of the instance, as a 16-bit unsigned
  40863. // integer. The high byte is used for internal purposes and should be ignored.
  40864. // The low byte is set based on the state represented. The valid values are:
  40865. // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
  40866. // and 80 (stopped).
  40867. //
  40868. // * instance-state-name - The state of the instance (pending | running |
  40869. // shutting-down | terminated | stopping | stopped).
  40870. //
  40871. // * instance-type - The type of instance (for example, t2.micro).
  40872. //
  40873. // * instance.group-id - The ID of the security group for the instance.
  40874. //
  40875. // * instance.group-name - The name of the security group for the instance.
  40876. //
  40877. //
  40878. // * ip-address - The public IPv4 address of the instance.
  40879. //
  40880. // * kernel-id - The kernel ID.
  40881. //
  40882. // * key-name - The name of the key pair used when the instance was launched.
  40883. //
  40884. // * launch-index - When launching multiple instances, this is the index
  40885. // for the instance in the launch group (for example, 0, 1, 2, and so on).
  40886. //
  40887. //
  40888. // * launch-time - The time when the instance was launched.
  40889. //
  40890. // * monitoring-state - Indicates whether detailed monitoring is enabled
  40891. // (disabled | enabled).
  40892. //
  40893. // * network-interface.addresses.private-ip-address - The private IPv4 address
  40894. // associated with the network interface.
  40895. //
  40896. // * network-interface.addresses.primary - Specifies whether the IPv4 address
  40897. // of the network interface is the primary private IPv4 address.
  40898. //
  40899. // * network-interface.addresses.association.public-ip - The ID of the association
  40900. // of an Elastic IP address (IPv4) with a network interface.
  40901. //
  40902. // * network-interface.addresses.association.ip-owner-id - The owner ID of
  40903. // the private IPv4 address associated with the network interface.
  40904. //
  40905. // * network-interface.association.public-ip - The address of the Elastic
  40906. // IP address (IPv4) bound to the network interface.
  40907. //
  40908. // * network-interface.association.ip-owner-id - The owner of the Elastic
  40909. // IP address (IPv4) associated with the network interface.
  40910. //
  40911. // * network-interface.association.allocation-id - The allocation ID returned
  40912. // when you allocated the Elastic IP address (IPv4) for your network interface.
  40913. //
  40914. // * network-interface.association.association-id - The association ID returned
  40915. // when the network interface was associated with an IPv4 address.
  40916. //
  40917. // * network-interface.attachment.attachment-id - The ID of the interface
  40918. // attachment.
  40919. //
  40920. // * network-interface.attachment.instance-id - The ID of the instance to
  40921. // which the network interface is attached.
  40922. //
  40923. // * network-interface.attachment.instance-owner-id - The owner ID of the
  40924. // instance to which the network interface is attached.
  40925. //
  40926. // * network-interface.attachment.device-index - The device index to which
  40927. // the network interface is attached.
  40928. //
  40929. // * network-interface.attachment.status - The status of the attachment (attaching
  40930. // | attached | detaching | detached).
  40931. //
  40932. // * network-interface.attachment.attach-time - The time that the network
  40933. // interface was attached to an instance.
  40934. //
  40935. // * network-interface.attachment.delete-on-termination - Specifies whether
  40936. // the attachment is deleted when an instance is terminated.
  40937. //
  40938. // * network-interface.availability-zone - The Availability Zone for the
  40939. // network interface.
  40940. //
  40941. // * network-interface.description - The description of the network interface.
  40942. //
  40943. // * network-interface.group-id - The ID of a security group associated with
  40944. // the network interface.
  40945. //
  40946. // * network-interface.group-name - The name of a security group associated
  40947. // with the network interface.
  40948. //
  40949. // * network-interface.ipv6-addresses.ipv6-address - The IPv6 address associated
  40950. // with the network interface.
  40951. //
  40952. // * network-interface.mac-address - The MAC address of the network interface.
  40953. //
  40954. // * network-interface.network-interface-id - The ID of the network interface.
  40955. //
  40956. // * network-interface.owner-id - The ID of the owner of the network interface.
  40957. //
  40958. // * network-interface.private-dns-name - The private DNS name of the network
  40959. // interface.
  40960. //
  40961. // * network-interface.requester-id - The requester ID for the network interface.
  40962. //
  40963. // * network-interface.requester-managed - Indicates whether the network
  40964. // interface is being managed by AWS.
  40965. //
  40966. // * network-interface.status - The status of the network interface (available)
  40967. // | in-use).
  40968. //
  40969. // * network-interface.source-dest-check - Whether the network interface
  40970. // performs source/destination checking. A value of true means that checking
  40971. // is enabled, and false means that checking is disabled. The value must
  40972. // be false for the network interface to perform network address translation
  40973. // (NAT) in your VPC.
  40974. //
  40975. // * network-interface.subnet-id - The ID of the subnet for the network interface.
  40976. //
  40977. // * network-interface.vpc-id - The ID of the VPC for the network interface.
  40978. //
  40979. // * owner-id - The AWS account ID of the instance owner.
  40980. //
  40981. // * placement-group-name - The name of the placement group for the instance.
  40982. //
  40983. // * placement-partition-number - The partition in which the instance is
  40984. // located.
  40985. //
  40986. // * platform - The platform. Use windows if you have Windows instances;
  40987. // otherwise, leave blank.
  40988. //
  40989. // * private-dns-name - The private IPv4 DNS name of the instance.
  40990. //
  40991. // * private-ip-address - The private IPv4 address of the instance.
  40992. //
  40993. // * product-code - The product code associated with the AMI used to launch
  40994. // the instance.
  40995. //
  40996. // * product-code.type - The type of product code (devpay | marketplace).
  40997. //
  40998. // * ramdisk-id - The RAM disk ID.
  40999. //
  41000. // * reason - The reason for the current state of the instance (for example,
  41001. // shows "User Initiated [date]" when you stop or terminate the instance).
  41002. // Similar to the state-reason-code filter.
  41003. //
  41004. // * requester-id - The ID of the entity that launched the instance on your
  41005. // behalf (for example, AWS Management Console, Auto Scaling, and so on).
  41006. //
  41007. // * reservation-id - The ID of the instance's reservation. A reservation
  41008. // ID is created any time you launch an instance. A reservation ID has a
  41009. // one-to-one relationship with an instance launch request, but can be associated
  41010. // with more than one instance if you launch multiple instances using the
  41011. // same launch request. For example, if you launch one instance, you get
  41012. // one reservation ID. If you launch ten instances using the same launch
  41013. // request, you also get one reservation ID.
  41014. //
  41015. // * root-device-name - The device name of the root device volume (for example,
  41016. // /dev/sda1).
  41017. //
  41018. // * root-device-type - The type of the root device volume (ebs | instance-store).
  41019. //
  41020. // * source-dest-check - Indicates whether the instance performs source/destination
  41021. // checking. A value of true means that checking is enabled, and false means
  41022. // that checking is disabled. The value must be false for the instance to
  41023. // perform network address translation (NAT) in your VPC.
  41024. //
  41025. // * spot-instance-request-id - The ID of the Spot Instance request.
  41026. //
  41027. // * state-reason-code - The reason code for the state change.
  41028. //
  41029. // * state-reason-message - A message that describes the state change.
  41030. //
  41031. // * subnet-id - The ID of the subnet for the instance.
  41032. //
  41033. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  41034. // Use the tag key in the filter name and the tag value as the filter value.
  41035. // For example, to find all resources that have a tag with the key Owner
  41036. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  41037. // the filter value.
  41038. //
  41039. // * tag-key - The key of a tag assigned to the resource. Use this filter
  41040. // to find all resources that have a tag with a specific key, regardless
  41041. // of the tag value.
  41042. //
  41043. // * tenancy - The tenancy of an instance (dedicated | default | host).
  41044. //
  41045. // * virtualization-type - The virtualization type of the instance (paravirtual
  41046. // | hvm).
  41047. //
  41048. // * vpc-id - The ID of the VPC that the instance is running in.
  41049. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41050. // One or more instance IDs.
  41051. //
  41052. // Default: Describes all your instances.
  41053. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  41054. // The maximum number of results to return in a single call. To retrieve the
  41055. // remaining results, make another call with the returned NextToken value. This
  41056. // value can be between 5 and 1000. You cannot specify this parameter and the
  41057. // instance IDs parameter in the same call.
  41058. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  41059. // The token to request the next page of results.
  41060. NextToken *string `locationName:"nextToken" type:"string"`
  41061. }
  41062. // String returns the string representation
  41063. func (s DescribeInstancesInput) String() string {
  41064. return awsutil.Prettify(s)
  41065. }
  41066. // GoString returns the string representation
  41067. func (s DescribeInstancesInput) GoString() string {
  41068. return s.String()
  41069. }
  41070. // SetDryRun sets the DryRun field's value.
  41071. func (s *DescribeInstancesInput) SetDryRun(v bool) *DescribeInstancesInput {
  41072. s.DryRun = &v
  41073. return s
  41074. }
  41075. // SetFilters sets the Filters field's value.
  41076. func (s *DescribeInstancesInput) SetFilters(v []*Filter) *DescribeInstancesInput {
  41077. s.Filters = v
  41078. return s
  41079. }
  41080. // SetInstanceIds sets the InstanceIds field's value.
  41081. func (s *DescribeInstancesInput) SetInstanceIds(v []*string) *DescribeInstancesInput {
  41082. s.InstanceIds = v
  41083. return s
  41084. }
  41085. // SetMaxResults sets the MaxResults field's value.
  41086. func (s *DescribeInstancesInput) SetMaxResults(v int64) *DescribeInstancesInput {
  41087. s.MaxResults = &v
  41088. return s
  41089. }
  41090. // SetNextToken sets the NextToken field's value.
  41091. func (s *DescribeInstancesInput) SetNextToken(v string) *DescribeInstancesInput {
  41092. s.NextToken = &v
  41093. return s
  41094. }
  41095. type DescribeInstancesOutput struct {
  41096. _ struct{} `type:"structure"`
  41097. // The token to use to retrieve the next page of results. This value is null
  41098. // when there are no more results to return.
  41099. NextToken *string `locationName:"nextToken" type:"string"`
  41100. // Zero or more reservations.
  41101. Reservations []*Reservation `locationName:"reservationSet" locationNameList:"item" type:"list"`
  41102. }
  41103. // String returns the string representation
  41104. func (s DescribeInstancesOutput) String() string {
  41105. return awsutil.Prettify(s)
  41106. }
  41107. // GoString returns the string representation
  41108. func (s DescribeInstancesOutput) GoString() string {
  41109. return s.String()
  41110. }
  41111. // SetNextToken sets the NextToken field's value.
  41112. func (s *DescribeInstancesOutput) SetNextToken(v string) *DescribeInstancesOutput {
  41113. s.NextToken = &v
  41114. return s
  41115. }
  41116. // SetReservations sets the Reservations field's value.
  41117. func (s *DescribeInstancesOutput) SetReservations(v []*Reservation) *DescribeInstancesOutput {
  41118. s.Reservations = v
  41119. return s
  41120. }
  41121. type DescribeInternetGatewaysInput struct {
  41122. _ struct{} `type:"structure"`
  41123. // Checks whether you have the required permissions for the action, without
  41124. // actually making the request, and provides an error response. If you have
  41125. // the required permissions, the error response is DryRunOperation. Otherwise,
  41126. // it is UnauthorizedOperation.
  41127. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41128. // One or more filters.
  41129. //
  41130. // * attachment.state - The current state of the attachment between the gateway
  41131. // and the VPC (available). Present only if a VPC is attached.
  41132. //
  41133. // * attachment.vpc-id - The ID of an attached VPC.
  41134. //
  41135. // * internet-gateway-id - The ID of the Internet gateway.
  41136. //
  41137. // * owner-id - The ID of the AWS account that owns the internet gateway.
  41138. //
  41139. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  41140. // Use the tag key in the filter name and the tag value as the filter value.
  41141. // For example, to find all resources that have a tag with the key Owner
  41142. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  41143. // the filter value.
  41144. //
  41145. // * tag-key - The key of a tag assigned to the resource. Use this filter
  41146. // to find all resources assigned a tag with a specific key, regardless of
  41147. // the tag value.
  41148. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41149. // One or more internet gateway IDs.
  41150. //
  41151. // Default: Describes all your internet gateways.
  41152. InternetGatewayIds []*string `locationName:"internetGatewayId" locationNameList:"item" type:"list"`
  41153. }
  41154. // String returns the string representation
  41155. func (s DescribeInternetGatewaysInput) String() string {
  41156. return awsutil.Prettify(s)
  41157. }
  41158. // GoString returns the string representation
  41159. func (s DescribeInternetGatewaysInput) GoString() string {
  41160. return s.String()
  41161. }
  41162. // SetDryRun sets the DryRun field's value.
  41163. func (s *DescribeInternetGatewaysInput) SetDryRun(v bool) *DescribeInternetGatewaysInput {
  41164. s.DryRun = &v
  41165. return s
  41166. }
  41167. // SetFilters sets the Filters field's value.
  41168. func (s *DescribeInternetGatewaysInput) SetFilters(v []*Filter) *DescribeInternetGatewaysInput {
  41169. s.Filters = v
  41170. return s
  41171. }
  41172. // SetInternetGatewayIds sets the InternetGatewayIds field's value.
  41173. func (s *DescribeInternetGatewaysInput) SetInternetGatewayIds(v []*string) *DescribeInternetGatewaysInput {
  41174. s.InternetGatewayIds = v
  41175. return s
  41176. }
  41177. type DescribeInternetGatewaysOutput struct {
  41178. _ struct{} `type:"structure"`
  41179. // Information about one or more internet gateways.
  41180. InternetGateways []*InternetGateway `locationName:"internetGatewaySet" locationNameList:"item" type:"list"`
  41181. }
  41182. // String returns the string representation
  41183. func (s DescribeInternetGatewaysOutput) String() string {
  41184. return awsutil.Prettify(s)
  41185. }
  41186. // GoString returns the string representation
  41187. func (s DescribeInternetGatewaysOutput) GoString() string {
  41188. return s.String()
  41189. }
  41190. // SetInternetGateways sets the InternetGateways field's value.
  41191. func (s *DescribeInternetGatewaysOutput) SetInternetGateways(v []*InternetGateway) *DescribeInternetGatewaysOutput {
  41192. s.InternetGateways = v
  41193. return s
  41194. }
  41195. type DescribeKeyPairsInput struct {
  41196. _ struct{} `type:"structure"`
  41197. // Checks whether you have the required permissions for the action, without
  41198. // actually making the request, and provides an error response. If you have
  41199. // the required permissions, the error response is DryRunOperation. Otherwise,
  41200. // it is UnauthorizedOperation.
  41201. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41202. // One or more filters.
  41203. //
  41204. // * fingerprint - The fingerprint of the key pair.
  41205. //
  41206. // * key-name - The name of the key pair.
  41207. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41208. // One or more key pair names.
  41209. //
  41210. // Default: Describes all your key pairs.
  41211. KeyNames []*string `locationName:"KeyName" locationNameList:"KeyName" type:"list"`
  41212. }
  41213. // String returns the string representation
  41214. func (s DescribeKeyPairsInput) String() string {
  41215. return awsutil.Prettify(s)
  41216. }
  41217. // GoString returns the string representation
  41218. func (s DescribeKeyPairsInput) GoString() string {
  41219. return s.String()
  41220. }
  41221. // SetDryRun sets the DryRun field's value.
  41222. func (s *DescribeKeyPairsInput) SetDryRun(v bool) *DescribeKeyPairsInput {
  41223. s.DryRun = &v
  41224. return s
  41225. }
  41226. // SetFilters sets the Filters field's value.
  41227. func (s *DescribeKeyPairsInput) SetFilters(v []*Filter) *DescribeKeyPairsInput {
  41228. s.Filters = v
  41229. return s
  41230. }
  41231. // SetKeyNames sets the KeyNames field's value.
  41232. func (s *DescribeKeyPairsInput) SetKeyNames(v []*string) *DescribeKeyPairsInput {
  41233. s.KeyNames = v
  41234. return s
  41235. }
  41236. type DescribeKeyPairsOutput struct {
  41237. _ struct{} `type:"structure"`
  41238. // Information about one or more key pairs.
  41239. KeyPairs []*KeyPairInfo `locationName:"keySet" locationNameList:"item" type:"list"`
  41240. }
  41241. // String returns the string representation
  41242. func (s DescribeKeyPairsOutput) String() string {
  41243. return awsutil.Prettify(s)
  41244. }
  41245. // GoString returns the string representation
  41246. func (s DescribeKeyPairsOutput) GoString() string {
  41247. return s.String()
  41248. }
  41249. // SetKeyPairs sets the KeyPairs field's value.
  41250. func (s *DescribeKeyPairsOutput) SetKeyPairs(v []*KeyPairInfo) *DescribeKeyPairsOutput {
  41251. s.KeyPairs = v
  41252. return s
  41253. }
  41254. type DescribeLaunchTemplateVersionsInput struct {
  41255. _ struct{} `type:"structure"`
  41256. // Checks whether you have the required permissions for the action, without
  41257. // actually making the request, and provides an error response. If you have
  41258. // the required permissions, the error response is DryRunOperation. Otherwise,
  41259. // it is UnauthorizedOperation.
  41260. DryRun *bool `type:"boolean"`
  41261. // One or more filters.
  41262. //
  41263. // * create-time - The time the launch template version was created.
  41264. //
  41265. // * ebs-optimized - A boolean that indicates whether the instance is optimized
  41266. // for Amazon EBS I/O.
  41267. //
  41268. // * iam-instance-profile - The ARN of the IAM instance profile.
  41269. //
  41270. // * image-id - The ID of the AMI.
  41271. //
  41272. // * instance-type - The instance type.
  41273. //
  41274. // * is-default-version - A boolean that indicates whether the launch template
  41275. // version is the default version.
  41276. //
  41277. // * kernel-id - The kernel ID.
  41278. //
  41279. // * ram-disk-id - The RAM disk ID.
  41280. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41281. // The ID of the launch template. You must specify either the launch template
  41282. // ID or launch template name in the request.
  41283. LaunchTemplateId *string `type:"string"`
  41284. // The name of the launch template. You must specify either the launch template
  41285. // ID or launch template name in the request.
  41286. LaunchTemplateName *string `min:"3" type:"string"`
  41287. // The maximum number of results to return in a single call. To retrieve the
  41288. // remaining results, make another call with the returned NextToken value. This
  41289. // value can be between 1 and 200.
  41290. MaxResults *int64 `type:"integer"`
  41291. // The version number up to which to describe launch template versions.
  41292. MaxVersion *string `type:"string"`
  41293. // The version number after which to describe launch template versions.
  41294. MinVersion *string `type:"string"`
  41295. // The token to request the next page of results.
  41296. NextToken *string `type:"string"`
  41297. // One or more versions of the launch template.
  41298. Versions []*string `locationName:"LaunchTemplateVersion" locationNameList:"item" type:"list"`
  41299. }
  41300. // String returns the string representation
  41301. func (s DescribeLaunchTemplateVersionsInput) String() string {
  41302. return awsutil.Prettify(s)
  41303. }
  41304. // GoString returns the string representation
  41305. func (s DescribeLaunchTemplateVersionsInput) GoString() string {
  41306. return s.String()
  41307. }
  41308. // Validate inspects the fields of the type to determine if they are valid.
  41309. func (s *DescribeLaunchTemplateVersionsInput) Validate() error {
  41310. invalidParams := request.ErrInvalidParams{Context: "DescribeLaunchTemplateVersionsInput"}
  41311. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  41312. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  41313. }
  41314. if invalidParams.Len() > 0 {
  41315. return invalidParams
  41316. }
  41317. return nil
  41318. }
  41319. // SetDryRun sets the DryRun field's value.
  41320. func (s *DescribeLaunchTemplateVersionsInput) SetDryRun(v bool) *DescribeLaunchTemplateVersionsInput {
  41321. s.DryRun = &v
  41322. return s
  41323. }
  41324. // SetFilters sets the Filters field's value.
  41325. func (s *DescribeLaunchTemplateVersionsInput) SetFilters(v []*Filter) *DescribeLaunchTemplateVersionsInput {
  41326. s.Filters = v
  41327. return s
  41328. }
  41329. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  41330. func (s *DescribeLaunchTemplateVersionsInput) SetLaunchTemplateId(v string) *DescribeLaunchTemplateVersionsInput {
  41331. s.LaunchTemplateId = &v
  41332. return s
  41333. }
  41334. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  41335. func (s *DescribeLaunchTemplateVersionsInput) SetLaunchTemplateName(v string) *DescribeLaunchTemplateVersionsInput {
  41336. s.LaunchTemplateName = &v
  41337. return s
  41338. }
  41339. // SetMaxResults sets the MaxResults field's value.
  41340. func (s *DescribeLaunchTemplateVersionsInput) SetMaxResults(v int64) *DescribeLaunchTemplateVersionsInput {
  41341. s.MaxResults = &v
  41342. return s
  41343. }
  41344. // SetMaxVersion sets the MaxVersion field's value.
  41345. func (s *DescribeLaunchTemplateVersionsInput) SetMaxVersion(v string) *DescribeLaunchTemplateVersionsInput {
  41346. s.MaxVersion = &v
  41347. return s
  41348. }
  41349. // SetMinVersion sets the MinVersion field's value.
  41350. func (s *DescribeLaunchTemplateVersionsInput) SetMinVersion(v string) *DescribeLaunchTemplateVersionsInput {
  41351. s.MinVersion = &v
  41352. return s
  41353. }
  41354. // SetNextToken sets the NextToken field's value.
  41355. func (s *DescribeLaunchTemplateVersionsInput) SetNextToken(v string) *DescribeLaunchTemplateVersionsInput {
  41356. s.NextToken = &v
  41357. return s
  41358. }
  41359. // SetVersions sets the Versions field's value.
  41360. func (s *DescribeLaunchTemplateVersionsInput) SetVersions(v []*string) *DescribeLaunchTemplateVersionsInput {
  41361. s.Versions = v
  41362. return s
  41363. }
  41364. type DescribeLaunchTemplateVersionsOutput struct {
  41365. _ struct{} `type:"structure"`
  41366. // Information about the launch template versions.
  41367. LaunchTemplateVersions []*LaunchTemplateVersion `locationName:"launchTemplateVersionSet" locationNameList:"item" type:"list"`
  41368. // The token to use to retrieve the next page of results. This value is null
  41369. // when there are no more results to return.
  41370. NextToken *string `locationName:"nextToken" type:"string"`
  41371. }
  41372. // String returns the string representation
  41373. func (s DescribeLaunchTemplateVersionsOutput) String() string {
  41374. return awsutil.Prettify(s)
  41375. }
  41376. // GoString returns the string representation
  41377. func (s DescribeLaunchTemplateVersionsOutput) GoString() string {
  41378. return s.String()
  41379. }
  41380. // SetLaunchTemplateVersions sets the LaunchTemplateVersions field's value.
  41381. func (s *DescribeLaunchTemplateVersionsOutput) SetLaunchTemplateVersions(v []*LaunchTemplateVersion) *DescribeLaunchTemplateVersionsOutput {
  41382. s.LaunchTemplateVersions = v
  41383. return s
  41384. }
  41385. // SetNextToken sets the NextToken field's value.
  41386. func (s *DescribeLaunchTemplateVersionsOutput) SetNextToken(v string) *DescribeLaunchTemplateVersionsOutput {
  41387. s.NextToken = &v
  41388. return s
  41389. }
  41390. type DescribeLaunchTemplatesInput struct {
  41391. _ struct{} `type:"structure"`
  41392. // Checks whether you have the required permissions for the action, without
  41393. // actually making the request, and provides an error response. If you have
  41394. // the required permissions, the error response is DryRunOperation. Otherwise,
  41395. // it is UnauthorizedOperation.
  41396. DryRun *bool `type:"boolean"`
  41397. // One or more filters.
  41398. //
  41399. // * create-time - The time the launch template was created.
  41400. //
  41401. // * launch-template-name - The name of the launch template.
  41402. //
  41403. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  41404. // Use the tag key in the filter name and the tag value as the filter value.
  41405. // For example, to find all resources that have a tag with the key Owner
  41406. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  41407. // the filter value.
  41408. //
  41409. // * tag-key - The key of a tag assigned to the resource. Use this filter
  41410. // to find all resources assigned a tag with a specific key, regardless of
  41411. // the tag value.
  41412. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41413. // One or more launch template IDs.
  41414. LaunchTemplateIds []*string `locationName:"LaunchTemplateId" locationNameList:"item" type:"list"`
  41415. // One or more launch template names.
  41416. LaunchTemplateNames []*string `locationName:"LaunchTemplateName" locationNameList:"item" type:"list"`
  41417. // The maximum number of results to return in a single call. To retrieve the
  41418. // remaining results, make another call with the returned NextToken value. This
  41419. // value can be between 1 and 200.
  41420. MaxResults *int64 `type:"integer"`
  41421. // The token to request the next page of results.
  41422. NextToken *string `type:"string"`
  41423. }
  41424. // String returns the string representation
  41425. func (s DescribeLaunchTemplatesInput) String() string {
  41426. return awsutil.Prettify(s)
  41427. }
  41428. // GoString returns the string representation
  41429. func (s DescribeLaunchTemplatesInput) GoString() string {
  41430. return s.String()
  41431. }
  41432. // SetDryRun sets the DryRun field's value.
  41433. func (s *DescribeLaunchTemplatesInput) SetDryRun(v bool) *DescribeLaunchTemplatesInput {
  41434. s.DryRun = &v
  41435. return s
  41436. }
  41437. // SetFilters sets the Filters field's value.
  41438. func (s *DescribeLaunchTemplatesInput) SetFilters(v []*Filter) *DescribeLaunchTemplatesInput {
  41439. s.Filters = v
  41440. return s
  41441. }
  41442. // SetLaunchTemplateIds sets the LaunchTemplateIds field's value.
  41443. func (s *DescribeLaunchTemplatesInput) SetLaunchTemplateIds(v []*string) *DescribeLaunchTemplatesInput {
  41444. s.LaunchTemplateIds = v
  41445. return s
  41446. }
  41447. // SetLaunchTemplateNames sets the LaunchTemplateNames field's value.
  41448. func (s *DescribeLaunchTemplatesInput) SetLaunchTemplateNames(v []*string) *DescribeLaunchTemplatesInput {
  41449. s.LaunchTemplateNames = v
  41450. return s
  41451. }
  41452. // SetMaxResults sets the MaxResults field's value.
  41453. func (s *DescribeLaunchTemplatesInput) SetMaxResults(v int64) *DescribeLaunchTemplatesInput {
  41454. s.MaxResults = &v
  41455. return s
  41456. }
  41457. // SetNextToken sets the NextToken field's value.
  41458. func (s *DescribeLaunchTemplatesInput) SetNextToken(v string) *DescribeLaunchTemplatesInput {
  41459. s.NextToken = &v
  41460. return s
  41461. }
  41462. type DescribeLaunchTemplatesOutput struct {
  41463. _ struct{} `type:"structure"`
  41464. // Information about the launch templates.
  41465. LaunchTemplates []*LaunchTemplate `locationName:"launchTemplates" locationNameList:"item" type:"list"`
  41466. // The token to use to retrieve the next page of results. This value is null
  41467. // when there are no more results to return.
  41468. NextToken *string `locationName:"nextToken" type:"string"`
  41469. }
  41470. // String returns the string representation
  41471. func (s DescribeLaunchTemplatesOutput) String() string {
  41472. return awsutil.Prettify(s)
  41473. }
  41474. // GoString returns the string representation
  41475. func (s DescribeLaunchTemplatesOutput) GoString() string {
  41476. return s.String()
  41477. }
  41478. // SetLaunchTemplates sets the LaunchTemplates field's value.
  41479. func (s *DescribeLaunchTemplatesOutput) SetLaunchTemplates(v []*LaunchTemplate) *DescribeLaunchTemplatesOutput {
  41480. s.LaunchTemplates = v
  41481. return s
  41482. }
  41483. // SetNextToken sets the NextToken field's value.
  41484. func (s *DescribeLaunchTemplatesOutput) SetNextToken(v string) *DescribeLaunchTemplatesOutput {
  41485. s.NextToken = &v
  41486. return s
  41487. }
  41488. type DescribeMovingAddressesInput struct {
  41489. _ struct{} `type:"structure"`
  41490. // Checks whether you have the required permissions for the action, without
  41491. // actually making the request, and provides an error response. If you have
  41492. // the required permissions, the error response is DryRunOperation. Otherwise,
  41493. // it is UnauthorizedOperation.
  41494. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41495. // One or more filters.
  41496. //
  41497. // * moving-status - The status of the Elastic IP address (MovingToVpc |
  41498. // RestoringToClassic).
  41499. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  41500. // The maximum number of results to return for the request in a single page.
  41501. // The remaining results of the initial request can be seen by sending another
  41502. // request with the returned NextToken value. This value can be between 5 and
  41503. // 1000; if MaxResults is given a value outside of this range, an error is returned.
  41504. //
  41505. // Default: If no value is provided, the default is 1000.
  41506. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  41507. // The token for the next page of results.
  41508. NextToken *string `locationName:"nextToken" type:"string"`
  41509. // One or more Elastic IP addresses.
  41510. PublicIps []*string `locationName:"publicIp" locationNameList:"item" type:"list"`
  41511. }
  41512. // String returns the string representation
  41513. func (s DescribeMovingAddressesInput) String() string {
  41514. return awsutil.Prettify(s)
  41515. }
  41516. // GoString returns the string representation
  41517. func (s DescribeMovingAddressesInput) GoString() string {
  41518. return s.String()
  41519. }
  41520. // SetDryRun sets the DryRun field's value.
  41521. func (s *DescribeMovingAddressesInput) SetDryRun(v bool) *DescribeMovingAddressesInput {
  41522. s.DryRun = &v
  41523. return s
  41524. }
  41525. // SetFilters sets the Filters field's value.
  41526. func (s *DescribeMovingAddressesInput) SetFilters(v []*Filter) *DescribeMovingAddressesInput {
  41527. s.Filters = v
  41528. return s
  41529. }
  41530. // SetMaxResults sets the MaxResults field's value.
  41531. func (s *DescribeMovingAddressesInput) SetMaxResults(v int64) *DescribeMovingAddressesInput {
  41532. s.MaxResults = &v
  41533. return s
  41534. }
  41535. // SetNextToken sets the NextToken field's value.
  41536. func (s *DescribeMovingAddressesInput) SetNextToken(v string) *DescribeMovingAddressesInput {
  41537. s.NextToken = &v
  41538. return s
  41539. }
  41540. // SetPublicIps sets the PublicIps field's value.
  41541. func (s *DescribeMovingAddressesInput) SetPublicIps(v []*string) *DescribeMovingAddressesInput {
  41542. s.PublicIps = v
  41543. return s
  41544. }
  41545. type DescribeMovingAddressesOutput struct {
  41546. _ struct{} `type:"structure"`
  41547. // The status for each Elastic IP address.
  41548. MovingAddressStatuses []*MovingAddressStatus `locationName:"movingAddressStatusSet" locationNameList:"item" type:"list"`
  41549. // The token to use to retrieve the next page of results. This value is null
  41550. // when there are no more results to return.
  41551. NextToken *string `locationName:"nextToken" type:"string"`
  41552. }
  41553. // String returns the string representation
  41554. func (s DescribeMovingAddressesOutput) String() string {
  41555. return awsutil.Prettify(s)
  41556. }
  41557. // GoString returns the string representation
  41558. func (s DescribeMovingAddressesOutput) GoString() string {
  41559. return s.String()
  41560. }
  41561. // SetMovingAddressStatuses sets the MovingAddressStatuses field's value.
  41562. func (s *DescribeMovingAddressesOutput) SetMovingAddressStatuses(v []*MovingAddressStatus) *DescribeMovingAddressesOutput {
  41563. s.MovingAddressStatuses = v
  41564. return s
  41565. }
  41566. // SetNextToken sets the NextToken field's value.
  41567. func (s *DescribeMovingAddressesOutput) SetNextToken(v string) *DescribeMovingAddressesOutput {
  41568. s.NextToken = &v
  41569. return s
  41570. }
  41571. type DescribeNatGatewaysInput struct {
  41572. _ struct{} `type:"structure"`
  41573. // One or more filters.
  41574. //
  41575. // * nat-gateway-id - The ID of the NAT gateway.
  41576. //
  41577. // * state - The state of the NAT gateway (pending | failed | available |
  41578. // deleting | deleted).
  41579. //
  41580. // * subnet-id - The ID of the subnet in which the NAT gateway resides.
  41581. //
  41582. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  41583. // Use the tag key in the filter name and the tag value as the filter value.
  41584. // For example, to find all resources that have a tag with the key Owner
  41585. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  41586. // the filter value.
  41587. //
  41588. // * tag-key - The key of a tag assigned to the resource. Use this filter
  41589. // to find all resources assigned a tag with a specific key, regardless of
  41590. // the tag value.
  41591. //
  41592. // * vpc-id - The ID of the VPC in which the NAT gateway resides.
  41593. Filter []*Filter `locationNameList:"Filter" type:"list"`
  41594. // The maximum number of items to return for this request. The request returns
  41595. // a token that you can specify in a subsequent call to get the next set of
  41596. // results.
  41597. //
  41598. // Constraint: If the value specified is greater than 1000, we return only 1000
  41599. // items.
  41600. MaxResults *int64 `type:"integer"`
  41601. // One or more NAT gateway IDs.
  41602. NatGatewayIds []*string `locationName:"NatGatewayId" locationNameList:"item" type:"list"`
  41603. // The token to retrieve the next page of results.
  41604. NextToken *string `type:"string"`
  41605. }
  41606. // String returns the string representation
  41607. func (s DescribeNatGatewaysInput) String() string {
  41608. return awsutil.Prettify(s)
  41609. }
  41610. // GoString returns the string representation
  41611. func (s DescribeNatGatewaysInput) GoString() string {
  41612. return s.String()
  41613. }
  41614. // SetFilter sets the Filter field's value.
  41615. func (s *DescribeNatGatewaysInput) SetFilter(v []*Filter) *DescribeNatGatewaysInput {
  41616. s.Filter = v
  41617. return s
  41618. }
  41619. // SetMaxResults sets the MaxResults field's value.
  41620. func (s *DescribeNatGatewaysInput) SetMaxResults(v int64) *DescribeNatGatewaysInput {
  41621. s.MaxResults = &v
  41622. return s
  41623. }
  41624. // SetNatGatewayIds sets the NatGatewayIds field's value.
  41625. func (s *DescribeNatGatewaysInput) SetNatGatewayIds(v []*string) *DescribeNatGatewaysInput {
  41626. s.NatGatewayIds = v
  41627. return s
  41628. }
  41629. // SetNextToken sets the NextToken field's value.
  41630. func (s *DescribeNatGatewaysInput) SetNextToken(v string) *DescribeNatGatewaysInput {
  41631. s.NextToken = &v
  41632. return s
  41633. }
  41634. type DescribeNatGatewaysOutput struct {
  41635. _ struct{} `type:"structure"`
  41636. // Information about the NAT gateways.
  41637. NatGateways []*NatGateway `locationName:"natGatewaySet" locationNameList:"item" type:"list"`
  41638. // The token to use to retrieve the next page of results. This value is null
  41639. // when there are no more results to return.
  41640. NextToken *string `locationName:"nextToken" type:"string"`
  41641. }
  41642. // String returns the string representation
  41643. func (s DescribeNatGatewaysOutput) String() string {
  41644. return awsutil.Prettify(s)
  41645. }
  41646. // GoString returns the string representation
  41647. func (s DescribeNatGatewaysOutput) GoString() string {
  41648. return s.String()
  41649. }
  41650. // SetNatGateways sets the NatGateways field's value.
  41651. func (s *DescribeNatGatewaysOutput) SetNatGateways(v []*NatGateway) *DescribeNatGatewaysOutput {
  41652. s.NatGateways = v
  41653. return s
  41654. }
  41655. // SetNextToken sets the NextToken field's value.
  41656. func (s *DescribeNatGatewaysOutput) SetNextToken(v string) *DescribeNatGatewaysOutput {
  41657. s.NextToken = &v
  41658. return s
  41659. }
  41660. type DescribeNetworkAclsInput struct {
  41661. _ struct{} `type:"structure"`
  41662. // Checks whether you have the required permissions for the action, without
  41663. // actually making the request, and provides an error response. If you have
  41664. // the required permissions, the error response is DryRunOperation. Otherwise,
  41665. // it is UnauthorizedOperation.
  41666. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41667. // One or more filters.
  41668. //
  41669. // * association.association-id - The ID of an association ID for the ACL.
  41670. //
  41671. // * association.network-acl-id - The ID of the network ACL involved in the
  41672. // association.
  41673. //
  41674. // * association.subnet-id - The ID of the subnet involved in the association.
  41675. //
  41676. // * default - Indicates whether the ACL is the default network ACL for the
  41677. // VPC.
  41678. //
  41679. // * entry.cidr - The IPv4 CIDR range specified in the entry.
  41680. //
  41681. // * entry.icmp.code - The ICMP code specified in the entry, if any.
  41682. //
  41683. // * entry.icmp.type - The ICMP type specified in the entry, if any.
  41684. //
  41685. // * entry.ipv6-cidr - The IPv6 CIDR range specified in the entry.
  41686. //
  41687. // * entry.port-range.from - The start of the port range specified in the
  41688. // entry.
  41689. //
  41690. // * entry.port-range.to - The end of the port range specified in the entry.
  41691. //
  41692. //
  41693. // * entry.protocol - The protocol specified in the entry (tcp | udp | icmp
  41694. // or a protocol number).
  41695. //
  41696. // * entry.rule-action - Allows or denies the matching traffic (allow | deny).
  41697. //
  41698. // * entry.rule-number - The number of an entry (in other words, rule) in
  41699. // the set of ACL entries.
  41700. //
  41701. // * network-acl-id - The ID of the network ACL.
  41702. //
  41703. // * owner-id - The ID of the AWS account that owns the network ACL.
  41704. //
  41705. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  41706. // Use the tag key in the filter name and the tag value as the filter value.
  41707. // For example, to find all resources that have a tag with the key Owner
  41708. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  41709. // the filter value.
  41710. //
  41711. // * tag-key - The key of a tag assigned to the resource. Use this filter
  41712. // to find all resources assigned a tag with a specific key, regardless of
  41713. // the tag value.
  41714. //
  41715. // * vpc-id - The ID of the VPC for the network ACL.
  41716. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41717. // One or more network ACL IDs.
  41718. //
  41719. // Default: Describes all your network ACLs.
  41720. NetworkAclIds []*string `locationName:"NetworkAclId" locationNameList:"item" type:"list"`
  41721. }
  41722. // String returns the string representation
  41723. func (s DescribeNetworkAclsInput) String() string {
  41724. return awsutil.Prettify(s)
  41725. }
  41726. // GoString returns the string representation
  41727. func (s DescribeNetworkAclsInput) GoString() string {
  41728. return s.String()
  41729. }
  41730. // SetDryRun sets the DryRun field's value.
  41731. func (s *DescribeNetworkAclsInput) SetDryRun(v bool) *DescribeNetworkAclsInput {
  41732. s.DryRun = &v
  41733. return s
  41734. }
  41735. // SetFilters sets the Filters field's value.
  41736. func (s *DescribeNetworkAclsInput) SetFilters(v []*Filter) *DescribeNetworkAclsInput {
  41737. s.Filters = v
  41738. return s
  41739. }
  41740. // SetNetworkAclIds sets the NetworkAclIds field's value.
  41741. func (s *DescribeNetworkAclsInput) SetNetworkAclIds(v []*string) *DescribeNetworkAclsInput {
  41742. s.NetworkAclIds = v
  41743. return s
  41744. }
  41745. type DescribeNetworkAclsOutput struct {
  41746. _ struct{} `type:"structure"`
  41747. // Information about one or more network ACLs.
  41748. NetworkAcls []*NetworkAcl `locationName:"networkAclSet" locationNameList:"item" type:"list"`
  41749. }
  41750. // String returns the string representation
  41751. func (s DescribeNetworkAclsOutput) String() string {
  41752. return awsutil.Prettify(s)
  41753. }
  41754. // GoString returns the string representation
  41755. func (s DescribeNetworkAclsOutput) GoString() string {
  41756. return s.String()
  41757. }
  41758. // SetNetworkAcls sets the NetworkAcls field's value.
  41759. func (s *DescribeNetworkAclsOutput) SetNetworkAcls(v []*NetworkAcl) *DescribeNetworkAclsOutput {
  41760. s.NetworkAcls = v
  41761. return s
  41762. }
  41763. // Contains the parameters for DescribeNetworkInterfaceAttribute.
  41764. type DescribeNetworkInterfaceAttributeInput struct {
  41765. _ struct{} `type:"structure"`
  41766. // The attribute of the network interface. This parameter is required.
  41767. Attribute *string `locationName:"attribute" type:"string" enum:"NetworkInterfaceAttribute"`
  41768. // Checks whether you have the required permissions for the action, without
  41769. // actually making the request, and provides an error response. If you have
  41770. // the required permissions, the error response is DryRunOperation. Otherwise,
  41771. // it is UnauthorizedOperation.
  41772. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41773. // The ID of the network interface.
  41774. //
  41775. // NetworkInterfaceId is a required field
  41776. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  41777. }
  41778. // String returns the string representation
  41779. func (s DescribeNetworkInterfaceAttributeInput) String() string {
  41780. return awsutil.Prettify(s)
  41781. }
  41782. // GoString returns the string representation
  41783. func (s DescribeNetworkInterfaceAttributeInput) GoString() string {
  41784. return s.String()
  41785. }
  41786. // Validate inspects the fields of the type to determine if they are valid.
  41787. func (s *DescribeNetworkInterfaceAttributeInput) Validate() error {
  41788. invalidParams := request.ErrInvalidParams{Context: "DescribeNetworkInterfaceAttributeInput"}
  41789. if s.NetworkInterfaceId == nil {
  41790. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  41791. }
  41792. if invalidParams.Len() > 0 {
  41793. return invalidParams
  41794. }
  41795. return nil
  41796. }
  41797. // SetAttribute sets the Attribute field's value.
  41798. func (s *DescribeNetworkInterfaceAttributeInput) SetAttribute(v string) *DescribeNetworkInterfaceAttributeInput {
  41799. s.Attribute = &v
  41800. return s
  41801. }
  41802. // SetDryRun sets the DryRun field's value.
  41803. func (s *DescribeNetworkInterfaceAttributeInput) SetDryRun(v bool) *DescribeNetworkInterfaceAttributeInput {
  41804. s.DryRun = &v
  41805. return s
  41806. }
  41807. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  41808. func (s *DescribeNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeInput {
  41809. s.NetworkInterfaceId = &v
  41810. return s
  41811. }
  41812. // Contains the output of DescribeNetworkInterfaceAttribute.
  41813. type DescribeNetworkInterfaceAttributeOutput struct {
  41814. _ struct{} `type:"structure"`
  41815. // The attachment (if any) of the network interface.
  41816. Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  41817. // The description of the network interface.
  41818. Description *AttributeValue `locationName:"description" type:"structure"`
  41819. // The security groups associated with the network interface.
  41820. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  41821. // The ID of the network interface.
  41822. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  41823. // Indicates whether source/destination checking is enabled.
  41824. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  41825. }
  41826. // String returns the string representation
  41827. func (s DescribeNetworkInterfaceAttributeOutput) String() string {
  41828. return awsutil.Prettify(s)
  41829. }
  41830. // GoString returns the string representation
  41831. func (s DescribeNetworkInterfaceAttributeOutput) GoString() string {
  41832. return s.String()
  41833. }
  41834. // SetAttachment sets the Attachment field's value.
  41835. func (s *DescribeNetworkInterfaceAttributeOutput) SetAttachment(v *NetworkInterfaceAttachment) *DescribeNetworkInterfaceAttributeOutput {
  41836. s.Attachment = v
  41837. return s
  41838. }
  41839. // SetDescription sets the Description field's value.
  41840. func (s *DescribeNetworkInterfaceAttributeOutput) SetDescription(v *AttributeValue) *DescribeNetworkInterfaceAttributeOutput {
  41841. s.Description = v
  41842. return s
  41843. }
  41844. // SetGroups sets the Groups field's value.
  41845. func (s *DescribeNetworkInterfaceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeNetworkInterfaceAttributeOutput {
  41846. s.Groups = v
  41847. return s
  41848. }
  41849. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  41850. func (s *DescribeNetworkInterfaceAttributeOutput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeOutput {
  41851. s.NetworkInterfaceId = &v
  41852. return s
  41853. }
  41854. // SetSourceDestCheck sets the SourceDestCheck field's value.
  41855. func (s *DescribeNetworkInterfaceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeNetworkInterfaceAttributeOutput {
  41856. s.SourceDestCheck = v
  41857. return s
  41858. }
  41859. // Contains the parameters for DescribeNetworkInterfacePermissions.
  41860. type DescribeNetworkInterfacePermissionsInput struct {
  41861. _ struct{} `type:"structure"`
  41862. // One or more filters.
  41863. //
  41864. // * network-interface-permission.network-interface-permission-id - The ID
  41865. // of the permission.
  41866. //
  41867. // * network-interface-permission.network-interface-id - The ID of the network
  41868. // interface.
  41869. //
  41870. // * network-interface-permission.aws-account-id - The AWS account ID.
  41871. //
  41872. // * network-interface-permission.aws-service - The AWS service.
  41873. //
  41874. // * network-interface-permission.permission - The type of permission (INSTANCE-ATTACH
  41875. // | EIP-ASSOCIATE).
  41876. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  41877. // The maximum number of results to return in a single call. To retrieve the
  41878. // remaining results, make another call with the returned NextToken value. If
  41879. // this parameter is not specified, up to 50 results are returned by default.
  41880. MaxResults *int64 `type:"integer"`
  41881. // One or more network interface permission IDs.
  41882. NetworkInterfacePermissionIds []*string `locationName:"NetworkInterfacePermissionId" type:"list"`
  41883. // The token to request the next page of results.
  41884. NextToken *string `type:"string"`
  41885. }
  41886. // String returns the string representation
  41887. func (s DescribeNetworkInterfacePermissionsInput) String() string {
  41888. return awsutil.Prettify(s)
  41889. }
  41890. // GoString returns the string representation
  41891. func (s DescribeNetworkInterfacePermissionsInput) GoString() string {
  41892. return s.String()
  41893. }
  41894. // SetFilters sets the Filters field's value.
  41895. func (s *DescribeNetworkInterfacePermissionsInput) SetFilters(v []*Filter) *DescribeNetworkInterfacePermissionsInput {
  41896. s.Filters = v
  41897. return s
  41898. }
  41899. // SetMaxResults sets the MaxResults field's value.
  41900. func (s *DescribeNetworkInterfacePermissionsInput) SetMaxResults(v int64) *DescribeNetworkInterfacePermissionsInput {
  41901. s.MaxResults = &v
  41902. return s
  41903. }
  41904. // SetNetworkInterfacePermissionIds sets the NetworkInterfacePermissionIds field's value.
  41905. func (s *DescribeNetworkInterfacePermissionsInput) SetNetworkInterfacePermissionIds(v []*string) *DescribeNetworkInterfacePermissionsInput {
  41906. s.NetworkInterfacePermissionIds = v
  41907. return s
  41908. }
  41909. // SetNextToken sets the NextToken field's value.
  41910. func (s *DescribeNetworkInterfacePermissionsInput) SetNextToken(v string) *DescribeNetworkInterfacePermissionsInput {
  41911. s.NextToken = &v
  41912. return s
  41913. }
  41914. // Contains the output for DescribeNetworkInterfacePermissions.
  41915. type DescribeNetworkInterfacePermissionsOutput struct {
  41916. _ struct{} `type:"structure"`
  41917. // The network interface permissions.
  41918. NetworkInterfacePermissions []*NetworkInterfacePermission `locationName:"networkInterfacePermissions" locationNameList:"item" type:"list"`
  41919. // The token to use to retrieve the next page of results.
  41920. NextToken *string `locationName:"nextToken" type:"string"`
  41921. }
  41922. // String returns the string representation
  41923. func (s DescribeNetworkInterfacePermissionsOutput) String() string {
  41924. return awsutil.Prettify(s)
  41925. }
  41926. // GoString returns the string representation
  41927. func (s DescribeNetworkInterfacePermissionsOutput) GoString() string {
  41928. return s.String()
  41929. }
  41930. // SetNetworkInterfacePermissions sets the NetworkInterfacePermissions field's value.
  41931. func (s *DescribeNetworkInterfacePermissionsOutput) SetNetworkInterfacePermissions(v []*NetworkInterfacePermission) *DescribeNetworkInterfacePermissionsOutput {
  41932. s.NetworkInterfacePermissions = v
  41933. return s
  41934. }
  41935. // SetNextToken sets the NextToken field's value.
  41936. func (s *DescribeNetworkInterfacePermissionsOutput) SetNextToken(v string) *DescribeNetworkInterfacePermissionsOutput {
  41937. s.NextToken = &v
  41938. return s
  41939. }
  41940. // Contains the parameters for DescribeNetworkInterfaces.
  41941. type DescribeNetworkInterfacesInput struct {
  41942. _ struct{} `type:"structure"`
  41943. // Checks whether you have the required permissions for the action, without
  41944. // actually making the request, and provides an error response. If you have
  41945. // the required permissions, the error response is DryRunOperation. Otherwise,
  41946. // it is UnauthorizedOperation.
  41947. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41948. // One or more filters.
  41949. //
  41950. // * addresses.private-ip-address - The private IPv4 addresses associated
  41951. // with the network interface.
  41952. //
  41953. // * addresses.primary - Whether the private IPv4 address is the primary
  41954. // IP address associated with the network interface.
  41955. //
  41956. // * addresses.association.public-ip - The association ID returned when the
  41957. // network interface was associated with the Elastic IP address (IPv4).
  41958. //
  41959. // * addresses.association.owner-id - The owner ID of the addresses associated
  41960. // with the network interface.
  41961. //
  41962. // * association.association-id - The association ID returned when the network
  41963. // interface was associated with an IPv4 address.
  41964. //
  41965. // * association.allocation-id - The allocation ID returned when you allocated
  41966. // the Elastic IP address (IPv4) for your network interface.
  41967. //
  41968. // * association.ip-owner-id - The owner of the Elastic IP address (IPv4)
  41969. // associated with the network interface.
  41970. //
  41971. // * association.public-ip - The address of the Elastic IP address (IPv4)
  41972. // bound to the network interface.
  41973. //
  41974. // * association.public-dns-name - The public DNS name for the network interface
  41975. // (IPv4).
  41976. //
  41977. // * attachment.attachment-id - The ID of the interface attachment.
  41978. //
  41979. // * attachment.attach.time - The time that the network interface was attached
  41980. // to an instance.
  41981. //
  41982. // * attachment.delete-on-termination - Indicates whether the attachment
  41983. // is deleted when an instance is terminated.
  41984. //
  41985. // * attachment.device-index - The device index to which the network interface
  41986. // is attached.
  41987. //
  41988. // * attachment.instance-id - The ID of the instance to which the network
  41989. // interface is attached.
  41990. //
  41991. // * attachment.instance-owner-id - The owner ID of the instance to which
  41992. // the network interface is attached.
  41993. //
  41994. // * attachment.nat-gateway-id - The ID of the NAT gateway to which the network
  41995. // interface is attached.
  41996. //
  41997. // * attachment.status - The status of the attachment (attaching | attached
  41998. // | detaching | detached).
  41999. //
  42000. // * availability-zone - The Availability Zone of the network interface.
  42001. //
  42002. // * description - The description of the network interface.
  42003. //
  42004. // * group-id - The ID of a security group associated with the network interface.
  42005. //
  42006. // * group-name - The name of a security group associated with the network
  42007. // interface.
  42008. //
  42009. // * ipv6-addresses.ipv6-address - An IPv6 address associated with the network
  42010. // interface.
  42011. //
  42012. // * mac-address - The MAC address of the network interface.
  42013. //
  42014. // * network-interface-id - The ID of the network interface.
  42015. //
  42016. // * owner-id - The AWS account ID of the network interface owner.
  42017. //
  42018. // * private-ip-address - The private IPv4 address or addresses of the network
  42019. // interface.
  42020. //
  42021. // * private-dns-name - The private DNS name of the network interface (IPv4).
  42022. //
  42023. // * requester-id - The ID of the entity that launched the instance on your
  42024. // behalf (for example, AWS Management Console, Auto Scaling, and so on).
  42025. //
  42026. // * requester-managed - Indicates whether the network interface is being
  42027. // managed by an AWS service (for example, AWS Management Console, Auto Scaling,
  42028. // and so on).
  42029. //
  42030. // * source-desk-check - Indicates whether the network interface performs
  42031. // source/destination checking. A value of true means checking is enabled,
  42032. // and false means checking is disabled. The value must be false for the
  42033. // network interface to perform network address translation (NAT) in your
  42034. // VPC.
  42035. //
  42036. // * status - The status of the network interface. If the network interface
  42037. // is not attached to an instance, the status is available; if a network
  42038. // interface is attached to an instance the status is in-use.
  42039. //
  42040. // * subnet-id - The ID of the subnet for the network interface.
  42041. //
  42042. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  42043. // Use the tag key in the filter name and the tag value as the filter value.
  42044. // For example, to find all resources that have a tag with the key Owner
  42045. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  42046. // the filter value.
  42047. //
  42048. // * tag-key - The key of a tag assigned to the resource. Use this filter
  42049. // to find all resources assigned a tag with a specific key, regardless of
  42050. // the tag value.
  42051. //
  42052. // * vpc-id - The ID of the VPC for the network interface.
  42053. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  42054. // The maximum number of items to return for this request. The request returns
  42055. // a token that you can specify in a subsequent call to get the next set of
  42056. // results.
  42057. MaxResults *int64 `type:"integer"`
  42058. // One or more network interface IDs.
  42059. //
  42060. // Default: Describes all your network interfaces.
  42061. NetworkInterfaceIds []*string `locationName:"NetworkInterfaceId" locationNameList:"item" type:"list"`
  42062. // The token to retrieve the next page of results.
  42063. NextToken *string `type:"string"`
  42064. }
  42065. // String returns the string representation
  42066. func (s DescribeNetworkInterfacesInput) String() string {
  42067. return awsutil.Prettify(s)
  42068. }
  42069. // GoString returns the string representation
  42070. func (s DescribeNetworkInterfacesInput) GoString() string {
  42071. return s.String()
  42072. }
  42073. // SetDryRun sets the DryRun field's value.
  42074. func (s *DescribeNetworkInterfacesInput) SetDryRun(v bool) *DescribeNetworkInterfacesInput {
  42075. s.DryRun = &v
  42076. return s
  42077. }
  42078. // SetFilters sets the Filters field's value.
  42079. func (s *DescribeNetworkInterfacesInput) SetFilters(v []*Filter) *DescribeNetworkInterfacesInput {
  42080. s.Filters = v
  42081. return s
  42082. }
  42083. // SetMaxResults sets the MaxResults field's value.
  42084. func (s *DescribeNetworkInterfacesInput) SetMaxResults(v int64) *DescribeNetworkInterfacesInput {
  42085. s.MaxResults = &v
  42086. return s
  42087. }
  42088. // SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value.
  42089. func (s *DescribeNetworkInterfacesInput) SetNetworkInterfaceIds(v []*string) *DescribeNetworkInterfacesInput {
  42090. s.NetworkInterfaceIds = v
  42091. return s
  42092. }
  42093. // SetNextToken sets the NextToken field's value.
  42094. func (s *DescribeNetworkInterfacesInput) SetNextToken(v string) *DescribeNetworkInterfacesInput {
  42095. s.NextToken = &v
  42096. return s
  42097. }
  42098. // Contains the output of DescribeNetworkInterfaces.
  42099. type DescribeNetworkInterfacesOutput struct {
  42100. _ struct{} `type:"structure"`
  42101. // Information about one or more network interfaces.
  42102. NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  42103. // The token to use to retrieve the next page of results. This value is null
  42104. // when there are no more results to return.
  42105. NextToken *string `locationName:"nextToken" type:"string"`
  42106. }
  42107. // String returns the string representation
  42108. func (s DescribeNetworkInterfacesOutput) String() string {
  42109. return awsutil.Prettify(s)
  42110. }
  42111. // GoString returns the string representation
  42112. func (s DescribeNetworkInterfacesOutput) GoString() string {
  42113. return s.String()
  42114. }
  42115. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  42116. func (s *DescribeNetworkInterfacesOutput) SetNetworkInterfaces(v []*NetworkInterface) *DescribeNetworkInterfacesOutput {
  42117. s.NetworkInterfaces = v
  42118. return s
  42119. }
  42120. // SetNextToken sets the NextToken field's value.
  42121. func (s *DescribeNetworkInterfacesOutput) SetNextToken(v string) *DescribeNetworkInterfacesOutput {
  42122. s.NextToken = &v
  42123. return s
  42124. }
  42125. type DescribePlacementGroupsInput struct {
  42126. _ struct{} `type:"structure"`
  42127. // Checks whether you have the required permissions for the action, without
  42128. // actually making the request, and provides an error response. If you have
  42129. // the required permissions, the error response is DryRunOperation. Otherwise,
  42130. // it is UnauthorizedOperation.
  42131. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42132. // One or more filters.
  42133. //
  42134. // * group-name - The name of the placement group.
  42135. //
  42136. // * state - The state of the placement group (pending | available | deleting
  42137. // | deleted).
  42138. //
  42139. // * strategy - The strategy of the placement group (cluster | spread | partition).
  42140. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42141. // One or more placement group names.
  42142. //
  42143. // Default: Describes all your placement groups, or only those otherwise specified.
  42144. GroupNames []*string `locationName:"groupName" type:"list"`
  42145. }
  42146. // String returns the string representation
  42147. func (s DescribePlacementGroupsInput) String() string {
  42148. return awsutil.Prettify(s)
  42149. }
  42150. // GoString returns the string representation
  42151. func (s DescribePlacementGroupsInput) GoString() string {
  42152. return s.String()
  42153. }
  42154. // SetDryRun sets the DryRun field's value.
  42155. func (s *DescribePlacementGroupsInput) SetDryRun(v bool) *DescribePlacementGroupsInput {
  42156. s.DryRun = &v
  42157. return s
  42158. }
  42159. // SetFilters sets the Filters field's value.
  42160. func (s *DescribePlacementGroupsInput) SetFilters(v []*Filter) *DescribePlacementGroupsInput {
  42161. s.Filters = v
  42162. return s
  42163. }
  42164. // SetGroupNames sets the GroupNames field's value.
  42165. func (s *DescribePlacementGroupsInput) SetGroupNames(v []*string) *DescribePlacementGroupsInput {
  42166. s.GroupNames = v
  42167. return s
  42168. }
  42169. type DescribePlacementGroupsOutput struct {
  42170. _ struct{} `type:"structure"`
  42171. // One or more placement groups.
  42172. PlacementGroups []*PlacementGroup `locationName:"placementGroupSet" locationNameList:"item" type:"list"`
  42173. }
  42174. // String returns the string representation
  42175. func (s DescribePlacementGroupsOutput) String() string {
  42176. return awsutil.Prettify(s)
  42177. }
  42178. // GoString returns the string representation
  42179. func (s DescribePlacementGroupsOutput) GoString() string {
  42180. return s.String()
  42181. }
  42182. // SetPlacementGroups sets the PlacementGroups field's value.
  42183. func (s *DescribePlacementGroupsOutput) SetPlacementGroups(v []*PlacementGroup) *DescribePlacementGroupsOutput {
  42184. s.PlacementGroups = v
  42185. return s
  42186. }
  42187. type DescribePrefixListsInput struct {
  42188. _ struct{} `type:"structure"`
  42189. // Checks whether you have the required permissions for the action, without
  42190. // actually making the request, and provides an error response. If you have
  42191. // the required permissions, the error response is DryRunOperation. Otherwise,
  42192. // it is UnauthorizedOperation.
  42193. DryRun *bool `type:"boolean"`
  42194. // One or more filters.
  42195. //
  42196. // * prefix-list-id: The ID of a prefix list.
  42197. //
  42198. // * prefix-list-name: The name of a prefix list.
  42199. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42200. // The maximum number of items to return for this request. The request returns
  42201. // a token that you can specify in a subsequent call to get the next set of
  42202. // results.
  42203. //
  42204. // Constraint: If the value specified is greater than 1000, we return only 1000
  42205. // items.
  42206. MaxResults *int64 `type:"integer"`
  42207. // The token for the next set of items to return. (You received this token from
  42208. // a prior call.)
  42209. NextToken *string `type:"string"`
  42210. // One or more prefix list IDs.
  42211. PrefixListIds []*string `locationName:"PrefixListId" locationNameList:"item" type:"list"`
  42212. }
  42213. // String returns the string representation
  42214. func (s DescribePrefixListsInput) String() string {
  42215. return awsutil.Prettify(s)
  42216. }
  42217. // GoString returns the string representation
  42218. func (s DescribePrefixListsInput) GoString() string {
  42219. return s.String()
  42220. }
  42221. // SetDryRun sets the DryRun field's value.
  42222. func (s *DescribePrefixListsInput) SetDryRun(v bool) *DescribePrefixListsInput {
  42223. s.DryRun = &v
  42224. return s
  42225. }
  42226. // SetFilters sets the Filters field's value.
  42227. func (s *DescribePrefixListsInput) SetFilters(v []*Filter) *DescribePrefixListsInput {
  42228. s.Filters = v
  42229. return s
  42230. }
  42231. // SetMaxResults sets the MaxResults field's value.
  42232. func (s *DescribePrefixListsInput) SetMaxResults(v int64) *DescribePrefixListsInput {
  42233. s.MaxResults = &v
  42234. return s
  42235. }
  42236. // SetNextToken sets the NextToken field's value.
  42237. func (s *DescribePrefixListsInput) SetNextToken(v string) *DescribePrefixListsInput {
  42238. s.NextToken = &v
  42239. return s
  42240. }
  42241. // SetPrefixListIds sets the PrefixListIds field's value.
  42242. func (s *DescribePrefixListsInput) SetPrefixListIds(v []*string) *DescribePrefixListsInput {
  42243. s.PrefixListIds = v
  42244. return s
  42245. }
  42246. type DescribePrefixListsOutput struct {
  42247. _ struct{} `type:"structure"`
  42248. // The token to use when requesting the next set of items. If there are no additional
  42249. // items to return, the string is empty.
  42250. NextToken *string `locationName:"nextToken" type:"string"`
  42251. // All available prefix lists.
  42252. PrefixLists []*PrefixList `locationName:"prefixListSet" locationNameList:"item" type:"list"`
  42253. }
  42254. // String returns the string representation
  42255. func (s DescribePrefixListsOutput) String() string {
  42256. return awsutil.Prettify(s)
  42257. }
  42258. // GoString returns the string representation
  42259. func (s DescribePrefixListsOutput) GoString() string {
  42260. return s.String()
  42261. }
  42262. // SetNextToken sets the NextToken field's value.
  42263. func (s *DescribePrefixListsOutput) SetNextToken(v string) *DescribePrefixListsOutput {
  42264. s.NextToken = &v
  42265. return s
  42266. }
  42267. // SetPrefixLists sets the PrefixLists field's value.
  42268. func (s *DescribePrefixListsOutput) SetPrefixLists(v []*PrefixList) *DescribePrefixListsOutput {
  42269. s.PrefixLists = v
  42270. return s
  42271. }
  42272. type DescribePrincipalIdFormatInput struct {
  42273. _ struct{} `type:"structure"`
  42274. // Checks whether you have the required permissions for the action, without
  42275. // actually making the request, and provides an error response. If you have
  42276. // the required permissions, the error response is DryRunOperation. Otherwise,
  42277. // it is UnauthorizedOperation.
  42278. DryRun *bool `type:"boolean"`
  42279. // The maximum number of results to return in a single call. To retrieve the
  42280. // remaining results, make another call with the returned NextToken value.
  42281. MaxResults *int64 `type:"integer"`
  42282. // The token to request the next page of results.
  42283. NextToken *string `type:"string"`
  42284. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  42285. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  42286. // | image | import-task | instance | internet-gateway | network-acl | network-acl-association
  42287. // | network-interface | network-interface-attachment | prefix-list | reservation
  42288. // | route-table | route-table-association | security-group | snapshot | subnet
  42289. // | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  42290. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway
  42291. Resources []*string `locationName:"Resource" locationNameList:"item" type:"list"`
  42292. }
  42293. // String returns the string representation
  42294. func (s DescribePrincipalIdFormatInput) String() string {
  42295. return awsutil.Prettify(s)
  42296. }
  42297. // GoString returns the string representation
  42298. func (s DescribePrincipalIdFormatInput) GoString() string {
  42299. return s.String()
  42300. }
  42301. // SetDryRun sets the DryRun field's value.
  42302. func (s *DescribePrincipalIdFormatInput) SetDryRun(v bool) *DescribePrincipalIdFormatInput {
  42303. s.DryRun = &v
  42304. return s
  42305. }
  42306. // SetMaxResults sets the MaxResults field's value.
  42307. func (s *DescribePrincipalIdFormatInput) SetMaxResults(v int64) *DescribePrincipalIdFormatInput {
  42308. s.MaxResults = &v
  42309. return s
  42310. }
  42311. // SetNextToken sets the NextToken field's value.
  42312. func (s *DescribePrincipalIdFormatInput) SetNextToken(v string) *DescribePrincipalIdFormatInput {
  42313. s.NextToken = &v
  42314. return s
  42315. }
  42316. // SetResources sets the Resources field's value.
  42317. func (s *DescribePrincipalIdFormatInput) SetResources(v []*string) *DescribePrincipalIdFormatInput {
  42318. s.Resources = v
  42319. return s
  42320. }
  42321. type DescribePrincipalIdFormatOutput struct {
  42322. _ struct{} `type:"structure"`
  42323. // The token to use to retrieve the next page of results. This value is null
  42324. // when there are no more results to return.
  42325. NextToken *string `locationName:"nextToken" type:"string"`
  42326. // Information about the ID format settings for the ARN.
  42327. Principals []*PrincipalIdFormat `locationName:"principalSet" locationNameList:"item" type:"list"`
  42328. }
  42329. // String returns the string representation
  42330. func (s DescribePrincipalIdFormatOutput) String() string {
  42331. return awsutil.Prettify(s)
  42332. }
  42333. // GoString returns the string representation
  42334. func (s DescribePrincipalIdFormatOutput) GoString() string {
  42335. return s.String()
  42336. }
  42337. // SetNextToken sets the NextToken field's value.
  42338. func (s *DescribePrincipalIdFormatOutput) SetNextToken(v string) *DescribePrincipalIdFormatOutput {
  42339. s.NextToken = &v
  42340. return s
  42341. }
  42342. // SetPrincipals sets the Principals field's value.
  42343. func (s *DescribePrincipalIdFormatOutput) SetPrincipals(v []*PrincipalIdFormat) *DescribePrincipalIdFormatOutput {
  42344. s.Principals = v
  42345. return s
  42346. }
  42347. type DescribePublicIpv4PoolsInput struct {
  42348. _ struct{} `type:"structure"`
  42349. // The maximum number of results to return with a single call. To retrieve the
  42350. // remaining results, make another call with the returned nextToken value.
  42351. MaxResults *int64 `min:"1" type:"integer"`
  42352. // The token for the next page of results.
  42353. NextToken *string `min:"1" type:"string"`
  42354. // The IDs of the address pools.
  42355. PoolIds []*string `locationName:"PoolId" locationNameList:"item" type:"list"`
  42356. }
  42357. // String returns the string representation
  42358. func (s DescribePublicIpv4PoolsInput) String() string {
  42359. return awsutil.Prettify(s)
  42360. }
  42361. // GoString returns the string representation
  42362. func (s DescribePublicIpv4PoolsInput) GoString() string {
  42363. return s.String()
  42364. }
  42365. // Validate inspects the fields of the type to determine if they are valid.
  42366. func (s *DescribePublicIpv4PoolsInput) Validate() error {
  42367. invalidParams := request.ErrInvalidParams{Context: "DescribePublicIpv4PoolsInput"}
  42368. if s.MaxResults != nil && *s.MaxResults < 1 {
  42369. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  42370. }
  42371. if s.NextToken != nil && len(*s.NextToken) < 1 {
  42372. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  42373. }
  42374. if invalidParams.Len() > 0 {
  42375. return invalidParams
  42376. }
  42377. return nil
  42378. }
  42379. // SetMaxResults sets the MaxResults field's value.
  42380. func (s *DescribePublicIpv4PoolsInput) SetMaxResults(v int64) *DescribePublicIpv4PoolsInput {
  42381. s.MaxResults = &v
  42382. return s
  42383. }
  42384. // SetNextToken sets the NextToken field's value.
  42385. func (s *DescribePublicIpv4PoolsInput) SetNextToken(v string) *DescribePublicIpv4PoolsInput {
  42386. s.NextToken = &v
  42387. return s
  42388. }
  42389. // SetPoolIds sets the PoolIds field's value.
  42390. func (s *DescribePublicIpv4PoolsInput) SetPoolIds(v []*string) *DescribePublicIpv4PoolsInput {
  42391. s.PoolIds = v
  42392. return s
  42393. }
  42394. type DescribePublicIpv4PoolsOutput struct {
  42395. _ struct{} `type:"structure"`
  42396. // The token to use to retrieve the next page of results. This value is null
  42397. // when there are no more results to return.
  42398. NextToken *string `locationName:"nextToken" type:"string"`
  42399. // Information about the address pools.
  42400. PublicIpv4Pools []*PublicIpv4Pool `locationName:"publicIpv4PoolSet" locationNameList:"item" type:"list"`
  42401. }
  42402. // String returns the string representation
  42403. func (s DescribePublicIpv4PoolsOutput) String() string {
  42404. return awsutil.Prettify(s)
  42405. }
  42406. // GoString returns the string representation
  42407. func (s DescribePublicIpv4PoolsOutput) GoString() string {
  42408. return s.String()
  42409. }
  42410. // SetNextToken sets the NextToken field's value.
  42411. func (s *DescribePublicIpv4PoolsOutput) SetNextToken(v string) *DescribePublicIpv4PoolsOutput {
  42412. s.NextToken = &v
  42413. return s
  42414. }
  42415. // SetPublicIpv4Pools sets the PublicIpv4Pools field's value.
  42416. func (s *DescribePublicIpv4PoolsOutput) SetPublicIpv4Pools(v []*PublicIpv4Pool) *DescribePublicIpv4PoolsOutput {
  42417. s.PublicIpv4Pools = v
  42418. return s
  42419. }
  42420. type DescribeRegionsInput struct {
  42421. _ struct{} `type:"structure"`
  42422. // Checks whether you have the required permissions for the action, without
  42423. // actually making the request, and provides an error response. If you have
  42424. // the required permissions, the error response is DryRunOperation. Otherwise,
  42425. // it is UnauthorizedOperation.
  42426. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42427. // One or more filters.
  42428. //
  42429. // * endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com).
  42430. //
  42431. // * region-name - The name of the region (for example, us-east-1).
  42432. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42433. // The names of one or more regions.
  42434. RegionNames []*string `locationName:"RegionName" locationNameList:"RegionName" type:"list"`
  42435. }
  42436. // String returns the string representation
  42437. func (s DescribeRegionsInput) String() string {
  42438. return awsutil.Prettify(s)
  42439. }
  42440. // GoString returns the string representation
  42441. func (s DescribeRegionsInput) GoString() string {
  42442. return s.String()
  42443. }
  42444. // SetDryRun sets the DryRun field's value.
  42445. func (s *DescribeRegionsInput) SetDryRun(v bool) *DescribeRegionsInput {
  42446. s.DryRun = &v
  42447. return s
  42448. }
  42449. // SetFilters sets the Filters field's value.
  42450. func (s *DescribeRegionsInput) SetFilters(v []*Filter) *DescribeRegionsInput {
  42451. s.Filters = v
  42452. return s
  42453. }
  42454. // SetRegionNames sets the RegionNames field's value.
  42455. func (s *DescribeRegionsInput) SetRegionNames(v []*string) *DescribeRegionsInput {
  42456. s.RegionNames = v
  42457. return s
  42458. }
  42459. type DescribeRegionsOutput struct {
  42460. _ struct{} `type:"structure"`
  42461. // Information about one or more regions.
  42462. Regions []*Region `locationName:"regionInfo" locationNameList:"item" type:"list"`
  42463. }
  42464. // String returns the string representation
  42465. func (s DescribeRegionsOutput) String() string {
  42466. return awsutil.Prettify(s)
  42467. }
  42468. // GoString returns the string representation
  42469. func (s DescribeRegionsOutput) GoString() string {
  42470. return s.String()
  42471. }
  42472. // SetRegions sets the Regions field's value.
  42473. func (s *DescribeRegionsOutput) SetRegions(v []*Region) *DescribeRegionsOutput {
  42474. s.Regions = v
  42475. return s
  42476. }
  42477. // Contains the parameters for DescribeReservedInstances.
  42478. type DescribeReservedInstancesInput struct {
  42479. _ struct{} `type:"structure"`
  42480. // Checks whether you have the required permissions for the action, without
  42481. // actually making the request, and provides an error response. If you have
  42482. // the required permissions, the error response is DryRunOperation. Otherwise,
  42483. // it is UnauthorizedOperation.
  42484. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42485. // One or more filters.
  42486. //
  42487. // * availability-zone - The Availability Zone where the Reserved Instance
  42488. // can be used.
  42489. //
  42490. // * duration - The duration of the Reserved Instance (one year or three
  42491. // years), in seconds (31536000 | 94608000).
  42492. //
  42493. // * end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z).
  42494. //
  42495. // * fixed-price - The purchase price of the Reserved Instance (for example,
  42496. // 9800.0).
  42497. //
  42498. // * instance-type - The instance type that is covered by the reservation.
  42499. //
  42500. // * scope - The scope of the Reserved Instance (Region or Availability Zone).
  42501. //
  42502. // * product-description - The Reserved Instance product platform description.
  42503. // Instances that include (Amazon VPC) in the product platform description
  42504. // will only be displayed to EC2-Classic account holders and are for use
  42505. // with Amazon VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE
  42506. // Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux
  42507. // (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server
  42508. // Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with
  42509. // SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with
  42510. // SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC)).
  42511. //
  42512. // * reserved-instances-id - The ID of the Reserved Instance.
  42513. //
  42514. // * start - The time at which the Reserved Instance purchase request was
  42515. // placed (for example, 2014-08-07T11:54:42.000Z).
  42516. //
  42517. // * state - The state of the Reserved Instance (payment-pending | active
  42518. // | payment-failed | retired).
  42519. //
  42520. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  42521. // Use the tag key in the filter name and the tag value as the filter value.
  42522. // For example, to find all resources that have a tag with the key Owner
  42523. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  42524. // the filter value.
  42525. //
  42526. // * tag-key - The key of a tag assigned to the resource. Use this filter
  42527. // to find all resources assigned a tag with a specific key, regardless of
  42528. // the tag value.
  42529. //
  42530. // * usage-price - The usage price of the Reserved Instance, per hour (for
  42531. // example, 0.84).
  42532. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42533. // Describes whether the Reserved Instance is Standard or Convertible.
  42534. OfferingClass *string `type:"string" enum:"OfferingClassType"`
  42535. // The Reserved Instance offering type. If you are using tools that predate
  42536. // the 2011-11-01 API version, you only have access to the Medium Utilization
  42537. // Reserved Instance offering type.
  42538. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  42539. // One or more Reserved Instance IDs.
  42540. //
  42541. // Default: Describes all your Reserved Instances, or only those otherwise specified.
  42542. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list"`
  42543. }
  42544. // String returns the string representation
  42545. func (s DescribeReservedInstancesInput) String() string {
  42546. return awsutil.Prettify(s)
  42547. }
  42548. // GoString returns the string representation
  42549. func (s DescribeReservedInstancesInput) GoString() string {
  42550. return s.String()
  42551. }
  42552. // SetDryRun sets the DryRun field's value.
  42553. func (s *DescribeReservedInstancesInput) SetDryRun(v bool) *DescribeReservedInstancesInput {
  42554. s.DryRun = &v
  42555. return s
  42556. }
  42557. // SetFilters sets the Filters field's value.
  42558. func (s *DescribeReservedInstancesInput) SetFilters(v []*Filter) *DescribeReservedInstancesInput {
  42559. s.Filters = v
  42560. return s
  42561. }
  42562. // SetOfferingClass sets the OfferingClass field's value.
  42563. func (s *DescribeReservedInstancesInput) SetOfferingClass(v string) *DescribeReservedInstancesInput {
  42564. s.OfferingClass = &v
  42565. return s
  42566. }
  42567. // SetOfferingType sets the OfferingType field's value.
  42568. func (s *DescribeReservedInstancesInput) SetOfferingType(v string) *DescribeReservedInstancesInput {
  42569. s.OfferingType = &v
  42570. return s
  42571. }
  42572. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  42573. func (s *DescribeReservedInstancesInput) SetReservedInstancesIds(v []*string) *DescribeReservedInstancesInput {
  42574. s.ReservedInstancesIds = v
  42575. return s
  42576. }
  42577. // Contains the parameters for DescribeReservedInstancesListings.
  42578. type DescribeReservedInstancesListingsInput struct {
  42579. _ struct{} `type:"structure"`
  42580. // One or more filters.
  42581. //
  42582. // * reserved-instances-id - The ID of the Reserved Instances.
  42583. //
  42584. // * reserved-instances-listing-id - The ID of the Reserved Instances listing.
  42585. //
  42586. // * status - The status of the Reserved Instance listing (pending | active
  42587. // | cancelled | closed).
  42588. //
  42589. // * status-message - The reason for the status.
  42590. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42591. // One or more Reserved Instance IDs.
  42592. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  42593. // One or more Reserved Instance listing IDs.
  42594. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`
  42595. }
  42596. // String returns the string representation
  42597. func (s DescribeReservedInstancesListingsInput) String() string {
  42598. return awsutil.Prettify(s)
  42599. }
  42600. // GoString returns the string representation
  42601. func (s DescribeReservedInstancesListingsInput) GoString() string {
  42602. return s.String()
  42603. }
  42604. // SetFilters sets the Filters field's value.
  42605. func (s *DescribeReservedInstancesListingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesListingsInput {
  42606. s.Filters = v
  42607. return s
  42608. }
  42609. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  42610. func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesId(v string) *DescribeReservedInstancesListingsInput {
  42611. s.ReservedInstancesId = &v
  42612. return s
  42613. }
  42614. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  42615. func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesListingId(v string) *DescribeReservedInstancesListingsInput {
  42616. s.ReservedInstancesListingId = &v
  42617. return s
  42618. }
  42619. // Contains the output of DescribeReservedInstancesListings.
  42620. type DescribeReservedInstancesListingsOutput struct {
  42621. _ struct{} `type:"structure"`
  42622. // Information about the Reserved Instance listing.
  42623. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  42624. }
  42625. // String returns the string representation
  42626. func (s DescribeReservedInstancesListingsOutput) String() string {
  42627. return awsutil.Prettify(s)
  42628. }
  42629. // GoString returns the string representation
  42630. func (s DescribeReservedInstancesListingsOutput) GoString() string {
  42631. return s.String()
  42632. }
  42633. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  42634. func (s *DescribeReservedInstancesListingsOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *DescribeReservedInstancesListingsOutput {
  42635. s.ReservedInstancesListings = v
  42636. return s
  42637. }
  42638. // Contains the parameters for DescribeReservedInstancesModifications.
  42639. type DescribeReservedInstancesModificationsInput struct {
  42640. _ struct{} `type:"structure"`
  42641. // One or more filters.
  42642. //
  42643. // * client-token - The idempotency token for the modification request.
  42644. //
  42645. // * create-date - The time when the modification request was created.
  42646. //
  42647. // * effective-date - The time when the modification becomes effective.
  42648. //
  42649. // * modification-result.reserved-instances-id - The ID for the Reserved
  42650. // Instances created as part of the modification request. This ID is only
  42651. // available when the status of the modification is fulfilled.
  42652. //
  42653. // * modification-result.target-configuration.availability-zone - The Availability
  42654. // Zone for the new Reserved Instances.
  42655. //
  42656. // * modification-result.target-configuration.instance-count - The number
  42657. // of new Reserved Instances.
  42658. //
  42659. // * modification-result.target-configuration.instance-type - The instance
  42660. // type of the new Reserved Instances.
  42661. //
  42662. // * modification-result.target-configuration.platform - The network platform
  42663. // of the new Reserved Instances (EC2-Classic | EC2-VPC).
  42664. //
  42665. // * reserved-instances-id - The ID of the Reserved Instances modified.
  42666. //
  42667. // * reserved-instances-modification-id - The ID of the modification request.
  42668. //
  42669. // * status - The status of the Reserved Instances modification request (processing
  42670. // | fulfilled | failed).
  42671. //
  42672. // * status-message - The reason for the status.
  42673. //
  42674. // * update-date - The time when the modification request was last updated.
  42675. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42676. // The token to retrieve the next page of results.
  42677. NextToken *string `locationName:"nextToken" type:"string"`
  42678. // IDs for the submitted modification request.
  42679. ReservedInstancesModificationIds []*string `locationName:"ReservedInstancesModificationId" locationNameList:"ReservedInstancesModificationId" type:"list"`
  42680. }
  42681. // String returns the string representation
  42682. func (s DescribeReservedInstancesModificationsInput) String() string {
  42683. return awsutil.Prettify(s)
  42684. }
  42685. // GoString returns the string representation
  42686. func (s DescribeReservedInstancesModificationsInput) GoString() string {
  42687. return s.String()
  42688. }
  42689. // SetFilters sets the Filters field's value.
  42690. func (s *DescribeReservedInstancesModificationsInput) SetFilters(v []*Filter) *DescribeReservedInstancesModificationsInput {
  42691. s.Filters = v
  42692. return s
  42693. }
  42694. // SetNextToken sets the NextToken field's value.
  42695. func (s *DescribeReservedInstancesModificationsInput) SetNextToken(v string) *DescribeReservedInstancesModificationsInput {
  42696. s.NextToken = &v
  42697. return s
  42698. }
  42699. // SetReservedInstancesModificationIds sets the ReservedInstancesModificationIds field's value.
  42700. func (s *DescribeReservedInstancesModificationsInput) SetReservedInstancesModificationIds(v []*string) *DescribeReservedInstancesModificationsInput {
  42701. s.ReservedInstancesModificationIds = v
  42702. return s
  42703. }
  42704. // Contains the output of DescribeReservedInstancesModifications.
  42705. type DescribeReservedInstancesModificationsOutput struct {
  42706. _ struct{} `type:"structure"`
  42707. // The token to use to retrieve the next page of results. This value is null
  42708. // when there are no more results to return.
  42709. NextToken *string `locationName:"nextToken" type:"string"`
  42710. // The Reserved Instance modification information.
  42711. ReservedInstancesModifications []*ReservedInstancesModification `locationName:"reservedInstancesModificationsSet" locationNameList:"item" type:"list"`
  42712. }
  42713. // String returns the string representation
  42714. func (s DescribeReservedInstancesModificationsOutput) String() string {
  42715. return awsutil.Prettify(s)
  42716. }
  42717. // GoString returns the string representation
  42718. func (s DescribeReservedInstancesModificationsOutput) GoString() string {
  42719. return s.String()
  42720. }
  42721. // SetNextToken sets the NextToken field's value.
  42722. func (s *DescribeReservedInstancesModificationsOutput) SetNextToken(v string) *DescribeReservedInstancesModificationsOutput {
  42723. s.NextToken = &v
  42724. return s
  42725. }
  42726. // SetReservedInstancesModifications sets the ReservedInstancesModifications field's value.
  42727. func (s *DescribeReservedInstancesModificationsOutput) SetReservedInstancesModifications(v []*ReservedInstancesModification) *DescribeReservedInstancesModificationsOutput {
  42728. s.ReservedInstancesModifications = v
  42729. return s
  42730. }
  42731. // Contains the parameters for DescribeReservedInstancesOfferings.
  42732. type DescribeReservedInstancesOfferingsInput struct {
  42733. _ struct{} `type:"structure"`
  42734. // The Availability Zone in which the Reserved Instance can be used.
  42735. AvailabilityZone *string `type:"string"`
  42736. // Checks whether you have the required permissions for the action, without
  42737. // actually making the request, and provides an error response. If you have
  42738. // the required permissions, the error response is DryRunOperation. Otherwise,
  42739. // it is UnauthorizedOperation.
  42740. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42741. // One or more filters.
  42742. //
  42743. // * availability-zone - The Availability Zone where the Reserved Instance
  42744. // can be used.
  42745. //
  42746. // * duration - The duration of the Reserved Instance (for example, one year
  42747. // or three years), in seconds (31536000 | 94608000).
  42748. //
  42749. // * fixed-price - The purchase price of the Reserved Instance (for example,
  42750. // 9800.0).
  42751. //
  42752. // * instance-type - The instance type that is covered by the reservation.
  42753. //
  42754. // * marketplace - Set to true to show only Reserved Instance Marketplace
  42755. // offerings. When this filter is not used, which is the default behavior,
  42756. // all offerings from both AWS and the Reserved Instance Marketplace are
  42757. // listed.
  42758. //
  42759. // * product-description - The Reserved Instance product platform description.
  42760. // Instances that include (Amazon VPC) in the product platform description
  42761. // will only be displayed to EC2-Classic account holders and are for use
  42762. // with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux |
  42763. // SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise
  42764. // Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL
  42765. // Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows
  42766. // with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows
  42767. // with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon
  42768. // VPC))
  42769. //
  42770. // * reserved-instances-offering-id - The Reserved Instances offering ID.
  42771. //
  42772. // * scope - The scope of the Reserved Instance (Availability Zone or Region).
  42773. //
  42774. // * usage-price - The usage price of the Reserved Instance, per hour (for
  42775. // example, 0.84).
  42776. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  42777. // Include Reserved Instance Marketplace offerings in the response.
  42778. IncludeMarketplace *bool `type:"boolean"`
  42779. // The tenancy of the instances covered by the reservation. A Reserved Instance
  42780. // with a tenancy of dedicated is applied to instances that run in a VPC on
  42781. // single-tenant hardware (i.e., Dedicated Instances).
  42782. //
  42783. // Important: The host value cannot be used with this parameter. Use the default
  42784. // or dedicated values only.
  42785. //
  42786. // Default: default
  42787. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  42788. // The instance type that the reservation will cover (for example, m1.small).
  42789. // For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  42790. // in the Amazon Elastic Compute Cloud User Guide.
  42791. InstanceType *string `type:"string" enum:"InstanceType"`
  42792. // The maximum duration (in seconds) to filter when searching for offerings.
  42793. //
  42794. // Default: 94608000 (3 years)
  42795. MaxDuration *int64 `type:"long"`
  42796. // The maximum number of instances to filter when searching for offerings.
  42797. //
  42798. // Default: 20
  42799. MaxInstanceCount *int64 `type:"integer"`
  42800. // The maximum number of results to return for the request in a single page.
  42801. // The remaining results of the initial request can be seen by sending another
  42802. // request with the returned NextToken value. The maximum is 100.
  42803. //
  42804. // Default: 100
  42805. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  42806. // The minimum duration (in seconds) to filter when searching for offerings.
  42807. //
  42808. // Default: 2592000 (1 month)
  42809. MinDuration *int64 `type:"long"`
  42810. // The token to retrieve the next page of results.
  42811. NextToken *string `locationName:"nextToken" type:"string"`
  42812. // The offering class of the Reserved Instance. Can be standard or convertible.
  42813. OfferingClass *string `type:"string" enum:"OfferingClassType"`
  42814. // The Reserved Instance offering type. If you are using tools that predate
  42815. // the 2011-11-01 API version, you only have access to the Medium Utilization
  42816. // Reserved Instance offering type.
  42817. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  42818. // The Reserved Instance product platform description. Instances that include
  42819. // (Amazon VPC) in the description are for use with Amazon VPC.
  42820. ProductDescription *string `type:"string" enum:"RIProductDescription"`
  42821. // One or more Reserved Instances offering IDs.
  42822. ReservedInstancesOfferingIds []*string `locationName:"ReservedInstancesOfferingId" type:"list"`
  42823. }
  42824. // String returns the string representation
  42825. func (s DescribeReservedInstancesOfferingsInput) String() string {
  42826. return awsutil.Prettify(s)
  42827. }
  42828. // GoString returns the string representation
  42829. func (s DescribeReservedInstancesOfferingsInput) GoString() string {
  42830. return s.String()
  42831. }
  42832. // SetAvailabilityZone sets the AvailabilityZone field's value.
  42833. func (s *DescribeReservedInstancesOfferingsInput) SetAvailabilityZone(v string) *DescribeReservedInstancesOfferingsInput {
  42834. s.AvailabilityZone = &v
  42835. return s
  42836. }
  42837. // SetDryRun sets the DryRun field's value.
  42838. func (s *DescribeReservedInstancesOfferingsInput) SetDryRun(v bool) *DescribeReservedInstancesOfferingsInput {
  42839. s.DryRun = &v
  42840. return s
  42841. }
  42842. // SetFilters sets the Filters field's value.
  42843. func (s *DescribeReservedInstancesOfferingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesOfferingsInput {
  42844. s.Filters = v
  42845. return s
  42846. }
  42847. // SetIncludeMarketplace sets the IncludeMarketplace field's value.
  42848. func (s *DescribeReservedInstancesOfferingsInput) SetIncludeMarketplace(v bool) *DescribeReservedInstancesOfferingsInput {
  42849. s.IncludeMarketplace = &v
  42850. return s
  42851. }
  42852. // SetInstanceTenancy sets the InstanceTenancy field's value.
  42853. func (s *DescribeReservedInstancesOfferingsInput) SetInstanceTenancy(v string) *DescribeReservedInstancesOfferingsInput {
  42854. s.InstanceTenancy = &v
  42855. return s
  42856. }
  42857. // SetInstanceType sets the InstanceType field's value.
  42858. func (s *DescribeReservedInstancesOfferingsInput) SetInstanceType(v string) *DescribeReservedInstancesOfferingsInput {
  42859. s.InstanceType = &v
  42860. return s
  42861. }
  42862. // SetMaxDuration sets the MaxDuration field's value.
  42863. func (s *DescribeReservedInstancesOfferingsInput) SetMaxDuration(v int64) *DescribeReservedInstancesOfferingsInput {
  42864. s.MaxDuration = &v
  42865. return s
  42866. }
  42867. // SetMaxInstanceCount sets the MaxInstanceCount field's value.
  42868. func (s *DescribeReservedInstancesOfferingsInput) SetMaxInstanceCount(v int64) *DescribeReservedInstancesOfferingsInput {
  42869. s.MaxInstanceCount = &v
  42870. return s
  42871. }
  42872. // SetMaxResults sets the MaxResults field's value.
  42873. func (s *DescribeReservedInstancesOfferingsInput) SetMaxResults(v int64) *DescribeReservedInstancesOfferingsInput {
  42874. s.MaxResults = &v
  42875. return s
  42876. }
  42877. // SetMinDuration sets the MinDuration field's value.
  42878. func (s *DescribeReservedInstancesOfferingsInput) SetMinDuration(v int64) *DescribeReservedInstancesOfferingsInput {
  42879. s.MinDuration = &v
  42880. return s
  42881. }
  42882. // SetNextToken sets the NextToken field's value.
  42883. func (s *DescribeReservedInstancesOfferingsInput) SetNextToken(v string) *DescribeReservedInstancesOfferingsInput {
  42884. s.NextToken = &v
  42885. return s
  42886. }
  42887. // SetOfferingClass sets the OfferingClass field's value.
  42888. func (s *DescribeReservedInstancesOfferingsInput) SetOfferingClass(v string) *DescribeReservedInstancesOfferingsInput {
  42889. s.OfferingClass = &v
  42890. return s
  42891. }
  42892. // SetOfferingType sets the OfferingType field's value.
  42893. func (s *DescribeReservedInstancesOfferingsInput) SetOfferingType(v string) *DescribeReservedInstancesOfferingsInput {
  42894. s.OfferingType = &v
  42895. return s
  42896. }
  42897. // SetProductDescription sets the ProductDescription field's value.
  42898. func (s *DescribeReservedInstancesOfferingsInput) SetProductDescription(v string) *DescribeReservedInstancesOfferingsInput {
  42899. s.ProductDescription = &v
  42900. return s
  42901. }
  42902. // SetReservedInstancesOfferingIds sets the ReservedInstancesOfferingIds field's value.
  42903. func (s *DescribeReservedInstancesOfferingsInput) SetReservedInstancesOfferingIds(v []*string) *DescribeReservedInstancesOfferingsInput {
  42904. s.ReservedInstancesOfferingIds = v
  42905. return s
  42906. }
  42907. // Contains the output of DescribeReservedInstancesOfferings.
  42908. type DescribeReservedInstancesOfferingsOutput struct {
  42909. _ struct{} `type:"structure"`
  42910. // The token to use to retrieve the next page of results. This value is null
  42911. // when there are no more results to return.
  42912. NextToken *string `locationName:"nextToken" type:"string"`
  42913. // A list of Reserved Instances offerings.
  42914. ReservedInstancesOfferings []*ReservedInstancesOffering `locationName:"reservedInstancesOfferingsSet" locationNameList:"item" type:"list"`
  42915. }
  42916. // String returns the string representation
  42917. func (s DescribeReservedInstancesOfferingsOutput) String() string {
  42918. return awsutil.Prettify(s)
  42919. }
  42920. // GoString returns the string representation
  42921. func (s DescribeReservedInstancesOfferingsOutput) GoString() string {
  42922. return s.String()
  42923. }
  42924. // SetNextToken sets the NextToken field's value.
  42925. func (s *DescribeReservedInstancesOfferingsOutput) SetNextToken(v string) *DescribeReservedInstancesOfferingsOutput {
  42926. s.NextToken = &v
  42927. return s
  42928. }
  42929. // SetReservedInstancesOfferings sets the ReservedInstancesOfferings field's value.
  42930. func (s *DescribeReservedInstancesOfferingsOutput) SetReservedInstancesOfferings(v []*ReservedInstancesOffering) *DescribeReservedInstancesOfferingsOutput {
  42931. s.ReservedInstancesOfferings = v
  42932. return s
  42933. }
  42934. // Contains the output for DescribeReservedInstances.
  42935. type DescribeReservedInstancesOutput struct {
  42936. _ struct{} `type:"structure"`
  42937. // A list of Reserved Instances.
  42938. ReservedInstances []*ReservedInstances `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`
  42939. }
  42940. // String returns the string representation
  42941. func (s DescribeReservedInstancesOutput) String() string {
  42942. return awsutil.Prettify(s)
  42943. }
  42944. // GoString returns the string representation
  42945. func (s DescribeReservedInstancesOutput) GoString() string {
  42946. return s.String()
  42947. }
  42948. // SetReservedInstances sets the ReservedInstances field's value.
  42949. func (s *DescribeReservedInstancesOutput) SetReservedInstances(v []*ReservedInstances) *DescribeReservedInstancesOutput {
  42950. s.ReservedInstances = v
  42951. return s
  42952. }
  42953. type DescribeRouteTablesInput struct {
  42954. _ struct{} `type:"structure"`
  42955. // Checks whether you have the required permissions for the action, without
  42956. // actually making the request, and provides an error response. If you have
  42957. // the required permissions, the error response is DryRunOperation. Otherwise,
  42958. // it is UnauthorizedOperation.
  42959. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42960. // One or more filters.
  42961. //
  42962. // * association.route-table-association-id - The ID of an association ID
  42963. // for the route table.
  42964. //
  42965. // * association.route-table-id - The ID of the route table involved in the
  42966. // association.
  42967. //
  42968. // * association.subnet-id - The ID of the subnet involved in the association.
  42969. //
  42970. // * association.main - Indicates whether the route table is the main route
  42971. // table for the VPC (true | false). Route tables that do not have an association
  42972. // ID are not returned in the response.
  42973. //
  42974. // * owner-id - The ID of the AWS account that owns the route table.
  42975. //
  42976. // * route-table-id - The ID of the route table.
  42977. //
  42978. // * route.destination-cidr-block - The IPv4 CIDR range specified in a route
  42979. // in the table.
  42980. //
  42981. // * route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in
  42982. // a route in the route table.
  42983. //
  42984. // * route.destination-prefix-list-id - The ID (prefix) of the AWS service
  42985. // specified in a route in the table.
  42986. //
  42987. // * route.egress-only-internet-gateway-id - The ID of an egress-only Internet
  42988. // gateway specified in a route in the route table.
  42989. //
  42990. // * route.gateway-id - The ID of a gateway specified in a route in the table.
  42991. //
  42992. // * route.instance-id - The ID of an instance specified in a route in the
  42993. // table.
  42994. //
  42995. // * route.nat-gateway-id - The ID of a NAT gateway.
  42996. //
  42997. // * route.transit-gateway-id - The ID of a transit gateway.
  42998. //
  42999. // * route.origin - Describes how the route was created. CreateRouteTable
  43000. // indicates that the route was automatically created when the route table
  43001. // was created; CreateRoute indicates that the route was manually added to
  43002. // the route table; EnableVgwRoutePropagation indicates that the route was
  43003. // propagated by route propagation.
  43004. //
  43005. // * route.state - The state of a route in the route table (active | blackhole).
  43006. // The blackhole state indicates that the route's target isn't available
  43007. // (for example, the specified gateway isn't attached to the VPC, the specified
  43008. // NAT instance has been terminated, and so on).
  43009. //
  43010. // * route.vpc-peering-connection-id - The ID of a VPC peering connection
  43011. // specified in a route in the table.
  43012. //
  43013. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  43014. // Use the tag key in the filter name and the tag value as the filter value.
  43015. // For example, to find all resources that have a tag with the key Owner
  43016. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  43017. // the filter value.
  43018. //
  43019. // * tag-key - The key of a tag assigned to the resource. Use this filter
  43020. // to find all resources assigned a tag with a specific key, regardless of
  43021. // the tag value.
  43022. //
  43023. // * transit-gateway-id - The ID of a transit gateway.
  43024. //
  43025. // * vpc-id - The ID of the VPC for the route table.
  43026. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  43027. // The maximum number of results to return in a single call. To retrieve the
  43028. // remaining results, make another call with the returned NextToken value. This
  43029. // value can be between 5 and 100.
  43030. MaxResults *int64 `type:"integer"`
  43031. // The token to retrieve the next page of results.
  43032. NextToken *string `type:"string"`
  43033. // One or more route table IDs.
  43034. //
  43035. // Default: Describes all your route tables.
  43036. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"`
  43037. }
  43038. // String returns the string representation
  43039. func (s DescribeRouteTablesInput) String() string {
  43040. return awsutil.Prettify(s)
  43041. }
  43042. // GoString returns the string representation
  43043. func (s DescribeRouteTablesInput) GoString() string {
  43044. return s.String()
  43045. }
  43046. // SetDryRun sets the DryRun field's value.
  43047. func (s *DescribeRouteTablesInput) SetDryRun(v bool) *DescribeRouteTablesInput {
  43048. s.DryRun = &v
  43049. return s
  43050. }
  43051. // SetFilters sets the Filters field's value.
  43052. func (s *DescribeRouteTablesInput) SetFilters(v []*Filter) *DescribeRouteTablesInput {
  43053. s.Filters = v
  43054. return s
  43055. }
  43056. // SetMaxResults sets the MaxResults field's value.
  43057. func (s *DescribeRouteTablesInput) SetMaxResults(v int64) *DescribeRouteTablesInput {
  43058. s.MaxResults = &v
  43059. return s
  43060. }
  43061. // SetNextToken sets the NextToken field's value.
  43062. func (s *DescribeRouteTablesInput) SetNextToken(v string) *DescribeRouteTablesInput {
  43063. s.NextToken = &v
  43064. return s
  43065. }
  43066. // SetRouteTableIds sets the RouteTableIds field's value.
  43067. func (s *DescribeRouteTablesInput) SetRouteTableIds(v []*string) *DescribeRouteTablesInput {
  43068. s.RouteTableIds = v
  43069. return s
  43070. }
  43071. // Contains the output of DescribeRouteTables.
  43072. type DescribeRouteTablesOutput struct {
  43073. _ struct{} `type:"structure"`
  43074. // The token to use to retrieve the next page of results. This value is null
  43075. // when there are no more results to return.
  43076. NextToken *string `locationName:"nextToken" type:"string"`
  43077. // Information about one or more route tables.
  43078. RouteTables []*RouteTable `locationName:"routeTableSet" locationNameList:"item" type:"list"`
  43079. }
  43080. // String returns the string representation
  43081. func (s DescribeRouteTablesOutput) String() string {
  43082. return awsutil.Prettify(s)
  43083. }
  43084. // GoString returns the string representation
  43085. func (s DescribeRouteTablesOutput) GoString() string {
  43086. return s.String()
  43087. }
  43088. // SetNextToken sets the NextToken field's value.
  43089. func (s *DescribeRouteTablesOutput) SetNextToken(v string) *DescribeRouteTablesOutput {
  43090. s.NextToken = &v
  43091. return s
  43092. }
  43093. // SetRouteTables sets the RouteTables field's value.
  43094. func (s *DescribeRouteTablesOutput) SetRouteTables(v []*RouteTable) *DescribeRouteTablesOutput {
  43095. s.RouteTables = v
  43096. return s
  43097. }
  43098. // Contains the parameters for DescribeScheduledInstanceAvailability.
  43099. type DescribeScheduledInstanceAvailabilityInput struct {
  43100. _ struct{} `type:"structure"`
  43101. // Checks whether you have the required permissions for the action, without
  43102. // actually making the request, and provides an error response. If you have
  43103. // the required permissions, the error response is DryRunOperation. Otherwise,
  43104. // it is UnauthorizedOperation.
  43105. DryRun *bool `type:"boolean"`
  43106. // One or more filters.
  43107. //
  43108. // * availability-zone - The Availability Zone (for example, us-west-2a).
  43109. //
  43110. // * instance-type - The instance type (for example, c4.large).
  43111. //
  43112. // * network-platform - The network platform (EC2-Classic or EC2-VPC).
  43113. //
  43114. // * platform - The platform (Linux/UNIX or Windows).
  43115. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  43116. // The time period for the first schedule to start.
  43117. //
  43118. // FirstSlotStartTimeRange is a required field
  43119. FirstSlotStartTimeRange *SlotDateTimeRangeRequest `type:"structure" required:"true"`
  43120. // The maximum number of results to return in a single call. This value can
  43121. // be between 5 and 300. The default value is 300. To retrieve the remaining
  43122. // results, make another call with the returned NextToken value.
  43123. MaxResults *int64 `type:"integer"`
  43124. // The maximum available duration, in hours. This value must be greater than
  43125. // MinSlotDurationInHours and less than 1,720.
  43126. MaxSlotDurationInHours *int64 `type:"integer"`
  43127. // The minimum available duration, in hours. The minimum required duration is
  43128. // 1,200 hours per year. For example, the minimum daily schedule is 4 hours,
  43129. // the minimum weekly schedule is 24 hours, and the minimum monthly schedule
  43130. // is 100 hours.
  43131. MinSlotDurationInHours *int64 `type:"integer"`
  43132. // The token for the next set of results.
  43133. NextToken *string `type:"string"`
  43134. // The schedule recurrence.
  43135. //
  43136. // Recurrence is a required field
  43137. Recurrence *ScheduledInstanceRecurrenceRequest `type:"structure" required:"true"`
  43138. }
  43139. // String returns the string representation
  43140. func (s DescribeScheduledInstanceAvailabilityInput) String() string {
  43141. return awsutil.Prettify(s)
  43142. }
  43143. // GoString returns the string representation
  43144. func (s DescribeScheduledInstanceAvailabilityInput) GoString() string {
  43145. return s.String()
  43146. }
  43147. // Validate inspects the fields of the type to determine if they are valid.
  43148. func (s *DescribeScheduledInstanceAvailabilityInput) Validate() error {
  43149. invalidParams := request.ErrInvalidParams{Context: "DescribeScheduledInstanceAvailabilityInput"}
  43150. if s.FirstSlotStartTimeRange == nil {
  43151. invalidParams.Add(request.NewErrParamRequired("FirstSlotStartTimeRange"))
  43152. }
  43153. if s.Recurrence == nil {
  43154. invalidParams.Add(request.NewErrParamRequired("Recurrence"))
  43155. }
  43156. if s.FirstSlotStartTimeRange != nil {
  43157. if err := s.FirstSlotStartTimeRange.Validate(); err != nil {
  43158. invalidParams.AddNested("FirstSlotStartTimeRange", err.(request.ErrInvalidParams))
  43159. }
  43160. }
  43161. if invalidParams.Len() > 0 {
  43162. return invalidParams
  43163. }
  43164. return nil
  43165. }
  43166. // SetDryRun sets the DryRun field's value.
  43167. func (s *DescribeScheduledInstanceAvailabilityInput) SetDryRun(v bool) *DescribeScheduledInstanceAvailabilityInput {
  43168. s.DryRun = &v
  43169. return s
  43170. }
  43171. // SetFilters sets the Filters field's value.
  43172. func (s *DescribeScheduledInstanceAvailabilityInput) SetFilters(v []*Filter) *DescribeScheduledInstanceAvailabilityInput {
  43173. s.Filters = v
  43174. return s
  43175. }
  43176. // SetFirstSlotStartTimeRange sets the FirstSlotStartTimeRange field's value.
  43177. func (s *DescribeScheduledInstanceAvailabilityInput) SetFirstSlotStartTimeRange(v *SlotDateTimeRangeRequest) *DescribeScheduledInstanceAvailabilityInput {
  43178. s.FirstSlotStartTimeRange = v
  43179. return s
  43180. }
  43181. // SetMaxResults sets the MaxResults field's value.
  43182. func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxResults(v int64) *DescribeScheduledInstanceAvailabilityInput {
  43183. s.MaxResults = &v
  43184. return s
  43185. }
  43186. // SetMaxSlotDurationInHours sets the MaxSlotDurationInHours field's value.
  43187. func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput {
  43188. s.MaxSlotDurationInHours = &v
  43189. return s
  43190. }
  43191. // SetMinSlotDurationInHours sets the MinSlotDurationInHours field's value.
  43192. func (s *DescribeScheduledInstanceAvailabilityInput) SetMinSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput {
  43193. s.MinSlotDurationInHours = &v
  43194. return s
  43195. }
  43196. // SetNextToken sets the NextToken field's value.
  43197. func (s *DescribeScheduledInstanceAvailabilityInput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityInput {
  43198. s.NextToken = &v
  43199. return s
  43200. }
  43201. // SetRecurrence sets the Recurrence field's value.
  43202. func (s *DescribeScheduledInstanceAvailabilityInput) SetRecurrence(v *ScheduledInstanceRecurrenceRequest) *DescribeScheduledInstanceAvailabilityInput {
  43203. s.Recurrence = v
  43204. return s
  43205. }
  43206. // Contains the output of DescribeScheduledInstanceAvailability.
  43207. type DescribeScheduledInstanceAvailabilityOutput struct {
  43208. _ struct{} `type:"structure"`
  43209. // The token required to retrieve the next set of results. This value is null
  43210. // when there are no more results to return.
  43211. NextToken *string `locationName:"nextToken" type:"string"`
  43212. // Information about the available Scheduled Instances.
  43213. ScheduledInstanceAvailabilitySet []*ScheduledInstanceAvailability `locationName:"scheduledInstanceAvailabilitySet" locationNameList:"item" type:"list"`
  43214. }
  43215. // String returns the string representation
  43216. func (s DescribeScheduledInstanceAvailabilityOutput) String() string {
  43217. return awsutil.Prettify(s)
  43218. }
  43219. // GoString returns the string representation
  43220. func (s DescribeScheduledInstanceAvailabilityOutput) GoString() string {
  43221. return s.String()
  43222. }
  43223. // SetNextToken sets the NextToken field's value.
  43224. func (s *DescribeScheduledInstanceAvailabilityOutput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityOutput {
  43225. s.NextToken = &v
  43226. return s
  43227. }
  43228. // SetScheduledInstanceAvailabilitySet sets the ScheduledInstanceAvailabilitySet field's value.
  43229. func (s *DescribeScheduledInstanceAvailabilityOutput) SetScheduledInstanceAvailabilitySet(v []*ScheduledInstanceAvailability) *DescribeScheduledInstanceAvailabilityOutput {
  43230. s.ScheduledInstanceAvailabilitySet = v
  43231. return s
  43232. }
  43233. // Contains the parameters for DescribeScheduledInstances.
  43234. type DescribeScheduledInstancesInput struct {
  43235. _ struct{} `type:"structure"`
  43236. // Checks whether you have the required permissions for the action, without
  43237. // actually making the request, and provides an error response. If you have
  43238. // the required permissions, the error response is DryRunOperation. Otherwise,
  43239. // it is UnauthorizedOperation.
  43240. DryRun *bool `type:"boolean"`
  43241. // One or more filters.
  43242. //
  43243. // * availability-zone - The Availability Zone (for example, us-west-2a).
  43244. //
  43245. // * instance-type - The instance type (for example, c4.large).
  43246. //
  43247. // * network-platform - The network platform (EC2-Classic or EC2-VPC).
  43248. //
  43249. // * platform - The platform (Linux/UNIX or Windows).
  43250. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  43251. // The maximum number of results to return in a single call. This value can
  43252. // be between 5 and 300. The default value is 100. To retrieve the remaining
  43253. // results, make another call with the returned NextToken value.
  43254. MaxResults *int64 `type:"integer"`
  43255. // The token for the next set of results.
  43256. NextToken *string `type:"string"`
  43257. // One or more Scheduled Instance IDs.
  43258. ScheduledInstanceIds []*string `locationName:"ScheduledInstanceId" locationNameList:"ScheduledInstanceId" type:"list"`
  43259. // The time period for the first schedule to start.
  43260. SlotStartTimeRange *SlotStartTimeRangeRequest `type:"structure"`
  43261. }
  43262. // String returns the string representation
  43263. func (s DescribeScheduledInstancesInput) String() string {
  43264. return awsutil.Prettify(s)
  43265. }
  43266. // GoString returns the string representation
  43267. func (s DescribeScheduledInstancesInput) GoString() string {
  43268. return s.String()
  43269. }
  43270. // SetDryRun sets the DryRun field's value.
  43271. func (s *DescribeScheduledInstancesInput) SetDryRun(v bool) *DescribeScheduledInstancesInput {
  43272. s.DryRun = &v
  43273. return s
  43274. }
  43275. // SetFilters sets the Filters field's value.
  43276. func (s *DescribeScheduledInstancesInput) SetFilters(v []*Filter) *DescribeScheduledInstancesInput {
  43277. s.Filters = v
  43278. return s
  43279. }
  43280. // SetMaxResults sets the MaxResults field's value.
  43281. func (s *DescribeScheduledInstancesInput) SetMaxResults(v int64) *DescribeScheduledInstancesInput {
  43282. s.MaxResults = &v
  43283. return s
  43284. }
  43285. // SetNextToken sets the NextToken field's value.
  43286. func (s *DescribeScheduledInstancesInput) SetNextToken(v string) *DescribeScheduledInstancesInput {
  43287. s.NextToken = &v
  43288. return s
  43289. }
  43290. // SetScheduledInstanceIds sets the ScheduledInstanceIds field's value.
  43291. func (s *DescribeScheduledInstancesInput) SetScheduledInstanceIds(v []*string) *DescribeScheduledInstancesInput {
  43292. s.ScheduledInstanceIds = v
  43293. return s
  43294. }
  43295. // SetSlotStartTimeRange sets the SlotStartTimeRange field's value.
  43296. func (s *DescribeScheduledInstancesInput) SetSlotStartTimeRange(v *SlotStartTimeRangeRequest) *DescribeScheduledInstancesInput {
  43297. s.SlotStartTimeRange = v
  43298. return s
  43299. }
  43300. // Contains the output of DescribeScheduledInstances.
  43301. type DescribeScheduledInstancesOutput struct {
  43302. _ struct{} `type:"structure"`
  43303. // The token required to retrieve the next set of results. This value is null
  43304. // when there are no more results to return.
  43305. NextToken *string `locationName:"nextToken" type:"string"`
  43306. // Information about the Scheduled Instances.
  43307. ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
  43308. }
  43309. // String returns the string representation
  43310. func (s DescribeScheduledInstancesOutput) String() string {
  43311. return awsutil.Prettify(s)
  43312. }
  43313. // GoString returns the string representation
  43314. func (s DescribeScheduledInstancesOutput) GoString() string {
  43315. return s.String()
  43316. }
  43317. // SetNextToken sets the NextToken field's value.
  43318. func (s *DescribeScheduledInstancesOutput) SetNextToken(v string) *DescribeScheduledInstancesOutput {
  43319. s.NextToken = &v
  43320. return s
  43321. }
  43322. // SetScheduledInstanceSet sets the ScheduledInstanceSet field's value.
  43323. func (s *DescribeScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *DescribeScheduledInstancesOutput {
  43324. s.ScheduledInstanceSet = v
  43325. return s
  43326. }
  43327. type DescribeSecurityGroupReferencesInput struct {
  43328. _ struct{} `type:"structure"`
  43329. // Checks whether you have the required permissions for the action, without
  43330. // actually making the request, and provides an error response. If you have
  43331. // the required permissions, the error response is DryRunOperation. Otherwise,
  43332. // it is UnauthorizedOperation.
  43333. DryRun *bool `type:"boolean"`
  43334. // One or more security group IDs in your account.
  43335. //
  43336. // GroupId is a required field
  43337. GroupId []*string `locationNameList:"item" type:"list" required:"true"`
  43338. }
  43339. // String returns the string representation
  43340. func (s DescribeSecurityGroupReferencesInput) String() string {
  43341. return awsutil.Prettify(s)
  43342. }
  43343. // GoString returns the string representation
  43344. func (s DescribeSecurityGroupReferencesInput) GoString() string {
  43345. return s.String()
  43346. }
  43347. // Validate inspects the fields of the type to determine if they are valid.
  43348. func (s *DescribeSecurityGroupReferencesInput) Validate() error {
  43349. invalidParams := request.ErrInvalidParams{Context: "DescribeSecurityGroupReferencesInput"}
  43350. if s.GroupId == nil {
  43351. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  43352. }
  43353. if invalidParams.Len() > 0 {
  43354. return invalidParams
  43355. }
  43356. return nil
  43357. }
  43358. // SetDryRun sets the DryRun field's value.
  43359. func (s *DescribeSecurityGroupReferencesInput) SetDryRun(v bool) *DescribeSecurityGroupReferencesInput {
  43360. s.DryRun = &v
  43361. return s
  43362. }
  43363. // SetGroupId sets the GroupId field's value.
  43364. func (s *DescribeSecurityGroupReferencesInput) SetGroupId(v []*string) *DescribeSecurityGroupReferencesInput {
  43365. s.GroupId = v
  43366. return s
  43367. }
  43368. type DescribeSecurityGroupReferencesOutput struct {
  43369. _ struct{} `type:"structure"`
  43370. // Information about the VPCs with the referencing security groups.
  43371. SecurityGroupReferenceSet []*SecurityGroupReference `locationName:"securityGroupReferenceSet" locationNameList:"item" type:"list"`
  43372. }
  43373. // String returns the string representation
  43374. func (s DescribeSecurityGroupReferencesOutput) String() string {
  43375. return awsutil.Prettify(s)
  43376. }
  43377. // GoString returns the string representation
  43378. func (s DescribeSecurityGroupReferencesOutput) GoString() string {
  43379. return s.String()
  43380. }
  43381. // SetSecurityGroupReferenceSet sets the SecurityGroupReferenceSet field's value.
  43382. func (s *DescribeSecurityGroupReferencesOutput) SetSecurityGroupReferenceSet(v []*SecurityGroupReference) *DescribeSecurityGroupReferencesOutput {
  43383. s.SecurityGroupReferenceSet = v
  43384. return s
  43385. }
  43386. type DescribeSecurityGroupsInput struct {
  43387. _ struct{} `type:"structure"`
  43388. // Checks whether you have the required permissions for the action, without
  43389. // actually making the request, and provides an error response. If you have
  43390. // the required permissions, the error response is DryRunOperation. Otherwise,
  43391. // it is UnauthorizedOperation.
  43392. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43393. // One or more filters. If using multiple filters for rules, the results include
  43394. // security groups for which any combination of rules - not necessarily a single
  43395. // rule - match all filters.
  43396. //
  43397. // * description - The description of the security group.
  43398. //
  43399. // * egress.ip-permission.cidr - An IPv4 CIDR block for an outbound security
  43400. // group rule.
  43401. //
  43402. // * egress.ip-permission.from-port - For an outbound rule, the start of
  43403. // port range for the TCP and UDP protocols, or an ICMP type number.
  43404. //
  43405. // * egress.ip-permission.group-id - The ID of a security group that has
  43406. // been referenced in an outbound security group rule.
  43407. //
  43408. // * egress.ip-permission.group-name - The name of a security group that
  43409. // has been referenced in an outbound security group rule.
  43410. //
  43411. // * egress.ip-permission.ipv6-cidr - An IPv6 CIDR block for an outbound
  43412. // security group rule.
  43413. //
  43414. // * egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service
  43415. // to which a security group rule allows outbound access.
  43416. //
  43417. // * egress.ip-permission.protocol - The IP protocol for an outbound security
  43418. // group rule (tcp | udp | icmp or a protocol number).
  43419. //
  43420. // * egress.ip-permission.to-port - For an outbound rule, the end of port
  43421. // range for the TCP and UDP protocols, or an ICMP code.
  43422. //
  43423. // * egress.ip-permission.user-id - The ID of an AWS account that has been
  43424. // referenced in an outbound security group rule.
  43425. //
  43426. // * group-id - The ID of the security group.
  43427. //
  43428. // * group-name - The name of the security group.
  43429. //
  43430. // * ip-permission.cidr - An IPv4 CIDR block for an inbound security group
  43431. // rule.
  43432. //
  43433. // * ip-permission.from-port - For an inbound rule, the start of port range
  43434. // for the TCP and UDP protocols, or an ICMP type number.
  43435. //
  43436. // * ip-permission.group-id - The ID of a security group that has been referenced
  43437. // in an inbound security group rule.
  43438. //
  43439. // * ip-permission.group-name - The name of a security group that has been
  43440. // referenced in an inbound security group rule.
  43441. //
  43442. // * ip-permission.ipv6-cidr - An IPv6 CIDR block for an inbound security
  43443. // group rule.
  43444. //
  43445. // * ip-permission.prefix-list-id - The ID (prefix) of the AWS service from
  43446. // which a security group rule allows inbound access.
  43447. //
  43448. // * ip-permission.protocol - The IP protocol for an inbound security group
  43449. // rule (tcp | udp | icmp or a protocol number).
  43450. //
  43451. // * ip-permission.to-port - For an inbound rule, the end of port range for
  43452. // the TCP and UDP protocols, or an ICMP code.
  43453. //
  43454. // * ip-permission.user-id - The ID of an AWS account that has been referenced
  43455. // in an inbound security group rule.
  43456. //
  43457. // * owner-id - The AWS account ID of the owner of the security group.
  43458. //
  43459. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  43460. // Use the tag key in the filter name and the tag value as the filter value.
  43461. // For example, to find all resources that have a tag with the key Owner
  43462. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  43463. // the filter value.
  43464. //
  43465. // * tag-key - The key of a tag assigned to the resource. Use this filter
  43466. // to find all resources assigned a tag with a specific key, regardless of
  43467. // the tag value.
  43468. //
  43469. // * vpc-id - The ID of the VPC specified when the security group was created.
  43470. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  43471. // One or more security group IDs. Required for security groups in a nondefault
  43472. // VPC.
  43473. //
  43474. // Default: Describes all your security groups.
  43475. GroupIds []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"`
  43476. // [EC2-Classic and default VPC only] One or more security group names. You
  43477. // can specify either the security group name or the security group ID. For
  43478. // security groups in a nondefault VPC, use the group-name filter to describe
  43479. // security groups by name.
  43480. //
  43481. // Default: Describes all your security groups.
  43482. GroupNames []*string `locationName:"GroupName" locationNameList:"GroupName" type:"list"`
  43483. // The maximum number of results to return in a single call. To retrieve the
  43484. // remaining results, make another request with the returned NextToken value.
  43485. // This value can be between 5 and 1000. If this parameter is not specified,
  43486. // then all results are returned.
  43487. MaxResults *int64 `type:"integer"`
  43488. // The token to request the next page of results.
  43489. NextToken *string `type:"string"`
  43490. }
  43491. // String returns the string representation
  43492. func (s DescribeSecurityGroupsInput) String() string {
  43493. return awsutil.Prettify(s)
  43494. }
  43495. // GoString returns the string representation
  43496. func (s DescribeSecurityGroupsInput) GoString() string {
  43497. return s.String()
  43498. }
  43499. // SetDryRun sets the DryRun field's value.
  43500. func (s *DescribeSecurityGroupsInput) SetDryRun(v bool) *DescribeSecurityGroupsInput {
  43501. s.DryRun = &v
  43502. return s
  43503. }
  43504. // SetFilters sets the Filters field's value.
  43505. func (s *DescribeSecurityGroupsInput) SetFilters(v []*Filter) *DescribeSecurityGroupsInput {
  43506. s.Filters = v
  43507. return s
  43508. }
  43509. // SetGroupIds sets the GroupIds field's value.
  43510. func (s *DescribeSecurityGroupsInput) SetGroupIds(v []*string) *DescribeSecurityGroupsInput {
  43511. s.GroupIds = v
  43512. return s
  43513. }
  43514. // SetGroupNames sets the GroupNames field's value.
  43515. func (s *DescribeSecurityGroupsInput) SetGroupNames(v []*string) *DescribeSecurityGroupsInput {
  43516. s.GroupNames = v
  43517. return s
  43518. }
  43519. // SetMaxResults sets the MaxResults field's value.
  43520. func (s *DescribeSecurityGroupsInput) SetMaxResults(v int64) *DescribeSecurityGroupsInput {
  43521. s.MaxResults = &v
  43522. return s
  43523. }
  43524. // SetNextToken sets the NextToken field's value.
  43525. func (s *DescribeSecurityGroupsInput) SetNextToken(v string) *DescribeSecurityGroupsInput {
  43526. s.NextToken = &v
  43527. return s
  43528. }
  43529. type DescribeSecurityGroupsOutput struct {
  43530. _ struct{} `type:"structure"`
  43531. // The token to use to retrieve the next page of results. This value is null
  43532. // when there are no more results to return.
  43533. NextToken *string `locationName:"nextToken" type:"string"`
  43534. // Information about one or more security groups.
  43535. SecurityGroups []*SecurityGroup `locationName:"securityGroupInfo" locationNameList:"item" type:"list"`
  43536. }
  43537. // String returns the string representation
  43538. func (s DescribeSecurityGroupsOutput) String() string {
  43539. return awsutil.Prettify(s)
  43540. }
  43541. // GoString returns the string representation
  43542. func (s DescribeSecurityGroupsOutput) GoString() string {
  43543. return s.String()
  43544. }
  43545. // SetNextToken sets the NextToken field's value.
  43546. func (s *DescribeSecurityGroupsOutput) SetNextToken(v string) *DescribeSecurityGroupsOutput {
  43547. s.NextToken = &v
  43548. return s
  43549. }
  43550. // SetSecurityGroups sets the SecurityGroups field's value.
  43551. func (s *DescribeSecurityGroupsOutput) SetSecurityGroups(v []*SecurityGroup) *DescribeSecurityGroupsOutput {
  43552. s.SecurityGroups = v
  43553. return s
  43554. }
  43555. // Contains the parameters for DescribeSnapshotAttribute.
  43556. type DescribeSnapshotAttributeInput struct {
  43557. _ struct{} `type:"structure"`
  43558. // The snapshot attribute you would like to view.
  43559. //
  43560. // Attribute is a required field
  43561. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"`
  43562. // Checks whether you have the required permissions for the action, without
  43563. // actually making the request, and provides an error response. If you have
  43564. // the required permissions, the error response is DryRunOperation. Otherwise,
  43565. // it is UnauthorizedOperation.
  43566. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43567. // The ID of the EBS snapshot.
  43568. //
  43569. // SnapshotId is a required field
  43570. SnapshotId *string `type:"string" required:"true"`
  43571. }
  43572. // String returns the string representation
  43573. func (s DescribeSnapshotAttributeInput) String() string {
  43574. return awsutil.Prettify(s)
  43575. }
  43576. // GoString returns the string representation
  43577. func (s DescribeSnapshotAttributeInput) GoString() string {
  43578. return s.String()
  43579. }
  43580. // Validate inspects the fields of the type to determine if they are valid.
  43581. func (s *DescribeSnapshotAttributeInput) Validate() error {
  43582. invalidParams := request.ErrInvalidParams{Context: "DescribeSnapshotAttributeInput"}
  43583. if s.Attribute == nil {
  43584. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  43585. }
  43586. if s.SnapshotId == nil {
  43587. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  43588. }
  43589. if invalidParams.Len() > 0 {
  43590. return invalidParams
  43591. }
  43592. return nil
  43593. }
  43594. // SetAttribute sets the Attribute field's value.
  43595. func (s *DescribeSnapshotAttributeInput) SetAttribute(v string) *DescribeSnapshotAttributeInput {
  43596. s.Attribute = &v
  43597. return s
  43598. }
  43599. // SetDryRun sets the DryRun field's value.
  43600. func (s *DescribeSnapshotAttributeInput) SetDryRun(v bool) *DescribeSnapshotAttributeInput {
  43601. s.DryRun = &v
  43602. return s
  43603. }
  43604. // SetSnapshotId sets the SnapshotId field's value.
  43605. func (s *DescribeSnapshotAttributeInput) SetSnapshotId(v string) *DescribeSnapshotAttributeInput {
  43606. s.SnapshotId = &v
  43607. return s
  43608. }
  43609. // Contains the output of DescribeSnapshotAttribute.
  43610. type DescribeSnapshotAttributeOutput struct {
  43611. _ struct{} `type:"structure"`
  43612. // A list of permissions for creating volumes from the snapshot.
  43613. CreateVolumePermissions []*CreateVolumePermission `locationName:"createVolumePermission" locationNameList:"item" type:"list"`
  43614. // A list of product codes.
  43615. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  43616. // The ID of the EBS snapshot.
  43617. SnapshotId *string `locationName:"snapshotId" type:"string"`
  43618. }
  43619. // String returns the string representation
  43620. func (s DescribeSnapshotAttributeOutput) String() string {
  43621. return awsutil.Prettify(s)
  43622. }
  43623. // GoString returns the string representation
  43624. func (s DescribeSnapshotAttributeOutput) GoString() string {
  43625. return s.String()
  43626. }
  43627. // SetCreateVolumePermissions sets the CreateVolumePermissions field's value.
  43628. func (s *DescribeSnapshotAttributeOutput) SetCreateVolumePermissions(v []*CreateVolumePermission) *DescribeSnapshotAttributeOutput {
  43629. s.CreateVolumePermissions = v
  43630. return s
  43631. }
  43632. // SetProductCodes sets the ProductCodes field's value.
  43633. func (s *DescribeSnapshotAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeSnapshotAttributeOutput {
  43634. s.ProductCodes = v
  43635. return s
  43636. }
  43637. // SetSnapshotId sets the SnapshotId field's value.
  43638. func (s *DescribeSnapshotAttributeOutput) SetSnapshotId(v string) *DescribeSnapshotAttributeOutput {
  43639. s.SnapshotId = &v
  43640. return s
  43641. }
  43642. // Contains the parameters for DescribeSnapshots.
  43643. type DescribeSnapshotsInput struct {
  43644. _ struct{} `type:"structure"`
  43645. // Checks whether you have the required permissions for the action, without
  43646. // actually making the request, and provides an error response. If you have
  43647. // the required permissions, the error response is DryRunOperation. Otherwise,
  43648. // it is UnauthorizedOperation.
  43649. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43650. // One or more filters.
  43651. //
  43652. // * description - A description of the snapshot.
  43653. //
  43654. // * owner-alias - Value from an Amazon-maintained list (amazon | aws-marketplace
  43655. // | microsoft) of snapshot owners. Not to be confused with the user-configured
  43656. // AWS account alias, which is set from the IAM console.
  43657. //
  43658. // * owner-id - The ID of the AWS account that owns the snapshot.
  43659. //
  43660. // * progress - The progress of the snapshot, as a percentage (for example,
  43661. // 80%).
  43662. //
  43663. // * snapshot-id - The snapshot ID.
  43664. //
  43665. // * start-time - The time stamp when the snapshot was initiated.
  43666. //
  43667. // * status - The status of the snapshot (pending | completed | error).
  43668. //
  43669. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  43670. // Use the tag key in the filter name and the tag value as the filter value.
  43671. // For example, to find all resources that have a tag with the key Owner
  43672. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  43673. // the filter value.
  43674. //
  43675. // * tag-key - The key of a tag assigned to the resource. Use this filter
  43676. // to find all resources assigned a tag with a specific key, regardless of
  43677. // the tag value.
  43678. //
  43679. // * volume-id - The ID of the volume the snapshot is for.
  43680. //
  43681. // * volume-size - The size of the volume, in GiB.
  43682. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  43683. // The maximum number of snapshot results returned by DescribeSnapshots in paginated
  43684. // output. When this parameter is used, DescribeSnapshots only returns MaxResults
  43685. // results in a single page along with a NextToken response element. The remaining
  43686. // results of the initial request can be seen by sending another DescribeSnapshots
  43687. // request with the returned NextToken value. This value can be between 5 and
  43688. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  43689. // are returned. If this parameter is not used, then DescribeSnapshots returns
  43690. // all results. You cannot specify this parameter and the snapshot IDs parameter
  43691. // in the same request.
  43692. MaxResults *int64 `type:"integer"`
  43693. // The NextToken value returned from a previous paginated DescribeSnapshots
  43694. // request where MaxResults was used and the results exceeded the value of that
  43695. // parameter. Pagination continues from the end of the previous results that
  43696. // returned the NextToken value. This value is null when there are no more results
  43697. // to return.
  43698. NextToken *string `type:"string"`
  43699. // Returns the snapshots owned by the specified owner. Multiple owners can be
  43700. // specified.
  43701. OwnerIds []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  43702. // One or more AWS accounts IDs that can create volumes from the snapshot.
  43703. RestorableByUserIds []*string `locationName:"RestorableBy" type:"list"`
  43704. // One or more snapshot IDs.
  43705. //
  43706. // Default: Describes snapshots for which you have launch permissions.
  43707. SnapshotIds []*string `locationName:"SnapshotId" locationNameList:"SnapshotId" type:"list"`
  43708. }
  43709. // String returns the string representation
  43710. func (s DescribeSnapshotsInput) String() string {
  43711. return awsutil.Prettify(s)
  43712. }
  43713. // GoString returns the string representation
  43714. func (s DescribeSnapshotsInput) GoString() string {
  43715. return s.String()
  43716. }
  43717. // SetDryRun sets the DryRun field's value.
  43718. func (s *DescribeSnapshotsInput) SetDryRun(v bool) *DescribeSnapshotsInput {
  43719. s.DryRun = &v
  43720. return s
  43721. }
  43722. // SetFilters sets the Filters field's value.
  43723. func (s *DescribeSnapshotsInput) SetFilters(v []*Filter) *DescribeSnapshotsInput {
  43724. s.Filters = v
  43725. return s
  43726. }
  43727. // SetMaxResults sets the MaxResults field's value.
  43728. func (s *DescribeSnapshotsInput) SetMaxResults(v int64) *DescribeSnapshotsInput {
  43729. s.MaxResults = &v
  43730. return s
  43731. }
  43732. // SetNextToken sets the NextToken field's value.
  43733. func (s *DescribeSnapshotsInput) SetNextToken(v string) *DescribeSnapshotsInput {
  43734. s.NextToken = &v
  43735. return s
  43736. }
  43737. // SetOwnerIds sets the OwnerIds field's value.
  43738. func (s *DescribeSnapshotsInput) SetOwnerIds(v []*string) *DescribeSnapshotsInput {
  43739. s.OwnerIds = v
  43740. return s
  43741. }
  43742. // SetRestorableByUserIds sets the RestorableByUserIds field's value.
  43743. func (s *DescribeSnapshotsInput) SetRestorableByUserIds(v []*string) *DescribeSnapshotsInput {
  43744. s.RestorableByUserIds = v
  43745. return s
  43746. }
  43747. // SetSnapshotIds sets the SnapshotIds field's value.
  43748. func (s *DescribeSnapshotsInput) SetSnapshotIds(v []*string) *DescribeSnapshotsInput {
  43749. s.SnapshotIds = v
  43750. return s
  43751. }
  43752. // Contains the output of DescribeSnapshots.
  43753. type DescribeSnapshotsOutput struct {
  43754. _ struct{} `type:"structure"`
  43755. // The NextToken value to include in a future DescribeSnapshots request. When
  43756. // the results of a DescribeSnapshots request exceed MaxResults, this value
  43757. // can be used to retrieve the next page of results. This value is null when
  43758. // there are no more results to return.
  43759. NextToken *string `locationName:"nextToken" type:"string"`
  43760. // Information about the snapshots.
  43761. Snapshots []*Snapshot `locationName:"snapshotSet" locationNameList:"item" type:"list"`
  43762. }
  43763. // String returns the string representation
  43764. func (s DescribeSnapshotsOutput) String() string {
  43765. return awsutil.Prettify(s)
  43766. }
  43767. // GoString returns the string representation
  43768. func (s DescribeSnapshotsOutput) GoString() string {
  43769. return s.String()
  43770. }
  43771. // SetNextToken sets the NextToken field's value.
  43772. func (s *DescribeSnapshotsOutput) SetNextToken(v string) *DescribeSnapshotsOutput {
  43773. s.NextToken = &v
  43774. return s
  43775. }
  43776. // SetSnapshots sets the Snapshots field's value.
  43777. func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshotsOutput {
  43778. s.Snapshots = v
  43779. return s
  43780. }
  43781. // Contains the parameters for DescribeSpotDatafeedSubscription.
  43782. type DescribeSpotDatafeedSubscriptionInput struct {
  43783. _ struct{} `type:"structure"`
  43784. // Checks whether you have the required permissions for the action, without
  43785. // actually making the request, and provides an error response. If you have
  43786. // the required permissions, the error response is DryRunOperation. Otherwise,
  43787. // it is UnauthorizedOperation.
  43788. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43789. }
  43790. // String returns the string representation
  43791. func (s DescribeSpotDatafeedSubscriptionInput) String() string {
  43792. return awsutil.Prettify(s)
  43793. }
  43794. // GoString returns the string representation
  43795. func (s DescribeSpotDatafeedSubscriptionInput) GoString() string {
  43796. return s.String()
  43797. }
  43798. // SetDryRun sets the DryRun field's value.
  43799. func (s *DescribeSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DescribeSpotDatafeedSubscriptionInput {
  43800. s.DryRun = &v
  43801. return s
  43802. }
  43803. // Contains the output of DescribeSpotDatafeedSubscription.
  43804. type DescribeSpotDatafeedSubscriptionOutput struct {
  43805. _ struct{} `type:"structure"`
  43806. // The Spot Instance data feed subscription.
  43807. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
  43808. }
  43809. // String returns the string representation
  43810. func (s DescribeSpotDatafeedSubscriptionOutput) String() string {
  43811. return awsutil.Prettify(s)
  43812. }
  43813. // GoString returns the string representation
  43814. func (s DescribeSpotDatafeedSubscriptionOutput) GoString() string {
  43815. return s.String()
  43816. }
  43817. // SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value.
  43818. func (s *DescribeSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *DescribeSpotDatafeedSubscriptionOutput {
  43819. s.SpotDatafeedSubscription = v
  43820. return s
  43821. }
  43822. // Contains the parameters for DescribeSpotFleetInstances.
  43823. type DescribeSpotFleetInstancesInput struct {
  43824. _ struct{} `type:"structure"`
  43825. // Checks whether you have the required permissions for the action, without
  43826. // actually making the request, and provides an error response. If you have
  43827. // the required permissions, the error response is DryRunOperation. Otherwise,
  43828. // it is UnauthorizedOperation.
  43829. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43830. // The maximum number of results to return in a single call. Specify a value
  43831. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  43832. // results, make another call with the returned NextToken value.
  43833. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  43834. // The token for the next set of results.
  43835. NextToken *string `locationName:"nextToken" type:"string"`
  43836. // The ID of the Spot Fleet request.
  43837. //
  43838. // SpotFleetRequestId is a required field
  43839. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  43840. }
  43841. // String returns the string representation
  43842. func (s DescribeSpotFleetInstancesInput) String() string {
  43843. return awsutil.Prettify(s)
  43844. }
  43845. // GoString returns the string representation
  43846. func (s DescribeSpotFleetInstancesInput) GoString() string {
  43847. return s.String()
  43848. }
  43849. // Validate inspects the fields of the type to determine if they are valid.
  43850. func (s *DescribeSpotFleetInstancesInput) Validate() error {
  43851. invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetInstancesInput"}
  43852. if s.SpotFleetRequestId == nil {
  43853. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  43854. }
  43855. if invalidParams.Len() > 0 {
  43856. return invalidParams
  43857. }
  43858. return nil
  43859. }
  43860. // SetDryRun sets the DryRun field's value.
  43861. func (s *DescribeSpotFleetInstancesInput) SetDryRun(v bool) *DescribeSpotFleetInstancesInput {
  43862. s.DryRun = &v
  43863. return s
  43864. }
  43865. // SetMaxResults sets the MaxResults field's value.
  43866. func (s *DescribeSpotFleetInstancesInput) SetMaxResults(v int64) *DescribeSpotFleetInstancesInput {
  43867. s.MaxResults = &v
  43868. return s
  43869. }
  43870. // SetNextToken sets the NextToken field's value.
  43871. func (s *DescribeSpotFleetInstancesInput) SetNextToken(v string) *DescribeSpotFleetInstancesInput {
  43872. s.NextToken = &v
  43873. return s
  43874. }
  43875. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  43876. func (s *DescribeSpotFleetInstancesInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesInput {
  43877. s.SpotFleetRequestId = &v
  43878. return s
  43879. }
  43880. // Contains the output of DescribeSpotFleetInstances.
  43881. type DescribeSpotFleetInstancesOutput struct {
  43882. _ struct{} `type:"structure"`
  43883. // The running instances. This list is refreshed periodically and might be out
  43884. // of date.
  43885. ActiveInstances []*ActiveInstance `locationName:"activeInstanceSet" locationNameList:"item" type:"list"`
  43886. // The token required to retrieve the next set of results. This value is null
  43887. // when there are no more results to return.
  43888. NextToken *string `locationName:"nextToken" type:"string"`
  43889. // The ID of the Spot Fleet request.
  43890. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
  43891. }
  43892. // String returns the string representation
  43893. func (s DescribeSpotFleetInstancesOutput) String() string {
  43894. return awsutil.Prettify(s)
  43895. }
  43896. // GoString returns the string representation
  43897. func (s DescribeSpotFleetInstancesOutput) GoString() string {
  43898. return s.String()
  43899. }
  43900. // SetActiveInstances sets the ActiveInstances field's value.
  43901. func (s *DescribeSpotFleetInstancesOutput) SetActiveInstances(v []*ActiveInstance) *DescribeSpotFleetInstancesOutput {
  43902. s.ActiveInstances = v
  43903. return s
  43904. }
  43905. // SetNextToken sets the NextToken field's value.
  43906. func (s *DescribeSpotFleetInstancesOutput) SetNextToken(v string) *DescribeSpotFleetInstancesOutput {
  43907. s.NextToken = &v
  43908. return s
  43909. }
  43910. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  43911. func (s *DescribeSpotFleetInstancesOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesOutput {
  43912. s.SpotFleetRequestId = &v
  43913. return s
  43914. }
  43915. // Contains the parameters for DescribeSpotFleetRequestHistory.
  43916. type DescribeSpotFleetRequestHistoryInput struct {
  43917. _ struct{} `type:"structure"`
  43918. // Checks whether you have the required permissions for the action, without
  43919. // actually making the request, and provides an error response. If you have
  43920. // the required permissions, the error response is DryRunOperation. Otherwise,
  43921. // it is UnauthorizedOperation.
  43922. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43923. // The type of events to describe. By default, all events are described.
  43924. EventType *string `locationName:"eventType" type:"string" enum:"EventType"`
  43925. // The maximum number of results to return in a single call. Specify a value
  43926. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  43927. // results, make another call with the returned NextToken value.
  43928. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  43929. // The token for the next set of results.
  43930. NextToken *string `locationName:"nextToken" type:"string"`
  43931. // The ID of the Spot Fleet request.
  43932. //
  43933. // SpotFleetRequestId is a required field
  43934. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  43935. // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  43936. //
  43937. // StartTime is a required field
  43938. StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
  43939. }
  43940. // String returns the string representation
  43941. func (s DescribeSpotFleetRequestHistoryInput) String() string {
  43942. return awsutil.Prettify(s)
  43943. }
  43944. // GoString returns the string representation
  43945. func (s DescribeSpotFleetRequestHistoryInput) GoString() string {
  43946. return s.String()
  43947. }
  43948. // Validate inspects the fields of the type to determine if they are valid.
  43949. func (s *DescribeSpotFleetRequestHistoryInput) Validate() error {
  43950. invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetRequestHistoryInput"}
  43951. if s.SpotFleetRequestId == nil {
  43952. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  43953. }
  43954. if s.StartTime == nil {
  43955. invalidParams.Add(request.NewErrParamRequired("StartTime"))
  43956. }
  43957. if invalidParams.Len() > 0 {
  43958. return invalidParams
  43959. }
  43960. return nil
  43961. }
  43962. // SetDryRun sets the DryRun field's value.
  43963. func (s *DescribeSpotFleetRequestHistoryInput) SetDryRun(v bool) *DescribeSpotFleetRequestHistoryInput {
  43964. s.DryRun = &v
  43965. return s
  43966. }
  43967. // SetEventType sets the EventType field's value.
  43968. func (s *DescribeSpotFleetRequestHistoryInput) SetEventType(v string) *DescribeSpotFleetRequestHistoryInput {
  43969. s.EventType = &v
  43970. return s
  43971. }
  43972. // SetMaxResults sets the MaxResults field's value.
  43973. func (s *DescribeSpotFleetRequestHistoryInput) SetMaxResults(v int64) *DescribeSpotFleetRequestHistoryInput {
  43974. s.MaxResults = &v
  43975. return s
  43976. }
  43977. // SetNextToken sets the NextToken field's value.
  43978. func (s *DescribeSpotFleetRequestHistoryInput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryInput {
  43979. s.NextToken = &v
  43980. return s
  43981. }
  43982. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  43983. func (s *DescribeSpotFleetRequestHistoryInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryInput {
  43984. s.SpotFleetRequestId = &v
  43985. return s
  43986. }
  43987. // SetStartTime sets the StartTime field's value.
  43988. func (s *DescribeSpotFleetRequestHistoryInput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryInput {
  43989. s.StartTime = &v
  43990. return s
  43991. }
  43992. // Contains the output of DescribeSpotFleetRequestHistory.
  43993. type DescribeSpotFleetRequestHistoryOutput struct {
  43994. _ struct{} `type:"structure"`
  43995. // Information about the events in the history of the Spot Fleet request.
  43996. HistoryRecords []*HistoryRecord `locationName:"historyRecordSet" locationNameList:"item" type:"list"`
  43997. // The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  43998. // All records up to this time were retrieved.
  43999. //
  44000. // If nextToken indicates that there are more results, this value is not present.
  44001. LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp"`
  44002. // The token required to retrieve the next set of results. This value is null
  44003. // when there are no more results to return.
  44004. NextToken *string `locationName:"nextToken" type:"string"`
  44005. // The ID of the Spot Fleet request.
  44006. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
  44007. // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  44008. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  44009. }
  44010. // String returns the string representation
  44011. func (s DescribeSpotFleetRequestHistoryOutput) String() string {
  44012. return awsutil.Prettify(s)
  44013. }
  44014. // GoString returns the string representation
  44015. func (s DescribeSpotFleetRequestHistoryOutput) GoString() string {
  44016. return s.String()
  44017. }
  44018. // SetHistoryRecords sets the HistoryRecords field's value.
  44019. func (s *DescribeSpotFleetRequestHistoryOutput) SetHistoryRecords(v []*HistoryRecord) *DescribeSpotFleetRequestHistoryOutput {
  44020. s.HistoryRecords = v
  44021. return s
  44022. }
  44023. // SetLastEvaluatedTime sets the LastEvaluatedTime field's value.
  44024. func (s *DescribeSpotFleetRequestHistoryOutput) SetLastEvaluatedTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput {
  44025. s.LastEvaluatedTime = &v
  44026. return s
  44027. }
  44028. // SetNextToken sets the NextToken field's value.
  44029. func (s *DescribeSpotFleetRequestHistoryOutput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryOutput {
  44030. s.NextToken = &v
  44031. return s
  44032. }
  44033. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  44034. func (s *DescribeSpotFleetRequestHistoryOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryOutput {
  44035. s.SpotFleetRequestId = &v
  44036. return s
  44037. }
  44038. // SetStartTime sets the StartTime field's value.
  44039. func (s *DescribeSpotFleetRequestHistoryOutput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput {
  44040. s.StartTime = &v
  44041. return s
  44042. }
  44043. // Contains the parameters for DescribeSpotFleetRequests.
  44044. type DescribeSpotFleetRequestsInput struct {
  44045. _ struct{} `type:"structure"`
  44046. // Checks whether you have the required permissions for the action, without
  44047. // actually making the request, and provides an error response. If you have
  44048. // the required permissions, the error response is DryRunOperation. Otherwise,
  44049. // it is UnauthorizedOperation.
  44050. DryRun *bool `locationName:"dryRun" type:"boolean"`
  44051. // The maximum number of results to return in a single call. Specify a value
  44052. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  44053. // results, make another call with the returned NextToken value.
  44054. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  44055. // The token for the next set of results.
  44056. NextToken *string `locationName:"nextToken" type:"string"`
  44057. // The IDs of the Spot Fleet requests.
  44058. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list"`
  44059. }
  44060. // String returns the string representation
  44061. func (s DescribeSpotFleetRequestsInput) String() string {
  44062. return awsutil.Prettify(s)
  44063. }
  44064. // GoString returns the string representation
  44065. func (s DescribeSpotFleetRequestsInput) GoString() string {
  44066. return s.String()
  44067. }
  44068. // SetDryRun sets the DryRun field's value.
  44069. func (s *DescribeSpotFleetRequestsInput) SetDryRun(v bool) *DescribeSpotFleetRequestsInput {
  44070. s.DryRun = &v
  44071. return s
  44072. }
  44073. // SetMaxResults sets the MaxResults field's value.
  44074. func (s *DescribeSpotFleetRequestsInput) SetMaxResults(v int64) *DescribeSpotFleetRequestsInput {
  44075. s.MaxResults = &v
  44076. return s
  44077. }
  44078. // SetNextToken sets the NextToken field's value.
  44079. func (s *DescribeSpotFleetRequestsInput) SetNextToken(v string) *DescribeSpotFleetRequestsInput {
  44080. s.NextToken = &v
  44081. return s
  44082. }
  44083. // SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value.
  44084. func (s *DescribeSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *DescribeSpotFleetRequestsInput {
  44085. s.SpotFleetRequestIds = v
  44086. return s
  44087. }
  44088. // Contains the output of DescribeSpotFleetRequests.
  44089. type DescribeSpotFleetRequestsOutput struct {
  44090. _ struct{} `type:"structure"`
  44091. // The token required to retrieve the next set of results. This value is null
  44092. // when there are no more results to return.
  44093. NextToken *string `locationName:"nextToken" type:"string"`
  44094. // Information about the configuration of your Spot Fleet.
  44095. SpotFleetRequestConfigs []*SpotFleetRequestConfig `locationName:"spotFleetRequestConfigSet" locationNameList:"item" type:"list"`
  44096. }
  44097. // String returns the string representation
  44098. func (s DescribeSpotFleetRequestsOutput) String() string {
  44099. return awsutil.Prettify(s)
  44100. }
  44101. // GoString returns the string representation
  44102. func (s DescribeSpotFleetRequestsOutput) GoString() string {
  44103. return s.String()
  44104. }
  44105. // SetNextToken sets the NextToken field's value.
  44106. func (s *DescribeSpotFleetRequestsOutput) SetNextToken(v string) *DescribeSpotFleetRequestsOutput {
  44107. s.NextToken = &v
  44108. return s
  44109. }
  44110. // SetSpotFleetRequestConfigs sets the SpotFleetRequestConfigs field's value.
  44111. func (s *DescribeSpotFleetRequestsOutput) SetSpotFleetRequestConfigs(v []*SpotFleetRequestConfig) *DescribeSpotFleetRequestsOutput {
  44112. s.SpotFleetRequestConfigs = v
  44113. return s
  44114. }
  44115. // Contains the parameters for DescribeSpotInstanceRequests.
  44116. type DescribeSpotInstanceRequestsInput struct {
  44117. _ struct{} `type:"structure"`
  44118. // Checks whether you have the required permissions for the action, without
  44119. // actually making the request, and provides an error response. If you have
  44120. // the required permissions, the error response is DryRunOperation. Otherwise,
  44121. // it is UnauthorizedOperation.
  44122. DryRun *bool `locationName:"dryRun" type:"boolean"`
  44123. // One or more filters.
  44124. //
  44125. // * availability-zone-group - The Availability Zone group.
  44126. //
  44127. // * create-time - The time stamp when the Spot Instance request was created.
  44128. //
  44129. // * fault-code - The fault code related to the request.
  44130. //
  44131. // * fault-message - The fault message related to the request.
  44132. //
  44133. // * instance-id - The ID of the instance that fulfilled the request.
  44134. //
  44135. // * launch-group - The Spot Instance launch group.
  44136. //
  44137. // * launch.block-device-mapping.delete-on-termination - Indicates whether
  44138. // the EBS volume is deleted on instance termination.
  44139. //
  44140. // * launch.block-device-mapping.device-name - The device name for the volume
  44141. // in the block device mapping (for example, /dev/sdh or xvdh).
  44142. //
  44143. // * launch.block-device-mapping.snapshot-id - The ID of the snapshot for
  44144. // the EBS volume.
  44145. //
  44146. // * launch.block-device-mapping.volume-size - The size of the EBS volume,
  44147. // in GiB.
  44148. //
  44149. // * launch.block-device-mapping.volume-type - The type of EBS volume: gp2
  44150. // for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput
  44151. // Optimized HDD, sc1for Cold HDD, or standard for Magnetic.
  44152. //
  44153. // * launch.group-id - The ID of the security group for the instance.
  44154. //
  44155. // * launch.group-name - The name of the security group for the instance.
  44156. //
  44157. // * launch.image-id - The ID of the AMI.
  44158. //
  44159. // * launch.instance-type - The type of instance (for example, m3.medium).
  44160. //
  44161. // * launch.kernel-id - The kernel ID.
  44162. //
  44163. // * launch.key-name - The name of the key pair the instance launched with.
  44164. //
  44165. // * launch.monitoring-enabled - Whether detailed monitoring is enabled for
  44166. // the Spot Instance.
  44167. //
  44168. // * launch.ramdisk-id - The RAM disk ID.
  44169. //
  44170. // * launched-availability-zone - The Availability Zone in which the request
  44171. // is launched.
  44172. //
  44173. // * network-interface.addresses.primary - Indicates whether the IP address
  44174. // is the primary private IP address.
  44175. //
  44176. // * network-interface.delete-on-termination - Indicates whether the network
  44177. // interface is deleted when the instance is terminated.
  44178. //
  44179. // * network-interface.description - A description of the network interface.
  44180. //
  44181. // * network-interface.device-index - The index of the device for the network
  44182. // interface attachment on the instance.
  44183. //
  44184. // * network-interface.group-id - The ID of the security group associated
  44185. // with the network interface.
  44186. //
  44187. // * network-interface.network-interface-id - The ID of the network interface.
  44188. //
  44189. // * network-interface.private-ip-address - The primary private IP address
  44190. // of the network interface.
  44191. //
  44192. // * network-interface.subnet-id - The ID of the subnet for the instance.
  44193. //
  44194. // * product-description - The product description associated with the instance
  44195. // (Linux/UNIX | Windows).
  44196. //
  44197. // * spot-instance-request-id - The Spot Instance request ID.
  44198. //
  44199. // * spot-price - The maximum hourly price for any Spot Instance launched
  44200. // to fulfill the request.
  44201. //
  44202. // * state - The state of the Spot Instance request (open | active | closed
  44203. // | cancelled | failed). Spot request status information can help you track
  44204. // your Amazon EC2 Spot Instance requests. For more information, see Spot
  44205. // Request Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
  44206. // in the Amazon EC2 User Guide for Linux Instances.
  44207. //
  44208. // * status-code - The short code describing the most recent evaluation of
  44209. // your Spot Instance request.
  44210. //
  44211. // * status-message - The message explaining the status of the Spot Instance
  44212. // request.
  44213. //
  44214. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  44215. // Use the tag key in the filter name and the tag value as the filter value.
  44216. // For example, to find all resources that have a tag with the key Owner
  44217. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  44218. // the filter value.
  44219. //
  44220. // * tag-key - The key of a tag assigned to the resource. Use this filter
  44221. // to find all resources assigned a tag with a specific key, regardless of
  44222. // the tag value.
  44223. //
  44224. // * type - The type of Spot Instance request (one-time | persistent).
  44225. //
  44226. // * valid-from - The start date of the request.
  44227. //
  44228. // * valid-until - The end date of the request.
  44229. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44230. // The maximum number of results to return in a single call. Specify a value
  44231. // between 5 and 1000. To retrieve the remaining results, make another call
  44232. // with the returned NextToken value.
  44233. MaxResults *int64 `type:"integer"`
  44234. // The token to request the next set of results. This value is null when there
  44235. // are no more results to return.
  44236. NextToken *string `type:"string"`
  44237. // One or more Spot Instance request IDs.
  44238. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list"`
  44239. }
  44240. // String returns the string representation
  44241. func (s DescribeSpotInstanceRequestsInput) String() string {
  44242. return awsutil.Prettify(s)
  44243. }
  44244. // GoString returns the string representation
  44245. func (s DescribeSpotInstanceRequestsInput) GoString() string {
  44246. return s.String()
  44247. }
  44248. // SetDryRun sets the DryRun field's value.
  44249. func (s *DescribeSpotInstanceRequestsInput) SetDryRun(v bool) *DescribeSpotInstanceRequestsInput {
  44250. s.DryRun = &v
  44251. return s
  44252. }
  44253. // SetFilters sets the Filters field's value.
  44254. func (s *DescribeSpotInstanceRequestsInput) SetFilters(v []*Filter) *DescribeSpotInstanceRequestsInput {
  44255. s.Filters = v
  44256. return s
  44257. }
  44258. // SetMaxResults sets the MaxResults field's value.
  44259. func (s *DescribeSpotInstanceRequestsInput) SetMaxResults(v int64) *DescribeSpotInstanceRequestsInput {
  44260. s.MaxResults = &v
  44261. return s
  44262. }
  44263. // SetNextToken sets the NextToken field's value.
  44264. func (s *DescribeSpotInstanceRequestsInput) SetNextToken(v string) *DescribeSpotInstanceRequestsInput {
  44265. s.NextToken = &v
  44266. return s
  44267. }
  44268. // SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value.
  44269. func (s *DescribeSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *DescribeSpotInstanceRequestsInput {
  44270. s.SpotInstanceRequestIds = v
  44271. return s
  44272. }
  44273. // Contains the output of DescribeSpotInstanceRequests.
  44274. type DescribeSpotInstanceRequestsOutput struct {
  44275. _ struct{} `type:"structure"`
  44276. // The token to use to retrieve the next set of results. This value is null
  44277. // when there are no more results to return.
  44278. NextToken *string `locationName:"nextToken" type:"string"`
  44279. // One or more Spot Instance requests.
  44280. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  44281. }
  44282. // String returns the string representation
  44283. func (s DescribeSpotInstanceRequestsOutput) String() string {
  44284. return awsutil.Prettify(s)
  44285. }
  44286. // GoString returns the string representation
  44287. func (s DescribeSpotInstanceRequestsOutput) GoString() string {
  44288. return s.String()
  44289. }
  44290. // SetNextToken sets the NextToken field's value.
  44291. func (s *DescribeSpotInstanceRequestsOutput) SetNextToken(v string) *DescribeSpotInstanceRequestsOutput {
  44292. s.NextToken = &v
  44293. return s
  44294. }
  44295. // SetSpotInstanceRequests sets the SpotInstanceRequests field's value.
  44296. func (s *DescribeSpotInstanceRequestsOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *DescribeSpotInstanceRequestsOutput {
  44297. s.SpotInstanceRequests = v
  44298. return s
  44299. }
  44300. // Contains the parameters for DescribeSpotPriceHistory.
  44301. type DescribeSpotPriceHistoryInput struct {
  44302. _ struct{} `type:"structure"`
  44303. // Filters the results by the specified Availability Zone.
  44304. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  44305. // Checks whether you have the required permissions for the action, without
  44306. // actually making the request, and provides an error response. If you have
  44307. // the required permissions, the error response is DryRunOperation. Otherwise,
  44308. // it is UnauthorizedOperation.
  44309. DryRun *bool `locationName:"dryRun" type:"boolean"`
  44310. // The date and time, up to the current date, from which to stop retrieving
  44311. // the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  44312. EndTime *time.Time `locationName:"endTime" type:"timestamp"`
  44313. // One or more filters.
  44314. //
  44315. // * availability-zone - The Availability Zone for which prices should be
  44316. // returned.
  44317. //
  44318. // * instance-type - The type of instance (for example, m3.medium).
  44319. //
  44320. // * product-description - The product description for the Spot price (Linux/UNIX
  44321. // | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon
  44322. // VPC) | Windows (Amazon VPC)).
  44323. //
  44324. // * spot-price - The Spot price. The value must match exactly (or use wildcards;
  44325. // greater than or less than comparison is not supported).
  44326. //
  44327. // * timestamp - The time stamp of the Spot price history, in UTC format
  44328. // (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?).
  44329. // Greater than or less than comparison is not supported.
  44330. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44331. // Filters the results by the specified instance types.
  44332. InstanceTypes []*string `locationName:"InstanceType" type:"list"`
  44333. // The maximum number of results to return in a single call. Specify a value
  44334. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  44335. // results, make another call with the returned NextToken value.
  44336. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  44337. // The token for the next set of results.
  44338. NextToken *string `locationName:"nextToken" type:"string"`
  44339. // Filters the results by the specified basic product descriptions.
  44340. ProductDescriptions []*string `locationName:"ProductDescription" type:"list"`
  44341. // The date and time, up to the past 90 days, from which to start retrieving
  44342. // the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  44343. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  44344. }
  44345. // String returns the string representation
  44346. func (s DescribeSpotPriceHistoryInput) String() string {
  44347. return awsutil.Prettify(s)
  44348. }
  44349. // GoString returns the string representation
  44350. func (s DescribeSpotPriceHistoryInput) GoString() string {
  44351. return s.String()
  44352. }
  44353. // SetAvailabilityZone sets the AvailabilityZone field's value.
  44354. func (s *DescribeSpotPriceHistoryInput) SetAvailabilityZone(v string) *DescribeSpotPriceHistoryInput {
  44355. s.AvailabilityZone = &v
  44356. return s
  44357. }
  44358. // SetDryRun sets the DryRun field's value.
  44359. func (s *DescribeSpotPriceHistoryInput) SetDryRun(v bool) *DescribeSpotPriceHistoryInput {
  44360. s.DryRun = &v
  44361. return s
  44362. }
  44363. // SetEndTime sets the EndTime field's value.
  44364. func (s *DescribeSpotPriceHistoryInput) SetEndTime(v time.Time) *DescribeSpotPriceHistoryInput {
  44365. s.EndTime = &v
  44366. return s
  44367. }
  44368. // SetFilters sets the Filters field's value.
  44369. func (s *DescribeSpotPriceHistoryInput) SetFilters(v []*Filter) *DescribeSpotPriceHistoryInput {
  44370. s.Filters = v
  44371. return s
  44372. }
  44373. // SetInstanceTypes sets the InstanceTypes field's value.
  44374. func (s *DescribeSpotPriceHistoryInput) SetInstanceTypes(v []*string) *DescribeSpotPriceHistoryInput {
  44375. s.InstanceTypes = v
  44376. return s
  44377. }
  44378. // SetMaxResults sets the MaxResults field's value.
  44379. func (s *DescribeSpotPriceHistoryInput) SetMaxResults(v int64) *DescribeSpotPriceHistoryInput {
  44380. s.MaxResults = &v
  44381. return s
  44382. }
  44383. // SetNextToken sets the NextToken field's value.
  44384. func (s *DescribeSpotPriceHistoryInput) SetNextToken(v string) *DescribeSpotPriceHistoryInput {
  44385. s.NextToken = &v
  44386. return s
  44387. }
  44388. // SetProductDescriptions sets the ProductDescriptions field's value.
  44389. func (s *DescribeSpotPriceHistoryInput) SetProductDescriptions(v []*string) *DescribeSpotPriceHistoryInput {
  44390. s.ProductDescriptions = v
  44391. return s
  44392. }
  44393. // SetStartTime sets the StartTime field's value.
  44394. func (s *DescribeSpotPriceHistoryInput) SetStartTime(v time.Time) *DescribeSpotPriceHistoryInput {
  44395. s.StartTime = &v
  44396. return s
  44397. }
  44398. // Contains the output of DescribeSpotPriceHistory.
  44399. type DescribeSpotPriceHistoryOutput struct {
  44400. _ struct{} `type:"structure"`
  44401. // The token required to retrieve the next set of results. This value is null
  44402. // or an empty string when there are no more results to return.
  44403. NextToken *string `locationName:"nextToken" type:"string"`
  44404. // The historical Spot prices.
  44405. SpotPriceHistory []*SpotPrice `locationName:"spotPriceHistorySet" locationNameList:"item" type:"list"`
  44406. }
  44407. // String returns the string representation
  44408. func (s DescribeSpotPriceHistoryOutput) String() string {
  44409. return awsutil.Prettify(s)
  44410. }
  44411. // GoString returns the string representation
  44412. func (s DescribeSpotPriceHistoryOutput) GoString() string {
  44413. return s.String()
  44414. }
  44415. // SetNextToken sets the NextToken field's value.
  44416. func (s *DescribeSpotPriceHistoryOutput) SetNextToken(v string) *DescribeSpotPriceHistoryOutput {
  44417. s.NextToken = &v
  44418. return s
  44419. }
  44420. // SetSpotPriceHistory sets the SpotPriceHistory field's value.
  44421. func (s *DescribeSpotPriceHistoryOutput) SetSpotPriceHistory(v []*SpotPrice) *DescribeSpotPriceHistoryOutput {
  44422. s.SpotPriceHistory = v
  44423. return s
  44424. }
  44425. type DescribeStaleSecurityGroupsInput struct {
  44426. _ struct{} `type:"structure"`
  44427. // Checks whether you have the required permissions for the action, without
  44428. // actually making the request, and provides an error response. If you have
  44429. // the required permissions, the error response is DryRunOperation. Otherwise,
  44430. // it is UnauthorizedOperation.
  44431. DryRun *bool `type:"boolean"`
  44432. // The maximum number of items to return for this request. The request returns
  44433. // a token that you can specify in a subsequent call to get the next set of
  44434. // results.
  44435. MaxResults *int64 `min:"5" type:"integer"`
  44436. // The token for the next set of items to return. (You received this token from
  44437. // a prior call.)
  44438. NextToken *string `min:"1" type:"string"`
  44439. // The ID of the VPC.
  44440. //
  44441. // VpcId is a required field
  44442. VpcId *string `type:"string" required:"true"`
  44443. }
  44444. // String returns the string representation
  44445. func (s DescribeStaleSecurityGroupsInput) String() string {
  44446. return awsutil.Prettify(s)
  44447. }
  44448. // GoString returns the string representation
  44449. func (s DescribeStaleSecurityGroupsInput) GoString() string {
  44450. return s.String()
  44451. }
  44452. // Validate inspects the fields of the type to determine if they are valid.
  44453. func (s *DescribeStaleSecurityGroupsInput) Validate() error {
  44454. invalidParams := request.ErrInvalidParams{Context: "DescribeStaleSecurityGroupsInput"}
  44455. if s.MaxResults != nil && *s.MaxResults < 5 {
  44456. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  44457. }
  44458. if s.NextToken != nil && len(*s.NextToken) < 1 {
  44459. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  44460. }
  44461. if s.VpcId == nil {
  44462. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  44463. }
  44464. if invalidParams.Len() > 0 {
  44465. return invalidParams
  44466. }
  44467. return nil
  44468. }
  44469. // SetDryRun sets the DryRun field's value.
  44470. func (s *DescribeStaleSecurityGroupsInput) SetDryRun(v bool) *DescribeStaleSecurityGroupsInput {
  44471. s.DryRun = &v
  44472. return s
  44473. }
  44474. // SetMaxResults sets the MaxResults field's value.
  44475. func (s *DescribeStaleSecurityGroupsInput) SetMaxResults(v int64) *DescribeStaleSecurityGroupsInput {
  44476. s.MaxResults = &v
  44477. return s
  44478. }
  44479. // SetNextToken sets the NextToken field's value.
  44480. func (s *DescribeStaleSecurityGroupsInput) SetNextToken(v string) *DescribeStaleSecurityGroupsInput {
  44481. s.NextToken = &v
  44482. return s
  44483. }
  44484. // SetVpcId sets the VpcId field's value.
  44485. func (s *DescribeStaleSecurityGroupsInput) SetVpcId(v string) *DescribeStaleSecurityGroupsInput {
  44486. s.VpcId = &v
  44487. return s
  44488. }
  44489. type DescribeStaleSecurityGroupsOutput struct {
  44490. _ struct{} `type:"structure"`
  44491. // The token to use when requesting the next set of items. If there are no additional
  44492. // items to return, the string is empty.
  44493. NextToken *string `locationName:"nextToken" type:"string"`
  44494. // Information about the stale security groups.
  44495. StaleSecurityGroupSet []*StaleSecurityGroup `locationName:"staleSecurityGroupSet" locationNameList:"item" type:"list"`
  44496. }
  44497. // String returns the string representation
  44498. func (s DescribeStaleSecurityGroupsOutput) String() string {
  44499. return awsutil.Prettify(s)
  44500. }
  44501. // GoString returns the string representation
  44502. func (s DescribeStaleSecurityGroupsOutput) GoString() string {
  44503. return s.String()
  44504. }
  44505. // SetNextToken sets the NextToken field's value.
  44506. func (s *DescribeStaleSecurityGroupsOutput) SetNextToken(v string) *DescribeStaleSecurityGroupsOutput {
  44507. s.NextToken = &v
  44508. return s
  44509. }
  44510. // SetStaleSecurityGroupSet sets the StaleSecurityGroupSet field's value.
  44511. func (s *DescribeStaleSecurityGroupsOutput) SetStaleSecurityGroupSet(v []*StaleSecurityGroup) *DescribeStaleSecurityGroupsOutput {
  44512. s.StaleSecurityGroupSet = v
  44513. return s
  44514. }
  44515. type DescribeSubnetsInput struct {
  44516. _ struct{} `type:"structure"`
  44517. // Checks whether you have the required permissions for the action, without
  44518. // actually making the request, and provides an error response. If you have
  44519. // the required permissions, the error response is DryRunOperation. Otherwise,
  44520. // it is UnauthorizedOperation.
  44521. DryRun *bool `locationName:"dryRun" type:"boolean"`
  44522. // One or more filters.
  44523. //
  44524. // * availability-zone - The Availability Zone for the subnet. You can also
  44525. // use availabilityZone as the filter name.
  44526. //
  44527. // * availability-zone-id - The ID of the Availability Zone for the subnet.
  44528. // You can also use availabilityZoneId as the filter name.
  44529. //
  44530. // * available-ip-address-count - The number of IPv4 addresses in the subnet
  44531. // that are available.
  44532. //
  44533. // * cidr-block - The IPv4 CIDR block of the subnet. The CIDR block you specify
  44534. // must exactly match the subnet's CIDR block for information to be returned
  44535. // for the subnet. You can also use cidr or cidrBlock as the filter names.
  44536. //
  44537. // * default-for-az - Indicates whether this is the default subnet for the
  44538. // Availability Zone. You can also use defaultForAz as the filter name.
  44539. //
  44540. // * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
  44541. // with the subnet.
  44542. //
  44543. // * ipv6-cidr-block-association.association-id - An association ID for an
  44544. // IPv6 CIDR block associated with the subnet.
  44545. //
  44546. // * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
  44547. // associated with the subnet.
  44548. //
  44549. // * owner-id - The ID of the AWS account that owns the subnet.
  44550. //
  44551. // * state - The state of the subnet (pending | available).
  44552. //
  44553. // * subnet-arn - The Amazon Resource Name (ARN) of the subnet.
  44554. //
  44555. // * subnet-id - The ID of the subnet.
  44556. //
  44557. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  44558. // Use the tag key in the filter name and the tag value as the filter value.
  44559. // For example, to find all resources that have a tag with the key Owner
  44560. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  44561. // the filter value.
  44562. //
  44563. // * tag-key - The key of a tag assigned to the resource. Use this filter
  44564. // to find all resources assigned a tag with a specific key, regardless of
  44565. // the tag value.
  44566. //
  44567. // * vpc-id - The ID of the VPC for the subnet.
  44568. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44569. // One or more subnet IDs.
  44570. //
  44571. // Default: Describes all your subnets.
  44572. SubnetIds []*string `locationName:"SubnetId" locationNameList:"SubnetId" type:"list"`
  44573. }
  44574. // String returns the string representation
  44575. func (s DescribeSubnetsInput) String() string {
  44576. return awsutil.Prettify(s)
  44577. }
  44578. // GoString returns the string representation
  44579. func (s DescribeSubnetsInput) GoString() string {
  44580. return s.String()
  44581. }
  44582. // SetDryRun sets the DryRun field's value.
  44583. func (s *DescribeSubnetsInput) SetDryRun(v bool) *DescribeSubnetsInput {
  44584. s.DryRun = &v
  44585. return s
  44586. }
  44587. // SetFilters sets the Filters field's value.
  44588. func (s *DescribeSubnetsInput) SetFilters(v []*Filter) *DescribeSubnetsInput {
  44589. s.Filters = v
  44590. return s
  44591. }
  44592. // SetSubnetIds sets the SubnetIds field's value.
  44593. func (s *DescribeSubnetsInput) SetSubnetIds(v []*string) *DescribeSubnetsInput {
  44594. s.SubnetIds = v
  44595. return s
  44596. }
  44597. type DescribeSubnetsOutput struct {
  44598. _ struct{} `type:"structure"`
  44599. // Information about one or more subnets.
  44600. Subnets []*Subnet `locationName:"subnetSet" locationNameList:"item" type:"list"`
  44601. }
  44602. // String returns the string representation
  44603. func (s DescribeSubnetsOutput) String() string {
  44604. return awsutil.Prettify(s)
  44605. }
  44606. // GoString returns the string representation
  44607. func (s DescribeSubnetsOutput) GoString() string {
  44608. return s.String()
  44609. }
  44610. // SetSubnets sets the Subnets field's value.
  44611. func (s *DescribeSubnetsOutput) SetSubnets(v []*Subnet) *DescribeSubnetsOutput {
  44612. s.Subnets = v
  44613. return s
  44614. }
  44615. type DescribeTagsInput struct {
  44616. _ struct{} `type:"structure"`
  44617. // Checks whether you have the required permissions for the action, without
  44618. // actually making the request, and provides an error response. If you have
  44619. // the required permissions, the error response is DryRunOperation. Otherwise,
  44620. // it is UnauthorizedOperation.
  44621. DryRun *bool `locationName:"dryRun" type:"boolean"`
  44622. // One or more filters.
  44623. //
  44624. // * key - The tag key.
  44625. //
  44626. // * resource-id - The ID of the resource.
  44627. //
  44628. // * resource-type - The resource type (customer-gateway | dedicated-host
  44629. // | dhcp-options | elastic-ip | fleet | fpga-image | image | instance |
  44630. // internet-gateway | launch-template | natgateway | network-acl | network-interface
  44631. // | reserved-instances | route-table | security-group | snapshot | spot-instances-request
  44632. // | subnet | volume | vpc | vpc-peering-connection | vpn-connection | vpn-gateway).
  44633. //
  44634. // * tag:<key> - The key/value combination of the tag. For example, specify
  44635. // "tag:Owner" for the filter name and "TeamA" for the filter value to find
  44636. // resources with the tag "Owner=TeamA".
  44637. //
  44638. // * value - The tag value.
  44639. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44640. // The maximum number of results to return in a single call. This value can
  44641. // be between 5 and 1000. To retrieve the remaining results, make another call
  44642. // with the returned NextToken value.
  44643. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  44644. // The token to retrieve the next page of results.
  44645. NextToken *string `locationName:"nextToken" type:"string"`
  44646. }
  44647. // String returns the string representation
  44648. func (s DescribeTagsInput) String() string {
  44649. return awsutil.Prettify(s)
  44650. }
  44651. // GoString returns the string representation
  44652. func (s DescribeTagsInput) GoString() string {
  44653. return s.String()
  44654. }
  44655. // SetDryRun sets the DryRun field's value.
  44656. func (s *DescribeTagsInput) SetDryRun(v bool) *DescribeTagsInput {
  44657. s.DryRun = &v
  44658. return s
  44659. }
  44660. // SetFilters sets the Filters field's value.
  44661. func (s *DescribeTagsInput) SetFilters(v []*Filter) *DescribeTagsInput {
  44662. s.Filters = v
  44663. return s
  44664. }
  44665. // SetMaxResults sets the MaxResults field's value.
  44666. func (s *DescribeTagsInput) SetMaxResults(v int64) *DescribeTagsInput {
  44667. s.MaxResults = &v
  44668. return s
  44669. }
  44670. // SetNextToken sets the NextToken field's value.
  44671. func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput {
  44672. s.NextToken = &v
  44673. return s
  44674. }
  44675. type DescribeTagsOutput struct {
  44676. _ struct{} `type:"structure"`
  44677. // The token to use to retrieve the next page of results. This value is null
  44678. // when there are no more results to return.
  44679. NextToken *string `locationName:"nextToken" type:"string"`
  44680. // The tags.
  44681. Tags []*TagDescription `locationName:"tagSet" locationNameList:"item" type:"list"`
  44682. }
  44683. // String returns the string representation
  44684. func (s DescribeTagsOutput) String() string {
  44685. return awsutil.Prettify(s)
  44686. }
  44687. // GoString returns the string representation
  44688. func (s DescribeTagsOutput) GoString() string {
  44689. return s.String()
  44690. }
  44691. // SetNextToken sets the NextToken field's value.
  44692. func (s *DescribeTagsOutput) SetNextToken(v string) *DescribeTagsOutput {
  44693. s.NextToken = &v
  44694. return s
  44695. }
  44696. // SetTags sets the Tags field's value.
  44697. func (s *DescribeTagsOutput) SetTags(v []*TagDescription) *DescribeTagsOutput {
  44698. s.Tags = v
  44699. return s
  44700. }
  44701. type DescribeTransitGatewayAttachmentsInput struct {
  44702. _ struct{} `type:"structure"`
  44703. // Checks whether you have the required permissions for the action, without
  44704. // actually making the request, and provides an error response. If you have
  44705. // the required permissions, the error response is DryRunOperation. Otherwise,
  44706. // it is UnauthorizedOperation.
  44707. DryRun *bool `type:"boolean"`
  44708. // One or more filters. The possible values are:
  44709. //
  44710. // * association.transit-gateway-route-table-id - The ID of the route table
  44711. // for the transit gateway.
  44712. //
  44713. // * association.state - The state of the association (associating | associated
  44714. // | disassociating).
  44715. //
  44716. // * resource-id - The ID of the resource.
  44717. //
  44718. // * resource-owner - The ID of the AWS account that owns the resource.
  44719. //
  44720. // * resource-type - The resource type (vpc | vpn).
  44721. //
  44722. // * state - The state of the attachment (pendingAcceptance | pending | available
  44723. // | modifying | deleting | deleted | failed | rejected).
  44724. //
  44725. // * transit-gateway-attachment-id - The ID of the attachment.
  44726. //
  44727. // * transit-gateway-id - The ID of the transit gateway.
  44728. //
  44729. // * transit-gateway-owner - The ID of the AWS account that owns the transit
  44730. // gateway.
  44731. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44732. // The maximum number of results to return with a single call. To retrieve the
  44733. // remaining results, make another call with the returned nextToken value.
  44734. MaxResults *int64 `min:"5" type:"integer"`
  44735. // The token for the next page of results.
  44736. NextToken *string `type:"string"`
  44737. // The IDs of the attachments.
  44738. TransitGatewayAttachmentIds []*string `type:"list"`
  44739. }
  44740. // String returns the string representation
  44741. func (s DescribeTransitGatewayAttachmentsInput) String() string {
  44742. return awsutil.Prettify(s)
  44743. }
  44744. // GoString returns the string representation
  44745. func (s DescribeTransitGatewayAttachmentsInput) GoString() string {
  44746. return s.String()
  44747. }
  44748. // Validate inspects the fields of the type to determine if they are valid.
  44749. func (s *DescribeTransitGatewayAttachmentsInput) Validate() error {
  44750. invalidParams := request.ErrInvalidParams{Context: "DescribeTransitGatewayAttachmentsInput"}
  44751. if s.MaxResults != nil && *s.MaxResults < 5 {
  44752. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  44753. }
  44754. if invalidParams.Len() > 0 {
  44755. return invalidParams
  44756. }
  44757. return nil
  44758. }
  44759. // SetDryRun sets the DryRun field's value.
  44760. func (s *DescribeTransitGatewayAttachmentsInput) SetDryRun(v bool) *DescribeTransitGatewayAttachmentsInput {
  44761. s.DryRun = &v
  44762. return s
  44763. }
  44764. // SetFilters sets the Filters field's value.
  44765. func (s *DescribeTransitGatewayAttachmentsInput) SetFilters(v []*Filter) *DescribeTransitGatewayAttachmentsInput {
  44766. s.Filters = v
  44767. return s
  44768. }
  44769. // SetMaxResults sets the MaxResults field's value.
  44770. func (s *DescribeTransitGatewayAttachmentsInput) SetMaxResults(v int64) *DescribeTransitGatewayAttachmentsInput {
  44771. s.MaxResults = &v
  44772. return s
  44773. }
  44774. // SetNextToken sets the NextToken field's value.
  44775. func (s *DescribeTransitGatewayAttachmentsInput) SetNextToken(v string) *DescribeTransitGatewayAttachmentsInput {
  44776. s.NextToken = &v
  44777. return s
  44778. }
  44779. // SetTransitGatewayAttachmentIds sets the TransitGatewayAttachmentIds field's value.
  44780. func (s *DescribeTransitGatewayAttachmentsInput) SetTransitGatewayAttachmentIds(v []*string) *DescribeTransitGatewayAttachmentsInput {
  44781. s.TransitGatewayAttachmentIds = v
  44782. return s
  44783. }
  44784. type DescribeTransitGatewayAttachmentsOutput struct {
  44785. _ struct{} `type:"structure"`
  44786. // The token to use to retrieve the next page of results. This value is null
  44787. // when there are no more results to return.
  44788. NextToken *string `locationName:"nextToken" type:"string"`
  44789. // Information about the attachments.
  44790. TransitGatewayAttachments []*TransitGatewayAttachment `locationName:"transitGatewayAttachments" locationNameList:"item" type:"list"`
  44791. }
  44792. // String returns the string representation
  44793. func (s DescribeTransitGatewayAttachmentsOutput) String() string {
  44794. return awsutil.Prettify(s)
  44795. }
  44796. // GoString returns the string representation
  44797. func (s DescribeTransitGatewayAttachmentsOutput) GoString() string {
  44798. return s.String()
  44799. }
  44800. // SetNextToken sets the NextToken field's value.
  44801. func (s *DescribeTransitGatewayAttachmentsOutput) SetNextToken(v string) *DescribeTransitGatewayAttachmentsOutput {
  44802. s.NextToken = &v
  44803. return s
  44804. }
  44805. // SetTransitGatewayAttachments sets the TransitGatewayAttachments field's value.
  44806. func (s *DescribeTransitGatewayAttachmentsOutput) SetTransitGatewayAttachments(v []*TransitGatewayAttachment) *DescribeTransitGatewayAttachmentsOutput {
  44807. s.TransitGatewayAttachments = v
  44808. return s
  44809. }
  44810. type DescribeTransitGatewayRouteTablesInput struct {
  44811. _ struct{} `type:"structure"`
  44812. // Checks whether you have the required permissions for the action, without
  44813. // actually making the request, and provides an error response. If you have
  44814. // the required permissions, the error response is DryRunOperation. Otherwise,
  44815. // it is UnauthorizedOperation.
  44816. DryRun *bool `type:"boolean"`
  44817. // One or more filters. The possible values are:
  44818. //
  44819. // * default-association-route-table - Indicates whether this is the default
  44820. // association route table for the transit gateway (true | false).
  44821. //
  44822. // * default-propagation-route-table - Indicates whether this is the default
  44823. // propagation route table for the transit gateway (true | false).
  44824. //
  44825. // * state - The state of the attachment (pendingAcceptance | pending | available
  44826. // | modifying | deleting | deleted | failed | rejected).
  44827. //
  44828. // * transit-gateway-id - The ID of the transit gateway.
  44829. //
  44830. // * transit-gateway-route-table-id - The ID of the transit gateway route
  44831. // table.
  44832. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44833. // The maximum number of results to return with a single call. To retrieve the
  44834. // remaining results, make another call with the returned nextToken value.
  44835. MaxResults *int64 `min:"5" type:"integer"`
  44836. // The token for the next page of results.
  44837. NextToken *string `type:"string"`
  44838. // The IDs of the transit gateway route tables.
  44839. TransitGatewayRouteTableIds []*string `locationNameList:"item" type:"list"`
  44840. }
  44841. // String returns the string representation
  44842. func (s DescribeTransitGatewayRouteTablesInput) String() string {
  44843. return awsutil.Prettify(s)
  44844. }
  44845. // GoString returns the string representation
  44846. func (s DescribeTransitGatewayRouteTablesInput) GoString() string {
  44847. return s.String()
  44848. }
  44849. // Validate inspects the fields of the type to determine if they are valid.
  44850. func (s *DescribeTransitGatewayRouteTablesInput) Validate() error {
  44851. invalidParams := request.ErrInvalidParams{Context: "DescribeTransitGatewayRouteTablesInput"}
  44852. if s.MaxResults != nil && *s.MaxResults < 5 {
  44853. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  44854. }
  44855. if invalidParams.Len() > 0 {
  44856. return invalidParams
  44857. }
  44858. return nil
  44859. }
  44860. // SetDryRun sets the DryRun field's value.
  44861. func (s *DescribeTransitGatewayRouteTablesInput) SetDryRun(v bool) *DescribeTransitGatewayRouteTablesInput {
  44862. s.DryRun = &v
  44863. return s
  44864. }
  44865. // SetFilters sets the Filters field's value.
  44866. func (s *DescribeTransitGatewayRouteTablesInput) SetFilters(v []*Filter) *DescribeTransitGatewayRouteTablesInput {
  44867. s.Filters = v
  44868. return s
  44869. }
  44870. // SetMaxResults sets the MaxResults field's value.
  44871. func (s *DescribeTransitGatewayRouteTablesInput) SetMaxResults(v int64) *DescribeTransitGatewayRouteTablesInput {
  44872. s.MaxResults = &v
  44873. return s
  44874. }
  44875. // SetNextToken sets the NextToken field's value.
  44876. func (s *DescribeTransitGatewayRouteTablesInput) SetNextToken(v string) *DescribeTransitGatewayRouteTablesInput {
  44877. s.NextToken = &v
  44878. return s
  44879. }
  44880. // SetTransitGatewayRouteTableIds sets the TransitGatewayRouteTableIds field's value.
  44881. func (s *DescribeTransitGatewayRouteTablesInput) SetTransitGatewayRouteTableIds(v []*string) *DescribeTransitGatewayRouteTablesInput {
  44882. s.TransitGatewayRouteTableIds = v
  44883. return s
  44884. }
  44885. type DescribeTransitGatewayRouteTablesOutput struct {
  44886. _ struct{} `type:"structure"`
  44887. // The token to use to retrieve the next page of results. This value is null
  44888. // when there are no more results to return.
  44889. NextToken *string `locationName:"nextToken" type:"string"`
  44890. // Information about the transit gateway route tables.
  44891. TransitGatewayRouteTables []*TransitGatewayRouteTable `locationName:"transitGatewayRouteTables" locationNameList:"item" type:"list"`
  44892. }
  44893. // String returns the string representation
  44894. func (s DescribeTransitGatewayRouteTablesOutput) String() string {
  44895. return awsutil.Prettify(s)
  44896. }
  44897. // GoString returns the string representation
  44898. func (s DescribeTransitGatewayRouteTablesOutput) GoString() string {
  44899. return s.String()
  44900. }
  44901. // SetNextToken sets the NextToken field's value.
  44902. func (s *DescribeTransitGatewayRouteTablesOutput) SetNextToken(v string) *DescribeTransitGatewayRouteTablesOutput {
  44903. s.NextToken = &v
  44904. return s
  44905. }
  44906. // SetTransitGatewayRouteTables sets the TransitGatewayRouteTables field's value.
  44907. func (s *DescribeTransitGatewayRouteTablesOutput) SetTransitGatewayRouteTables(v []*TransitGatewayRouteTable) *DescribeTransitGatewayRouteTablesOutput {
  44908. s.TransitGatewayRouteTables = v
  44909. return s
  44910. }
  44911. type DescribeTransitGatewayVpcAttachmentsInput struct {
  44912. _ struct{} `type:"structure"`
  44913. // Checks whether you have the required permissions for the action, without
  44914. // actually making the request, and provides an error response. If you have
  44915. // the required permissions, the error response is DryRunOperation. Otherwise,
  44916. // it is UnauthorizedOperation.
  44917. DryRun *bool `type:"boolean"`
  44918. // One or more filters. The possible values are:
  44919. //
  44920. // * state - The state of the attachment (pendingAcceptance | pending | available
  44921. // | modifying | deleting | deleted | failed | rejected).
  44922. //
  44923. // * transit-gateway-attachment-id - The ID of the attachment.
  44924. //
  44925. // * transit-gateway-id - The ID of the transit gateway.
  44926. //
  44927. // * vpc-id - The ID of the VPC.
  44928. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  44929. // The maximum number of results to return with a single call. To retrieve the
  44930. // remaining results, make another call with the returned nextToken value.
  44931. MaxResults *int64 `min:"5" type:"integer"`
  44932. // The token for the next page of results.
  44933. NextToken *string `type:"string"`
  44934. // The IDs of the attachments.
  44935. TransitGatewayAttachmentIds []*string `type:"list"`
  44936. }
  44937. // String returns the string representation
  44938. func (s DescribeTransitGatewayVpcAttachmentsInput) String() string {
  44939. return awsutil.Prettify(s)
  44940. }
  44941. // GoString returns the string representation
  44942. func (s DescribeTransitGatewayVpcAttachmentsInput) GoString() string {
  44943. return s.String()
  44944. }
  44945. // Validate inspects the fields of the type to determine if they are valid.
  44946. func (s *DescribeTransitGatewayVpcAttachmentsInput) Validate() error {
  44947. invalidParams := request.ErrInvalidParams{Context: "DescribeTransitGatewayVpcAttachmentsInput"}
  44948. if s.MaxResults != nil && *s.MaxResults < 5 {
  44949. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  44950. }
  44951. if invalidParams.Len() > 0 {
  44952. return invalidParams
  44953. }
  44954. return nil
  44955. }
  44956. // SetDryRun sets the DryRun field's value.
  44957. func (s *DescribeTransitGatewayVpcAttachmentsInput) SetDryRun(v bool) *DescribeTransitGatewayVpcAttachmentsInput {
  44958. s.DryRun = &v
  44959. return s
  44960. }
  44961. // SetFilters sets the Filters field's value.
  44962. func (s *DescribeTransitGatewayVpcAttachmentsInput) SetFilters(v []*Filter) *DescribeTransitGatewayVpcAttachmentsInput {
  44963. s.Filters = v
  44964. return s
  44965. }
  44966. // SetMaxResults sets the MaxResults field's value.
  44967. func (s *DescribeTransitGatewayVpcAttachmentsInput) SetMaxResults(v int64) *DescribeTransitGatewayVpcAttachmentsInput {
  44968. s.MaxResults = &v
  44969. return s
  44970. }
  44971. // SetNextToken sets the NextToken field's value.
  44972. func (s *DescribeTransitGatewayVpcAttachmentsInput) SetNextToken(v string) *DescribeTransitGatewayVpcAttachmentsInput {
  44973. s.NextToken = &v
  44974. return s
  44975. }
  44976. // SetTransitGatewayAttachmentIds sets the TransitGatewayAttachmentIds field's value.
  44977. func (s *DescribeTransitGatewayVpcAttachmentsInput) SetTransitGatewayAttachmentIds(v []*string) *DescribeTransitGatewayVpcAttachmentsInput {
  44978. s.TransitGatewayAttachmentIds = v
  44979. return s
  44980. }
  44981. type DescribeTransitGatewayVpcAttachmentsOutput struct {
  44982. _ struct{} `type:"structure"`
  44983. // The token to use to retrieve the next page of results. This value is null
  44984. // when there are no more results to return.
  44985. NextToken *string `locationName:"nextToken" type:"string"`
  44986. // Information about the VPC attachments.
  44987. TransitGatewayVpcAttachments []*TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachments" locationNameList:"item" type:"list"`
  44988. }
  44989. // String returns the string representation
  44990. func (s DescribeTransitGatewayVpcAttachmentsOutput) String() string {
  44991. return awsutil.Prettify(s)
  44992. }
  44993. // GoString returns the string representation
  44994. func (s DescribeTransitGatewayVpcAttachmentsOutput) GoString() string {
  44995. return s.String()
  44996. }
  44997. // SetNextToken sets the NextToken field's value.
  44998. func (s *DescribeTransitGatewayVpcAttachmentsOutput) SetNextToken(v string) *DescribeTransitGatewayVpcAttachmentsOutput {
  44999. s.NextToken = &v
  45000. return s
  45001. }
  45002. // SetTransitGatewayVpcAttachments sets the TransitGatewayVpcAttachments field's value.
  45003. func (s *DescribeTransitGatewayVpcAttachmentsOutput) SetTransitGatewayVpcAttachments(v []*TransitGatewayVpcAttachment) *DescribeTransitGatewayVpcAttachmentsOutput {
  45004. s.TransitGatewayVpcAttachments = v
  45005. return s
  45006. }
  45007. type DescribeTransitGatewaysInput struct {
  45008. _ struct{} `type:"structure"`
  45009. // Checks whether you have the required permissions for the action, without
  45010. // actually making the request, and provides an error response. If you have
  45011. // the required permissions, the error response is DryRunOperation. Otherwise,
  45012. // it is UnauthorizedOperation.
  45013. DryRun *bool `type:"boolean"`
  45014. // One or more filters. The possible values are:
  45015. //
  45016. // * owner-id - The ID of the AWS account that owns the transit gateway.
  45017. //
  45018. // * options.propagation-default-route-table-id - The ID of the default propagation
  45019. // route table.
  45020. //
  45021. // * options.amazon-side-asn - The private ASN for the Amazon side of a BGP
  45022. // session.
  45023. //
  45024. // * options.association-default-route-table-id - The ID of the default association
  45025. // route table.
  45026. //
  45027. // * options.auto-accept-shared-attachments - Indicates whether there is
  45028. // automatic acceptance of attachment requests (enable | disable).
  45029. //
  45030. // * options.default-route-table-association - Indicates whether resource
  45031. // attachments are automatically associated with the default association
  45032. // route table (enable | disable).
  45033. //
  45034. // * options.default-route-table-propagation - Indicates whether resource
  45035. // attachments automatically propagate routes to the default propagation
  45036. // route table (enable | disable).
  45037. //
  45038. // * options.dns-support - Indicates whether DNS support is enabled (enable
  45039. // | disable).
  45040. //
  45041. // * options.vpn-ecmp-support - Indicates whether Equal Cost Multipath Protocol
  45042. // support is enabled (enable | disable).
  45043. //
  45044. // * state - The state of the attachment (pendingAcceptance | pending | available
  45045. // | modifying | deleting | deleted | failed | rejected).
  45046. //
  45047. // * transit-gateway-id - The ID of the transit gateway.
  45048. //
  45049. // * transit-gateway-state - The state of the transit gateway (pending |
  45050. // available | deleting | deleted).
  45051. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45052. // The maximum number of results to return with a single call. To retrieve the
  45053. // remaining results, make another call with the returned nextToken value.
  45054. MaxResults *int64 `min:"5" type:"integer"`
  45055. // The token for the next page of results.
  45056. NextToken *string `type:"string"`
  45057. // The IDs of the transit gateways.
  45058. TransitGatewayIds []*string `locationNameList:"item" type:"list"`
  45059. }
  45060. // String returns the string representation
  45061. func (s DescribeTransitGatewaysInput) String() string {
  45062. return awsutil.Prettify(s)
  45063. }
  45064. // GoString returns the string representation
  45065. func (s DescribeTransitGatewaysInput) GoString() string {
  45066. return s.String()
  45067. }
  45068. // Validate inspects the fields of the type to determine if they are valid.
  45069. func (s *DescribeTransitGatewaysInput) Validate() error {
  45070. invalidParams := request.ErrInvalidParams{Context: "DescribeTransitGatewaysInput"}
  45071. if s.MaxResults != nil && *s.MaxResults < 5 {
  45072. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  45073. }
  45074. if invalidParams.Len() > 0 {
  45075. return invalidParams
  45076. }
  45077. return nil
  45078. }
  45079. // SetDryRun sets the DryRun field's value.
  45080. func (s *DescribeTransitGatewaysInput) SetDryRun(v bool) *DescribeTransitGatewaysInput {
  45081. s.DryRun = &v
  45082. return s
  45083. }
  45084. // SetFilters sets the Filters field's value.
  45085. func (s *DescribeTransitGatewaysInput) SetFilters(v []*Filter) *DescribeTransitGatewaysInput {
  45086. s.Filters = v
  45087. return s
  45088. }
  45089. // SetMaxResults sets the MaxResults field's value.
  45090. func (s *DescribeTransitGatewaysInput) SetMaxResults(v int64) *DescribeTransitGatewaysInput {
  45091. s.MaxResults = &v
  45092. return s
  45093. }
  45094. // SetNextToken sets the NextToken field's value.
  45095. func (s *DescribeTransitGatewaysInput) SetNextToken(v string) *DescribeTransitGatewaysInput {
  45096. s.NextToken = &v
  45097. return s
  45098. }
  45099. // SetTransitGatewayIds sets the TransitGatewayIds field's value.
  45100. func (s *DescribeTransitGatewaysInput) SetTransitGatewayIds(v []*string) *DescribeTransitGatewaysInput {
  45101. s.TransitGatewayIds = v
  45102. return s
  45103. }
  45104. type DescribeTransitGatewaysOutput struct {
  45105. _ struct{} `type:"structure"`
  45106. // The token to use to retrieve the next page of results. This value is null
  45107. // when there are no more results to return.
  45108. NextToken *string `locationName:"nextToken" type:"string"`
  45109. // Information about the transit gateways.
  45110. TransitGateways []*TransitGateway `locationName:"transitGatewaySet" locationNameList:"item" type:"list"`
  45111. }
  45112. // String returns the string representation
  45113. func (s DescribeTransitGatewaysOutput) String() string {
  45114. return awsutil.Prettify(s)
  45115. }
  45116. // GoString returns the string representation
  45117. func (s DescribeTransitGatewaysOutput) GoString() string {
  45118. return s.String()
  45119. }
  45120. // SetNextToken sets the NextToken field's value.
  45121. func (s *DescribeTransitGatewaysOutput) SetNextToken(v string) *DescribeTransitGatewaysOutput {
  45122. s.NextToken = &v
  45123. return s
  45124. }
  45125. // SetTransitGateways sets the TransitGateways field's value.
  45126. func (s *DescribeTransitGatewaysOutput) SetTransitGateways(v []*TransitGateway) *DescribeTransitGatewaysOutput {
  45127. s.TransitGateways = v
  45128. return s
  45129. }
  45130. // Contains the parameters for DescribeVolumeAttribute.
  45131. type DescribeVolumeAttributeInput struct {
  45132. _ struct{} `type:"structure"`
  45133. // The attribute of the volume. This parameter is required.
  45134. //
  45135. // Attribute is a required field
  45136. Attribute *string `type:"string" required:"true" enum:"VolumeAttributeName"`
  45137. // Checks whether you have the required permissions for the action, without
  45138. // actually making the request, and provides an error response. If you have
  45139. // the required permissions, the error response is DryRunOperation. Otherwise,
  45140. // it is UnauthorizedOperation.
  45141. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45142. // The ID of the volume.
  45143. //
  45144. // VolumeId is a required field
  45145. VolumeId *string `type:"string" required:"true"`
  45146. }
  45147. // String returns the string representation
  45148. func (s DescribeVolumeAttributeInput) String() string {
  45149. return awsutil.Prettify(s)
  45150. }
  45151. // GoString returns the string representation
  45152. func (s DescribeVolumeAttributeInput) GoString() string {
  45153. return s.String()
  45154. }
  45155. // Validate inspects the fields of the type to determine if they are valid.
  45156. func (s *DescribeVolumeAttributeInput) Validate() error {
  45157. invalidParams := request.ErrInvalidParams{Context: "DescribeVolumeAttributeInput"}
  45158. if s.Attribute == nil {
  45159. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  45160. }
  45161. if s.VolumeId == nil {
  45162. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  45163. }
  45164. if invalidParams.Len() > 0 {
  45165. return invalidParams
  45166. }
  45167. return nil
  45168. }
  45169. // SetAttribute sets the Attribute field's value.
  45170. func (s *DescribeVolumeAttributeInput) SetAttribute(v string) *DescribeVolumeAttributeInput {
  45171. s.Attribute = &v
  45172. return s
  45173. }
  45174. // SetDryRun sets the DryRun field's value.
  45175. func (s *DescribeVolumeAttributeInput) SetDryRun(v bool) *DescribeVolumeAttributeInput {
  45176. s.DryRun = &v
  45177. return s
  45178. }
  45179. // SetVolumeId sets the VolumeId field's value.
  45180. func (s *DescribeVolumeAttributeInput) SetVolumeId(v string) *DescribeVolumeAttributeInput {
  45181. s.VolumeId = &v
  45182. return s
  45183. }
  45184. // Contains the output of DescribeVolumeAttribute.
  45185. type DescribeVolumeAttributeOutput struct {
  45186. _ struct{} `type:"structure"`
  45187. // The state of autoEnableIO attribute.
  45188. AutoEnableIO *AttributeBooleanValue `locationName:"autoEnableIO" type:"structure"`
  45189. // A list of product codes.
  45190. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  45191. // The ID of the volume.
  45192. VolumeId *string `locationName:"volumeId" type:"string"`
  45193. }
  45194. // String returns the string representation
  45195. func (s DescribeVolumeAttributeOutput) String() string {
  45196. return awsutil.Prettify(s)
  45197. }
  45198. // GoString returns the string representation
  45199. func (s DescribeVolumeAttributeOutput) GoString() string {
  45200. return s.String()
  45201. }
  45202. // SetAutoEnableIO sets the AutoEnableIO field's value.
  45203. func (s *DescribeVolumeAttributeOutput) SetAutoEnableIO(v *AttributeBooleanValue) *DescribeVolumeAttributeOutput {
  45204. s.AutoEnableIO = v
  45205. return s
  45206. }
  45207. // SetProductCodes sets the ProductCodes field's value.
  45208. func (s *DescribeVolumeAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeVolumeAttributeOutput {
  45209. s.ProductCodes = v
  45210. return s
  45211. }
  45212. // SetVolumeId sets the VolumeId field's value.
  45213. func (s *DescribeVolumeAttributeOutput) SetVolumeId(v string) *DescribeVolumeAttributeOutput {
  45214. s.VolumeId = &v
  45215. return s
  45216. }
  45217. // Contains the parameters for DescribeVolumeStatus.
  45218. type DescribeVolumeStatusInput struct {
  45219. _ struct{} `type:"structure"`
  45220. // Checks whether you have the required permissions for the action, without
  45221. // actually making the request, and provides an error response. If you have
  45222. // the required permissions, the error response is DryRunOperation. Otherwise,
  45223. // it is UnauthorizedOperation.
  45224. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45225. // One or more filters.
  45226. //
  45227. // * action.code - The action code for the event (for example, enable-volume-io).
  45228. //
  45229. // * action.description - A description of the action.
  45230. //
  45231. // * action.event-id - The event ID associated with the action.
  45232. //
  45233. // * availability-zone - The Availability Zone of the instance.
  45234. //
  45235. // * event.description - A description of the event.
  45236. //
  45237. // * event.event-id - The event ID.
  45238. //
  45239. // * event.event-type - The event type (for io-enabled: passed | failed;
  45240. // for io-performance: io-performance:degraded | io-performance:severely-degraded
  45241. // | io-performance:stalled).
  45242. //
  45243. // * event.not-after - The latest end time for the event.
  45244. //
  45245. // * event.not-before - The earliest start time for the event.
  45246. //
  45247. // * volume-status.details-name - The cause for volume-status.status (io-enabled
  45248. // | io-performance).
  45249. //
  45250. // * volume-status.details-status - The status of volume-status.details-name
  45251. // (for io-enabled: passed | failed; for io-performance: normal | degraded
  45252. // | severely-degraded | stalled).
  45253. //
  45254. // * volume-status.status - The status of the volume (ok | impaired | warning
  45255. // | insufficient-data).
  45256. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45257. // The maximum number of volume results returned by DescribeVolumeStatus in
  45258. // paginated output. When this parameter is used, the request only returns MaxResults
  45259. // results in a single page along with a NextToken response element. The remaining
  45260. // results of the initial request can be seen by sending another request with
  45261. // the returned NextToken value. This value can be between 5 and 1000; if MaxResults
  45262. // is given a value larger than 1000, only 1000 results are returned. If this
  45263. // parameter is not used, then DescribeVolumeStatus returns all results. You
  45264. // cannot specify this parameter and the volume IDs parameter in the same request.
  45265. MaxResults *int64 `type:"integer"`
  45266. // The NextToken value to include in a future DescribeVolumeStatus request.
  45267. // When the results of the request exceed MaxResults, this value can be used
  45268. // to retrieve the next page of results. This value is null when there are no
  45269. // more results to return.
  45270. NextToken *string `type:"string"`
  45271. // One or more volume IDs.
  45272. //
  45273. // Default: Describes all your volumes.
  45274. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  45275. }
  45276. // String returns the string representation
  45277. func (s DescribeVolumeStatusInput) String() string {
  45278. return awsutil.Prettify(s)
  45279. }
  45280. // GoString returns the string representation
  45281. func (s DescribeVolumeStatusInput) GoString() string {
  45282. return s.String()
  45283. }
  45284. // SetDryRun sets the DryRun field's value.
  45285. func (s *DescribeVolumeStatusInput) SetDryRun(v bool) *DescribeVolumeStatusInput {
  45286. s.DryRun = &v
  45287. return s
  45288. }
  45289. // SetFilters sets the Filters field's value.
  45290. func (s *DescribeVolumeStatusInput) SetFilters(v []*Filter) *DescribeVolumeStatusInput {
  45291. s.Filters = v
  45292. return s
  45293. }
  45294. // SetMaxResults sets the MaxResults field's value.
  45295. func (s *DescribeVolumeStatusInput) SetMaxResults(v int64) *DescribeVolumeStatusInput {
  45296. s.MaxResults = &v
  45297. return s
  45298. }
  45299. // SetNextToken sets the NextToken field's value.
  45300. func (s *DescribeVolumeStatusInput) SetNextToken(v string) *DescribeVolumeStatusInput {
  45301. s.NextToken = &v
  45302. return s
  45303. }
  45304. // SetVolumeIds sets the VolumeIds field's value.
  45305. func (s *DescribeVolumeStatusInput) SetVolumeIds(v []*string) *DescribeVolumeStatusInput {
  45306. s.VolumeIds = v
  45307. return s
  45308. }
  45309. // Contains the output of DescribeVolumeStatus.
  45310. type DescribeVolumeStatusOutput struct {
  45311. _ struct{} `type:"structure"`
  45312. // The token to use to retrieve the next page of results. This value is null
  45313. // when there are no more results to return.
  45314. NextToken *string `locationName:"nextToken" type:"string"`
  45315. // A list of volumes.
  45316. VolumeStatuses []*VolumeStatusItem `locationName:"volumeStatusSet" locationNameList:"item" type:"list"`
  45317. }
  45318. // String returns the string representation
  45319. func (s DescribeVolumeStatusOutput) String() string {
  45320. return awsutil.Prettify(s)
  45321. }
  45322. // GoString returns the string representation
  45323. func (s DescribeVolumeStatusOutput) GoString() string {
  45324. return s.String()
  45325. }
  45326. // SetNextToken sets the NextToken field's value.
  45327. func (s *DescribeVolumeStatusOutput) SetNextToken(v string) *DescribeVolumeStatusOutput {
  45328. s.NextToken = &v
  45329. return s
  45330. }
  45331. // SetVolumeStatuses sets the VolumeStatuses field's value.
  45332. func (s *DescribeVolumeStatusOutput) SetVolumeStatuses(v []*VolumeStatusItem) *DescribeVolumeStatusOutput {
  45333. s.VolumeStatuses = v
  45334. return s
  45335. }
  45336. // Contains the parameters for DescribeVolumes.
  45337. type DescribeVolumesInput struct {
  45338. _ struct{} `type:"structure"`
  45339. // Checks whether you have the required permissions for the action, without
  45340. // actually making the request, and provides an error response. If you have
  45341. // the required permissions, the error response is DryRunOperation. Otherwise,
  45342. // it is UnauthorizedOperation.
  45343. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45344. // One or more filters.
  45345. //
  45346. // * attachment.attach-time - The time stamp when the attachment initiated.
  45347. //
  45348. // * attachment.delete-on-termination - Whether the volume is deleted on
  45349. // instance termination.
  45350. //
  45351. // * attachment.device - The device name specified in the block device mapping
  45352. // (for example, /dev/sda1).
  45353. //
  45354. // * attachment.instance-id - The ID of the instance the volume is attached
  45355. // to.
  45356. //
  45357. // * attachment.status - The attachment state (attaching | attached | detaching).
  45358. //
  45359. // * availability-zone - The Availability Zone in which the volume was created.
  45360. //
  45361. // * create-time - The time stamp when the volume was created.
  45362. //
  45363. // * encrypted - The encryption status of the volume.
  45364. //
  45365. // * size - The size of the volume, in GiB.
  45366. //
  45367. // * snapshot-id - The snapshot from which the volume was created.
  45368. //
  45369. // * status - The status of the volume (creating | available | in-use | deleting
  45370. // | deleted | error).
  45371. //
  45372. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  45373. // Use the tag key in the filter name and the tag value as the filter value.
  45374. // For example, to find all resources that have a tag with the key Owner
  45375. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  45376. // the filter value.
  45377. //
  45378. // * tag-key - The key of a tag assigned to the resource. Use this filter
  45379. // to find all resources assigned a tag with a specific key, regardless of
  45380. // the tag value.
  45381. //
  45382. // * volume-id - The volume ID.
  45383. //
  45384. // * volume-type - The Amazon EBS volume type. This can be gp2 for General
  45385. // Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized
  45386. // HDD, sc1 for Cold HDD, or standard for Magnetic volumes.
  45387. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45388. // The maximum number of volume results returned by DescribeVolumes in paginated
  45389. // output. When this parameter is used, DescribeVolumes only returns MaxResults
  45390. // results in a single page along with a NextToken response element. The remaining
  45391. // results of the initial request can be seen by sending another DescribeVolumes
  45392. // request with the returned NextToken value. This value can be between 5 and
  45393. // 500; if MaxResults is given a value larger than 500, only 500 results are
  45394. // returned. If this parameter is not used, then DescribeVolumes returns all
  45395. // results. You cannot specify this parameter and the volume IDs parameter in
  45396. // the same request.
  45397. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  45398. // The NextToken value returned from a previous paginated DescribeVolumes request
  45399. // where MaxResults was used and the results exceeded the value of that parameter.
  45400. // Pagination continues from the end of the previous results that returned the
  45401. // NextToken value. This value is null when there are no more results to return.
  45402. NextToken *string `locationName:"nextToken" type:"string"`
  45403. // One or more volume IDs.
  45404. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  45405. }
  45406. // String returns the string representation
  45407. func (s DescribeVolumesInput) String() string {
  45408. return awsutil.Prettify(s)
  45409. }
  45410. // GoString returns the string representation
  45411. func (s DescribeVolumesInput) GoString() string {
  45412. return s.String()
  45413. }
  45414. // SetDryRun sets the DryRun field's value.
  45415. func (s *DescribeVolumesInput) SetDryRun(v bool) *DescribeVolumesInput {
  45416. s.DryRun = &v
  45417. return s
  45418. }
  45419. // SetFilters sets the Filters field's value.
  45420. func (s *DescribeVolumesInput) SetFilters(v []*Filter) *DescribeVolumesInput {
  45421. s.Filters = v
  45422. return s
  45423. }
  45424. // SetMaxResults sets the MaxResults field's value.
  45425. func (s *DescribeVolumesInput) SetMaxResults(v int64) *DescribeVolumesInput {
  45426. s.MaxResults = &v
  45427. return s
  45428. }
  45429. // SetNextToken sets the NextToken field's value.
  45430. func (s *DescribeVolumesInput) SetNextToken(v string) *DescribeVolumesInput {
  45431. s.NextToken = &v
  45432. return s
  45433. }
  45434. // SetVolumeIds sets the VolumeIds field's value.
  45435. func (s *DescribeVolumesInput) SetVolumeIds(v []*string) *DescribeVolumesInput {
  45436. s.VolumeIds = v
  45437. return s
  45438. }
  45439. type DescribeVolumesModificationsInput struct {
  45440. _ struct{} `type:"structure"`
  45441. // Checks whether you have the required permissions for the action, without
  45442. // actually making the request, and provides an error response. If you have
  45443. // the required permissions, the error response is DryRunOperation. Otherwise,
  45444. // it is UnauthorizedOperation.
  45445. DryRun *bool `type:"boolean"`
  45446. // One or more filters. Supported filters: volume-id, modification-state, target-size,
  45447. // target-iops, target-volume-type, original-size, original-iops, original-volume-type,
  45448. // start-time.
  45449. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45450. // The maximum number of results (up to a limit of 500) to be returned in a
  45451. // paginated request.
  45452. MaxResults *int64 `type:"integer"`
  45453. // The nextToken value returned by a previous paginated request.
  45454. NextToken *string `type:"string"`
  45455. // One or more volume IDs for which in-progress modifications will be described.
  45456. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  45457. }
  45458. // String returns the string representation
  45459. func (s DescribeVolumesModificationsInput) String() string {
  45460. return awsutil.Prettify(s)
  45461. }
  45462. // GoString returns the string representation
  45463. func (s DescribeVolumesModificationsInput) GoString() string {
  45464. return s.String()
  45465. }
  45466. // SetDryRun sets the DryRun field's value.
  45467. func (s *DescribeVolumesModificationsInput) SetDryRun(v bool) *DescribeVolumesModificationsInput {
  45468. s.DryRun = &v
  45469. return s
  45470. }
  45471. // SetFilters sets the Filters field's value.
  45472. func (s *DescribeVolumesModificationsInput) SetFilters(v []*Filter) *DescribeVolumesModificationsInput {
  45473. s.Filters = v
  45474. return s
  45475. }
  45476. // SetMaxResults sets the MaxResults field's value.
  45477. func (s *DescribeVolumesModificationsInput) SetMaxResults(v int64) *DescribeVolumesModificationsInput {
  45478. s.MaxResults = &v
  45479. return s
  45480. }
  45481. // SetNextToken sets the NextToken field's value.
  45482. func (s *DescribeVolumesModificationsInput) SetNextToken(v string) *DescribeVolumesModificationsInput {
  45483. s.NextToken = &v
  45484. return s
  45485. }
  45486. // SetVolumeIds sets the VolumeIds field's value.
  45487. func (s *DescribeVolumesModificationsInput) SetVolumeIds(v []*string) *DescribeVolumesModificationsInput {
  45488. s.VolumeIds = v
  45489. return s
  45490. }
  45491. type DescribeVolumesModificationsOutput struct {
  45492. _ struct{} `type:"structure"`
  45493. // Token for pagination, null if there are no more results
  45494. NextToken *string `locationName:"nextToken" type:"string"`
  45495. // A list of returned VolumeModification objects.
  45496. VolumesModifications []*VolumeModification `locationName:"volumeModificationSet" locationNameList:"item" type:"list"`
  45497. }
  45498. // String returns the string representation
  45499. func (s DescribeVolumesModificationsOutput) String() string {
  45500. return awsutil.Prettify(s)
  45501. }
  45502. // GoString returns the string representation
  45503. func (s DescribeVolumesModificationsOutput) GoString() string {
  45504. return s.String()
  45505. }
  45506. // SetNextToken sets the NextToken field's value.
  45507. func (s *DescribeVolumesModificationsOutput) SetNextToken(v string) *DescribeVolumesModificationsOutput {
  45508. s.NextToken = &v
  45509. return s
  45510. }
  45511. // SetVolumesModifications sets the VolumesModifications field's value.
  45512. func (s *DescribeVolumesModificationsOutput) SetVolumesModifications(v []*VolumeModification) *DescribeVolumesModificationsOutput {
  45513. s.VolumesModifications = v
  45514. return s
  45515. }
  45516. // Contains the output of DescribeVolumes.
  45517. type DescribeVolumesOutput struct {
  45518. _ struct{} `type:"structure"`
  45519. // The NextToken value to include in a future DescribeVolumes request. When
  45520. // the results of a DescribeVolumes request exceed MaxResults, this value can
  45521. // be used to retrieve the next page of results. This value is null when there
  45522. // are no more results to return.
  45523. NextToken *string `locationName:"nextToken" type:"string"`
  45524. // Information about the volumes.
  45525. Volumes []*Volume `locationName:"volumeSet" locationNameList:"item" type:"list"`
  45526. }
  45527. // String returns the string representation
  45528. func (s DescribeVolumesOutput) String() string {
  45529. return awsutil.Prettify(s)
  45530. }
  45531. // GoString returns the string representation
  45532. func (s DescribeVolumesOutput) GoString() string {
  45533. return s.String()
  45534. }
  45535. // SetNextToken sets the NextToken field's value.
  45536. func (s *DescribeVolumesOutput) SetNextToken(v string) *DescribeVolumesOutput {
  45537. s.NextToken = &v
  45538. return s
  45539. }
  45540. // SetVolumes sets the Volumes field's value.
  45541. func (s *DescribeVolumesOutput) SetVolumes(v []*Volume) *DescribeVolumesOutput {
  45542. s.Volumes = v
  45543. return s
  45544. }
  45545. type DescribeVpcAttributeInput struct {
  45546. _ struct{} `type:"structure"`
  45547. // The VPC attribute.
  45548. //
  45549. // Attribute is a required field
  45550. Attribute *string `type:"string" required:"true" enum:"VpcAttributeName"`
  45551. // Checks whether you have the required permissions for the action, without
  45552. // actually making the request, and provides an error response. If you have
  45553. // the required permissions, the error response is DryRunOperation. Otherwise,
  45554. // it is UnauthorizedOperation.
  45555. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45556. // The ID of the VPC.
  45557. //
  45558. // VpcId is a required field
  45559. VpcId *string `type:"string" required:"true"`
  45560. }
  45561. // String returns the string representation
  45562. func (s DescribeVpcAttributeInput) String() string {
  45563. return awsutil.Prettify(s)
  45564. }
  45565. // GoString returns the string representation
  45566. func (s DescribeVpcAttributeInput) GoString() string {
  45567. return s.String()
  45568. }
  45569. // Validate inspects the fields of the type to determine if they are valid.
  45570. func (s *DescribeVpcAttributeInput) Validate() error {
  45571. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcAttributeInput"}
  45572. if s.Attribute == nil {
  45573. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  45574. }
  45575. if s.VpcId == nil {
  45576. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  45577. }
  45578. if invalidParams.Len() > 0 {
  45579. return invalidParams
  45580. }
  45581. return nil
  45582. }
  45583. // SetAttribute sets the Attribute field's value.
  45584. func (s *DescribeVpcAttributeInput) SetAttribute(v string) *DescribeVpcAttributeInput {
  45585. s.Attribute = &v
  45586. return s
  45587. }
  45588. // SetDryRun sets the DryRun field's value.
  45589. func (s *DescribeVpcAttributeInput) SetDryRun(v bool) *DescribeVpcAttributeInput {
  45590. s.DryRun = &v
  45591. return s
  45592. }
  45593. // SetVpcId sets the VpcId field's value.
  45594. func (s *DescribeVpcAttributeInput) SetVpcId(v string) *DescribeVpcAttributeInput {
  45595. s.VpcId = &v
  45596. return s
  45597. }
  45598. type DescribeVpcAttributeOutput struct {
  45599. _ struct{} `type:"structure"`
  45600. // Indicates whether the instances launched in the VPC get DNS hostnames. If
  45601. // this attribute is true, instances in the VPC get DNS hostnames; otherwise,
  45602. // they do not.
  45603. EnableDnsHostnames *AttributeBooleanValue `locationName:"enableDnsHostnames" type:"structure"`
  45604. // Indicates whether DNS resolution is enabled for the VPC. If this attribute
  45605. // is true, the Amazon DNS server resolves DNS hostnames for your instances
  45606. // to their corresponding IP addresses; otherwise, it does not.
  45607. EnableDnsSupport *AttributeBooleanValue `locationName:"enableDnsSupport" type:"structure"`
  45608. // The ID of the VPC.
  45609. VpcId *string `locationName:"vpcId" type:"string"`
  45610. }
  45611. // String returns the string representation
  45612. func (s DescribeVpcAttributeOutput) String() string {
  45613. return awsutil.Prettify(s)
  45614. }
  45615. // GoString returns the string representation
  45616. func (s DescribeVpcAttributeOutput) GoString() string {
  45617. return s.String()
  45618. }
  45619. // SetEnableDnsHostnames sets the EnableDnsHostnames field's value.
  45620. func (s *DescribeVpcAttributeOutput) SetEnableDnsHostnames(v *AttributeBooleanValue) *DescribeVpcAttributeOutput {
  45621. s.EnableDnsHostnames = v
  45622. return s
  45623. }
  45624. // SetEnableDnsSupport sets the EnableDnsSupport field's value.
  45625. func (s *DescribeVpcAttributeOutput) SetEnableDnsSupport(v *AttributeBooleanValue) *DescribeVpcAttributeOutput {
  45626. s.EnableDnsSupport = v
  45627. return s
  45628. }
  45629. // SetVpcId sets the VpcId field's value.
  45630. func (s *DescribeVpcAttributeOutput) SetVpcId(v string) *DescribeVpcAttributeOutput {
  45631. s.VpcId = &v
  45632. return s
  45633. }
  45634. type DescribeVpcClassicLinkDnsSupportInput struct {
  45635. _ struct{} `type:"structure"`
  45636. // The maximum number of items to return for this request. The request returns
  45637. // a token that you can specify in a subsequent call to get the next set of
  45638. // results.
  45639. MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`
  45640. // The token for the next set of items to return. (You received this token from
  45641. // a prior call.)
  45642. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  45643. // One or more VPC IDs.
  45644. VpcIds []*string `locationNameList:"VpcId" type:"list"`
  45645. }
  45646. // String returns the string representation
  45647. func (s DescribeVpcClassicLinkDnsSupportInput) String() string {
  45648. return awsutil.Prettify(s)
  45649. }
  45650. // GoString returns the string representation
  45651. func (s DescribeVpcClassicLinkDnsSupportInput) GoString() string {
  45652. return s.String()
  45653. }
  45654. // Validate inspects the fields of the type to determine if they are valid.
  45655. func (s *DescribeVpcClassicLinkDnsSupportInput) Validate() error {
  45656. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcClassicLinkDnsSupportInput"}
  45657. if s.MaxResults != nil && *s.MaxResults < 5 {
  45658. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  45659. }
  45660. if s.NextToken != nil && len(*s.NextToken) < 1 {
  45661. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  45662. }
  45663. if invalidParams.Len() > 0 {
  45664. return invalidParams
  45665. }
  45666. return nil
  45667. }
  45668. // SetMaxResults sets the MaxResults field's value.
  45669. func (s *DescribeVpcClassicLinkDnsSupportInput) SetMaxResults(v int64) *DescribeVpcClassicLinkDnsSupportInput {
  45670. s.MaxResults = &v
  45671. return s
  45672. }
  45673. // SetNextToken sets the NextToken field's value.
  45674. func (s *DescribeVpcClassicLinkDnsSupportInput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportInput {
  45675. s.NextToken = &v
  45676. return s
  45677. }
  45678. // SetVpcIds sets the VpcIds field's value.
  45679. func (s *DescribeVpcClassicLinkDnsSupportInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkDnsSupportInput {
  45680. s.VpcIds = v
  45681. return s
  45682. }
  45683. type DescribeVpcClassicLinkDnsSupportOutput struct {
  45684. _ struct{} `type:"structure"`
  45685. // The token to use when requesting the next set of items.
  45686. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  45687. // Information about the ClassicLink DNS support status of the VPCs.
  45688. Vpcs []*ClassicLinkDnsSupport `locationName:"vpcs" locationNameList:"item" type:"list"`
  45689. }
  45690. // String returns the string representation
  45691. func (s DescribeVpcClassicLinkDnsSupportOutput) String() string {
  45692. return awsutil.Prettify(s)
  45693. }
  45694. // GoString returns the string representation
  45695. func (s DescribeVpcClassicLinkDnsSupportOutput) GoString() string {
  45696. return s.String()
  45697. }
  45698. // SetNextToken sets the NextToken field's value.
  45699. func (s *DescribeVpcClassicLinkDnsSupportOutput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportOutput {
  45700. s.NextToken = &v
  45701. return s
  45702. }
  45703. // SetVpcs sets the Vpcs field's value.
  45704. func (s *DescribeVpcClassicLinkDnsSupportOutput) SetVpcs(v []*ClassicLinkDnsSupport) *DescribeVpcClassicLinkDnsSupportOutput {
  45705. s.Vpcs = v
  45706. return s
  45707. }
  45708. type DescribeVpcClassicLinkInput struct {
  45709. _ struct{} `type:"structure"`
  45710. // Checks whether you have the required permissions for the action, without
  45711. // actually making the request, and provides an error response. If you have
  45712. // the required permissions, the error response is DryRunOperation. Otherwise,
  45713. // it is UnauthorizedOperation.
  45714. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45715. // One or more filters.
  45716. //
  45717. // * is-classic-link-enabled - Whether the VPC is enabled for ClassicLink
  45718. // (true | false).
  45719. //
  45720. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  45721. // Use the tag key in the filter name and the tag value as the filter value.
  45722. // For example, to find all resources that have a tag with the key Owner
  45723. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  45724. // the filter value.
  45725. //
  45726. // * tag-key - The key of a tag assigned to the resource. Use this filter
  45727. // to find all resources assigned a tag with a specific key, regardless of
  45728. // the tag value.
  45729. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45730. // One or more VPCs for which you want to describe the ClassicLink status.
  45731. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
  45732. }
  45733. // String returns the string representation
  45734. func (s DescribeVpcClassicLinkInput) String() string {
  45735. return awsutil.Prettify(s)
  45736. }
  45737. // GoString returns the string representation
  45738. func (s DescribeVpcClassicLinkInput) GoString() string {
  45739. return s.String()
  45740. }
  45741. // SetDryRun sets the DryRun field's value.
  45742. func (s *DescribeVpcClassicLinkInput) SetDryRun(v bool) *DescribeVpcClassicLinkInput {
  45743. s.DryRun = &v
  45744. return s
  45745. }
  45746. // SetFilters sets the Filters field's value.
  45747. func (s *DescribeVpcClassicLinkInput) SetFilters(v []*Filter) *DescribeVpcClassicLinkInput {
  45748. s.Filters = v
  45749. return s
  45750. }
  45751. // SetVpcIds sets the VpcIds field's value.
  45752. func (s *DescribeVpcClassicLinkInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkInput {
  45753. s.VpcIds = v
  45754. return s
  45755. }
  45756. type DescribeVpcClassicLinkOutput struct {
  45757. _ struct{} `type:"structure"`
  45758. // The ClassicLink status of one or more VPCs.
  45759. Vpcs []*VpcClassicLink `locationName:"vpcSet" locationNameList:"item" type:"list"`
  45760. }
  45761. // String returns the string representation
  45762. func (s DescribeVpcClassicLinkOutput) String() string {
  45763. return awsutil.Prettify(s)
  45764. }
  45765. // GoString returns the string representation
  45766. func (s DescribeVpcClassicLinkOutput) GoString() string {
  45767. return s.String()
  45768. }
  45769. // SetVpcs sets the Vpcs field's value.
  45770. func (s *DescribeVpcClassicLinkOutput) SetVpcs(v []*VpcClassicLink) *DescribeVpcClassicLinkOutput {
  45771. s.Vpcs = v
  45772. return s
  45773. }
  45774. type DescribeVpcEndpointConnectionNotificationsInput struct {
  45775. _ struct{} `type:"structure"`
  45776. // The ID of the notification.
  45777. ConnectionNotificationId *string `type:"string"`
  45778. // Checks whether you have the required permissions for the action, without
  45779. // actually making the request, and provides an error response. If you have
  45780. // the required permissions, the error response is DryRunOperation. Otherwise,
  45781. // it is UnauthorizedOperation.
  45782. DryRun *bool `type:"boolean"`
  45783. // One or more filters.
  45784. //
  45785. // * connection-notification-arn - The ARN of SNS topic for the notification.
  45786. //
  45787. // * connection-notification-id - The ID of the notification.
  45788. //
  45789. // * connection-notification-state - The state of the notification (Enabled
  45790. // | Disabled).
  45791. //
  45792. // * connection-notification-type - The type of notification (Topic).
  45793. //
  45794. // * service-id - The ID of the endpoint service.
  45795. //
  45796. // * vpc-endpoint-id - The ID of the VPC endpoint.
  45797. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45798. // The maximum number of results to return in a single call. To retrieve the
  45799. // remaining results, make another request with the returned NextToken value.
  45800. MaxResults *int64 `type:"integer"`
  45801. // The token to request the next page of results.
  45802. NextToken *string `type:"string"`
  45803. }
  45804. // String returns the string representation
  45805. func (s DescribeVpcEndpointConnectionNotificationsInput) String() string {
  45806. return awsutil.Prettify(s)
  45807. }
  45808. // GoString returns the string representation
  45809. func (s DescribeVpcEndpointConnectionNotificationsInput) GoString() string {
  45810. return s.String()
  45811. }
  45812. // SetConnectionNotificationId sets the ConnectionNotificationId field's value.
  45813. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetConnectionNotificationId(v string) *DescribeVpcEndpointConnectionNotificationsInput {
  45814. s.ConnectionNotificationId = &v
  45815. return s
  45816. }
  45817. // SetDryRun sets the DryRun field's value.
  45818. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetDryRun(v bool) *DescribeVpcEndpointConnectionNotificationsInput {
  45819. s.DryRun = &v
  45820. return s
  45821. }
  45822. // SetFilters sets the Filters field's value.
  45823. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetFilters(v []*Filter) *DescribeVpcEndpointConnectionNotificationsInput {
  45824. s.Filters = v
  45825. return s
  45826. }
  45827. // SetMaxResults sets the MaxResults field's value.
  45828. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetMaxResults(v int64) *DescribeVpcEndpointConnectionNotificationsInput {
  45829. s.MaxResults = &v
  45830. return s
  45831. }
  45832. // SetNextToken sets the NextToken field's value.
  45833. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetNextToken(v string) *DescribeVpcEndpointConnectionNotificationsInput {
  45834. s.NextToken = &v
  45835. return s
  45836. }
  45837. type DescribeVpcEndpointConnectionNotificationsOutput struct {
  45838. _ struct{} `type:"structure"`
  45839. // One or more notifications.
  45840. ConnectionNotificationSet []*ConnectionNotification `locationName:"connectionNotificationSet" locationNameList:"item" type:"list"`
  45841. // The token to use to retrieve the next page of results. This value is null
  45842. // when there are no more results to return.
  45843. NextToken *string `locationName:"nextToken" type:"string"`
  45844. }
  45845. // String returns the string representation
  45846. func (s DescribeVpcEndpointConnectionNotificationsOutput) String() string {
  45847. return awsutil.Prettify(s)
  45848. }
  45849. // GoString returns the string representation
  45850. func (s DescribeVpcEndpointConnectionNotificationsOutput) GoString() string {
  45851. return s.String()
  45852. }
  45853. // SetConnectionNotificationSet sets the ConnectionNotificationSet field's value.
  45854. func (s *DescribeVpcEndpointConnectionNotificationsOutput) SetConnectionNotificationSet(v []*ConnectionNotification) *DescribeVpcEndpointConnectionNotificationsOutput {
  45855. s.ConnectionNotificationSet = v
  45856. return s
  45857. }
  45858. // SetNextToken sets the NextToken field's value.
  45859. func (s *DescribeVpcEndpointConnectionNotificationsOutput) SetNextToken(v string) *DescribeVpcEndpointConnectionNotificationsOutput {
  45860. s.NextToken = &v
  45861. return s
  45862. }
  45863. type DescribeVpcEndpointConnectionsInput struct {
  45864. _ struct{} `type:"structure"`
  45865. // Checks whether you have the required permissions for the action, without
  45866. // actually making the request, and provides an error response. If you have
  45867. // the required permissions, the error response is DryRunOperation. Otherwise,
  45868. // it is UnauthorizedOperation.
  45869. DryRun *bool `type:"boolean"`
  45870. // One or more filters.
  45871. //
  45872. // * service-id - The ID of the service.
  45873. //
  45874. // * vpc-endpoint-owner - The AWS account number of the owner of the endpoint.
  45875. //
  45876. // * vpc-endpoint-state - The state of the endpoint (pendingAcceptance |
  45877. // pending | available | deleting | deleted | rejected | failed).
  45878. //
  45879. // * vpc-endpoint-id - The ID of the endpoint.
  45880. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45881. // The maximum number of results to return for the request in a single page.
  45882. // The remaining results of the initial request can be seen by sending another
  45883. // request with the returned NextToken value. This value can be between 5 and
  45884. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  45885. // are returned.
  45886. MaxResults *int64 `type:"integer"`
  45887. // The token to retrieve the next page of results.
  45888. NextToken *string `type:"string"`
  45889. }
  45890. // String returns the string representation
  45891. func (s DescribeVpcEndpointConnectionsInput) String() string {
  45892. return awsutil.Prettify(s)
  45893. }
  45894. // GoString returns the string representation
  45895. func (s DescribeVpcEndpointConnectionsInput) GoString() string {
  45896. return s.String()
  45897. }
  45898. // SetDryRun sets the DryRun field's value.
  45899. func (s *DescribeVpcEndpointConnectionsInput) SetDryRun(v bool) *DescribeVpcEndpointConnectionsInput {
  45900. s.DryRun = &v
  45901. return s
  45902. }
  45903. // SetFilters sets the Filters field's value.
  45904. func (s *DescribeVpcEndpointConnectionsInput) SetFilters(v []*Filter) *DescribeVpcEndpointConnectionsInput {
  45905. s.Filters = v
  45906. return s
  45907. }
  45908. // SetMaxResults sets the MaxResults field's value.
  45909. func (s *DescribeVpcEndpointConnectionsInput) SetMaxResults(v int64) *DescribeVpcEndpointConnectionsInput {
  45910. s.MaxResults = &v
  45911. return s
  45912. }
  45913. // SetNextToken sets the NextToken field's value.
  45914. func (s *DescribeVpcEndpointConnectionsInput) SetNextToken(v string) *DescribeVpcEndpointConnectionsInput {
  45915. s.NextToken = &v
  45916. return s
  45917. }
  45918. type DescribeVpcEndpointConnectionsOutput struct {
  45919. _ struct{} `type:"structure"`
  45920. // The token to use to retrieve the next page of results. This value is null
  45921. // when there are no more results to return.
  45922. NextToken *string `locationName:"nextToken" type:"string"`
  45923. // Information about one or more VPC endpoint connections.
  45924. VpcEndpointConnections []*VpcEndpointConnection `locationName:"vpcEndpointConnectionSet" locationNameList:"item" type:"list"`
  45925. }
  45926. // String returns the string representation
  45927. func (s DescribeVpcEndpointConnectionsOutput) String() string {
  45928. return awsutil.Prettify(s)
  45929. }
  45930. // GoString returns the string representation
  45931. func (s DescribeVpcEndpointConnectionsOutput) GoString() string {
  45932. return s.String()
  45933. }
  45934. // SetNextToken sets the NextToken field's value.
  45935. func (s *DescribeVpcEndpointConnectionsOutput) SetNextToken(v string) *DescribeVpcEndpointConnectionsOutput {
  45936. s.NextToken = &v
  45937. return s
  45938. }
  45939. // SetVpcEndpointConnections sets the VpcEndpointConnections field's value.
  45940. func (s *DescribeVpcEndpointConnectionsOutput) SetVpcEndpointConnections(v []*VpcEndpointConnection) *DescribeVpcEndpointConnectionsOutput {
  45941. s.VpcEndpointConnections = v
  45942. return s
  45943. }
  45944. type DescribeVpcEndpointServiceConfigurationsInput struct {
  45945. _ struct{} `type:"structure"`
  45946. // Checks whether you have the required permissions for the action, without
  45947. // actually making the request, and provides an error response. If you have
  45948. // the required permissions, the error response is DryRunOperation. Otherwise,
  45949. // it is UnauthorizedOperation.
  45950. DryRun *bool `type:"boolean"`
  45951. // One or more filters.
  45952. //
  45953. // * service-name - The name of the service.
  45954. //
  45955. // * service-id - The ID of the service.
  45956. //
  45957. // * service-state - The state of the service (Pending | Available | Deleting
  45958. // | Deleted | Failed).
  45959. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  45960. // The maximum number of results to return for the request in a single page.
  45961. // The remaining results of the initial request can be seen by sending another
  45962. // request with the returned NextToken value. This value can be between 5 and
  45963. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  45964. // are returned.
  45965. MaxResults *int64 `type:"integer"`
  45966. // The token to retrieve the next page of results.
  45967. NextToken *string `type:"string"`
  45968. // The IDs of one or more services.
  45969. ServiceIds []*string `locationName:"ServiceId" locationNameList:"item" type:"list"`
  45970. }
  45971. // String returns the string representation
  45972. func (s DescribeVpcEndpointServiceConfigurationsInput) String() string {
  45973. return awsutil.Prettify(s)
  45974. }
  45975. // GoString returns the string representation
  45976. func (s DescribeVpcEndpointServiceConfigurationsInput) GoString() string {
  45977. return s.String()
  45978. }
  45979. // SetDryRun sets the DryRun field's value.
  45980. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetDryRun(v bool) *DescribeVpcEndpointServiceConfigurationsInput {
  45981. s.DryRun = &v
  45982. return s
  45983. }
  45984. // SetFilters sets the Filters field's value.
  45985. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetFilters(v []*Filter) *DescribeVpcEndpointServiceConfigurationsInput {
  45986. s.Filters = v
  45987. return s
  45988. }
  45989. // SetMaxResults sets the MaxResults field's value.
  45990. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetMaxResults(v int64) *DescribeVpcEndpointServiceConfigurationsInput {
  45991. s.MaxResults = &v
  45992. return s
  45993. }
  45994. // SetNextToken sets the NextToken field's value.
  45995. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetNextToken(v string) *DescribeVpcEndpointServiceConfigurationsInput {
  45996. s.NextToken = &v
  45997. return s
  45998. }
  45999. // SetServiceIds sets the ServiceIds field's value.
  46000. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetServiceIds(v []*string) *DescribeVpcEndpointServiceConfigurationsInput {
  46001. s.ServiceIds = v
  46002. return s
  46003. }
  46004. type DescribeVpcEndpointServiceConfigurationsOutput struct {
  46005. _ struct{} `type:"structure"`
  46006. // The token to use to retrieve the next page of results. This value is null
  46007. // when there are no more results to return.
  46008. NextToken *string `locationName:"nextToken" type:"string"`
  46009. // Information about one or more services.
  46010. ServiceConfigurations []*ServiceConfiguration `locationName:"serviceConfigurationSet" locationNameList:"item" type:"list"`
  46011. }
  46012. // String returns the string representation
  46013. func (s DescribeVpcEndpointServiceConfigurationsOutput) String() string {
  46014. return awsutil.Prettify(s)
  46015. }
  46016. // GoString returns the string representation
  46017. func (s DescribeVpcEndpointServiceConfigurationsOutput) GoString() string {
  46018. return s.String()
  46019. }
  46020. // SetNextToken sets the NextToken field's value.
  46021. func (s *DescribeVpcEndpointServiceConfigurationsOutput) SetNextToken(v string) *DescribeVpcEndpointServiceConfigurationsOutput {
  46022. s.NextToken = &v
  46023. return s
  46024. }
  46025. // SetServiceConfigurations sets the ServiceConfigurations field's value.
  46026. func (s *DescribeVpcEndpointServiceConfigurationsOutput) SetServiceConfigurations(v []*ServiceConfiguration) *DescribeVpcEndpointServiceConfigurationsOutput {
  46027. s.ServiceConfigurations = v
  46028. return s
  46029. }
  46030. type DescribeVpcEndpointServicePermissionsInput struct {
  46031. _ struct{} `type:"structure"`
  46032. // Checks whether you have the required permissions for the action, without
  46033. // actually making the request, and provides an error response. If you have
  46034. // the required permissions, the error response is DryRunOperation. Otherwise,
  46035. // it is UnauthorizedOperation.
  46036. DryRun *bool `type:"boolean"`
  46037. // One or more filters.
  46038. //
  46039. // * principal - The ARN of the principal.
  46040. //
  46041. // * principal-type - The principal type (All | Service | OrganizationUnit
  46042. // | Account | User | Role).
  46043. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  46044. // The maximum number of results to return for the request in a single page.
  46045. // The remaining results of the initial request can be seen by sending another
  46046. // request with the returned NextToken value. This value can be between 5 and
  46047. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  46048. // are returned.
  46049. MaxResults *int64 `type:"integer"`
  46050. // The token to retrieve the next page of results.
  46051. NextToken *string `type:"string"`
  46052. // The ID of the service.
  46053. //
  46054. // ServiceId is a required field
  46055. ServiceId *string `type:"string" required:"true"`
  46056. }
  46057. // String returns the string representation
  46058. func (s DescribeVpcEndpointServicePermissionsInput) String() string {
  46059. return awsutil.Prettify(s)
  46060. }
  46061. // GoString returns the string representation
  46062. func (s DescribeVpcEndpointServicePermissionsInput) GoString() string {
  46063. return s.String()
  46064. }
  46065. // Validate inspects the fields of the type to determine if they are valid.
  46066. func (s *DescribeVpcEndpointServicePermissionsInput) Validate() error {
  46067. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcEndpointServicePermissionsInput"}
  46068. if s.ServiceId == nil {
  46069. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  46070. }
  46071. if invalidParams.Len() > 0 {
  46072. return invalidParams
  46073. }
  46074. return nil
  46075. }
  46076. // SetDryRun sets the DryRun field's value.
  46077. func (s *DescribeVpcEndpointServicePermissionsInput) SetDryRun(v bool) *DescribeVpcEndpointServicePermissionsInput {
  46078. s.DryRun = &v
  46079. return s
  46080. }
  46081. // SetFilters sets the Filters field's value.
  46082. func (s *DescribeVpcEndpointServicePermissionsInput) SetFilters(v []*Filter) *DescribeVpcEndpointServicePermissionsInput {
  46083. s.Filters = v
  46084. return s
  46085. }
  46086. // SetMaxResults sets the MaxResults field's value.
  46087. func (s *DescribeVpcEndpointServicePermissionsInput) SetMaxResults(v int64) *DescribeVpcEndpointServicePermissionsInput {
  46088. s.MaxResults = &v
  46089. return s
  46090. }
  46091. // SetNextToken sets the NextToken field's value.
  46092. func (s *DescribeVpcEndpointServicePermissionsInput) SetNextToken(v string) *DescribeVpcEndpointServicePermissionsInput {
  46093. s.NextToken = &v
  46094. return s
  46095. }
  46096. // SetServiceId sets the ServiceId field's value.
  46097. func (s *DescribeVpcEndpointServicePermissionsInput) SetServiceId(v string) *DescribeVpcEndpointServicePermissionsInput {
  46098. s.ServiceId = &v
  46099. return s
  46100. }
  46101. type DescribeVpcEndpointServicePermissionsOutput struct {
  46102. _ struct{} `type:"structure"`
  46103. // Information about one or more allowed principals.
  46104. AllowedPrincipals []*AllowedPrincipal `locationName:"allowedPrincipals" locationNameList:"item" type:"list"`
  46105. // The token to use to retrieve the next page of results. This value is null
  46106. // when there are no more results to return.
  46107. NextToken *string `locationName:"nextToken" type:"string"`
  46108. }
  46109. // String returns the string representation
  46110. func (s DescribeVpcEndpointServicePermissionsOutput) String() string {
  46111. return awsutil.Prettify(s)
  46112. }
  46113. // GoString returns the string representation
  46114. func (s DescribeVpcEndpointServicePermissionsOutput) GoString() string {
  46115. return s.String()
  46116. }
  46117. // SetAllowedPrincipals sets the AllowedPrincipals field's value.
  46118. func (s *DescribeVpcEndpointServicePermissionsOutput) SetAllowedPrincipals(v []*AllowedPrincipal) *DescribeVpcEndpointServicePermissionsOutput {
  46119. s.AllowedPrincipals = v
  46120. return s
  46121. }
  46122. // SetNextToken sets the NextToken field's value.
  46123. func (s *DescribeVpcEndpointServicePermissionsOutput) SetNextToken(v string) *DescribeVpcEndpointServicePermissionsOutput {
  46124. s.NextToken = &v
  46125. return s
  46126. }
  46127. // Contains the parameters for DescribeVpcEndpointServices.
  46128. type DescribeVpcEndpointServicesInput struct {
  46129. _ struct{} `type:"structure"`
  46130. // Checks whether you have the required permissions for the action, without
  46131. // actually making the request, and provides an error response. If you have
  46132. // the required permissions, the error response is DryRunOperation. Otherwise,
  46133. // it is UnauthorizedOperation.
  46134. DryRun *bool `type:"boolean"`
  46135. // One or more filters.
  46136. //
  46137. // * service-name: The name of the service.
  46138. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  46139. // The maximum number of items to return for this request. The request returns
  46140. // a token that you can specify in a subsequent call to get the next set of
  46141. // results.
  46142. //
  46143. // Constraint: If the value is greater than 1000, we return only 1000 items.
  46144. MaxResults *int64 `type:"integer"`
  46145. // The token for the next set of items to return. (You received this token from
  46146. // a prior call.)
  46147. NextToken *string `type:"string"`
  46148. // One or more service names.
  46149. ServiceNames []*string `locationName:"ServiceName" locationNameList:"item" type:"list"`
  46150. }
  46151. // String returns the string representation
  46152. func (s DescribeVpcEndpointServicesInput) String() string {
  46153. return awsutil.Prettify(s)
  46154. }
  46155. // GoString returns the string representation
  46156. func (s DescribeVpcEndpointServicesInput) GoString() string {
  46157. return s.String()
  46158. }
  46159. // SetDryRun sets the DryRun field's value.
  46160. func (s *DescribeVpcEndpointServicesInput) SetDryRun(v bool) *DescribeVpcEndpointServicesInput {
  46161. s.DryRun = &v
  46162. return s
  46163. }
  46164. // SetFilters sets the Filters field's value.
  46165. func (s *DescribeVpcEndpointServicesInput) SetFilters(v []*Filter) *DescribeVpcEndpointServicesInput {
  46166. s.Filters = v
  46167. return s
  46168. }
  46169. // SetMaxResults sets the MaxResults field's value.
  46170. func (s *DescribeVpcEndpointServicesInput) SetMaxResults(v int64) *DescribeVpcEndpointServicesInput {
  46171. s.MaxResults = &v
  46172. return s
  46173. }
  46174. // SetNextToken sets the NextToken field's value.
  46175. func (s *DescribeVpcEndpointServicesInput) SetNextToken(v string) *DescribeVpcEndpointServicesInput {
  46176. s.NextToken = &v
  46177. return s
  46178. }
  46179. // SetServiceNames sets the ServiceNames field's value.
  46180. func (s *DescribeVpcEndpointServicesInput) SetServiceNames(v []*string) *DescribeVpcEndpointServicesInput {
  46181. s.ServiceNames = v
  46182. return s
  46183. }
  46184. // Contains the output of DescribeVpcEndpointServices.
  46185. type DescribeVpcEndpointServicesOutput struct {
  46186. _ struct{} `type:"structure"`
  46187. // The token to use when requesting the next set of items. If there are no additional
  46188. // items to return, the string is empty.
  46189. NextToken *string `locationName:"nextToken" type:"string"`
  46190. // Information about the service.
  46191. ServiceDetails []*ServiceDetail `locationName:"serviceDetailSet" locationNameList:"item" type:"list"`
  46192. // A list of supported services.
  46193. ServiceNames []*string `locationName:"serviceNameSet" locationNameList:"item" type:"list"`
  46194. }
  46195. // String returns the string representation
  46196. func (s DescribeVpcEndpointServicesOutput) String() string {
  46197. return awsutil.Prettify(s)
  46198. }
  46199. // GoString returns the string representation
  46200. func (s DescribeVpcEndpointServicesOutput) GoString() string {
  46201. return s.String()
  46202. }
  46203. // SetNextToken sets the NextToken field's value.
  46204. func (s *DescribeVpcEndpointServicesOutput) SetNextToken(v string) *DescribeVpcEndpointServicesOutput {
  46205. s.NextToken = &v
  46206. return s
  46207. }
  46208. // SetServiceDetails sets the ServiceDetails field's value.
  46209. func (s *DescribeVpcEndpointServicesOutput) SetServiceDetails(v []*ServiceDetail) *DescribeVpcEndpointServicesOutput {
  46210. s.ServiceDetails = v
  46211. return s
  46212. }
  46213. // SetServiceNames sets the ServiceNames field's value.
  46214. func (s *DescribeVpcEndpointServicesOutput) SetServiceNames(v []*string) *DescribeVpcEndpointServicesOutput {
  46215. s.ServiceNames = v
  46216. return s
  46217. }
  46218. // Contains the parameters for DescribeVpcEndpoints.
  46219. type DescribeVpcEndpointsInput struct {
  46220. _ struct{} `type:"structure"`
  46221. // Checks whether you have the required permissions for the action, without
  46222. // actually making the request, and provides an error response. If you have
  46223. // the required permissions, the error response is DryRunOperation. Otherwise,
  46224. // it is UnauthorizedOperation.
  46225. DryRun *bool `type:"boolean"`
  46226. // One or more filters.
  46227. //
  46228. // * service-name: The name of the service.
  46229. //
  46230. // * vpc-id: The ID of the VPC in which the endpoint resides.
  46231. //
  46232. // * vpc-endpoint-id: The ID of the endpoint.
  46233. //
  46234. // * vpc-endpoint-state: The state of the endpoint. (pending | available
  46235. // | deleting | deleted)
  46236. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  46237. // The maximum number of items to return for this request. The request returns
  46238. // a token that you can specify in a subsequent call to get the next set of
  46239. // results.
  46240. //
  46241. // Constraint: If the value is greater than 1000, we return only 1000 items.
  46242. MaxResults *int64 `type:"integer"`
  46243. // The token for the next set of items to return. (You received this token from
  46244. // a prior call.)
  46245. NextToken *string `type:"string"`
  46246. // One or more endpoint IDs.
  46247. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list"`
  46248. }
  46249. // String returns the string representation
  46250. func (s DescribeVpcEndpointsInput) String() string {
  46251. return awsutil.Prettify(s)
  46252. }
  46253. // GoString returns the string representation
  46254. func (s DescribeVpcEndpointsInput) GoString() string {
  46255. return s.String()
  46256. }
  46257. // SetDryRun sets the DryRun field's value.
  46258. func (s *DescribeVpcEndpointsInput) SetDryRun(v bool) *DescribeVpcEndpointsInput {
  46259. s.DryRun = &v
  46260. return s
  46261. }
  46262. // SetFilters sets the Filters field's value.
  46263. func (s *DescribeVpcEndpointsInput) SetFilters(v []*Filter) *DescribeVpcEndpointsInput {
  46264. s.Filters = v
  46265. return s
  46266. }
  46267. // SetMaxResults sets the MaxResults field's value.
  46268. func (s *DescribeVpcEndpointsInput) SetMaxResults(v int64) *DescribeVpcEndpointsInput {
  46269. s.MaxResults = &v
  46270. return s
  46271. }
  46272. // SetNextToken sets the NextToken field's value.
  46273. func (s *DescribeVpcEndpointsInput) SetNextToken(v string) *DescribeVpcEndpointsInput {
  46274. s.NextToken = &v
  46275. return s
  46276. }
  46277. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  46278. func (s *DescribeVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DescribeVpcEndpointsInput {
  46279. s.VpcEndpointIds = v
  46280. return s
  46281. }
  46282. // Contains the output of DescribeVpcEndpoints.
  46283. type DescribeVpcEndpointsOutput struct {
  46284. _ struct{} `type:"structure"`
  46285. // The token to use when requesting the next set of items. If there are no additional
  46286. // items to return, the string is empty.
  46287. NextToken *string `locationName:"nextToken" type:"string"`
  46288. // Information about the endpoints.
  46289. VpcEndpoints []*VpcEndpoint `locationName:"vpcEndpointSet" locationNameList:"item" type:"list"`
  46290. }
  46291. // String returns the string representation
  46292. func (s DescribeVpcEndpointsOutput) String() string {
  46293. return awsutil.Prettify(s)
  46294. }
  46295. // GoString returns the string representation
  46296. func (s DescribeVpcEndpointsOutput) GoString() string {
  46297. return s.String()
  46298. }
  46299. // SetNextToken sets the NextToken field's value.
  46300. func (s *DescribeVpcEndpointsOutput) SetNextToken(v string) *DescribeVpcEndpointsOutput {
  46301. s.NextToken = &v
  46302. return s
  46303. }
  46304. // SetVpcEndpoints sets the VpcEndpoints field's value.
  46305. func (s *DescribeVpcEndpointsOutput) SetVpcEndpoints(v []*VpcEndpoint) *DescribeVpcEndpointsOutput {
  46306. s.VpcEndpoints = v
  46307. return s
  46308. }
  46309. type DescribeVpcPeeringConnectionsInput struct {
  46310. _ struct{} `type:"structure"`
  46311. // Checks whether you have the required permissions for the action, without
  46312. // actually making the request, and provides an error response. If you have
  46313. // the required permissions, the error response is DryRunOperation. Otherwise,
  46314. // it is UnauthorizedOperation.
  46315. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46316. // One or more filters.
  46317. //
  46318. // * accepter-vpc-info.cidr-block - The IPv4 CIDR block of the accepter VPC.
  46319. //
  46320. // * accepter-vpc-info.owner-id - The AWS account ID of the owner of the
  46321. // accepter VPC.
  46322. //
  46323. // * accepter-vpc-info.vpc-id - The ID of the accepter VPC.
  46324. //
  46325. // * expiration-time - The expiration date and time for the VPC peering connection.
  46326. //
  46327. // * requester-vpc-info.cidr-block - The IPv4 CIDR block of the requester's
  46328. // VPC.
  46329. //
  46330. // * requester-vpc-info.owner-id - The AWS account ID of the owner of the
  46331. // requester VPC.
  46332. //
  46333. // * requester-vpc-info.vpc-id - The ID of the requester VPC.
  46334. //
  46335. // * status-code - The status of the VPC peering connection (pending-acceptance
  46336. // | failed | expired | provisioning | active | deleting | deleted | rejected).
  46337. //
  46338. // * status-message - A message that provides more information about the
  46339. // status of the VPC peering connection, if applicable.
  46340. //
  46341. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  46342. // Use the tag key in the filter name and the tag value as the filter value.
  46343. // For example, to find all resources that have a tag with the key Owner
  46344. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  46345. // the filter value.
  46346. //
  46347. // * tag-key - The key of a tag assigned to the resource. Use this filter
  46348. // to find all resources assigned a tag with a specific key, regardless of
  46349. // the tag value.
  46350. //
  46351. // * vpc-peering-connection-id - The ID of the VPC peering connection.
  46352. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  46353. // One or more VPC peering connection IDs.
  46354. //
  46355. // Default: Describes all your VPC peering connections.
  46356. VpcPeeringConnectionIds []*string `locationName:"VpcPeeringConnectionId" locationNameList:"item" type:"list"`
  46357. }
  46358. // String returns the string representation
  46359. func (s DescribeVpcPeeringConnectionsInput) String() string {
  46360. return awsutil.Prettify(s)
  46361. }
  46362. // GoString returns the string representation
  46363. func (s DescribeVpcPeeringConnectionsInput) GoString() string {
  46364. return s.String()
  46365. }
  46366. // SetDryRun sets the DryRun field's value.
  46367. func (s *DescribeVpcPeeringConnectionsInput) SetDryRun(v bool) *DescribeVpcPeeringConnectionsInput {
  46368. s.DryRun = &v
  46369. return s
  46370. }
  46371. // SetFilters sets the Filters field's value.
  46372. func (s *DescribeVpcPeeringConnectionsInput) SetFilters(v []*Filter) *DescribeVpcPeeringConnectionsInput {
  46373. s.Filters = v
  46374. return s
  46375. }
  46376. // SetVpcPeeringConnectionIds sets the VpcPeeringConnectionIds field's value.
  46377. func (s *DescribeVpcPeeringConnectionsInput) SetVpcPeeringConnectionIds(v []*string) *DescribeVpcPeeringConnectionsInput {
  46378. s.VpcPeeringConnectionIds = v
  46379. return s
  46380. }
  46381. type DescribeVpcPeeringConnectionsOutput struct {
  46382. _ struct{} `type:"structure"`
  46383. // Information about the VPC peering connections.
  46384. VpcPeeringConnections []*VpcPeeringConnection `locationName:"vpcPeeringConnectionSet" locationNameList:"item" type:"list"`
  46385. }
  46386. // String returns the string representation
  46387. func (s DescribeVpcPeeringConnectionsOutput) String() string {
  46388. return awsutil.Prettify(s)
  46389. }
  46390. // GoString returns the string representation
  46391. func (s DescribeVpcPeeringConnectionsOutput) GoString() string {
  46392. return s.String()
  46393. }
  46394. // SetVpcPeeringConnections sets the VpcPeeringConnections field's value.
  46395. func (s *DescribeVpcPeeringConnectionsOutput) SetVpcPeeringConnections(v []*VpcPeeringConnection) *DescribeVpcPeeringConnectionsOutput {
  46396. s.VpcPeeringConnections = v
  46397. return s
  46398. }
  46399. type DescribeVpcsInput struct {
  46400. _ struct{} `type:"structure"`
  46401. // Checks whether you have the required permissions for the action, without
  46402. // actually making the request, and provides an error response. If you have
  46403. // the required permissions, the error response is DryRunOperation. Otherwise,
  46404. // it is UnauthorizedOperation.
  46405. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46406. // One or more filters.
  46407. //
  46408. // * cidr - The primary IPv4 CIDR block of the VPC. The CIDR block you specify
  46409. // must exactly match the VPC's CIDR block for information to be returned
  46410. // for the VPC. Must contain the slash followed by one or two digits (for
  46411. // example, /28).
  46412. //
  46413. // * cidr-block-association.cidr-block - An IPv4 CIDR block associated with
  46414. // the VPC.
  46415. //
  46416. // * cidr-block-association.association-id - The association ID for an IPv4
  46417. // CIDR block associated with the VPC.
  46418. //
  46419. // * cidr-block-association.state - The state of an IPv4 CIDR block associated
  46420. // with the VPC.
  46421. //
  46422. // * dhcp-options-id - The ID of a set of DHCP options.
  46423. //
  46424. // * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
  46425. // with the VPC.
  46426. //
  46427. // * ipv6-cidr-block-association.association-id - The association ID for
  46428. // an IPv6 CIDR block associated with the VPC.
  46429. //
  46430. // * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
  46431. // associated with the VPC.
  46432. //
  46433. // * isDefault - Indicates whether the VPC is the default VPC.
  46434. //
  46435. // * owner-id - The ID of the AWS account that owns the VPC.
  46436. //
  46437. // * state - The state of the VPC (pending | available).
  46438. //
  46439. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  46440. // Use the tag key in the filter name and the tag value as the filter value.
  46441. // For example, to find all resources that have a tag with the key Owner
  46442. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  46443. // the filter value.
  46444. //
  46445. // * tag-key - The key of a tag assigned to the resource. Use this filter
  46446. // to find all resources assigned a tag with a specific key, regardless of
  46447. // the tag value.
  46448. //
  46449. // * vpc-id - The ID of the VPC.
  46450. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  46451. // One or more VPC IDs.
  46452. //
  46453. // Default: Describes all your VPCs.
  46454. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
  46455. }
  46456. // String returns the string representation
  46457. func (s DescribeVpcsInput) String() string {
  46458. return awsutil.Prettify(s)
  46459. }
  46460. // GoString returns the string representation
  46461. func (s DescribeVpcsInput) GoString() string {
  46462. return s.String()
  46463. }
  46464. // SetDryRun sets the DryRun field's value.
  46465. func (s *DescribeVpcsInput) SetDryRun(v bool) *DescribeVpcsInput {
  46466. s.DryRun = &v
  46467. return s
  46468. }
  46469. // SetFilters sets the Filters field's value.
  46470. func (s *DescribeVpcsInput) SetFilters(v []*Filter) *DescribeVpcsInput {
  46471. s.Filters = v
  46472. return s
  46473. }
  46474. // SetVpcIds sets the VpcIds field's value.
  46475. func (s *DescribeVpcsInput) SetVpcIds(v []*string) *DescribeVpcsInput {
  46476. s.VpcIds = v
  46477. return s
  46478. }
  46479. type DescribeVpcsOutput struct {
  46480. _ struct{} `type:"structure"`
  46481. // Information about one or more VPCs.
  46482. Vpcs []*Vpc `locationName:"vpcSet" locationNameList:"item" type:"list"`
  46483. }
  46484. // String returns the string representation
  46485. func (s DescribeVpcsOutput) String() string {
  46486. return awsutil.Prettify(s)
  46487. }
  46488. // GoString returns the string representation
  46489. func (s DescribeVpcsOutput) GoString() string {
  46490. return s.String()
  46491. }
  46492. // SetVpcs sets the Vpcs field's value.
  46493. func (s *DescribeVpcsOutput) SetVpcs(v []*Vpc) *DescribeVpcsOutput {
  46494. s.Vpcs = v
  46495. return s
  46496. }
  46497. // Contains the parameters for DescribeVpnConnections.
  46498. type DescribeVpnConnectionsInput struct {
  46499. _ struct{} `type:"structure"`
  46500. // Checks whether you have the required permissions for the action, without
  46501. // actually making the request, and provides an error response. If you have
  46502. // the required permissions, the error response is DryRunOperation. Otherwise,
  46503. // it is UnauthorizedOperation.
  46504. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46505. // One or more filters.
  46506. //
  46507. // * customer-gateway-configuration - The configuration information for the
  46508. // customer gateway.
  46509. //
  46510. // * customer-gateway-id - The ID of a customer gateway associated with the
  46511. // VPN connection.
  46512. //
  46513. // * state - The state of the VPN connection (pending | available | deleting
  46514. // | deleted).
  46515. //
  46516. // * option.static-routes-only - Indicates whether the connection has static
  46517. // routes only. Used for devices that do not support Border Gateway Protocol
  46518. // (BGP).
  46519. //
  46520. // * route.destination-cidr-block - The destination CIDR block. This corresponds
  46521. // to the subnet used in a customer data center.
  46522. //
  46523. // * bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP
  46524. // device.
  46525. //
  46526. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  46527. // Use the tag key in the filter name and the tag value as the filter value.
  46528. // For example, to find all resources that have a tag with the key Owner
  46529. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  46530. // the filter value.
  46531. //
  46532. // * tag-key - The key of a tag assigned to the resource. Use this filter
  46533. // to find all resources assigned a tag with a specific key, regardless of
  46534. // the tag value.
  46535. //
  46536. // * type - The type of VPN connection. Currently the only supported type
  46537. // is ipsec.1.
  46538. //
  46539. // * vpn-connection-id - The ID of the VPN connection.
  46540. //
  46541. // * vpn-gateway-id - The ID of a virtual private gateway associated with
  46542. // the VPN connection.
  46543. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  46544. // One or more VPN connection IDs.
  46545. //
  46546. // Default: Describes your VPN connections.
  46547. VpnConnectionIds []*string `locationName:"VpnConnectionId" locationNameList:"VpnConnectionId" type:"list"`
  46548. }
  46549. // String returns the string representation
  46550. func (s DescribeVpnConnectionsInput) String() string {
  46551. return awsutil.Prettify(s)
  46552. }
  46553. // GoString returns the string representation
  46554. func (s DescribeVpnConnectionsInput) GoString() string {
  46555. return s.String()
  46556. }
  46557. // SetDryRun sets the DryRun field's value.
  46558. func (s *DescribeVpnConnectionsInput) SetDryRun(v bool) *DescribeVpnConnectionsInput {
  46559. s.DryRun = &v
  46560. return s
  46561. }
  46562. // SetFilters sets the Filters field's value.
  46563. func (s *DescribeVpnConnectionsInput) SetFilters(v []*Filter) *DescribeVpnConnectionsInput {
  46564. s.Filters = v
  46565. return s
  46566. }
  46567. // SetVpnConnectionIds sets the VpnConnectionIds field's value.
  46568. func (s *DescribeVpnConnectionsInput) SetVpnConnectionIds(v []*string) *DescribeVpnConnectionsInput {
  46569. s.VpnConnectionIds = v
  46570. return s
  46571. }
  46572. // Contains the output of DescribeVpnConnections.
  46573. type DescribeVpnConnectionsOutput struct {
  46574. _ struct{} `type:"structure"`
  46575. // Information about one or more VPN connections.
  46576. VpnConnections []*VpnConnection `locationName:"vpnConnectionSet" locationNameList:"item" type:"list"`
  46577. }
  46578. // String returns the string representation
  46579. func (s DescribeVpnConnectionsOutput) String() string {
  46580. return awsutil.Prettify(s)
  46581. }
  46582. // GoString returns the string representation
  46583. func (s DescribeVpnConnectionsOutput) GoString() string {
  46584. return s.String()
  46585. }
  46586. // SetVpnConnections sets the VpnConnections field's value.
  46587. func (s *DescribeVpnConnectionsOutput) SetVpnConnections(v []*VpnConnection) *DescribeVpnConnectionsOutput {
  46588. s.VpnConnections = v
  46589. return s
  46590. }
  46591. // Contains the parameters for DescribeVpnGateways.
  46592. type DescribeVpnGatewaysInput struct {
  46593. _ struct{} `type:"structure"`
  46594. // Checks whether you have the required permissions for the action, without
  46595. // actually making the request, and provides an error response. If you have
  46596. // the required permissions, the error response is DryRunOperation. Otherwise,
  46597. // it is UnauthorizedOperation.
  46598. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46599. // One or more filters.
  46600. //
  46601. // * amazon-side-asn - The Autonomous System Number (ASN) for the Amazon
  46602. // side of the gateway.
  46603. //
  46604. // * attachment.state - The current state of the attachment between the gateway
  46605. // and the VPC (attaching | attached | detaching | detached).
  46606. //
  46607. // * attachment.vpc-id - The ID of an attached VPC.
  46608. //
  46609. // * availability-zone - The Availability Zone for the virtual private gateway
  46610. // (if applicable).
  46611. //
  46612. // * state - The state of the virtual private gateway (pending | available
  46613. // | deleting | deleted).
  46614. //
  46615. // * tag:<key> - The key/value combination of a tag assigned to the resource.
  46616. // Use the tag key in the filter name and the tag value as the filter value.
  46617. // For example, to find all resources that have a tag with the key Owner
  46618. // and the value TeamA, specify tag:Owner for the filter name and TeamA for
  46619. // the filter value.
  46620. //
  46621. // * tag-key - The key of a tag assigned to the resource. Use this filter
  46622. // to find all resources assigned a tag with a specific key, regardless of
  46623. // the tag value.
  46624. //
  46625. // * type - The type of virtual private gateway. Currently the only supported
  46626. // type is ipsec.1.
  46627. //
  46628. // * vpn-gateway-id - The ID of the virtual private gateway.
  46629. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  46630. // One or more virtual private gateway IDs.
  46631. //
  46632. // Default: Describes all your virtual private gateways.
  46633. VpnGatewayIds []*string `locationName:"VpnGatewayId" locationNameList:"VpnGatewayId" type:"list"`
  46634. }
  46635. // String returns the string representation
  46636. func (s DescribeVpnGatewaysInput) String() string {
  46637. return awsutil.Prettify(s)
  46638. }
  46639. // GoString returns the string representation
  46640. func (s DescribeVpnGatewaysInput) GoString() string {
  46641. return s.String()
  46642. }
  46643. // SetDryRun sets the DryRun field's value.
  46644. func (s *DescribeVpnGatewaysInput) SetDryRun(v bool) *DescribeVpnGatewaysInput {
  46645. s.DryRun = &v
  46646. return s
  46647. }
  46648. // SetFilters sets the Filters field's value.
  46649. func (s *DescribeVpnGatewaysInput) SetFilters(v []*Filter) *DescribeVpnGatewaysInput {
  46650. s.Filters = v
  46651. return s
  46652. }
  46653. // SetVpnGatewayIds sets the VpnGatewayIds field's value.
  46654. func (s *DescribeVpnGatewaysInput) SetVpnGatewayIds(v []*string) *DescribeVpnGatewaysInput {
  46655. s.VpnGatewayIds = v
  46656. return s
  46657. }
  46658. // Contains the output of DescribeVpnGateways.
  46659. type DescribeVpnGatewaysOutput struct {
  46660. _ struct{} `type:"structure"`
  46661. // Information about one or more virtual private gateways.
  46662. VpnGateways []*VpnGateway `locationName:"vpnGatewaySet" locationNameList:"item" type:"list"`
  46663. }
  46664. // String returns the string representation
  46665. func (s DescribeVpnGatewaysOutput) String() string {
  46666. return awsutil.Prettify(s)
  46667. }
  46668. // GoString returns the string representation
  46669. func (s DescribeVpnGatewaysOutput) GoString() string {
  46670. return s.String()
  46671. }
  46672. // SetVpnGateways sets the VpnGateways field's value.
  46673. func (s *DescribeVpnGatewaysOutput) SetVpnGateways(v []*VpnGateway) *DescribeVpnGatewaysOutput {
  46674. s.VpnGateways = v
  46675. return s
  46676. }
  46677. type DetachClassicLinkVpcInput struct {
  46678. _ struct{} `type:"structure"`
  46679. // Checks whether you have the required permissions for the action, without
  46680. // actually making the request, and provides an error response. If you have
  46681. // the required permissions, the error response is DryRunOperation. Otherwise,
  46682. // it is UnauthorizedOperation.
  46683. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46684. // The ID of the instance to unlink from the VPC.
  46685. //
  46686. // InstanceId is a required field
  46687. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  46688. // The ID of the VPC to which the instance is linked.
  46689. //
  46690. // VpcId is a required field
  46691. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  46692. }
  46693. // String returns the string representation
  46694. func (s DetachClassicLinkVpcInput) String() string {
  46695. return awsutil.Prettify(s)
  46696. }
  46697. // GoString returns the string representation
  46698. func (s DetachClassicLinkVpcInput) GoString() string {
  46699. return s.String()
  46700. }
  46701. // Validate inspects the fields of the type to determine if they are valid.
  46702. func (s *DetachClassicLinkVpcInput) Validate() error {
  46703. invalidParams := request.ErrInvalidParams{Context: "DetachClassicLinkVpcInput"}
  46704. if s.InstanceId == nil {
  46705. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  46706. }
  46707. if s.VpcId == nil {
  46708. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  46709. }
  46710. if invalidParams.Len() > 0 {
  46711. return invalidParams
  46712. }
  46713. return nil
  46714. }
  46715. // SetDryRun sets the DryRun field's value.
  46716. func (s *DetachClassicLinkVpcInput) SetDryRun(v bool) *DetachClassicLinkVpcInput {
  46717. s.DryRun = &v
  46718. return s
  46719. }
  46720. // SetInstanceId sets the InstanceId field's value.
  46721. func (s *DetachClassicLinkVpcInput) SetInstanceId(v string) *DetachClassicLinkVpcInput {
  46722. s.InstanceId = &v
  46723. return s
  46724. }
  46725. // SetVpcId sets the VpcId field's value.
  46726. func (s *DetachClassicLinkVpcInput) SetVpcId(v string) *DetachClassicLinkVpcInput {
  46727. s.VpcId = &v
  46728. return s
  46729. }
  46730. type DetachClassicLinkVpcOutput struct {
  46731. _ struct{} `type:"structure"`
  46732. // Returns true if the request succeeds; otherwise, it returns an error.
  46733. Return *bool `locationName:"return" type:"boolean"`
  46734. }
  46735. // String returns the string representation
  46736. func (s DetachClassicLinkVpcOutput) String() string {
  46737. return awsutil.Prettify(s)
  46738. }
  46739. // GoString returns the string representation
  46740. func (s DetachClassicLinkVpcOutput) GoString() string {
  46741. return s.String()
  46742. }
  46743. // SetReturn sets the Return field's value.
  46744. func (s *DetachClassicLinkVpcOutput) SetReturn(v bool) *DetachClassicLinkVpcOutput {
  46745. s.Return = &v
  46746. return s
  46747. }
  46748. type DetachInternetGatewayInput struct {
  46749. _ struct{} `type:"structure"`
  46750. // Checks whether you have the required permissions for the action, without
  46751. // actually making the request, and provides an error response. If you have
  46752. // the required permissions, the error response is DryRunOperation. Otherwise,
  46753. // it is UnauthorizedOperation.
  46754. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46755. // The ID of the internet gateway.
  46756. //
  46757. // InternetGatewayId is a required field
  46758. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  46759. // The ID of the VPC.
  46760. //
  46761. // VpcId is a required field
  46762. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  46763. }
  46764. // String returns the string representation
  46765. func (s DetachInternetGatewayInput) String() string {
  46766. return awsutil.Prettify(s)
  46767. }
  46768. // GoString returns the string representation
  46769. func (s DetachInternetGatewayInput) GoString() string {
  46770. return s.String()
  46771. }
  46772. // Validate inspects the fields of the type to determine if they are valid.
  46773. func (s *DetachInternetGatewayInput) Validate() error {
  46774. invalidParams := request.ErrInvalidParams{Context: "DetachInternetGatewayInput"}
  46775. if s.InternetGatewayId == nil {
  46776. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  46777. }
  46778. if s.VpcId == nil {
  46779. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  46780. }
  46781. if invalidParams.Len() > 0 {
  46782. return invalidParams
  46783. }
  46784. return nil
  46785. }
  46786. // SetDryRun sets the DryRun field's value.
  46787. func (s *DetachInternetGatewayInput) SetDryRun(v bool) *DetachInternetGatewayInput {
  46788. s.DryRun = &v
  46789. return s
  46790. }
  46791. // SetInternetGatewayId sets the InternetGatewayId field's value.
  46792. func (s *DetachInternetGatewayInput) SetInternetGatewayId(v string) *DetachInternetGatewayInput {
  46793. s.InternetGatewayId = &v
  46794. return s
  46795. }
  46796. // SetVpcId sets the VpcId field's value.
  46797. func (s *DetachInternetGatewayInput) SetVpcId(v string) *DetachInternetGatewayInput {
  46798. s.VpcId = &v
  46799. return s
  46800. }
  46801. type DetachInternetGatewayOutput struct {
  46802. _ struct{} `type:"structure"`
  46803. }
  46804. // String returns the string representation
  46805. func (s DetachInternetGatewayOutput) String() string {
  46806. return awsutil.Prettify(s)
  46807. }
  46808. // GoString returns the string representation
  46809. func (s DetachInternetGatewayOutput) GoString() string {
  46810. return s.String()
  46811. }
  46812. // Contains the parameters for DetachNetworkInterface.
  46813. type DetachNetworkInterfaceInput struct {
  46814. _ struct{} `type:"structure"`
  46815. // The ID of the attachment.
  46816. //
  46817. // AttachmentId is a required field
  46818. AttachmentId *string `locationName:"attachmentId" type:"string" required:"true"`
  46819. // Checks whether you have the required permissions for the action, without
  46820. // actually making the request, and provides an error response. If you have
  46821. // the required permissions, the error response is DryRunOperation. Otherwise,
  46822. // it is UnauthorizedOperation.
  46823. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46824. // Specifies whether to force a detachment.
  46825. Force *bool `locationName:"force" type:"boolean"`
  46826. }
  46827. // String returns the string representation
  46828. func (s DetachNetworkInterfaceInput) String() string {
  46829. return awsutil.Prettify(s)
  46830. }
  46831. // GoString returns the string representation
  46832. func (s DetachNetworkInterfaceInput) GoString() string {
  46833. return s.String()
  46834. }
  46835. // Validate inspects the fields of the type to determine if they are valid.
  46836. func (s *DetachNetworkInterfaceInput) Validate() error {
  46837. invalidParams := request.ErrInvalidParams{Context: "DetachNetworkInterfaceInput"}
  46838. if s.AttachmentId == nil {
  46839. invalidParams.Add(request.NewErrParamRequired("AttachmentId"))
  46840. }
  46841. if invalidParams.Len() > 0 {
  46842. return invalidParams
  46843. }
  46844. return nil
  46845. }
  46846. // SetAttachmentId sets the AttachmentId field's value.
  46847. func (s *DetachNetworkInterfaceInput) SetAttachmentId(v string) *DetachNetworkInterfaceInput {
  46848. s.AttachmentId = &v
  46849. return s
  46850. }
  46851. // SetDryRun sets the DryRun field's value.
  46852. func (s *DetachNetworkInterfaceInput) SetDryRun(v bool) *DetachNetworkInterfaceInput {
  46853. s.DryRun = &v
  46854. return s
  46855. }
  46856. // SetForce sets the Force field's value.
  46857. func (s *DetachNetworkInterfaceInput) SetForce(v bool) *DetachNetworkInterfaceInput {
  46858. s.Force = &v
  46859. return s
  46860. }
  46861. type DetachNetworkInterfaceOutput struct {
  46862. _ struct{} `type:"structure"`
  46863. }
  46864. // String returns the string representation
  46865. func (s DetachNetworkInterfaceOutput) String() string {
  46866. return awsutil.Prettify(s)
  46867. }
  46868. // GoString returns the string representation
  46869. func (s DetachNetworkInterfaceOutput) GoString() string {
  46870. return s.String()
  46871. }
  46872. // Contains the parameters for DetachVolume.
  46873. type DetachVolumeInput struct {
  46874. _ struct{} `type:"structure"`
  46875. // The device name.
  46876. Device *string `type:"string"`
  46877. // Checks whether you have the required permissions for the action, without
  46878. // actually making the request, and provides an error response. If you have
  46879. // the required permissions, the error response is DryRunOperation. Otherwise,
  46880. // it is UnauthorizedOperation.
  46881. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46882. // Forces detachment if the previous detachment attempt did not occur cleanly
  46883. // (for example, logging into an instance, unmounting the volume, and detaching
  46884. // normally). This option can lead to data loss or a corrupted file system.
  46885. // Use this option only as a last resort to detach a volume from a failed instance.
  46886. // The instance won't have an opportunity to flush file system caches or file
  46887. // system metadata. If you use this option, you must perform file system check
  46888. // and repair procedures.
  46889. Force *bool `type:"boolean"`
  46890. // The ID of the instance.
  46891. InstanceId *string `type:"string"`
  46892. // The ID of the volume.
  46893. //
  46894. // VolumeId is a required field
  46895. VolumeId *string `type:"string" required:"true"`
  46896. }
  46897. // String returns the string representation
  46898. func (s DetachVolumeInput) String() string {
  46899. return awsutil.Prettify(s)
  46900. }
  46901. // GoString returns the string representation
  46902. func (s DetachVolumeInput) GoString() string {
  46903. return s.String()
  46904. }
  46905. // Validate inspects the fields of the type to determine if they are valid.
  46906. func (s *DetachVolumeInput) Validate() error {
  46907. invalidParams := request.ErrInvalidParams{Context: "DetachVolumeInput"}
  46908. if s.VolumeId == nil {
  46909. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  46910. }
  46911. if invalidParams.Len() > 0 {
  46912. return invalidParams
  46913. }
  46914. return nil
  46915. }
  46916. // SetDevice sets the Device field's value.
  46917. func (s *DetachVolumeInput) SetDevice(v string) *DetachVolumeInput {
  46918. s.Device = &v
  46919. return s
  46920. }
  46921. // SetDryRun sets the DryRun field's value.
  46922. func (s *DetachVolumeInput) SetDryRun(v bool) *DetachVolumeInput {
  46923. s.DryRun = &v
  46924. return s
  46925. }
  46926. // SetForce sets the Force field's value.
  46927. func (s *DetachVolumeInput) SetForce(v bool) *DetachVolumeInput {
  46928. s.Force = &v
  46929. return s
  46930. }
  46931. // SetInstanceId sets the InstanceId field's value.
  46932. func (s *DetachVolumeInput) SetInstanceId(v string) *DetachVolumeInput {
  46933. s.InstanceId = &v
  46934. return s
  46935. }
  46936. // SetVolumeId sets the VolumeId field's value.
  46937. func (s *DetachVolumeInput) SetVolumeId(v string) *DetachVolumeInput {
  46938. s.VolumeId = &v
  46939. return s
  46940. }
  46941. // Contains the parameters for DetachVpnGateway.
  46942. type DetachVpnGatewayInput struct {
  46943. _ struct{} `type:"structure"`
  46944. // Checks whether you have the required permissions for the action, without
  46945. // actually making the request, and provides an error response. If you have
  46946. // the required permissions, the error response is DryRunOperation. Otherwise,
  46947. // it is UnauthorizedOperation.
  46948. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46949. // The ID of the VPC.
  46950. //
  46951. // VpcId is a required field
  46952. VpcId *string `type:"string" required:"true"`
  46953. // The ID of the virtual private gateway.
  46954. //
  46955. // VpnGatewayId is a required field
  46956. VpnGatewayId *string `type:"string" required:"true"`
  46957. }
  46958. // String returns the string representation
  46959. func (s DetachVpnGatewayInput) String() string {
  46960. return awsutil.Prettify(s)
  46961. }
  46962. // GoString returns the string representation
  46963. func (s DetachVpnGatewayInput) GoString() string {
  46964. return s.String()
  46965. }
  46966. // Validate inspects the fields of the type to determine if they are valid.
  46967. func (s *DetachVpnGatewayInput) Validate() error {
  46968. invalidParams := request.ErrInvalidParams{Context: "DetachVpnGatewayInput"}
  46969. if s.VpcId == nil {
  46970. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  46971. }
  46972. if s.VpnGatewayId == nil {
  46973. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  46974. }
  46975. if invalidParams.Len() > 0 {
  46976. return invalidParams
  46977. }
  46978. return nil
  46979. }
  46980. // SetDryRun sets the DryRun field's value.
  46981. func (s *DetachVpnGatewayInput) SetDryRun(v bool) *DetachVpnGatewayInput {
  46982. s.DryRun = &v
  46983. return s
  46984. }
  46985. // SetVpcId sets the VpcId field's value.
  46986. func (s *DetachVpnGatewayInput) SetVpcId(v string) *DetachVpnGatewayInput {
  46987. s.VpcId = &v
  46988. return s
  46989. }
  46990. // SetVpnGatewayId sets the VpnGatewayId field's value.
  46991. func (s *DetachVpnGatewayInput) SetVpnGatewayId(v string) *DetachVpnGatewayInput {
  46992. s.VpnGatewayId = &v
  46993. return s
  46994. }
  46995. type DetachVpnGatewayOutput struct {
  46996. _ struct{} `type:"structure"`
  46997. }
  46998. // String returns the string representation
  46999. func (s DetachVpnGatewayOutput) String() string {
  47000. return awsutil.Prettify(s)
  47001. }
  47002. // GoString returns the string representation
  47003. func (s DetachVpnGatewayOutput) GoString() string {
  47004. return s.String()
  47005. }
  47006. // Describes a DHCP configuration option.
  47007. type DhcpConfiguration struct {
  47008. _ struct{} `type:"structure"`
  47009. // The name of a DHCP option.
  47010. Key *string `locationName:"key" type:"string"`
  47011. // One or more values for the DHCP option.
  47012. Values []*AttributeValue `locationName:"valueSet" locationNameList:"item" type:"list"`
  47013. }
  47014. // String returns the string representation
  47015. func (s DhcpConfiguration) String() string {
  47016. return awsutil.Prettify(s)
  47017. }
  47018. // GoString returns the string representation
  47019. func (s DhcpConfiguration) GoString() string {
  47020. return s.String()
  47021. }
  47022. // SetKey sets the Key field's value.
  47023. func (s *DhcpConfiguration) SetKey(v string) *DhcpConfiguration {
  47024. s.Key = &v
  47025. return s
  47026. }
  47027. // SetValues sets the Values field's value.
  47028. func (s *DhcpConfiguration) SetValues(v []*AttributeValue) *DhcpConfiguration {
  47029. s.Values = v
  47030. return s
  47031. }
  47032. // Describes a set of DHCP options.
  47033. type DhcpOptions struct {
  47034. _ struct{} `type:"structure"`
  47035. // One or more DHCP options in the set.
  47036. DhcpConfigurations []*DhcpConfiguration `locationName:"dhcpConfigurationSet" locationNameList:"item" type:"list"`
  47037. // The ID of the set of DHCP options.
  47038. DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`
  47039. // The ID of the AWS account that owns the DHCP options set.
  47040. OwnerId *string `locationName:"ownerId" type:"string"`
  47041. // Any tags assigned to the DHCP options set.
  47042. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  47043. }
  47044. // String returns the string representation
  47045. func (s DhcpOptions) String() string {
  47046. return awsutil.Prettify(s)
  47047. }
  47048. // GoString returns the string representation
  47049. func (s DhcpOptions) GoString() string {
  47050. return s.String()
  47051. }
  47052. // SetDhcpConfigurations sets the DhcpConfigurations field's value.
  47053. func (s *DhcpOptions) SetDhcpConfigurations(v []*DhcpConfiguration) *DhcpOptions {
  47054. s.DhcpConfigurations = v
  47055. return s
  47056. }
  47057. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  47058. func (s *DhcpOptions) SetDhcpOptionsId(v string) *DhcpOptions {
  47059. s.DhcpOptionsId = &v
  47060. return s
  47061. }
  47062. // SetOwnerId sets the OwnerId field's value.
  47063. func (s *DhcpOptions) SetOwnerId(v string) *DhcpOptions {
  47064. s.OwnerId = &v
  47065. return s
  47066. }
  47067. // SetTags sets the Tags field's value.
  47068. func (s *DhcpOptions) SetTags(v []*Tag) *DhcpOptions {
  47069. s.Tags = v
  47070. return s
  47071. }
  47072. // Describes an Active Directory.
  47073. type DirectoryServiceAuthentication struct {
  47074. _ struct{} `type:"structure"`
  47075. // The ID of the Active Directory used for authentication.
  47076. DirectoryId *string `locationName:"directoryId" type:"string"`
  47077. }
  47078. // String returns the string representation
  47079. func (s DirectoryServiceAuthentication) String() string {
  47080. return awsutil.Prettify(s)
  47081. }
  47082. // GoString returns the string representation
  47083. func (s DirectoryServiceAuthentication) GoString() string {
  47084. return s.String()
  47085. }
  47086. // SetDirectoryId sets the DirectoryId field's value.
  47087. func (s *DirectoryServiceAuthentication) SetDirectoryId(v string) *DirectoryServiceAuthentication {
  47088. s.DirectoryId = &v
  47089. return s
  47090. }
  47091. // Describes the Active Directory to be used for client authentication.
  47092. type DirectoryServiceAuthenticationRequest struct {
  47093. _ struct{} `type:"structure"`
  47094. // The ID of the Active Directory to be used for authentication.
  47095. DirectoryId *string `type:"string"`
  47096. }
  47097. // String returns the string representation
  47098. func (s DirectoryServiceAuthenticationRequest) String() string {
  47099. return awsutil.Prettify(s)
  47100. }
  47101. // GoString returns the string representation
  47102. func (s DirectoryServiceAuthenticationRequest) GoString() string {
  47103. return s.String()
  47104. }
  47105. // SetDirectoryId sets the DirectoryId field's value.
  47106. func (s *DirectoryServiceAuthenticationRequest) SetDirectoryId(v string) *DirectoryServiceAuthenticationRequest {
  47107. s.DirectoryId = &v
  47108. return s
  47109. }
  47110. type DisableTransitGatewayRouteTablePropagationInput struct {
  47111. _ struct{} `type:"structure"`
  47112. // Checks whether you have the required permissions for the action, without
  47113. // actually making the request, and provides an error response. If you have
  47114. // the required permissions, the error response is DryRunOperation. Otherwise,
  47115. // it is UnauthorizedOperation.
  47116. DryRun *bool `type:"boolean"`
  47117. // The ID of the attachment.
  47118. //
  47119. // TransitGatewayAttachmentId is a required field
  47120. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  47121. // The ID of the propagation route table.
  47122. //
  47123. // TransitGatewayRouteTableId is a required field
  47124. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  47125. }
  47126. // String returns the string representation
  47127. func (s DisableTransitGatewayRouteTablePropagationInput) String() string {
  47128. return awsutil.Prettify(s)
  47129. }
  47130. // GoString returns the string representation
  47131. func (s DisableTransitGatewayRouteTablePropagationInput) GoString() string {
  47132. return s.String()
  47133. }
  47134. // Validate inspects the fields of the type to determine if they are valid.
  47135. func (s *DisableTransitGatewayRouteTablePropagationInput) Validate() error {
  47136. invalidParams := request.ErrInvalidParams{Context: "DisableTransitGatewayRouteTablePropagationInput"}
  47137. if s.TransitGatewayAttachmentId == nil {
  47138. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  47139. }
  47140. if s.TransitGatewayRouteTableId == nil {
  47141. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  47142. }
  47143. if invalidParams.Len() > 0 {
  47144. return invalidParams
  47145. }
  47146. return nil
  47147. }
  47148. // SetDryRun sets the DryRun field's value.
  47149. func (s *DisableTransitGatewayRouteTablePropagationInput) SetDryRun(v bool) *DisableTransitGatewayRouteTablePropagationInput {
  47150. s.DryRun = &v
  47151. return s
  47152. }
  47153. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  47154. func (s *DisableTransitGatewayRouteTablePropagationInput) SetTransitGatewayAttachmentId(v string) *DisableTransitGatewayRouteTablePropagationInput {
  47155. s.TransitGatewayAttachmentId = &v
  47156. return s
  47157. }
  47158. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  47159. func (s *DisableTransitGatewayRouteTablePropagationInput) SetTransitGatewayRouteTableId(v string) *DisableTransitGatewayRouteTablePropagationInput {
  47160. s.TransitGatewayRouteTableId = &v
  47161. return s
  47162. }
  47163. type DisableTransitGatewayRouteTablePropagationOutput struct {
  47164. _ struct{} `type:"structure"`
  47165. // Information about route propagation.
  47166. Propagation *TransitGatewayPropagation `locationName:"propagation" type:"structure"`
  47167. }
  47168. // String returns the string representation
  47169. func (s DisableTransitGatewayRouteTablePropagationOutput) String() string {
  47170. return awsutil.Prettify(s)
  47171. }
  47172. // GoString returns the string representation
  47173. func (s DisableTransitGatewayRouteTablePropagationOutput) GoString() string {
  47174. return s.String()
  47175. }
  47176. // SetPropagation sets the Propagation field's value.
  47177. func (s *DisableTransitGatewayRouteTablePropagationOutput) SetPropagation(v *TransitGatewayPropagation) *DisableTransitGatewayRouteTablePropagationOutput {
  47178. s.Propagation = v
  47179. return s
  47180. }
  47181. // Contains the parameters for DisableVgwRoutePropagation.
  47182. type DisableVgwRoutePropagationInput struct {
  47183. _ struct{} `type:"structure"`
  47184. // The ID of the virtual private gateway.
  47185. //
  47186. // GatewayId is a required field
  47187. GatewayId *string `type:"string" required:"true"`
  47188. // The ID of the route table.
  47189. //
  47190. // RouteTableId is a required field
  47191. RouteTableId *string `type:"string" required:"true"`
  47192. }
  47193. // String returns the string representation
  47194. func (s DisableVgwRoutePropagationInput) String() string {
  47195. return awsutil.Prettify(s)
  47196. }
  47197. // GoString returns the string representation
  47198. func (s DisableVgwRoutePropagationInput) GoString() string {
  47199. return s.String()
  47200. }
  47201. // Validate inspects the fields of the type to determine if they are valid.
  47202. func (s *DisableVgwRoutePropagationInput) Validate() error {
  47203. invalidParams := request.ErrInvalidParams{Context: "DisableVgwRoutePropagationInput"}
  47204. if s.GatewayId == nil {
  47205. invalidParams.Add(request.NewErrParamRequired("GatewayId"))
  47206. }
  47207. if s.RouteTableId == nil {
  47208. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  47209. }
  47210. if invalidParams.Len() > 0 {
  47211. return invalidParams
  47212. }
  47213. return nil
  47214. }
  47215. // SetGatewayId sets the GatewayId field's value.
  47216. func (s *DisableVgwRoutePropagationInput) SetGatewayId(v string) *DisableVgwRoutePropagationInput {
  47217. s.GatewayId = &v
  47218. return s
  47219. }
  47220. // SetRouteTableId sets the RouteTableId field's value.
  47221. func (s *DisableVgwRoutePropagationInput) SetRouteTableId(v string) *DisableVgwRoutePropagationInput {
  47222. s.RouteTableId = &v
  47223. return s
  47224. }
  47225. type DisableVgwRoutePropagationOutput struct {
  47226. _ struct{} `type:"structure"`
  47227. }
  47228. // String returns the string representation
  47229. func (s DisableVgwRoutePropagationOutput) String() string {
  47230. return awsutil.Prettify(s)
  47231. }
  47232. // GoString returns the string representation
  47233. func (s DisableVgwRoutePropagationOutput) GoString() string {
  47234. return s.String()
  47235. }
  47236. type DisableVpcClassicLinkDnsSupportInput struct {
  47237. _ struct{} `type:"structure"`
  47238. // The ID of the VPC.
  47239. VpcId *string `type:"string"`
  47240. }
  47241. // String returns the string representation
  47242. func (s DisableVpcClassicLinkDnsSupportInput) String() string {
  47243. return awsutil.Prettify(s)
  47244. }
  47245. // GoString returns the string representation
  47246. func (s DisableVpcClassicLinkDnsSupportInput) GoString() string {
  47247. return s.String()
  47248. }
  47249. // SetVpcId sets the VpcId field's value.
  47250. func (s *DisableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *DisableVpcClassicLinkDnsSupportInput {
  47251. s.VpcId = &v
  47252. return s
  47253. }
  47254. type DisableVpcClassicLinkDnsSupportOutput struct {
  47255. _ struct{} `type:"structure"`
  47256. // Returns true if the request succeeds; otherwise, it returns an error.
  47257. Return *bool `locationName:"return" type:"boolean"`
  47258. }
  47259. // String returns the string representation
  47260. func (s DisableVpcClassicLinkDnsSupportOutput) String() string {
  47261. return awsutil.Prettify(s)
  47262. }
  47263. // GoString returns the string representation
  47264. func (s DisableVpcClassicLinkDnsSupportOutput) GoString() string {
  47265. return s.String()
  47266. }
  47267. // SetReturn sets the Return field's value.
  47268. func (s *DisableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *DisableVpcClassicLinkDnsSupportOutput {
  47269. s.Return = &v
  47270. return s
  47271. }
  47272. type DisableVpcClassicLinkInput struct {
  47273. _ struct{} `type:"structure"`
  47274. // Checks whether you have the required permissions for the action, without
  47275. // actually making the request, and provides an error response. If you have
  47276. // the required permissions, the error response is DryRunOperation. Otherwise,
  47277. // it is UnauthorizedOperation.
  47278. DryRun *bool `locationName:"dryRun" type:"boolean"`
  47279. // The ID of the VPC.
  47280. //
  47281. // VpcId is a required field
  47282. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  47283. }
  47284. // String returns the string representation
  47285. func (s DisableVpcClassicLinkInput) String() string {
  47286. return awsutil.Prettify(s)
  47287. }
  47288. // GoString returns the string representation
  47289. func (s DisableVpcClassicLinkInput) GoString() string {
  47290. return s.String()
  47291. }
  47292. // Validate inspects the fields of the type to determine if they are valid.
  47293. func (s *DisableVpcClassicLinkInput) Validate() error {
  47294. invalidParams := request.ErrInvalidParams{Context: "DisableVpcClassicLinkInput"}
  47295. if s.VpcId == nil {
  47296. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  47297. }
  47298. if invalidParams.Len() > 0 {
  47299. return invalidParams
  47300. }
  47301. return nil
  47302. }
  47303. // SetDryRun sets the DryRun field's value.
  47304. func (s *DisableVpcClassicLinkInput) SetDryRun(v bool) *DisableVpcClassicLinkInput {
  47305. s.DryRun = &v
  47306. return s
  47307. }
  47308. // SetVpcId sets the VpcId field's value.
  47309. func (s *DisableVpcClassicLinkInput) SetVpcId(v string) *DisableVpcClassicLinkInput {
  47310. s.VpcId = &v
  47311. return s
  47312. }
  47313. type DisableVpcClassicLinkOutput struct {
  47314. _ struct{} `type:"structure"`
  47315. // Returns true if the request succeeds; otherwise, it returns an error.
  47316. Return *bool `locationName:"return" type:"boolean"`
  47317. }
  47318. // String returns the string representation
  47319. func (s DisableVpcClassicLinkOutput) String() string {
  47320. return awsutil.Prettify(s)
  47321. }
  47322. // GoString returns the string representation
  47323. func (s DisableVpcClassicLinkOutput) GoString() string {
  47324. return s.String()
  47325. }
  47326. // SetReturn sets the Return field's value.
  47327. func (s *DisableVpcClassicLinkOutput) SetReturn(v bool) *DisableVpcClassicLinkOutput {
  47328. s.Return = &v
  47329. return s
  47330. }
  47331. type DisassociateAddressInput struct {
  47332. _ struct{} `type:"structure"`
  47333. // [EC2-VPC] The association ID. Required for EC2-VPC.
  47334. AssociationId *string `type:"string"`
  47335. // Checks whether you have the required permissions for the action, without
  47336. // actually making the request, and provides an error response. If you have
  47337. // the required permissions, the error response is DryRunOperation. Otherwise,
  47338. // it is UnauthorizedOperation.
  47339. DryRun *bool `locationName:"dryRun" type:"boolean"`
  47340. // [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
  47341. PublicIp *string `type:"string"`
  47342. }
  47343. // String returns the string representation
  47344. func (s DisassociateAddressInput) String() string {
  47345. return awsutil.Prettify(s)
  47346. }
  47347. // GoString returns the string representation
  47348. func (s DisassociateAddressInput) GoString() string {
  47349. return s.String()
  47350. }
  47351. // SetAssociationId sets the AssociationId field's value.
  47352. func (s *DisassociateAddressInput) SetAssociationId(v string) *DisassociateAddressInput {
  47353. s.AssociationId = &v
  47354. return s
  47355. }
  47356. // SetDryRun sets the DryRun field's value.
  47357. func (s *DisassociateAddressInput) SetDryRun(v bool) *DisassociateAddressInput {
  47358. s.DryRun = &v
  47359. return s
  47360. }
  47361. // SetPublicIp sets the PublicIp field's value.
  47362. func (s *DisassociateAddressInput) SetPublicIp(v string) *DisassociateAddressInput {
  47363. s.PublicIp = &v
  47364. return s
  47365. }
  47366. type DisassociateAddressOutput struct {
  47367. _ struct{} `type:"structure"`
  47368. }
  47369. // String returns the string representation
  47370. func (s DisassociateAddressOutput) String() string {
  47371. return awsutil.Prettify(s)
  47372. }
  47373. // GoString returns the string representation
  47374. func (s DisassociateAddressOutput) GoString() string {
  47375. return s.String()
  47376. }
  47377. type DisassociateClientVpnTargetNetworkInput struct {
  47378. _ struct{} `type:"structure"`
  47379. // The ID of the target network association.
  47380. //
  47381. // AssociationId is a required field
  47382. AssociationId *string `type:"string" required:"true"`
  47383. // The ID of the Client VPN endpoint from which to disassociate the target network.
  47384. //
  47385. // ClientVpnEndpointId is a required field
  47386. ClientVpnEndpointId *string `type:"string" required:"true"`
  47387. // Checks whether you have the required permissions for the action, without
  47388. // actually making the request, and provides an error response. If you have
  47389. // the required permissions, the error response is DryRunOperation. Otherwise,
  47390. // it is UnauthorizedOperation.
  47391. DryRun *bool `type:"boolean"`
  47392. }
  47393. // String returns the string representation
  47394. func (s DisassociateClientVpnTargetNetworkInput) String() string {
  47395. return awsutil.Prettify(s)
  47396. }
  47397. // GoString returns the string representation
  47398. func (s DisassociateClientVpnTargetNetworkInput) GoString() string {
  47399. return s.String()
  47400. }
  47401. // Validate inspects the fields of the type to determine if they are valid.
  47402. func (s *DisassociateClientVpnTargetNetworkInput) Validate() error {
  47403. invalidParams := request.ErrInvalidParams{Context: "DisassociateClientVpnTargetNetworkInput"}
  47404. if s.AssociationId == nil {
  47405. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  47406. }
  47407. if s.ClientVpnEndpointId == nil {
  47408. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  47409. }
  47410. if invalidParams.Len() > 0 {
  47411. return invalidParams
  47412. }
  47413. return nil
  47414. }
  47415. // SetAssociationId sets the AssociationId field's value.
  47416. func (s *DisassociateClientVpnTargetNetworkInput) SetAssociationId(v string) *DisassociateClientVpnTargetNetworkInput {
  47417. s.AssociationId = &v
  47418. return s
  47419. }
  47420. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  47421. func (s *DisassociateClientVpnTargetNetworkInput) SetClientVpnEndpointId(v string) *DisassociateClientVpnTargetNetworkInput {
  47422. s.ClientVpnEndpointId = &v
  47423. return s
  47424. }
  47425. // SetDryRun sets the DryRun field's value.
  47426. func (s *DisassociateClientVpnTargetNetworkInput) SetDryRun(v bool) *DisassociateClientVpnTargetNetworkInput {
  47427. s.DryRun = &v
  47428. return s
  47429. }
  47430. type DisassociateClientVpnTargetNetworkOutput struct {
  47431. _ struct{} `type:"structure"`
  47432. // The ID of the target network association.
  47433. AssociationId *string `locationName:"associationId" type:"string"`
  47434. // The current state of the target network association.
  47435. Status *AssociationStatus `locationName:"status" type:"structure"`
  47436. }
  47437. // String returns the string representation
  47438. func (s DisassociateClientVpnTargetNetworkOutput) String() string {
  47439. return awsutil.Prettify(s)
  47440. }
  47441. // GoString returns the string representation
  47442. func (s DisassociateClientVpnTargetNetworkOutput) GoString() string {
  47443. return s.String()
  47444. }
  47445. // SetAssociationId sets the AssociationId field's value.
  47446. func (s *DisassociateClientVpnTargetNetworkOutput) SetAssociationId(v string) *DisassociateClientVpnTargetNetworkOutput {
  47447. s.AssociationId = &v
  47448. return s
  47449. }
  47450. // SetStatus sets the Status field's value.
  47451. func (s *DisassociateClientVpnTargetNetworkOutput) SetStatus(v *AssociationStatus) *DisassociateClientVpnTargetNetworkOutput {
  47452. s.Status = v
  47453. return s
  47454. }
  47455. type DisassociateIamInstanceProfileInput struct {
  47456. _ struct{} `type:"structure"`
  47457. // The ID of the IAM instance profile association.
  47458. //
  47459. // AssociationId is a required field
  47460. AssociationId *string `type:"string" required:"true"`
  47461. }
  47462. // String returns the string representation
  47463. func (s DisassociateIamInstanceProfileInput) String() string {
  47464. return awsutil.Prettify(s)
  47465. }
  47466. // GoString returns the string representation
  47467. func (s DisassociateIamInstanceProfileInput) GoString() string {
  47468. return s.String()
  47469. }
  47470. // Validate inspects the fields of the type to determine if they are valid.
  47471. func (s *DisassociateIamInstanceProfileInput) Validate() error {
  47472. invalidParams := request.ErrInvalidParams{Context: "DisassociateIamInstanceProfileInput"}
  47473. if s.AssociationId == nil {
  47474. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  47475. }
  47476. if invalidParams.Len() > 0 {
  47477. return invalidParams
  47478. }
  47479. return nil
  47480. }
  47481. // SetAssociationId sets the AssociationId field's value.
  47482. func (s *DisassociateIamInstanceProfileInput) SetAssociationId(v string) *DisassociateIamInstanceProfileInput {
  47483. s.AssociationId = &v
  47484. return s
  47485. }
  47486. type DisassociateIamInstanceProfileOutput struct {
  47487. _ struct{} `type:"structure"`
  47488. // Information about the IAM instance profile association.
  47489. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  47490. }
  47491. // String returns the string representation
  47492. func (s DisassociateIamInstanceProfileOutput) String() string {
  47493. return awsutil.Prettify(s)
  47494. }
  47495. // GoString returns the string representation
  47496. func (s DisassociateIamInstanceProfileOutput) GoString() string {
  47497. return s.String()
  47498. }
  47499. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  47500. func (s *DisassociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *DisassociateIamInstanceProfileOutput {
  47501. s.IamInstanceProfileAssociation = v
  47502. return s
  47503. }
  47504. type DisassociateRouteTableInput struct {
  47505. _ struct{} `type:"structure"`
  47506. // The association ID representing the current association between the route
  47507. // table and subnet.
  47508. //
  47509. // AssociationId is a required field
  47510. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  47511. // Checks whether you have the required permissions for the action, without
  47512. // actually making the request, and provides an error response. If you have
  47513. // the required permissions, the error response is DryRunOperation. Otherwise,
  47514. // it is UnauthorizedOperation.
  47515. DryRun *bool `locationName:"dryRun" type:"boolean"`
  47516. }
  47517. // String returns the string representation
  47518. func (s DisassociateRouteTableInput) String() string {
  47519. return awsutil.Prettify(s)
  47520. }
  47521. // GoString returns the string representation
  47522. func (s DisassociateRouteTableInput) GoString() string {
  47523. return s.String()
  47524. }
  47525. // Validate inspects the fields of the type to determine if they are valid.
  47526. func (s *DisassociateRouteTableInput) Validate() error {
  47527. invalidParams := request.ErrInvalidParams{Context: "DisassociateRouteTableInput"}
  47528. if s.AssociationId == nil {
  47529. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  47530. }
  47531. if invalidParams.Len() > 0 {
  47532. return invalidParams
  47533. }
  47534. return nil
  47535. }
  47536. // SetAssociationId sets the AssociationId field's value.
  47537. func (s *DisassociateRouteTableInput) SetAssociationId(v string) *DisassociateRouteTableInput {
  47538. s.AssociationId = &v
  47539. return s
  47540. }
  47541. // SetDryRun sets the DryRun field's value.
  47542. func (s *DisassociateRouteTableInput) SetDryRun(v bool) *DisassociateRouteTableInput {
  47543. s.DryRun = &v
  47544. return s
  47545. }
  47546. type DisassociateRouteTableOutput struct {
  47547. _ struct{} `type:"structure"`
  47548. }
  47549. // String returns the string representation
  47550. func (s DisassociateRouteTableOutput) String() string {
  47551. return awsutil.Prettify(s)
  47552. }
  47553. // GoString returns the string representation
  47554. func (s DisassociateRouteTableOutput) GoString() string {
  47555. return s.String()
  47556. }
  47557. type DisassociateSubnetCidrBlockInput struct {
  47558. _ struct{} `type:"structure"`
  47559. // The association ID for the CIDR block.
  47560. //
  47561. // AssociationId is a required field
  47562. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  47563. }
  47564. // String returns the string representation
  47565. func (s DisassociateSubnetCidrBlockInput) String() string {
  47566. return awsutil.Prettify(s)
  47567. }
  47568. // GoString returns the string representation
  47569. func (s DisassociateSubnetCidrBlockInput) GoString() string {
  47570. return s.String()
  47571. }
  47572. // Validate inspects the fields of the type to determine if they are valid.
  47573. func (s *DisassociateSubnetCidrBlockInput) Validate() error {
  47574. invalidParams := request.ErrInvalidParams{Context: "DisassociateSubnetCidrBlockInput"}
  47575. if s.AssociationId == nil {
  47576. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  47577. }
  47578. if invalidParams.Len() > 0 {
  47579. return invalidParams
  47580. }
  47581. return nil
  47582. }
  47583. // SetAssociationId sets the AssociationId field's value.
  47584. func (s *DisassociateSubnetCidrBlockInput) SetAssociationId(v string) *DisassociateSubnetCidrBlockInput {
  47585. s.AssociationId = &v
  47586. return s
  47587. }
  47588. type DisassociateSubnetCidrBlockOutput struct {
  47589. _ struct{} `type:"structure"`
  47590. // Information about the IPv6 CIDR block association.
  47591. Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  47592. // The ID of the subnet.
  47593. SubnetId *string `locationName:"subnetId" type:"string"`
  47594. }
  47595. // String returns the string representation
  47596. func (s DisassociateSubnetCidrBlockOutput) String() string {
  47597. return awsutil.Prettify(s)
  47598. }
  47599. // GoString returns the string representation
  47600. func (s DisassociateSubnetCidrBlockOutput) GoString() string {
  47601. return s.String()
  47602. }
  47603. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  47604. func (s *DisassociateSubnetCidrBlockOutput) SetIpv6CidrBlockAssociation(v *SubnetIpv6CidrBlockAssociation) *DisassociateSubnetCidrBlockOutput {
  47605. s.Ipv6CidrBlockAssociation = v
  47606. return s
  47607. }
  47608. // SetSubnetId sets the SubnetId field's value.
  47609. func (s *DisassociateSubnetCidrBlockOutput) SetSubnetId(v string) *DisassociateSubnetCidrBlockOutput {
  47610. s.SubnetId = &v
  47611. return s
  47612. }
  47613. type DisassociateTransitGatewayRouteTableInput struct {
  47614. _ struct{} `type:"structure"`
  47615. // Checks whether you have the required permissions for the action, without
  47616. // actually making the request, and provides an error response. If you have
  47617. // the required permissions, the error response is DryRunOperation. Otherwise,
  47618. // it is UnauthorizedOperation.
  47619. DryRun *bool `type:"boolean"`
  47620. // The ID of the attachment.
  47621. //
  47622. // TransitGatewayAttachmentId is a required field
  47623. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  47624. // The ID of the transit gateway route table.
  47625. //
  47626. // TransitGatewayRouteTableId is a required field
  47627. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  47628. }
  47629. // String returns the string representation
  47630. func (s DisassociateTransitGatewayRouteTableInput) String() string {
  47631. return awsutil.Prettify(s)
  47632. }
  47633. // GoString returns the string representation
  47634. func (s DisassociateTransitGatewayRouteTableInput) GoString() string {
  47635. return s.String()
  47636. }
  47637. // Validate inspects the fields of the type to determine if they are valid.
  47638. func (s *DisassociateTransitGatewayRouteTableInput) Validate() error {
  47639. invalidParams := request.ErrInvalidParams{Context: "DisassociateTransitGatewayRouteTableInput"}
  47640. if s.TransitGatewayAttachmentId == nil {
  47641. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  47642. }
  47643. if s.TransitGatewayRouteTableId == nil {
  47644. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  47645. }
  47646. if invalidParams.Len() > 0 {
  47647. return invalidParams
  47648. }
  47649. return nil
  47650. }
  47651. // SetDryRun sets the DryRun field's value.
  47652. func (s *DisassociateTransitGatewayRouteTableInput) SetDryRun(v bool) *DisassociateTransitGatewayRouteTableInput {
  47653. s.DryRun = &v
  47654. return s
  47655. }
  47656. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  47657. func (s *DisassociateTransitGatewayRouteTableInput) SetTransitGatewayAttachmentId(v string) *DisassociateTransitGatewayRouteTableInput {
  47658. s.TransitGatewayAttachmentId = &v
  47659. return s
  47660. }
  47661. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  47662. func (s *DisassociateTransitGatewayRouteTableInput) SetTransitGatewayRouteTableId(v string) *DisassociateTransitGatewayRouteTableInput {
  47663. s.TransitGatewayRouteTableId = &v
  47664. return s
  47665. }
  47666. type DisassociateTransitGatewayRouteTableOutput struct {
  47667. _ struct{} `type:"structure"`
  47668. // Information about the association.
  47669. Association *TransitGatewayAssociation `locationName:"association" type:"structure"`
  47670. }
  47671. // String returns the string representation
  47672. func (s DisassociateTransitGatewayRouteTableOutput) String() string {
  47673. return awsutil.Prettify(s)
  47674. }
  47675. // GoString returns the string representation
  47676. func (s DisassociateTransitGatewayRouteTableOutput) GoString() string {
  47677. return s.String()
  47678. }
  47679. // SetAssociation sets the Association field's value.
  47680. func (s *DisassociateTransitGatewayRouteTableOutput) SetAssociation(v *TransitGatewayAssociation) *DisassociateTransitGatewayRouteTableOutput {
  47681. s.Association = v
  47682. return s
  47683. }
  47684. type DisassociateVpcCidrBlockInput struct {
  47685. _ struct{} `type:"structure"`
  47686. // The association ID for the CIDR block.
  47687. //
  47688. // AssociationId is a required field
  47689. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  47690. }
  47691. // String returns the string representation
  47692. func (s DisassociateVpcCidrBlockInput) String() string {
  47693. return awsutil.Prettify(s)
  47694. }
  47695. // GoString returns the string representation
  47696. func (s DisassociateVpcCidrBlockInput) GoString() string {
  47697. return s.String()
  47698. }
  47699. // Validate inspects the fields of the type to determine if they are valid.
  47700. func (s *DisassociateVpcCidrBlockInput) Validate() error {
  47701. invalidParams := request.ErrInvalidParams{Context: "DisassociateVpcCidrBlockInput"}
  47702. if s.AssociationId == nil {
  47703. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  47704. }
  47705. if invalidParams.Len() > 0 {
  47706. return invalidParams
  47707. }
  47708. return nil
  47709. }
  47710. // SetAssociationId sets the AssociationId field's value.
  47711. func (s *DisassociateVpcCidrBlockInput) SetAssociationId(v string) *DisassociateVpcCidrBlockInput {
  47712. s.AssociationId = &v
  47713. return s
  47714. }
  47715. type DisassociateVpcCidrBlockOutput struct {
  47716. _ struct{} `type:"structure"`
  47717. // Information about the IPv4 CIDR block association.
  47718. CidrBlockAssociation *VpcCidrBlockAssociation `locationName:"cidrBlockAssociation" type:"structure"`
  47719. // Information about the IPv6 CIDR block association.
  47720. Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  47721. // The ID of the VPC.
  47722. VpcId *string `locationName:"vpcId" type:"string"`
  47723. }
  47724. // String returns the string representation
  47725. func (s DisassociateVpcCidrBlockOutput) String() string {
  47726. return awsutil.Prettify(s)
  47727. }
  47728. // GoString returns the string representation
  47729. func (s DisassociateVpcCidrBlockOutput) GoString() string {
  47730. return s.String()
  47731. }
  47732. // SetCidrBlockAssociation sets the CidrBlockAssociation field's value.
  47733. func (s *DisassociateVpcCidrBlockOutput) SetCidrBlockAssociation(v *VpcCidrBlockAssociation) *DisassociateVpcCidrBlockOutput {
  47734. s.CidrBlockAssociation = v
  47735. return s
  47736. }
  47737. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  47738. func (s *DisassociateVpcCidrBlockOutput) SetIpv6CidrBlockAssociation(v *VpcIpv6CidrBlockAssociation) *DisassociateVpcCidrBlockOutput {
  47739. s.Ipv6CidrBlockAssociation = v
  47740. return s
  47741. }
  47742. // SetVpcId sets the VpcId field's value.
  47743. func (s *DisassociateVpcCidrBlockOutput) SetVpcId(v string) *DisassociateVpcCidrBlockOutput {
  47744. s.VpcId = &v
  47745. return s
  47746. }
  47747. // Describes a disk image.
  47748. type DiskImage struct {
  47749. _ struct{} `type:"structure"`
  47750. // A description of the disk image.
  47751. Description *string `type:"string"`
  47752. // Information about the disk image.
  47753. Image *DiskImageDetail `type:"structure"`
  47754. // Information about the volume.
  47755. Volume *VolumeDetail `type:"structure"`
  47756. }
  47757. // String returns the string representation
  47758. func (s DiskImage) String() string {
  47759. return awsutil.Prettify(s)
  47760. }
  47761. // GoString returns the string representation
  47762. func (s DiskImage) GoString() string {
  47763. return s.String()
  47764. }
  47765. // Validate inspects the fields of the type to determine if they are valid.
  47766. func (s *DiskImage) Validate() error {
  47767. invalidParams := request.ErrInvalidParams{Context: "DiskImage"}
  47768. if s.Image != nil {
  47769. if err := s.Image.Validate(); err != nil {
  47770. invalidParams.AddNested("Image", err.(request.ErrInvalidParams))
  47771. }
  47772. }
  47773. if s.Volume != nil {
  47774. if err := s.Volume.Validate(); err != nil {
  47775. invalidParams.AddNested("Volume", err.(request.ErrInvalidParams))
  47776. }
  47777. }
  47778. if invalidParams.Len() > 0 {
  47779. return invalidParams
  47780. }
  47781. return nil
  47782. }
  47783. // SetDescription sets the Description field's value.
  47784. func (s *DiskImage) SetDescription(v string) *DiskImage {
  47785. s.Description = &v
  47786. return s
  47787. }
  47788. // SetImage sets the Image field's value.
  47789. func (s *DiskImage) SetImage(v *DiskImageDetail) *DiskImage {
  47790. s.Image = v
  47791. return s
  47792. }
  47793. // SetVolume sets the Volume field's value.
  47794. func (s *DiskImage) SetVolume(v *VolumeDetail) *DiskImage {
  47795. s.Volume = v
  47796. return s
  47797. }
  47798. // Describes a disk image.
  47799. type DiskImageDescription struct {
  47800. _ struct{} `type:"structure"`
  47801. // The checksum computed for the disk image.
  47802. Checksum *string `locationName:"checksum" type:"string"`
  47803. // The disk image format.
  47804. Format *string `locationName:"format" type:"string" enum:"DiskImageFormat"`
  47805. // A presigned URL for the import manifest stored in Amazon S3. For information
  47806. // about creating a presigned URL for an Amazon S3 object, read the "Query String
  47807. // Request Authentication Alternative" section of the Authenticating REST Requests
  47808. // (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
  47809. // topic in the Amazon Simple Storage Service Developer Guide.
  47810. //
  47811. // For information about the import manifest referenced by this API action,
  47812. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  47813. ImportManifestUrl *string `locationName:"importManifestUrl" type:"string"`
  47814. // The size of the disk image, in GiB.
  47815. Size *int64 `locationName:"size" type:"long"`
  47816. }
  47817. // String returns the string representation
  47818. func (s DiskImageDescription) String() string {
  47819. return awsutil.Prettify(s)
  47820. }
  47821. // GoString returns the string representation
  47822. func (s DiskImageDescription) GoString() string {
  47823. return s.String()
  47824. }
  47825. // SetChecksum sets the Checksum field's value.
  47826. func (s *DiskImageDescription) SetChecksum(v string) *DiskImageDescription {
  47827. s.Checksum = &v
  47828. return s
  47829. }
  47830. // SetFormat sets the Format field's value.
  47831. func (s *DiskImageDescription) SetFormat(v string) *DiskImageDescription {
  47832. s.Format = &v
  47833. return s
  47834. }
  47835. // SetImportManifestUrl sets the ImportManifestUrl field's value.
  47836. func (s *DiskImageDescription) SetImportManifestUrl(v string) *DiskImageDescription {
  47837. s.ImportManifestUrl = &v
  47838. return s
  47839. }
  47840. // SetSize sets the Size field's value.
  47841. func (s *DiskImageDescription) SetSize(v int64) *DiskImageDescription {
  47842. s.Size = &v
  47843. return s
  47844. }
  47845. // Describes a disk image.
  47846. type DiskImageDetail struct {
  47847. _ struct{} `type:"structure"`
  47848. // The size of the disk image, in GiB.
  47849. //
  47850. // Bytes is a required field
  47851. Bytes *int64 `locationName:"bytes" type:"long" required:"true"`
  47852. // The disk image format.
  47853. //
  47854. // Format is a required field
  47855. Format *string `locationName:"format" type:"string" required:"true" enum:"DiskImageFormat"`
  47856. // A presigned URL for the import manifest stored in Amazon S3 and presented
  47857. // here as an Amazon S3 presigned URL. For information about creating a presigned
  47858. // URL for an Amazon S3 object, read the "Query String Request Authentication
  47859. // Alternative" section of the Authenticating REST Requests (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
  47860. // topic in the Amazon Simple Storage Service Developer Guide.
  47861. //
  47862. // For information about the import manifest referenced by this API action,
  47863. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  47864. //
  47865. // ImportManifestUrl is a required field
  47866. ImportManifestUrl *string `locationName:"importManifestUrl" type:"string" required:"true"`
  47867. }
  47868. // String returns the string representation
  47869. func (s DiskImageDetail) String() string {
  47870. return awsutil.Prettify(s)
  47871. }
  47872. // GoString returns the string representation
  47873. func (s DiskImageDetail) GoString() string {
  47874. return s.String()
  47875. }
  47876. // Validate inspects the fields of the type to determine if they are valid.
  47877. func (s *DiskImageDetail) Validate() error {
  47878. invalidParams := request.ErrInvalidParams{Context: "DiskImageDetail"}
  47879. if s.Bytes == nil {
  47880. invalidParams.Add(request.NewErrParamRequired("Bytes"))
  47881. }
  47882. if s.Format == nil {
  47883. invalidParams.Add(request.NewErrParamRequired("Format"))
  47884. }
  47885. if s.ImportManifestUrl == nil {
  47886. invalidParams.Add(request.NewErrParamRequired("ImportManifestUrl"))
  47887. }
  47888. if invalidParams.Len() > 0 {
  47889. return invalidParams
  47890. }
  47891. return nil
  47892. }
  47893. // SetBytes sets the Bytes field's value.
  47894. func (s *DiskImageDetail) SetBytes(v int64) *DiskImageDetail {
  47895. s.Bytes = &v
  47896. return s
  47897. }
  47898. // SetFormat sets the Format field's value.
  47899. func (s *DiskImageDetail) SetFormat(v string) *DiskImageDetail {
  47900. s.Format = &v
  47901. return s
  47902. }
  47903. // SetImportManifestUrl sets the ImportManifestUrl field's value.
  47904. func (s *DiskImageDetail) SetImportManifestUrl(v string) *DiskImageDetail {
  47905. s.ImportManifestUrl = &v
  47906. return s
  47907. }
  47908. // Describes a disk image volume.
  47909. type DiskImageVolumeDescription struct {
  47910. _ struct{} `type:"structure"`
  47911. // The volume identifier.
  47912. Id *string `locationName:"id" type:"string"`
  47913. // The size of the volume, in GiB.
  47914. Size *int64 `locationName:"size" type:"long"`
  47915. }
  47916. // String returns the string representation
  47917. func (s DiskImageVolumeDescription) String() string {
  47918. return awsutil.Prettify(s)
  47919. }
  47920. // GoString returns the string representation
  47921. func (s DiskImageVolumeDescription) GoString() string {
  47922. return s.String()
  47923. }
  47924. // SetId sets the Id field's value.
  47925. func (s *DiskImageVolumeDescription) SetId(v string) *DiskImageVolumeDescription {
  47926. s.Id = &v
  47927. return s
  47928. }
  47929. // SetSize sets the Size field's value.
  47930. func (s *DiskImageVolumeDescription) SetSize(v int64) *DiskImageVolumeDescription {
  47931. s.Size = &v
  47932. return s
  47933. }
  47934. // Describes a DNS entry.
  47935. type DnsEntry struct {
  47936. _ struct{} `type:"structure"`
  47937. // The DNS name.
  47938. DnsName *string `locationName:"dnsName" type:"string"`
  47939. // The ID of the private hosted zone.
  47940. HostedZoneId *string `locationName:"hostedZoneId" type:"string"`
  47941. }
  47942. // String returns the string representation
  47943. func (s DnsEntry) String() string {
  47944. return awsutil.Prettify(s)
  47945. }
  47946. // GoString returns the string representation
  47947. func (s DnsEntry) GoString() string {
  47948. return s.String()
  47949. }
  47950. // SetDnsName sets the DnsName field's value.
  47951. func (s *DnsEntry) SetDnsName(v string) *DnsEntry {
  47952. s.DnsName = &v
  47953. return s
  47954. }
  47955. // SetHostedZoneId sets the HostedZoneId field's value.
  47956. func (s *DnsEntry) SetHostedZoneId(v string) *DnsEntry {
  47957. s.HostedZoneId = &v
  47958. return s
  47959. }
  47960. // Information about the DNS server to be used.
  47961. type DnsServersOptionsModifyStructure struct {
  47962. _ struct{} `type:"structure"`
  47963. // The IPv4 address range, in CIDR notation, of the DNS servers to be used.
  47964. // You can specify up to two DNS servers. Ensure that the DNS servers can be
  47965. // reached by the clients. The specified values overwrite the existing values.
  47966. CustomDnsServers []*string `locationNameList:"item" type:"list"`
  47967. // Indicates whether DNS servers should be used. Specify False to delete the
  47968. // existing DNS servers.
  47969. Enabled *bool `type:"boolean"`
  47970. }
  47971. // String returns the string representation
  47972. func (s DnsServersOptionsModifyStructure) String() string {
  47973. return awsutil.Prettify(s)
  47974. }
  47975. // GoString returns the string representation
  47976. func (s DnsServersOptionsModifyStructure) GoString() string {
  47977. return s.String()
  47978. }
  47979. // SetCustomDnsServers sets the CustomDnsServers field's value.
  47980. func (s *DnsServersOptionsModifyStructure) SetCustomDnsServers(v []*string) *DnsServersOptionsModifyStructure {
  47981. s.CustomDnsServers = v
  47982. return s
  47983. }
  47984. // SetEnabled sets the Enabled field's value.
  47985. func (s *DnsServersOptionsModifyStructure) SetEnabled(v bool) *DnsServersOptionsModifyStructure {
  47986. s.Enabled = &v
  47987. return s
  47988. }
  47989. // Describes a block device for an EBS volume.
  47990. type EbsBlockDevice struct {
  47991. _ struct{} `type:"structure"`
  47992. // Indicates whether the EBS volume is deleted on instance termination.
  47993. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  47994. // Indicates whether the EBS volume is encrypted. Encrypted volumes can only
  47995. // be attached to instances that support Amazon EBS encryption.
  47996. //
  47997. // If you are creating a volume from a snapshot, you cannot specify an encryption
  47998. // value. This is because only blank volumes can be encrypted on creation. If
  47999. // you are creating a snapshot from an existing EBS volume, you cannot specify
  48000. // an encryption value that differs from that of the EBS volume. We recommend
  48001. // that you omit the encryption value from the block device mappings when creating
  48002. // an image from an instance.
  48003. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  48004. // The number of I/O operations per second (IOPS) that the volume supports.
  48005. // For io1, this represents the number of IOPS that are provisioned for the
  48006. // volume. For gp2, this represents the baseline performance of the volume and
  48007. // the rate at which the volume accumulates I/O credits for bursting. For more
  48008. // information about General Purpose SSD baseline performance, I/O credits,
  48009. // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  48010. // in the Amazon Elastic Compute Cloud User Guide.
  48011. //
  48012. // Constraints: Range is 100-16,000 IOPS for gp2 volumes and 100 to 64,000IOPS
  48013. // for io1 volumes in most Regions. Maximum io1IOPS of 64,000 is guaranteed
  48014. // only on Nitro-based instances (AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances).
  48015. // Other instance families guarantee performance up to 32,000 IOPS. For more
  48016. // information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  48017. // in the Amazon Elastic Compute Cloud User Guide.
  48018. //
  48019. // Condition: This parameter is required for requests to create io1 volumes;
  48020. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  48021. Iops *int64 `locationName:"iops" type:"integer"`
  48022. // Identifier (key ID, key alias, ID ARN, or alias ARN) for a user-managed CMK
  48023. // under which the EBS volume is encrypted.
  48024. //
  48025. // This parameter is only supported on BlockDeviceMapping objects called by
  48026. // RunInstances (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html),
  48027. // RequestSpotFleet (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html),
  48028. // and RequestSpotInstances (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html).
  48029. KmsKeyId *string `type:"string"`
  48030. // The ID of the snapshot.
  48031. SnapshotId *string `locationName:"snapshotId" type:"string"`
  48032. // The size of the volume, in GiB.
  48033. //
  48034. // Constraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned
  48035. // IOPS SSD (io1), 500-16384 for Throughput Optimized HDD (st1), 500-16384 for
  48036. // Cold HDD (sc1), and 1-1024 for Magnetic (standard) volumes. If you specify
  48037. // a snapshot, the volume size must be equal to or larger than the snapshot
  48038. // size.
  48039. //
  48040. // Default: If you're creating the volume from a snapshot and don't specify
  48041. // a volume size, the default is the snapshot size.
  48042. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  48043. // The volume type: gp2, io1, st1, sc1, or standard.
  48044. //
  48045. // Default: standard
  48046. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  48047. }
  48048. // String returns the string representation
  48049. func (s EbsBlockDevice) String() string {
  48050. return awsutil.Prettify(s)
  48051. }
  48052. // GoString returns the string representation
  48053. func (s EbsBlockDevice) GoString() string {
  48054. return s.String()
  48055. }
  48056. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  48057. func (s *EbsBlockDevice) SetDeleteOnTermination(v bool) *EbsBlockDevice {
  48058. s.DeleteOnTermination = &v
  48059. return s
  48060. }
  48061. // SetEncrypted sets the Encrypted field's value.
  48062. func (s *EbsBlockDevice) SetEncrypted(v bool) *EbsBlockDevice {
  48063. s.Encrypted = &v
  48064. return s
  48065. }
  48066. // SetIops sets the Iops field's value.
  48067. func (s *EbsBlockDevice) SetIops(v int64) *EbsBlockDevice {
  48068. s.Iops = &v
  48069. return s
  48070. }
  48071. // SetKmsKeyId sets the KmsKeyId field's value.
  48072. func (s *EbsBlockDevice) SetKmsKeyId(v string) *EbsBlockDevice {
  48073. s.KmsKeyId = &v
  48074. return s
  48075. }
  48076. // SetSnapshotId sets the SnapshotId field's value.
  48077. func (s *EbsBlockDevice) SetSnapshotId(v string) *EbsBlockDevice {
  48078. s.SnapshotId = &v
  48079. return s
  48080. }
  48081. // SetVolumeSize sets the VolumeSize field's value.
  48082. func (s *EbsBlockDevice) SetVolumeSize(v int64) *EbsBlockDevice {
  48083. s.VolumeSize = &v
  48084. return s
  48085. }
  48086. // SetVolumeType sets the VolumeType field's value.
  48087. func (s *EbsBlockDevice) SetVolumeType(v string) *EbsBlockDevice {
  48088. s.VolumeType = &v
  48089. return s
  48090. }
  48091. // Describes a parameter used to set up an EBS volume in a block device mapping.
  48092. type EbsInstanceBlockDevice struct {
  48093. _ struct{} `type:"structure"`
  48094. // The time stamp when the attachment initiated.
  48095. AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
  48096. // Indicates whether the volume is deleted on instance termination.
  48097. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  48098. // The attachment state.
  48099. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  48100. // The ID of the EBS volume.
  48101. VolumeId *string `locationName:"volumeId" type:"string"`
  48102. }
  48103. // String returns the string representation
  48104. func (s EbsInstanceBlockDevice) String() string {
  48105. return awsutil.Prettify(s)
  48106. }
  48107. // GoString returns the string representation
  48108. func (s EbsInstanceBlockDevice) GoString() string {
  48109. return s.String()
  48110. }
  48111. // SetAttachTime sets the AttachTime field's value.
  48112. func (s *EbsInstanceBlockDevice) SetAttachTime(v time.Time) *EbsInstanceBlockDevice {
  48113. s.AttachTime = &v
  48114. return s
  48115. }
  48116. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  48117. func (s *EbsInstanceBlockDevice) SetDeleteOnTermination(v bool) *EbsInstanceBlockDevice {
  48118. s.DeleteOnTermination = &v
  48119. return s
  48120. }
  48121. // SetStatus sets the Status field's value.
  48122. func (s *EbsInstanceBlockDevice) SetStatus(v string) *EbsInstanceBlockDevice {
  48123. s.Status = &v
  48124. return s
  48125. }
  48126. // SetVolumeId sets the VolumeId field's value.
  48127. func (s *EbsInstanceBlockDevice) SetVolumeId(v string) *EbsInstanceBlockDevice {
  48128. s.VolumeId = &v
  48129. return s
  48130. }
  48131. // Describes information used to set up an EBS volume specified in a block device
  48132. // mapping.
  48133. type EbsInstanceBlockDeviceSpecification struct {
  48134. _ struct{} `type:"structure"`
  48135. // Indicates whether the volume is deleted on instance termination.
  48136. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  48137. // The ID of the EBS volume.
  48138. VolumeId *string `locationName:"volumeId" type:"string"`
  48139. }
  48140. // String returns the string representation
  48141. func (s EbsInstanceBlockDeviceSpecification) String() string {
  48142. return awsutil.Prettify(s)
  48143. }
  48144. // GoString returns the string representation
  48145. func (s EbsInstanceBlockDeviceSpecification) GoString() string {
  48146. return s.String()
  48147. }
  48148. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  48149. func (s *EbsInstanceBlockDeviceSpecification) SetDeleteOnTermination(v bool) *EbsInstanceBlockDeviceSpecification {
  48150. s.DeleteOnTermination = &v
  48151. return s
  48152. }
  48153. // SetVolumeId sets the VolumeId field's value.
  48154. func (s *EbsInstanceBlockDeviceSpecification) SetVolumeId(v string) *EbsInstanceBlockDeviceSpecification {
  48155. s.VolumeId = &v
  48156. return s
  48157. }
  48158. // Describes an egress-only internet gateway.
  48159. type EgressOnlyInternetGateway struct {
  48160. _ struct{} `type:"structure"`
  48161. // Information about the attachment of the egress-only internet gateway.
  48162. Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  48163. // The ID of the egress-only internet gateway.
  48164. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  48165. }
  48166. // String returns the string representation
  48167. func (s EgressOnlyInternetGateway) String() string {
  48168. return awsutil.Prettify(s)
  48169. }
  48170. // GoString returns the string representation
  48171. func (s EgressOnlyInternetGateway) GoString() string {
  48172. return s.String()
  48173. }
  48174. // SetAttachments sets the Attachments field's value.
  48175. func (s *EgressOnlyInternetGateway) SetAttachments(v []*InternetGatewayAttachment) *EgressOnlyInternetGateway {
  48176. s.Attachments = v
  48177. return s
  48178. }
  48179. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  48180. func (s *EgressOnlyInternetGateway) SetEgressOnlyInternetGatewayId(v string) *EgressOnlyInternetGateway {
  48181. s.EgressOnlyInternetGatewayId = &v
  48182. return s
  48183. }
  48184. // Describes the association between an instance and an Elastic Graphics accelerator.
  48185. type ElasticGpuAssociation struct {
  48186. _ struct{} `type:"structure"`
  48187. // The ID of the association.
  48188. ElasticGpuAssociationId *string `locationName:"elasticGpuAssociationId" type:"string"`
  48189. // The state of the association between the instance and the Elastic Graphics
  48190. // accelerator.
  48191. ElasticGpuAssociationState *string `locationName:"elasticGpuAssociationState" type:"string"`
  48192. // The time the Elastic Graphics accelerator was associated with the instance.
  48193. ElasticGpuAssociationTime *string `locationName:"elasticGpuAssociationTime" type:"string"`
  48194. // The ID of the Elastic Graphics accelerator.
  48195. ElasticGpuId *string `locationName:"elasticGpuId" type:"string"`
  48196. }
  48197. // String returns the string representation
  48198. func (s ElasticGpuAssociation) String() string {
  48199. return awsutil.Prettify(s)
  48200. }
  48201. // GoString returns the string representation
  48202. func (s ElasticGpuAssociation) GoString() string {
  48203. return s.String()
  48204. }
  48205. // SetElasticGpuAssociationId sets the ElasticGpuAssociationId field's value.
  48206. func (s *ElasticGpuAssociation) SetElasticGpuAssociationId(v string) *ElasticGpuAssociation {
  48207. s.ElasticGpuAssociationId = &v
  48208. return s
  48209. }
  48210. // SetElasticGpuAssociationState sets the ElasticGpuAssociationState field's value.
  48211. func (s *ElasticGpuAssociation) SetElasticGpuAssociationState(v string) *ElasticGpuAssociation {
  48212. s.ElasticGpuAssociationState = &v
  48213. return s
  48214. }
  48215. // SetElasticGpuAssociationTime sets the ElasticGpuAssociationTime field's value.
  48216. func (s *ElasticGpuAssociation) SetElasticGpuAssociationTime(v string) *ElasticGpuAssociation {
  48217. s.ElasticGpuAssociationTime = &v
  48218. return s
  48219. }
  48220. // SetElasticGpuId sets the ElasticGpuId field's value.
  48221. func (s *ElasticGpuAssociation) SetElasticGpuId(v string) *ElasticGpuAssociation {
  48222. s.ElasticGpuId = &v
  48223. return s
  48224. }
  48225. // Describes the status of an Elastic Graphics accelerator.
  48226. type ElasticGpuHealth struct {
  48227. _ struct{} `type:"structure"`
  48228. // The health status.
  48229. Status *string `locationName:"status" type:"string" enum:"ElasticGpuStatus"`
  48230. }
  48231. // String returns the string representation
  48232. func (s ElasticGpuHealth) String() string {
  48233. return awsutil.Prettify(s)
  48234. }
  48235. // GoString returns the string representation
  48236. func (s ElasticGpuHealth) GoString() string {
  48237. return s.String()
  48238. }
  48239. // SetStatus sets the Status field's value.
  48240. func (s *ElasticGpuHealth) SetStatus(v string) *ElasticGpuHealth {
  48241. s.Status = &v
  48242. return s
  48243. }
  48244. // A specification for an Elastic Graphics accelerator.
  48245. type ElasticGpuSpecification struct {
  48246. _ struct{} `type:"structure"`
  48247. // The type of Elastic Graphics accelerator.
  48248. //
  48249. // Type is a required field
  48250. Type *string `type:"string" required:"true"`
  48251. }
  48252. // String returns the string representation
  48253. func (s ElasticGpuSpecification) String() string {
  48254. return awsutil.Prettify(s)
  48255. }
  48256. // GoString returns the string representation
  48257. func (s ElasticGpuSpecification) GoString() string {
  48258. return s.String()
  48259. }
  48260. // Validate inspects the fields of the type to determine if they are valid.
  48261. func (s *ElasticGpuSpecification) Validate() error {
  48262. invalidParams := request.ErrInvalidParams{Context: "ElasticGpuSpecification"}
  48263. if s.Type == nil {
  48264. invalidParams.Add(request.NewErrParamRequired("Type"))
  48265. }
  48266. if invalidParams.Len() > 0 {
  48267. return invalidParams
  48268. }
  48269. return nil
  48270. }
  48271. // SetType sets the Type field's value.
  48272. func (s *ElasticGpuSpecification) SetType(v string) *ElasticGpuSpecification {
  48273. s.Type = &v
  48274. return s
  48275. }
  48276. // Describes an elastic GPU.
  48277. type ElasticGpuSpecificationResponse struct {
  48278. _ struct{} `type:"structure"`
  48279. // The elastic GPU type.
  48280. Type *string `locationName:"type" type:"string"`
  48281. }
  48282. // String returns the string representation
  48283. func (s ElasticGpuSpecificationResponse) String() string {
  48284. return awsutil.Prettify(s)
  48285. }
  48286. // GoString returns the string representation
  48287. func (s ElasticGpuSpecificationResponse) GoString() string {
  48288. return s.String()
  48289. }
  48290. // SetType sets the Type field's value.
  48291. func (s *ElasticGpuSpecificationResponse) SetType(v string) *ElasticGpuSpecificationResponse {
  48292. s.Type = &v
  48293. return s
  48294. }
  48295. // Describes an Elastic Graphics accelerator.
  48296. type ElasticGpus struct {
  48297. _ struct{} `type:"structure"`
  48298. // The Availability Zone in the which the Elastic Graphics accelerator resides.
  48299. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  48300. // The status of the Elastic Graphics accelerator.
  48301. ElasticGpuHealth *ElasticGpuHealth `locationName:"elasticGpuHealth" type:"structure"`
  48302. // The ID of the Elastic Graphics accelerator.
  48303. ElasticGpuId *string `locationName:"elasticGpuId" type:"string"`
  48304. // The state of the Elastic Graphics accelerator.
  48305. ElasticGpuState *string `locationName:"elasticGpuState" type:"string" enum:"ElasticGpuState"`
  48306. // The type of Elastic Graphics accelerator.
  48307. ElasticGpuType *string `locationName:"elasticGpuType" type:"string"`
  48308. // The ID of the instance to which the Elastic Graphics accelerator is attached.
  48309. InstanceId *string `locationName:"instanceId" type:"string"`
  48310. }
  48311. // String returns the string representation
  48312. func (s ElasticGpus) String() string {
  48313. return awsutil.Prettify(s)
  48314. }
  48315. // GoString returns the string representation
  48316. func (s ElasticGpus) GoString() string {
  48317. return s.String()
  48318. }
  48319. // SetAvailabilityZone sets the AvailabilityZone field's value.
  48320. func (s *ElasticGpus) SetAvailabilityZone(v string) *ElasticGpus {
  48321. s.AvailabilityZone = &v
  48322. return s
  48323. }
  48324. // SetElasticGpuHealth sets the ElasticGpuHealth field's value.
  48325. func (s *ElasticGpus) SetElasticGpuHealth(v *ElasticGpuHealth) *ElasticGpus {
  48326. s.ElasticGpuHealth = v
  48327. return s
  48328. }
  48329. // SetElasticGpuId sets the ElasticGpuId field's value.
  48330. func (s *ElasticGpus) SetElasticGpuId(v string) *ElasticGpus {
  48331. s.ElasticGpuId = &v
  48332. return s
  48333. }
  48334. // SetElasticGpuState sets the ElasticGpuState field's value.
  48335. func (s *ElasticGpus) SetElasticGpuState(v string) *ElasticGpus {
  48336. s.ElasticGpuState = &v
  48337. return s
  48338. }
  48339. // SetElasticGpuType sets the ElasticGpuType field's value.
  48340. func (s *ElasticGpus) SetElasticGpuType(v string) *ElasticGpus {
  48341. s.ElasticGpuType = &v
  48342. return s
  48343. }
  48344. // SetInstanceId sets the InstanceId field's value.
  48345. func (s *ElasticGpus) SetInstanceId(v string) *ElasticGpus {
  48346. s.InstanceId = &v
  48347. return s
  48348. }
  48349. // Describes an elastic inference accelerator.
  48350. type ElasticInferenceAccelerator struct {
  48351. _ struct{} `type:"structure"`
  48352. // The type of elastic inference accelerator. The possible values are eia1.small,
  48353. // eia1.medium, and eia1.large.
  48354. //
  48355. // Type is a required field
  48356. Type *string `type:"string" required:"true"`
  48357. }
  48358. // String returns the string representation
  48359. func (s ElasticInferenceAccelerator) String() string {
  48360. return awsutil.Prettify(s)
  48361. }
  48362. // GoString returns the string representation
  48363. func (s ElasticInferenceAccelerator) GoString() string {
  48364. return s.String()
  48365. }
  48366. // Validate inspects the fields of the type to determine if they are valid.
  48367. func (s *ElasticInferenceAccelerator) Validate() error {
  48368. invalidParams := request.ErrInvalidParams{Context: "ElasticInferenceAccelerator"}
  48369. if s.Type == nil {
  48370. invalidParams.Add(request.NewErrParamRequired("Type"))
  48371. }
  48372. if invalidParams.Len() > 0 {
  48373. return invalidParams
  48374. }
  48375. return nil
  48376. }
  48377. // SetType sets the Type field's value.
  48378. func (s *ElasticInferenceAccelerator) SetType(v string) *ElasticInferenceAccelerator {
  48379. s.Type = &v
  48380. return s
  48381. }
  48382. // Describes the association between an instance and an elastic inference accelerator.
  48383. type ElasticInferenceAcceleratorAssociation struct {
  48384. _ struct{} `type:"structure"`
  48385. // The Amazon Resource Name (ARN) of the elastic inference accelerator.
  48386. ElasticInferenceAcceleratorArn *string `locationName:"elasticInferenceAcceleratorArn" type:"string"`
  48387. // The ID of the association.
  48388. ElasticInferenceAcceleratorAssociationId *string `locationName:"elasticInferenceAcceleratorAssociationId" type:"string"`
  48389. // The state of the elastic inference accelerator.
  48390. ElasticInferenceAcceleratorAssociationState *string `locationName:"elasticInferenceAcceleratorAssociationState" type:"string"`
  48391. // The time at which the elastic inference accelerator is associated with an
  48392. // instance.
  48393. ElasticInferenceAcceleratorAssociationTime *time.Time `locationName:"elasticInferenceAcceleratorAssociationTime" type:"timestamp"`
  48394. }
  48395. // String returns the string representation
  48396. func (s ElasticInferenceAcceleratorAssociation) String() string {
  48397. return awsutil.Prettify(s)
  48398. }
  48399. // GoString returns the string representation
  48400. func (s ElasticInferenceAcceleratorAssociation) GoString() string {
  48401. return s.String()
  48402. }
  48403. // SetElasticInferenceAcceleratorArn sets the ElasticInferenceAcceleratorArn field's value.
  48404. func (s *ElasticInferenceAcceleratorAssociation) SetElasticInferenceAcceleratorArn(v string) *ElasticInferenceAcceleratorAssociation {
  48405. s.ElasticInferenceAcceleratorArn = &v
  48406. return s
  48407. }
  48408. // SetElasticInferenceAcceleratorAssociationId sets the ElasticInferenceAcceleratorAssociationId field's value.
  48409. func (s *ElasticInferenceAcceleratorAssociation) SetElasticInferenceAcceleratorAssociationId(v string) *ElasticInferenceAcceleratorAssociation {
  48410. s.ElasticInferenceAcceleratorAssociationId = &v
  48411. return s
  48412. }
  48413. // SetElasticInferenceAcceleratorAssociationState sets the ElasticInferenceAcceleratorAssociationState field's value.
  48414. func (s *ElasticInferenceAcceleratorAssociation) SetElasticInferenceAcceleratorAssociationState(v string) *ElasticInferenceAcceleratorAssociation {
  48415. s.ElasticInferenceAcceleratorAssociationState = &v
  48416. return s
  48417. }
  48418. // SetElasticInferenceAcceleratorAssociationTime sets the ElasticInferenceAcceleratorAssociationTime field's value.
  48419. func (s *ElasticInferenceAcceleratorAssociation) SetElasticInferenceAcceleratorAssociationTime(v time.Time) *ElasticInferenceAcceleratorAssociation {
  48420. s.ElasticInferenceAcceleratorAssociationTime = &v
  48421. return s
  48422. }
  48423. type EnableTransitGatewayRouteTablePropagationInput struct {
  48424. _ struct{} `type:"structure"`
  48425. // Checks whether you have the required permissions for the action, without
  48426. // actually making the request, and provides an error response. If you have
  48427. // the required permissions, the error response is DryRunOperation. Otherwise,
  48428. // it is UnauthorizedOperation.
  48429. DryRun *bool `type:"boolean"`
  48430. // The ID of the attachment.
  48431. //
  48432. // TransitGatewayAttachmentId is a required field
  48433. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  48434. // The ID of the propagation route table.
  48435. //
  48436. // TransitGatewayRouteTableId is a required field
  48437. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  48438. }
  48439. // String returns the string representation
  48440. func (s EnableTransitGatewayRouteTablePropagationInput) String() string {
  48441. return awsutil.Prettify(s)
  48442. }
  48443. // GoString returns the string representation
  48444. func (s EnableTransitGatewayRouteTablePropagationInput) GoString() string {
  48445. return s.String()
  48446. }
  48447. // Validate inspects the fields of the type to determine if they are valid.
  48448. func (s *EnableTransitGatewayRouteTablePropagationInput) Validate() error {
  48449. invalidParams := request.ErrInvalidParams{Context: "EnableTransitGatewayRouteTablePropagationInput"}
  48450. if s.TransitGatewayAttachmentId == nil {
  48451. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  48452. }
  48453. if s.TransitGatewayRouteTableId == nil {
  48454. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  48455. }
  48456. if invalidParams.Len() > 0 {
  48457. return invalidParams
  48458. }
  48459. return nil
  48460. }
  48461. // SetDryRun sets the DryRun field's value.
  48462. func (s *EnableTransitGatewayRouteTablePropagationInput) SetDryRun(v bool) *EnableTransitGatewayRouteTablePropagationInput {
  48463. s.DryRun = &v
  48464. return s
  48465. }
  48466. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  48467. func (s *EnableTransitGatewayRouteTablePropagationInput) SetTransitGatewayAttachmentId(v string) *EnableTransitGatewayRouteTablePropagationInput {
  48468. s.TransitGatewayAttachmentId = &v
  48469. return s
  48470. }
  48471. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  48472. func (s *EnableTransitGatewayRouteTablePropagationInput) SetTransitGatewayRouteTableId(v string) *EnableTransitGatewayRouteTablePropagationInput {
  48473. s.TransitGatewayRouteTableId = &v
  48474. return s
  48475. }
  48476. type EnableTransitGatewayRouteTablePropagationOutput struct {
  48477. _ struct{} `type:"structure"`
  48478. // Information about route propagation.
  48479. Propagation *TransitGatewayPropagation `locationName:"propagation" type:"structure"`
  48480. }
  48481. // String returns the string representation
  48482. func (s EnableTransitGatewayRouteTablePropagationOutput) String() string {
  48483. return awsutil.Prettify(s)
  48484. }
  48485. // GoString returns the string representation
  48486. func (s EnableTransitGatewayRouteTablePropagationOutput) GoString() string {
  48487. return s.String()
  48488. }
  48489. // SetPropagation sets the Propagation field's value.
  48490. func (s *EnableTransitGatewayRouteTablePropagationOutput) SetPropagation(v *TransitGatewayPropagation) *EnableTransitGatewayRouteTablePropagationOutput {
  48491. s.Propagation = v
  48492. return s
  48493. }
  48494. // Contains the parameters for EnableVgwRoutePropagation.
  48495. type EnableVgwRoutePropagationInput struct {
  48496. _ struct{} `type:"structure"`
  48497. // The ID of the virtual private gateway.
  48498. //
  48499. // GatewayId is a required field
  48500. GatewayId *string `type:"string" required:"true"`
  48501. // The ID of the route table.
  48502. //
  48503. // RouteTableId is a required field
  48504. RouteTableId *string `type:"string" required:"true"`
  48505. }
  48506. // String returns the string representation
  48507. func (s EnableVgwRoutePropagationInput) String() string {
  48508. return awsutil.Prettify(s)
  48509. }
  48510. // GoString returns the string representation
  48511. func (s EnableVgwRoutePropagationInput) GoString() string {
  48512. return s.String()
  48513. }
  48514. // Validate inspects the fields of the type to determine if they are valid.
  48515. func (s *EnableVgwRoutePropagationInput) Validate() error {
  48516. invalidParams := request.ErrInvalidParams{Context: "EnableVgwRoutePropagationInput"}
  48517. if s.GatewayId == nil {
  48518. invalidParams.Add(request.NewErrParamRequired("GatewayId"))
  48519. }
  48520. if s.RouteTableId == nil {
  48521. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  48522. }
  48523. if invalidParams.Len() > 0 {
  48524. return invalidParams
  48525. }
  48526. return nil
  48527. }
  48528. // SetGatewayId sets the GatewayId field's value.
  48529. func (s *EnableVgwRoutePropagationInput) SetGatewayId(v string) *EnableVgwRoutePropagationInput {
  48530. s.GatewayId = &v
  48531. return s
  48532. }
  48533. // SetRouteTableId sets the RouteTableId field's value.
  48534. func (s *EnableVgwRoutePropagationInput) SetRouteTableId(v string) *EnableVgwRoutePropagationInput {
  48535. s.RouteTableId = &v
  48536. return s
  48537. }
  48538. type EnableVgwRoutePropagationOutput struct {
  48539. _ struct{} `type:"structure"`
  48540. }
  48541. // String returns the string representation
  48542. func (s EnableVgwRoutePropagationOutput) String() string {
  48543. return awsutil.Prettify(s)
  48544. }
  48545. // GoString returns the string representation
  48546. func (s EnableVgwRoutePropagationOutput) GoString() string {
  48547. return s.String()
  48548. }
  48549. // Contains the parameters for EnableVolumeIO.
  48550. type EnableVolumeIOInput struct {
  48551. _ struct{} `type:"structure"`
  48552. // Checks whether you have the required permissions for the action, without
  48553. // actually making the request, and provides an error response. If you have
  48554. // the required permissions, the error response is DryRunOperation. Otherwise,
  48555. // it is UnauthorizedOperation.
  48556. DryRun *bool `locationName:"dryRun" type:"boolean"`
  48557. // The ID of the volume.
  48558. //
  48559. // VolumeId is a required field
  48560. VolumeId *string `locationName:"volumeId" type:"string" required:"true"`
  48561. }
  48562. // String returns the string representation
  48563. func (s EnableVolumeIOInput) String() string {
  48564. return awsutil.Prettify(s)
  48565. }
  48566. // GoString returns the string representation
  48567. func (s EnableVolumeIOInput) GoString() string {
  48568. return s.String()
  48569. }
  48570. // Validate inspects the fields of the type to determine if they are valid.
  48571. func (s *EnableVolumeIOInput) Validate() error {
  48572. invalidParams := request.ErrInvalidParams{Context: "EnableVolumeIOInput"}
  48573. if s.VolumeId == nil {
  48574. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  48575. }
  48576. if invalidParams.Len() > 0 {
  48577. return invalidParams
  48578. }
  48579. return nil
  48580. }
  48581. // SetDryRun sets the DryRun field's value.
  48582. func (s *EnableVolumeIOInput) SetDryRun(v bool) *EnableVolumeIOInput {
  48583. s.DryRun = &v
  48584. return s
  48585. }
  48586. // SetVolumeId sets the VolumeId field's value.
  48587. func (s *EnableVolumeIOInput) SetVolumeId(v string) *EnableVolumeIOInput {
  48588. s.VolumeId = &v
  48589. return s
  48590. }
  48591. type EnableVolumeIOOutput struct {
  48592. _ struct{} `type:"structure"`
  48593. }
  48594. // String returns the string representation
  48595. func (s EnableVolumeIOOutput) String() string {
  48596. return awsutil.Prettify(s)
  48597. }
  48598. // GoString returns the string representation
  48599. func (s EnableVolumeIOOutput) GoString() string {
  48600. return s.String()
  48601. }
  48602. type EnableVpcClassicLinkDnsSupportInput struct {
  48603. _ struct{} `type:"structure"`
  48604. // The ID of the VPC.
  48605. VpcId *string `type:"string"`
  48606. }
  48607. // String returns the string representation
  48608. func (s EnableVpcClassicLinkDnsSupportInput) String() string {
  48609. return awsutil.Prettify(s)
  48610. }
  48611. // GoString returns the string representation
  48612. func (s EnableVpcClassicLinkDnsSupportInput) GoString() string {
  48613. return s.String()
  48614. }
  48615. // SetVpcId sets the VpcId field's value.
  48616. func (s *EnableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *EnableVpcClassicLinkDnsSupportInput {
  48617. s.VpcId = &v
  48618. return s
  48619. }
  48620. type EnableVpcClassicLinkDnsSupportOutput struct {
  48621. _ struct{} `type:"structure"`
  48622. // Returns true if the request succeeds; otherwise, it returns an error.
  48623. Return *bool `locationName:"return" type:"boolean"`
  48624. }
  48625. // String returns the string representation
  48626. func (s EnableVpcClassicLinkDnsSupportOutput) String() string {
  48627. return awsutil.Prettify(s)
  48628. }
  48629. // GoString returns the string representation
  48630. func (s EnableVpcClassicLinkDnsSupportOutput) GoString() string {
  48631. return s.String()
  48632. }
  48633. // SetReturn sets the Return field's value.
  48634. func (s *EnableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *EnableVpcClassicLinkDnsSupportOutput {
  48635. s.Return = &v
  48636. return s
  48637. }
  48638. type EnableVpcClassicLinkInput struct {
  48639. _ struct{} `type:"structure"`
  48640. // Checks whether you have the required permissions for the action, without
  48641. // actually making the request, and provides an error response. If you have
  48642. // the required permissions, the error response is DryRunOperation. Otherwise,
  48643. // it is UnauthorizedOperation.
  48644. DryRun *bool `locationName:"dryRun" type:"boolean"`
  48645. // The ID of the VPC.
  48646. //
  48647. // VpcId is a required field
  48648. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  48649. }
  48650. // String returns the string representation
  48651. func (s EnableVpcClassicLinkInput) String() string {
  48652. return awsutil.Prettify(s)
  48653. }
  48654. // GoString returns the string representation
  48655. func (s EnableVpcClassicLinkInput) GoString() string {
  48656. return s.String()
  48657. }
  48658. // Validate inspects the fields of the type to determine if they are valid.
  48659. func (s *EnableVpcClassicLinkInput) Validate() error {
  48660. invalidParams := request.ErrInvalidParams{Context: "EnableVpcClassicLinkInput"}
  48661. if s.VpcId == nil {
  48662. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  48663. }
  48664. if invalidParams.Len() > 0 {
  48665. return invalidParams
  48666. }
  48667. return nil
  48668. }
  48669. // SetDryRun sets the DryRun field's value.
  48670. func (s *EnableVpcClassicLinkInput) SetDryRun(v bool) *EnableVpcClassicLinkInput {
  48671. s.DryRun = &v
  48672. return s
  48673. }
  48674. // SetVpcId sets the VpcId field's value.
  48675. func (s *EnableVpcClassicLinkInput) SetVpcId(v string) *EnableVpcClassicLinkInput {
  48676. s.VpcId = &v
  48677. return s
  48678. }
  48679. type EnableVpcClassicLinkOutput struct {
  48680. _ struct{} `type:"structure"`
  48681. // Returns true if the request succeeds; otherwise, it returns an error.
  48682. Return *bool `locationName:"return" type:"boolean"`
  48683. }
  48684. // String returns the string representation
  48685. func (s EnableVpcClassicLinkOutput) String() string {
  48686. return awsutil.Prettify(s)
  48687. }
  48688. // GoString returns the string representation
  48689. func (s EnableVpcClassicLinkOutput) GoString() string {
  48690. return s.String()
  48691. }
  48692. // SetReturn sets the Return field's value.
  48693. func (s *EnableVpcClassicLinkOutput) SetReturn(v bool) *EnableVpcClassicLinkOutput {
  48694. s.Return = &v
  48695. return s
  48696. }
  48697. // Describes a Spot Fleet event.
  48698. type EventInformation struct {
  48699. _ struct{} `type:"structure"`
  48700. // The description of the event.
  48701. EventDescription *string `locationName:"eventDescription" type:"string"`
  48702. // The event.
  48703. //
  48704. // The following are the error events:
  48705. //
  48706. // * iamFleetRoleInvalid - The Spot Fleet did not have the required permissions
  48707. // either to launch or terminate an instance.
  48708. //
  48709. // * launchSpecTemporarilyBlacklisted - The configuration is not valid and
  48710. // several attempts to launch instances have failed. For more information,
  48711. // see the description of the event.
  48712. //
  48713. // * spotFleetRequestConfigurationInvalid - The configuration is not valid.
  48714. // For more information, see the description of the event.
  48715. //
  48716. // * spotInstanceCountLimitExceeded - You've reached the limit on the number
  48717. // of Spot Instances that you can launch.
  48718. //
  48719. // The following are the fleetRequestChange events:
  48720. //
  48721. // * active - The Spot Fleet has been validated and Amazon EC2 is attempting
  48722. // to maintain the target number of running Spot Instances.
  48723. //
  48724. // * cancelled - The Spot Fleet is canceled and has no running Spot Instances.
  48725. // The Spot Fleet will be deleted two days after its instances were terminated.
  48726. //
  48727. // * cancelled_running - The Spot Fleet is canceled and does not launch additional
  48728. // Spot Instances. Existing Spot Instances continue to run until they are
  48729. // interrupted or terminated.
  48730. //
  48731. // * cancelled_terminating - The Spot Fleet is canceled and its Spot Instances
  48732. // are terminating.
  48733. //
  48734. // * expired - The Spot Fleet request has expired. A subsequent event indicates
  48735. // that the instances were terminated, if the request was created with TerminateInstancesWithExpiration
  48736. // set.
  48737. //
  48738. // * modify_in_progress - A request to modify the Spot Fleet request was
  48739. // accepted and is in progress.
  48740. //
  48741. // * modify_successful - The Spot Fleet request was modified.
  48742. //
  48743. // * price_update - The price for a launch configuration was adjusted because
  48744. // it was too high. This change is permanent.
  48745. //
  48746. // * submitted - The Spot Fleet request is being evaluated and Amazon EC2
  48747. // is preparing to launch the target number of Spot Instances.
  48748. //
  48749. // The following are the instanceChange events:
  48750. //
  48751. // * launched - A request was fulfilled and a new instance was launched.
  48752. //
  48753. // * terminated - An instance was terminated by the user.
  48754. //
  48755. // The following are the Information events:
  48756. //
  48757. // * launchSpecUnusable - The price in a launch specification is not valid
  48758. // because it is below the Spot price or the Spot price is above the On-Demand
  48759. // price.
  48760. //
  48761. // * fleetProgressHalted - The price in every launch specification is not
  48762. // valid. A launch specification might become valid if the Spot price changes.
  48763. EventSubType *string `locationName:"eventSubType" type:"string"`
  48764. // The ID of the instance. This information is available only for instanceChange
  48765. // events.
  48766. InstanceId *string `locationName:"instanceId" type:"string"`
  48767. }
  48768. // String returns the string representation
  48769. func (s EventInformation) String() string {
  48770. return awsutil.Prettify(s)
  48771. }
  48772. // GoString returns the string representation
  48773. func (s EventInformation) GoString() string {
  48774. return s.String()
  48775. }
  48776. // SetEventDescription sets the EventDescription field's value.
  48777. func (s *EventInformation) SetEventDescription(v string) *EventInformation {
  48778. s.EventDescription = &v
  48779. return s
  48780. }
  48781. // SetEventSubType sets the EventSubType field's value.
  48782. func (s *EventInformation) SetEventSubType(v string) *EventInformation {
  48783. s.EventSubType = &v
  48784. return s
  48785. }
  48786. // SetInstanceId sets the InstanceId field's value.
  48787. func (s *EventInformation) SetInstanceId(v string) *EventInformation {
  48788. s.InstanceId = &v
  48789. return s
  48790. }
  48791. type ExportClientVpnClientCertificateRevocationListInput struct {
  48792. _ struct{} `type:"structure"`
  48793. // The ID of the Client VPN endpoint.
  48794. //
  48795. // ClientVpnEndpointId is a required field
  48796. ClientVpnEndpointId *string `type:"string" required:"true"`
  48797. // Checks whether you have the required permissions for the action, without
  48798. // actually making the request, and provides an error response. If you have
  48799. // the required permissions, the error response is DryRunOperation. Otherwise,
  48800. // it is UnauthorizedOperation.
  48801. DryRun *bool `type:"boolean"`
  48802. }
  48803. // String returns the string representation
  48804. func (s ExportClientVpnClientCertificateRevocationListInput) String() string {
  48805. return awsutil.Prettify(s)
  48806. }
  48807. // GoString returns the string representation
  48808. func (s ExportClientVpnClientCertificateRevocationListInput) GoString() string {
  48809. return s.String()
  48810. }
  48811. // Validate inspects the fields of the type to determine if they are valid.
  48812. func (s *ExportClientVpnClientCertificateRevocationListInput) Validate() error {
  48813. invalidParams := request.ErrInvalidParams{Context: "ExportClientVpnClientCertificateRevocationListInput"}
  48814. if s.ClientVpnEndpointId == nil {
  48815. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  48816. }
  48817. if invalidParams.Len() > 0 {
  48818. return invalidParams
  48819. }
  48820. return nil
  48821. }
  48822. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  48823. func (s *ExportClientVpnClientCertificateRevocationListInput) SetClientVpnEndpointId(v string) *ExportClientVpnClientCertificateRevocationListInput {
  48824. s.ClientVpnEndpointId = &v
  48825. return s
  48826. }
  48827. // SetDryRun sets the DryRun field's value.
  48828. func (s *ExportClientVpnClientCertificateRevocationListInput) SetDryRun(v bool) *ExportClientVpnClientCertificateRevocationListInput {
  48829. s.DryRun = &v
  48830. return s
  48831. }
  48832. type ExportClientVpnClientCertificateRevocationListOutput struct {
  48833. _ struct{} `type:"structure"`
  48834. // Information about the client certificate revocation list.
  48835. CertificateRevocationList *string `locationName:"certificateRevocationList" type:"string"`
  48836. // The current state of the client certificate revocation list.
  48837. Status *ClientCertificateRevocationListStatus `locationName:"status" type:"structure"`
  48838. }
  48839. // String returns the string representation
  48840. func (s ExportClientVpnClientCertificateRevocationListOutput) String() string {
  48841. return awsutil.Prettify(s)
  48842. }
  48843. // GoString returns the string representation
  48844. func (s ExportClientVpnClientCertificateRevocationListOutput) GoString() string {
  48845. return s.String()
  48846. }
  48847. // SetCertificateRevocationList sets the CertificateRevocationList field's value.
  48848. func (s *ExportClientVpnClientCertificateRevocationListOutput) SetCertificateRevocationList(v string) *ExportClientVpnClientCertificateRevocationListOutput {
  48849. s.CertificateRevocationList = &v
  48850. return s
  48851. }
  48852. // SetStatus sets the Status field's value.
  48853. func (s *ExportClientVpnClientCertificateRevocationListOutput) SetStatus(v *ClientCertificateRevocationListStatus) *ExportClientVpnClientCertificateRevocationListOutput {
  48854. s.Status = v
  48855. return s
  48856. }
  48857. type ExportClientVpnClientConfigurationInput struct {
  48858. _ struct{} `type:"structure"`
  48859. // The ID of the Client VPN endpoint.
  48860. //
  48861. // ClientVpnEndpointId is a required field
  48862. ClientVpnEndpointId *string `type:"string" required:"true"`
  48863. // Checks whether you have the required permissions for the action, without
  48864. // actually making the request, and provides an error response. If you have
  48865. // the required permissions, the error response is DryRunOperation. Otherwise,
  48866. // it is UnauthorizedOperation.
  48867. DryRun *bool `type:"boolean"`
  48868. }
  48869. // String returns the string representation
  48870. func (s ExportClientVpnClientConfigurationInput) String() string {
  48871. return awsutil.Prettify(s)
  48872. }
  48873. // GoString returns the string representation
  48874. func (s ExportClientVpnClientConfigurationInput) GoString() string {
  48875. return s.String()
  48876. }
  48877. // Validate inspects the fields of the type to determine if they are valid.
  48878. func (s *ExportClientVpnClientConfigurationInput) Validate() error {
  48879. invalidParams := request.ErrInvalidParams{Context: "ExportClientVpnClientConfigurationInput"}
  48880. if s.ClientVpnEndpointId == nil {
  48881. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  48882. }
  48883. if invalidParams.Len() > 0 {
  48884. return invalidParams
  48885. }
  48886. return nil
  48887. }
  48888. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  48889. func (s *ExportClientVpnClientConfigurationInput) SetClientVpnEndpointId(v string) *ExportClientVpnClientConfigurationInput {
  48890. s.ClientVpnEndpointId = &v
  48891. return s
  48892. }
  48893. // SetDryRun sets the DryRun field's value.
  48894. func (s *ExportClientVpnClientConfigurationInput) SetDryRun(v bool) *ExportClientVpnClientConfigurationInput {
  48895. s.DryRun = &v
  48896. return s
  48897. }
  48898. type ExportClientVpnClientConfigurationOutput struct {
  48899. _ struct{} `type:"structure"`
  48900. // The contents of the Client VPN endpoint configuration file.
  48901. ClientConfiguration *string `locationName:"clientConfiguration" type:"string"`
  48902. }
  48903. // String returns the string representation
  48904. func (s ExportClientVpnClientConfigurationOutput) String() string {
  48905. return awsutil.Prettify(s)
  48906. }
  48907. // GoString returns the string representation
  48908. func (s ExportClientVpnClientConfigurationOutput) GoString() string {
  48909. return s.String()
  48910. }
  48911. // SetClientConfiguration sets the ClientConfiguration field's value.
  48912. func (s *ExportClientVpnClientConfigurationOutput) SetClientConfiguration(v string) *ExportClientVpnClientConfigurationOutput {
  48913. s.ClientConfiguration = &v
  48914. return s
  48915. }
  48916. // Describes an instance export task.
  48917. type ExportTask struct {
  48918. _ struct{} `type:"structure"`
  48919. // A description of the resource being exported.
  48920. Description *string `locationName:"description" type:"string"`
  48921. // The ID of the export task.
  48922. ExportTaskId *string `locationName:"exportTaskId" type:"string"`
  48923. // Information about the export task.
  48924. ExportToS3Task *ExportToS3Task `locationName:"exportToS3" type:"structure"`
  48925. // Information about the instance to export.
  48926. InstanceExportDetails *InstanceExportDetails `locationName:"instanceExport" type:"structure"`
  48927. // The state of the export task.
  48928. State *string `locationName:"state" type:"string" enum:"ExportTaskState"`
  48929. // The status message related to the export task.
  48930. StatusMessage *string `locationName:"statusMessage" type:"string"`
  48931. }
  48932. // String returns the string representation
  48933. func (s ExportTask) String() string {
  48934. return awsutil.Prettify(s)
  48935. }
  48936. // GoString returns the string representation
  48937. func (s ExportTask) GoString() string {
  48938. return s.String()
  48939. }
  48940. // SetDescription sets the Description field's value.
  48941. func (s *ExportTask) SetDescription(v string) *ExportTask {
  48942. s.Description = &v
  48943. return s
  48944. }
  48945. // SetExportTaskId sets the ExportTaskId field's value.
  48946. func (s *ExportTask) SetExportTaskId(v string) *ExportTask {
  48947. s.ExportTaskId = &v
  48948. return s
  48949. }
  48950. // SetExportToS3Task sets the ExportToS3Task field's value.
  48951. func (s *ExportTask) SetExportToS3Task(v *ExportToS3Task) *ExportTask {
  48952. s.ExportToS3Task = v
  48953. return s
  48954. }
  48955. // SetInstanceExportDetails sets the InstanceExportDetails field's value.
  48956. func (s *ExportTask) SetInstanceExportDetails(v *InstanceExportDetails) *ExportTask {
  48957. s.InstanceExportDetails = v
  48958. return s
  48959. }
  48960. // SetState sets the State field's value.
  48961. func (s *ExportTask) SetState(v string) *ExportTask {
  48962. s.State = &v
  48963. return s
  48964. }
  48965. // SetStatusMessage sets the StatusMessage field's value.
  48966. func (s *ExportTask) SetStatusMessage(v string) *ExportTask {
  48967. s.StatusMessage = &v
  48968. return s
  48969. }
  48970. // Describes the format and location for an instance export task.
  48971. type ExportToS3Task struct {
  48972. _ struct{} `type:"structure"`
  48973. // The container format used to combine disk images with metadata (such as OVF).
  48974. // If absent, only the disk image is exported.
  48975. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"`
  48976. // The format for the exported image.
  48977. DiskImageFormat *string `locationName:"diskImageFormat" type:"string" enum:"DiskImageFormat"`
  48978. // The S3 bucket for the destination image. The destination bucket must exist
  48979. // and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
  48980. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  48981. // The encryption key for your S3 bucket.
  48982. S3Key *string `locationName:"s3Key" type:"string"`
  48983. }
  48984. // String returns the string representation
  48985. func (s ExportToS3Task) String() string {
  48986. return awsutil.Prettify(s)
  48987. }
  48988. // GoString returns the string representation
  48989. func (s ExportToS3Task) GoString() string {
  48990. return s.String()
  48991. }
  48992. // SetContainerFormat sets the ContainerFormat field's value.
  48993. func (s *ExportToS3Task) SetContainerFormat(v string) *ExportToS3Task {
  48994. s.ContainerFormat = &v
  48995. return s
  48996. }
  48997. // SetDiskImageFormat sets the DiskImageFormat field's value.
  48998. func (s *ExportToS3Task) SetDiskImageFormat(v string) *ExportToS3Task {
  48999. s.DiskImageFormat = &v
  49000. return s
  49001. }
  49002. // SetS3Bucket sets the S3Bucket field's value.
  49003. func (s *ExportToS3Task) SetS3Bucket(v string) *ExportToS3Task {
  49004. s.S3Bucket = &v
  49005. return s
  49006. }
  49007. // SetS3Key sets the S3Key field's value.
  49008. func (s *ExportToS3Task) SetS3Key(v string) *ExportToS3Task {
  49009. s.S3Key = &v
  49010. return s
  49011. }
  49012. // Describes an instance export task.
  49013. type ExportToS3TaskSpecification struct {
  49014. _ struct{} `type:"structure"`
  49015. // The container format used to combine disk images with metadata (such as OVF).
  49016. // If absent, only the disk image is exported.
  49017. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"`
  49018. // The format for the exported image.
  49019. DiskImageFormat *string `locationName:"diskImageFormat" type:"string" enum:"DiskImageFormat"`
  49020. // The S3 bucket for the destination image. The destination bucket must exist
  49021. // and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
  49022. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  49023. // The image is written to a single object in the S3 bucket at the S3 key s3prefix
  49024. // + exportTaskId + '.' + diskImageFormat.
  49025. S3Prefix *string `locationName:"s3Prefix" type:"string"`
  49026. }
  49027. // String returns the string representation
  49028. func (s ExportToS3TaskSpecification) String() string {
  49029. return awsutil.Prettify(s)
  49030. }
  49031. // GoString returns the string representation
  49032. func (s ExportToS3TaskSpecification) GoString() string {
  49033. return s.String()
  49034. }
  49035. // SetContainerFormat sets the ContainerFormat field's value.
  49036. func (s *ExportToS3TaskSpecification) SetContainerFormat(v string) *ExportToS3TaskSpecification {
  49037. s.ContainerFormat = &v
  49038. return s
  49039. }
  49040. // SetDiskImageFormat sets the DiskImageFormat field's value.
  49041. func (s *ExportToS3TaskSpecification) SetDiskImageFormat(v string) *ExportToS3TaskSpecification {
  49042. s.DiskImageFormat = &v
  49043. return s
  49044. }
  49045. // SetS3Bucket sets the S3Bucket field's value.
  49046. func (s *ExportToS3TaskSpecification) SetS3Bucket(v string) *ExportToS3TaskSpecification {
  49047. s.S3Bucket = &v
  49048. return s
  49049. }
  49050. // SetS3Prefix sets the S3Prefix field's value.
  49051. func (s *ExportToS3TaskSpecification) SetS3Prefix(v string) *ExportToS3TaskSpecification {
  49052. s.S3Prefix = &v
  49053. return s
  49054. }
  49055. type ExportTransitGatewayRoutesInput struct {
  49056. _ struct{} `type:"structure"`
  49057. // Checks whether you have the required permissions for the action, without
  49058. // actually making the request, and provides an error response. If you have
  49059. // the required permissions, the error response is DryRunOperation. Otherwise,
  49060. // it is UnauthorizedOperation.
  49061. DryRun *bool `type:"boolean"`
  49062. // One or more filters. The possible values are:
  49063. //
  49064. // * transit-gateway-route-destination-cidr-block - The CIDR range.
  49065. //
  49066. // * transit-gateway-route-state - The state of the route (active | blackhole).
  49067. //
  49068. // * transit-gateway-route-transit-gateway-attachment-id - The ID of the
  49069. // attachment.
  49070. //
  49071. // * transit-gateway-route-type - The route type (static | propagated).
  49072. //
  49073. // * transit-gateway-route-vpn-connection-id - The ID of the VPN connection.
  49074. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  49075. // The name of the S3 bucket.
  49076. //
  49077. // S3Bucket is a required field
  49078. S3Bucket *string `type:"string" required:"true"`
  49079. // The ID of the route table.
  49080. //
  49081. // TransitGatewayRouteTableId is a required field
  49082. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  49083. }
  49084. // String returns the string representation
  49085. func (s ExportTransitGatewayRoutesInput) String() string {
  49086. return awsutil.Prettify(s)
  49087. }
  49088. // GoString returns the string representation
  49089. func (s ExportTransitGatewayRoutesInput) GoString() string {
  49090. return s.String()
  49091. }
  49092. // Validate inspects the fields of the type to determine if they are valid.
  49093. func (s *ExportTransitGatewayRoutesInput) Validate() error {
  49094. invalidParams := request.ErrInvalidParams{Context: "ExportTransitGatewayRoutesInput"}
  49095. if s.S3Bucket == nil {
  49096. invalidParams.Add(request.NewErrParamRequired("S3Bucket"))
  49097. }
  49098. if s.TransitGatewayRouteTableId == nil {
  49099. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  49100. }
  49101. if invalidParams.Len() > 0 {
  49102. return invalidParams
  49103. }
  49104. return nil
  49105. }
  49106. // SetDryRun sets the DryRun field's value.
  49107. func (s *ExportTransitGatewayRoutesInput) SetDryRun(v bool) *ExportTransitGatewayRoutesInput {
  49108. s.DryRun = &v
  49109. return s
  49110. }
  49111. // SetFilters sets the Filters field's value.
  49112. func (s *ExportTransitGatewayRoutesInput) SetFilters(v []*Filter) *ExportTransitGatewayRoutesInput {
  49113. s.Filters = v
  49114. return s
  49115. }
  49116. // SetS3Bucket sets the S3Bucket field's value.
  49117. func (s *ExportTransitGatewayRoutesInput) SetS3Bucket(v string) *ExportTransitGatewayRoutesInput {
  49118. s.S3Bucket = &v
  49119. return s
  49120. }
  49121. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  49122. func (s *ExportTransitGatewayRoutesInput) SetTransitGatewayRouteTableId(v string) *ExportTransitGatewayRoutesInput {
  49123. s.TransitGatewayRouteTableId = &v
  49124. return s
  49125. }
  49126. type ExportTransitGatewayRoutesOutput struct {
  49127. _ struct{} `type:"structure"`
  49128. // The URL of the exported file in Amazon S3. For example, s3://bucket_name/VPCTransitGateway/TransitGatewayRouteTables/file_name.
  49129. S3Location *string `locationName:"s3Location" type:"string"`
  49130. }
  49131. // String returns the string representation
  49132. func (s ExportTransitGatewayRoutesOutput) String() string {
  49133. return awsutil.Prettify(s)
  49134. }
  49135. // GoString returns the string representation
  49136. func (s ExportTransitGatewayRoutesOutput) GoString() string {
  49137. return s.String()
  49138. }
  49139. // SetS3Location sets the S3Location field's value.
  49140. func (s *ExportTransitGatewayRoutesOutput) SetS3Location(v string) *ExportTransitGatewayRoutesOutput {
  49141. s.S3Location = &v
  49142. return s
  49143. }
  49144. // A filter name and value pair that is used to return a more specific list
  49145. // of results from a describe operation. Filters can be used to match a set
  49146. // of resources by specific criteria, such as tags, attributes, or IDs. The
  49147. // filters supported by a describe operation are documented with the describe
  49148. // operation. For example:
  49149. //
  49150. // * DescribeAvailabilityZones
  49151. //
  49152. // * DescribeImages
  49153. //
  49154. // * DescribeInstances
  49155. //
  49156. // * DescribeKeyPairs
  49157. //
  49158. // * DescribeSecurityGroups
  49159. //
  49160. // * DescribeSnapshots
  49161. //
  49162. // * DescribeSubnets
  49163. //
  49164. // * DescribeTags
  49165. //
  49166. // * DescribeVolumes
  49167. //
  49168. // * DescribeVpcs
  49169. type Filter struct {
  49170. _ struct{} `type:"structure"`
  49171. // The name of the filter. Filter names are case-sensitive.
  49172. Name *string `type:"string"`
  49173. // One or more filter values. Filter values are case-sensitive.
  49174. Values []*string `locationName:"Value" locationNameList:"item" type:"list"`
  49175. }
  49176. // String returns the string representation
  49177. func (s Filter) String() string {
  49178. return awsutil.Prettify(s)
  49179. }
  49180. // GoString returns the string representation
  49181. func (s Filter) GoString() string {
  49182. return s.String()
  49183. }
  49184. // SetName sets the Name field's value.
  49185. func (s *Filter) SetName(v string) *Filter {
  49186. s.Name = &v
  49187. return s
  49188. }
  49189. // SetValues sets the Values field's value.
  49190. func (s *Filter) SetValues(v []*string) *Filter {
  49191. s.Values = v
  49192. return s
  49193. }
  49194. // Describes an EC2 Fleet.
  49195. type FleetData struct {
  49196. _ struct{} `type:"structure"`
  49197. // The progress of the EC2 Fleet. If there is an error, the status is error.
  49198. // After all requests are placed, the status is pending_fulfillment. If the
  49199. // size of the EC2 Fleet is equal to or greater than its target capacity, the
  49200. // status is fulfilled. If the size of the EC2 Fleet is decreased, the status
  49201. // is pending_termination while instances are terminating.
  49202. ActivityStatus *string `locationName:"activityStatus" type:"string" enum:"FleetActivityStatus"`
  49203. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  49204. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  49205. //
  49206. // Constraints: Maximum 64 ASCII characters
  49207. ClientToken *string `locationName:"clientToken" type:"string"`
  49208. // The creation date and time of the EC2 Fleet.
  49209. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  49210. // Information about the instances that could not be launched by the fleet.
  49211. // Valid only when Type is set to instant.
  49212. Errors []*DescribeFleetError `locationName:"errorSet" locationNameList:"item" type:"list"`
  49213. // Indicates whether running instances should be terminated if the target capacity
  49214. // of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
  49215. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"FleetExcessCapacityTerminationPolicy"`
  49216. // The ID of the EC2 Fleet.
  49217. FleetId *string `locationName:"fleetId" type:"string"`
  49218. // The state of the EC2 Fleet.
  49219. FleetState *string `locationName:"fleetState" type:"string" enum:"FleetStateCode"`
  49220. // The number of units fulfilled by this request compared to the set target
  49221. // capacity.
  49222. FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"`
  49223. // The number of units fulfilled by this request compared to the set target
  49224. // On-Demand capacity.
  49225. FulfilledOnDemandCapacity *float64 `locationName:"fulfilledOnDemandCapacity" type:"double"`
  49226. // Information about the instances that were launched by the fleet. Valid only
  49227. // when Type is set to instant.
  49228. Instances []*DescribeFleetsInstances `locationName:"fleetInstanceSet" locationNameList:"item" type:"list"`
  49229. // The launch template and overrides.
  49230. LaunchTemplateConfigs []*FleetLaunchTemplateConfig `locationName:"launchTemplateConfigs" locationNameList:"item" type:"list"`
  49231. // The allocation strategy of On-Demand Instances in an EC2 Fleet.
  49232. OnDemandOptions *OnDemandOptions `locationName:"onDemandOptions" type:"structure"`
  49233. // Indicates whether EC2 Fleet should replace unhealthy instances.
  49234. ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"`
  49235. // The configuration of Spot Instances in an EC2 Fleet.
  49236. SpotOptions *SpotOptions `locationName:"spotOptions" type:"structure"`
  49237. // The tags for an EC2 Fleet resource.
  49238. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  49239. // The number of units to request. You can choose to set the target capacity
  49240. // in terms of instances or a performance characteristic that is important to
  49241. // your application workload, such as vCPUs, memory, or I/O. If the request
  49242. // type is maintain, you can specify a target capacity of 0 and add capacity
  49243. // later.
  49244. TargetCapacitySpecification *TargetCapacitySpecification `locationName:"targetCapacitySpecification" type:"structure"`
  49245. // Indicates whether running instances should be terminated when the EC2 Fleet
  49246. // expires.
  49247. TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"`
  49248. // The type of request. Indicates whether the EC2 Fleet only requests the target
  49249. // capacity, or also attempts to maintain it. If you request a certain target
  49250. // capacity, EC2 Fleet only places the required requests; it does not attempt
  49251. // to replenish instances if capacity is diminished, and does not submit requests
  49252. // in alternative capacity pools if capacity is unavailable. To maintain a certain
  49253. // target capacity, EC2 Fleet places the required requests to meet this target
  49254. // capacity. It also automatically replenishes any interrupted Spot Instances.
  49255. // Default: maintain.
  49256. Type *string `locationName:"type" type:"string" enum:"FleetType"`
  49257. // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  49258. // The default is to start fulfilling the request immediately.
  49259. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`
  49260. // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  49261. // At this point, no new instance requests are placed or able to fulfill the
  49262. // request. The default end date is 7 days from the current date.
  49263. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
  49264. }
  49265. // String returns the string representation
  49266. func (s FleetData) String() string {
  49267. return awsutil.Prettify(s)
  49268. }
  49269. // GoString returns the string representation
  49270. func (s FleetData) GoString() string {
  49271. return s.String()
  49272. }
  49273. // SetActivityStatus sets the ActivityStatus field's value.
  49274. func (s *FleetData) SetActivityStatus(v string) *FleetData {
  49275. s.ActivityStatus = &v
  49276. return s
  49277. }
  49278. // SetClientToken sets the ClientToken field's value.
  49279. func (s *FleetData) SetClientToken(v string) *FleetData {
  49280. s.ClientToken = &v
  49281. return s
  49282. }
  49283. // SetCreateTime sets the CreateTime field's value.
  49284. func (s *FleetData) SetCreateTime(v time.Time) *FleetData {
  49285. s.CreateTime = &v
  49286. return s
  49287. }
  49288. // SetErrors sets the Errors field's value.
  49289. func (s *FleetData) SetErrors(v []*DescribeFleetError) *FleetData {
  49290. s.Errors = v
  49291. return s
  49292. }
  49293. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  49294. func (s *FleetData) SetExcessCapacityTerminationPolicy(v string) *FleetData {
  49295. s.ExcessCapacityTerminationPolicy = &v
  49296. return s
  49297. }
  49298. // SetFleetId sets the FleetId field's value.
  49299. func (s *FleetData) SetFleetId(v string) *FleetData {
  49300. s.FleetId = &v
  49301. return s
  49302. }
  49303. // SetFleetState sets the FleetState field's value.
  49304. func (s *FleetData) SetFleetState(v string) *FleetData {
  49305. s.FleetState = &v
  49306. return s
  49307. }
  49308. // SetFulfilledCapacity sets the FulfilledCapacity field's value.
  49309. func (s *FleetData) SetFulfilledCapacity(v float64) *FleetData {
  49310. s.FulfilledCapacity = &v
  49311. return s
  49312. }
  49313. // SetFulfilledOnDemandCapacity sets the FulfilledOnDemandCapacity field's value.
  49314. func (s *FleetData) SetFulfilledOnDemandCapacity(v float64) *FleetData {
  49315. s.FulfilledOnDemandCapacity = &v
  49316. return s
  49317. }
  49318. // SetInstances sets the Instances field's value.
  49319. func (s *FleetData) SetInstances(v []*DescribeFleetsInstances) *FleetData {
  49320. s.Instances = v
  49321. return s
  49322. }
  49323. // SetLaunchTemplateConfigs sets the LaunchTemplateConfigs field's value.
  49324. func (s *FleetData) SetLaunchTemplateConfigs(v []*FleetLaunchTemplateConfig) *FleetData {
  49325. s.LaunchTemplateConfigs = v
  49326. return s
  49327. }
  49328. // SetOnDemandOptions sets the OnDemandOptions field's value.
  49329. func (s *FleetData) SetOnDemandOptions(v *OnDemandOptions) *FleetData {
  49330. s.OnDemandOptions = v
  49331. return s
  49332. }
  49333. // SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value.
  49334. func (s *FleetData) SetReplaceUnhealthyInstances(v bool) *FleetData {
  49335. s.ReplaceUnhealthyInstances = &v
  49336. return s
  49337. }
  49338. // SetSpotOptions sets the SpotOptions field's value.
  49339. func (s *FleetData) SetSpotOptions(v *SpotOptions) *FleetData {
  49340. s.SpotOptions = v
  49341. return s
  49342. }
  49343. // SetTags sets the Tags field's value.
  49344. func (s *FleetData) SetTags(v []*Tag) *FleetData {
  49345. s.Tags = v
  49346. return s
  49347. }
  49348. // SetTargetCapacitySpecification sets the TargetCapacitySpecification field's value.
  49349. func (s *FleetData) SetTargetCapacitySpecification(v *TargetCapacitySpecification) *FleetData {
  49350. s.TargetCapacitySpecification = v
  49351. return s
  49352. }
  49353. // SetTerminateInstancesWithExpiration sets the TerminateInstancesWithExpiration field's value.
  49354. func (s *FleetData) SetTerminateInstancesWithExpiration(v bool) *FleetData {
  49355. s.TerminateInstancesWithExpiration = &v
  49356. return s
  49357. }
  49358. // SetType sets the Type field's value.
  49359. func (s *FleetData) SetType(v string) *FleetData {
  49360. s.Type = &v
  49361. return s
  49362. }
  49363. // SetValidFrom sets the ValidFrom field's value.
  49364. func (s *FleetData) SetValidFrom(v time.Time) *FleetData {
  49365. s.ValidFrom = &v
  49366. return s
  49367. }
  49368. // SetValidUntil sets the ValidUntil field's value.
  49369. func (s *FleetData) SetValidUntil(v time.Time) *FleetData {
  49370. s.ValidUntil = &v
  49371. return s
  49372. }
  49373. // Describes a launch template and overrides.
  49374. type FleetLaunchTemplateConfig struct {
  49375. _ struct{} `type:"structure"`
  49376. // The launch template.
  49377. LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"`
  49378. // Any parameters that you specify override the same parameters in the launch
  49379. // template.
  49380. Overrides []*FleetLaunchTemplateOverrides `locationName:"overrides" locationNameList:"item" type:"list"`
  49381. }
  49382. // String returns the string representation
  49383. func (s FleetLaunchTemplateConfig) String() string {
  49384. return awsutil.Prettify(s)
  49385. }
  49386. // GoString returns the string representation
  49387. func (s FleetLaunchTemplateConfig) GoString() string {
  49388. return s.String()
  49389. }
  49390. // SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value.
  49391. func (s *FleetLaunchTemplateConfig) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecification) *FleetLaunchTemplateConfig {
  49392. s.LaunchTemplateSpecification = v
  49393. return s
  49394. }
  49395. // SetOverrides sets the Overrides field's value.
  49396. func (s *FleetLaunchTemplateConfig) SetOverrides(v []*FleetLaunchTemplateOverrides) *FleetLaunchTemplateConfig {
  49397. s.Overrides = v
  49398. return s
  49399. }
  49400. // Describes a launch template and overrides.
  49401. type FleetLaunchTemplateConfigRequest struct {
  49402. _ struct{} `type:"structure"`
  49403. // The launch template to use. You must specify either the launch template ID
  49404. // or launch template name in the request.
  49405. LaunchTemplateSpecification *FleetLaunchTemplateSpecificationRequest `type:"structure"`
  49406. // Any parameters that you specify override the same parameters in the launch
  49407. // template.
  49408. Overrides []*FleetLaunchTemplateOverridesRequest `locationNameList:"item" type:"list"`
  49409. }
  49410. // String returns the string representation
  49411. func (s FleetLaunchTemplateConfigRequest) String() string {
  49412. return awsutil.Prettify(s)
  49413. }
  49414. // GoString returns the string representation
  49415. func (s FleetLaunchTemplateConfigRequest) GoString() string {
  49416. return s.String()
  49417. }
  49418. // Validate inspects the fields of the type to determine if they are valid.
  49419. func (s *FleetLaunchTemplateConfigRequest) Validate() error {
  49420. invalidParams := request.ErrInvalidParams{Context: "FleetLaunchTemplateConfigRequest"}
  49421. if s.LaunchTemplateSpecification != nil {
  49422. if err := s.LaunchTemplateSpecification.Validate(); err != nil {
  49423. invalidParams.AddNested("LaunchTemplateSpecification", err.(request.ErrInvalidParams))
  49424. }
  49425. }
  49426. if invalidParams.Len() > 0 {
  49427. return invalidParams
  49428. }
  49429. return nil
  49430. }
  49431. // SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value.
  49432. func (s *FleetLaunchTemplateConfigRequest) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecificationRequest) *FleetLaunchTemplateConfigRequest {
  49433. s.LaunchTemplateSpecification = v
  49434. return s
  49435. }
  49436. // SetOverrides sets the Overrides field's value.
  49437. func (s *FleetLaunchTemplateConfigRequest) SetOverrides(v []*FleetLaunchTemplateOverridesRequest) *FleetLaunchTemplateConfigRequest {
  49438. s.Overrides = v
  49439. return s
  49440. }
  49441. // Describes overrides for a launch template.
  49442. type FleetLaunchTemplateOverrides struct {
  49443. _ struct{} `type:"structure"`
  49444. // The Availability Zone in which to launch the instances.
  49445. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  49446. // The instance type.
  49447. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  49448. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  49449. MaxPrice *string `locationName:"maxPrice" type:"string"`
  49450. // The location where the instance launched, if applicable.
  49451. Placement *PlacementResponse `locationName:"placement" type:"structure"`
  49452. // The priority for the launch template override. If AllocationStrategy is set
  49453. // to prioritized, EC2 Fleet uses priority to determine which launch template
  49454. // override to use first in fulfilling On-Demand capacity. The highest priority
  49455. // is launched first. Valid values are whole numbers starting at 0. The lower
  49456. // the number, the higher the priority. If no number is set, the override has
  49457. // the lowest priority.
  49458. Priority *float64 `locationName:"priority" type:"double"`
  49459. // The ID of the subnet in which to launch the instances.
  49460. SubnetId *string `locationName:"subnetId" type:"string"`
  49461. // The number of units provided by the specified instance type.
  49462. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
  49463. }
  49464. // String returns the string representation
  49465. func (s FleetLaunchTemplateOverrides) String() string {
  49466. return awsutil.Prettify(s)
  49467. }
  49468. // GoString returns the string representation
  49469. func (s FleetLaunchTemplateOverrides) GoString() string {
  49470. return s.String()
  49471. }
  49472. // SetAvailabilityZone sets the AvailabilityZone field's value.
  49473. func (s *FleetLaunchTemplateOverrides) SetAvailabilityZone(v string) *FleetLaunchTemplateOverrides {
  49474. s.AvailabilityZone = &v
  49475. return s
  49476. }
  49477. // SetInstanceType sets the InstanceType field's value.
  49478. func (s *FleetLaunchTemplateOverrides) SetInstanceType(v string) *FleetLaunchTemplateOverrides {
  49479. s.InstanceType = &v
  49480. return s
  49481. }
  49482. // SetMaxPrice sets the MaxPrice field's value.
  49483. func (s *FleetLaunchTemplateOverrides) SetMaxPrice(v string) *FleetLaunchTemplateOverrides {
  49484. s.MaxPrice = &v
  49485. return s
  49486. }
  49487. // SetPlacement sets the Placement field's value.
  49488. func (s *FleetLaunchTemplateOverrides) SetPlacement(v *PlacementResponse) *FleetLaunchTemplateOverrides {
  49489. s.Placement = v
  49490. return s
  49491. }
  49492. // SetPriority sets the Priority field's value.
  49493. func (s *FleetLaunchTemplateOverrides) SetPriority(v float64) *FleetLaunchTemplateOverrides {
  49494. s.Priority = &v
  49495. return s
  49496. }
  49497. // SetSubnetId sets the SubnetId field's value.
  49498. func (s *FleetLaunchTemplateOverrides) SetSubnetId(v string) *FleetLaunchTemplateOverrides {
  49499. s.SubnetId = &v
  49500. return s
  49501. }
  49502. // SetWeightedCapacity sets the WeightedCapacity field's value.
  49503. func (s *FleetLaunchTemplateOverrides) SetWeightedCapacity(v float64) *FleetLaunchTemplateOverrides {
  49504. s.WeightedCapacity = &v
  49505. return s
  49506. }
  49507. // Describes overrides for a launch template.
  49508. type FleetLaunchTemplateOverridesRequest struct {
  49509. _ struct{} `type:"structure"`
  49510. // The Availability Zone in which to launch the instances.
  49511. AvailabilityZone *string `type:"string"`
  49512. // The instance type.
  49513. InstanceType *string `type:"string" enum:"InstanceType"`
  49514. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  49515. MaxPrice *string `type:"string"`
  49516. // The location where the instance launched, if applicable.
  49517. Placement *Placement `type:"structure"`
  49518. // The priority for the launch template override. If AllocationStrategy is set
  49519. // to prioritized, EC2 Fleet uses priority to determine which launch template
  49520. // override to use first in fulfilling On-Demand capacity. The highest priority
  49521. // is launched first. Valid values are whole numbers starting at 0. The lower
  49522. // the number, the higher the priority. If no number is set, the launch template
  49523. // override has the lowest priority.
  49524. Priority *float64 `type:"double"`
  49525. // The ID of the subnet in which to launch the instances.
  49526. SubnetId *string `type:"string"`
  49527. // The number of units provided by the specified instance type.
  49528. WeightedCapacity *float64 `type:"double"`
  49529. }
  49530. // String returns the string representation
  49531. func (s FleetLaunchTemplateOverridesRequest) String() string {
  49532. return awsutil.Prettify(s)
  49533. }
  49534. // GoString returns the string representation
  49535. func (s FleetLaunchTemplateOverridesRequest) GoString() string {
  49536. return s.String()
  49537. }
  49538. // SetAvailabilityZone sets the AvailabilityZone field's value.
  49539. func (s *FleetLaunchTemplateOverridesRequest) SetAvailabilityZone(v string) *FleetLaunchTemplateOverridesRequest {
  49540. s.AvailabilityZone = &v
  49541. return s
  49542. }
  49543. // SetInstanceType sets the InstanceType field's value.
  49544. func (s *FleetLaunchTemplateOverridesRequest) SetInstanceType(v string) *FleetLaunchTemplateOverridesRequest {
  49545. s.InstanceType = &v
  49546. return s
  49547. }
  49548. // SetMaxPrice sets the MaxPrice field's value.
  49549. func (s *FleetLaunchTemplateOverridesRequest) SetMaxPrice(v string) *FleetLaunchTemplateOverridesRequest {
  49550. s.MaxPrice = &v
  49551. return s
  49552. }
  49553. // SetPlacement sets the Placement field's value.
  49554. func (s *FleetLaunchTemplateOverridesRequest) SetPlacement(v *Placement) *FleetLaunchTemplateOverridesRequest {
  49555. s.Placement = v
  49556. return s
  49557. }
  49558. // SetPriority sets the Priority field's value.
  49559. func (s *FleetLaunchTemplateOverridesRequest) SetPriority(v float64) *FleetLaunchTemplateOverridesRequest {
  49560. s.Priority = &v
  49561. return s
  49562. }
  49563. // SetSubnetId sets the SubnetId field's value.
  49564. func (s *FleetLaunchTemplateOverridesRequest) SetSubnetId(v string) *FleetLaunchTemplateOverridesRequest {
  49565. s.SubnetId = &v
  49566. return s
  49567. }
  49568. // SetWeightedCapacity sets the WeightedCapacity field's value.
  49569. func (s *FleetLaunchTemplateOverridesRequest) SetWeightedCapacity(v float64) *FleetLaunchTemplateOverridesRequest {
  49570. s.WeightedCapacity = &v
  49571. return s
  49572. }
  49573. // Describes a launch template.
  49574. type FleetLaunchTemplateSpecification struct {
  49575. _ struct{} `type:"structure"`
  49576. // The ID of the launch template. You must specify either a template ID or a
  49577. // template name.
  49578. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  49579. // The name of the launch template. You must specify either a template name
  49580. // or a template ID.
  49581. LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`
  49582. // The version number of the launch template. You must specify a version number.
  49583. Version *string `locationName:"version" type:"string"`
  49584. }
  49585. // String returns the string representation
  49586. func (s FleetLaunchTemplateSpecification) String() string {
  49587. return awsutil.Prettify(s)
  49588. }
  49589. // GoString returns the string representation
  49590. func (s FleetLaunchTemplateSpecification) GoString() string {
  49591. return s.String()
  49592. }
  49593. // Validate inspects the fields of the type to determine if they are valid.
  49594. func (s *FleetLaunchTemplateSpecification) Validate() error {
  49595. invalidParams := request.ErrInvalidParams{Context: "FleetLaunchTemplateSpecification"}
  49596. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  49597. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  49598. }
  49599. if invalidParams.Len() > 0 {
  49600. return invalidParams
  49601. }
  49602. return nil
  49603. }
  49604. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  49605. func (s *FleetLaunchTemplateSpecification) SetLaunchTemplateId(v string) *FleetLaunchTemplateSpecification {
  49606. s.LaunchTemplateId = &v
  49607. return s
  49608. }
  49609. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  49610. func (s *FleetLaunchTemplateSpecification) SetLaunchTemplateName(v string) *FleetLaunchTemplateSpecification {
  49611. s.LaunchTemplateName = &v
  49612. return s
  49613. }
  49614. // SetVersion sets the Version field's value.
  49615. func (s *FleetLaunchTemplateSpecification) SetVersion(v string) *FleetLaunchTemplateSpecification {
  49616. s.Version = &v
  49617. return s
  49618. }
  49619. // The launch template to use. You must specify either the launch template ID
  49620. // or launch template name in the request.
  49621. type FleetLaunchTemplateSpecificationRequest struct {
  49622. _ struct{} `type:"structure"`
  49623. // The ID of the launch template.
  49624. LaunchTemplateId *string `type:"string"`
  49625. // The name of the launch template.
  49626. LaunchTemplateName *string `min:"3" type:"string"`
  49627. // The version number of the launch template.
  49628. Version *string `type:"string"`
  49629. }
  49630. // String returns the string representation
  49631. func (s FleetLaunchTemplateSpecificationRequest) String() string {
  49632. return awsutil.Prettify(s)
  49633. }
  49634. // GoString returns the string representation
  49635. func (s FleetLaunchTemplateSpecificationRequest) GoString() string {
  49636. return s.String()
  49637. }
  49638. // Validate inspects the fields of the type to determine if they are valid.
  49639. func (s *FleetLaunchTemplateSpecificationRequest) Validate() error {
  49640. invalidParams := request.ErrInvalidParams{Context: "FleetLaunchTemplateSpecificationRequest"}
  49641. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  49642. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  49643. }
  49644. if invalidParams.Len() > 0 {
  49645. return invalidParams
  49646. }
  49647. return nil
  49648. }
  49649. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  49650. func (s *FleetLaunchTemplateSpecificationRequest) SetLaunchTemplateId(v string) *FleetLaunchTemplateSpecificationRequest {
  49651. s.LaunchTemplateId = &v
  49652. return s
  49653. }
  49654. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  49655. func (s *FleetLaunchTemplateSpecificationRequest) SetLaunchTemplateName(v string) *FleetLaunchTemplateSpecificationRequest {
  49656. s.LaunchTemplateName = &v
  49657. return s
  49658. }
  49659. // SetVersion sets the Version field's value.
  49660. func (s *FleetLaunchTemplateSpecificationRequest) SetVersion(v string) *FleetLaunchTemplateSpecificationRequest {
  49661. s.Version = &v
  49662. return s
  49663. }
  49664. // Describes a flow log.
  49665. type FlowLog struct {
  49666. _ struct{} `type:"structure"`
  49667. // The date and time the flow log was created.
  49668. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  49669. // Information about the error that occurred. Rate limited indicates that CloudWatch
  49670. // Logs throttling has been applied for one or more network interfaces, or that
  49671. // you've reached the limit on the number of log groups that you can create.
  49672. // Access error indicates that the IAM role associated with the flow log does
  49673. // not have sufficient permissions to publish to CloudWatch Logs. Unknown error
  49674. // indicates an internal error.
  49675. DeliverLogsErrorMessage *string `locationName:"deliverLogsErrorMessage" type:"string"`
  49676. // The ARN of the IAM role that posts logs to CloudWatch Logs.
  49677. DeliverLogsPermissionArn *string `locationName:"deliverLogsPermissionArn" type:"string"`
  49678. // The status of the logs delivery (SUCCESS | FAILED).
  49679. DeliverLogsStatus *string `locationName:"deliverLogsStatus" type:"string"`
  49680. // The flow log ID.
  49681. FlowLogId *string `locationName:"flowLogId" type:"string"`
  49682. // The status of the flow log (ACTIVE).
  49683. FlowLogStatus *string `locationName:"flowLogStatus" type:"string"`
  49684. // Specifies the destination to which the flow log data is published. Flow log
  49685. // data can be published to an CloudWatch Logs log group or an Amazon S3 bucket.
  49686. // If the flow log publishes to CloudWatch Logs, this element indicates the
  49687. // Amazon Resource Name (ARN) of the CloudWatch Logs log group to which the
  49688. // data is published. If the flow log publishes to Amazon S3, this element indicates
  49689. // the ARN of the Amazon S3 bucket to which the data is published.
  49690. LogDestination *string `locationName:"logDestination" type:"string"`
  49691. // Specifies the type of destination to which the flow log data is published.
  49692. // Flow log data can be published to CloudWatch Logs or Amazon S3.
  49693. LogDestinationType *string `locationName:"logDestinationType" type:"string" enum:"LogDestinationType"`
  49694. // The name of the flow log group.
  49695. LogGroupName *string `locationName:"logGroupName" type:"string"`
  49696. // The ID of the resource on which the flow log was created.
  49697. ResourceId *string `locationName:"resourceId" type:"string"`
  49698. // The type of traffic captured for the flow log.
  49699. TrafficType *string `locationName:"trafficType" type:"string" enum:"TrafficType"`
  49700. }
  49701. // String returns the string representation
  49702. func (s FlowLog) String() string {
  49703. return awsutil.Prettify(s)
  49704. }
  49705. // GoString returns the string representation
  49706. func (s FlowLog) GoString() string {
  49707. return s.String()
  49708. }
  49709. // SetCreationTime sets the CreationTime field's value.
  49710. func (s *FlowLog) SetCreationTime(v time.Time) *FlowLog {
  49711. s.CreationTime = &v
  49712. return s
  49713. }
  49714. // SetDeliverLogsErrorMessage sets the DeliverLogsErrorMessage field's value.
  49715. func (s *FlowLog) SetDeliverLogsErrorMessage(v string) *FlowLog {
  49716. s.DeliverLogsErrorMessage = &v
  49717. return s
  49718. }
  49719. // SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value.
  49720. func (s *FlowLog) SetDeliverLogsPermissionArn(v string) *FlowLog {
  49721. s.DeliverLogsPermissionArn = &v
  49722. return s
  49723. }
  49724. // SetDeliverLogsStatus sets the DeliverLogsStatus field's value.
  49725. func (s *FlowLog) SetDeliverLogsStatus(v string) *FlowLog {
  49726. s.DeliverLogsStatus = &v
  49727. return s
  49728. }
  49729. // SetFlowLogId sets the FlowLogId field's value.
  49730. func (s *FlowLog) SetFlowLogId(v string) *FlowLog {
  49731. s.FlowLogId = &v
  49732. return s
  49733. }
  49734. // SetFlowLogStatus sets the FlowLogStatus field's value.
  49735. func (s *FlowLog) SetFlowLogStatus(v string) *FlowLog {
  49736. s.FlowLogStatus = &v
  49737. return s
  49738. }
  49739. // SetLogDestination sets the LogDestination field's value.
  49740. func (s *FlowLog) SetLogDestination(v string) *FlowLog {
  49741. s.LogDestination = &v
  49742. return s
  49743. }
  49744. // SetLogDestinationType sets the LogDestinationType field's value.
  49745. func (s *FlowLog) SetLogDestinationType(v string) *FlowLog {
  49746. s.LogDestinationType = &v
  49747. return s
  49748. }
  49749. // SetLogGroupName sets the LogGroupName field's value.
  49750. func (s *FlowLog) SetLogGroupName(v string) *FlowLog {
  49751. s.LogGroupName = &v
  49752. return s
  49753. }
  49754. // SetResourceId sets the ResourceId field's value.
  49755. func (s *FlowLog) SetResourceId(v string) *FlowLog {
  49756. s.ResourceId = &v
  49757. return s
  49758. }
  49759. // SetTrafficType sets the TrafficType field's value.
  49760. func (s *FlowLog) SetTrafficType(v string) *FlowLog {
  49761. s.TrafficType = &v
  49762. return s
  49763. }
  49764. // Describes an Amazon FPGA image (AFI).
  49765. type FpgaImage struct {
  49766. _ struct{} `type:"structure"`
  49767. // The date and time the AFI was created.
  49768. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  49769. // The description of the AFI.
  49770. Description *string `locationName:"description" type:"string"`
  49771. // The global FPGA image identifier (AGFI ID).
  49772. FpgaImageGlobalId *string `locationName:"fpgaImageGlobalId" type:"string"`
  49773. // The FPGA image identifier (AFI ID).
  49774. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  49775. // The name of the AFI.
  49776. Name *string `locationName:"name" type:"string"`
  49777. // The alias of the AFI owner. Possible values include self, amazon, and aws-marketplace.
  49778. OwnerAlias *string `locationName:"ownerAlias" type:"string"`
  49779. // The AWS account ID of the AFI owner.
  49780. OwnerId *string `locationName:"ownerId" type:"string"`
  49781. // Information about the PCI bus.
  49782. PciId *PciId `locationName:"pciId" type:"structure"`
  49783. // The product codes for the AFI.
  49784. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  49785. // Indicates whether the AFI is public.
  49786. Public *bool `locationName:"public" type:"boolean"`
  49787. // The version of the AWS Shell that was used to create the bitstream.
  49788. ShellVersion *string `locationName:"shellVersion" type:"string"`
  49789. // Information about the state of the AFI.
  49790. State *FpgaImageState `locationName:"state" type:"structure"`
  49791. // Any tags assigned to the AFI.
  49792. Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list"`
  49793. // The time of the most recent update to the AFI.
  49794. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp"`
  49795. }
  49796. // String returns the string representation
  49797. func (s FpgaImage) String() string {
  49798. return awsutil.Prettify(s)
  49799. }
  49800. // GoString returns the string representation
  49801. func (s FpgaImage) GoString() string {
  49802. return s.String()
  49803. }
  49804. // SetCreateTime sets the CreateTime field's value.
  49805. func (s *FpgaImage) SetCreateTime(v time.Time) *FpgaImage {
  49806. s.CreateTime = &v
  49807. return s
  49808. }
  49809. // SetDescription sets the Description field's value.
  49810. func (s *FpgaImage) SetDescription(v string) *FpgaImage {
  49811. s.Description = &v
  49812. return s
  49813. }
  49814. // SetFpgaImageGlobalId sets the FpgaImageGlobalId field's value.
  49815. func (s *FpgaImage) SetFpgaImageGlobalId(v string) *FpgaImage {
  49816. s.FpgaImageGlobalId = &v
  49817. return s
  49818. }
  49819. // SetFpgaImageId sets the FpgaImageId field's value.
  49820. func (s *FpgaImage) SetFpgaImageId(v string) *FpgaImage {
  49821. s.FpgaImageId = &v
  49822. return s
  49823. }
  49824. // SetName sets the Name field's value.
  49825. func (s *FpgaImage) SetName(v string) *FpgaImage {
  49826. s.Name = &v
  49827. return s
  49828. }
  49829. // SetOwnerAlias sets the OwnerAlias field's value.
  49830. func (s *FpgaImage) SetOwnerAlias(v string) *FpgaImage {
  49831. s.OwnerAlias = &v
  49832. return s
  49833. }
  49834. // SetOwnerId sets the OwnerId field's value.
  49835. func (s *FpgaImage) SetOwnerId(v string) *FpgaImage {
  49836. s.OwnerId = &v
  49837. return s
  49838. }
  49839. // SetPciId sets the PciId field's value.
  49840. func (s *FpgaImage) SetPciId(v *PciId) *FpgaImage {
  49841. s.PciId = v
  49842. return s
  49843. }
  49844. // SetProductCodes sets the ProductCodes field's value.
  49845. func (s *FpgaImage) SetProductCodes(v []*ProductCode) *FpgaImage {
  49846. s.ProductCodes = v
  49847. return s
  49848. }
  49849. // SetPublic sets the Public field's value.
  49850. func (s *FpgaImage) SetPublic(v bool) *FpgaImage {
  49851. s.Public = &v
  49852. return s
  49853. }
  49854. // SetShellVersion sets the ShellVersion field's value.
  49855. func (s *FpgaImage) SetShellVersion(v string) *FpgaImage {
  49856. s.ShellVersion = &v
  49857. return s
  49858. }
  49859. // SetState sets the State field's value.
  49860. func (s *FpgaImage) SetState(v *FpgaImageState) *FpgaImage {
  49861. s.State = v
  49862. return s
  49863. }
  49864. // SetTags sets the Tags field's value.
  49865. func (s *FpgaImage) SetTags(v []*Tag) *FpgaImage {
  49866. s.Tags = v
  49867. return s
  49868. }
  49869. // SetUpdateTime sets the UpdateTime field's value.
  49870. func (s *FpgaImage) SetUpdateTime(v time.Time) *FpgaImage {
  49871. s.UpdateTime = &v
  49872. return s
  49873. }
  49874. // Describes an Amazon FPGA image (AFI) attribute.
  49875. type FpgaImageAttribute struct {
  49876. _ struct{} `type:"structure"`
  49877. // The description of the AFI.
  49878. Description *string `locationName:"description" type:"string"`
  49879. // The ID of the AFI.
  49880. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  49881. // One or more load permissions.
  49882. LoadPermissions []*LoadPermission `locationName:"loadPermissions" locationNameList:"item" type:"list"`
  49883. // The name of the AFI.
  49884. Name *string `locationName:"name" type:"string"`
  49885. // One or more product codes.
  49886. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  49887. }
  49888. // String returns the string representation
  49889. func (s FpgaImageAttribute) String() string {
  49890. return awsutil.Prettify(s)
  49891. }
  49892. // GoString returns the string representation
  49893. func (s FpgaImageAttribute) GoString() string {
  49894. return s.String()
  49895. }
  49896. // SetDescription sets the Description field's value.
  49897. func (s *FpgaImageAttribute) SetDescription(v string) *FpgaImageAttribute {
  49898. s.Description = &v
  49899. return s
  49900. }
  49901. // SetFpgaImageId sets the FpgaImageId field's value.
  49902. func (s *FpgaImageAttribute) SetFpgaImageId(v string) *FpgaImageAttribute {
  49903. s.FpgaImageId = &v
  49904. return s
  49905. }
  49906. // SetLoadPermissions sets the LoadPermissions field's value.
  49907. func (s *FpgaImageAttribute) SetLoadPermissions(v []*LoadPermission) *FpgaImageAttribute {
  49908. s.LoadPermissions = v
  49909. return s
  49910. }
  49911. // SetName sets the Name field's value.
  49912. func (s *FpgaImageAttribute) SetName(v string) *FpgaImageAttribute {
  49913. s.Name = &v
  49914. return s
  49915. }
  49916. // SetProductCodes sets the ProductCodes field's value.
  49917. func (s *FpgaImageAttribute) SetProductCodes(v []*ProductCode) *FpgaImageAttribute {
  49918. s.ProductCodes = v
  49919. return s
  49920. }
  49921. // Describes the state of the bitstream generation process for an Amazon FPGA
  49922. // image (AFI).
  49923. type FpgaImageState struct {
  49924. _ struct{} `type:"structure"`
  49925. // The state. The following are the possible values:
  49926. //
  49927. // * pending - AFI bitstream generation is in progress.
  49928. //
  49929. // * available - The AFI is available for use.
  49930. //
  49931. // * failed - AFI bitstream generation failed.
  49932. //
  49933. // * unavailable - The AFI is no longer available for use.
  49934. Code *string `locationName:"code" type:"string" enum:"FpgaImageStateCode"`
  49935. // If the state is failed, this is the error message.
  49936. Message *string `locationName:"message" type:"string"`
  49937. }
  49938. // String returns the string representation
  49939. func (s FpgaImageState) String() string {
  49940. return awsutil.Prettify(s)
  49941. }
  49942. // GoString returns the string representation
  49943. func (s FpgaImageState) GoString() string {
  49944. return s.String()
  49945. }
  49946. // SetCode sets the Code field's value.
  49947. func (s *FpgaImageState) SetCode(v string) *FpgaImageState {
  49948. s.Code = &v
  49949. return s
  49950. }
  49951. // SetMessage sets the Message field's value.
  49952. func (s *FpgaImageState) SetMessage(v string) *FpgaImageState {
  49953. s.Message = &v
  49954. return s
  49955. }
  49956. type GetConsoleOutputInput struct {
  49957. _ struct{} `type:"structure"`
  49958. // Checks whether you have the required permissions for the action, without
  49959. // actually making the request, and provides an error response. If you have
  49960. // the required permissions, the error response is DryRunOperation. Otherwise,
  49961. // it is UnauthorizedOperation.
  49962. DryRun *bool `locationName:"dryRun" type:"boolean"`
  49963. // The ID of the instance.
  49964. //
  49965. // InstanceId is a required field
  49966. InstanceId *string `type:"string" required:"true"`
  49967. // When enabled, retrieves the latest console output for the instance.
  49968. //
  49969. // Default: disabled (false)
  49970. Latest *bool `type:"boolean"`
  49971. }
  49972. // String returns the string representation
  49973. func (s GetConsoleOutputInput) String() string {
  49974. return awsutil.Prettify(s)
  49975. }
  49976. // GoString returns the string representation
  49977. func (s GetConsoleOutputInput) GoString() string {
  49978. return s.String()
  49979. }
  49980. // Validate inspects the fields of the type to determine if they are valid.
  49981. func (s *GetConsoleOutputInput) Validate() error {
  49982. invalidParams := request.ErrInvalidParams{Context: "GetConsoleOutputInput"}
  49983. if s.InstanceId == nil {
  49984. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  49985. }
  49986. if invalidParams.Len() > 0 {
  49987. return invalidParams
  49988. }
  49989. return nil
  49990. }
  49991. // SetDryRun sets the DryRun field's value.
  49992. func (s *GetConsoleOutputInput) SetDryRun(v bool) *GetConsoleOutputInput {
  49993. s.DryRun = &v
  49994. return s
  49995. }
  49996. // SetInstanceId sets the InstanceId field's value.
  49997. func (s *GetConsoleOutputInput) SetInstanceId(v string) *GetConsoleOutputInput {
  49998. s.InstanceId = &v
  49999. return s
  50000. }
  50001. // SetLatest sets the Latest field's value.
  50002. func (s *GetConsoleOutputInput) SetLatest(v bool) *GetConsoleOutputInput {
  50003. s.Latest = &v
  50004. return s
  50005. }
  50006. type GetConsoleOutputOutput struct {
  50007. _ struct{} `type:"structure"`
  50008. // The ID of the instance.
  50009. InstanceId *string `locationName:"instanceId" type:"string"`
  50010. // The console output, base64-encoded. If you are using a command line tool,
  50011. // the tool decodes the output for you.
  50012. Output *string `locationName:"output" type:"string"`
  50013. // The time at which the output was last updated.
  50014. Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
  50015. }
  50016. // String returns the string representation
  50017. func (s GetConsoleOutputOutput) String() string {
  50018. return awsutil.Prettify(s)
  50019. }
  50020. // GoString returns the string representation
  50021. func (s GetConsoleOutputOutput) GoString() string {
  50022. return s.String()
  50023. }
  50024. // SetInstanceId sets the InstanceId field's value.
  50025. func (s *GetConsoleOutputOutput) SetInstanceId(v string) *GetConsoleOutputOutput {
  50026. s.InstanceId = &v
  50027. return s
  50028. }
  50029. // SetOutput sets the Output field's value.
  50030. func (s *GetConsoleOutputOutput) SetOutput(v string) *GetConsoleOutputOutput {
  50031. s.Output = &v
  50032. return s
  50033. }
  50034. // SetTimestamp sets the Timestamp field's value.
  50035. func (s *GetConsoleOutputOutput) SetTimestamp(v time.Time) *GetConsoleOutputOutput {
  50036. s.Timestamp = &v
  50037. return s
  50038. }
  50039. type GetConsoleScreenshotInput struct {
  50040. _ struct{} `type:"structure"`
  50041. // Checks whether you have the required permissions for the action, without
  50042. // actually making the request, and provides an error response. If you have
  50043. // the required permissions, the error response is DryRunOperation. Otherwise,
  50044. // it is UnauthorizedOperation.
  50045. DryRun *bool `type:"boolean"`
  50046. // The ID of the instance.
  50047. //
  50048. // InstanceId is a required field
  50049. InstanceId *string `type:"string" required:"true"`
  50050. // When set to true, acts as keystroke input and wakes up an instance that's
  50051. // in standby or "sleep" mode.
  50052. WakeUp *bool `type:"boolean"`
  50053. }
  50054. // String returns the string representation
  50055. func (s GetConsoleScreenshotInput) String() string {
  50056. return awsutil.Prettify(s)
  50057. }
  50058. // GoString returns the string representation
  50059. func (s GetConsoleScreenshotInput) GoString() string {
  50060. return s.String()
  50061. }
  50062. // Validate inspects the fields of the type to determine if they are valid.
  50063. func (s *GetConsoleScreenshotInput) Validate() error {
  50064. invalidParams := request.ErrInvalidParams{Context: "GetConsoleScreenshotInput"}
  50065. if s.InstanceId == nil {
  50066. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  50067. }
  50068. if invalidParams.Len() > 0 {
  50069. return invalidParams
  50070. }
  50071. return nil
  50072. }
  50073. // SetDryRun sets the DryRun field's value.
  50074. func (s *GetConsoleScreenshotInput) SetDryRun(v bool) *GetConsoleScreenshotInput {
  50075. s.DryRun = &v
  50076. return s
  50077. }
  50078. // SetInstanceId sets the InstanceId field's value.
  50079. func (s *GetConsoleScreenshotInput) SetInstanceId(v string) *GetConsoleScreenshotInput {
  50080. s.InstanceId = &v
  50081. return s
  50082. }
  50083. // SetWakeUp sets the WakeUp field's value.
  50084. func (s *GetConsoleScreenshotInput) SetWakeUp(v bool) *GetConsoleScreenshotInput {
  50085. s.WakeUp = &v
  50086. return s
  50087. }
  50088. type GetConsoleScreenshotOutput struct {
  50089. _ struct{} `type:"structure"`
  50090. // The data that comprises the image.
  50091. ImageData *string `locationName:"imageData" type:"string"`
  50092. // The ID of the instance.
  50093. InstanceId *string `locationName:"instanceId" type:"string"`
  50094. }
  50095. // String returns the string representation
  50096. func (s GetConsoleScreenshotOutput) String() string {
  50097. return awsutil.Prettify(s)
  50098. }
  50099. // GoString returns the string representation
  50100. func (s GetConsoleScreenshotOutput) GoString() string {
  50101. return s.String()
  50102. }
  50103. // SetImageData sets the ImageData field's value.
  50104. func (s *GetConsoleScreenshotOutput) SetImageData(v string) *GetConsoleScreenshotOutput {
  50105. s.ImageData = &v
  50106. return s
  50107. }
  50108. // SetInstanceId sets the InstanceId field's value.
  50109. func (s *GetConsoleScreenshotOutput) SetInstanceId(v string) *GetConsoleScreenshotOutput {
  50110. s.InstanceId = &v
  50111. return s
  50112. }
  50113. type GetHostReservationPurchasePreviewInput struct {
  50114. _ struct{} `type:"structure"`
  50115. // The IDs of the Dedicated Hosts with which the reservation is associated.
  50116. //
  50117. // HostIdSet is a required field
  50118. HostIdSet []*string `locationNameList:"item" type:"list" required:"true"`
  50119. // The offering ID of the reservation.
  50120. //
  50121. // OfferingId is a required field
  50122. OfferingId *string `type:"string" required:"true"`
  50123. }
  50124. // String returns the string representation
  50125. func (s GetHostReservationPurchasePreviewInput) String() string {
  50126. return awsutil.Prettify(s)
  50127. }
  50128. // GoString returns the string representation
  50129. func (s GetHostReservationPurchasePreviewInput) GoString() string {
  50130. return s.String()
  50131. }
  50132. // Validate inspects the fields of the type to determine if they are valid.
  50133. func (s *GetHostReservationPurchasePreviewInput) Validate() error {
  50134. invalidParams := request.ErrInvalidParams{Context: "GetHostReservationPurchasePreviewInput"}
  50135. if s.HostIdSet == nil {
  50136. invalidParams.Add(request.NewErrParamRequired("HostIdSet"))
  50137. }
  50138. if s.OfferingId == nil {
  50139. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  50140. }
  50141. if invalidParams.Len() > 0 {
  50142. return invalidParams
  50143. }
  50144. return nil
  50145. }
  50146. // SetHostIdSet sets the HostIdSet field's value.
  50147. func (s *GetHostReservationPurchasePreviewInput) SetHostIdSet(v []*string) *GetHostReservationPurchasePreviewInput {
  50148. s.HostIdSet = v
  50149. return s
  50150. }
  50151. // SetOfferingId sets the OfferingId field's value.
  50152. func (s *GetHostReservationPurchasePreviewInput) SetOfferingId(v string) *GetHostReservationPurchasePreviewInput {
  50153. s.OfferingId = &v
  50154. return s
  50155. }
  50156. type GetHostReservationPurchasePreviewOutput struct {
  50157. _ struct{} `type:"structure"`
  50158. // The currency in which the totalUpfrontPrice and totalHourlyPrice amounts
  50159. // are specified. At this time, the only supported currency is USD.
  50160. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  50161. // The purchase information of the Dedicated Host reservation and the Dedicated
  50162. // Hosts associated with it.
  50163. Purchase []*Purchase `locationName:"purchase" locationNameList:"item" type:"list"`
  50164. // The potential total hourly price of the reservation per hour.
  50165. TotalHourlyPrice *string `locationName:"totalHourlyPrice" type:"string"`
  50166. // The potential total upfront price. This is billed immediately.
  50167. TotalUpfrontPrice *string `locationName:"totalUpfrontPrice" type:"string"`
  50168. }
  50169. // String returns the string representation
  50170. func (s GetHostReservationPurchasePreviewOutput) String() string {
  50171. return awsutil.Prettify(s)
  50172. }
  50173. // GoString returns the string representation
  50174. func (s GetHostReservationPurchasePreviewOutput) GoString() string {
  50175. return s.String()
  50176. }
  50177. // SetCurrencyCode sets the CurrencyCode field's value.
  50178. func (s *GetHostReservationPurchasePreviewOutput) SetCurrencyCode(v string) *GetHostReservationPurchasePreviewOutput {
  50179. s.CurrencyCode = &v
  50180. return s
  50181. }
  50182. // SetPurchase sets the Purchase field's value.
  50183. func (s *GetHostReservationPurchasePreviewOutput) SetPurchase(v []*Purchase) *GetHostReservationPurchasePreviewOutput {
  50184. s.Purchase = v
  50185. return s
  50186. }
  50187. // SetTotalHourlyPrice sets the TotalHourlyPrice field's value.
  50188. func (s *GetHostReservationPurchasePreviewOutput) SetTotalHourlyPrice(v string) *GetHostReservationPurchasePreviewOutput {
  50189. s.TotalHourlyPrice = &v
  50190. return s
  50191. }
  50192. // SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value.
  50193. func (s *GetHostReservationPurchasePreviewOutput) SetTotalUpfrontPrice(v string) *GetHostReservationPurchasePreviewOutput {
  50194. s.TotalUpfrontPrice = &v
  50195. return s
  50196. }
  50197. type GetLaunchTemplateDataInput struct {
  50198. _ struct{} `type:"structure"`
  50199. // Checks whether you have the required permissions for the action, without
  50200. // actually making the request, and provides an error response. If you have
  50201. // the required permissions, the error response is DryRunOperation. Otherwise,
  50202. // it is UnauthorizedOperation.
  50203. DryRun *bool `type:"boolean"`
  50204. // The ID of the instance.
  50205. //
  50206. // InstanceId is a required field
  50207. InstanceId *string `type:"string" required:"true"`
  50208. }
  50209. // String returns the string representation
  50210. func (s GetLaunchTemplateDataInput) String() string {
  50211. return awsutil.Prettify(s)
  50212. }
  50213. // GoString returns the string representation
  50214. func (s GetLaunchTemplateDataInput) GoString() string {
  50215. return s.String()
  50216. }
  50217. // Validate inspects the fields of the type to determine if they are valid.
  50218. func (s *GetLaunchTemplateDataInput) Validate() error {
  50219. invalidParams := request.ErrInvalidParams{Context: "GetLaunchTemplateDataInput"}
  50220. if s.InstanceId == nil {
  50221. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  50222. }
  50223. if invalidParams.Len() > 0 {
  50224. return invalidParams
  50225. }
  50226. return nil
  50227. }
  50228. // SetDryRun sets the DryRun field's value.
  50229. func (s *GetLaunchTemplateDataInput) SetDryRun(v bool) *GetLaunchTemplateDataInput {
  50230. s.DryRun = &v
  50231. return s
  50232. }
  50233. // SetInstanceId sets the InstanceId field's value.
  50234. func (s *GetLaunchTemplateDataInput) SetInstanceId(v string) *GetLaunchTemplateDataInput {
  50235. s.InstanceId = &v
  50236. return s
  50237. }
  50238. type GetLaunchTemplateDataOutput struct {
  50239. _ struct{} `type:"structure"`
  50240. // The instance data.
  50241. LaunchTemplateData *ResponseLaunchTemplateData `locationName:"launchTemplateData" type:"structure"`
  50242. }
  50243. // String returns the string representation
  50244. func (s GetLaunchTemplateDataOutput) String() string {
  50245. return awsutil.Prettify(s)
  50246. }
  50247. // GoString returns the string representation
  50248. func (s GetLaunchTemplateDataOutput) GoString() string {
  50249. return s.String()
  50250. }
  50251. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  50252. func (s *GetLaunchTemplateDataOutput) SetLaunchTemplateData(v *ResponseLaunchTemplateData) *GetLaunchTemplateDataOutput {
  50253. s.LaunchTemplateData = v
  50254. return s
  50255. }
  50256. type GetPasswordDataInput struct {
  50257. _ struct{} `type:"structure"`
  50258. // Checks whether you have the required permissions for the action, without
  50259. // actually making the request, and provides an error response. If you have
  50260. // the required permissions, the error response is DryRunOperation. Otherwise,
  50261. // it is UnauthorizedOperation.
  50262. DryRun *bool `locationName:"dryRun" type:"boolean"`
  50263. // The ID of the Windows instance.
  50264. //
  50265. // InstanceId is a required field
  50266. InstanceId *string `type:"string" required:"true"`
  50267. }
  50268. // String returns the string representation
  50269. func (s GetPasswordDataInput) String() string {
  50270. return awsutil.Prettify(s)
  50271. }
  50272. // GoString returns the string representation
  50273. func (s GetPasswordDataInput) GoString() string {
  50274. return s.String()
  50275. }
  50276. // Validate inspects the fields of the type to determine if they are valid.
  50277. func (s *GetPasswordDataInput) Validate() error {
  50278. invalidParams := request.ErrInvalidParams{Context: "GetPasswordDataInput"}
  50279. if s.InstanceId == nil {
  50280. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  50281. }
  50282. if invalidParams.Len() > 0 {
  50283. return invalidParams
  50284. }
  50285. return nil
  50286. }
  50287. // SetDryRun sets the DryRun field's value.
  50288. func (s *GetPasswordDataInput) SetDryRun(v bool) *GetPasswordDataInput {
  50289. s.DryRun = &v
  50290. return s
  50291. }
  50292. // SetInstanceId sets the InstanceId field's value.
  50293. func (s *GetPasswordDataInput) SetInstanceId(v string) *GetPasswordDataInput {
  50294. s.InstanceId = &v
  50295. return s
  50296. }
  50297. type GetPasswordDataOutput struct {
  50298. _ struct{} `type:"structure"`
  50299. // The ID of the Windows instance.
  50300. InstanceId *string `locationName:"instanceId" type:"string"`
  50301. // The password of the instance. Returns an empty string if the password is
  50302. // not available.
  50303. PasswordData *string `locationName:"passwordData" type:"string"`
  50304. // The time the data was last updated.
  50305. Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
  50306. }
  50307. // String returns the string representation
  50308. func (s GetPasswordDataOutput) String() string {
  50309. return awsutil.Prettify(s)
  50310. }
  50311. // GoString returns the string representation
  50312. func (s GetPasswordDataOutput) GoString() string {
  50313. return s.String()
  50314. }
  50315. // SetInstanceId sets the InstanceId field's value.
  50316. func (s *GetPasswordDataOutput) SetInstanceId(v string) *GetPasswordDataOutput {
  50317. s.InstanceId = &v
  50318. return s
  50319. }
  50320. // SetPasswordData sets the PasswordData field's value.
  50321. func (s *GetPasswordDataOutput) SetPasswordData(v string) *GetPasswordDataOutput {
  50322. s.PasswordData = &v
  50323. return s
  50324. }
  50325. // SetTimestamp sets the Timestamp field's value.
  50326. func (s *GetPasswordDataOutput) SetTimestamp(v time.Time) *GetPasswordDataOutput {
  50327. s.Timestamp = &v
  50328. return s
  50329. }
  50330. // Contains the parameters for GetReservedInstanceExchangeQuote.
  50331. type GetReservedInstancesExchangeQuoteInput struct {
  50332. _ struct{} `type:"structure"`
  50333. // Checks whether you have the required permissions for the action, without
  50334. // actually making the request, and provides an error response. If you have
  50335. // the required permissions, the error response is DryRunOperation. Otherwise,
  50336. // it is UnauthorizedOperation.
  50337. DryRun *bool `type:"boolean"`
  50338. // The IDs of the Convertible Reserved Instances to exchange.
  50339. //
  50340. // ReservedInstanceIds is a required field
  50341. ReservedInstanceIds []*string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"`
  50342. // The configuration of the target Convertible Reserved Instance to exchange
  50343. // for your current Convertible Reserved Instances.
  50344. TargetConfigurations []*TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"`
  50345. }
  50346. // String returns the string representation
  50347. func (s GetReservedInstancesExchangeQuoteInput) String() string {
  50348. return awsutil.Prettify(s)
  50349. }
  50350. // GoString returns the string representation
  50351. func (s GetReservedInstancesExchangeQuoteInput) GoString() string {
  50352. return s.String()
  50353. }
  50354. // Validate inspects the fields of the type to determine if they are valid.
  50355. func (s *GetReservedInstancesExchangeQuoteInput) Validate() error {
  50356. invalidParams := request.ErrInvalidParams{Context: "GetReservedInstancesExchangeQuoteInput"}
  50357. if s.ReservedInstanceIds == nil {
  50358. invalidParams.Add(request.NewErrParamRequired("ReservedInstanceIds"))
  50359. }
  50360. if s.TargetConfigurations != nil {
  50361. for i, v := range s.TargetConfigurations {
  50362. if v == nil {
  50363. continue
  50364. }
  50365. if err := v.Validate(); err != nil {
  50366. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetConfigurations", i), err.(request.ErrInvalidParams))
  50367. }
  50368. }
  50369. }
  50370. if invalidParams.Len() > 0 {
  50371. return invalidParams
  50372. }
  50373. return nil
  50374. }
  50375. // SetDryRun sets the DryRun field's value.
  50376. func (s *GetReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *GetReservedInstancesExchangeQuoteInput {
  50377. s.DryRun = &v
  50378. return s
  50379. }
  50380. // SetReservedInstanceIds sets the ReservedInstanceIds field's value.
  50381. func (s *GetReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *GetReservedInstancesExchangeQuoteInput {
  50382. s.ReservedInstanceIds = v
  50383. return s
  50384. }
  50385. // SetTargetConfigurations sets the TargetConfigurations field's value.
  50386. func (s *GetReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *GetReservedInstancesExchangeQuoteInput {
  50387. s.TargetConfigurations = v
  50388. return s
  50389. }
  50390. // Contains the output of GetReservedInstancesExchangeQuote.
  50391. type GetReservedInstancesExchangeQuoteOutput struct {
  50392. _ struct{} `type:"structure"`
  50393. // The currency of the transaction.
  50394. CurrencyCode *string `locationName:"currencyCode" type:"string"`
  50395. // If true, the exchange is valid. If false, the exchange cannot be completed.
  50396. IsValidExchange *bool `locationName:"isValidExchange" type:"boolean"`
  50397. // The new end date of the reservation term.
  50398. OutputReservedInstancesWillExpireAt *time.Time `locationName:"outputReservedInstancesWillExpireAt" type:"timestamp"`
  50399. // The total true upfront charge for the exchange.
  50400. PaymentDue *string `locationName:"paymentDue" type:"string"`
  50401. // The cost associated with the Reserved Instance.
  50402. ReservedInstanceValueRollup *ReservationValue `locationName:"reservedInstanceValueRollup" type:"structure"`
  50403. // The configuration of your Convertible Reserved Instances.
  50404. ReservedInstanceValueSet []*ReservedInstanceReservationValue `locationName:"reservedInstanceValueSet" locationNameList:"item" type:"list"`
  50405. // The cost associated with the Reserved Instance.
  50406. TargetConfigurationValueRollup *ReservationValue `locationName:"targetConfigurationValueRollup" type:"structure"`
  50407. // The values of the target Convertible Reserved Instances.
  50408. TargetConfigurationValueSet []*TargetReservationValue `locationName:"targetConfigurationValueSet" locationNameList:"item" type:"list"`
  50409. // Describes the reason why the exchange cannot be completed.
  50410. ValidationFailureReason *string `locationName:"validationFailureReason" type:"string"`
  50411. }
  50412. // String returns the string representation
  50413. func (s GetReservedInstancesExchangeQuoteOutput) String() string {
  50414. return awsutil.Prettify(s)
  50415. }
  50416. // GoString returns the string representation
  50417. func (s GetReservedInstancesExchangeQuoteOutput) GoString() string {
  50418. return s.String()
  50419. }
  50420. // SetCurrencyCode sets the CurrencyCode field's value.
  50421. func (s *GetReservedInstancesExchangeQuoteOutput) SetCurrencyCode(v string) *GetReservedInstancesExchangeQuoteOutput {
  50422. s.CurrencyCode = &v
  50423. return s
  50424. }
  50425. // SetIsValidExchange sets the IsValidExchange field's value.
  50426. func (s *GetReservedInstancesExchangeQuoteOutput) SetIsValidExchange(v bool) *GetReservedInstancesExchangeQuoteOutput {
  50427. s.IsValidExchange = &v
  50428. return s
  50429. }
  50430. // SetOutputReservedInstancesWillExpireAt sets the OutputReservedInstancesWillExpireAt field's value.
  50431. func (s *GetReservedInstancesExchangeQuoteOutput) SetOutputReservedInstancesWillExpireAt(v time.Time) *GetReservedInstancesExchangeQuoteOutput {
  50432. s.OutputReservedInstancesWillExpireAt = &v
  50433. return s
  50434. }
  50435. // SetPaymentDue sets the PaymentDue field's value.
  50436. func (s *GetReservedInstancesExchangeQuoteOutput) SetPaymentDue(v string) *GetReservedInstancesExchangeQuoteOutput {
  50437. s.PaymentDue = &v
  50438. return s
  50439. }
  50440. // SetReservedInstanceValueRollup sets the ReservedInstanceValueRollup field's value.
  50441. func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  50442. s.ReservedInstanceValueRollup = v
  50443. return s
  50444. }
  50445. // SetReservedInstanceValueSet sets the ReservedInstanceValueSet field's value.
  50446. func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueSet(v []*ReservedInstanceReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  50447. s.ReservedInstanceValueSet = v
  50448. return s
  50449. }
  50450. // SetTargetConfigurationValueRollup sets the TargetConfigurationValueRollup field's value.
  50451. func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  50452. s.TargetConfigurationValueRollup = v
  50453. return s
  50454. }
  50455. // SetTargetConfigurationValueSet sets the TargetConfigurationValueSet field's value.
  50456. func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueSet(v []*TargetReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  50457. s.TargetConfigurationValueSet = v
  50458. return s
  50459. }
  50460. // SetValidationFailureReason sets the ValidationFailureReason field's value.
  50461. func (s *GetReservedInstancesExchangeQuoteOutput) SetValidationFailureReason(v string) *GetReservedInstancesExchangeQuoteOutput {
  50462. s.ValidationFailureReason = &v
  50463. return s
  50464. }
  50465. type GetTransitGatewayAttachmentPropagationsInput struct {
  50466. _ struct{} `type:"structure"`
  50467. // Checks whether you have the required permissions for the action, without
  50468. // actually making the request, and provides an error response. If you have
  50469. // the required permissions, the error response is DryRunOperation. Otherwise,
  50470. // it is UnauthorizedOperation.
  50471. DryRun *bool `type:"boolean"`
  50472. // One or more filters. The possible values are:
  50473. //
  50474. // * transit-gateway-route-table-id - The ID of the transit gateway route
  50475. // table.
  50476. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  50477. // The maximum number of results to return with a single call. To retrieve the
  50478. // remaining results, make another call with the returned nextToken value.
  50479. MaxResults *int64 `min:"5" type:"integer"`
  50480. // The token for the next page of results.
  50481. NextToken *string `type:"string"`
  50482. // The ID of the attachment.
  50483. //
  50484. // TransitGatewayAttachmentId is a required field
  50485. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  50486. }
  50487. // String returns the string representation
  50488. func (s GetTransitGatewayAttachmentPropagationsInput) String() string {
  50489. return awsutil.Prettify(s)
  50490. }
  50491. // GoString returns the string representation
  50492. func (s GetTransitGatewayAttachmentPropagationsInput) GoString() string {
  50493. return s.String()
  50494. }
  50495. // Validate inspects the fields of the type to determine if they are valid.
  50496. func (s *GetTransitGatewayAttachmentPropagationsInput) Validate() error {
  50497. invalidParams := request.ErrInvalidParams{Context: "GetTransitGatewayAttachmentPropagationsInput"}
  50498. if s.MaxResults != nil && *s.MaxResults < 5 {
  50499. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  50500. }
  50501. if s.TransitGatewayAttachmentId == nil {
  50502. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  50503. }
  50504. if invalidParams.Len() > 0 {
  50505. return invalidParams
  50506. }
  50507. return nil
  50508. }
  50509. // SetDryRun sets the DryRun field's value.
  50510. func (s *GetTransitGatewayAttachmentPropagationsInput) SetDryRun(v bool) *GetTransitGatewayAttachmentPropagationsInput {
  50511. s.DryRun = &v
  50512. return s
  50513. }
  50514. // SetFilters sets the Filters field's value.
  50515. func (s *GetTransitGatewayAttachmentPropagationsInput) SetFilters(v []*Filter) *GetTransitGatewayAttachmentPropagationsInput {
  50516. s.Filters = v
  50517. return s
  50518. }
  50519. // SetMaxResults sets the MaxResults field's value.
  50520. func (s *GetTransitGatewayAttachmentPropagationsInput) SetMaxResults(v int64) *GetTransitGatewayAttachmentPropagationsInput {
  50521. s.MaxResults = &v
  50522. return s
  50523. }
  50524. // SetNextToken sets the NextToken field's value.
  50525. func (s *GetTransitGatewayAttachmentPropagationsInput) SetNextToken(v string) *GetTransitGatewayAttachmentPropagationsInput {
  50526. s.NextToken = &v
  50527. return s
  50528. }
  50529. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  50530. func (s *GetTransitGatewayAttachmentPropagationsInput) SetTransitGatewayAttachmentId(v string) *GetTransitGatewayAttachmentPropagationsInput {
  50531. s.TransitGatewayAttachmentId = &v
  50532. return s
  50533. }
  50534. type GetTransitGatewayAttachmentPropagationsOutput struct {
  50535. _ struct{} `type:"structure"`
  50536. // The token to use to retrieve the next page of results. This value is null
  50537. // when there are no more results to return.
  50538. NextToken *string `locationName:"nextToken" type:"string"`
  50539. // Information about the propagation route tables.
  50540. TransitGatewayAttachmentPropagations []*TransitGatewayAttachmentPropagation `locationName:"transitGatewayAttachmentPropagations" locationNameList:"item" type:"list"`
  50541. }
  50542. // String returns the string representation
  50543. func (s GetTransitGatewayAttachmentPropagationsOutput) String() string {
  50544. return awsutil.Prettify(s)
  50545. }
  50546. // GoString returns the string representation
  50547. func (s GetTransitGatewayAttachmentPropagationsOutput) GoString() string {
  50548. return s.String()
  50549. }
  50550. // SetNextToken sets the NextToken field's value.
  50551. func (s *GetTransitGatewayAttachmentPropagationsOutput) SetNextToken(v string) *GetTransitGatewayAttachmentPropagationsOutput {
  50552. s.NextToken = &v
  50553. return s
  50554. }
  50555. // SetTransitGatewayAttachmentPropagations sets the TransitGatewayAttachmentPropagations field's value.
  50556. func (s *GetTransitGatewayAttachmentPropagationsOutput) SetTransitGatewayAttachmentPropagations(v []*TransitGatewayAttachmentPropagation) *GetTransitGatewayAttachmentPropagationsOutput {
  50557. s.TransitGatewayAttachmentPropagations = v
  50558. return s
  50559. }
  50560. type GetTransitGatewayRouteTableAssociationsInput struct {
  50561. _ struct{} `type:"structure"`
  50562. // Checks whether you have the required permissions for the action, without
  50563. // actually making the request, and provides an error response. If you have
  50564. // the required permissions, the error response is DryRunOperation. Otherwise,
  50565. // it is UnauthorizedOperation.
  50566. DryRun *bool `type:"boolean"`
  50567. // One or more filters. The possible values are:
  50568. //
  50569. // * resource-id - The ID of the resource.
  50570. //
  50571. // * resource-type - The resource type (vpc | vpn).
  50572. //
  50573. // * transit-gateway-attachment-id - The ID of the attachment.
  50574. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  50575. // The maximum number of results to return with a single call. To retrieve the
  50576. // remaining results, make another call with the returned nextToken value.
  50577. MaxResults *int64 `min:"5" type:"integer"`
  50578. // The token for the next page of results.
  50579. NextToken *string `type:"string"`
  50580. // The ID of the transit gateway route table.
  50581. //
  50582. // TransitGatewayRouteTableId is a required field
  50583. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  50584. }
  50585. // String returns the string representation
  50586. func (s GetTransitGatewayRouteTableAssociationsInput) String() string {
  50587. return awsutil.Prettify(s)
  50588. }
  50589. // GoString returns the string representation
  50590. func (s GetTransitGatewayRouteTableAssociationsInput) GoString() string {
  50591. return s.String()
  50592. }
  50593. // Validate inspects the fields of the type to determine if they are valid.
  50594. func (s *GetTransitGatewayRouteTableAssociationsInput) Validate() error {
  50595. invalidParams := request.ErrInvalidParams{Context: "GetTransitGatewayRouteTableAssociationsInput"}
  50596. if s.MaxResults != nil && *s.MaxResults < 5 {
  50597. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  50598. }
  50599. if s.TransitGatewayRouteTableId == nil {
  50600. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  50601. }
  50602. if invalidParams.Len() > 0 {
  50603. return invalidParams
  50604. }
  50605. return nil
  50606. }
  50607. // SetDryRun sets the DryRun field's value.
  50608. func (s *GetTransitGatewayRouteTableAssociationsInput) SetDryRun(v bool) *GetTransitGatewayRouteTableAssociationsInput {
  50609. s.DryRun = &v
  50610. return s
  50611. }
  50612. // SetFilters sets the Filters field's value.
  50613. func (s *GetTransitGatewayRouteTableAssociationsInput) SetFilters(v []*Filter) *GetTransitGatewayRouteTableAssociationsInput {
  50614. s.Filters = v
  50615. return s
  50616. }
  50617. // SetMaxResults sets the MaxResults field's value.
  50618. func (s *GetTransitGatewayRouteTableAssociationsInput) SetMaxResults(v int64) *GetTransitGatewayRouteTableAssociationsInput {
  50619. s.MaxResults = &v
  50620. return s
  50621. }
  50622. // SetNextToken sets the NextToken field's value.
  50623. func (s *GetTransitGatewayRouteTableAssociationsInput) SetNextToken(v string) *GetTransitGatewayRouteTableAssociationsInput {
  50624. s.NextToken = &v
  50625. return s
  50626. }
  50627. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  50628. func (s *GetTransitGatewayRouteTableAssociationsInput) SetTransitGatewayRouteTableId(v string) *GetTransitGatewayRouteTableAssociationsInput {
  50629. s.TransitGatewayRouteTableId = &v
  50630. return s
  50631. }
  50632. type GetTransitGatewayRouteTableAssociationsOutput struct {
  50633. _ struct{} `type:"structure"`
  50634. // Information about the associations.
  50635. Associations []*TransitGatewayRouteTableAssociation `locationName:"associations" locationNameList:"item" type:"list"`
  50636. // The token to use to retrieve the next page of results. This value is null
  50637. // when there are no more results to return.
  50638. NextToken *string `locationName:"nextToken" type:"string"`
  50639. }
  50640. // String returns the string representation
  50641. func (s GetTransitGatewayRouteTableAssociationsOutput) String() string {
  50642. return awsutil.Prettify(s)
  50643. }
  50644. // GoString returns the string representation
  50645. func (s GetTransitGatewayRouteTableAssociationsOutput) GoString() string {
  50646. return s.String()
  50647. }
  50648. // SetAssociations sets the Associations field's value.
  50649. func (s *GetTransitGatewayRouteTableAssociationsOutput) SetAssociations(v []*TransitGatewayRouteTableAssociation) *GetTransitGatewayRouteTableAssociationsOutput {
  50650. s.Associations = v
  50651. return s
  50652. }
  50653. // SetNextToken sets the NextToken field's value.
  50654. func (s *GetTransitGatewayRouteTableAssociationsOutput) SetNextToken(v string) *GetTransitGatewayRouteTableAssociationsOutput {
  50655. s.NextToken = &v
  50656. return s
  50657. }
  50658. type GetTransitGatewayRouteTablePropagationsInput struct {
  50659. _ struct{} `type:"structure"`
  50660. // Checks whether you have the required permissions for the action, without
  50661. // actually making the request, and provides an error response. If you have
  50662. // the required permissions, the error response is DryRunOperation. Otherwise,
  50663. // it is UnauthorizedOperation.
  50664. DryRun *bool `type:"boolean"`
  50665. // One or more filters. The possible values are:
  50666. //
  50667. // * resource-id - The ID of the resource.
  50668. //
  50669. // * resource-type - The resource type (vpc | vpn).
  50670. //
  50671. // * transit-gateway-attachment-id - The ID of the attachment.
  50672. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  50673. // The maximum number of results to return with a single call. To retrieve the
  50674. // remaining results, make another call with the returned nextToken value.
  50675. MaxResults *int64 `min:"5" type:"integer"`
  50676. // The token for the next page of results.
  50677. NextToken *string `type:"string"`
  50678. // The ID of the transit gateway route table.
  50679. //
  50680. // TransitGatewayRouteTableId is a required field
  50681. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  50682. }
  50683. // String returns the string representation
  50684. func (s GetTransitGatewayRouteTablePropagationsInput) String() string {
  50685. return awsutil.Prettify(s)
  50686. }
  50687. // GoString returns the string representation
  50688. func (s GetTransitGatewayRouteTablePropagationsInput) GoString() string {
  50689. return s.String()
  50690. }
  50691. // Validate inspects the fields of the type to determine if they are valid.
  50692. func (s *GetTransitGatewayRouteTablePropagationsInput) Validate() error {
  50693. invalidParams := request.ErrInvalidParams{Context: "GetTransitGatewayRouteTablePropagationsInput"}
  50694. if s.MaxResults != nil && *s.MaxResults < 5 {
  50695. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  50696. }
  50697. if s.TransitGatewayRouteTableId == nil {
  50698. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  50699. }
  50700. if invalidParams.Len() > 0 {
  50701. return invalidParams
  50702. }
  50703. return nil
  50704. }
  50705. // SetDryRun sets the DryRun field's value.
  50706. func (s *GetTransitGatewayRouteTablePropagationsInput) SetDryRun(v bool) *GetTransitGatewayRouteTablePropagationsInput {
  50707. s.DryRun = &v
  50708. return s
  50709. }
  50710. // SetFilters sets the Filters field's value.
  50711. func (s *GetTransitGatewayRouteTablePropagationsInput) SetFilters(v []*Filter) *GetTransitGatewayRouteTablePropagationsInput {
  50712. s.Filters = v
  50713. return s
  50714. }
  50715. // SetMaxResults sets the MaxResults field's value.
  50716. func (s *GetTransitGatewayRouteTablePropagationsInput) SetMaxResults(v int64) *GetTransitGatewayRouteTablePropagationsInput {
  50717. s.MaxResults = &v
  50718. return s
  50719. }
  50720. // SetNextToken sets the NextToken field's value.
  50721. func (s *GetTransitGatewayRouteTablePropagationsInput) SetNextToken(v string) *GetTransitGatewayRouteTablePropagationsInput {
  50722. s.NextToken = &v
  50723. return s
  50724. }
  50725. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  50726. func (s *GetTransitGatewayRouteTablePropagationsInput) SetTransitGatewayRouteTableId(v string) *GetTransitGatewayRouteTablePropagationsInput {
  50727. s.TransitGatewayRouteTableId = &v
  50728. return s
  50729. }
  50730. type GetTransitGatewayRouteTablePropagationsOutput struct {
  50731. _ struct{} `type:"structure"`
  50732. // The token to use to retrieve the next page of results. This value is null
  50733. // when there are no more results to return.
  50734. NextToken *string `locationName:"nextToken" type:"string"`
  50735. // Information about the route table propagations.
  50736. TransitGatewayRouteTablePropagations []*TransitGatewayRouteTablePropagation `locationName:"transitGatewayRouteTablePropagations" locationNameList:"item" type:"list"`
  50737. }
  50738. // String returns the string representation
  50739. func (s GetTransitGatewayRouteTablePropagationsOutput) String() string {
  50740. return awsutil.Prettify(s)
  50741. }
  50742. // GoString returns the string representation
  50743. func (s GetTransitGatewayRouteTablePropagationsOutput) GoString() string {
  50744. return s.String()
  50745. }
  50746. // SetNextToken sets the NextToken field's value.
  50747. func (s *GetTransitGatewayRouteTablePropagationsOutput) SetNextToken(v string) *GetTransitGatewayRouteTablePropagationsOutput {
  50748. s.NextToken = &v
  50749. return s
  50750. }
  50751. // SetTransitGatewayRouteTablePropagations sets the TransitGatewayRouteTablePropagations field's value.
  50752. func (s *GetTransitGatewayRouteTablePropagationsOutput) SetTransitGatewayRouteTablePropagations(v []*TransitGatewayRouteTablePropagation) *GetTransitGatewayRouteTablePropagationsOutput {
  50753. s.TransitGatewayRouteTablePropagations = v
  50754. return s
  50755. }
  50756. // Describes a security group.
  50757. type GroupIdentifier struct {
  50758. _ struct{} `type:"structure"`
  50759. // The ID of the security group.
  50760. GroupId *string `locationName:"groupId" type:"string"`
  50761. // The name of the security group.
  50762. GroupName *string `locationName:"groupName" type:"string"`
  50763. }
  50764. // String returns the string representation
  50765. func (s GroupIdentifier) String() string {
  50766. return awsutil.Prettify(s)
  50767. }
  50768. // GoString returns the string representation
  50769. func (s GroupIdentifier) GoString() string {
  50770. return s.String()
  50771. }
  50772. // SetGroupId sets the GroupId field's value.
  50773. func (s *GroupIdentifier) SetGroupId(v string) *GroupIdentifier {
  50774. s.GroupId = &v
  50775. return s
  50776. }
  50777. // SetGroupName sets the GroupName field's value.
  50778. func (s *GroupIdentifier) SetGroupName(v string) *GroupIdentifier {
  50779. s.GroupName = &v
  50780. return s
  50781. }
  50782. // Indicates whether your instance is configured for hibernation. This parameter
  50783. // is valid only if the instance meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites).
  50784. // Hibernation is currently supported only for Amazon Linux. For more information,
  50785. // see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  50786. // in the Amazon Elastic Compute Cloud User Guide.
  50787. type HibernationOptions struct {
  50788. _ struct{} `type:"structure"`
  50789. // If this parameter is set to true, your instance is enabled for hibernation;
  50790. // otherwise, it is not enabled for hibernation.
  50791. Configured *bool `locationName:"configured" type:"boolean"`
  50792. }
  50793. // String returns the string representation
  50794. func (s HibernationOptions) String() string {
  50795. return awsutil.Prettify(s)
  50796. }
  50797. // GoString returns the string representation
  50798. func (s HibernationOptions) GoString() string {
  50799. return s.String()
  50800. }
  50801. // SetConfigured sets the Configured field's value.
  50802. func (s *HibernationOptions) SetConfigured(v bool) *HibernationOptions {
  50803. s.Configured = &v
  50804. return s
  50805. }
  50806. // Indicates whether your instance is configured for hibernation. This parameter
  50807. // is valid only if the instance meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites).
  50808. // Hibernation is currently supported only for Amazon Linux. For more information,
  50809. // see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  50810. // in the Amazon Elastic Compute Cloud User Guide.
  50811. type HibernationOptionsRequest struct {
  50812. _ struct{} `type:"structure"`
  50813. // If you set this parameter to true, your instance is enabled for hibernation.
  50814. //
  50815. // Default: false
  50816. Configured *bool `type:"boolean"`
  50817. }
  50818. // String returns the string representation
  50819. func (s HibernationOptionsRequest) String() string {
  50820. return awsutil.Prettify(s)
  50821. }
  50822. // GoString returns the string representation
  50823. func (s HibernationOptionsRequest) GoString() string {
  50824. return s.String()
  50825. }
  50826. // SetConfigured sets the Configured field's value.
  50827. func (s *HibernationOptionsRequest) SetConfigured(v bool) *HibernationOptionsRequest {
  50828. s.Configured = &v
  50829. return s
  50830. }
  50831. // Describes an event in the history of the Spot Fleet request.
  50832. type HistoryRecord struct {
  50833. _ struct{} `type:"structure"`
  50834. // Information about the event.
  50835. EventInformation *EventInformation `locationName:"eventInformation" type:"structure"`
  50836. // The event type.
  50837. //
  50838. // * error - An error with the Spot Fleet request.
  50839. //
  50840. // * fleetRequestChange - A change in the status or configuration of the
  50841. // Spot Fleet request.
  50842. //
  50843. // * instanceChange - An instance was launched or terminated.
  50844. //
  50845. // * Information - An informational event.
  50846. EventType *string `locationName:"eventType" type:"string" enum:"EventType"`
  50847. // The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  50848. Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
  50849. }
  50850. // String returns the string representation
  50851. func (s HistoryRecord) String() string {
  50852. return awsutil.Prettify(s)
  50853. }
  50854. // GoString returns the string representation
  50855. func (s HistoryRecord) GoString() string {
  50856. return s.String()
  50857. }
  50858. // SetEventInformation sets the EventInformation field's value.
  50859. func (s *HistoryRecord) SetEventInformation(v *EventInformation) *HistoryRecord {
  50860. s.EventInformation = v
  50861. return s
  50862. }
  50863. // SetEventType sets the EventType field's value.
  50864. func (s *HistoryRecord) SetEventType(v string) *HistoryRecord {
  50865. s.EventType = &v
  50866. return s
  50867. }
  50868. // SetTimestamp sets the Timestamp field's value.
  50869. func (s *HistoryRecord) SetTimestamp(v time.Time) *HistoryRecord {
  50870. s.Timestamp = &v
  50871. return s
  50872. }
  50873. // Describes an event in the history of an EC2 Fleet.
  50874. type HistoryRecordEntry struct {
  50875. _ struct{} `type:"structure"`
  50876. // Information about the event.
  50877. EventInformation *EventInformation `locationName:"eventInformation" type:"structure"`
  50878. // The event type.
  50879. EventType *string `locationName:"eventType" type:"string" enum:"FleetEventType"`
  50880. // The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  50881. Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
  50882. }
  50883. // String returns the string representation
  50884. func (s HistoryRecordEntry) String() string {
  50885. return awsutil.Prettify(s)
  50886. }
  50887. // GoString returns the string representation
  50888. func (s HistoryRecordEntry) GoString() string {
  50889. return s.String()
  50890. }
  50891. // SetEventInformation sets the EventInformation field's value.
  50892. func (s *HistoryRecordEntry) SetEventInformation(v *EventInformation) *HistoryRecordEntry {
  50893. s.EventInformation = v
  50894. return s
  50895. }
  50896. // SetEventType sets the EventType field's value.
  50897. func (s *HistoryRecordEntry) SetEventType(v string) *HistoryRecordEntry {
  50898. s.EventType = &v
  50899. return s
  50900. }
  50901. // SetTimestamp sets the Timestamp field's value.
  50902. func (s *HistoryRecordEntry) SetTimestamp(v time.Time) *HistoryRecordEntry {
  50903. s.Timestamp = &v
  50904. return s
  50905. }
  50906. // Describes the properties of the Dedicated Host.
  50907. type Host struct {
  50908. _ struct{} `type:"structure"`
  50909. // The time that the Dedicated Host was allocated.
  50910. AllocationTime *time.Time `locationName:"allocationTime" type:"timestamp"`
  50911. // Whether auto-placement is on or off.
  50912. AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"`
  50913. // The Availability Zone of the Dedicated Host.
  50914. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  50915. // The number of new instances that can be launched onto the Dedicated Host.
  50916. AvailableCapacity *AvailableCapacity `locationName:"availableCapacity" type:"structure"`
  50917. // Unique, case-sensitive identifier that you provide to ensure idempotency
  50918. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  50919. // in the Amazon Elastic Compute Cloud User Guide.
  50920. ClientToken *string `locationName:"clientToken" type:"string"`
  50921. // The ID of the Dedicated Host.
  50922. HostId *string `locationName:"hostId" type:"string"`
  50923. // The hardware specifications of the Dedicated Host.
  50924. HostProperties *HostProperties `locationName:"hostProperties" type:"structure"`
  50925. // The reservation ID of the Dedicated Host. This returns a null response if
  50926. // the Dedicated Host doesn't have an associated reservation.
  50927. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  50928. // The IDs and instance type that are currently running on the Dedicated Host.
  50929. Instances []*HostInstance `locationName:"instances" locationNameList:"item" type:"list"`
  50930. // The time that the Dedicated Host was released.
  50931. ReleaseTime *time.Time `locationName:"releaseTime" type:"timestamp"`
  50932. // The Dedicated Host's state.
  50933. State *string `locationName:"state" type:"string" enum:"AllocationState"`
  50934. // Any tags assigned to the Dedicated Host.
  50935. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  50936. }
  50937. // String returns the string representation
  50938. func (s Host) String() string {
  50939. return awsutil.Prettify(s)
  50940. }
  50941. // GoString returns the string representation
  50942. func (s Host) GoString() string {
  50943. return s.String()
  50944. }
  50945. // SetAllocationTime sets the AllocationTime field's value.
  50946. func (s *Host) SetAllocationTime(v time.Time) *Host {
  50947. s.AllocationTime = &v
  50948. return s
  50949. }
  50950. // SetAutoPlacement sets the AutoPlacement field's value.
  50951. func (s *Host) SetAutoPlacement(v string) *Host {
  50952. s.AutoPlacement = &v
  50953. return s
  50954. }
  50955. // SetAvailabilityZone sets the AvailabilityZone field's value.
  50956. func (s *Host) SetAvailabilityZone(v string) *Host {
  50957. s.AvailabilityZone = &v
  50958. return s
  50959. }
  50960. // SetAvailableCapacity sets the AvailableCapacity field's value.
  50961. func (s *Host) SetAvailableCapacity(v *AvailableCapacity) *Host {
  50962. s.AvailableCapacity = v
  50963. return s
  50964. }
  50965. // SetClientToken sets the ClientToken field's value.
  50966. func (s *Host) SetClientToken(v string) *Host {
  50967. s.ClientToken = &v
  50968. return s
  50969. }
  50970. // SetHostId sets the HostId field's value.
  50971. func (s *Host) SetHostId(v string) *Host {
  50972. s.HostId = &v
  50973. return s
  50974. }
  50975. // SetHostProperties sets the HostProperties field's value.
  50976. func (s *Host) SetHostProperties(v *HostProperties) *Host {
  50977. s.HostProperties = v
  50978. return s
  50979. }
  50980. // SetHostReservationId sets the HostReservationId field's value.
  50981. func (s *Host) SetHostReservationId(v string) *Host {
  50982. s.HostReservationId = &v
  50983. return s
  50984. }
  50985. // SetInstances sets the Instances field's value.
  50986. func (s *Host) SetInstances(v []*HostInstance) *Host {
  50987. s.Instances = v
  50988. return s
  50989. }
  50990. // SetReleaseTime sets the ReleaseTime field's value.
  50991. func (s *Host) SetReleaseTime(v time.Time) *Host {
  50992. s.ReleaseTime = &v
  50993. return s
  50994. }
  50995. // SetState sets the State field's value.
  50996. func (s *Host) SetState(v string) *Host {
  50997. s.State = &v
  50998. return s
  50999. }
  51000. // SetTags sets the Tags field's value.
  51001. func (s *Host) SetTags(v []*Tag) *Host {
  51002. s.Tags = v
  51003. return s
  51004. }
  51005. // Describes an instance running on a Dedicated Host.
  51006. type HostInstance struct {
  51007. _ struct{} `type:"structure"`
  51008. // the IDs of instances that are running on the Dedicated Host.
  51009. InstanceId *string `locationName:"instanceId" type:"string"`
  51010. // The instance type size (for example, m3.medium) of the running instance.
  51011. InstanceType *string `locationName:"instanceType" type:"string"`
  51012. }
  51013. // String returns the string representation
  51014. func (s HostInstance) String() string {
  51015. return awsutil.Prettify(s)
  51016. }
  51017. // GoString returns the string representation
  51018. func (s HostInstance) GoString() string {
  51019. return s.String()
  51020. }
  51021. // SetInstanceId sets the InstanceId field's value.
  51022. func (s *HostInstance) SetInstanceId(v string) *HostInstance {
  51023. s.InstanceId = &v
  51024. return s
  51025. }
  51026. // SetInstanceType sets the InstanceType field's value.
  51027. func (s *HostInstance) SetInstanceType(v string) *HostInstance {
  51028. s.InstanceType = &v
  51029. return s
  51030. }
  51031. // Details about the Dedicated Host Reservation offering.
  51032. type HostOffering struct {
  51033. _ struct{} `type:"structure"`
  51034. // The currency of the offering.
  51035. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  51036. // The duration of the offering (in seconds).
  51037. Duration *int64 `locationName:"duration" type:"integer"`
  51038. // The hourly price of the offering.
  51039. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  51040. // The instance family of the offering.
  51041. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  51042. // The ID of the offering.
  51043. OfferingId *string `locationName:"offeringId" type:"string"`
  51044. // The available payment option.
  51045. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  51046. // The upfront price of the offering. Does not apply to No Upfront offerings.
  51047. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  51048. }
  51049. // String returns the string representation
  51050. func (s HostOffering) String() string {
  51051. return awsutil.Prettify(s)
  51052. }
  51053. // GoString returns the string representation
  51054. func (s HostOffering) GoString() string {
  51055. return s.String()
  51056. }
  51057. // SetCurrencyCode sets the CurrencyCode field's value.
  51058. func (s *HostOffering) SetCurrencyCode(v string) *HostOffering {
  51059. s.CurrencyCode = &v
  51060. return s
  51061. }
  51062. // SetDuration sets the Duration field's value.
  51063. func (s *HostOffering) SetDuration(v int64) *HostOffering {
  51064. s.Duration = &v
  51065. return s
  51066. }
  51067. // SetHourlyPrice sets the HourlyPrice field's value.
  51068. func (s *HostOffering) SetHourlyPrice(v string) *HostOffering {
  51069. s.HourlyPrice = &v
  51070. return s
  51071. }
  51072. // SetInstanceFamily sets the InstanceFamily field's value.
  51073. func (s *HostOffering) SetInstanceFamily(v string) *HostOffering {
  51074. s.InstanceFamily = &v
  51075. return s
  51076. }
  51077. // SetOfferingId sets the OfferingId field's value.
  51078. func (s *HostOffering) SetOfferingId(v string) *HostOffering {
  51079. s.OfferingId = &v
  51080. return s
  51081. }
  51082. // SetPaymentOption sets the PaymentOption field's value.
  51083. func (s *HostOffering) SetPaymentOption(v string) *HostOffering {
  51084. s.PaymentOption = &v
  51085. return s
  51086. }
  51087. // SetUpfrontPrice sets the UpfrontPrice field's value.
  51088. func (s *HostOffering) SetUpfrontPrice(v string) *HostOffering {
  51089. s.UpfrontPrice = &v
  51090. return s
  51091. }
  51092. // Describes properties of a Dedicated Host.
  51093. type HostProperties struct {
  51094. _ struct{} `type:"structure"`
  51095. // The number of cores on the Dedicated Host.
  51096. Cores *int64 `locationName:"cores" type:"integer"`
  51097. // The instance type size that the Dedicated Host supports (for example, m3.medium).
  51098. InstanceType *string `locationName:"instanceType" type:"string"`
  51099. // The number of sockets on the Dedicated Host.
  51100. Sockets *int64 `locationName:"sockets" type:"integer"`
  51101. // The number of vCPUs on the Dedicated Host.
  51102. TotalVCpus *int64 `locationName:"totalVCpus" type:"integer"`
  51103. }
  51104. // String returns the string representation
  51105. func (s HostProperties) String() string {
  51106. return awsutil.Prettify(s)
  51107. }
  51108. // GoString returns the string representation
  51109. func (s HostProperties) GoString() string {
  51110. return s.String()
  51111. }
  51112. // SetCores sets the Cores field's value.
  51113. func (s *HostProperties) SetCores(v int64) *HostProperties {
  51114. s.Cores = &v
  51115. return s
  51116. }
  51117. // SetInstanceType sets the InstanceType field's value.
  51118. func (s *HostProperties) SetInstanceType(v string) *HostProperties {
  51119. s.InstanceType = &v
  51120. return s
  51121. }
  51122. // SetSockets sets the Sockets field's value.
  51123. func (s *HostProperties) SetSockets(v int64) *HostProperties {
  51124. s.Sockets = &v
  51125. return s
  51126. }
  51127. // SetTotalVCpus sets the TotalVCpus field's value.
  51128. func (s *HostProperties) SetTotalVCpus(v int64) *HostProperties {
  51129. s.TotalVCpus = &v
  51130. return s
  51131. }
  51132. // Details about the Dedicated Host Reservation and associated Dedicated Hosts.
  51133. type HostReservation struct {
  51134. _ struct{} `type:"structure"`
  51135. // The number of Dedicated Hosts the reservation is associated with.
  51136. Count *int64 `locationName:"count" type:"integer"`
  51137. // The currency in which the upfrontPrice and hourlyPrice amounts are specified.
  51138. // At this time, the only supported currency is USD.
  51139. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  51140. // The length of the reservation's term, specified in seconds. Can be 31536000
  51141. // (1 year) | 94608000 (3 years).
  51142. Duration *int64 `locationName:"duration" type:"integer"`
  51143. // The date and time that the reservation ends.
  51144. End *time.Time `locationName:"end" type:"timestamp"`
  51145. // The IDs of the Dedicated Hosts associated with the reservation.
  51146. HostIdSet []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  51147. // The ID of the reservation that specifies the associated Dedicated Hosts.
  51148. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  51149. // The hourly price of the reservation.
  51150. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  51151. // The instance family of the Dedicated Host Reservation. The instance family
  51152. // on the Dedicated Host must be the same in order for it to benefit from the
  51153. // reservation.
  51154. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  51155. // The ID of the reservation. This remains the same regardless of which Dedicated
  51156. // Hosts are associated with it.
  51157. OfferingId *string `locationName:"offeringId" type:"string"`
  51158. // The payment option selected for this reservation.
  51159. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  51160. // The date and time that the reservation started.
  51161. Start *time.Time `locationName:"start" type:"timestamp"`
  51162. // The state of the reservation.
  51163. State *string `locationName:"state" type:"string" enum:"ReservationState"`
  51164. // The upfront price of the reservation.
  51165. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  51166. }
  51167. // String returns the string representation
  51168. func (s HostReservation) String() string {
  51169. return awsutil.Prettify(s)
  51170. }
  51171. // GoString returns the string representation
  51172. func (s HostReservation) GoString() string {
  51173. return s.String()
  51174. }
  51175. // SetCount sets the Count field's value.
  51176. func (s *HostReservation) SetCount(v int64) *HostReservation {
  51177. s.Count = &v
  51178. return s
  51179. }
  51180. // SetCurrencyCode sets the CurrencyCode field's value.
  51181. func (s *HostReservation) SetCurrencyCode(v string) *HostReservation {
  51182. s.CurrencyCode = &v
  51183. return s
  51184. }
  51185. // SetDuration sets the Duration field's value.
  51186. func (s *HostReservation) SetDuration(v int64) *HostReservation {
  51187. s.Duration = &v
  51188. return s
  51189. }
  51190. // SetEnd sets the End field's value.
  51191. func (s *HostReservation) SetEnd(v time.Time) *HostReservation {
  51192. s.End = &v
  51193. return s
  51194. }
  51195. // SetHostIdSet sets the HostIdSet field's value.
  51196. func (s *HostReservation) SetHostIdSet(v []*string) *HostReservation {
  51197. s.HostIdSet = v
  51198. return s
  51199. }
  51200. // SetHostReservationId sets the HostReservationId field's value.
  51201. func (s *HostReservation) SetHostReservationId(v string) *HostReservation {
  51202. s.HostReservationId = &v
  51203. return s
  51204. }
  51205. // SetHourlyPrice sets the HourlyPrice field's value.
  51206. func (s *HostReservation) SetHourlyPrice(v string) *HostReservation {
  51207. s.HourlyPrice = &v
  51208. return s
  51209. }
  51210. // SetInstanceFamily sets the InstanceFamily field's value.
  51211. func (s *HostReservation) SetInstanceFamily(v string) *HostReservation {
  51212. s.InstanceFamily = &v
  51213. return s
  51214. }
  51215. // SetOfferingId sets the OfferingId field's value.
  51216. func (s *HostReservation) SetOfferingId(v string) *HostReservation {
  51217. s.OfferingId = &v
  51218. return s
  51219. }
  51220. // SetPaymentOption sets the PaymentOption field's value.
  51221. func (s *HostReservation) SetPaymentOption(v string) *HostReservation {
  51222. s.PaymentOption = &v
  51223. return s
  51224. }
  51225. // SetStart sets the Start field's value.
  51226. func (s *HostReservation) SetStart(v time.Time) *HostReservation {
  51227. s.Start = &v
  51228. return s
  51229. }
  51230. // SetState sets the State field's value.
  51231. func (s *HostReservation) SetState(v string) *HostReservation {
  51232. s.State = &v
  51233. return s
  51234. }
  51235. // SetUpfrontPrice sets the UpfrontPrice field's value.
  51236. func (s *HostReservation) SetUpfrontPrice(v string) *HostReservation {
  51237. s.UpfrontPrice = &v
  51238. return s
  51239. }
  51240. // Describes an IAM instance profile.
  51241. type IamInstanceProfile struct {
  51242. _ struct{} `type:"structure"`
  51243. // The Amazon Resource Name (ARN) of the instance profile.
  51244. Arn *string `locationName:"arn" type:"string"`
  51245. // The ID of the instance profile.
  51246. Id *string `locationName:"id" type:"string"`
  51247. }
  51248. // String returns the string representation
  51249. func (s IamInstanceProfile) String() string {
  51250. return awsutil.Prettify(s)
  51251. }
  51252. // GoString returns the string representation
  51253. func (s IamInstanceProfile) GoString() string {
  51254. return s.String()
  51255. }
  51256. // SetArn sets the Arn field's value.
  51257. func (s *IamInstanceProfile) SetArn(v string) *IamInstanceProfile {
  51258. s.Arn = &v
  51259. return s
  51260. }
  51261. // SetId sets the Id field's value.
  51262. func (s *IamInstanceProfile) SetId(v string) *IamInstanceProfile {
  51263. s.Id = &v
  51264. return s
  51265. }
  51266. // Describes an association between an IAM instance profile and an instance.
  51267. type IamInstanceProfileAssociation struct {
  51268. _ struct{} `type:"structure"`
  51269. // The ID of the association.
  51270. AssociationId *string `locationName:"associationId" type:"string"`
  51271. // The IAM instance profile.
  51272. IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"`
  51273. // The ID of the instance.
  51274. InstanceId *string `locationName:"instanceId" type:"string"`
  51275. // The state of the association.
  51276. State *string `locationName:"state" type:"string" enum:"IamInstanceProfileAssociationState"`
  51277. // The time the IAM instance profile was associated with the instance.
  51278. Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
  51279. }
  51280. // String returns the string representation
  51281. func (s IamInstanceProfileAssociation) String() string {
  51282. return awsutil.Prettify(s)
  51283. }
  51284. // GoString returns the string representation
  51285. func (s IamInstanceProfileAssociation) GoString() string {
  51286. return s.String()
  51287. }
  51288. // SetAssociationId sets the AssociationId field's value.
  51289. func (s *IamInstanceProfileAssociation) SetAssociationId(v string) *IamInstanceProfileAssociation {
  51290. s.AssociationId = &v
  51291. return s
  51292. }
  51293. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  51294. func (s *IamInstanceProfileAssociation) SetIamInstanceProfile(v *IamInstanceProfile) *IamInstanceProfileAssociation {
  51295. s.IamInstanceProfile = v
  51296. return s
  51297. }
  51298. // SetInstanceId sets the InstanceId field's value.
  51299. func (s *IamInstanceProfileAssociation) SetInstanceId(v string) *IamInstanceProfileAssociation {
  51300. s.InstanceId = &v
  51301. return s
  51302. }
  51303. // SetState sets the State field's value.
  51304. func (s *IamInstanceProfileAssociation) SetState(v string) *IamInstanceProfileAssociation {
  51305. s.State = &v
  51306. return s
  51307. }
  51308. // SetTimestamp sets the Timestamp field's value.
  51309. func (s *IamInstanceProfileAssociation) SetTimestamp(v time.Time) *IamInstanceProfileAssociation {
  51310. s.Timestamp = &v
  51311. return s
  51312. }
  51313. // Describes an IAM instance profile.
  51314. type IamInstanceProfileSpecification struct {
  51315. _ struct{} `type:"structure"`
  51316. // The Amazon Resource Name (ARN) of the instance profile.
  51317. Arn *string `locationName:"arn" type:"string"`
  51318. // The name of the instance profile.
  51319. Name *string `locationName:"name" type:"string"`
  51320. }
  51321. // String returns the string representation
  51322. func (s IamInstanceProfileSpecification) String() string {
  51323. return awsutil.Prettify(s)
  51324. }
  51325. // GoString returns the string representation
  51326. func (s IamInstanceProfileSpecification) GoString() string {
  51327. return s.String()
  51328. }
  51329. // SetArn sets the Arn field's value.
  51330. func (s *IamInstanceProfileSpecification) SetArn(v string) *IamInstanceProfileSpecification {
  51331. s.Arn = &v
  51332. return s
  51333. }
  51334. // SetName sets the Name field's value.
  51335. func (s *IamInstanceProfileSpecification) SetName(v string) *IamInstanceProfileSpecification {
  51336. s.Name = &v
  51337. return s
  51338. }
  51339. // Describes the ICMP type and code.
  51340. type IcmpTypeCode struct {
  51341. _ struct{} `type:"structure"`
  51342. // The ICMP code. A value of -1 means all codes for the specified ICMP type.
  51343. Code *int64 `locationName:"code" type:"integer"`
  51344. // The ICMP type. A value of -1 means all types.
  51345. Type *int64 `locationName:"type" type:"integer"`
  51346. }
  51347. // String returns the string representation
  51348. func (s IcmpTypeCode) String() string {
  51349. return awsutil.Prettify(s)
  51350. }
  51351. // GoString returns the string representation
  51352. func (s IcmpTypeCode) GoString() string {
  51353. return s.String()
  51354. }
  51355. // SetCode sets the Code field's value.
  51356. func (s *IcmpTypeCode) SetCode(v int64) *IcmpTypeCode {
  51357. s.Code = &v
  51358. return s
  51359. }
  51360. // SetType sets the Type field's value.
  51361. func (s *IcmpTypeCode) SetType(v int64) *IcmpTypeCode {
  51362. s.Type = &v
  51363. return s
  51364. }
  51365. // Describes the ID format for a resource.
  51366. type IdFormat struct {
  51367. _ struct{} `type:"structure"`
  51368. // The date in UTC at which you are permanently switched over to using longer
  51369. // IDs. If a deadline is not yet available for this resource type, this field
  51370. // is not returned.
  51371. Deadline *time.Time `locationName:"deadline" type:"timestamp"`
  51372. // The type of resource.
  51373. Resource *string `locationName:"resource" type:"string"`
  51374. // Indicates whether longer IDs (17-character IDs) are enabled for the resource.
  51375. UseLongIds *bool `locationName:"useLongIds" type:"boolean"`
  51376. }
  51377. // String returns the string representation
  51378. func (s IdFormat) String() string {
  51379. return awsutil.Prettify(s)
  51380. }
  51381. // GoString returns the string representation
  51382. func (s IdFormat) GoString() string {
  51383. return s.String()
  51384. }
  51385. // SetDeadline sets the Deadline field's value.
  51386. func (s *IdFormat) SetDeadline(v time.Time) *IdFormat {
  51387. s.Deadline = &v
  51388. return s
  51389. }
  51390. // SetResource sets the Resource field's value.
  51391. func (s *IdFormat) SetResource(v string) *IdFormat {
  51392. s.Resource = &v
  51393. return s
  51394. }
  51395. // SetUseLongIds sets the UseLongIds field's value.
  51396. func (s *IdFormat) SetUseLongIds(v bool) *IdFormat {
  51397. s.UseLongIds = &v
  51398. return s
  51399. }
  51400. // Describes an image.
  51401. type Image struct {
  51402. _ struct{} `type:"structure"`
  51403. // The architecture of the image.
  51404. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  51405. // Any block device mapping entries.
  51406. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  51407. // The date and time the image was created.
  51408. CreationDate *string `locationName:"creationDate" type:"string"`
  51409. // The description of the AMI that was provided during image creation.
  51410. Description *string `locationName:"description" type:"string"`
  51411. // Specifies whether enhanced networking with ENA is enabled.
  51412. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  51413. // The hypervisor type of the image.
  51414. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"`
  51415. // The ID of the AMI.
  51416. ImageId *string `locationName:"imageId" type:"string"`
  51417. // The location of the AMI.
  51418. ImageLocation *string `locationName:"imageLocation" type:"string"`
  51419. // The AWS account alias (for example, amazon, self) or the AWS account ID of
  51420. // the AMI owner.
  51421. ImageOwnerAlias *string `locationName:"imageOwnerAlias" type:"string"`
  51422. // The type of image.
  51423. ImageType *string `locationName:"imageType" type:"string" enum:"ImageTypeValues"`
  51424. // The kernel associated with the image, if any. Only applicable for machine
  51425. // images.
  51426. KernelId *string `locationName:"kernelId" type:"string"`
  51427. // The name of the AMI that was provided during image creation.
  51428. Name *string `locationName:"name" type:"string"`
  51429. // The AWS account ID of the image owner.
  51430. OwnerId *string `locationName:"imageOwnerId" type:"string"`
  51431. // The value is Windows for Windows AMIs; otherwise blank.
  51432. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  51433. // Any product codes associated with the AMI.
  51434. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  51435. // Indicates whether the image has public launch permissions. The value is true
  51436. // if this image has public launch permissions or false if it has only implicit
  51437. // and explicit launch permissions.
  51438. Public *bool `locationName:"isPublic" type:"boolean"`
  51439. // The RAM disk associated with the image, if any. Only applicable for machine
  51440. // images.
  51441. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  51442. // The device name of the root device volume (for example, /dev/sda1).
  51443. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  51444. // The type of root device used by the AMI. The AMI can use an EBS volume or
  51445. // an instance store volume.
  51446. RootDeviceType *string `locationName:"rootDeviceType" type:"string" enum:"DeviceType"`
  51447. // Specifies whether enhanced networking with the Intel 82599 Virtual Function
  51448. // interface is enabled.
  51449. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  51450. // The current state of the AMI. If the state is available, the image is successfully
  51451. // registered and can be used to launch an instance.
  51452. State *string `locationName:"imageState" type:"string" enum:"ImageState"`
  51453. // The reason for the state change.
  51454. StateReason *StateReason `locationName:"stateReason" type:"structure"`
  51455. // Any tags assigned to the image.
  51456. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  51457. // The type of virtualization of the AMI.
  51458. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"`
  51459. }
  51460. // String returns the string representation
  51461. func (s Image) String() string {
  51462. return awsutil.Prettify(s)
  51463. }
  51464. // GoString returns the string representation
  51465. func (s Image) GoString() string {
  51466. return s.String()
  51467. }
  51468. // SetArchitecture sets the Architecture field's value.
  51469. func (s *Image) SetArchitecture(v string) *Image {
  51470. s.Architecture = &v
  51471. return s
  51472. }
  51473. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  51474. func (s *Image) SetBlockDeviceMappings(v []*BlockDeviceMapping) *Image {
  51475. s.BlockDeviceMappings = v
  51476. return s
  51477. }
  51478. // SetCreationDate sets the CreationDate field's value.
  51479. func (s *Image) SetCreationDate(v string) *Image {
  51480. s.CreationDate = &v
  51481. return s
  51482. }
  51483. // SetDescription sets the Description field's value.
  51484. func (s *Image) SetDescription(v string) *Image {
  51485. s.Description = &v
  51486. return s
  51487. }
  51488. // SetEnaSupport sets the EnaSupport field's value.
  51489. func (s *Image) SetEnaSupport(v bool) *Image {
  51490. s.EnaSupport = &v
  51491. return s
  51492. }
  51493. // SetHypervisor sets the Hypervisor field's value.
  51494. func (s *Image) SetHypervisor(v string) *Image {
  51495. s.Hypervisor = &v
  51496. return s
  51497. }
  51498. // SetImageId sets the ImageId field's value.
  51499. func (s *Image) SetImageId(v string) *Image {
  51500. s.ImageId = &v
  51501. return s
  51502. }
  51503. // SetImageLocation sets the ImageLocation field's value.
  51504. func (s *Image) SetImageLocation(v string) *Image {
  51505. s.ImageLocation = &v
  51506. return s
  51507. }
  51508. // SetImageOwnerAlias sets the ImageOwnerAlias field's value.
  51509. func (s *Image) SetImageOwnerAlias(v string) *Image {
  51510. s.ImageOwnerAlias = &v
  51511. return s
  51512. }
  51513. // SetImageType sets the ImageType field's value.
  51514. func (s *Image) SetImageType(v string) *Image {
  51515. s.ImageType = &v
  51516. return s
  51517. }
  51518. // SetKernelId sets the KernelId field's value.
  51519. func (s *Image) SetKernelId(v string) *Image {
  51520. s.KernelId = &v
  51521. return s
  51522. }
  51523. // SetName sets the Name field's value.
  51524. func (s *Image) SetName(v string) *Image {
  51525. s.Name = &v
  51526. return s
  51527. }
  51528. // SetOwnerId sets the OwnerId field's value.
  51529. func (s *Image) SetOwnerId(v string) *Image {
  51530. s.OwnerId = &v
  51531. return s
  51532. }
  51533. // SetPlatform sets the Platform field's value.
  51534. func (s *Image) SetPlatform(v string) *Image {
  51535. s.Platform = &v
  51536. return s
  51537. }
  51538. // SetProductCodes sets the ProductCodes field's value.
  51539. func (s *Image) SetProductCodes(v []*ProductCode) *Image {
  51540. s.ProductCodes = v
  51541. return s
  51542. }
  51543. // SetPublic sets the Public field's value.
  51544. func (s *Image) SetPublic(v bool) *Image {
  51545. s.Public = &v
  51546. return s
  51547. }
  51548. // SetRamdiskId sets the RamdiskId field's value.
  51549. func (s *Image) SetRamdiskId(v string) *Image {
  51550. s.RamdiskId = &v
  51551. return s
  51552. }
  51553. // SetRootDeviceName sets the RootDeviceName field's value.
  51554. func (s *Image) SetRootDeviceName(v string) *Image {
  51555. s.RootDeviceName = &v
  51556. return s
  51557. }
  51558. // SetRootDeviceType sets the RootDeviceType field's value.
  51559. func (s *Image) SetRootDeviceType(v string) *Image {
  51560. s.RootDeviceType = &v
  51561. return s
  51562. }
  51563. // SetSriovNetSupport sets the SriovNetSupport field's value.
  51564. func (s *Image) SetSriovNetSupport(v string) *Image {
  51565. s.SriovNetSupport = &v
  51566. return s
  51567. }
  51568. // SetState sets the State field's value.
  51569. func (s *Image) SetState(v string) *Image {
  51570. s.State = &v
  51571. return s
  51572. }
  51573. // SetStateReason sets the StateReason field's value.
  51574. func (s *Image) SetStateReason(v *StateReason) *Image {
  51575. s.StateReason = v
  51576. return s
  51577. }
  51578. // SetTags sets the Tags field's value.
  51579. func (s *Image) SetTags(v []*Tag) *Image {
  51580. s.Tags = v
  51581. return s
  51582. }
  51583. // SetVirtualizationType sets the VirtualizationType field's value.
  51584. func (s *Image) SetVirtualizationType(v string) *Image {
  51585. s.VirtualizationType = &v
  51586. return s
  51587. }
  51588. // Describes the disk container object for an import image task.
  51589. type ImageDiskContainer struct {
  51590. _ struct{} `type:"structure"`
  51591. // The description of the disk image.
  51592. Description *string `type:"string"`
  51593. // The block device mapping for the disk.
  51594. DeviceName *string `type:"string"`
  51595. // The format of the disk image being imported.
  51596. //
  51597. // Valid values: VHD | VMDK | OVA
  51598. Format *string `type:"string"`
  51599. // The ID of the EBS snapshot to be used for importing the snapshot.
  51600. SnapshotId *string `type:"string"`
  51601. // The URL to the Amazon S3-based disk image being imported. The URL can either
  51602. // be a https URL (https://..) or an Amazon S3 URL (s3://..)
  51603. Url *string `type:"string"`
  51604. // The S3 bucket for the disk image.
  51605. UserBucket *UserBucket `type:"structure"`
  51606. }
  51607. // String returns the string representation
  51608. func (s ImageDiskContainer) String() string {
  51609. return awsutil.Prettify(s)
  51610. }
  51611. // GoString returns the string representation
  51612. func (s ImageDiskContainer) GoString() string {
  51613. return s.String()
  51614. }
  51615. // SetDescription sets the Description field's value.
  51616. func (s *ImageDiskContainer) SetDescription(v string) *ImageDiskContainer {
  51617. s.Description = &v
  51618. return s
  51619. }
  51620. // SetDeviceName sets the DeviceName field's value.
  51621. func (s *ImageDiskContainer) SetDeviceName(v string) *ImageDiskContainer {
  51622. s.DeviceName = &v
  51623. return s
  51624. }
  51625. // SetFormat sets the Format field's value.
  51626. func (s *ImageDiskContainer) SetFormat(v string) *ImageDiskContainer {
  51627. s.Format = &v
  51628. return s
  51629. }
  51630. // SetSnapshotId sets the SnapshotId field's value.
  51631. func (s *ImageDiskContainer) SetSnapshotId(v string) *ImageDiskContainer {
  51632. s.SnapshotId = &v
  51633. return s
  51634. }
  51635. // SetUrl sets the Url field's value.
  51636. func (s *ImageDiskContainer) SetUrl(v string) *ImageDiskContainer {
  51637. s.Url = &v
  51638. return s
  51639. }
  51640. // SetUserBucket sets the UserBucket field's value.
  51641. func (s *ImageDiskContainer) SetUserBucket(v *UserBucket) *ImageDiskContainer {
  51642. s.UserBucket = v
  51643. return s
  51644. }
  51645. type ImportClientVpnClientCertificateRevocationListInput struct {
  51646. _ struct{} `type:"structure"`
  51647. // The client certificate revocation list file. For more information, see Generate
  51648. // a Client Certificate Revocation List (vpn/latest/clientvpn-admin/cvpn-working-certificates.html#cvpn-working-certificates-generate)
  51649. // in the AWS Client VPN Admin Guide.
  51650. //
  51651. // CertificateRevocationList is a required field
  51652. CertificateRevocationList *string `type:"string" required:"true"`
  51653. // The ID of the Client VPN endpoint to which the client certificate revocation
  51654. // list applies.
  51655. //
  51656. // ClientVpnEndpointId is a required field
  51657. ClientVpnEndpointId *string `type:"string" required:"true"`
  51658. // Checks whether you have the required permissions for the action, without
  51659. // actually making the request, and provides an error response. If you have
  51660. // the required permissions, the error response is DryRunOperation. Otherwise,
  51661. // it is UnauthorizedOperation.
  51662. DryRun *bool `type:"boolean"`
  51663. }
  51664. // String returns the string representation
  51665. func (s ImportClientVpnClientCertificateRevocationListInput) String() string {
  51666. return awsutil.Prettify(s)
  51667. }
  51668. // GoString returns the string representation
  51669. func (s ImportClientVpnClientCertificateRevocationListInput) GoString() string {
  51670. return s.String()
  51671. }
  51672. // Validate inspects the fields of the type to determine if they are valid.
  51673. func (s *ImportClientVpnClientCertificateRevocationListInput) Validate() error {
  51674. invalidParams := request.ErrInvalidParams{Context: "ImportClientVpnClientCertificateRevocationListInput"}
  51675. if s.CertificateRevocationList == nil {
  51676. invalidParams.Add(request.NewErrParamRequired("CertificateRevocationList"))
  51677. }
  51678. if s.ClientVpnEndpointId == nil {
  51679. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  51680. }
  51681. if invalidParams.Len() > 0 {
  51682. return invalidParams
  51683. }
  51684. return nil
  51685. }
  51686. // SetCertificateRevocationList sets the CertificateRevocationList field's value.
  51687. func (s *ImportClientVpnClientCertificateRevocationListInput) SetCertificateRevocationList(v string) *ImportClientVpnClientCertificateRevocationListInput {
  51688. s.CertificateRevocationList = &v
  51689. return s
  51690. }
  51691. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  51692. func (s *ImportClientVpnClientCertificateRevocationListInput) SetClientVpnEndpointId(v string) *ImportClientVpnClientCertificateRevocationListInput {
  51693. s.ClientVpnEndpointId = &v
  51694. return s
  51695. }
  51696. // SetDryRun sets the DryRun field's value.
  51697. func (s *ImportClientVpnClientCertificateRevocationListInput) SetDryRun(v bool) *ImportClientVpnClientCertificateRevocationListInput {
  51698. s.DryRun = &v
  51699. return s
  51700. }
  51701. type ImportClientVpnClientCertificateRevocationListOutput struct {
  51702. _ struct{} `type:"structure"`
  51703. // Returns true if the request succeeds; otherwise, it returns an error.
  51704. Return *bool `locationName:"return" type:"boolean"`
  51705. }
  51706. // String returns the string representation
  51707. func (s ImportClientVpnClientCertificateRevocationListOutput) String() string {
  51708. return awsutil.Prettify(s)
  51709. }
  51710. // GoString returns the string representation
  51711. func (s ImportClientVpnClientCertificateRevocationListOutput) GoString() string {
  51712. return s.String()
  51713. }
  51714. // SetReturn sets the Return field's value.
  51715. func (s *ImportClientVpnClientCertificateRevocationListOutput) SetReturn(v bool) *ImportClientVpnClientCertificateRevocationListOutput {
  51716. s.Return = &v
  51717. return s
  51718. }
  51719. // Contains the parameters for ImportImage.
  51720. type ImportImageInput struct {
  51721. _ struct{} `type:"structure"`
  51722. // The architecture of the virtual machine.
  51723. //
  51724. // Valid values: i386 | x86_64
  51725. Architecture *string `type:"string"`
  51726. // The client-specific data.
  51727. ClientData *ClientData `type:"structure"`
  51728. // The token to enable idempotency for VM import requests.
  51729. ClientToken *string `type:"string"`
  51730. // A description string for the import image task.
  51731. Description *string `type:"string"`
  51732. // Information about the disk containers.
  51733. DiskContainers []*ImageDiskContainer `locationName:"DiskContainer" locationNameList:"item" type:"list"`
  51734. // Checks whether you have the required permissions for the action, without
  51735. // actually making the request, and provides an error response. If you have
  51736. // the required permissions, the error response is DryRunOperation. Otherwise,
  51737. // it is UnauthorizedOperation.
  51738. DryRun *bool `type:"boolean"`
  51739. // Specifies whether the destination AMI of the imported image should be encrypted.
  51740. // The default CMK for EBS is used unless you specify a non-default AWS Key
  51741. // Management Service (AWS KMS) CMK using KmsKeyId. For more information, see
  51742. // Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  51743. // in the Amazon Elastic Compute Cloud User Guide.
  51744. Encrypted *bool `type:"boolean"`
  51745. // The target hypervisor platform.
  51746. //
  51747. // Valid values: xen
  51748. Hypervisor *string `type:"string"`
  51749. // An identifier for the AWS Key Management Service (AWS KMS) customer master
  51750. // key (CMK) to use when creating the encrypted AMI. This parameter is only
  51751. // required if you want to use a non-default CMK; if this parameter is not specified,
  51752. // the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted
  51753. // flag must also be set.
  51754. //
  51755. // The CMK identifier may be provided in any of the following formats:
  51756. //
  51757. // * Key ID
  51758. //
  51759. // * Key alias, in the form alias/ExampleAlias
  51760. //
  51761. // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
  51762. // by the region of the CMK, the AWS account ID of the CMK owner, the key
  51763. // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  51764. //
  51765. // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
  51766. // followed by the region of the CMK, the AWS account ID of the CMK owner,
  51767. // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
  51768. //
  51769. //
  51770. // AWS parses KmsKeyId asynchronously, meaning that the action you call may
  51771. // appear to complete even though you provided an invalid identifier. This action
  51772. // will eventually report failure.
  51773. //
  51774. // The specified CMK must exist in the region that the AMI is being copied to.
  51775. KmsKeyId *string `type:"string"`
  51776. // The license type to be used for the Amazon Machine Image (AMI) after importing.
  51777. //
  51778. // Note: You may only use BYOL if you have existing licenses with rights to
  51779. // use these licenses in a third party cloud like AWS. For more information,
  51780. // see Prerequisites (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image)
  51781. // in the VM Import/Export User Guide.
  51782. //
  51783. // Valid values: AWS | BYOL
  51784. LicenseType *string `type:"string"`
  51785. // The operating system of the virtual machine.
  51786. //
  51787. // Valid values: Windows | Linux
  51788. Platform *string `type:"string"`
  51789. // The name of the role to use when not using the default role, 'vmimport'.
  51790. RoleName *string `type:"string"`
  51791. }
  51792. // String returns the string representation
  51793. func (s ImportImageInput) String() string {
  51794. return awsutil.Prettify(s)
  51795. }
  51796. // GoString returns the string representation
  51797. func (s ImportImageInput) GoString() string {
  51798. return s.String()
  51799. }
  51800. // SetArchitecture sets the Architecture field's value.
  51801. func (s *ImportImageInput) SetArchitecture(v string) *ImportImageInput {
  51802. s.Architecture = &v
  51803. return s
  51804. }
  51805. // SetClientData sets the ClientData field's value.
  51806. func (s *ImportImageInput) SetClientData(v *ClientData) *ImportImageInput {
  51807. s.ClientData = v
  51808. return s
  51809. }
  51810. // SetClientToken sets the ClientToken field's value.
  51811. func (s *ImportImageInput) SetClientToken(v string) *ImportImageInput {
  51812. s.ClientToken = &v
  51813. return s
  51814. }
  51815. // SetDescription sets the Description field's value.
  51816. func (s *ImportImageInput) SetDescription(v string) *ImportImageInput {
  51817. s.Description = &v
  51818. return s
  51819. }
  51820. // SetDiskContainers sets the DiskContainers field's value.
  51821. func (s *ImportImageInput) SetDiskContainers(v []*ImageDiskContainer) *ImportImageInput {
  51822. s.DiskContainers = v
  51823. return s
  51824. }
  51825. // SetDryRun sets the DryRun field's value.
  51826. func (s *ImportImageInput) SetDryRun(v bool) *ImportImageInput {
  51827. s.DryRun = &v
  51828. return s
  51829. }
  51830. // SetEncrypted sets the Encrypted field's value.
  51831. func (s *ImportImageInput) SetEncrypted(v bool) *ImportImageInput {
  51832. s.Encrypted = &v
  51833. return s
  51834. }
  51835. // SetHypervisor sets the Hypervisor field's value.
  51836. func (s *ImportImageInput) SetHypervisor(v string) *ImportImageInput {
  51837. s.Hypervisor = &v
  51838. return s
  51839. }
  51840. // SetKmsKeyId sets the KmsKeyId field's value.
  51841. func (s *ImportImageInput) SetKmsKeyId(v string) *ImportImageInput {
  51842. s.KmsKeyId = &v
  51843. return s
  51844. }
  51845. // SetLicenseType sets the LicenseType field's value.
  51846. func (s *ImportImageInput) SetLicenseType(v string) *ImportImageInput {
  51847. s.LicenseType = &v
  51848. return s
  51849. }
  51850. // SetPlatform sets the Platform field's value.
  51851. func (s *ImportImageInput) SetPlatform(v string) *ImportImageInput {
  51852. s.Platform = &v
  51853. return s
  51854. }
  51855. // SetRoleName sets the RoleName field's value.
  51856. func (s *ImportImageInput) SetRoleName(v string) *ImportImageInput {
  51857. s.RoleName = &v
  51858. return s
  51859. }
  51860. // Contains the output for ImportImage.
  51861. type ImportImageOutput struct {
  51862. _ struct{} `type:"structure"`
  51863. // The architecture of the virtual machine.
  51864. Architecture *string `locationName:"architecture" type:"string"`
  51865. // A description of the import task.
  51866. Description *string `locationName:"description" type:"string"`
  51867. // Indicates whether the AMI is encypted.
  51868. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  51869. // The target hypervisor of the import task.
  51870. Hypervisor *string `locationName:"hypervisor" type:"string"`
  51871. // The ID of the Amazon Machine Image (AMI) created by the import task.
  51872. ImageId *string `locationName:"imageId" type:"string"`
  51873. // The task ID of the import image task.
  51874. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  51875. // The identifier for the AWS Key Management Service (AWS KMS) customer master
  51876. // key (CMK) that was used to create the encrypted AMI.
  51877. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  51878. // The license type of the virtual machine.
  51879. LicenseType *string `locationName:"licenseType" type:"string"`
  51880. // The operating system of the virtual machine.
  51881. Platform *string `locationName:"platform" type:"string"`
  51882. // The progress of the task.
  51883. Progress *string `locationName:"progress" type:"string"`
  51884. // Information about the snapshots.
  51885. SnapshotDetails []*SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`
  51886. // A brief status of the task.
  51887. Status *string `locationName:"status" type:"string"`
  51888. // A detailed status message of the import task.
  51889. StatusMessage *string `locationName:"statusMessage" type:"string"`
  51890. }
  51891. // String returns the string representation
  51892. func (s ImportImageOutput) String() string {
  51893. return awsutil.Prettify(s)
  51894. }
  51895. // GoString returns the string representation
  51896. func (s ImportImageOutput) GoString() string {
  51897. return s.String()
  51898. }
  51899. // SetArchitecture sets the Architecture field's value.
  51900. func (s *ImportImageOutput) SetArchitecture(v string) *ImportImageOutput {
  51901. s.Architecture = &v
  51902. return s
  51903. }
  51904. // SetDescription sets the Description field's value.
  51905. func (s *ImportImageOutput) SetDescription(v string) *ImportImageOutput {
  51906. s.Description = &v
  51907. return s
  51908. }
  51909. // SetEncrypted sets the Encrypted field's value.
  51910. func (s *ImportImageOutput) SetEncrypted(v bool) *ImportImageOutput {
  51911. s.Encrypted = &v
  51912. return s
  51913. }
  51914. // SetHypervisor sets the Hypervisor field's value.
  51915. func (s *ImportImageOutput) SetHypervisor(v string) *ImportImageOutput {
  51916. s.Hypervisor = &v
  51917. return s
  51918. }
  51919. // SetImageId sets the ImageId field's value.
  51920. func (s *ImportImageOutput) SetImageId(v string) *ImportImageOutput {
  51921. s.ImageId = &v
  51922. return s
  51923. }
  51924. // SetImportTaskId sets the ImportTaskId field's value.
  51925. func (s *ImportImageOutput) SetImportTaskId(v string) *ImportImageOutput {
  51926. s.ImportTaskId = &v
  51927. return s
  51928. }
  51929. // SetKmsKeyId sets the KmsKeyId field's value.
  51930. func (s *ImportImageOutput) SetKmsKeyId(v string) *ImportImageOutput {
  51931. s.KmsKeyId = &v
  51932. return s
  51933. }
  51934. // SetLicenseType sets the LicenseType field's value.
  51935. func (s *ImportImageOutput) SetLicenseType(v string) *ImportImageOutput {
  51936. s.LicenseType = &v
  51937. return s
  51938. }
  51939. // SetPlatform sets the Platform field's value.
  51940. func (s *ImportImageOutput) SetPlatform(v string) *ImportImageOutput {
  51941. s.Platform = &v
  51942. return s
  51943. }
  51944. // SetProgress sets the Progress field's value.
  51945. func (s *ImportImageOutput) SetProgress(v string) *ImportImageOutput {
  51946. s.Progress = &v
  51947. return s
  51948. }
  51949. // SetSnapshotDetails sets the SnapshotDetails field's value.
  51950. func (s *ImportImageOutput) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageOutput {
  51951. s.SnapshotDetails = v
  51952. return s
  51953. }
  51954. // SetStatus sets the Status field's value.
  51955. func (s *ImportImageOutput) SetStatus(v string) *ImportImageOutput {
  51956. s.Status = &v
  51957. return s
  51958. }
  51959. // SetStatusMessage sets the StatusMessage field's value.
  51960. func (s *ImportImageOutput) SetStatusMessage(v string) *ImportImageOutput {
  51961. s.StatusMessage = &v
  51962. return s
  51963. }
  51964. // Describes an import image task.
  51965. type ImportImageTask struct {
  51966. _ struct{} `type:"structure"`
  51967. // The architecture of the virtual machine.
  51968. //
  51969. // Valid values: i386 | x86_64
  51970. Architecture *string `locationName:"architecture" type:"string"`
  51971. // A description of the import task.
  51972. Description *string `locationName:"description" type:"string"`
  51973. // Indicates whether the image is encrypted.
  51974. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  51975. // The target hypervisor for the import task.
  51976. //
  51977. // Valid values: xen
  51978. Hypervisor *string `locationName:"hypervisor" type:"string"`
  51979. // The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
  51980. ImageId *string `locationName:"imageId" type:"string"`
  51981. // The ID of the import image task.
  51982. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  51983. // The identifier for the AWS Key Management Service (AWS KMS) customer master
  51984. // key (CMK) that was used to create the encrypted image.
  51985. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  51986. // The license type of the virtual machine.
  51987. LicenseType *string `locationName:"licenseType" type:"string"`
  51988. // The description string for the import image task.
  51989. Platform *string `locationName:"platform" type:"string"`
  51990. // The percentage of progress of the import image task.
  51991. Progress *string `locationName:"progress" type:"string"`
  51992. // Information about the snapshots.
  51993. SnapshotDetails []*SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`
  51994. // A brief status for the import image task.
  51995. Status *string `locationName:"status" type:"string"`
  51996. // A descriptive status message for the import image task.
  51997. StatusMessage *string `locationName:"statusMessage" type:"string"`
  51998. }
  51999. // String returns the string representation
  52000. func (s ImportImageTask) String() string {
  52001. return awsutil.Prettify(s)
  52002. }
  52003. // GoString returns the string representation
  52004. func (s ImportImageTask) GoString() string {
  52005. return s.String()
  52006. }
  52007. // SetArchitecture sets the Architecture field's value.
  52008. func (s *ImportImageTask) SetArchitecture(v string) *ImportImageTask {
  52009. s.Architecture = &v
  52010. return s
  52011. }
  52012. // SetDescription sets the Description field's value.
  52013. func (s *ImportImageTask) SetDescription(v string) *ImportImageTask {
  52014. s.Description = &v
  52015. return s
  52016. }
  52017. // SetEncrypted sets the Encrypted field's value.
  52018. func (s *ImportImageTask) SetEncrypted(v bool) *ImportImageTask {
  52019. s.Encrypted = &v
  52020. return s
  52021. }
  52022. // SetHypervisor sets the Hypervisor field's value.
  52023. func (s *ImportImageTask) SetHypervisor(v string) *ImportImageTask {
  52024. s.Hypervisor = &v
  52025. return s
  52026. }
  52027. // SetImageId sets the ImageId field's value.
  52028. func (s *ImportImageTask) SetImageId(v string) *ImportImageTask {
  52029. s.ImageId = &v
  52030. return s
  52031. }
  52032. // SetImportTaskId sets the ImportTaskId field's value.
  52033. func (s *ImportImageTask) SetImportTaskId(v string) *ImportImageTask {
  52034. s.ImportTaskId = &v
  52035. return s
  52036. }
  52037. // SetKmsKeyId sets the KmsKeyId field's value.
  52038. func (s *ImportImageTask) SetKmsKeyId(v string) *ImportImageTask {
  52039. s.KmsKeyId = &v
  52040. return s
  52041. }
  52042. // SetLicenseType sets the LicenseType field's value.
  52043. func (s *ImportImageTask) SetLicenseType(v string) *ImportImageTask {
  52044. s.LicenseType = &v
  52045. return s
  52046. }
  52047. // SetPlatform sets the Platform field's value.
  52048. func (s *ImportImageTask) SetPlatform(v string) *ImportImageTask {
  52049. s.Platform = &v
  52050. return s
  52051. }
  52052. // SetProgress sets the Progress field's value.
  52053. func (s *ImportImageTask) SetProgress(v string) *ImportImageTask {
  52054. s.Progress = &v
  52055. return s
  52056. }
  52057. // SetSnapshotDetails sets the SnapshotDetails field's value.
  52058. func (s *ImportImageTask) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageTask {
  52059. s.SnapshotDetails = v
  52060. return s
  52061. }
  52062. // SetStatus sets the Status field's value.
  52063. func (s *ImportImageTask) SetStatus(v string) *ImportImageTask {
  52064. s.Status = &v
  52065. return s
  52066. }
  52067. // SetStatusMessage sets the StatusMessage field's value.
  52068. func (s *ImportImageTask) SetStatusMessage(v string) *ImportImageTask {
  52069. s.StatusMessage = &v
  52070. return s
  52071. }
  52072. // Contains the parameters for ImportInstance.
  52073. type ImportInstanceInput struct {
  52074. _ struct{} `type:"structure"`
  52075. // A description for the instance being imported.
  52076. Description *string `locationName:"description" type:"string"`
  52077. // The disk image.
  52078. DiskImages []*DiskImage `locationName:"diskImage" type:"list"`
  52079. // Checks whether you have the required permissions for the action, without
  52080. // actually making the request, and provides an error response. If you have
  52081. // the required permissions, the error response is DryRunOperation. Otherwise,
  52082. // it is UnauthorizedOperation.
  52083. DryRun *bool `locationName:"dryRun" type:"boolean"`
  52084. // The launch specification.
  52085. LaunchSpecification *ImportInstanceLaunchSpecification `locationName:"launchSpecification" type:"structure"`
  52086. // The instance operating system.
  52087. //
  52088. // Platform is a required field
  52089. Platform *string `locationName:"platform" type:"string" required:"true" enum:"PlatformValues"`
  52090. }
  52091. // String returns the string representation
  52092. func (s ImportInstanceInput) String() string {
  52093. return awsutil.Prettify(s)
  52094. }
  52095. // GoString returns the string representation
  52096. func (s ImportInstanceInput) GoString() string {
  52097. return s.String()
  52098. }
  52099. // Validate inspects the fields of the type to determine if they are valid.
  52100. func (s *ImportInstanceInput) Validate() error {
  52101. invalidParams := request.ErrInvalidParams{Context: "ImportInstanceInput"}
  52102. if s.Platform == nil {
  52103. invalidParams.Add(request.NewErrParamRequired("Platform"))
  52104. }
  52105. if s.DiskImages != nil {
  52106. for i, v := range s.DiskImages {
  52107. if v == nil {
  52108. continue
  52109. }
  52110. if err := v.Validate(); err != nil {
  52111. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DiskImages", i), err.(request.ErrInvalidParams))
  52112. }
  52113. }
  52114. }
  52115. if invalidParams.Len() > 0 {
  52116. return invalidParams
  52117. }
  52118. return nil
  52119. }
  52120. // SetDescription sets the Description field's value.
  52121. func (s *ImportInstanceInput) SetDescription(v string) *ImportInstanceInput {
  52122. s.Description = &v
  52123. return s
  52124. }
  52125. // SetDiskImages sets the DiskImages field's value.
  52126. func (s *ImportInstanceInput) SetDiskImages(v []*DiskImage) *ImportInstanceInput {
  52127. s.DiskImages = v
  52128. return s
  52129. }
  52130. // SetDryRun sets the DryRun field's value.
  52131. func (s *ImportInstanceInput) SetDryRun(v bool) *ImportInstanceInput {
  52132. s.DryRun = &v
  52133. return s
  52134. }
  52135. // SetLaunchSpecification sets the LaunchSpecification field's value.
  52136. func (s *ImportInstanceInput) SetLaunchSpecification(v *ImportInstanceLaunchSpecification) *ImportInstanceInput {
  52137. s.LaunchSpecification = v
  52138. return s
  52139. }
  52140. // SetPlatform sets the Platform field's value.
  52141. func (s *ImportInstanceInput) SetPlatform(v string) *ImportInstanceInput {
  52142. s.Platform = &v
  52143. return s
  52144. }
  52145. // Describes the launch specification for VM import.
  52146. type ImportInstanceLaunchSpecification struct {
  52147. _ struct{} `type:"structure"`
  52148. // Reserved.
  52149. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  52150. // The architecture of the instance.
  52151. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  52152. // One or more security group IDs.
  52153. GroupIds []*string `locationName:"GroupId" locationNameList:"SecurityGroupId" type:"list"`
  52154. // One or more security group names.
  52155. GroupNames []*string `locationName:"GroupName" locationNameList:"SecurityGroup" type:"list"`
  52156. // Indicates whether an instance stops or terminates when you initiate shutdown
  52157. // from the instance (using the operating system command for system shutdown).
  52158. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  52159. // The instance type. For more information about the instance types that you
  52160. // can import, see Instance Types (http://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#vmimport-instance-types)
  52161. // in the VM Import/Export User Guide.
  52162. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  52163. // Indicates whether monitoring is enabled.
  52164. Monitoring *bool `locationName:"monitoring" type:"boolean"`
  52165. // The placement information for the instance.
  52166. Placement *Placement `locationName:"placement" type:"structure"`
  52167. // [EC2-VPC] An available IP address from the IP address range of the subnet.
  52168. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  52169. // [EC2-VPC] The ID of the subnet in which to launch the instance.
  52170. SubnetId *string `locationName:"subnetId" type:"string"`
  52171. // The Base64-encoded user data to make available to the instance.
  52172. UserData *UserData `locationName:"userData" type:"structure"`
  52173. }
  52174. // String returns the string representation
  52175. func (s ImportInstanceLaunchSpecification) String() string {
  52176. return awsutil.Prettify(s)
  52177. }
  52178. // GoString returns the string representation
  52179. func (s ImportInstanceLaunchSpecification) GoString() string {
  52180. return s.String()
  52181. }
  52182. // SetAdditionalInfo sets the AdditionalInfo field's value.
  52183. func (s *ImportInstanceLaunchSpecification) SetAdditionalInfo(v string) *ImportInstanceLaunchSpecification {
  52184. s.AdditionalInfo = &v
  52185. return s
  52186. }
  52187. // SetArchitecture sets the Architecture field's value.
  52188. func (s *ImportInstanceLaunchSpecification) SetArchitecture(v string) *ImportInstanceLaunchSpecification {
  52189. s.Architecture = &v
  52190. return s
  52191. }
  52192. // SetGroupIds sets the GroupIds field's value.
  52193. func (s *ImportInstanceLaunchSpecification) SetGroupIds(v []*string) *ImportInstanceLaunchSpecification {
  52194. s.GroupIds = v
  52195. return s
  52196. }
  52197. // SetGroupNames sets the GroupNames field's value.
  52198. func (s *ImportInstanceLaunchSpecification) SetGroupNames(v []*string) *ImportInstanceLaunchSpecification {
  52199. s.GroupNames = v
  52200. return s
  52201. }
  52202. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  52203. func (s *ImportInstanceLaunchSpecification) SetInstanceInitiatedShutdownBehavior(v string) *ImportInstanceLaunchSpecification {
  52204. s.InstanceInitiatedShutdownBehavior = &v
  52205. return s
  52206. }
  52207. // SetInstanceType sets the InstanceType field's value.
  52208. func (s *ImportInstanceLaunchSpecification) SetInstanceType(v string) *ImportInstanceLaunchSpecification {
  52209. s.InstanceType = &v
  52210. return s
  52211. }
  52212. // SetMonitoring sets the Monitoring field's value.
  52213. func (s *ImportInstanceLaunchSpecification) SetMonitoring(v bool) *ImportInstanceLaunchSpecification {
  52214. s.Monitoring = &v
  52215. return s
  52216. }
  52217. // SetPlacement sets the Placement field's value.
  52218. func (s *ImportInstanceLaunchSpecification) SetPlacement(v *Placement) *ImportInstanceLaunchSpecification {
  52219. s.Placement = v
  52220. return s
  52221. }
  52222. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  52223. func (s *ImportInstanceLaunchSpecification) SetPrivateIpAddress(v string) *ImportInstanceLaunchSpecification {
  52224. s.PrivateIpAddress = &v
  52225. return s
  52226. }
  52227. // SetSubnetId sets the SubnetId field's value.
  52228. func (s *ImportInstanceLaunchSpecification) SetSubnetId(v string) *ImportInstanceLaunchSpecification {
  52229. s.SubnetId = &v
  52230. return s
  52231. }
  52232. // SetUserData sets the UserData field's value.
  52233. func (s *ImportInstanceLaunchSpecification) SetUserData(v *UserData) *ImportInstanceLaunchSpecification {
  52234. s.UserData = v
  52235. return s
  52236. }
  52237. // Contains the output for ImportInstance.
  52238. type ImportInstanceOutput struct {
  52239. _ struct{} `type:"structure"`
  52240. // Information about the conversion task.
  52241. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
  52242. }
  52243. // String returns the string representation
  52244. func (s ImportInstanceOutput) String() string {
  52245. return awsutil.Prettify(s)
  52246. }
  52247. // GoString returns the string representation
  52248. func (s ImportInstanceOutput) GoString() string {
  52249. return s.String()
  52250. }
  52251. // SetConversionTask sets the ConversionTask field's value.
  52252. func (s *ImportInstanceOutput) SetConversionTask(v *ConversionTask) *ImportInstanceOutput {
  52253. s.ConversionTask = v
  52254. return s
  52255. }
  52256. // Describes an import instance task.
  52257. type ImportInstanceTaskDetails struct {
  52258. _ struct{} `type:"structure"`
  52259. // A description of the task.
  52260. Description *string `locationName:"description" type:"string"`
  52261. // The ID of the instance.
  52262. InstanceId *string `locationName:"instanceId" type:"string"`
  52263. // The instance operating system.
  52264. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  52265. // One or more volumes.
  52266. Volumes []*ImportInstanceVolumeDetailItem `locationName:"volumes" locationNameList:"item" type:"list"`
  52267. }
  52268. // String returns the string representation
  52269. func (s ImportInstanceTaskDetails) String() string {
  52270. return awsutil.Prettify(s)
  52271. }
  52272. // GoString returns the string representation
  52273. func (s ImportInstanceTaskDetails) GoString() string {
  52274. return s.String()
  52275. }
  52276. // SetDescription sets the Description field's value.
  52277. func (s *ImportInstanceTaskDetails) SetDescription(v string) *ImportInstanceTaskDetails {
  52278. s.Description = &v
  52279. return s
  52280. }
  52281. // SetInstanceId sets the InstanceId field's value.
  52282. func (s *ImportInstanceTaskDetails) SetInstanceId(v string) *ImportInstanceTaskDetails {
  52283. s.InstanceId = &v
  52284. return s
  52285. }
  52286. // SetPlatform sets the Platform field's value.
  52287. func (s *ImportInstanceTaskDetails) SetPlatform(v string) *ImportInstanceTaskDetails {
  52288. s.Platform = &v
  52289. return s
  52290. }
  52291. // SetVolumes sets the Volumes field's value.
  52292. func (s *ImportInstanceTaskDetails) SetVolumes(v []*ImportInstanceVolumeDetailItem) *ImportInstanceTaskDetails {
  52293. s.Volumes = v
  52294. return s
  52295. }
  52296. // Describes an import volume task.
  52297. type ImportInstanceVolumeDetailItem struct {
  52298. _ struct{} `type:"structure"`
  52299. // The Availability Zone where the resulting instance will reside.
  52300. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  52301. // The number of bytes converted so far.
  52302. BytesConverted *int64 `locationName:"bytesConverted" type:"long"`
  52303. // A description of the task.
  52304. Description *string `locationName:"description" type:"string"`
  52305. // The image.
  52306. Image *DiskImageDescription `locationName:"image" type:"structure"`
  52307. // The status of the import of this particular disk image.
  52308. Status *string `locationName:"status" type:"string"`
  52309. // The status information or errors related to the disk image.
  52310. StatusMessage *string `locationName:"statusMessage" type:"string"`
  52311. // The volume.
  52312. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure"`
  52313. }
  52314. // String returns the string representation
  52315. func (s ImportInstanceVolumeDetailItem) String() string {
  52316. return awsutil.Prettify(s)
  52317. }
  52318. // GoString returns the string representation
  52319. func (s ImportInstanceVolumeDetailItem) GoString() string {
  52320. return s.String()
  52321. }
  52322. // SetAvailabilityZone sets the AvailabilityZone field's value.
  52323. func (s *ImportInstanceVolumeDetailItem) SetAvailabilityZone(v string) *ImportInstanceVolumeDetailItem {
  52324. s.AvailabilityZone = &v
  52325. return s
  52326. }
  52327. // SetBytesConverted sets the BytesConverted field's value.
  52328. func (s *ImportInstanceVolumeDetailItem) SetBytesConverted(v int64) *ImportInstanceVolumeDetailItem {
  52329. s.BytesConverted = &v
  52330. return s
  52331. }
  52332. // SetDescription sets the Description field's value.
  52333. func (s *ImportInstanceVolumeDetailItem) SetDescription(v string) *ImportInstanceVolumeDetailItem {
  52334. s.Description = &v
  52335. return s
  52336. }
  52337. // SetImage sets the Image field's value.
  52338. func (s *ImportInstanceVolumeDetailItem) SetImage(v *DiskImageDescription) *ImportInstanceVolumeDetailItem {
  52339. s.Image = v
  52340. return s
  52341. }
  52342. // SetStatus sets the Status field's value.
  52343. func (s *ImportInstanceVolumeDetailItem) SetStatus(v string) *ImportInstanceVolumeDetailItem {
  52344. s.Status = &v
  52345. return s
  52346. }
  52347. // SetStatusMessage sets the StatusMessage field's value.
  52348. func (s *ImportInstanceVolumeDetailItem) SetStatusMessage(v string) *ImportInstanceVolumeDetailItem {
  52349. s.StatusMessage = &v
  52350. return s
  52351. }
  52352. // SetVolume sets the Volume field's value.
  52353. func (s *ImportInstanceVolumeDetailItem) SetVolume(v *DiskImageVolumeDescription) *ImportInstanceVolumeDetailItem {
  52354. s.Volume = v
  52355. return s
  52356. }
  52357. type ImportKeyPairInput struct {
  52358. _ struct{} `type:"structure"`
  52359. // Checks whether you have the required permissions for the action, without
  52360. // actually making the request, and provides an error response. If you have
  52361. // the required permissions, the error response is DryRunOperation. Otherwise,
  52362. // it is UnauthorizedOperation.
  52363. DryRun *bool `locationName:"dryRun" type:"boolean"`
  52364. // A unique name for the key pair.
  52365. //
  52366. // KeyName is a required field
  52367. KeyName *string `locationName:"keyName" type:"string" required:"true"`
  52368. // The public key. For API calls, the text must be base64-encoded. For command
  52369. // line tools, base64 encoding is performed for you.
  52370. //
  52371. // PublicKeyMaterial is automatically base64 encoded/decoded by the SDK.
  52372. //
  52373. // PublicKeyMaterial is a required field
  52374. PublicKeyMaterial []byte `locationName:"publicKeyMaterial" type:"blob" required:"true"`
  52375. }
  52376. // String returns the string representation
  52377. func (s ImportKeyPairInput) String() string {
  52378. return awsutil.Prettify(s)
  52379. }
  52380. // GoString returns the string representation
  52381. func (s ImportKeyPairInput) GoString() string {
  52382. return s.String()
  52383. }
  52384. // Validate inspects the fields of the type to determine if they are valid.
  52385. func (s *ImportKeyPairInput) Validate() error {
  52386. invalidParams := request.ErrInvalidParams{Context: "ImportKeyPairInput"}
  52387. if s.KeyName == nil {
  52388. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  52389. }
  52390. if s.PublicKeyMaterial == nil {
  52391. invalidParams.Add(request.NewErrParamRequired("PublicKeyMaterial"))
  52392. }
  52393. if invalidParams.Len() > 0 {
  52394. return invalidParams
  52395. }
  52396. return nil
  52397. }
  52398. // SetDryRun sets the DryRun field's value.
  52399. func (s *ImportKeyPairInput) SetDryRun(v bool) *ImportKeyPairInput {
  52400. s.DryRun = &v
  52401. return s
  52402. }
  52403. // SetKeyName sets the KeyName field's value.
  52404. func (s *ImportKeyPairInput) SetKeyName(v string) *ImportKeyPairInput {
  52405. s.KeyName = &v
  52406. return s
  52407. }
  52408. // SetPublicKeyMaterial sets the PublicKeyMaterial field's value.
  52409. func (s *ImportKeyPairInput) SetPublicKeyMaterial(v []byte) *ImportKeyPairInput {
  52410. s.PublicKeyMaterial = v
  52411. return s
  52412. }
  52413. type ImportKeyPairOutput struct {
  52414. _ struct{} `type:"structure"`
  52415. // The MD5 public key fingerprint as specified in section 4 of RFC 4716.
  52416. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  52417. // The key pair name you provided.
  52418. KeyName *string `locationName:"keyName" type:"string"`
  52419. }
  52420. // String returns the string representation
  52421. func (s ImportKeyPairOutput) String() string {
  52422. return awsutil.Prettify(s)
  52423. }
  52424. // GoString returns the string representation
  52425. func (s ImportKeyPairOutput) GoString() string {
  52426. return s.String()
  52427. }
  52428. // SetKeyFingerprint sets the KeyFingerprint field's value.
  52429. func (s *ImportKeyPairOutput) SetKeyFingerprint(v string) *ImportKeyPairOutput {
  52430. s.KeyFingerprint = &v
  52431. return s
  52432. }
  52433. // SetKeyName sets the KeyName field's value.
  52434. func (s *ImportKeyPairOutput) SetKeyName(v string) *ImportKeyPairOutput {
  52435. s.KeyName = &v
  52436. return s
  52437. }
  52438. // Contains the parameters for ImportSnapshot.
  52439. type ImportSnapshotInput struct {
  52440. _ struct{} `type:"structure"`
  52441. // The client-specific data.
  52442. ClientData *ClientData `type:"structure"`
  52443. // Token to enable idempotency for VM import requests.
  52444. ClientToken *string `type:"string"`
  52445. // The description string for the import snapshot task.
  52446. Description *string `type:"string"`
  52447. // Information about the disk container.
  52448. DiskContainer *SnapshotDiskContainer `type:"structure"`
  52449. // Checks whether you have the required permissions for the action, without
  52450. // actually making the request, and provides an error response. If you have
  52451. // the required permissions, the error response is DryRunOperation. Otherwise,
  52452. // it is UnauthorizedOperation.
  52453. DryRun *bool `type:"boolean"`
  52454. // Specifies whether the destination snapshot of the imported image should be
  52455. // encrypted. The default CMK for EBS is used unless you specify a non-default
  52456. // AWS Key Management Service (AWS KMS) CMK using KmsKeyId. For more information,
  52457. // see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  52458. // in the Amazon Elastic Compute Cloud User Guide.
  52459. Encrypted *bool `type:"boolean"`
  52460. // An identifier for the AWS Key Management Service (AWS KMS) customer master
  52461. // key (CMK) to use when creating the encrypted snapshot. This parameter is
  52462. // only required if you want to use a non-default CMK; if this parameter is
  52463. // not specified, the default CMK for EBS is used. If a KmsKeyId is specified,
  52464. // the Encrypted flag must also be set.
  52465. //
  52466. // The CMK identifier may be provided in any of the following formats:
  52467. //
  52468. // * Key ID
  52469. //
  52470. // * Key alias, in the form alias/ExampleAlias
  52471. //
  52472. // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
  52473. // by the region of the CMK, the AWS account ID of the CMK owner, the key
  52474. // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  52475. //
  52476. // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
  52477. // followed by the region of the CMK, the AWS account ID of the CMK owner,
  52478. // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
  52479. //
  52480. //
  52481. // AWS parses KmsKeyId asynchronously, meaning that the action you call may
  52482. // appear to complete even though you provided an invalid identifier. This action
  52483. // will eventually report failure.
  52484. //
  52485. // The specified CMK must exist in the region that the snapshot is being copied
  52486. // to.
  52487. KmsKeyId *string `type:"string"`
  52488. // The name of the role to use when not using the default role, 'vmimport'.
  52489. RoleName *string `type:"string"`
  52490. }
  52491. // String returns the string representation
  52492. func (s ImportSnapshotInput) String() string {
  52493. return awsutil.Prettify(s)
  52494. }
  52495. // GoString returns the string representation
  52496. func (s ImportSnapshotInput) GoString() string {
  52497. return s.String()
  52498. }
  52499. // SetClientData sets the ClientData field's value.
  52500. func (s *ImportSnapshotInput) SetClientData(v *ClientData) *ImportSnapshotInput {
  52501. s.ClientData = v
  52502. return s
  52503. }
  52504. // SetClientToken sets the ClientToken field's value.
  52505. func (s *ImportSnapshotInput) SetClientToken(v string) *ImportSnapshotInput {
  52506. s.ClientToken = &v
  52507. return s
  52508. }
  52509. // SetDescription sets the Description field's value.
  52510. func (s *ImportSnapshotInput) SetDescription(v string) *ImportSnapshotInput {
  52511. s.Description = &v
  52512. return s
  52513. }
  52514. // SetDiskContainer sets the DiskContainer field's value.
  52515. func (s *ImportSnapshotInput) SetDiskContainer(v *SnapshotDiskContainer) *ImportSnapshotInput {
  52516. s.DiskContainer = v
  52517. return s
  52518. }
  52519. // SetDryRun sets the DryRun field's value.
  52520. func (s *ImportSnapshotInput) SetDryRun(v bool) *ImportSnapshotInput {
  52521. s.DryRun = &v
  52522. return s
  52523. }
  52524. // SetEncrypted sets the Encrypted field's value.
  52525. func (s *ImportSnapshotInput) SetEncrypted(v bool) *ImportSnapshotInput {
  52526. s.Encrypted = &v
  52527. return s
  52528. }
  52529. // SetKmsKeyId sets the KmsKeyId field's value.
  52530. func (s *ImportSnapshotInput) SetKmsKeyId(v string) *ImportSnapshotInput {
  52531. s.KmsKeyId = &v
  52532. return s
  52533. }
  52534. // SetRoleName sets the RoleName field's value.
  52535. func (s *ImportSnapshotInput) SetRoleName(v string) *ImportSnapshotInput {
  52536. s.RoleName = &v
  52537. return s
  52538. }
  52539. // Contains the output for ImportSnapshot.
  52540. type ImportSnapshotOutput struct {
  52541. _ struct{} `type:"structure"`
  52542. // A description of the import snapshot task.
  52543. Description *string `locationName:"description" type:"string"`
  52544. // The ID of the import snapshot task.
  52545. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  52546. // Information about the import snapshot task.
  52547. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`
  52548. }
  52549. // String returns the string representation
  52550. func (s ImportSnapshotOutput) String() string {
  52551. return awsutil.Prettify(s)
  52552. }
  52553. // GoString returns the string representation
  52554. func (s ImportSnapshotOutput) GoString() string {
  52555. return s.String()
  52556. }
  52557. // SetDescription sets the Description field's value.
  52558. func (s *ImportSnapshotOutput) SetDescription(v string) *ImportSnapshotOutput {
  52559. s.Description = &v
  52560. return s
  52561. }
  52562. // SetImportTaskId sets the ImportTaskId field's value.
  52563. func (s *ImportSnapshotOutput) SetImportTaskId(v string) *ImportSnapshotOutput {
  52564. s.ImportTaskId = &v
  52565. return s
  52566. }
  52567. // SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value.
  52568. func (s *ImportSnapshotOutput) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotOutput {
  52569. s.SnapshotTaskDetail = v
  52570. return s
  52571. }
  52572. // Describes an import snapshot task.
  52573. type ImportSnapshotTask struct {
  52574. _ struct{} `type:"structure"`
  52575. // A description of the import snapshot task.
  52576. Description *string `locationName:"description" type:"string"`
  52577. // The ID of the import snapshot task.
  52578. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  52579. // Describes an import snapshot task.
  52580. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`
  52581. }
  52582. // String returns the string representation
  52583. func (s ImportSnapshotTask) String() string {
  52584. return awsutil.Prettify(s)
  52585. }
  52586. // GoString returns the string representation
  52587. func (s ImportSnapshotTask) GoString() string {
  52588. return s.String()
  52589. }
  52590. // SetDescription sets the Description field's value.
  52591. func (s *ImportSnapshotTask) SetDescription(v string) *ImportSnapshotTask {
  52592. s.Description = &v
  52593. return s
  52594. }
  52595. // SetImportTaskId sets the ImportTaskId field's value.
  52596. func (s *ImportSnapshotTask) SetImportTaskId(v string) *ImportSnapshotTask {
  52597. s.ImportTaskId = &v
  52598. return s
  52599. }
  52600. // SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value.
  52601. func (s *ImportSnapshotTask) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotTask {
  52602. s.SnapshotTaskDetail = v
  52603. return s
  52604. }
  52605. // Contains the parameters for ImportVolume.
  52606. type ImportVolumeInput struct {
  52607. _ struct{} `type:"structure"`
  52608. // The Availability Zone for the resulting EBS volume.
  52609. //
  52610. // AvailabilityZone is a required field
  52611. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  52612. // A description of the volume.
  52613. Description *string `locationName:"description" type:"string"`
  52614. // Checks whether you have the required permissions for the action, without
  52615. // actually making the request, and provides an error response. If you have
  52616. // the required permissions, the error response is DryRunOperation. Otherwise,
  52617. // it is UnauthorizedOperation.
  52618. DryRun *bool `locationName:"dryRun" type:"boolean"`
  52619. // The disk image.
  52620. //
  52621. // Image is a required field
  52622. Image *DiskImageDetail `locationName:"image" type:"structure" required:"true"`
  52623. // The volume size.
  52624. //
  52625. // Volume is a required field
  52626. Volume *VolumeDetail `locationName:"volume" type:"structure" required:"true"`
  52627. }
  52628. // String returns the string representation
  52629. func (s ImportVolumeInput) String() string {
  52630. return awsutil.Prettify(s)
  52631. }
  52632. // GoString returns the string representation
  52633. func (s ImportVolumeInput) GoString() string {
  52634. return s.String()
  52635. }
  52636. // Validate inspects the fields of the type to determine if they are valid.
  52637. func (s *ImportVolumeInput) Validate() error {
  52638. invalidParams := request.ErrInvalidParams{Context: "ImportVolumeInput"}
  52639. if s.AvailabilityZone == nil {
  52640. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  52641. }
  52642. if s.Image == nil {
  52643. invalidParams.Add(request.NewErrParamRequired("Image"))
  52644. }
  52645. if s.Volume == nil {
  52646. invalidParams.Add(request.NewErrParamRequired("Volume"))
  52647. }
  52648. if s.Image != nil {
  52649. if err := s.Image.Validate(); err != nil {
  52650. invalidParams.AddNested("Image", err.(request.ErrInvalidParams))
  52651. }
  52652. }
  52653. if s.Volume != nil {
  52654. if err := s.Volume.Validate(); err != nil {
  52655. invalidParams.AddNested("Volume", err.(request.ErrInvalidParams))
  52656. }
  52657. }
  52658. if invalidParams.Len() > 0 {
  52659. return invalidParams
  52660. }
  52661. return nil
  52662. }
  52663. // SetAvailabilityZone sets the AvailabilityZone field's value.
  52664. func (s *ImportVolumeInput) SetAvailabilityZone(v string) *ImportVolumeInput {
  52665. s.AvailabilityZone = &v
  52666. return s
  52667. }
  52668. // SetDescription sets the Description field's value.
  52669. func (s *ImportVolumeInput) SetDescription(v string) *ImportVolumeInput {
  52670. s.Description = &v
  52671. return s
  52672. }
  52673. // SetDryRun sets the DryRun field's value.
  52674. func (s *ImportVolumeInput) SetDryRun(v bool) *ImportVolumeInput {
  52675. s.DryRun = &v
  52676. return s
  52677. }
  52678. // SetImage sets the Image field's value.
  52679. func (s *ImportVolumeInput) SetImage(v *DiskImageDetail) *ImportVolumeInput {
  52680. s.Image = v
  52681. return s
  52682. }
  52683. // SetVolume sets the Volume field's value.
  52684. func (s *ImportVolumeInput) SetVolume(v *VolumeDetail) *ImportVolumeInput {
  52685. s.Volume = v
  52686. return s
  52687. }
  52688. // Contains the output for ImportVolume.
  52689. type ImportVolumeOutput struct {
  52690. _ struct{} `type:"structure"`
  52691. // Information about the conversion task.
  52692. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
  52693. }
  52694. // String returns the string representation
  52695. func (s ImportVolumeOutput) String() string {
  52696. return awsutil.Prettify(s)
  52697. }
  52698. // GoString returns the string representation
  52699. func (s ImportVolumeOutput) GoString() string {
  52700. return s.String()
  52701. }
  52702. // SetConversionTask sets the ConversionTask field's value.
  52703. func (s *ImportVolumeOutput) SetConversionTask(v *ConversionTask) *ImportVolumeOutput {
  52704. s.ConversionTask = v
  52705. return s
  52706. }
  52707. // Describes an import volume task.
  52708. type ImportVolumeTaskDetails struct {
  52709. _ struct{} `type:"structure"`
  52710. // The Availability Zone where the resulting volume will reside.
  52711. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  52712. // The number of bytes converted so far.
  52713. BytesConverted *int64 `locationName:"bytesConverted" type:"long"`
  52714. // The description you provided when starting the import volume task.
  52715. Description *string `locationName:"description" type:"string"`
  52716. // The image.
  52717. Image *DiskImageDescription `locationName:"image" type:"structure"`
  52718. // The volume.
  52719. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure"`
  52720. }
  52721. // String returns the string representation
  52722. func (s ImportVolumeTaskDetails) String() string {
  52723. return awsutil.Prettify(s)
  52724. }
  52725. // GoString returns the string representation
  52726. func (s ImportVolumeTaskDetails) GoString() string {
  52727. return s.String()
  52728. }
  52729. // SetAvailabilityZone sets the AvailabilityZone field's value.
  52730. func (s *ImportVolumeTaskDetails) SetAvailabilityZone(v string) *ImportVolumeTaskDetails {
  52731. s.AvailabilityZone = &v
  52732. return s
  52733. }
  52734. // SetBytesConverted sets the BytesConverted field's value.
  52735. func (s *ImportVolumeTaskDetails) SetBytesConverted(v int64) *ImportVolumeTaskDetails {
  52736. s.BytesConverted = &v
  52737. return s
  52738. }
  52739. // SetDescription sets the Description field's value.
  52740. func (s *ImportVolumeTaskDetails) SetDescription(v string) *ImportVolumeTaskDetails {
  52741. s.Description = &v
  52742. return s
  52743. }
  52744. // SetImage sets the Image field's value.
  52745. func (s *ImportVolumeTaskDetails) SetImage(v *DiskImageDescription) *ImportVolumeTaskDetails {
  52746. s.Image = v
  52747. return s
  52748. }
  52749. // SetVolume sets the Volume field's value.
  52750. func (s *ImportVolumeTaskDetails) SetVolume(v *DiskImageVolumeDescription) *ImportVolumeTaskDetails {
  52751. s.Volume = v
  52752. return s
  52753. }
  52754. // Describes an instance.
  52755. type Instance struct {
  52756. _ struct{} `type:"structure"`
  52757. // The AMI launch index, which can be used to find this instance in the launch
  52758. // group.
  52759. AmiLaunchIndex *int64 `locationName:"amiLaunchIndex" type:"integer"`
  52760. // The architecture of the image.
  52761. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  52762. // Any block device mapping entries for the instance.
  52763. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  52764. // The ID of the Capacity Reservation.
  52765. CapacityReservationId *string `locationName:"capacityReservationId" type:"string"`
  52766. // Information about the Capacity Reservation targeting option.
  52767. CapacityReservationSpecification *CapacityReservationSpecificationResponse `locationName:"capacityReservationSpecification" type:"structure"`
  52768. // The idempotency token you provided when you launched the instance, if applicable.
  52769. ClientToken *string `locationName:"clientToken" type:"string"`
  52770. // The CPU options for the instance.
  52771. CpuOptions *CpuOptions `locationName:"cpuOptions" type:"structure"`
  52772. // Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
  52773. // provides dedicated throughput to Amazon EBS and an optimized configuration
  52774. // stack to provide optimal I/O performance. This optimization isn't available
  52775. // with all instance types. Additional usage charges apply when using an EBS
  52776. // Optimized instance.
  52777. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  52778. // The Elastic GPU associated with the instance.
  52779. ElasticGpuAssociations []*ElasticGpuAssociation `locationName:"elasticGpuAssociationSet" locationNameList:"item" type:"list"`
  52780. // The elastic inference accelerator associated with the instance.
  52781. ElasticInferenceAcceleratorAssociations []*ElasticInferenceAcceleratorAssociation `locationName:"elasticInferenceAcceleratorAssociationSet" locationNameList:"item" type:"list"`
  52782. // Specifies whether enhanced networking with ENA is enabled.
  52783. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  52784. // Indicates whether the instance is enabled for hibernation.
  52785. HibernationOptions *HibernationOptions `locationName:"hibernationOptions" type:"structure"`
  52786. // The hypervisor type of the instance.
  52787. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"`
  52788. // The IAM instance profile associated with the instance, if applicable.
  52789. IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"`
  52790. // The ID of the AMI used to launch the instance.
  52791. ImageId *string `locationName:"imageId" type:"string"`
  52792. // The ID of the instance.
  52793. InstanceId *string `locationName:"instanceId" type:"string"`
  52794. // Indicates whether this is a Spot Instance or a Scheduled Instance.
  52795. InstanceLifecycle *string `locationName:"instanceLifecycle" type:"string" enum:"InstanceLifecycleType"`
  52796. // The instance type.
  52797. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  52798. // The kernel associated with this instance, if applicable.
  52799. KernelId *string `locationName:"kernelId" type:"string"`
  52800. // The name of the key pair, if this instance was launched with an associated
  52801. // key pair.
  52802. KeyName *string `locationName:"keyName" type:"string"`
  52803. // The time the instance was launched.
  52804. LaunchTime *time.Time `locationName:"launchTime" type:"timestamp"`
  52805. // The license configurations.
  52806. Licenses []*LicenseConfiguration `locationName:"licenseSet" locationNameList:"item" type:"list"`
  52807. // The monitoring for the instance.
  52808. Monitoring *Monitoring `locationName:"monitoring" type:"structure"`
  52809. // [EC2-VPC] One or more network interfaces for the instance.
  52810. NetworkInterfaces []*InstanceNetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  52811. // The location where the instance launched, if applicable.
  52812. Placement *Placement `locationName:"placement" type:"structure"`
  52813. // The value is Windows for Windows instances; otherwise blank.
  52814. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  52815. // (IPv4 only) The private DNS hostname name assigned to the instance. This
  52816. // DNS hostname can only be used inside the Amazon EC2 network. This name is
  52817. // not available until the instance enters the running state.
  52818. //
  52819. // [EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private
  52820. // DNS hostnames if you've enabled DNS resolution and DNS hostnames in your
  52821. // VPC. If you are not using the Amazon-provided DNS server in your VPC, your
  52822. // custom domain name servers must resolve the hostname as appropriate.
  52823. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  52824. // The private IPv4 address assigned to the instance.
  52825. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  52826. // The product codes attached to this instance, if applicable.
  52827. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  52828. // (IPv4 only) The public DNS name assigned to the instance. This name is not
  52829. // available until the instance enters the running state. For EC2-VPC, this
  52830. // name is only available if you've enabled DNS hostnames for your VPC.
  52831. PublicDnsName *string `locationName:"dnsName" type:"string"`
  52832. // The public IPv4 address assigned to the instance, if applicable.
  52833. PublicIpAddress *string `locationName:"ipAddress" type:"string"`
  52834. // The RAM disk associated with this instance, if applicable.
  52835. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  52836. // The device name of the root device volume (for example, /dev/sda1).
  52837. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  52838. // The root device type used by the AMI. The AMI can use an EBS volume or an
  52839. // instance store volume.
  52840. RootDeviceType *string `locationName:"rootDeviceType" type:"string" enum:"DeviceType"`
  52841. // One or more security groups for the instance.
  52842. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  52843. // Specifies whether to enable an instance launched in a VPC to perform NAT.
  52844. // This controls whether source/destination checking is enabled on the instance.
  52845. // A value of true means that checking is enabled, and false means that checking
  52846. // is disabled. The value must be false for the instance to perform NAT. For
  52847. // more information, see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  52848. // in the Amazon Virtual Private Cloud User Guide.
  52849. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  52850. // If the request is a Spot Instance request, the ID of the request.
  52851. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  52852. // Specifies whether enhanced networking with the Intel 82599 Virtual Function
  52853. // interface is enabled.
  52854. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  52855. // The current state of the instance.
  52856. State *InstanceState `locationName:"instanceState" type:"structure"`
  52857. // The reason for the most recent state transition.
  52858. StateReason *StateReason `locationName:"stateReason" type:"structure"`
  52859. // The reason for the most recent state transition. This might be an empty string.
  52860. StateTransitionReason *string `locationName:"reason" type:"string"`
  52861. // [EC2-VPC] The ID of the subnet in which the instance is running.
  52862. SubnetId *string `locationName:"subnetId" type:"string"`
  52863. // Any tags assigned to the instance.
  52864. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  52865. // The virtualization type of the instance.
  52866. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"`
  52867. // [EC2-VPC] The ID of the VPC in which the instance is running.
  52868. VpcId *string `locationName:"vpcId" type:"string"`
  52869. }
  52870. // String returns the string representation
  52871. func (s Instance) String() string {
  52872. return awsutil.Prettify(s)
  52873. }
  52874. // GoString returns the string representation
  52875. func (s Instance) GoString() string {
  52876. return s.String()
  52877. }
  52878. // SetAmiLaunchIndex sets the AmiLaunchIndex field's value.
  52879. func (s *Instance) SetAmiLaunchIndex(v int64) *Instance {
  52880. s.AmiLaunchIndex = &v
  52881. return s
  52882. }
  52883. // SetArchitecture sets the Architecture field's value.
  52884. func (s *Instance) SetArchitecture(v string) *Instance {
  52885. s.Architecture = &v
  52886. return s
  52887. }
  52888. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  52889. func (s *Instance) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *Instance {
  52890. s.BlockDeviceMappings = v
  52891. return s
  52892. }
  52893. // SetCapacityReservationId sets the CapacityReservationId field's value.
  52894. func (s *Instance) SetCapacityReservationId(v string) *Instance {
  52895. s.CapacityReservationId = &v
  52896. return s
  52897. }
  52898. // SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value.
  52899. func (s *Instance) SetCapacityReservationSpecification(v *CapacityReservationSpecificationResponse) *Instance {
  52900. s.CapacityReservationSpecification = v
  52901. return s
  52902. }
  52903. // SetClientToken sets the ClientToken field's value.
  52904. func (s *Instance) SetClientToken(v string) *Instance {
  52905. s.ClientToken = &v
  52906. return s
  52907. }
  52908. // SetCpuOptions sets the CpuOptions field's value.
  52909. func (s *Instance) SetCpuOptions(v *CpuOptions) *Instance {
  52910. s.CpuOptions = v
  52911. return s
  52912. }
  52913. // SetEbsOptimized sets the EbsOptimized field's value.
  52914. func (s *Instance) SetEbsOptimized(v bool) *Instance {
  52915. s.EbsOptimized = &v
  52916. return s
  52917. }
  52918. // SetElasticGpuAssociations sets the ElasticGpuAssociations field's value.
  52919. func (s *Instance) SetElasticGpuAssociations(v []*ElasticGpuAssociation) *Instance {
  52920. s.ElasticGpuAssociations = v
  52921. return s
  52922. }
  52923. // SetElasticInferenceAcceleratorAssociations sets the ElasticInferenceAcceleratorAssociations field's value.
  52924. func (s *Instance) SetElasticInferenceAcceleratorAssociations(v []*ElasticInferenceAcceleratorAssociation) *Instance {
  52925. s.ElasticInferenceAcceleratorAssociations = v
  52926. return s
  52927. }
  52928. // SetEnaSupport sets the EnaSupport field's value.
  52929. func (s *Instance) SetEnaSupport(v bool) *Instance {
  52930. s.EnaSupport = &v
  52931. return s
  52932. }
  52933. // SetHibernationOptions sets the HibernationOptions field's value.
  52934. func (s *Instance) SetHibernationOptions(v *HibernationOptions) *Instance {
  52935. s.HibernationOptions = v
  52936. return s
  52937. }
  52938. // SetHypervisor sets the Hypervisor field's value.
  52939. func (s *Instance) SetHypervisor(v string) *Instance {
  52940. s.Hypervisor = &v
  52941. return s
  52942. }
  52943. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  52944. func (s *Instance) SetIamInstanceProfile(v *IamInstanceProfile) *Instance {
  52945. s.IamInstanceProfile = v
  52946. return s
  52947. }
  52948. // SetImageId sets the ImageId field's value.
  52949. func (s *Instance) SetImageId(v string) *Instance {
  52950. s.ImageId = &v
  52951. return s
  52952. }
  52953. // SetInstanceId sets the InstanceId field's value.
  52954. func (s *Instance) SetInstanceId(v string) *Instance {
  52955. s.InstanceId = &v
  52956. return s
  52957. }
  52958. // SetInstanceLifecycle sets the InstanceLifecycle field's value.
  52959. func (s *Instance) SetInstanceLifecycle(v string) *Instance {
  52960. s.InstanceLifecycle = &v
  52961. return s
  52962. }
  52963. // SetInstanceType sets the InstanceType field's value.
  52964. func (s *Instance) SetInstanceType(v string) *Instance {
  52965. s.InstanceType = &v
  52966. return s
  52967. }
  52968. // SetKernelId sets the KernelId field's value.
  52969. func (s *Instance) SetKernelId(v string) *Instance {
  52970. s.KernelId = &v
  52971. return s
  52972. }
  52973. // SetKeyName sets the KeyName field's value.
  52974. func (s *Instance) SetKeyName(v string) *Instance {
  52975. s.KeyName = &v
  52976. return s
  52977. }
  52978. // SetLaunchTime sets the LaunchTime field's value.
  52979. func (s *Instance) SetLaunchTime(v time.Time) *Instance {
  52980. s.LaunchTime = &v
  52981. return s
  52982. }
  52983. // SetLicenses sets the Licenses field's value.
  52984. func (s *Instance) SetLicenses(v []*LicenseConfiguration) *Instance {
  52985. s.Licenses = v
  52986. return s
  52987. }
  52988. // SetMonitoring sets the Monitoring field's value.
  52989. func (s *Instance) SetMonitoring(v *Monitoring) *Instance {
  52990. s.Monitoring = v
  52991. return s
  52992. }
  52993. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  52994. func (s *Instance) SetNetworkInterfaces(v []*InstanceNetworkInterface) *Instance {
  52995. s.NetworkInterfaces = v
  52996. return s
  52997. }
  52998. // SetPlacement sets the Placement field's value.
  52999. func (s *Instance) SetPlacement(v *Placement) *Instance {
  53000. s.Placement = v
  53001. return s
  53002. }
  53003. // SetPlatform sets the Platform field's value.
  53004. func (s *Instance) SetPlatform(v string) *Instance {
  53005. s.Platform = &v
  53006. return s
  53007. }
  53008. // SetPrivateDnsName sets the PrivateDnsName field's value.
  53009. func (s *Instance) SetPrivateDnsName(v string) *Instance {
  53010. s.PrivateDnsName = &v
  53011. return s
  53012. }
  53013. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  53014. func (s *Instance) SetPrivateIpAddress(v string) *Instance {
  53015. s.PrivateIpAddress = &v
  53016. return s
  53017. }
  53018. // SetProductCodes sets the ProductCodes field's value.
  53019. func (s *Instance) SetProductCodes(v []*ProductCode) *Instance {
  53020. s.ProductCodes = v
  53021. return s
  53022. }
  53023. // SetPublicDnsName sets the PublicDnsName field's value.
  53024. func (s *Instance) SetPublicDnsName(v string) *Instance {
  53025. s.PublicDnsName = &v
  53026. return s
  53027. }
  53028. // SetPublicIpAddress sets the PublicIpAddress field's value.
  53029. func (s *Instance) SetPublicIpAddress(v string) *Instance {
  53030. s.PublicIpAddress = &v
  53031. return s
  53032. }
  53033. // SetRamdiskId sets the RamdiskId field's value.
  53034. func (s *Instance) SetRamdiskId(v string) *Instance {
  53035. s.RamdiskId = &v
  53036. return s
  53037. }
  53038. // SetRootDeviceName sets the RootDeviceName field's value.
  53039. func (s *Instance) SetRootDeviceName(v string) *Instance {
  53040. s.RootDeviceName = &v
  53041. return s
  53042. }
  53043. // SetRootDeviceType sets the RootDeviceType field's value.
  53044. func (s *Instance) SetRootDeviceType(v string) *Instance {
  53045. s.RootDeviceType = &v
  53046. return s
  53047. }
  53048. // SetSecurityGroups sets the SecurityGroups field's value.
  53049. func (s *Instance) SetSecurityGroups(v []*GroupIdentifier) *Instance {
  53050. s.SecurityGroups = v
  53051. return s
  53052. }
  53053. // SetSourceDestCheck sets the SourceDestCheck field's value.
  53054. func (s *Instance) SetSourceDestCheck(v bool) *Instance {
  53055. s.SourceDestCheck = &v
  53056. return s
  53057. }
  53058. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  53059. func (s *Instance) SetSpotInstanceRequestId(v string) *Instance {
  53060. s.SpotInstanceRequestId = &v
  53061. return s
  53062. }
  53063. // SetSriovNetSupport sets the SriovNetSupport field's value.
  53064. func (s *Instance) SetSriovNetSupport(v string) *Instance {
  53065. s.SriovNetSupport = &v
  53066. return s
  53067. }
  53068. // SetState sets the State field's value.
  53069. func (s *Instance) SetState(v *InstanceState) *Instance {
  53070. s.State = v
  53071. return s
  53072. }
  53073. // SetStateReason sets the StateReason field's value.
  53074. func (s *Instance) SetStateReason(v *StateReason) *Instance {
  53075. s.StateReason = v
  53076. return s
  53077. }
  53078. // SetStateTransitionReason sets the StateTransitionReason field's value.
  53079. func (s *Instance) SetStateTransitionReason(v string) *Instance {
  53080. s.StateTransitionReason = &v
  53081. return s
  53082. }
  53083. // SetSubnetId sets the SubnetId field's value.
  53084. func (s *Instance) SetSubnetId(v string) *Instance {
  53085. s.SubnetId = &v
  53086. return s
  53087. }
  53088. // SetTags sets the Tags field's value.
  53089. func (s *Instance) SetTags(v []*Tag) *Instance {
  53090. s.Tags = v
  53091. return s
  53092. }
  53093. // SetVirtualizationType sets the VirtualizationType field's value.
  53094. func (s *Instance) SetVirtualizationType(v string) *Instance {
  53095. s.VirtualizationType = &v
  53096. return s
  53097. }
  53098. // SetVpcId sets the VpcId field's value.
  53099. func (s *Instance) SetVpcId(v string) *Instance {
  53100. s.VpcId = &v
  53101. return s
  53102. }
  53103. // Describes a block device mapping.
  53104. type InstanceBlockDeviceMapping struct {
  53105. _ struct{} `type:"structure"`
  53106. // The device name (for example, /dev/sdh or xvdh).
  53107. DeviceName *string `locationName:"deviceName" type:"string"`
  53108. // Parameters used to automatically set up EBS volumes when the instance is
  53109. // launched.
  53110. Ebs *EbsInstanceBlockDevice `locationName:"ebs" type:"structure"`
  53111. }
  53112. // String returns the string representation
  53113. func (s InstanceBlockDeviceMapping) String() string {
  53114. return awsutil.Prettify(s)
  53115. }
  53116. // GoString returns the string representation
  53117. func (s InstanceBlockDeviceMapping) GoString() string {
  53118. return s.String()
  53119. }
  53120. // SetDeviceName sets the DeviceName field's value.
  53121. func (s *InstanceBlockDeviceMapping) SetDeviceName(v string) *InstanceBlockDeviceMapping {
  53122. s.DeviceName = &v
  53123. return s
  53124. }
  53125. // SetEbs sets the Ebs field's value.
  53126. func (s *InstanceBlockDeviceMapping) SetEbs(v *EbsInstanceBlockDevice) *InstanceBlockDeviceMapping {
  53127. s.Ebs = v
  53128. return s
  53129. }
  53130. // Describes a block device mapping entry.
  53131. type InstanceBlockDeviceMappingSpecification struct {
  53132. _ struct{} `type:"structure"`
  53133. // The device name (for example, /dev/sdh or xvdh).
  53134. DeviceName *string `locationName:"deviceName" type:"string"`
  53135. // Parameters used to automatically set up EBS volumes when the instance is
  53136. // launched.
  53137. Ebs *EbsInstanceBlockDeviceSpecification `locationName:"ebs" type:"structure"`
  53138. // suppress the specified device included in the block device mapping.
  53139. NoDevice *string `locationName:"noDevice" type:"string"`
  53140. // The virtual device name.
  53141. VirtualName *string `locationName:"virtualName" type:"string"`
  53142. }
  53143. // String returns the string representation
  53144. func (s InstanceBlockDeviceMappingSpecification) String() string {
  53145. return awsutil.Prettify(s)
  53146. }
  53147. // GoString returns the string representation
  53148. func (s InstanceBlockDeviceMappingSpecification) GoString() string {
  53149. return s.String()
  53150. }
  53151. // SetDeviceName sets the DeviceName field's value.
  53152. func (s *InstanceBlockDeviceMappingSpecification) SetDeviceName(v string) *InstanceBlockDeviceMappingSpecification {
  53153. s.DeviceName = &v
  53154. return s
  53155. }
  53156. // SetEbs sets the Ebs field's value.
  53157. func (s *InstanceBlockDeviceMappingSpecification) SetEbs(v *EbsInstanceBlockDeviceSpecification) *InstanceBlockDeviceMappingSpecification {
  53158. s.Ebs = v
  53159. return s
  53160. }
  53161. // SetNoDevice sets the NoDevice field's value.
  53162. func (s *InstanceBlockDeviceMappingSpecification) SetNoDevice(v string) *InstanceBlockDeviceMappingSpecification {
  53163. s.NoDevice = &v
  53164. return s
  53165. }
  53166. // SetVirtualName sets the VirtualName field's value.
  53167. func (s *InstanceBlockDeviceMappingSpecification) SetVirtualName(v string) *InstanceBlockDeviceMappingSpecification {
  53168. s.VirtualName = &v
  53169. return s
  53170. }
  53171. // Information about the instance type that the Dedicated Host supports.
  53172. type InstanceCapacity struct {
  53173. _ struct{} `type:"structure"`
  53174. // The number of instances that can still be launched onto the Dedicated Host.
  53175. AvailableCapacity *int64 `locationName:"availableCapacity" type:"integer"`
  53176. // The instance type size supported by the Dedicated Host.
  53177. InstanceType *string `locationName:"instanceType" type:"string"`
  53178. // The total number of instances that can be launched onto the Dedicated Host.
  53179. TotalCapacity *int64 `locationName:"totalCapacity" type:"integer"`
  53180. }
  53181. // String returns the string representation
  53182. func (s InstanceCapacity) String() string {
  53183. return awsutil.Prettify(s)
  53184. }
  53185. // GoString returns the string representation
  53186. func (s InstanceCapacity) GoString() string {
  53187. return s.String()
  53188. }
  53189. // SetAvailableCapacity sets the AvailableCapacity field's value.
  53190. func (s *InstanceCapacity) SetAvailableCapacity(v int64) *InstanceCapacity {
  53191. s.AvailableCapacity = &v
  53192. return s
  53193. }
  53194. // SetInstanceType sets the InstanceType field's value.
  53195. func (s *InstanceCapacity) SetInstanceType(v string) *InstanceCapacity {
  53196. s.InstanceType = &v
  53197. return s
  53198. }
  53199. // SetTotalCapacity sets the TotalCapacity field's value.
  53200. func (s *InstanceCapacity) SetTotalCapacity(v int64) *InstanceCapacity {
  53201. s.TotalCapacity = &v
  53202. return s
  53203. }
  53204. // Describes a Reserved Instance listing state.
  53205. type InstanceCount struct {
  53206. _ struct{} `type:"structure"`
  53207. // The number of listed Reserved Instances in the state specified by the state.
  53208. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  53209. // The states of the listed Reserved Instances.
  53210. State *string `locationName:"state" type:"string" enum:"ListingState"`
  53211. }
  53212. // String returns the string representation
  53213. func (s InstanceCount) String() string {
  53214. return awsutil.Prettify(s)
  53215. }
  53216. // GoString returns the string representation
  53217. func (s InstanceCount) GoString() string {
  53218. return s.String()
  53219. }
  53220. // SetInstanceCount sets the InstanceCount field's value.
  53221. func (s *InstanceCount) SetInstanceCount(v int64) *InstanceCount {
  53222. s.InstanceCount = &v
  53223. return s
  53224. }
  53225. // SetState sets the State field's value.
  53226. func (s *InstanceCount) SetState(v string) *InstanceCount {
  53227. s.State = &v
  53228. return s
  53229. }
  53230. // Describes the credit option for CPU usage of a T2 or T3 instance.
  53231. type InstanceCreditSpecification struct {
  53232. _ struct{} `type:"structure"`
  53233. // The credit option for CPU usage of the instance. Valid values are standard
  53234. // and unlimited.
  53235. CpuCredits *string `locationName:"cpuCredits" type:"string"`
  53236. // The ID of the instance.
  53237. InstanceId *string `locationName:"instanceId" type:"string"`
  53238. }
  53239. // String returns the string representation
  53240. func (s InstanceCreditSpecification) String() string {
  53241. return awsutil.Prettify(s)
  53242. }
  53243. // GoString returns the string representation
  53244. func (s InstanceCreditSpecification) GoString() string {
  53245. return s.String()
  53246. }
  53247. // SetCpuCredits sets the CpuCredits field's value.
  53248. func (s *InstanceCreditSpecification) SetCpuCredits(v string) *InstanceCreditSpecification {
  53249. s.CpuCredits = &v
  53250. return s
  53251. }
  53252. // SetInstanceId sets the InstanceId field's value.
  53253. func (s *InstanceCreditSpecification) SetInstanceId(v string) *InstanceCreditSpecification {
  53254. s.InstanceId = &v
  53255. return s
  53256. }
  53257. // Describes the credit option for CPU usage of a T2 or T3 instance.
  53258. type InstanceCreditSpecificationRequest struct {
  53259. _ struct{} `type:"structure"`
  53260. // The credit option for CPU usage of the instance. Valid values are standard
  53261. // and unlimited.
  53262. CpuCredits *string `type:"string"`
  53263. // The ID of the instance.
  53264. InstanceId *string `type:"string"`
  53265. }
  53266. // String returns the string representation
  53267. func (s InstanceCreditSpecificationRequest) String() string {
  53268. return awsutil.Prettify(s)
  53269. }
  53270. // GoString returns the string representation
  53271. func (s InstanceCreditSpecificationRequest) GoString() string {
  53272. return s.String()
  53273. }
  53274. // SetCpuCredits sets the CpuCredits field's value.
  53275. func (s *InstanceCreditSpecificationRequest) SetCpuCredits(v string) *InstanceCreditSpecificationRequest {
  53276. s.CpuCredits = &v
  53277. return s
  53278. }
  53279. // SetInstanceId sets the InstanceId field's value.
  53280. func (s *InstanceCreditSpecificationRequest) SetInstanceId(v string) *InstanceCreditSpecificationRequest {
  53281. s.InstanceId = &v
  53282. return s
  53283. }
  53284. // Describes an instance to export.
  53285. type InstanceExportDetails struct {
  53286. _ struct{} `type:"structure"`
  53287. // The ID of the resource being exported.
  53288. InstanceId *string `locationName:"instanceId" type:"string"`
  53289. // The target virtualization environment.
  53290. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"`
  53291. }
  53292. // String returns the string representation
  53293. func (s InstanceExportDetails) String() string {
  53294. return awsutil.Prettify(s)
  53295. }
  53296. // GoString returns the string representation
  53297. func (s InstanceExportDetails) GoString() string {
  53298. return s.String()
  53299. }
  53300. // SetInstanceId sets the InstanceId field's value.
  53301. func (s *InstanceExportDetails) SetInstanceId(v string) *InstanceExportDetails {
  53302. s.InstanceId = &v
  53303. return s
  53304. }
  53305. // SetTargetEnvironment sets the TargetEnvironment field's value.
  53306. func (s *InstanceExportDetails) SetTargetEnvironment(v string) *InstanceExportDetails {
  53307. s.TargetEnvironment = &v
  53308. return s
  53309. }
  53310. // Describes an IPv6 address.
  53311. type InstanceIpv6Address struct {
  53312. _ struct{} `type:"structure"`
  53313. // The IPv6 address.
  53314. Ipv6Address *string `locationName:"ipv6Address" type:"string"`
  53315. }
  53316. // String returns the string representation
  53317. func (s InstanceIpv6Address) String() string {
  53318. return awsutil.Prettify(s)
  53319. }
  53320. // GoString returns the string representation
  53321. func (s InstanceIpv6Address) GoString() string {
  53322. return s.String()
  53323. }
  53324. // SetIpv6Address sets the Ipv6Address field's value.
  53325. func (s *InstanceIpv6Address) SetIpv6Address(v string) *InstanceIpv6Address {
  53326. s.Ipv6Address = &v
  53327. return s
  53328. }
  53329. // Describes an IPv6 address.
  53330. type InstanceIpv6AddressRequest struct {
  53331. _ struct{} `type:"structure"`
  53332. // The IPv6 address.
  53333. Ipv6Address *string `type:"string"`
  53334. }
  53335. // String returns the string representation
  53336. func (s InstanceIpv6AddressRequest) String() string {
  53337. return awsutil.Prettify(s)
  53338. }
  53339. // GoString returns the string representation
  53340. func (s InstanceIpv6AddressRequest) GoString() string {
  53341. return s.String()
  53342. }
  53343. // SetIpv6Address sets the Ipv6Address field's value.
  53344. func (s *InstanceIpv6AddressRequest) SetIpv6Address(v string) *InstanceIpv6AddressRequest {
  53345. s.Ipv6Address = &v
  53346. return s
  53347. }
  53348. // Describes the market (purchasing) option for the instances.
  53349. type InstanceMarketOptionsRequest struct {
  53350. _ struct{} `type:"structure"`
  53351. // The market type.
  53352. MarketType *string `type:"string" enum:"MarketType"`
  53353. // The options for Spot Instances.
  53354. SpotOptions *SpotMarketOptions `type:"structure"`
  53355. }
  53356. // String returns the string representation
  53357. func (s InstanceMarketOptionsRequest) String() string {
  53358. return awsutil.Prettify(s)
  53359. }
  53360. // GoString returns the string representation
  53361. func (s InstanceMarketOptionsRequest) GoString() string {
  53362. return s.String()
  53363. }
  53364. // SetMarketType sets the MarketType field's value.
  53365. func (s *InstanceMarketOptionsRequest) SetMarketType(v string) *InstanceMarketOptionsRequest {
  53366. s.MarketType = &v
  53367. return s
  53368. }
  53369. // SetSpotOptions sets the SpotOptions field's value.
  53370. func (s *InstanceMarketOptionsRequest) SetSpotOptions(v *SpotMarketOptions) *InstanceMarketOptionsRequest {
  53371. s.SpotOptions = v
  53372. return s
  53373. }
  53374. // Describes the monitoring of an instance.
  53375. type InstanceMonitoring struct {
  53376. _ struct{} `type:"structure"`
  53377. // The ID of the instance.
  53378. InstanceId *string `locationName:"instanceId" type:"string"`
  53379. // The monitoring for the instance.
  53380. Monitoring *Monitoring `locationName:"monitoring" type:"structure"`
  53381. }
  53382. // String returns the string representation
  53383. func (s InstanceMonitoring) String() string {
  53384. return awsutil.Prettify(s)
  53385. }
  53386. // GoString returns the string representation
  53387. func (s InstanceMonitoring) GoString() string {
  53388. return s.String()
  53389. }
  53390. // SetInstanceId sets the InstanceId field's value.
  53391. func (s *InstanceMonitoring) SetInstanceId(v string) *InstanceMonitoring {
  53392. s.InstanceId = &v
  53393. return s
  53394. }
  53395. // SetMonitoring sets the Monitoring field's value.
  53396. func (s *InstanceMonitoring) SetMonitoring(v *Monitoring) *InstanceMonitoring {
  53397. s.Monitoring = v
  53398. return s
  53399. }
  53400. // Describes a network interface.
  53401. type InstanceNetworkInterface struct {
  53402. _ struct{} `type:"structure"`
  53403. // The association information for an Elastic IPv4 associated with the network
  53404. // interface.
  53405. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`
  53406. // The network interface attachment.
  53407. Attachment *InstanceNetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  53408. // The description.
  53409. Description *string `locationName:"description" type:"string"`
  53410. // One or more security groups.
  53411. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  53412. // One or more IPv6 addresses associated with the network interface.
  53413. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  53414. // The MAC address.
  53415. MacAddress *string `locationName:"macAddress" type:"string"`
  53416. // The ID of the network interface.
  53417. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  53418. // The ID of the AWS account that created the network interface.
  53419. OwnerId *string `locationName:"ownerId" type:"string"`
  53420. // The private DNS name.
  53421. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  53422. // The IPv4 address of the network interface within the subnet.
  53423. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  53424. // One or more private IPv4 addresses associated with the network interface.
  53425. PrivateIpAddresses []*InstancePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  53426. // Indicates whether to validate network traffic to or from this network interface.
  53427. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  53428. // The status of the network interface.
  53429. Status *string `locationName:"status" type:"string" enum:"NetworkInterfaceStatus"`
  53430. // The ID of the subnet.
  53431. SubnetId *string `locationName:"subnetId" type:"string"`
  53432. // The ID of the VPC.
  53433. VpcId *string `locationName:"vpcId" type:"string"`
  53434. }
  53435. // String returns the string representation
  53436. func (s InstanceNetworkInterface) String() string {
  53437. return awsutil.Prettify(s)
  53438. }
  53439. // GoString returns the string representation
  53440. func (s InstanceNetworkInterface) GoString() string {
  53441. return s.String()
  53442. }
  53443. // SetAssociation sets the Association field's value.
  53444. func (s *InstanceNetworkInterface) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstanceNetworkInterface {
  53445. s.Association = v
  53446. return s
  53447. }
  53448. // SetAttachment sets the Attachment field's value.
  53449. func (s *InstanceNetworkInterface) SetAttachment(v *InstanceNetworkInterfaceAttachment) *InstanceNetworkInterface {
  53450. s.Attachment = v
  53451. return s
  53452. }
  53453. // SetDescription sets the Description field's value.
  53454. func (s *InstanceNetworkInterface) SetDescription(v string) *InstanceNetworkInterface {
  53455. s.Description = &v
  53456. return s
  53457. }
  53458. // SetGroups sets the Groups field's value.
  53459. func (s *InstanceNetworkInterface) SetGroups(v []*GroupIdentifier) *InstanceNetworkInterface {
  53460. s.Groups = v
  53461. return s
  53462. }
  53463. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  53464. func (s *InstanceNetworkInterface) SetIpv6Addresses(v []*InstanceIpv6Address) *InstanceNetworkInterface {
  53465. s.Ipv6Addresses = v
  53466. return s
  53467. }
  53468. // SetMacAddress sets the MacAddress field's value.
  53469. func (s *InstanceNetworkInterface) SetMacAddress(v string) *InstanceNetworkInterface {
  53470. s.MacAddress = &v
  53471. return s
  53472. }
  53473. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  53474. func (s *InstanceNetworkInterface) SetNetworkInterfaceId(v string) *InstanceNetworkInterface {
  53475. s.NetworkInterfaceId = &v
  53476. return s
  53477. }
  53478. // SetOwnerId sets the OwnerId field's value.
  53479. func (s *InstanceNetworkInterface) SetOwnerId(v string) *InstanceNetworkInterface {
  53480. s.OwnerId = &v
  53481. return s
  53482. }
  53483. // SetPrivateDnsName sets the PrivateDnsName field's value.
  53484. func (s *InstanceNetworkInterface) SetPrivateDnsName(v string) *InstanceNetworkInterface {
  53485. s.PrivateDnsName = &v
  53486. return s
  53487. }
  53488. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  53489. func (s *InstanceNetworkInterface) SetPrivateIpAddress(v string) *InstanceNetworkInterface {
  53490. s.PrivateIpAddress = &v
  53491. return s
  53492. }
  53493. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  53494. func (s *InstanceNetworkInterface) SetPrivateIpAddresses(v []*InstancePrivateIpAddress) *InstanceNetworkInterface {
  53495. s.PrivateIpAddresses = v
  53496. return s
  53497. }
  53498. // SetSourceDestCheck sets the SourceDestCheck field's value.
  53499. func (s *InstanceNetworkInterface) SetSourceDestCheck(v bool) *InstanceNetworkInterface {
  53500. s.SourceDestCheck = &v
  53501. return s
  53502. }
  53503. // SetStatus sets the Status field's value.
  53504. func (s *InstanceNetworkInterface) SetStatus(v string) *InstanceNetworkInterface {
  53505. s.Status = &v
  53506. return s
  53507. }
  53508. // SetSubnetId sets the SubnetId field's value.
  53509. func (s *InstanceNetworkInterface) SetSubnetId(v string) *InstanceNetworkInterface {
  53510. s.SubnetId = &v
  53511. return s
  53512. }
  53513. // SetVpcId sets the VpcId field's value.
  53514. func (s *InstanceNetworkInterface) SetVpcId(v string) *InstanceNetworkInterface {
  53515. s.VpcId = &v
  53516. return s
  53517. }
  53518. // Describes association information for an Elastic IP address (IPv4).
  53519. type InstanceNetworkInterfaceAssociation struct {
  53520. _ struct{} `type:"structure"`
  53521. // The ID of the owner of the Elastic IP address.
  53522. IpOwnerId *string `locationName:"ipOwnerId" type:"string"`
  53523. // The public DNS name.
  53524. PublicDnsName *string `locationName:"publicDnsName" type:"string"`
  53525. // The public IP address or Elastic IP address bound to the network interface.
  53526. PublicIp *string `locationName:"publicIp" type:"string"`
  53527. }
  53528. // String returns the string representation
  53529. func (s InstanceNetworkInterfaceAssociation) String() string {
  53530. return awsutil.Prettify(s)
  53531. }
  53532. // GoString returns the string representation
  53533. func (s InstanceNetworkInterfaceAssociation) GoString() string {
  53534. return s.String()
  53535. }
  53536. // SetIpOwnerId sets the IpOwnerId field's value.
  53537. func (s *InstanceNetworkInterfaceAssociation) SetIpOwnerId(v string) *InstanceNetworkInterfaceAssociation {
  53538. s.IpOwnerId = &v
  53539. return s
  53540. }
  53541. // SetPublicDnsName sets the PublicDnsName field's value.
  53542. func (s *InstanceNetworkInterfaceAssociation) SetPublicDnsName(v string) *InstanceNetworkInterfaceAssociation {
  53543. s.PublicDnsName = &v
  53544. return s
  53545. }
  53546. // SetPublicIp sets the PublicIp field's value.
  53547. func (s *InstanceNetworkInterfaceAssociation) SetPublicIp(v string) *InstanceNetworkInterfaceAssociation {
  53548. s.PublicIp = &v
  53549. return s
  53550. }
  53551. // Describes a network interface attachment.
  53552. type InstanceNetworkInterfaceAttachment struct {
  53553. _ struct{} `type:"structure"`
  53554. // The time stamp when the attachment initiated.
  53555. AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
  53556. // The ID of the network interface attachment.
  53557. AttachmentId *string `locationName:"attachmentId" type:"string"`
  53558. // Indicates whether the network interface is deleted when the instance is terminated.
  53559. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  53560. // The index of the device on the instance for the network interface attachment.
  53561. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  53562. // The attachment state.
  53563. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  53564. }
  53565. // String returns the string representation
  53566. func (s InstanceNetworkInterfaceAttachment) String() string {
  53567. return awsutil.Prettify(s)
  53568. }
  53569. // GoString returns the string representation
  53570. func (s InstanceNetworkInterfaceAttachment) GoString() string {
  53571. return s.String()
  53572. }
  53573. // SetAttachTime sets the AttachTime field's value.
  53574. func (s *InstanceNetworkInterfaceAttachment) SetAttachTime(v time.Time) *InstanceNetworkInterfaceAttachment {
  53575. s.AttachTime = &v
  53576. return s
  53577. }
  53578. // SetAttachmentId sets the AttachmentId field's value.
  53579. func (s *InstanceNetworkInterfaceAttachment) SetAttachmentId(v string) *InstanceNetworkInterfaceAttachment {
  53580. s.AttachmentId = &v
  53581. return s
  53582. }
  53583. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  53584. func (s *InstanceNetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceAttachment {
  53585. s.DeleteOnTermination = &v
  53586. return s
  53587. }
  53588. // SetDeviceIndex sets the DeviceIndex field's value.
  53589. func (s *InstanceNetworkInterfaceAttachment) SetDeviceIndex(v int64) *InstanceNetworkInterfaceAttachment {
  53590. s.DeviceIndex = &v
  53591. return s
  53592. }
  53593. // SetStatus sets the Status field's value.
  53594. func (s *InstanceNetworkInterfaceAttachment) SetStatus(v string) *InstanceNetworkInterfaceAttachment {
  53595. s.Status = &v
  53596. return s
  53597. }
  53598. // Describes a network interface.
  53599. type InstanceNetworkInterfaceSpecification struct {
  53600. _ struct{} `type:"structure"`
  53601. // Indicates whether to assign a public IPv4 address to an instance you launch
  53602. // in a VPC. The public IP address can only be assigned to a network interface
  53603. // for eth0, and can only be assigned to a new network interface, not an existing
  53604. // one. You cannot specify more than one network interface in the request. If
  53605. // launching into a default subnet, the default value is true.
  53606. AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`
  53607. // If set to true, the interface is deleted when the instance is terminated.
  53608. // You can specify true only if creating a new network interface when launching
  53609. // an instance.
  53610. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  53611. // The description of the network interface. Applies only if creating a network
  53612. // interface when launching an instance.
  53613. Description *string `locationName:"description" type:"string"`
  53614. // The index of the device on the instance for the network interface attachment.
  53615. // If you are specifying a network interface in a RunInstances request, you
  53616. // must provide the device index.
  53617. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  53618. // The IDs of the security groups for the network interface. Applies only if
  53619. // creating a network interface when launching an instance.
  53620. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  53621. // A number of IPv6 addresses to assign to the network interface. Amazon EC2
  53622. // chooses the IPv6 addresses from the range of the subnet. You cannot specify
  53623. // this option and the option to assign specific IPv6 addresses in the same
  53624. // request. You can specify this option if you've specified a minimum number
  53625. // of instances to launch.
  53626. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  53627. // One or more IPv6 addresses to assign to the network interface. You cannot
  53628. // specify this option and the option to assign a number of IPv6 addresses in
  53629. // the same request. You cannot specify this option if you've specified a minimum
  53630. // number of instances to launch.
  53631. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" queryName:"Ipv6Addresses" locationNameList:"item" type:"list"`
  53632. // The ID of the network interface.
  53633. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  53634. // The private IPv4 address of the network interface. Applies only if creating
  53635. // a network interface when launching an instance. You cannot specify this option
  53636. // if you're launching more than one instance in a RunInstances request.
  53637. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  53638. // One or more private IPv4 addresses to assign to the network interface. Only
  53639. // one private IPv4 address can be designated as primary. You cannot specify
  53640. // this option if you're launching more than one instance in a RunInstances
  53641. // request.
  53642. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" queryName:"PrivateIpAddresses" locationNameList:"item" type:"list"`
  53643. // The number of secondary private IPv4 addresses. You can't specify this option
  53644. // and specify more than one private IP address using the private IP addresses
  53645. // option. You cannot specify this option if you're launching more than one
  53646. // instance in a RunInstances request.
  53647. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  53648. // The ID of the subnet associated with the network string. Applies only if
  53649. // creating a network interface when launching an instance.
  53650. SubnetId *string `locationName:"subnetId" type:"string"`
  53651. }
  53652. // String returns the string representation
  53653. func (s InstanceNetworkInterfaceSpecification) String() string {
  53654. return awsutil.Prettify(s)
  53655. }
  53656. // GoString returns the string representation
  53657. func (s InstanceNetworkInterfaceSpecification) GoString() string {
  53658. return s.String()
  53659. }
  53660. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  53661. func (s *InstanceNetworkInterfaceSpecification) SetAssociatePublicIpAddress(v bool) *InstanceNetworkInterfaceSpecification {
  53662. s.AssociatePublicIpAddress = &v
  53663. return s
  53664. }
  53665. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  53666. func (s *InstanceNetworkInterfaceSpecification) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceSpecification {
  53667. s.DeleteOnTermination = &v
  53668. return s
  53669. }
  53670. // SetDescription sets the Description field's value.
  53671. func (s *InstanceNetworkInterfaceSpecification) SetDescription(v string) *InstanceNetworkInterfaceSpecification {
  53672. s.Description = &v
  53673. return s
  53674. }
  53675. // SetDeviceIndex sets the DeviceIndex field's value.
  53676. func (s *InstanceNetworkInterfaceSpecification) SetDeviceIndex(v int64) *InstanceNetworkInterfaceSpecification {
  53677. s.DeviceIndex = &v
  53678. return s
  53679. }
  53680. // SetGroups sets the Groups field's value.
  53681. func (s *InstanceNetworkInterfaceSpecification) SetGroups(v []*string) *InstanceNetworkInterfaceSpecification {
  53682. s.Groups = v
  53683. return s
  53684. }
  53685. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  53686. func (s *InstanceNetworkInterfaceSpecification) SetIpv6AddressCount(v int64) *InstanceNetworkInterfaceSpecification {
  53687. s.Ipv6AddressCount = &v
  53688. return s
  53689. }
  53690. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  53691. func (s *InstanceNetworkInterfaceSpecification) SetIpv6Addresses(v []*InstanceIpv6Address) *InstanceNetworkInterfaceSpecification {
  53692. s.Ipv6Addresses = v
  53693. return s
  53694. }
  53695. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  53696. func (s *InstanceNetworkInterfaceSpecification) SetNetworkInterfaceId(v string) *InstanceNetworkInterfaceSpecification {
  53697. s.NetworkInterfaceId = &v
  53698. return s
  53699. }
  53700. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  53701. func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddress(v string) *InstanceNetworkInterfaceSpecification {
  53702. s.PrivateIpAddress = &v
  53703. return s
  53704. }
  53705. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  53706. func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *InstanceNetworkInterfaceSpecification {
  53707. s.PrivateIpAddresses = v
  53708. return s
  53709. }
  53710. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  53711. func (s *InstanceNetworkInterfaceSpecification) SetSecondaryPrivateIpAddressCount(v int64) *InstanceNetworkInterfaceSpecification {
  53712. s.SecondaryPrivateIpAddressCount = &v
  53713. return s
  53714. }
  53715. // SetSubnetId sets the SubnetId field's value.
  53716. func (s *InstanceNetworkInterfaceSpecification) SetSubnetId(v string) *InstanceNetworkInterfaceSpecification {
  53717. s.SubnetId = &v
  53718. return s
  53719. }
  53720. // Describes a private IPv4 address.
  53721. type InstancePrivateIpAddress struct {
  53722. _ struct{} `type:"structure"`
  53723. // The association information for an Elastic IP address for the network interface.
  53724. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`
  53725. // Indicates whether this IPv4 address is the primary private IP address of
  53726. // the network interface.
  53727. Primary *bool `locationName:"primary" type:"boolean"`
  53728. // The private IPv4 DNS name.
  53729. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  53730. // The private IPv4 address of the network interface.
  53731. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  53732. }
  53733. // String returns the string representation
  53734. func (s InstancePrivateIpAddress) String() string {
  53735. return awsutil.Prettify(s)
  53736. }
  53737. // GoString returns the string representation
  53738. func (s InstancePrivateIpAddress) GoString() string {
  53739. return s.String()
  53740. }
  53741. // SetAssociation sets the Association field's value.
  53742. func (s *InstancePrivateIpAddress) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstancePrivateIpAddress {
  53743. s.Association = v
  53744. return s
  53745. }
  53746. // SetPrimary sets the Primary field's value.
  53747. func (s *InstancePrivateIpAddress) SetPrimary(v bool) *InstancePrivateIpAddress {
  53748. s.Primary = &v
  53749. return s
  53750. }
  53751. // SetPrivateDnsName sets the PrivateDnsName field's value.
  53752. func (s *InstancePrivateIpAddress) SetPrivateDnsName(v string) *InstancePrivateIpAddress {
  53753. s.PrivateDnsName = &v
  53754. return s
  53755. }
  53756. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  53757. func (s *InstancePrivateIpAddress) SetPrivateIpAddress(v string) *InstancePrivateIpAddress {
  53758. s.PrivateIpAddress = &v
  53759. return s
  53760. }
  53761. // Describes the current state of an instance.
  53762. type InstanceState struct {
  53763. _ struct{} `type:"structure"`
  53764. // The low byte represents the state. The high byte is used for internal purposes
  53765. // and should be ignored.
  53766. //
  53767. // * 0 : pending
  53768. //
  53769. // * 16 : running
  53770. //
  53771. // * 32 : shutting-down
  53772. //
  53773. // * 48 : terminated
  53774. //
  53775. // * 64 : stopping
  53776. //
  53777. // * 80 : stopped
  53778. Code *int64 `locationName:"code" type:"integer"`
  53779. // The current state of the instance.
  53780. Name *string `locationName:"name" type:"string" enum:"InstanceStateName"`
  53781. }
  53782. // String returns the string representation
  53783. func (s InstanceState) String() string {
  53784. return awsutil.Prettify(s)
  53785. }
  53786. // GoString returns the string representation
  53787. func (s InstanceState) GoString() string {
  53788. return s.String()
  53789. }
  53790. // SetCode sets the Code field's value.
  53791. func (s *InstanceState) SetCode(v int64) *InstanceState {
  53792. s.Code = &v
  53793. return s
  53794. }
  53795. // SetName sets the Name field's value.
  53796. func (s *InstanceState) SetName(v string) *InstanceState {
  53797. s.Name = &v
  53798. return s
  53799. }
  53800. // Describes an instance state change.
  53801. type InstanceStateChange struct {
  53802. _ struct{} `type:"structure"`
  53803. // The current state of the instance.
  53804. CurrentState *InstanceState `locationName:"currentState" type:"structure"`
  53805. // The ID of the instance.
  53806. InstanceId *string `locationName:"instanceId" type:"string"`
  53807. // The previous state of the instance.
  53808. PreviousState *InstanceState `locationName:"previousState" type:"structure"`
  53809. }
  53810. // String returns the string representation
  53811. func (s InstanceStateChange) String() string {
  53812. return awsutil.Prettify(s)
  53813. }
  53814. // GoString returns the string representation
  53815. func (s InstanceStateChange) GoString() string {
  53816. return s.String()
  53817. }
  53818. // SetCurrentState sets the CurrentState field's value.
  53819. func (s *InstanceStateChange) SetCurrentState(v *InstanceState) *InstanceStateChange {
  53820. s.CurrentState = v
  53821. return s
  53822. }
  53823. // SetInstanceId sets the InstanceId field's value.
  53824. func (s *InstanceStateChange) SetInstanceId(v string) *InstanceStateChange {
  53825. s.InstanceId = &v
  53826. return s
  53827. }
  53828. // SetPreviousState sets the PreviousState field's value.
  53829. func (s *InstanceStateChange) SetPreviousState(v *InstanceState) *InstanceStateChange {
  53830. s.PreviousState = v
  53831. return s
  53832. }
  53833. // Describes the status of an instance.
  53834. type InstanceStatus struct {
  53835. _ struct{} `type:"structure"`
  53836. // The Availability Zone of the instance.
  53837. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  53838. // Any scheduled events associated with the instance.
  53839. Events []*InstanceStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`
  53840. // The ID of the instance.
  53841. InstanceId *string `locationName:"instanceId" type:"string"`
  53842. // The intended state of the instance. DescribeInstanceStatus requires that
  53843. // an instance be in the running state.
  53844. InstanceState *InstanceState `locationName:"instanceState" type:"structure"`
  53845. // Reports impaired functionality that stems from issues internal to the instance,
  53846. // such as impaired reachability.
  53847. InstanceStatus *InstanceStatusSummary `locationName:"instanceStatus" type:"structure"`
  53848. // Reports impaired functionality that stems from issues related to the systems
  53849. // that support an instance, such as hardware failures and network connectivity
  53850. // problems.
  53851. SystemStatus *InstanceStatusSummary `locationName:"systemStatus" type:"structure"`
  53852. }
  53853. // String returns the string representation
  53854. func (s InstanceStatus) String() string {
  53855. return awsutil.Prettify(s)
  53856. }
  53857. // GoString returns the string representation
  53858. func (s InstanceStatus) GoString() string {
  53859. return s.String()
  53860. }
  53861. // SetAvailabilityZone sets the AvailabilityZone field's value.
  53862. func (s *InstanceStatus) SetAvailabilityZone(v string) *InstanceStatus {
  53863. s.AvailabilityZone = &v
  53864. return s
  53865. }
  53866. // SetEvents sets the Events field's value.
  53867. func (s *InstanceStatus) SetEvents(v []*InstanceStatusEvent) *InstanceStatus {
  53868. s.Events = v
  53869. return s
  53870. }
  53871. // SetInstanceId sets the InstanceId field's value.
  53872. func (s *InstanceStatus) SetInstanceId(v string) *InstanceStatus {
  53873. s.InstanceId = &v
  53874. return s
  53875. }
  53876. // SetInstanceState sets the InstanceState field's value.
  53877. func (s *InstanceStatus) SetInstanceState(v *InstanceState) *InstanceStatus {
  53878. s.InstanceState = v
  53879. return s
  53880. }
  53881. // SetInstanceStatus sets the InstanceStatus field's value.
  53882. func (s *InstanceStatus) SetInstanceStatus(v *InstanceStatusSummary) *InstanceStatus {
  53883. s.InstanceStatus = v
  53884. return s
  53885. }
  53886. // SetSystemStatus sets the SystemStatus field's value.
  53887. func (s *InstanceStatus) SetSystemStatus(v *InstanceStatusSummary) *InstanceStatus {
  53888. s.SystemStatus = v
  53889. return s
  53890. }
  53891. // Describes the instance status.
  53892. type InstanceStatusDetails struct {
  53893. _ struct{} `type:"structure"`
  53894. // The time when a status check failed. For an instance that was launched and
  53895. // impaired, this is the time when the instance was launched.
  53896. ImpairedSince *time.Time `locationName:"impairedSince" type:"timestamp"`
  53897. // The type of instance status.
  53898. Name *string `locationName:"name" type:"string" enum:"StatusName"`
  53899. // The status.
  53900. Status *string `locationName:"status" type:"string" enum:"StatusType"`
  53901. }
  53902. // String returns the string representation
  53903. func (s InstanceStatusDetails) String() string {
  53904. return awsutil.Prettify(s)
  53905. }
  53906. // GoString returns the string representation
  53907. func (s InstanceStatusDetails) GoString() string {
  53908. return s.String()
  53909. }
  53910. // SetImpairedSince sets the ImpairedSince field's value.
  53911. func (s *InstanceStatusDetails) SetImpairedSince(v time.Time) *InstanceStatusDetails {
  53912. s.ImpairedSince = &v
  53913. return s
  53914. }
  53915. // SetName sets the Name field's value.
  53916. func (s *InstanceStatusDetails) SetName(v string) *InstanceStatusDetails {
  53917. s.Name = &v
  53918. return s
  53919. }
  53920. // SetStatus sets the Status field's value.
  53921. func (s *InstanceStatusDetails) SetStatus(v string) *InstanceStatusDetails {
  53922. s.Status = &v
  53923. return s
  53924. }
  53925. // Describes a scheduled event for an instance.
  53926. type InstanceStatusEvent struct {
  53927. _ struct{} `type:"structure"`
  53928. // The event code.
  53929. Code *string `locationName:"code" type:"string" enum:"EventCode"`
  53930. // A description of the event.
  53931. //
  53932. // After a scheduled event is completed, it can still be described for up to
  53933. // a week. If the event has been completed, this description starts with the
  53934. // following text: [Completed].
  53935. Description *string `locationName:"description" type:"string"`
  53936. // The latest scheduled end time for the event.
  53937. NotAfter *time.Time `locationName:"notAfter" type:"timestamp"`
  53938. // The earliest scheduled start time for the event.
  53939. NotBefore *time.Time `locationName:"notBefore" type:"timestamp"`
  53940. }
  53941. // String returns the string representation
  53942. func (s InstanceStatusEvent) String() string {
  53943. return awsutil.Prettify(s)
  53944. }
  53945. // GoString returns the string representation
  53946. func (s InstanceStatusEvent) GoString() string {
  53947. return s.String()
  53948. }
  53949. // SetCode sets the Code field's value.
  53950. func (s *InstanceStatusEvent) SetCode(v string) *InstanceStatusEvent {
  53951. s.Code = &v
  53952. return s
  53953. }
  53954. // SetDescription sets the Description field's value.
  53955. func (s *InstanceStatusEvent) SetDescription(v string) *InstanceStatusEvent {
  53956. s.Description = &v
  53957. return s
  53958. }
  53959. // SetNotAfter sets the NotAfter field's value.
  53960. func (s *InstanceStatusEvent) SetNotAfter(v time.Time) *InstanceStatusEvent {
  53961. s.NotAfter = &v
  53962. return s
  53963. }
  53964. // SetNotBefore sets the NotBefore field's value.
  53965. func (s *InstanceStatusEvent) SetNotBefore(v time.Time) *InstanceStatusEvent {
  53966. s.NotBefore = &v
  53967. return s
  53968. }
  53969. // Describes the status of an instance.
  53970. type InstanceStatusSummary struct {
  53971. _ struct{} `type:"structure"`
  53972. // The system instance health or application instance health.
  53973. Details []*InstanceStatusDetails `locationName:"details" locationNameList:"item" type:"list"`
  53974. // The status.
  53975. Status *string `locationName:"status" type:"string" enum:"SummaryStatus"`
  53976. }
  53977. // String returns the string representation
  53978. func (s InstanceStatusSummary) String() string {
  53979. return awsutil.Prettify(s)
  53980. }
  53981. // GoString returns the string representation
  53982. func (s InstanceStatusSummary) GoString() string {
  53983. return s.String()
  53984. }
  53985. // SetDetails sets the Details field's value.
  53986. func (s *InstanceStatusSummary) SetDetails(v []*InstanceStatusDetails) *InstanceStatusSummary {
  53987. s.Details = v
  53988. return s
  53989. }
  53990. // SetStatus sets the Status field's value.
  53991. func (s *InstanceStatusSummary) SetStatus(v string) *InstanceStatusSummary {
  53992. s.Status = &v
  53993. return s
  53994. }
  53995. // Describes an internet gateway.
  53996. type InternetGateway struct {
  53997. _ struct{} `type:"structure"`
  53998. // Any VPCs attached to the internet gateway.
  53999. Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  54000. // The ID of the internet gateway.
  54001. InternetGatewayId *string `locationName:"internetGatewayId" type:"string"`
  54002. // The ID of the AWS account that owns the internet gateway.
  54003. OwnerId *string `locationName:"ownerId" type:"string"`
  54004. // Any tags assigned to the internet gateway.
  54005. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  54006. }
  54007. // String returns the string representation
  54008. func (s InternetGateway) String() string {
  54009. return awsutil.Prettify(s)
  54010. }
  54011. // GoString returns the string representation
  54012. func (s InternetGateway) GoString() string {
  54013. return s.String()
  54014. }
  54015. // SetAttachments sets the Attachments field's value.
  54016. func (s *InternetGateway) SetAttachments(v []*InternetGatewayAttachment) *InternetGateway {
  54017. s.Attachments = v
  54018. return s
  54019. }
  54020. // SetInternetGatewayId sets the InternetGatewayId field's value.
  54021. func (s *InternetGateway) SetInternetGatewayId(v string) *InternetGateway {
  54022. s.InternetGatewayId = &v
  54023. return s
  54024. }
  54025. // SetOwnerId sets the OwnerId field's value.
  54026. func (s *InternetGateway) SetOwnerId(v string) *InternetGateway {
  54027. s.OwnerId = &v
  54028. return s
  54029. }
  54030. // SetTags sets the Tags field's value.
  54031. func (s *InternetGateway) SetTags(v []*Tag) *InternetGateway {
  54032. s.Tags = v
  54033. return s
  54034. }
  54035. // Describes the attachment of a VPC to an internet gateway or an egress-only
  54036. // internet gateway.
  54037. type InternetGatewayAttachment struct {
  54038. _ struct{} `type:"structure"`
  54039. // The current state of the attachment. For an internet gateway, the state is
  54040. // available when attached to a VPC; otherwise, this value is not returned.
  54041. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"`
  54042. // The ID of the VPC.
  54043. VpcId *string `locationName:"vpcId" type:"string"`
  54044. }
  54045. // String returns the string representation
  54046. func (s InternetGatewayAttachment) String() string {
  54047. return awsutil.Prettify(s)
  54048. }
  54049. // GoString returns the string representation
  54050. func (s InternetGatewayAttachment) GoString() string {
  54051. return s.String()
  54052. }
  54053. // SetState sets the State field's value.
  54054. func (s *InternetGatewayAttachment) SetState(v string) *InternetGatewayAttachment {
  54055. s.State = &v
  54056. return s
  54057. }
  54058. // SetVpcId sets the VpcId field's value.
  54059. func (s *InternetGatewayAttachment) SetVpcId(v string) *InternetGatewayAttachment {
  54060. s.VpcId = &v
  54061. return s
  54062. }
  54063. // Describes a set of permissions for a security group rule.
  54064. type IpPermission struct {
  54065. _ struct{} `type:"structure"`
  54066. // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
  54067. // type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify
  54068. // all ICMP/ICMPv6 types, you must specify all codes.
  54069. FromPort *int64 `locationName:"fromPort" type:"integer"`
  54070. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  54071. //
  54072. // [EC2-VPC only] Use -1 to specify all protocols. When authorizing security
  54073. // group rules, specifying -1 or a protocol number other than tcp, udp, icmp,
  54074. // or 58 (ICMPv6) allows traffic on all ports, regardless of any port range
  54075. // you specify. For tcp, udp, and icmp, you must specify a port range. For 58
  54076. // (ICMPv6), you can optionally specify a port range; if you don't, traffic
  54077. // for all types and codes is allowed when authorizing rules.
  54078. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  54079. // One or more IPv4 ranges.
  54080. IpRanges []*IpRange `locationName:"ipRanges" locationNameList:"item" type:"list"`
  54081. // [EC2-VPC only] One or more IPv6 ranges.
  54082. Ipv6Ranges []*Ipv6Range `locationName:"ipv6Ranges" locationNameList:"item" type:"list"`
  54083. // [EC2-VPC only] One or more prefix list IDs for an AWS service. With AuthorizeSecurityGroupEgress,
  54084. // this is the AWS service that you want to access through a VPC endpoint from
  54085. // instances associated with the security group.
  54086. PrefixListIds []*PrefixListId `locationName:"prefixListIds" locationNameList:"item" type:"list"`
  54087. // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
  54088. // A value of -1 indicates all ICMP/ICMPv6 codes for the specified ICMP type.
  54089. // If you specify all ICMP/ICMPv6 types, you must specify all codes.
  54090. ToPort *int64 `locationName:"toPort" type:"integer"`
  54091. // One or more security group and AWS account ID pairs.
  54092. UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
  54093. }
  54094. // String returns the string representation
  54095. func (s IpPermission) String() string {
  54096. return awsutil.Prettify(s)
  54097. }
  54098. // GoString returns the string representation
  54099. func (s IpPermission) GoString() string {
  54100. return s.String()
  54101. }
  54102. // SetFromPort sets the FromPort field's value.
  54103. func (s *IpPermission) SetFromPort(v int64) *IpPermission {
  54104. s.FromPort = &v
  54105. return s
  54106. }
  54107. // SetIpProtocol sets the IpProtocol field's value.
  54108. func (s *IpPermission) SetIpProtocol(v string) *IpPermission {
  54109. s.IpProtocol = &v
  54110. return s
  54111. }
  54112. // SetIpRanges sets the IpRanges field's value.
  54113. func (s *IpPermission) SetIpRanges(v []*IpRange) *IpPermission {
  54114. s.IpRanges = v
  54115. return s
  54116. }
  54117. // SetIpv6Ranges sets the Ipv6Ranges field's value.
  54118. func (s *IpPermission) SetIpv6Ranges(v []*Ipv6Range) *IpPermission {
  54119. s.Ipv6Ranges = v
  54120. return s
  54121. }
  54122. // SetPrefixListIds sets the PrefixListIds field's value.
  54123. func (s *IpPermission) SetPrefixListIds(v []*PrefixListId) *IpPermission {
  54124. s.PrefixListIds = v
  54125. return s
  54126. }
  54127. // SetToPort sets the ToPort field's value.
  54128. func (s *IpPermission) SetToPort(v int64) *IpPermission {
  54129. s.ToPort = &v
  54130. return s
  54131. }
  54132. // SetUserIdGroupPairs sets the UserIdGroupPairs field's value.
  54133. func (s *IpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *IpPermission {
  54134. s.UserIdGroupPairs = v
  54135. return s
  54136. }
  54137. // Describes an IPv4 range.
  54138. type IpRange struct {
  54139. _ struct{} `type:"structure"`
  54140. // The IPv4 CIDR range. You can either specify a CIDR range or a source security
  54141. // group, not both. To specify a single IPv4 address, use the /32 prefix length.
  54142. CidrIp *string `locationName:"cidrIp" type:"string"`
  54143. // A description for the security group rule that references this IPv4 address
  54144. // range.
  54145. //
  54146. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  54147. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  54148. Description *string `locationName:"description" type:"string"`
  54149. }
  54150. // String returns the string representation
  54151. func (s IpRange) String() string {
  54152. return awsutil.Prettify(s)
  54153. }
  54154. // GoString returns the string representation
  54155. func (s IpRange) GoString() string {
  54156. return s.String()
  54157. }
  54158. // SetCidrIp sets the CidrIp field's value.
  54159. func (s *IpRange) SetCidrIp(v string) *IpRange {
  54160. s.CidrIp = &v
  54161. return s
  54162. }
  54163. // SetDescription sets the Description field's value.
  54164. func (s *IpRange) SetDescription(v string) *IpRange {
  54165. s.Description = &v
  54166. return s
  54167. }
  54168. // Describes an IPv6 CIDR block.
  54169. type Ipv6CidrBlock struct {
  54170. _ struct{} `type:"structure"`
  54171. // The IPv6 CIDR block.
  54172. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  54173. }
  54174. // String returns the string representation
  54175. func (s Ipv6CidrBlock) String() string {
  54176. return awsutil.Prettify(s)
  54177. }
  54178. // GoString returns the string representation
  54179. func (s Ipv6CidrBlock) GoString() string {
  54180. return s.String()
  54181. }
  54182. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  54183. func (s *Ipv6CidrBlock) SetIpv6CidrBlock(v string) *Ipv6CidrBlock {
  54184. s.Ipv6CidrBlock = &v
  54185. return s
  54186. }
  54187. // [EC2-VPC only] Describes an IPv6 range.
  54188. type Ipv6Range struct {
  54189. _ struct{} `type:"structure"`
  54190. // The IPv6 CIDR range. You can either specify a CIDR range or a source security
  54191. // group, not both. To specify a single IPv6 address, use the /128 prefix length.
  54192. CidrIpv6 *string `locationName:"cidrIpv6" type:"string"`
  54193. // A description for the security group rule that references this IPv6 address
  54194. // range.
  54195. //
  54196. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  54197. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  54198. Description *string `locationName:"description" type:"string"`
  54199. }
  54200. // String returns the string representation
  54201. func (s Ipv6Range) String() string {
  54202. return awsutil.Prettify(s)
  54203. }
  54204. // GoString returns the string representation
  54205. func (s Ipv6Range) GoString() string {
  54206. return s.String()
  54207. }
  54208. // SetCidrIpv6 sets the CidrIpv6 field's value.
  54209. func (s *Ipv6Range) SetCidrIpv6(v string) *Ipv6Range {
  54210. s.CidrIpv6 = &v
  54211. return s
  54212. }
  54213. // SetDescription sets the Description field's value.
  54214. func (s *Ipv6Range) SetDescription(v string) *Ipv6Range {
  54215. s.Description = &v
  54216. return s
  54217. }
  54218. // Describes a key pair.
  54219. type KeyPairInfo struct {
  54220. _ struct{} `type:"structure"`
  54221. // If you used CreateKeyPair to create the key pair, this is the SHA-1 digest
  54222. // of the DER encoded private key. If you used ImportKeyPair to provide AWS
  54223. // the public key, this is the MD5 public key fingerprint as specified in section
  54224. // 4 of RFC4716.
  54225. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  54226. // The name of the key pair.
  54227. KeyName *string `locationName:"keyName" type:"string"`
  54228. }
  54229. // String returns the string representation
  54230. func (s KeyPairInfo) String() string {
  54231. return awsutil.Prettify(s)
  54232. }
  54233. // GoString returns the string representation
  54234. func (s KeyPairInfo) GoString() string {
  54235. return s.String()
  54236. }
  54237. // SetKeyFingerprint sets the KeyFingerprint field's value.
  54238. func (s *KeyPairInfo) SetKeyFingerprint(v string) *KeyPairInfo {
  54239. s.KeyFingerprint = &v
  54240. return s
  54241. }
  54242. // SetKeyName sets the KeyName field's value.
  54243. func (s *KeyPairInfo) SetKeyName(v string) *KeyPairInfo {
  54244. s.KeyName = &v
  54245. return s
  54246. }
  54247. // Describes a launch permission.
  54248. type LaunchPermission struct {
  54249. _ struct{} `type:"structure"`
  54250. // The name of the group.
  54251. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  54252. // The AWS account ID.
  54253. UserId *string `locationName:"userId" type:"string"`
  54254. }
  54255. // String returns the string representation
  54256. func (s LaunchPermission) String() string {
  54257. return awsutil.Prettify(s)
  54258. }
  54259. // GoString returns the string representation
  54260. func (s LaunchPermission) GoString() string {
  54261. return s.String()
  54262. }
  54263. // SetGroup sets the Group field's value.
  54264. func (s *LaunchPermission) SetGroup(v string) *LaunchPermission {
  54265. s.Group = &v
  54266. return s
  54267. }
  54268. // SetUserId sets the UserId field's value.
  54269. func (s *LaunchPermission) SetUserId(v string) *LaunchPermission {
  54270. s.UserId = &v
  54271. return s
  54272. }
  54273. // Describes a launch permission modification.
  54274. type LaunchPermissionModifications struct {
  54275. _ struct{} `type:"structure"`
  54276. // The AWS account ID to add to the list of launch permissions for the AMI.
  54277. Add []*LaunchPermission `locationNameList:"item" type:"list"`
  54278. // The AWS account ID to remove from the list of launch permissions for the
  54279. // AMI.
  54280. Remove []*LaunchPermission `locationNameList:"item" type:"list"`
  54281. }
  54282. // String returns the string representation
  54283. func (s LaunchPermissionModifications) String() string {
  54284. return awsutil.Prettify(s)
  54285. }
  54286. // GoString returns the string representation
  54287. func (s LaunchPermissionModifications) GoString() string {
  54288. return s.String()
  54289. }
  54290. // SetAdd sets the Add field's value.
  54291. func (s *LaunchPermissionModifications) SetAdd(v []*LaunchPermission) *LaunchPermissionModifications {
  54292. s.Add = v
  54293. return s
  54294. }
  54295. // SetRemove sets the Remove field's value.
  54296. func (s *LaunchPermissionModifications) SetRemove(v []*LaunchPermission) *LaunchPermissionModifications {
  54297. s.Remove = v
  54298. return s
  54299. }
  54300. // Describes the launch specification for an instance.
  54301. type LaunchSpecification struct {
  54302. _ struct{} `type:"structure"`
  54303. // Deprecated.
  54304. AddressingType *string `locationName:"addressingType" type:"string"`
  54305. // One or more block device mapping entries.
  54306. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  54307. // Indicates whether the instance is optimized for EBS I/O. This optimization
  54308. // provides dedicated throughput to Amazon EBS and an optimized configuration
  54309. // stack to provide optimal EBS I/O performance. This optimization isn't available
  54310. // with all instance types. Additional usage charges apply when using an EBS
  54311. // Optimized instance.
  54312. //
  54313. // Default: false
  54314. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  54315. // The IAM instance profile.
  54316. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  54317. // The ID of the AMI.
  54318. ImageId *string `locationName:"imageId" type:"string"`
  54319. // The instance type.
  54320. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  54321. // The ID of the kernel.
  54322. KernelId *string `locationName:"kernelId" type:"string"`
  54323. // The name of the key pair.
  54324. KeyName *string `locationName:"keyName" type:"string"`
  54325. // Describes the monitoring of an instance.
  54326. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`
  54327. // One or more network interfaces. If you specify a network interface, you must
  54328. // specify subnet IDs and security group IDs using the network interface.
  54329. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  54330. // The placement information for the instance.
  54331. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  54332. // The ID of the RAM disk.
  54333. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  54334. // One or more security groups. When requesting instances in a VPC, you must
  54335. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  54336. // you can specify the names or the IDs of the security groups.
  54337. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  54338. // The ID of the subnet in which to launch the instance.
  54339. SubnetId *string `locationName:"subnetId" type:"string"`
  54340. // The Base64-encoded user data for the instance.
  54341. UserData *string `locationName:"userData" type:"string"`
  54342. }
  54343. // String returns the string representation
  54344. func (s LaunchSpecification) String() string {
  54345. return awsutil.Prettify(s)
  54346. }
  54347. // GoString returns the string representation
  54348. func (s LaunchSpecification) GoString() string {
  54349. return s.String()
  54350. }
  54351. // SetAddressingType sets the AddressingType field's value.
  54352. func (s *LaunchSpecification) SetAddressingType(v string) *LaunchSpecification {
  54353. s.AddressingType = &v
  54354. return s
  54355. }
  54356. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  54357. func (s *LaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *LaunchSpecification {
  54358. s.BlockDeviceMappings = v
  54359. return s
  54360. }
  54361. // SetEbsOptimized sets the EbsOptimized field's value.
  54362. func (s *LaunchSpecification) SetEbsOptimized(v bool) *LaunchSpecification {
  54363. s.EbsOptimized = &v
  54364. return s
  54365. }
  54366. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  54367. func (s *LaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *LaunchSpecification {
  54368. s.IamInstanceProfile = v
  54369. return s
  54370. }
  54371. // SetImageId sets the ImageId field's value.
  54372. func (s *LaunchSpecification) SetImageId(v string) *LaunchSpecification {
  54373. s.ImageId = &v
  54374. return s
  54375. }
  54376. // SetInstanceType sets the InstanceType field's value.
  54377. func (s *LaunchSpecification) SetInstanceType(v string) *LaunchSpecification {
  54378. s.InstanceType = &v
  54379. return s
  54380. }
  54381. // SetKernelId sets the KernelId field's value.
  54382. func (s *LaunchSpecification) SetKernelId(v string) *LaunchSpecification {
  54383. s.KernelId = &v
  54384. return s
  54385. }
  54386. // SetKeyName sets the KeyName field's value.
  54387. func (s *LaunchSpecification) SetKeyName(v string) *LaunchSpecification {
  54388. s.KeyName = &v
  54389. return s
  54390. }
  54391. // SetMonitoring sets the Monitoring field's value.
  54392. func (s *LaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *LaunchSpecification {
  54393. s.Monitoring = v
  54394. return s
  54395. }
  54396. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  54397. func (s *LaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *LaunchSpecification {
  54398. s.NetworkInterfaces = v
  54399. return s
  54400. }
  54401. // SetPlacement sets the Placement field's value.
  54402. func (s *LaunchSpecification) SetPlacement(v *SpotPlacement) *LaunchSpecification {
  54403. s.Placement = v
  54404. return s
  54405. }
  54406. // SetRamdiskId sets the RamdiskId field's value.
  54407. func (s *LaunchSpecification) SetRamdiskId(v string) *LaunchSpecification {
  54408. s.RamdiskId = &v
  54409. return s
  54410. }
  54411. // SetSecurityGroups sets the SecurityGroups field's value.
  54412. func (s *LaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *LaunchSpecification {
  54413. s.SecurityGroups = v
  54414. return s
  54415. }
  54416. // SetSubnetId sets the SubnetId field's value.
  54417. func (s *LaunchSpecification) SetSubnetId(v string) *LaunchSpecification {
  54418. s.SubnetId = &v
  54419. return s
  54420. }
  54421. // SetUserData sets the UserData field's value.
  54422. func (s *LaunchSpecification) SetUserData(v string) *LaunchSpecification {
  54423. s.UserData = &v
  54424. return s
  54425. }
  54426. // Describes a launch template.
  54427. type LaunchTemplate struct {
  54428. _ struct{} `type:"structure"`
  54429. // The time launch template was created.
  54430. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  54431. // The principal that created the launch template.
  54432. CreatedBy *string `locationName:"createdBy" type:"string"`
  54433. // The version number of the default version of the launch template.
  54434. DefaultVersionNumber *int64 `locationName:"defaultVersionNumber" type:"long"`
  54435. // The version number of the latest version of the launch template.
  54436. LatestVersionNumber *int64 `locationName:"latestVersionNumber" type:"long"`
  54437. // The ID of the launch template.
  54438. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  54439. // The name of the launch template.
  54440. LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`
  54441. // The tags for the launch template.
  54442. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  54443. }
  54444. // String returns the string representation
  54445. func (s LaunchTemplate) String() string {
  54446. return awsutil.Prettify(s)
  54447. }
  54448. // GoString returns the string representation
  54449. func (s LaunchTemplate) GoString() string {
  54450. return s.String()
  54451. }
  54452. // SetCreateTime sets the CreateTime field's value.
  54453. func (s *LaunchTemplate) SetCreateTime(v time.Time) *LaunchTemplate {
  54454. s.CreateTime = &v
  54455. return s
  54456. }
  54457. // SetCreatedBy sets the CreatedBy field's value.
  54458. func (s *LaunchTemplate) SetCreatedBy(v string) *LaunchTemplate {
  54459. s.CreatedBy = &v
  54460. return s
  54461. }
  54462. // SetDefaultVersionNumber sets the DefaultVersionNumber field's value.
  54463. func (s *LaunchTemplate) SetDefaultVersionNumber(v int64) *LaunchTemplate {
  54464. s.DefaultVersionNumber = &v
  54465. return s
  54466. }
  54467. // SetLatestVersionNumber sets the LatestVersionNumber field's value.
  54468. func (s *LaunchTemplate) SetLatestVersionNumber(v int64) *LaunchTemplate {
  54469. s.LatestVersionNumber = &v
  54470. return s
  54471. }
  54472. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  54473. func (s *LaunchTemplate) SetLaunchTemplateId(v string) *LaunchTemplate {
  54474. s.LaunchTemplateId = &v
  54475. return s
  54476. }
  54477. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  54478. func (s *LaunchTemplate) SetLaunchTemplateName(v string) *LaunchTemplate {
  54479. s.LaunchTemplateName = &v
  54480. return s
  54481. }
  54482. // SetTags sets the Tags field's value.
  54483. func (s *LaunchTemplate) SetTags(v []*Tag) *LaunchTemplate {
  54484. s.Tags = v
  54485. return s
  54486. }
  54487. // Describes a launch template and overrides.
  54488. type LaunchTemplateAndOverridesResponse struct {
  54489. _ struct{} `type:"structure"`
  54490. // The launch template.
  54491. LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"`
  54492. // Any parameters that you specify override the same parameters in the launch
  54493. // template.
  54494. Overrides *FleetLaunchTemplateOverrides `locationName:"overrides" type:"structure"`
  54495. }
  54496. // String returns the string representation
  54497. func (s LaunchTemplateAndOverridesResponse) String() string {
  54498. return awsutil.Prettify(s)
  54499. }
  54500. // GoString returns the string representation
  54501. func (s LaunchTemplateAndOverridesResponse) GoString() string {
  54502. return s.String()
  54503. }
  54504. // SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value.
  54505. func (s *LaunchTemplateAndOverridesResponse) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecification) *LaunchTemplateAndOverridesResponse {
  54506. s.LaunchTemplateSpecification = v
  54507. return s
  54508. }
  54509. // SetOverrides sets the Overrides field's value.
  54510. func (s *LaunchTemplateAndOverridesResponse) SetOverrides(v *FleetLaunchTemplateOverrides) *LaunchTemplateAndOverridesResponse {
  54511. s.Overrides = v
  54512. return s
  54513. }
  54514. // Describes a block device mapping.
  54515. type LaunchTemplateBlockDeviceMapping struct {
  54516. _ struct{} `type:"structure"`
  54517. // The device name.
  54518. DeviceName *string `locationName:"deviceName" type:"string"`
  54519. // Information about the block device for an EBS volume.
  54520. Ebs *LaunchTemplateEbsBlockDevice `locationName:"ebs" type:"structure"`
  54521. // Suppresses the specified device included in the block device mapping of the
  54522. // AMI.
  54523. NoDevice *string `locationName:"noDevice" type:"string"`
  54524. // The virtual device name (ephemeralN).
  54525. VirtualName *string `locationName:"virtualName" type:"string"`
  54526. }
  54527. // String returns the string representation
  54528. func (s LaunchTemplateBlockDeviceMapping) String() string {
  54529. return awsutil.Prettify(s)
  54530. }
  54531. // GoString returns the string representation
  54532. func (s LaunchTemplateBlockDeviceMapping) GoString() string {
  54533. return s.String()
  54534. }
  54535. // SetDeviceName sets the DeviceName field's value.
  54536. func (s *LaunchTemplateBlockDeviceMapping) SetDeviceName(v string) *LaunchTemplateBlockDeviceMapping {
  54537. s.DeviceName = &v
  54538. return s
  54539. }
  54540. // SetEbs sets the Ebs field's value.
  54541. func (s *LaunchTemplateBlockDeviceMapping) SetEbs(v *LaunchTemplateEbsBlockDevice) *LaunchTemplateBlockDeviceMapping {
  54542. s.Ebs = v
  54543. return s
  54544. }
  54545. // SetNoDevice sets the NoDevice field's value.
  54546. func (s *LaunchTemplateBlockDeviceMapping) SetNoDevice(v string) *LaunchTemplateBlockDeviceMapping {
  54547. s.NoDevice = &v
  54548. return s
  54549. }
  54550. // SetVirtualName sets the VirtualName field's value.
  54551. func (s *LaunchTemplateBlockDeviceMapping) SetVirtualName(v string) *LaunchTemplateBlockDeviceMapping {
  54552. s.VirtualName = &v
  54553. return s
  54554. }
  54555. // Describes a block device mapping.
  54556. type LaunchTemplateBlockDeviceMappingRequest struct {
  54557. _ struct{} `type:"structure"`
  54558. // The device name (for example, /dev/sdh or xvdh).
  54559. DeviceName *string `type:"string"`
  54560. // Parameters used to automatically set up EBS volumes when the instance is
  54561. // launched.
  54562. Ebs *LaunchTemplateEbsBlockDeviceRequest `type:"structure"`
  54563. // Suppresses the specified device included in the block device mapping of the
  54564. // AMI.
  54565. NoDevice *string `type:"string"`
  54566. // The virtual device name (ephemeralN). Instance store volumes are numbered
  54567. // starting from 0. An instance type with 2 available instance store volumes
  54568. // can specify mappings for ephemeral0 and ephemeral1. The number of available
  54569. // instance store volumes depends on the instance type. After you connect to
  54570. // the instance, you must mount the volume.
  54571. VirtualName *string `type:"string"`
  54572. }
  54573. // String returns the string representation
  54574. func (s LaunchTemplateBlockDeviceMappingRequest) String() string {
  54575. return awsutil.Prettify(s)
  54576. }
  54577. // GoString returns the string representation
  54578. func (s LaunchTemplateBlockDeviceMappingRequest) GoString() string {
  54579. return s.String()
  54580. }
  54581. // SetDeviceName sets the DeviceName field's value.
  54582. func (s *LaunchTemplateBlockDeviceMappingRequest) SetDeviceName(v string) *LaunchTemplateBlockDeviceMappingRequest {
  54583. s.DeviceName = &v
  54584. return s
  54585. }
  54586. // SetEbs sets the Ebs field's value.
  54587. func (s *LaunchTemplateBlockDeviceMappingRequest) SetEbs(v *LaunchTemplateEbsBlockDeviceRequest) *LaunchTemplateBlockDeviceMappingRequest {
  54588. s.Ebs = v
  54589. return s
  54590. }
  54591. // SetNoDevice sets the NoDevice field's value.
  54592. func (s *LaunchTemplateBlockDeviceMappingRequest) SetNoDevice(v string) *LaunchTemplateBlockDeviceMappingRequest {
  54593. s.NoDevice = &v
  54594. return s
  54595. }
  54596. // SetVirtualName sets the VirtualName field's value.
  54597. func (s *LaunchTemplateBlockDeviceMappingRequest) SetVirtualName(v string) *LaunchTemplateBlockDeviceMappingRequest {
  54598. s.VirtualName = &v
  54599. return s
  54600. }
  54601. // Describes an instance's Capacity Reservation targeting option. You can specify
  54602. // only one option at a time. Use the CapacityReservationPreference parameter
  54603. // to configure the instance to run in On-Demand capacity or to run in any open
  54604. // Capacity Reservation that has matching attributes (instance type, platform,
  54605. // Availability Zone). Use the CapacityReservationTarget parameter to explicitly
  54606. // target a specific Capacity Reservation.
  54607. type LaunchTemplateCapacityReservationSpecificationRequest struct {
  54608. _ struct{} `type:"structure"`
  54609. // Indicates the instance's Capacity Reservation preferences. Possible preferences
  54610. // include:
  54611. //
  54612. // * open - The instance can run in any open Capacity Reservation that has
  54613. // matching attributes (instance type, platform, Availability Zone).
  54614. //
  54615. // * none - The instance avoids running in a Capacity Reservation even if
  54616. // one is available. The instance runs in On-Demand capacity.
  54617. CapacityReservationPreference *string `type:"string" enum:"CapacityReservationPreference"`
  54618. // Information about the target Capacity Reservation.
  54619. CapacityReservationTarget *CapacityReservationTarget `type:"structure"`
  54620. }
  54621. // String returns the string representation
  54622. func (s LaunchTemplateCapacityReservationSpecificationRequest) String() string {
  54623. return awsutil.Prettify(s)
  54624. }
  54625. // GoString returns the string representation
  54626. func (s LaunchTemplateCapacityReservationSpecificationRequest) GoString() string {
  54627. return s.String()
  54628. }
  54629. // SetCapacityReservationPreference sets the CapacityReservationPreference field's value.
  54630. func (s *LaunchTemplateCapacityReservationSpecificationRequest) SetCapacityReservationPreference(v string) *LaunchTemplateCapacityReservationSpecificationRequest {
  54631. s.CapacityReservationPreference = &v
  54632. return s
  54633. }
  54634. // SetCapacityReservationTarget sets the CapacityReservationTarget field's value.
  54635. func (s *LaunchTemplateCapacityReservationSpecificationRequest) SetCapacityReservationTarget(v *CapacityReservationTarget) *LaunchTemplateCapacityReservationSpecificationRequest {
  54636. s.CapacityReservationTarget = v
  54637. return s
  54638. }
  54639. // Information about the Capacity Reservation targeting option.
  54640. type LaunchTemplateCapacityReservationSpecificationResponse struct {
  54641. _ struct{} `type:"structure"`
  54642. // Indicates the instance's Capacity Reservation preferences. Possible preferences
  54643. // include:
  54644. //
  54645. // * open - The instance can run in any open Capacity Reservation that has
  54646. // matching attributes (instance type, platform, Availability Zone).
  54647. //
  54648. // * none - The instance avoids running in a Capacity Reservation even if
  54649. // one is available. The instance runs in On-Demand capacity.
  54650. CapacityReservationPreference *string `locationName:"capacityReservationPreference" type:"string" enum:"CapacityReservationPreference"`
  54651. // Information about the target Capacity Reservation.
  54652. CapacityReservationTarget *CapacityReservationTargetResponse `locationName:"capacityReservationTarget" type:"structure"`
  54653. }
  54654. // String returns the string representation
  54655. func (s LaunchTemplateCapacityReservationSpecificationResponse) String() string {
  54656. return awsutil.Prettify(s)
  54657. }
  54658. // GoString returns the string representation
  54659. func (s LaunchTemplateCapacityReservationSpecificationResponse) GoString() string {
  54660. return s.String()
  54661. }
  54662. // SetCapacityReservationPreference sets the CapacityReservationPreference field's value.
  54663. func (s *LaunchTemplateCapacityReservationSpecificationResponse) SetCapacityReservationPreference(v string) *LaunchTemplateCapacityReservationSpecificationResponse {
  54664. s.CapacityReservationPreference = &v
  54665. return s
  54666. }
  54667. // SetCapacityReservationTarget sets the CapacityReservationTarget field's value.
  54668. func (s *LaunchTemplateCapacityReservationSpecificationResponse) SetCapacityReservationTarget(v *CapacityReservationTargetResponse) *LaunchTemplateCapacityReservationSpecificationResponse {
  54669. s.CapacityReservationTarget = v
  54670. return s
  54671. }
  54672. // Describes a launch template and overrides.
  54673. type LaunchTemplateConfig struct {
  54674. _ struct{} `type:"structure"`
  54675. // The launch template.
  54676. LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"`
  54677. // Any parameters that you specify override the same parameters in the launch
  54678. // template.
  54679. Overrides []*LaunchTemplateOverrides `locationName:"overrides" locationNameList:"item" type:"list"`
  54680. }
  54681. // String returns the string representation
  54682. func (s LaunchTemplateConfig) String() string {
  54683. return awsutil.Prettify(s)
  54684. }
  54685. // GoString returns the string representation
  54686. func (s LaunchTemplateConfig) GoString() string {
  54687. return s.String()
  54688. }
  54689. // Validate inspects the fields of the type to determine if they are valid.
  54690. func (s *LaunchTemplateConfig) Validate() error {
  54691. invalidParams := request.ErrInvalidParams{Context: "LaunchTemplateConfig"}
  54692. if s.LaunchTemplateSpecification != nil {
  54693. if err := s.LaunchTemplateSpecification.Validate(); err != nil {
  54694. invalidParams.AddNested("LaunchTemplateSpecification", err.(request.ErrInvalidParams))
  54695. }
  54696. }
  54697. if invalidParams.Len() > 0 {
  54698. return invalidParams
  54699. }
  54700. return nil
  54701. }
  54702. // SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value.
  54703. func (s *LaunchTemplateConfig) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecification) *LaunchTemplateConfig {
  54704. s.LaunchTemplateSpecification = v
  54705. return s
  54706. }
  54707. // SetOverrides sets the Overrides field's value.
  54708. func (s *LaunchTemplateConfig) SetOverrides(v []*LaunchTemplateOverrides) *LaunchTemplateConfig {
  54709. s.Overrides = v
  54710. return s
  54711. }
  54712. // The CPU options for the instance.
  54713. type LaunchTemplateCpuOptions struct {
  54714. _ struct{} `type:"structure"`
  54715. // The number of CPU cores for the instance.
  54716. CoreCount *int64 `locationName:"coreCount" type:"integer"`
  54717. // The number of threads per CPU core.
  54718. ThreadsPerCore *int64 `locationName:"threadsPerCore" type:"integer"`
  54719. }
  54720. // String returns the string representation
  54721. func (s LaunchTemplateCpuOptions) String() string {
  54722. return awsutil.Prettify(s)
  54723. }
  54724. // GoString returns the string representation
  54725. func (s LaunchTemplateCpuOptions) GoString() string {
  54726. return s.String()
  54727. }
  54728. // SetCoreCount sets the CoreCount field's value.
  54729. func (s *LaunchTemplateCpuOptions) SetCoreCount(v int64) *LaunchTemplateCpuOptions {
  54730. s.CoreCount = &v
  54731. return s
  54732. }
  54733. // SetThreadsPerCore sets the ThreadsPerCore field's value.
  54734. func (s *LaunchTemplateCpuOptions) SetThreadsPerCore(v int64) *LaunchTemplateCpuOptions {
  54735. s.ThreadsPerCore = &v
  54736. return s
  54737. }
  54738. // The CPU options for the instance. Both the core count and threads per core
  54739. // must be specified in the request.
  54740. type LaunchTemplateCpuOptionsRequest struct {
  54741. _ struct{} `type:"structure"`
  54742. // The number of CPU cores for the instance.
  54743. CoreCount *int64 `type:"integer"`
  54744. // The number of threads per CPU core. To disable Intel Hyper-Threading Technology
  54745. // for the instance, specify a value of 1. Otherwise, specify the default value
  54746. // of 2.
  54747. ThreadsPerCore *int64 `type:"integer"`
  54748. }
  54749. // String returns the string representation
  54750. func (s LaunchTemplateCpuOptionsRequest) String() string {
  54751. return awsutil.Prettify(s)
  54752. }
  54753. // GoString returns the string representation
  54754. func (s LaunchTemplateCpuOptionsRequest) GoString() string {
  54755. return s.String()
  54756. }
  54757. // SetCoreCount sets the CoreCount field's value.
  54758. func (s *LaunchTemplateCpuOptionsRequest) SetCoreCount(v int64) *LaunchTemplateCpuOptionsRequest {
  54759. s.CoreCount = &v
  54760. return s
  54761. }
  54762. // SetThreadsPerCore sets the ThreadsPerCore field's value.
  54763. func (s *LaunchTemplateCpuOptionsRequest) SetThreadsPerCore(v int64) *LaunchTemplateCpuOptionsRequest {
  54764. s.ThreadsPerCore = &v
  54765. return s
  54766. }
  54767. // Describes a block device for an EBS volume.
  54768. type LaunchTemplateEbsBlockDevice struct {
  54769. _ struct{} `type:"structure"`
  54770. // Indicates whether the EBS volume is deleted on instance termination.
  54771. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  54772. // Indicates whether the EBS volume is encrypted.
  54773. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  54774. // The number of I/O operations per second (IOPS) that the volume supports.
  54775. Iops *int64 `locationName:"iops" type:"integer"`
  54776. // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
  54777. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  54778. // The ID of the snapshot.
  54779. SnapshotId *string `locationName:"snapshotId" type:"string"`
  54780. // The size of the volume, in GiB.
  54781. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  54782. // The volume type.
  54783. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  54784. }
  54785. // String returns the string representation
  54786. func (s LaunchTemplateEbsBlockDevice) String() string {
  54787. return awsutil.Prettify(s)
  54788. }
  54789. // GoString returns the string representation
  54790. func (s LaunchTemplateEbsBlockDevice) GoString() string {
  54791. return s.String()
  54792. }
  54793. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  54794. func (s *LaunchTemplateEbsBlockDevice) SetDeleteOnTermination(v bool) *LaunchTemplateEbsBlockDevice {
  54795. s.DeleteOnTermination = &v
  54796. return s
  54797. }
  54798. // SetEncrypted sets the Encrypted field's value.
  54799. func (s *LaunchTemplateEbsBlockDevice) SetEncrypted(v bool) *LaunchTemplateEbsBlockDevice {
  54800. s.Encrypted = &v
  54801. return s
  54802. }
  54803. // SetIops sets the Iops field's value.
  54804. func (s *LaunchTemplateEbsBlockDevice) SetIops(v int64) *LaunchTemplateEbsBlockDevice {
  54805. s.Iops = &v
  54806. return s
  54807. }
  54808. // SetKmsKeyId sets the KmsKeyId field's value.
  54809. func (s *LaunchTemplateEbsBlockDevice) SetKmsKeyId(v string) *LaunchTemplateEbsBlockDevice {
  54810. s.KmsKeyId = &v
  54811. return s
  54812. }
  54813. // SetSnapshotId sets the SnapshotId field's value.
  54814. func (s *LaunchTemplateEbsBlockDevice) SetSnapshotId(v string) *LaunchTemplateEbsBlockDevice {
  54815. s.SnapshotId = &v
  54816. return s
  54817. }
  54818. // SetVolumeSize sets the VolumeSize field's value.
  54819. func (s *LaunchTemplateEbsBlockDevice) SetVolumeSize(v int64) *LaunchTemplateEbsBlockDevice {
  54820. s.VolumeSize = &v
  54821. return s
  54822. }
  54823. // SetVolumeType sets the VolumeType field's value.
  54824. func (s *LaunchTemplateEbsBlockDevice) SetVolumeType(v string) *LaunchTemplateEbsBlockDevice {
  54825. s.VolumeType = &v
  54826. return s
  54827. }
  54828. // The parameters for a block device for an EBS volume.
  54829. type LaunchTemplateEbsBlockDeviceRequest struct {
  54830. _ struct{} `type:"structure"`
  54831. // Indicates whether the EBS volume is deleted on instance termination.
  54832. DeleteOnTermination *bool `type:"boolean"`
  54833. // Indicates whether the EBS volume is encrypted. Encrypted volumes can only
  54834. // be attached to instances that support Amazon EBS encryption. If you are creating
  54835. // a volume from a snapshot, you can't specify an encryption value.
  54836. Encrypted *bool `type:"boolean"`
  54837. // The number of I/O operations per second (IOPS) that the volume supports.
  54838. // For io1, this represents the number of IOPS that are provisioned for the
  54839. // volume. For gp2, this represents the baseline performance of the volume and
  54840. // the rate at which the volume accumulates I/O credits for bursting. For more
  54841. // information about General Purpose SSD baseline performance, I/O credits,
  54842. // and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud
  54843. // User Guide.
  54844. //
  54845. // Condition: This parameter is required for requests to create io1 volumes;
  54846. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  54847. Iops *int64 `type:"integer"`
  54848. // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
  54849. KmsKeyId *string `type:"string"`
  54850. // The ID of the snapshot.
  54851. SnapshotId *string `type:"string"`
  54852. // The size of the volume, in GiB.
  54853. //
  54854. // Default: If you're creating the volume from a snapshot and don't specify
  54855. // a volume size, the default is the snapshot size.
  54856. VolumeSize *int64 `type:"integer"`
  54857. // The volume type.
  54858. VolumeType *string `type:"string" enum:"VolumeType"`
  54859. }
  54860. // String returns the string representation
  54861. func (s LaunchTemplateEbsBlockDeviceRequest) String() string {
  54862. return awsutil.Prettify(s)
  54863. }
  54864. // GoString returns the string representation
  54865. func (s LaunchTemplateEbsBlockDeviceRequest) GoString() string {
  54866. return s.String()
  54867. }
  54868. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  54869. func (s *LaunchTemplateEbsBlockDeviceRequest) SetDeleteOnTermination(v bool) *LaunchTemplateEbsBlockDeviceRequest {
  54870. s.DeleteOnTermination = &v
  54871. return s
  54872. }
  54873. // SetEncrypted sets the Encrypted field's value.
  54874. func (s *LaunchTemplateEbsBlockDeviceRequest) SetEncrypted(v bool) *LaunchTemplateEbsBlockDeviceRequest {
  54875. s.Encrypted = &v
  54876. return s
  54877. }
  54878. // SetIops sets the Iops field's value.
  54879. func (s *LaunchTemplateEbsBlockDeviceRequest) SetIops(v int64) *LaunchTemplateEbsBlockDeviceRequest {
  54880. s.Iops = &v
  54881. return s
  54882. }
  54883. // SetKmsKeyId sets the KmsKeyId field's value.
  54884. func (s *LaunchTemplateEbsBlockDeviceRequest) SetKmsKeyId(v string) *LaunchTemplateEbsBlockDeviceRequest {
  54885. s.KmsKeyId = &v
  54886. return s
  54887. }
  54888. // SetSnapshotId sets the SnapshotId field's value.
  54889. func (s *LaunchTemplateEbsBlockDeviceRequest) SetSnapshotId(v string) *LaunchTemplateEbsBlockDeviceRequest {
  54890. s.SnapshotId = &v
  54891. return s
  54892. }
  54893. // SetVolumeSize sets the VolumeSize field's value.
  54894. func (s *LaunchTemplateEbsBlockDeviceRequest) SetVolumeSize(v int64) *LaunchTemplateEbsBlockDeviceRequest {
  54895. s.VolumeSize = &v
  54896. return s
  54897. }
  54898. // SetVolumeType sets the VolumeType field's value.
  54899. func (s *LaunchTemplateEbsBlockDeviceRequest) SetVolumeType(v string) *LaunchTemplateEbsBlockDeviceRequest {
  54900. s.VolumeType = &v
  54901. return s
  54902. }
  54903. // Describes an elastic inference accelerator.
  54904. type LaunchTemplateElasticInferenceAccelerator struct {
  54905. _ struct{} `type:"structure"`
  54906. // The type of elastic inference accelerator. The possible values are eia1.medium,
  54907. // eia1.large, and eia1.xlarge.
  54908. //
  54909. // Type is a required field
  54910. Type *string `type:"string" required:"true"`
  54911. }
  54912. // String returns the string representation
  54913. func (s LaunchTemplateElasticInferenceAccelerator) String() string {
  54914. return awsutil.Prettify(s)
  54915. }
  54916. // GoString returns the string representation
  54917. func (s LaunchTemplateElasticInferenceAccelerator) GoString() string {
  54918. return s.String()
  54919. }
  54920. // Validate inspects the fields of the type to determine if they are valid.
  54921. func (s *LaunchTemplateElasticInferenceAccelerator) Validate() error {
  54922. invalidParams := request.ErrInvalidParams{Context: "LaunchTemplateElasticInferenceAccelerator"}
  54923. if s.Type == nil {
  54924. invalidParams.Add(request.NewErrParamRequired("Type"))
  54925. }
  54926. if invalidParams.Len() > 0 {
  54927. return invalidParams
  54928. }
  54929. return nil
  54930. }
  54931. // SetType sets the Type field's value.
  54932. func (s *LaunchTemplateElasticInferenceAccelerator) SetType(v string) *LaunchTemplateElasticInferenceAccelerator {
  54933. s.Type = &v
  54934. return s
  54935. }
  54936. // Describes an elastic inference accelerator.
  54937. type LaunchTemplateElasticInferenceAcceleratorResponse struct {
  54938. _ struct{} `type:"structure"`
  54939. // The type of elastic inference accelerator. The possible values are eia1.medium,
  54940. // eia1.large, and eia1.xlarge.
  54941. Type *string `locationName:"type" type:"string"`
  54942. }
  54943. // String returns the string representation
  54944. func (s LaunchTemplateElasticInferenceAcceleratorResponse) String() string {
  54945. return awsutil.Prettify(s)
  54946. }
  54947. // GoString returns the string representation
  54948. func (s LaunchTemplateElasticInferenceAcceleratorResponse) GoString() string {
  54949. return s.String()
  54950. }
  54951. // SetType sets the Type field's value.
  54952. func (s *LaunchTemplateElasticInferenceAcceleratorResponse) SetType(v string) *LaunchTemplateElasticInferenceAcceleratorResponse {
  54953. s.Type = &v
  54954. return s
  54955. }
  54956. // Indicates whether an instance is configured for hibernation.
  54957. type LaunchTemplateHibernationOptions struct {
  54958. _ struct{} `type:"structure"`
  54959. // If this parameter is set to true, the instance is enabled for hibernation;
  54960. // otherwise, it is not enabled for hibernation.
  54961. Configured *bool `locationName:"configured" type:"boolean"`
  54962. }
  54963. // String returns the string representation
  54964. func (s LaunchTemplateHibernationOptions) String() string {
  54965. return awsutil.Prettify(s)
  54966. }
  54967. // GoString returns the string representation
  54968. func (s LaunchTemplateHibernationOptions) GoString() string {
  54969. return s.String()
  54970. }
  54971. // SetConfigured sets the Configured field's value.
  54972. func (s *LaunchTemplateHibernationOptions) SetConfigured(v bool) *LaunchTemplateHibernationOptions {
  54973. s.Configured = &v
  54974. return s
  54975. }
  54976. // Indicates whether the instance is configured for hibernation. This parameter
  54977. // is valid only if the instance meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites).
  54978. // Hibernation is currently supported only for Amazon Linux.
  54979. type LaunchTemplateHibernationOptionsRequest struct {
  54980. _ struct{} `type:"structure"`
  54981. // If you set this parameter to true, the instance is enabled for hibernation.
  54982. //
  54983. // Default: false
  54984. Configured *bool `type:"boolean"`
  54985. }
  54986. // String returns the string representation
  54987. func (s LaunchTemplateHibernationOptionsRequest) String() string {
  54988. return awsutil.Prettify(s)
  54989. }
  54990. // GoString returns the string representation
  54991. func (s LaunchTemplateHibernationOptionsRequest) GoString() string {
  54992. return s.String()
  54993. }
  54994. // SetConfigured sets the Configured field's value.
  54995. func (s *LaunchTemplateHibernationOptionsRequest) SetConfigured(v bool) *LaunchTemplateHibernationOptionsRequest {
  54996. s.Configured = &v
  54997. return s
  54998. }
  54999. // Describes an IAM instance profile.
  55000. type LaunchTemplateIamInstanceProfileSpecification struct {
  55001. _ struct{} `type:"structure"`
  55002. // The Amazon Resource Name (ARN) of the instance profile.
  55003. Arn *string `locationName:"arn" type:"string"`
  55004. // The name of the instance profile.
  55005. Name *string `locationName:"name" type:"string"`
  55006. }
  55007. // String returns the string representation
  55008. func (s LaunchTemplateIamInstanceProfileSpecification) String() string {
  55009. return awsutil.Prettify(s)
  55010. }
  55011. // GoString returns the string representation
  55012. func (s LaunchTemplateIamInstanceProfileSpecification) GoString() string {
  55013. return s.String()
  55014. }
  55015. // SetArn sets the Arn field's value.
  55016. func (s *LaunchTemplateIamInstanceProfileSpecification) SetArn(v string) *LaunchTemplateIamInstanceProfileSpecification {
  55017. s.Arn = &v
  55018. return s
  55019. }
  55020. // SetName sets the Name field's value.
  55021. func (s *LaunchTemplateIamInstanceProfileSpecification) SetName(v string) *LaunchTemplateIamInstanceProfileSpecification {
  55022. s.Name = &v
  55023. return s
  55024. }
  55025. // An IAM instance profile.
  55026. type LaunchTemplateIamInstanceProfileSpecificationRequest struct {
  55027. _ struct{} `type:"structure"`
  55028. // The Amazon Resource Name (ARN) of the instance profile.
  55029. Arn *string `type:"string"`
  55030. // The name of the instance profile.
  55031. Name *string `type:"string"`
  55032. }
  55033. // String returns the string representation
  55034. func (s LaunchTemplateIamInstanceProfileSpecificationRequest) String() string {
  55035. return awsutil.Prettify(s)
  55036. }
  55037. // GoString returns the string representation
  55038. func (s LaunchTemplateIamInstanceProfileSpecificationRequest) GoString() string {
  55039. return s.String()
  55040. }
  55041. // SetArn sets the Arn field's value.
  55042. func (s *LaunchTemplateIamInstanceProfileSpecificationRequest) SetArn(v string) *LaunchTemplateIamInstanceProfileSpecificationRequest {
  55043. s.Arn = &v
  55044. return s
  55045. }
  55046. // SetName sets the Name field's value.
  55047. func (s *LaunchTemplateIamInstanceProfileSpecificationRequest) SetName(v string) *LaunchTemplateIamInstanceProfileSpecificationRequest {
  55048. s.Name = &v
  55049. return s
  55050. }
  55051. // The market (purchasing) option for the instances.
  55052. type LaunchTemplateInstanceMarketOptions struct {
  55053. _ struct{} `type:"structure"`
  55054. // The market type.
  55055. MarketType *string `locationName:"marketType" type:"string" enum:"MarketType"`
  55056. // The options for Spot Instances.
  55057. SpotOptions *LaunchTemplateSpotMarketOptions `locationName:"spotOptions" type:"structure"`
  55058. }
  55059. // String returns the string representation
  55060. func (s LaunchTemplateInstanceMarketOptions) String() string {
  55061. return awsutil.Prettify(s)
  55062. }
  55063. // GoString returns the string representation
  55064. func (s LaunchTemplateInstanceMarketOptions) GoString() string {
  55065. return s.String()
  55066. }
  55067. // SetMarketType sets the MarketType field's value.
  55068. func (s *LaunchTemplateInstanceMarketOptions) SetMarketType(v string) *LaunchTemplateInstanceMarketOptions {
  55069. s.MarketType = &v
  55070. return s
  55071. }
  55072. // SetSpotOptions sets the SpotOptions field's value.
  55073. func (s *LaunchTemplateInstanceMarketOptions) SetSpotOptions(v *LaunchTemplateSpotMarketOptions) *LaunchTemplateInstanceMarketOptions {
  55074. s.SpotOptions = v
  55075. return s
  55076. }
  55077. // The market (purchasing) option for the instances.
  55078. type LaunchTemplateInstanceMarketOptionsRequest struct {
  55079. _ struct{} `type:"structure"`
  55080. // The market type.
  55081. MarketType *string `type:"string" enum:"MarketType"`
  55082. // The options for Spot Instances.
  55083. SpotOptions *LaunchTemplateSpotMarketOptionsRequest `type:"structure"`
  55084. }
  55085. // String returns the string representation
  55086. func (s LaunchTemplateInstanceMarketOptionsRequest) String() string {
  55087. return awsutil.Prettify(s)
  55088. }
  55089. // GoString returns the string representation
  55090. func (s LaunchTemplateInstanceMarketOptionsRequest) GoString() string {
  55091. return s.String()
  55092. }
  55093. // SetMarketType sets the MarketType field's value.
  55094. func (s *LaunchTemplateInstanceMarketOptionsRequest) SetMarketType(v string) *LaunchTemplateInstanceMarketOptionsRequest {
  55095. s.MarketType = &v
  55096. return s
  55097. }
  55098. // SetSpotOptions sets the SpotOptions field's value.
  55099. func (s *LaunchTemplateInstanceMarketOptionsRequest) SetSpotOptions(v *LaunchTemplateSpotMarketOptionsRequest) *LaunchTemplateInstanceMarketOptionsRequest {
  55100. s.SpotOptions = v
  55101. return s
  55102. }
  55103. // Describes a network interface.
  55104. type LaunchTemplateInstanceNetworkInterfaceSpecification struct {
  55105. _ struct{} `type:"structure"`
  55106. // Indicates whether to associate a public IPv4 address with eth0 for a new
  55107. // network interface.
  55108. AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`
  55109. // Indicates whether the network interface is deleted when the instance is terminated.
  55110. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  55111. // A description for the network interface.
  55112. Description *string `locationName:"description" type:"string"`
  55113. // The device index for the network interface attachment.
  55114. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  55115. // The IDs of one or more security groups.
  55116. Groups []*string `locationName:"groupSet" locationNameList:"groupId" type:"list"`
  55117. // The number of IPv6 addresses for the network interface.
  55118. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  55119. // The IPv6 addresses for the network interface.
  55120. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  55121. // The ID of the network interface.
  55122. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  55123. // The primary private IPv4 address of the network interface.
  55124. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  55125. // One or more private IPv4 addresses.
  55126. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  55127. // The number of secondary private IPv4 addresses for the network interface.
  55128. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  55129. // The ID of the subnet for the network interface.
  55130. SubnetId *string `locationName:"subnetId" type:"string"`
  55131. }
  55132. // String returns the string representation
  55133. func (s LaunchTemplateInstanceNetworkInterfaceSpecification) String() string {
  55134. return awsutil.Prettify(s)
  55135. }
  55136. // GoString returns the string representation
  55137. func (s LaunchTemplateInstanceNetworkInterfaceSpecification) GoString() string {
  55138. return s.String()
  55139. }
  55140. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  55141. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetAssociatePublicIpAddress(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55142. s.AssociatePublicIpAddress = &v
  55143. return s
  55144. }
  55145. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  55146. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDeleteOnTermination(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55147. s.DeleteOnTermination = &v
  55148. return s
  55149. }
  55150. // SetDescription sets the Description field's value.
  55151. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDescription(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55152. s.Description = &v
  55153. return s
  55154. }
  55155. // SetDeviceIndex sets the DeviceIndex field's value.
  55156. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDeviceIndex(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55157. s.DeviceIndex = &v
  55158. return s
  55159. }
  55160. // SetGroups sets the Groups field's value.
  55161. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetGroups(v []*string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55162. s.Groups = v
  55163. return s
  55164. }
  55165. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  55166. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetIpv6AddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55167. s.Ipv6AddressCount = &v
  55168. return s
  55169. }
  55170. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  55171. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetIpv6Addresses(v []*InstanceIpv6Address) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55172. s.Ipv6Addresses = v
  55173. return s
  55174. }
  55175. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  55176. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetNetworkInterfaceId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55177. s.NetworkInterfaceId = &v
  55178. return s
  55179. }
  55180. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  55181. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetPrivateIpAddress(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55182. s.PrivateIpAddress = &v
  55183. return s
  55184. }
  55185. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  55186. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55187. s.PrivateIpAddresses = v
  55188. return s
  55189. }
  55190. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  55191. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetSecondaryPrivateIpAddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55192. s.SecondaryPrivateIpAddressCount = &v
  55193. return s
  55194. }
  55195. // SetSubnetId sets the SubnetId field's value.
  55196. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetSubnetId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  55197. s.SubnetId = &v
  55198. return s
  55199. }
  55200. // The parameters for a network interface.
  55201. type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct {
  55202. _ struct{} `type:"structure"`
  55203. // Associates a public IPv4 address with eth0 for a new network interface.
  55204. AssociatePublicIpAddress *bool `type:"boolean"`
  55205. // Indicates whether the network interface is deleted when the instance is terminated.
  55206. DeleteOnTermination *bool `type:"boolean"`
  55207. // A description for the network interface.
  55208. Description *string `type:"string"`
  55209. // The device index for the network interface attachment.
  55210. DeviceIndex *int64 `type:"integer"`
  55211. // The IDs of one or more security groups.
  55212. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  55213. // The number of IPv6 addresses to assign to a network interface. Amazon EC2
  55214. // automatically selects the IPv6 addresses from the subnet range. You can't
  55215. // use this option if specifying specific IPv6 addresses.
  55216. Ipv6AddressCount *int64 `type:"integer"`
  55217. // One or more specific IPv6 addresses from the IPv6 CIDR block range of your
  55218. // subnet. You can't use this option if you're specifying a number of IPv6 addresses.
  55219. Ipv6Addresses []*InstanceIpv6AddressRequest `locationNameList:"InstanceIpv6Address" type:"list"`
  55220. // The ID of the network interface.
  55221. NetworkInterfaceId *string `type:"string"`
  55222. // The primary private IPv4 address of the network interface.
  55223. PrivateIpAddress *string `type:"string"`
  55224. // One or more private IPv4 addresses.
  55225. PrivateIpAddresses []*PrivateIpAddressSpecification `locationNameList:"item" type:"list"`
  55226. // The number of secondary private IPv4 addresses to assign to a network interface.
  55227. SecondaryPrivateIpAddressCount *int64 `type:"integer"`
  55228. // The ID of the subnet for the network interface.
  55229. SubnetId *string `type:"string"`
  55230. }
  55231. // String returns the string representation
  55232. func (s LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) String() string {
  55233. return awsutil.Prettify(s)
  55234. }
  55235. // GoString returns the string representation
  55236. func (s LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) GoString() string {
  55237. return s.String()
  55238. }
  55239. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  55240. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetAssociatePublicIpAddress(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55241. s.AssociatePublicIpAddress = &v
  55242. return s
  55243. }
  55244. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  55245. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDeleteOnTermination(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55246. s.DeleteOnTermination = &v
  55247. return s
  55248. }
  55249. // SetDescription sets the Description field's value.
  55250. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDescription(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55251. s.Description = &v
  55252. return s
  55253. }
  55254. // SetDeviceIndex sets the DeviceIndex field's value.
  55255. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDeviceIndex(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55256. s.DeviceIndex = &v
  55257. return s
  55258. }
  55259. // SetGroups sets the Groups field's value.
  55260. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetGroups(v []*string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55261. s.Groups = v
  55262. return s
  55263. }
  55264. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  55265. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetIpv6AddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55266. s.Ipv6AddressCount = &v
  55267. return s
  55268. }
  55269. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  55270. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetIpv6Addresses(v []*InstanceIpv6AddressRequest) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55271. s.Ipv6Addresses = v
  55272. return s
  55273. }
  55274. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  55275. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetNetworkInterfaceId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55276. s.NetworkInterfaceId = &v
  55277. return s
  55278. }
  55279. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  55280. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetPrivateIpAddress(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55281. s.PrivateIpAddress = &v
  55282. return s
  55283. }
  55284. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  55285. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55286. s.PrivateIpAddresses = v
  55287. return s
  55288. }
  55289. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  55290. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetSecondaryPrivateIpAddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55291. s.SecondaryPrivateIpAddressCount = &v
  55292. return s
  55293. }
  55294. // SetSubnetId sets the SubnetId field's value.
  55295. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetSubnetId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  55296. s.SubnetId = &v
  55297. return s
  55298. }
  55299. // Describes a license configuration.
  55300. type LaunchTemplateLicenseConfiguration struct {
  55301. _ struct{} `type:"structure"`
  55302. // The Amazon Resource Name (ARN) of the license configuration.
  55303. LicenseConfigurationArn *string `locationName:"licenseConfigurationArn" type:"string"`
  55304. }
  55305. // String returns the string representation
  55306. func (s LaunchTemplateLicenseConfiguration) String() string {
  55307. return awsutil.Prettify(s)
  55308. }
  55309. // GoString returns the string representation
  55310. func (s LaunchTemplateLicenseConfiguration) GoString() string {
  55311. return s.String()
  55312. }
  55313. // SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.
  55314. func (s *LaunchTemplateLicenseConfiguration) SetLicenseConfigurationArn(v string) *LaunchTemplateLicenseConfiguration {
  55315. s.LicenseConfigurationArn = &v
  55316. return s
  55317. }
  55318. // Describes a license configuration.
  55319. type LaunchTemplateLicenseConfigurationRequest struct {
  55320. _ struct{} `type:"structure"`
  55321. // The Amazon Resource Name (ARN) of the license configuration.
  55322. LicenseConfigurationArn *string `type:"string"`
  55323. }
  55324. // String returns the string representation
  55325. func (s LaunchTemplateLicenseConfigurationRequest) String() string {
  55326. return awsutil.Prettify(s)
  55327. }
  55328. // GoString returns the string representation
  55329. func (s LaunchTemplateLicenseConfigurationRequest) GoString() string {
  55330. return s.String()
  55331. }
  55332. // SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.
  55333. func (s *LaunchTemplateLicenseConfigurationRequest) SetLicenseConfigurationArn(v string) *LaunchTemplateLicenseConfigurationRequest {
  55334. s.LicenseConfigurationArn = &v
  55335. return s
  55336. }
  55337. // Describes overrides for a launch template.
  55338. type LaunchTemplateOverrides struct {
  55339. _ struct{} `type:"structure"`
  55340. // The Availability Zone in which to launch the instances.
  55341. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  55342. // The instance type.
  55343. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  55344. // The priority for the launch template override. If OnDemandAllocationStrategy
  55345. // is set to prioritized, Spot Fleet uses priority to determine which launch
  55346. // template override to use first in fulfilling On-Demand capacity. The highest
  55347. // priority is launched first. Valid values are whole numbers starting at 0.
  55348. // The lower the number, the higher the priority. If no number is set, the launch
  55349. // template override has the lowest priority.
  55350. Priority *float64 `locationName:"priority" type:"double"`
  55351. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  55352. SpotPrice *string `locationName:"spotPrice" type:"string"`
  55353. // The ID of the subnet in which to launch the instances.
  55354. SubnetId *string `locationName:"subnetId" type:"string"`
  55355. // The number of units provided by the specified instance type.
  55356. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
  55357. }
  55358. // String returns the string representation
  55359. func (s LaunchTemplateOverrides) String() string {
  55360. return awsutil.Prettify(s)
  55361. }
  55362. // GoString returns the string representation
  55363. func (s LaunchTemplateOverrides) GoString() string {
  55364. return s.String()
  55365. }
  55366. // SetAvailabilityZone sets the AvailabilityZone field's value.
  55367. func (s *LaunchTemplateOverrides) SetAvailabilityZone(v string) *LaunchTemplateOverrides {
  55368. s.AvailabilityZone = &v
  55369. return s
  55370. }
  55371. // SetInstanceType sets the InstanceType field's value.
  55372. func (s *LaunchTemplateOverrides) SetInstanceType(v string) *LaunchTemplateOverrides {
  55373. s.InstanceType = &v
  55374. return s
  55375. }
  55376. // SetPriority sets the Priority field's value.
  55377. func (s *LaunchTemplateOverrides) SetPriority(v float64) *LaunchTemplateOverrides {
  55378. s.Priority = &v
  55379. return s
  55380. }
  55381. // SetSpotPrice sets the SpotPrice field's value.
  55382. func (s *LaunchTemplateOverrides) SetSpotPrice(v string) *LaunchTemplateOverrides {
  55383. s.SpotPrice = &v
  55384. return s
  55385. }
  55386. // SetSubnetId sets the SubnetId field's value.
  55387. func (s *LaunchTemplateOverrides) SetSubnetId(v string) *LaunchTemplateOverrides {
  55388. s.SubnetId = &v
  55389. return s
  55390. }
  55391. // SetWeightedCapacity sets the WeightedCapacity field's value.
  55392. func (s *LaunchTemplateOverrides) SetWeightedCapacity(v float64) *LaunchTemplateOverrides {
  55393. s.WeightedCapacity = &v
  55394. return s
  55395. }
  55396. // Describes the placement of an instance.
  55397. type LaunchTemplatePlacement struct {
  55398. _ struct{} `type:"structure"`
  55399. // The affinity setting for the instance on the Dedicated Host.
  55400. Affinity *string `locationName:"affinity" type:"string"`
  55401. // The Availability Zone of the instance.
  55402. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  55403. // The name of the placement group for the instance.
  55404. GroupName *string `locationName:"groupName" type:"string"`
  55405. // The ID of the Dedicated Host for the instance.
  55406. HostId *string `locationName:"hostId" type:"string"`
  55407. // Reserved for future use.
  55408. SpreadDomain *string `locationName:"spreadDomain" type:"string"`
  55409. // The tenancy of the instance (if the instance is running in a VPC). An instance
  55410. // with a tenancy of dedicated runs on single-tenant hardware.
  55411. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  55412. }
  55413. // String returns the string representation
  55414. func (s LaunchTemplatePlacement) String() string {
  55415. return awsutil.Prettify(s)
  55416. }
  55417. // GoString returns the string representation
  55418. func (s LaunchTemplatePlacement) GoString() string {
  55419. return s.String()
  55420. }
  55421. // SetAffinity sets the Affinity field's value.
  55422. func (s *LaunchTemplatePlacement) SetAffinity(v string) *LaunchTemplatePlacement {
  55423. s.Affinity = &v
  55424. return s
  55425. }
  55426. // SetAvailabilityZone sets the AvailabilityZone field's value.
  55427. func (s *LaunchTemplatePlacement) SetAvailabilityZone(v string) *LaunchTemplatePlacement {
  55428. s.AvailabilityZone = &v
  55429. return s
  55430. }
  55431. // SetGroupName sets the GroupName field's value.
  55432. func (s *LaunchTemplatePlacement) SetGroupName(v string) *LaunchTemplatePlacement {
  55433. s.GroupName = &v
  55434. return s
  55435. }
  55436. // SetHostId sets the HostId field's value.
  55437. func (s *LaunchTemplatePlacement) SetHostId(v string) *LaunchTemplatePlacement {
  55438. s.HostId = &v
  55439. return s
  55440. }
  55441. // SetSpreadDomain sets the SpreadDomain field's value.
  55442. func (s *LaunchTemplatePlacement) SetSpreadDomain(v string) *LaunchTemplatePlacement {
  55443. s.SpreadDomain = &v
  55444. return s
  55445. }
  55446. // SetTenancy sets the Tenancy field's value.
  55447. func (s *LaunchTemplatePlacement) SetTenancy(v string) *LaunchTemplatePlacement {
  55448. s.Tenancy = &v
  55449. return s
  55450. }
  55451. // Describes the placement of an instance.
  55452. type LaunchTemplatePlacementRequest struct {
  55453. _ struct{} `type:"structure"`
  55454. // The affinity setting for an instance on a Dedicated Host.
  55455. Affinity *string `type:"string"`
  55456. // The Availability Zone for the instance.
  55457. AvailabilityZone *string `type:"string"`
  55458. // The name of the placement group for the instance.
  55459. GroupName *string `type:"string"`
  55460. // The ID of the Dedicated Host for the instance.
  55461. HostId *string `type:"string"`
  55462. // Reserved for future use.
  55463. SpreadDomain *string `type:"string"`
  55464. // The tenancy of the instance (if the instance is running in a VPC). An instance
  55465. // with a tenancy of dedicated runs on single-tenant hardware.
  55466. Tenancy *string `type:"string" enum:"Tenancy"`
  55467. }
  55468. // String returns the string representation
  55469. func (s LaunchTemplatePlacementRequest) String() string {
  55470. return awsutil.Prettify(s)
  55471. }
  55472. // GoString returns the string representation
  55473. func (s LaunchTemplatePlacementRequest) GoString() string {
  55474. return s.String()
  55475. }
  55476. // SetAffinity sets the Affinity field's value.
  55477. func (s *LaunchTemplatePlacementRequest) SetAffinity(v string) *LaunchTemplatePlacementRequest {
  55478. s.Affinity = &v
  55479. return s
  55480. }
  55481. // SetAvailabilityZone sets the AvailabilityZone field's value.
  55482. func (s *LaunchTemplatePlacementRequest) SetAvailabilityZone(v string) *LaunchTemplatePlacementRequest {
  55483. s.AvailabilityZone = &v
  55484. return s
  55485. }
  55486. // SetGroupName sets the GroupName field's value.
  55487. func (s *LaunchTemplatePlacementRequest) SetGroupName(v string) *LaunchTemplatePlacementRequest {
  55488. s.GroupName = &v
  55489. return s
  55490. }
  55491. // SetHostId sets the HostId field's value.
  55492. func (s *LaunchTemplatePlacementRequest) SetHostId(v string) *LaunchTemplatePlacementRequest {
  55493. s.HostId = &v
  55494. return s
  55495. }
  55496. // SetSpreadDomain sets the SpreadDomain field's value.
  55497. func (s *LaunchTemplatePlacementRequest) SetSpreadDomain(v string) *LaunchTemplatePlacementRequest {
  55498. s.SpreadDomain = &v
  55499. return s
  55500. }
  55501. // SetTenancy sets the Tenancy field's value.
  55502. func (s *LaunchTemplatePlacementRequest) SetTenancy(v string) *LaunchTemplatePlacementRequest {
  55503. s.Tenancy = &v
  55504. return s
  55505. }
  55506. // The launch template to use. You must specify either the launch template ID
  55507. // or launch template name in the request, but not both.
  55508. type LaunchTemplateSpecification struct {
  55509. _ struct{} `type:"structure"`
  55510. // The ID of the launch template.
  55511. LaunchTemplateId *string `type:"string"`
  55512. // The name of the launch template.
  55513. LaunchTemplateName *string `type:"string"`
  55514. // The version number of the launch template.
  55515. //
  55516. // Default: The default version for the launch template.
  55517. Version *string `type:"string"`
  55518. }
  55519. // String returns the string representation
  55520. func (s LaunchTemplateSpecification) String() string {
  55521. return awsutil.Prettify(s)
  55522. }
  55523. // GoString returns the string representation
  55524. func (s LaunchTemplateSpecification) GoString() string {
  55525. return s.String()
  55526. }
  55527. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  55528. func (s *LaunchTemplateSpecification) SetLaunchTemplateId(v string) *LaunchTemplateSpecification {
  55529. s.LaunchTemplateId = &v
  55530. return s
  55531. }
  55532. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  55533. func (s *LaunchTemplateSpecification) SetLaunchTemplateName(v string) *LaunchTemplateSpecification {
  55534. s.LaunchTemplateName = &v
  55535. return s
  55536. }
  55537. // SetVersion sets the Version field's value.
  55538. func (s *LaunchTemplateSpecification) SetVersion(v string) *LaunchTemplateSpecification {
  55539. s.Version = &v
  55540. return s
  55541. }
  55542. // The options for Spot Instances.
  55543. type LaunchTemplateSpotMarketOptions struct {
  55544. _ struct{} `type:"structure"`
  55545. // The required duration for the Spot Instances (also known as Spot blocks),
  55546. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  55547. // or 360).
  55548. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  55549. // The behavior when a Spot Instance is interrupted.
  55550. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"`
  55551. // The maximum hourly price you're willing to pay for the Spot Instances.
  55552. MaxPrice *string `locationName:"maxPrice" type:"string"`
  55553. // The Spot Instance request type.
  55554. SpotInstanceType *string `locationName:"spotInstanceType" type:"string" enum:"SpotInstanceType"`
  55555. // The end date of the request. For a one-time request, the request remains
  55556. // active until all instances launch, the request is canceled, or this date
  55557. // is reached. If the request is persistent, it remains active until it is canceled
  55558. // or this date and time is reached.
  55559. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
  55560. }
  55561. // String returns the string representation
  55562. func (s LaunchTemplateSpotMarketOptions) String() string {
  55563. return awsutil.Prettify(s)
  55564. }
  55565. // GoString returns the string representation
  55566. func (s LaunchTemplateSpotMarketOptions) GoString() string {
  55567. return s.String()
  55568. }
  55569. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  55570. func (s *LaunchTemplateSpotMarketOptions) SetBlockDurationMinutes(v int64) *LaunchTemplateSpotMarketOptions {
  55571. s.BlockDurationMinutes = &v
  55572. return s
  55573. }
  55574. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  55575. func (s *LaunchTemplateSpotMarketOptions) SetInstanceInterruptionBehavior(v string) *LaunchTemplateSpotMarketOptions {
  55576. s.InstanceInterruptionBehavior = &v
  55577. return s
  55578. }
  55579. // SetMaxPrice sets the MaxPrice field's value.
  55580. func (s *LaunchTemplateSpotMarketOptions) SetMaxPrice(v string) *LaunchTemplateSpotMarketOptions {
  55581. s.MaxPrice = &v
  55582. return s
  55583. }
  55584. // SetSpotInstanceType sets the SpotInstanceType field's value.
  55585. func (s *LaunchTemplateSpotMarketOptions) SetSpotInstanceType(v string) *LaunchTemplateSpotMarketOptions {
  55586. s.SpotInstanceType = &v
  55587. return s
  55588. }
  55589. // SetValidUntil sets the ValidUntil field's value.
  55590. func (s *LaunchTemplateSpotMarketOptions) SetValidUntil(v time.Time) *LaunchTemplateSpotMarketOptions {
  55591. s.ValidUntil = &v
  55592. return s
  55593. }
  55594. // The options for Spot Instances.
  55595. type LaunchTemplateSpotMarketOptionsRequest struct {
  55596. _ struct{} `type:"structure"`
  55597. // The required duration for the Spot Instances (also known as Spot blocks),
  55598. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  55599. // or 360).
  55600. BlockDurationMinutes *int64 `type:"integer"`
  55601. // The behavior when a Spot Instance is interrupted. The default is terminate.
  55602. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"`
  55603. // The maximum hourly price you're willing to pay for the Spot Instances.
  55604. MaxPrice *string `type:"string"`
  55605. // The Spot Instance request type.
  55606. SpotInstanceType *string `type:"string" enum:"SpotInstanceType"`
  55607. // The end date of the request. For a one-time request, the request remains
  55608. // active until all instances launch, the request is canceled, or this date
  55609. // is reached. If the request is persistent, it remains active until it is canceled
  55610. // or this date and time is reached. The default end date is 7 days from the
  55611. // current date.
  55612. ValidUntil *time.Time `type:"timestamp"`
  55613. }
  55614. // String returns the string representation
  55615. func (s LaunchTemplateSpotMarketOptionsRequest) String() string {
  55616. return awsutil.Prettify(s)
  55617. }
  55618. // GoString returns the string representation
  55619. func (s LaunchTemplateSpotMarketOptionsRequest) GoString() string {
  55620. return s.String()
  55621. }
  55622. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  55623. func (s *LaunchTemplateSpotMarketOptionsRequest) SetBlockDurationMinutes(v int64) *LaunchTemplateSpotMarketOptionsRequest {
  55624. s.BlockDurationMinutes = &v
  55625. return s
  55626. }
  55627. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  55628. func (s *LaunchTemplateSpotMarketOptionsRequest) SetInstanceInterruptionBehavior(v string) *LaunchTemplateSpotMarketOptionsRequest {
  55629. s.InstanceInterruptionBehavior = &v
  55630. return s
  55631. }
  55632. // SetMaxPrice sets the MaxPrice field's value.
  55633. func (s *LaunchTemplateSpotMarketOptionsRequest) SetMaxPrice(v string) *LaunchTemplateSpotMarketOptionsRequest {
  55634. s.MaxPrice = &v
  55635. return s
  55636. }
  55637. // SetSpotInstanceType sets the SpotInstanceType field's value.
  55638. func (s *LaunchTemplateSpotMarketOptionsRequest) SetSpotInstanceType(v string) *LaunchTemplateSpotMarketOptionsRequest {
  55639. s.SpotInstanceType = &v
  55640. return s
  55641. }
  55642. // SetValidUntil sets the ValidUntil field's value.
  55643. func (s *LaunchTemplateSpotMarketOptionsRequest) SetValidUntil(v time.Time) *LaunchTemplateSpotMarketOptionsRequest {
  55644. s.ValidUntil = &v
  55645. return s
  55646. }
  55647. // The tag specification for the launch template.
  55648. type LaunchTemplateTagSpecification struct {
  55649. _ struct{} `type:"structure"`
  55650. // The type of resource.
  55651. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  55652. // The tags for the resource.
  55653. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  55654. }
  55655. // String returns the string representation
  55656. func (s LaunchTemplateTagSpecification) String() string {
  55657. return awsutil.Prettify(s)
  55658. }
  55659. // GoString returns the string representation
  55660. func (s LaunchTemplateTagSpecification) GoString() string {
  55661. return s.String()
  55662. }
  55663. // SetResourceType sets the ResourceType field's value.
  55664. func (s *LaunchTemplateTagSpecification) SetResourceType(v string) *LaunchTemplateTagSpecification {
  55665. s.ResourceType = &v
  55666. return s
  55667. }
  55668. // SetTags sets the Tags field's value.
  55669. func (s *LaunchTemplateTagSpecification) SetTags(v []*Tag) *LaunchTemplateTagSpecification {
  55670. s.Tags = v
  55671. return s
  55672. }
  55673. // The tags specification for the launch template.
  55674. type LaunchTemplateTagSpecificationRequest struct {
  55675. _ struct{} `type:"structure"`
  55676. // The type of resource to tag. Currently, the resource types that support tagging
  55677. // on creation are instance and volume. To tag a resource after it has been
  55678. // created, see CreateTags.
  55679. ResourceType *string `type:"string" enum:"ResourceType"`
  55680. // The tags to apply to the resource.
  55681. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list"`
  55682. }
  55683. // String returns the string representation
  55684. func (s LaunchTemplateTagSpecificationRequest) String() string {
  55685. return awsutil.Prettify(s)
  55686. }
  55687. // GoString returns the string representation
  55688. func (s LaunchTemplateTagSpecificationRequest) GoString() string {
  55689. return s.String()
  55690. }
  55691. // SetResourceType sets the ResourceType field's value.
  55692. func (s *LaunchTemplateTagSpecificationRequest) SetResourceType(v string) *LaunchTemplateTagSpecificationRequest {
  55693. s.ResourceType = &v
  55694. return s
  55695. }
  55696. // SetTags sets the Tags field's value.
  55697. func (s *LaunchTemplateTagSpecificationRequest) SetTags(v []*Tag) *LaunchTemplateTagSpecificationRequest {
  55698. s.Tags = v
  55699. return s
  55700. }
  55701. // Describes a launch template version.
  55702. type LaunchTemplateVersion struct {
  55703. _ struct{} `type:"structure"`
  55704. // The time the version was created.
  55705. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  55706. // The principal that created the version.
  55707. CreatedBy *string `locationName:"createdBy" type:"string"`
  55708. // Indicates whether the version is the default version.
  55709. DefaultVersion *bool `locationName:"defaultVersion" type:"boolean"`
  55710. // Information about the launch template.
  55711. LaunchTemplateData *ResponseLaunchTemplateData `locationName:"launchTemplateData" type:"structure"`
  55712. // The ID of the launch template.
  55713. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  55714. // The name of the launch template.
  55715. LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`
  55716. // The description for the version.
  55717. VersionDescription *string `locationName:"versionDescription" type:"string"`
  55718. // The version number.
  55719. VersionNumber *int64 `locationName:"versionNumber" type:"long"`
  55720. }
  55721. // String returns the string representation
  55722. func (s LaunchTemplateVersion) String() string {
  55723. return awsutil.Prettify(s)
  55724. }
  55725. // GoString returns the string representation
  55726. func (s LaunchTemplateVersion) GoString() string {
  55727. return s.String()
  55728. }
  55729. // SetCreateTime sets the CreateTime field's value.
  55730. func (s *LaunchTemplateVersion) SetCreateTime(v time.Time) *LaunchTemplateVersion {
  55731. s.CreateTime = &v
  55732. return s
  55733. }
  55734. // SetCreatedBy sets the CreatedBy field's value.
  55735. func (s *LaunchTemplateVersion) SetCreatedBy(v string) *LaunchTemplateVersion {
  55736. s.CreatedBy = &v
  55737. return s
  55738. }
  55739. // SetDefaultVersion sets the DefaultVersion field's value.
  55740. func (s *LaunchTemplateVersion) SetDefaultVersion(v bool) *LaunchTemplateVersion {
  55741. s.DefaultVersion = &v
  55742. return s
  55743. }
  55744. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  55745. func (s *LaunchTemplateVersion) SetLaunchTemplateData(v *ResponseLaunchTemplateData) *LaunchTemplateVersion {
  55746. s.LaunchTemplateData = v
  55747. return s
  55748. }
  55749. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  55750. func (s *LaunchTemplateVersion) SetLaunchTemplateId(v string) *LaunchTemplateVersion {
  55751. s.LaunchTemplateId = &v
  55752. return s
  55753. }
  55754. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  55755. func (s *LaunchTemplateVersion) SetLaunchTemplateName(v string) *LaunchTemplateVersion {
  55756. s.LaunchTemplateName = &v
  55757. return s
  55758. }
  55759. // SetVersionDescription sets the VersionDescription field's value.
  55760. func (s *LaunchTemplateVersion) SetVersionDescription(v string) *LaunchTemplateVersion {
  55761. s.VersionDescription = &v
  55762. return s
  55763. }
  55764. // SetVersionNumber sets the VersionNumber field's value.
  55765. func (s *LaunchTemplateVersion) SetVersionNumber(v int64) *LaunchTemplateVersion {
  55766. s.VersionNumber = &v
  55767. return s
  55768. }
  55769. // Describes the monitoring for the instance.
  55770. type LaunchTemplatesMonitoring struct {
  55771. _ struct{} `type:"structure"`
  55772. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  55773. // is enabled.
  55774. Enabled *bool `locationName:"enabled" type:"boolean"`
  55775. }
  55776. // String returns the string representation
  55777. func (s LaunchTemplatesMonitoring) String() string {
  55778. return awsutil.Prettify(s)
  55779. }
  55780. // GoString returns the string representation
  55781. func (s LaunchTemplatesMonitoring) GoString() string {
  55782. return s.String()
  55783. }
  55784. // SetEnabled sets the Enabled field's value.
  55785. func (s *LaunchTemplatesMonitoring) SetEnabled(v bool) *LaunchTemplatesMonitoring {
  55786. s.Enabled = &v
  55787. return s
  55788. }
  55789. // Describes the monitoring for the instance.
  55790. type LaunchTemplatesMonitoringRequest struct {
  55791. _ struct{} `type:"structure"`
  55792. // Specify true to enable detailed monitoring. Otherwise, basic monitoring is
  55793. // enabled.
  55794. Enabled *bool `type:"boolean"`
  55795. }
  55796. // String returns the string representation
  55797. func (s LaunchTemplatesMonitoringRequest) String() string {
  55798. return awsutil.Prettify(s)
  55799. }
  55800. // GoString returns the string representation
  55801. func (s LaunchTemplatesMonitoringRequest) GoString() string {
  55802. return s.String()
  55803. }
  55804. // SetEnabled sets the Enabled field's value.
  55805. func (s *LaunchTemplatesMonitoringRequest) SetEnabled(v bool) *LaunchTemplatesMonitoringRequest {
  55806. s.Enabled = &v
  55807. return s
  55808. }
  55809. // Describes a license configuration.
  55810. type LicenseConfiguration struct {
  55811. _ struct{} `type:"structure"`
  55812. // The Amazon Resource Name (ARN) of the license configuration.
  55813. LicenseConfigurationArn *string `locationName:"licenseConfigurationArn" type:"string"`
  55814. }
  55815. // String returns the string representation
  55816. func (s LicenseConfiguration) String() string {
  55817. return awsutil.Prettify(s)
  55818. }
  55819. // GoString returns the string representation
  55820. func (s LicenseConfiguration) GoString() string {
  55821. return s.String()
  55822. }
  55823. // SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.
  55824. func (s *LicenseConfiguration) SetLicenseConfigurationArn(v string) *LicenseConfiguration {
  55825. s.LicenseConfigurationArn = &v
  55826. return s
  55827. }
  55828. // Describes a license configuration.
  55829. type LicenseConfigurationRequest struct {
  55830. _ struct{} `type:"structure"`
  55831. // The Amazon Resource Name (ARN) of the license configuration.
  55832. LicenseConfigurationArn *string `type:"string"`
  55833. }
  55834. // String returns the string representation
  55835. func (s LicenseConfigurationRequest) String() string {
  55836. return awsutil.Prettify(s)
  55837. }
  55838. // GoString returns the string representation
  55839. func (s LicenseConfigurationRequest) GoString() string {
  55840. return s.String()
  55841. }
  55842. // SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.
  55843. func (s *LicenseConfigurationRequest) SetLicenseConfigurationArn(v string) *LicenseConfigurationRequest {
  55844. s.LicenseConfigurationArn = &v
  55845. return s
  55846. }
  55847. // Describes the Classic Load Balancers and target groups to attach to a Spot
  55848. // Fleet request.
  55849. type LoadBalancersConfig struct {
  55850. _ struct{} `type:"structure"`
  55851. // The Classic Load Balancers.
  55852. ClassicLoadBalancersConfig *ClassicLoadBalancersConfig `locationName:"classicLoadBalancersConfig" type:"structure"`
  55853. // The target groups.
  55854. TargetGroupsConfig *TargetGroupsConfig `locationName:"targetGroupsConfig" type:"structure"`
  55855. }
  55856. // String returns the string representation
  55857. func (s LoadBalancersConfig) String() string {
  55858. return awsutil.Prettify(s)
  55859. }
  55860. // GoString returns the string representation
  55861. func (s LoadBalancersConfig) GoString() string {
  55862. return s.String()
  55863. }
  55864. // Validate inspects the fields of the type to determine if they are valid.
  55865. func (s *LoadBalancersConfig) Validate() error {
  55866. invalidParams := request.ErrInvalidParams{Context: "LoadBalancersConfig"}
  55867. if s.ClassicLoadBalancersConfig != nil {
  55868. if err := s.ClassicLoadBalancersConfig.Validate(); err != nil {
  55869. invalidParams.AddNested("ClassicLoadBalancersConfig", err.(request.ErrInvalidParams))
  55870. }
  55871. }
  55872. if s.TargetGroupsConfig != nil {
  55873. if err := s.TargetGroupsConfig.Validate(); err != nil {
  55874. invalidParams.AddNested("TargetGroupsConfig", err.(request.ErrInvalidParams))
  55875. }
  55876. }
  55877. if invalidParams.Len() > 0 {
  55878. return invalidParams
  55879. }
  55880. return nil
  55881. }
  55882. // SetClassicLoadBalancersConfig sets the ClassicLoadBalancersConfig field's value.
  55883. func (s *LoadBalancersConfig) SetClassicLoadBalancersConfig(v *ClassicLoadBalancersConfig) *LoadBalancersConfig {
  55884. s.ClassicLoadBalancersConfig = v
  55885. return s
  55886. }
  55887. // SetTargetGroupsConfig sets the TargetGroupsConfig field's value.
  55888. func (s *LoadBalancersConfig) SetTargetGroupsConfig(v *TargetGroupsConfig) *LoadBalancersConfig {
  55889. s.TargetGroupsConfig = v
  55890. return s
  55891. }
  55892. // Describes a load permission.
  55893. type LoadPermission struct {
  55894. _ struct{} `type:"structure"`
  55895. // The name of the group.
  55896. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  55897. // The AWS account ID.
  55898. UserId *string `locationName:"userId" type:"string"`
  55899. }
  55900. // String returns the string representation
  55901. func (s LoadPermission) String() string {
  55902. return awsutil.Prettify(s)
  55903. }
  55904. // GoString returns the string representation
  55905. func (s LoadPermission) GoString() string {
  55906. return s.String()
  55907. }
  55908. // SetGroup sets the Group field's value.
  55909. func (s *LoadPermission) SetGroup(v string) *LoadPermission {
  55910. s.Group = &v
  55911. return s
  55912. }
  55913. // SetUserId sets the UserId field's value.
  55914. func (s *LoadPermission) SetUserId(v string) *LoadPermission {
  55915. s.UserId = &v
  55916. return s
  55917. }
  55918. // Describes modifications to the load permissions of an Amazon FPGA image (AFI).
  55919. type LoadPermissionModifications struct {
  55920. _ struct{} `type:"structure"`
  55921. // The load permissions to add.
  55922. Add []*LoadPermissionRequest `locationNameList:"item" type:"list"`
  55923. // The load permissions to remove.
  55924. Remove []*LoadPermissionRequest `locationNameList:"item" type:"list"`
  55925. }
  55926. // String returns the string representation
  55927. func (s LoadPermissionModifications) String() string {
  55928. return awsutil.Prettify(s)
  55929. }
  55930. // GoString returns the string representation
  55931. func (s LoadPermissionModifications) GoString() string {
  55932. return s.String()
  55933. }
  55934. // SetAdd sets the Add field's value.
  55935. func (s *LoadPermissionModifications) SetAdd(v []*LoadPermissionRequest) *LoadPermissionModifications {
  55936. s.Add = v
  55937. return s
  55938. }
  55939. // SetRemove sets the Remove field's value.
  55940. func (s *LoadPermissionModifications) SetRemove(v []*LoadPermissionRequest) *LoadPermissionModifications {
  55941. s.Remove = v
  55942. return s
  55943. }
  55944. // Describes a load permission.
  55945. type LoadPermissionRequest struct {
  55946. _ struct{} `type:"structure"`
  55947. // The name of the group.
  55948. Group *string `type:"string" enum:"PermissionGroup"`
  55949. // The AWS account ID.
  55950. UserId *string `type:"string"`
  55951. }
  55952. // String returns the string representation
  55953. func (s LoadPermissionRequest) String() string {
  55954. return awsutil.Prettify(s)
  55955. }
  55956. // GoString returns the string representation
  55957. func (s LoadPermissionRequest) GoString() string {
  55958. return s.String()
  55959. }
  55960. // SetGroup sets the Group field's value.
  55961. func (s *LoadPermissionRequest) SetGroup(v string) *LoadPermissionRequest {
  55962. s.Group = &v
  55963. return s
  55964. }
  55965. // SetUserId sets the UserId field's value.
  55966. func (s *LoadPermissionRequest) SetUserId(v string) *LoadPermissionRequest {
  55967. s.UserId = &v
  55968. return s
  55969. }
  55970. type ModifyCapacityReservationInput struct {
  55971. _ struct{} `type:"structure"`
  55972. // The ID of the Capacity Reservation.
  55973. //
  55974. // CapacityReservationId is a required field
  55975. CapacityReservationId *string `type:"string" required:"true"`
  55976. // Checks whether you have the required permissions for the action, without
  55977. // actually making the request, and provides an error response. If you have
  55978. // the required permissions, the error response is DryRunOperation. Otherwise,
  55979. // it is UnauthorizedOperation.
  55980. DryRun *bool `type:"boolean"`
  55981. // The date and time at which the Capacity Reservation expires. When a Capacity
  55982. // Reservation expires, the reserved capacity is released and you can no longer
  55983. // launch instances into it. The Capacity Reservation's state changes to expired
  55984. // when it reaches its end date and time.
  55985. //
  55986. // The Capacity Reservation is cancelled within an hour from the specified time.
  55987. // For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation
  55988. // is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
  55989. //
  55990. // You must provide an EndDate value if EndDateType is limited. Omit EndDate
  55991. // if EndDateType is unlimited.
  55992. EndDate *time.Time `type:"timestamp"`
  55993. // Indicates the way in which the Capacity Reservation ends. A Capacity Reservation
  55994. // can have one of the following end types:
  55995. //
  55996. // * unlimited - The Capacity Reservation remains active until you explicitly
  55997. // cancel it. Do not provide an EndDate value if EndDateType is unlimited.
  55998. //
  55999. // * limited - The Capacity Reservation expires automatically at a specified
  56000. // date and time. You must provide an EndDate value if EndDateType is limited.
  56001. EndDateType *string `type:"string" enum:"EndDateType"`
  56002. // The number of instances for which to reserve capacity.
  56003. InstanceCount *int64 `type:"integer"`
  56004. }
  56005. // String returns the string representation
  56006. func (s ModifyCapacityReservationInput) String() string {
  56007. return awsutil.Prettify(s)
  56008. }
  56009. // GoString returns the string representation
  56010. func (s ModifyCapacityReservationInput) GoString() string {
  56011. return s.String()
  56012. }
  56013. // Validate inspects the fields of the type to determine if they are valid.
  56014. func (s *ModifyCapacityReservationInput) Validate() error {
  56015. invalidParams := request.ErrInvalidParams{Context: "ModifyCapacityReservationInput"}
  56016. if s.CapacityReservationId == nil {
  56017. invalidParams.Add(request.NewErrParamRequired("CapacityReservationId"))
  56018. }
  56019. if invalidParams.Len() > 0 {
  56020. return invalidParams
  56021. }
  56022. return nil
  56023. }
  56024. // SetCapacityReservationId sets the CapacityReservationId field's value.
  56025. func (s *ModifyCapacityReservationInput) SetCapacityReservationId(v string) *ModifyCapacityReservationInput {
  56026. s.CapacityReservationId = &v
  56027. return s
  56028. }
  56029. // SetDryRun sets the DryRun field's value.
  56030. func (s *ModifyCapacityReservationInput) SetDryRun(v bool) *ModifyCapacityReservationInput {
  56031. s.DryRun = &v
  56032. return s
  56033. }
  56034. // SetEndDate sets the EndDate field's value.
  56035. func (s *ModifyCapacityReservationInput) SetEndDate(v time.Time) *ModifyCapacityReservationInput {
  56036. s.EndDate = &v
  56037. return s
  56038. }
  56039. // SetEndDateType sets the EndDateType field's value.
  56040. func (s *ModifyCapacityReservationInput) SetEndDateType(v string) *ModifyCapacityReservationInput {
  56041. s.EndDateType = &v
  56042. return s
  56043. }
  56044. // SetInstanceCount sets the InstanceCount field's value.
  56045. func (s *ModifyCapacityReservationInput) SetInstanceCount(v int64) *ModifyCapacityReservationInput {
  56046. s.InstanceCount = &v
  56047. return s
  56048. }
  56049. type ModifyCapacityReservationOutput struct {
  56050. _ struct{} `type:"structure"`
  56051. // Information about the Capacity Reservation.
  56052. Return *bool `locationName:"return" type:"boolean"`
  56053. }
  56054. // String returns the string representation
  56055. func (s ModifyCapacityReservationOutput) String() string {
  56056. return awsutil.Prettify(s)
  56057. }
  56058. // GoString returns the string representation
  56059. func (s ModifyCapacityReservationOutput) GoString() string {
  56060. return s.String()
  56061. }
  56062. // SetReturn sets the Return field's value.
  56063. func (s *ModifyCapacityReservationOutput) SetReturn(v bool) *ModifyCapacityReservationOutput {
  56064. s.Return = &v
  56065. return s
  56066. }
  56067. type ModifyClientVpnEndpointInput struct {
  56068. _ struct{} `type:"structure"`
  56069. // The ID of the Client VPN endpoint to modify.
  56070. //
  56071. // ClientVpnEndpointId is a required field
  56072. ClientVpnEndpointId *string `type:"string" required:"true"`
  56073. // Information about the client connection logging options.
  56074. //
  56075. // If you enable client connection logging, data about client connections is
  56076. // sent to a Cloudwatch Logs log stream. The following information is logged:
  56077. //
  56078. // * Client connection requests
  56079. //
  56080. // * Client connection results (successful and unsuccessful)
  56081. //
  56082. // * Reasons for unsuccessful client connection requests
  56083. //
  56084. // * Client connection termination time
  56085. ConnectionLogOptions *ConnectionLogOptions `type:"structure"`
  56086. // A brief description of the Client VPN endpoint.
  56087. Description *string `type:"string"`
  56088. // Information about the DNS servers to be used by Client VPN connections. A
  56089. // Client VPN endpoint can have up to two DNS servers.
  56090. DnsServers *DnsServersOptionsModifyStructure `type:"structure"`
  56091. // Checks whether you have the required permissions for the action, without
  56092. // actually making the request, and provides an error response. If you have
  56093. // the required permissions, the error response is DryRunOperation. Otherwise,
  56094. // it is UnauthorizedOperation.
  56095. DryRun *bool `type:"boolean"`
  56096. // The ARN of the server certificate to be used. The server certificate must
  56097. // be provisioned in AWS Certificate Manager (ACM).
  56098. ServerCertificateArn *string `type:"string"`
  56099. }
  56100. // String returns the string representation
  56101. func (s ModifyClientVpnEndpointInput) String() string {
  56102. return awsutil.Prettify(s)
  56103. }
  56104. // GoString returns the string representation
  56105. func (s ModifyClientVpnEndpointInput) GoString() string {
  56106. return s.String()
  56107. }
  56108. // Validate inspects the fields of the type to determine if they are valid.
  56109. func (s *ModifyClientVpnEndpointInput) Validate() error {
  56110. invalidParams := request.ErrInvalidParams{Context: "ModifyClientVpnEndpointInput"}
  56111. if s.ClientVpnEndpointId == nil {
  56112. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  56113. }
  56114. if invalidParams.Len() > 0 {
  56115. return invalidParams
  56116. }
  56117. return nil
  56118. }
  56119. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  56120. func (s *ModifyClientVpnEndpointInput) SetClientVpnEndpointId(v string) *ModifyClientVpnEndpointInput {
  56121. s.ClientVpnEndpointId = &v
  56122. return s
  56123. }
  56124. // SetConnectionLogOptions sets the ConnectionLogOptions field's value.
  56125. func (s *ModifyClientVpnEndpointInput) SetConnectionLogOptions(v *ConnectionLogOptions) *ModifyClientVpnEndpointInput {
  56126. s.ConnectionLogOptions = v
  56127. return s
  56128. }
  56129. // SetDescription sets the Description field's value.
  56130. func (s *ModifyClientVpnEndpointInput) SetDescription(v string) *ModifyClientVpnEndpointInput {
  56131. s.Description = &v
  56132. return s
  56133. }
  56134. // SetDnsServers sets the DnsServers field's value.
  56135. func (s *ModifyClientVpnEndpointInput) SetDnsServers(v *DnsServersOptionsModifyStructure) *ModifyClientVpnEndpointInput {
  56136. s.DnsServers = v
  56137. return s
  56138. }
  56139. // SetDryRun sets the DryRun field's value.
  56140. func (s *ModifyClientVpnEndpointInput) SetDryRun(v bool) *ModifyClientVpnEndpointInput {
  56141. s.DryRun = &v
  56142. return s
  56143. }
  56144. // SetServerCertificateArn sets the ServerCertificateArn field's value.
  56145. func (s *ModifyClientVpnEndpointInput) SetServerCertificateArn(v string) *ModifyClientVpnEndpointInput {
  56146. s.ServerCertificateArn = &v
  56147. return s
  56148. }
  56149. type ModifyClientVpnEndpointOutput struct {
  56150. _ struct{} `type:"structure"`
  56151. // Returns true if the request succeeds; otherwise, it returns an error.
  56152. Return *bool `locationName:"return" type:"boolean"`
  56153. }
  56154. // String returns the string representation
  56155. func (s ModifyClientVpnEndpointOutput) String() string {
  56156. return awsutil.Prettify(s)
  56157. }
  56158. // GoString returns the string representation
  56159. func (s ModifyClientVpnEndpointOutput) GoString() string {
  56160. return s.String()
  56161. }
  56162. // SetReturn sets the Return field's value.
  56163. func (s *ModifyClientVpnEndpointOutput) SetReturn(v bool) *ModifyClientVpnEndpointOutput {
  56164. s.Return = &v
  56165. return s
  56166. }
  56167. type ModifyFleetInput struct {
  56168. _ struct{} `type:"structure"`
  56169. // Checks whether you have the required permissions for the action, without
  56170. // actually making the request, and provides an error response. If you have
  56171. // the required permissions, the error response is DryRunOperation. Otherwise,
  56172. // it is UnauthorizedOperation.
  56173. DryRun *bool `type:"boolean"`
  56174. // Indicates whether running instances should be terminated if the total target
  56175. // capacity of the EC2 Fleet is decreased below the current size of the EC2
  56176. // Fleet.
  56177. ExcessCapacityTerminationPolicy *string `type:"string" enum:"FleetExcessCapacityTerminationPolicy"`
  56178. // The ID of the EC2 Fleet.
  56179. //
  56180. // FleetId is a required field
  56181. FleetId *string `type:"string" required:"true"`
  56182. // The size of the EC2 Fleet.
  56183. //
  56184. // TargetCapacitySpecification is a required field
  56185. TargetCapacitySpecification *TargetCapacitySpecificationRequest `type:"structure" required:"true"`
  56186. }
  56187. // String returns the string representation
  56188. func (s ModifyFleetInput) String() string {
  56189. return awsutil.Prettify(s)
  56190. }
  56191. // GoString returns the string representation
  56192. func (s ModifyFleetInput) GoString() string {
  56193. return s.String()
  56194. }
  56195. // Validate inspects the fields of the type to determine if they are valid.
  56196. func (s *ModifyFleetInput) Validate() error {
  56197. invalidParams := request.ErrInvalidParams{Context: "ModifyFleetInput"}
  56198. if s.FleetId == nil {
  56199. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  56200. }
  56201. if s.TargetCapacitySpecification == nil {
  56202. invalidParams.Add(request.NewErrParamRequired("TargetCapacitySpecification"))
  56203. }
  56204. if s.TargetCapacitySpecification != nil {
  56205. if err := s.TargetCapacitySpecification.Validate(); err != nil {
  56206. invalidParams.AddNested("TargetCapacitySpecification", err.(request.ErrInvalidParams))
  56207. }
  56208. }
  56209. if invalidParams.Len() > 0 {
  56210. return invalidParams
  56211. }
  56212. return nil
  56213. }
  56214. // SetDryRun sets the DryRun field's value.
  56215. func (s *ModifyFleetInput) SetDryRun(v bool) *ModifyFleetInput {
  56216. s.DryRun = &v
  56217. return s
  56218. }
  56219. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  56220. func (s *ModifyFleetInput) SetExcessCapacityTerminationPolicy(v string) *ModifyFleetInput {
  56221. s.ExcessCapacityTerminationPolicy = &v
  56222. return s
  56223. }
  56224. // SetFleetId sets the FleetId field's value.
  56225. func (s *ModifyFleetInput) SetFleetId(v string) *ModifyFleetInput {
  56226. s.FleetId = &v
  56227. return s
  56228. }
  56229. // SetTargetCapacitySpecification sets the TargetCapacitySpecification field's value.
  56230. func (s *ModifyFleetInput) SetTargetCapacitySpecification(v *TargetCapacitySpecificationRequest) *ModifyFleetInput {
  56231. s.TargetCapacitySpecification = v
  56232. return s
  56233. }
  56234. type ModifyFleetOutput struct {
  56235. _ struct{} `type:"structure"`
  56236. // Is true if the request succeeds, and an error otherwise.
  56237. Return *bool `locationName:"return" type:"boolean"`
  56238. }
  56239. // String returns the string representation
  56240. func (s ModifyFleetOutput) String() string {
  56241. return awsutil.Prettify(s)
  56242. }
  56243. // GoString returns the string representation
  56244. func (s ModifyFleetOutput) GoString() string {
  56245. return s.String()
  56246. }
  56247. // SetReturn sets the Return field's value.
  56248. func (s *ModifyFleetOutput) SetReturn(v bool) *ModifyFleetOutput {
  56249. s.Return = &v
  56250. return s
  56251. }
  56252. type ModifyFpgaImageAttributeInput struct {
  56253. _ struct{} `type:"structure"`
  56254. // The name of the attribute.
  56255. Attribute *string `type:"string" enum:"FpgaImageAttributeName"`
  56256. // A description for the AFI.
  56257. Description *string `type:"string"`
  56258. // Checks whether you have the required permissions for the action, without
  56259. // actually making the request, and provides an error response. If you have
  56260. // the required permissions, the error response is DryRunOperation. Otherwise,
  56261. // it is UnauthorizedOperation.
  56262. DryRun *bool `type:"boolean"`
  56263. // The ID of the AFI.
  56264. //
  56265. // FpgaImageId is a required field
  56266. FpgaImageId *string `type:"string" required:"true"`
  56267. // The load permission for the AFI.
  56268. LoadPermission *LoadPermissionModifications `type:"structure"`
  56269. // A name for the AFI.
  56270. Name *string `type:"string"`
  56271. // The operation type.
  56272. OperationType *string `type:"string" enum:"OperationType"`
  56273. // One or more product codes. After you add a product code to an AFI, it can't
  56274. // be removed. This parameter is valid only when modifying the productCodes
  56275. // attribute.
  56276. ProductCodes []*string `locationName:"ProductCode" locationNameList:"ProductCode" type:"list"`
  56277. // One or more user groups. This parameter is valid only when modifying the
  56278. // loadPermission attribute.
  56279. UserGroups []*string `locationName:"UserGroup" locationNameList:"UserGroup" type:"list"`
  56280. // One or more AWS account IDs. This parameter is valid only when modifying
  56281. // the loadPermission attribute.
  56282. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  56283. }
  56284. // String returns the string representation
  56285. func (s ModifyFpgaImageAttributeInput) String() string {
  56286. return awsutil.Prettify(s)
  56287. }
  56288. // GoString returns the string representation
  56289. func (s ModifyFpgaImageAttributeInput) GoString() string {
  56290. return s.String()
  56291. }
  56292. // Validate inspects the fields of the type to determine if they are valid.
  56293. func (s *ModifyFpgaImageAttributeInput) Validate() error {
  56294. invalidParams := request.ErrInvalidParams{Context: "ModifyFpgaImageAttributeInput"}
  56295. if s.FpgaImageId == nil {
  56296. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  56297. }
  56298. if invalidParams.Len() > 0 {
  56299. return invalidParams
  56300. }
  56301. return nil
  56302. }
  56303. // SetAttribute sets the Attribute field's value.
  56304. func (s *ModifyFpgaImageAttributeInput) SetAttribute(v string) *ModifyFpgaImageAttributeInput {
  56305. s.Attribute = &v
  56306. return s
  56307. }
  56308. // SetDescription sets the Description field's value.
  56309. func (s *ModifyFpgaImageAttributeInput) SetDescription(v string) *ModifyFpgaImageAttributeInput {
  56310. s.Description = &v
  56311. return s
  56312. }
  56313. // SetDryRun sets the DryRun field's value.
  56314. func (s *ModifyFpgaImageAttributeInput) SetDryRun(v bool) *ModifyFpgaImageAttributeInput {
  56315. s.DryRun = &v
  56316. return s
  56317. }
  56318. // SetFpgaImageId sets the FpgaImageId field's value.
  56319. func (s *ModifyFpgaImageAttributeInput) SetFpgaImageId(v string) *ModifyFpgaImageAttributeInput {
  56320. s.FpgaImageId = &v
  56321. return s
  56322. }
  56323. // SetLoadPermission sets the LoadPermission field's value.
  56324. func (s *ModifyFpgaImageAttributeInput) SetLoadPermission(v *LoadPermissionModifications) *ModifyFpgaImageAttributeInput {
  56325. s.LoadPermission = v
  56326. return s
  56327. }
  56328. // SetName sets the Name field's value.
  56329. func (s *ModifyFpgaImageAttributeInput) SetName(v string) *ModifyFpgaImageAttributeInput {
  56330. s.Name = &v
  56331. return s
  56332. }
  56333. // SetOperationType sets the OperationType field's value.
  56334. func (s *ModifyFpgaImageAttributeInput) SetOperationType(v string) *ModifyFpgaImageAttributeInput {
  56335. s.OperationType = &v
  56336. return s
  56337. }
  56338. // SetProductCodes sets the ProductCodes field's value.
  56339. func (s *ModifyFpgaImageAttributeInput) SetProductCodes(v []*string) *ModifyFpgaImageAttributeInput {
  56340. s.ProductCodes = v
  56341. return s
  56342. }
  56343. // SetUserGroups sets the UserGroups field's value.
  56344. func (s *ModifyFpgaImageAttributeInput) SetUserGroups(v []*string) *ModifyFpgaImageAttributeInput {
  56345. s.UserGroups = v
  56346. return s
  56347. }
  56348. // SetUserIds sets the UserIds field's value.
  56349. func (s *ModifyFpgaImageAttributeInput) SetUserIds(v []*string) *ModifyFpgaImageAttributeInput {
  56350. s.UserIds = v
  56351. return s
  56352. }
  56353. type ModifyFpgaImageAttributeOutput struct {
  56354. _ struct{} `type:"structure"`
  56355. // Information about the attribute.
  56356. FpgaImageAttribute *FpgaImageAttribute `locationName:"fpgaImageAttribute" type:"structure"`
  56357. }
  56358. // String returns the string representation
  56359. func (s ModifyFpgaImageAttributeOutput) String() string {
  56360. return awsutil.Prettify(s)
  56361. }
  56362. // GoString returns the string representation
  56363. func (s ModifyFpgaImageAttributeOutput) GoString() string {
  56364. return s.String()
  56365. }
  56366. // SetFpgaImageAttribute sets the FpgaImageAttribute field's value.
  56367. func (s *ModifyFpgaImageAttributeOutput) SetFpgaImageAttribute(v *FpgaImageAttribute) *ModifyFpgaImageAttributeOutput {
  56368. s.FpgaImageAttribute = v
  56369. return s
  56370. }
  56371. type ModifyHostsInput struct {
  56372. _ struct{} `type:"structure"`
  56373. // Specify whether to enable or disable auto-placement.
  56374. //
  56375. // AutoPlacement is a required field
  56376. AutoPlacement *string `locationName:"autoPlacement" type:"string" required:"true" enum:"AutoPlacement"`
  56377. // The IDs of the Dedicated Hosts to modify.
  56378. //
  56379. // HostIds is a required field
  56380. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`
  56381. }
  56382. // String returns the string representation
  56383. func (s ModifyHostsInput) String() string {
  56384. return awsutil.Prettify(s)
  56385. }
  56386. // GoString returns the string representation
  56387. func (s ModifyHostsInput) GoString() string {
  56388. return s.String()
  56389. }
  56390. // Validate inspects the fields of the type to determine if they are valid.
  56391. func (s *ModifyHostsInput) Validate() error {
  56392. invalidParams := request.ErrInvalidParams{Context: "ModifyHostsInput"}
  56393. if s.AutoPlacement == nil {
  56394. invalidParams.Add(request.NewErrParamRequired("AutoPlacement"))
  56395. }
  56396. if s.HostIds == nil {
  56397. invalidParams.Add(request.NewErrParamRequired("HostIds"))
  56398. }
  56399. if invalidParams.Len() > 0 {
  56400. return invalidParams
  56401. }
  56402. return nil
  56403. }
  56404. // SetAutoPlacement sets the AutoPlacement field's value.
  56405. func (s *ModifyHostsInput) SetAutoPlacement(v string) *ModifyHostsInput {
  56406. s.AutoPlacement = &v
  56407. return s
  56408. }
  56409. // SetHostIds sets the HostIds field's value.
  56410. func (s *ModifyHostsInput) SetHostIds(v []*string) *ModifyHostsInput {
  56411. s.HostIds = v
  56412. return s
  56413. }
  56414. type ModifyHostsOutput struct {
  56415. _ struct{} `type:"structure"`
  56416. // The IDs of the Dedicated Hosts that were successfully modified.
  56417. Successful []*string `locationName:"successful" locationNameList:"item" type:"list"`
  56418. // The IDs of the Dedicated Hosts that could not be modified. Check whether
  56419. // the setting you requested can be used.
  56420. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  56421. }
  56422. // String returns the string representation
  56423. func (s ModifyHostsOutput) String() string {
  56424. return awsutil.Prettify(s)
  56425. }
  56426. // GoString returns the string representation
  56427. func (s ModifyHostsOutput) GoString() string {
  56428. return s.String()
  56429. }
  56430. // SetSuccessful sets the Successful field's value.
  56431. func (s *ModifyHostsOutput) SetSuccessful(v []*string) *ModifyHostsOutput {
  56432. s.Successful = v
  56433. return s
  56434. }
  56435. // SetUnsuccessful sets the Unsuccessful field's value.
  56436. func (s *ModifyHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ModifyHostsOutput {
  56437. s.Unsuccessful = v
  56438. return s
  56439. }
  56440. type ModifyIdFormatInput struct {
  56441. _ struct{} `type:"structure"`
  56442. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  56443. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  56444. // | image | import-task | internet-gateway | network-acl | network-acl-association
  56445. // | network-interface | network-interface-attachment | prefix-list | route-table
  56446. // | route-table-association | security-group | subnet | subnet-cidr-block-association
  56447. // | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection
  56448. // | vpn-connection | vpn-gateway.
  56449. //
  56450. // Alternatively, use the all-current option to include all resource types that
  56451. // are currently within their opt-in period for longer IDs.
  56452. //
  56453. // Resource is a required field
  56454. Resource *string `type:"string" required:"true"`
  56455. // Indicate whether the resource should use longer IDs (17-character IDs).
  56456. //
  56457. // UseLongIds is a required field
  56458. UseLongIds *bool `type:"boolean" required:"true"`
  56459. }
  56460. // String returns the string representation
  56461. func (s ModifyIdFormatInput) String() string {
  56462. return awsutil.Prettify(s)
  56463. }
  56464. // GoString returns the string representation
  56465. func (s ModifyIdFormatInput) GoString() string {
  56466. return s.String()
  56467. }
  56468. // Validate inspects the fields of the type to determine if they are valid.
  56469. func (s *ModifyIdFormatInput) Validate() error {
  56470. invalidParams := request.ErrInvalidParams{Context: "ModifyIdFormatInput"}
  56471. if s.Resource == nil {
  56472. invalidParams.Add(request.NewErrParamRequired("Resource"))
  56473. }
  56474. if s.UseLongIds == nil {
  56475. invalidParams.Add(request.NewErrParamRequired("UseLongIds"))
  56476. }
  56477. if invalidParams.Len() > 0 {
  56478. return invalidParams
  56479. }
  56480. return nil
  56481. }
  56482. // SetResource sets the Resource field's value.
  56483. func (s *ModifyIdFormatInput) SetResource(v string) *ModifyIdFormatInput {
  56484. s.Resource = &v
  56485. return s
  56486. }
  56487. // SetUseLongIds sets the UseLongIds field's value.
  56488. func (s *ModifyIdFormatInput) SetUseLongIds(v bool) *ModifyIdFormatInput {
  56489. s.UseLongIds = &v
  56490. return s
  56491. }
  56492. type ModifyIdFormatOutput struct {
  56493. _ struct{} `type:"structure"`
  56494. }
  56495. // String returns the string representation
  56496. func (s ModifyIdFormatOutput) String() string {
  56497. return awsutil.Prettify(s)
  56498. }
  56499. // GoString returns the string representation
  56500. func (s ModifyIdFormatOutput) GoString() string {
  56501. return s.String()
  56502. }
  56503. type ModifyIdentityIdFormatInput struct {
  56504. _ struct{} `type:"structure"`
  56505. // The ARN of the principal, which can be an IAM user, IAM role, or the root
  56506. // user. Specify all to modify the ID format for all IAM users, IAM roles, and
  56507. // the root user of the account.
  56508. //
  56509. // PrincipalArn is a required field
  56510. PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
  56511. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  56512. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  56513. // | image | import-task | internet-gateway | network-acl | network-acl-association
  56514. // | network-interface | network-interface-attachment | prefix-list | route-table
  56515. // | route-table-association | security-group | subnet | subnet-cidr-block-association
  56516. // | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection
  56517. // | vpn-connection | vpn-gateway.
  56518. //
  56519. // Alternatively, use the all-current option to include all resource types that
  56520. // are currently within their opt-in period for longer IDs.
  56521. //
  56522. // Resource is a required field
  56523. Resource *string `locationName:"resource" type:"string" required:"true"`
  56524. // Indicates whether the resource should use longer IDs (17-character IDs)
  56525. //
  56526. // UseLongIds is a required field
  56527. UseLongIds *bool `locationName:"useLongIds" type:"boolean" required:"true"`
  56528. }
  56529. // String returns the string representation
  56530. func (s ModifyIdentityIdFormatInput) String() string {
  56531. return awsutil.Prettify(s)
  56532. }
  56533. // GoString returns the string representation
  56534. func (s ModifyIdentityIdFormatInput) GoString() string {
  56535. return s.String()
  56536. }
  56537. // Validate inspects the fields of the type to determine if they are valid.
  56538. func (s *ModifyIdentityIdFormatInput) Validate() error {
  56539. invalidParams := request.ErrInvalidParams{Context: "ModifyIdentityIdFormatInput"}
  56540. if s.PrincipalArn == nil {
  56541. invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
  56542. }
  56543. if s.Resource == nil {
  56544. invalidParams.Add(request.NewErrParamRequired("Resource"))
  56545. }
  56546. if s.UseLongIds == nil {
  56547. invalidParams.Add(request.NewErrParamRequired("UseLongIds"))
  56548. }
  56549. if invalidParams.Len() > 0 {
  56550. return invalidParams
  56551. }
  56552. return nil
  56553. }
  56554. // SetPrincipalArn sets the PrincipalArn field's value.
  56555. func (s *ModifyIdentityIdFormatInput) SetPrincipalArn(v string) *ModifyIdentityIdFormatInput {
  56556. s.PrincipalArn = &v
  56557. return s
  56558. }
  56559. // SetResource sets the Resource field's value.
  56560. func (s *ModifyIdentityIdFormatInput) SetResource(v string) *ModifyIdentityIdFormatInput {
  56561. s.Resource = &v
  56562. return s
  56563. }
  56564. // SetUseLongIds sets the UseLongIds field's value.
  56565. func (s *ModifyIdentityIdFormatInput) SetUseLongIds(v bool) *ModifyIdentityIdFormatInput {
  56566. s.UseLongIds = &v
  56567. return s
  56568. }
  56569. type ModifyIdentityIdFormatOutput struct {
  56570. _ struct{} `type:"structure"`
  56571. }
  56572. // String returns the string representation
  56573. func (s ModifyIdentityIdFormatOutput) String() string {
  56574. return awsutil.Prettify(s)
  56575. }
  56576. // GoString returns the string representation
  56577. func (s ModifyIdentityIdFormatOutput) GoString() string {
  56578. return s.String()
  56579. }
  56580. // Contains the parameters for ModifyImageAttribute.
  56581. type ModifyImageAttributeInput struct {
  56582. _ struct{} `type:"structure"`
  56583. // The name of the attribute to modify. The valid values are description, launchPermission,
  56584. // and productCodes.
  56585. Attribute *string `type:"string"`
  56586. // A new description for the AMI.
  56587. Description *AttributeValue `type:"structure"`
  56588. // Checks whether you have the required permissions for the action, without
  56589. // actually making the request, and provides an error response. If you have
  56590. // the required permissions, the error response is DryRunOperation. Otherwise,
  56591. // it is UnauthorizedOperation.
  56592. DryRun *bool `locationName:"dryRun" type:"boolean"`
  56593. // The ID of the AMI.
  56594. //
  56595. // ImageId is a required field
  56596. ImageId *string `type:"string" required:"true"`
  56597. // A new launch permission for the AMI.
  56598. LaunchPermission *LaunchPermissionModifications `type:"structure"`
  56599. // The operation type. This parameter can be used only when the Attribute parameter
  56600. // is launchPermission.
  56601. OperationType *string `type:"string" enum:"OperationType"`
  56602. // One or more DevPay product codes. After you add a product code to an AMI,
  56603. // it can't be removed.
  56604. ProductCodes []*string `locationName:"ProductCode" locationNameList:"ProductCode" type:"list"`
  56605. // One or more user groups. This parameter can be used only when the Attribute
  56606. // parameter is launchPermission.
  56607. UserGroups []*string `locationName:"UserGroup" locationNameList:"UserGroup" type:"list"`
  56608. // One or more AWS account IDs. This parameter can be used only when the Attribute
  56609. // parameter is launchPermission.
  56610. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  56611. // The value of the attribute being modified. This parameter can be used only
  56612. // when the Attribute parameter is description or productCodes.
  56613. Value *string `type:"string"`
  56614. }
  56615. // String returns the string representation
  56616. func (s ModifyImageAttributeInput) String() string {
  56617. return awsutil.Prettify(s)
  56618. }
  56619. // GoString returns the string representation
  56620. func (s ModifyImageAttributeInput) GoString() string {
  56621. return s.String()
  56622. }
  56623. // Validate inspects the fields of the type to determine if they are valid.
  56624. func (s *ModifyImageAttributeInput) Validate() error {
  56625. invalidParams := request.ErrInvalidParams{Context: "ModifyImageAttributeInput"}
  56626. if s.ImageId == nil {
  56627. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  56628. }
  56629. if invalidParams.Len() > 0 {
  56630. return invalidParams
  56631. }
  56632. return nil
  56633. }
  56634. // SetAttribute sets the Attribute field's value.
  56635. func (s *ModifyImageAttributeInput) SetAttribute(v string) *ModifyImageAttributeInput {
  56636. s.Attribute = &v
  56637. return s
  56638. }
  56639. // SetDescription sets the Description field's value.
  56640. func (s *ModifyImageAttributeInput) SetDescription(v *AttributeValue) *ModifyImageAttributeInput {
  56641. s.Description = v
  56642. return s
  56643. }
  56644. // SetDryRun sets the DryRun field's value.
  56645. func (s *ModifyImageAttributeInput) SetDryRun(v bool) *ModifyImageAttributeInput {
  56646. s.DryRun = &v
  56647. return s
  56648. }
  56649. // SetImageId sets the ImageId field's value.
  56650. func (s *ModifyImageAttributeInput) SetImageId(v string) *ModifyImageAttributeInput {
  56651. s.ImageId = &v
  56652. return s
  56653. }
  56654. // SetLaunchPermission sets the LaunchPermission field's value.
  56655. func (s *ModifyImageAttributeInput) SetLaunchPermission(v *LaunchPermissionModifications) *ModifyImageAttributeInput {
  56656. s.LaunchPermission = v
  56657. return s
  56658. }
  56659. // SetOperationType sets the OperationType field's value.
  56660. func (s *ModifyImageAttributeInput) SetOperationType(v string) *ModifyImageAttributeInput {
  56661. s.OperationType = &v
  56662. return s
  56663. }
  56664. // SetProductCodes sets the ProductCodes field's value.
  56665. func (s *ModifyImageAttributeInput) SetProductCodes(v []*string) *ModifyImageAttributeInput {
  56666. s.ProductCodes = v
  56667. return s
  56668. }
  56669. // SetUserGroups sets the UserGroups field's value.
  56670. func (s *ModifyImageAttributeInput) SetUserGroups(v []*string) *ModifyImageAttributeInput {
  56671. s.UserGroups = v
  56672. return s
  56673. }
  56674. // SetUserIds sets the UserIds field's value.
  56675. func (s *ModifyImageAttributeInput) SetUserIds(v []*string) *ModifyImageAttributeInput {
  56676. s.UserIds = v
  56677. return s
  56678. }
  56679. // SetValue sets the Value field's value.
  56680. func (s *ModifyImageAttributeInput) SetValue(v string) *ModifyImageAttributeInput {
  56681. s.Value = &v
  56682. return s
  56683. }
  56684. type ModifyImageAttributeOutput struct {
  56685. _ struct{} `type:"structure"`
  56686. }
  56687. // String returns the string representation
  56688. func (s ModifyImageAttributeOutput) String() string {
  56689. return awsutil.Prettify(s)
  56690. }
  56691. // GoString returns the string representation
  56692. func (s ModifyImageAttributeOutput) GoString() string {
  56693. return s.String()
  56694. }
  56695. type ModifyInstanceAttributeInput struct {
  56696. _ struct{} `type:"structure"`
  56697. // The name of the attribute.
  56698. Attribute *string `locationName:"attribute" type:"string" enum:"InstanceAttributeName"`
  56699. // Modifies the DeleteOnTermination attribute for volumes that are currently
  56700. // attached. The volume must be owned by the caller. If no value is specified
  56701. // for DeleteOnTermination, the default is true and the volume is deleted when
  56702. // the instance is terminated.
  56703. //
  56704. // To add instance store volumes to an Amazon EBS-backed instance, you must
  56705. // add them when you launch the instance. For more information, see Updating
  56706. // the Block Device Mapping when Launching an Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM)
  56707. // in the Amazon Elastic Compute Cloud User Guide.
  56708. BlockDeviceMappings []*InstanceBlockDeviceMappingSpecification `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  56709. // If the value is true, you can't terminate the instance using the Amazon EC2
  56710. // console, CLI, or API; otherwise, you can. You cannot use this parameter for
  56711. // Spot Instances.
  56712. DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`
  56713. // Checks whether you have the required permissions for the action, without
  56714. // actually making the request, and provides an error response. If you have
  56715. // the required permissions, the error response is DryRunOperation. Otherwise,
  56716. // it is UnauthorizedOperation.
  56717. DryRun *bool `locationName:"dryRun" type:"boolean"`
  56718. // Specifies whether the instance is optimized for Amazon EBS I/O. This optimization
  56719. // provides dedicated throughput to Amazon EBS and an optimized configuration
  56720. // stack to provide optimal EBS I/O performance. This optimization isn't available
  56721. // with all instance types. Additional usage charges apply when using an EBS
  56722. // Optimized instance.
  56723. EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`
  56724. // Set to true to enable enhanced networking with ENA for the instance.
  56725. //
  56726. // This option is supported only for HVM instances. Specifying this option with
  56727. // a PV instance can make it unreachable.
  56728. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`
  56729. // [EC2-VPC] Changes the security groups of the instance. You must specify at
  56730. // least one security group, even if it's just the default security group for
  56731. // the VPC. You must specify the security group ID, not the security group name.
  56732. Groups []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"`
  56733. // The ID of the instance.
  56734. //
  56735. // InstanceId is a required field
  56736. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  56737. // Specifies whether an instance stops or terminates when you initiate shutdown
  56738. // from the instance (using the operating system command for system shutdown).
  56739. InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`
  56740. // Changes the instance type to the specified value. For more information, see
  56741. // Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  56742. // If the instance type is not valid, the error returned is InvalidInstanceAttributeValue.
  56743. InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`
  56744. // Changes the instance's kernel to the specified value. We recommend that you
  56745. // use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB
  56746. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
  56747. Kernel *AttributeValue `locationName:"kernel" type:"structure"`
  56748. // Changes the instance's RAM disk to the specified value. We recommend that
  56749. // you use PV-GRUB instead of kernels and RAM disks. For more information, see
  56750. // PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
  56751. Ramdisk *AttributeValue `locationName:"ramdisk" type:"structure"`
  56752. // Specifies whether source/destination checking is enabled. A value of true
  56753. // means that checking is enabled, and false means that checking is disabled.
  56754. // This value must be false for a NAT instance to perform NAT.
  56755. SourceDestCheck *AttributeBooleanValue `type:"structure"`
  56756. // Set to simple to enable enhanced networking with the Intel 82599 Virtual
  56757. // Function interface for the instance.
  56758. //
  56759. // There is no way to disable enhanced networking with the Intel 82599 Virtual
  56760. // Function interface at this time.
  56761. //
  56762. // This option is supported only for HVM instances. Specifying this option with
  56763. // a PV instance can make it unreachable.
  56764. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  56765. // Changes the instance's user data to the specified value. If you are using
  56766. // an AWS SDK or command line tool, base64-encoding is performed for you, and
  56767. // you can load the text from a file. Otherwise, you must provide base64-encoded
  56768. // text.
  56769. UserData *BlobAttributeValue `locationName:"userData" type:"structure"`
  56770. // A new value for the attribute. Use only with the kernel, ramdisk, userData,
  56771. // disableApiTermination, or instanceInitiatedShutdownBehavior attribute.
  56772. Value *string `locationName:"value" type:"string"`
  56773. }
  56774. // String returns the string representation
  56775. func (s ModifyInstanceAttributeInput) String() string {
  56776. return awsutil.Prettify(s)
  56777. }
  56778. // GoString returns the string representation
  56779. func (s ModifyInstanceAttributeInput) GoString() string {
  56780. return s.String()
  56781. }
  56782. // Validate inspects the fields of the type to determine if they are valid.
  56783. func (s *ModifyInstanceAttributeInput) Validate() error {
  56784. invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceAttributeInput"}
  56785. if s.InstanceId == nil {
  56786. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  56787. }
  56788. if invalidParams.Len() > 0 {
  56789. return invalidParams
  56790. }
  56791. return nil
  56792. }
  56793. // SetAttribute sets the Attribute field's value.
  56794. func (s *ModifyInstanceAttributeInput) SetAttribute(v string) *ModifyInstanceAttributeInput {
  56795. s.Attribute = &v
  56796. return s
  56797. }
  56798. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  56799. func (s *ModifyInstanceAttributeInput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMappingSpecification) *ModifyInstanceAttributeInput {
  56800. s.BlockDeviceMappings = v
  56801. return s
  56802. }
  56803. // SetDisableApiTermination sets the DisableApiTermination field's value.
  56804. func (s *ModifyInstanceAttributeInput) SetDisableApiTermination(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  56805. s.DisableApiTermination = v
  56806. return s
  56807. }
  56808. // SetDryRun sets the DryRun field's value.
  56809. func (s *ModifyInstanceAttributeInput) SetDryRun(v bool) *ModifyInstanceAttributeInput {
  56810. s.DryRun = &v
  56811. return s
  56812. }
  56813. // SetEbsOptimized sets the EbsOptimized field's value.
  56814. func (s *ModifyInstanceAttributeInput) SetEbsOptimized(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  56815. s.EbsOptimized = v
  56816. return s
  56817. }
  56818. // SetEnaSupport sets the EnaSupport field's value.
  56819. func (s *ModifyInstanceAttributeInput) SetEnaSupport(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  56820. s.EnaSupport = v
  56821. return s
  56822. }
  56823. // SetGroups sets the Groups field's value.
  56824. func (s *ModifyInstanceAttributeInput) SetGroups(v []*string) *ModifyInstanceAttributeInput {
  56825. s.Groups = v
  56826. return s
  56827. }
  56828. // SetInstanceId sets the InstanceId field's value.
  56829. func (s *ModifyInstanceAttributeInput) SetInstanceId(v string) *ModifyInstanceAttributeInput {
  56830. s.InstanceId = &v
  56831. return s
  56832. }
  56833. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  56834. func (s *ModifyInstanceAttributeInput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *ModifyInstanceAttributeInput {
  56835. s.InstanceInitiatedShutdownBehavior = v
  56836. return s
  56837. }
  56838. // SetInstanceType sets the InstanceType field's value.
  56839. func (s *ModifyInstanceAttributeInput) SetInstanceType(v *AttributeValue) *ModifyInstanceAttributeInput {
  56840. s.InstanceType = v
  56841. return s
  56842. }
  56843. // SetKernel sets the Kernel field's value.
  56844. func (s *ModifyInstanceAttributeInput) SetKernel(v *AttributeValue) *ModifyInstanceAttributeInput {
  56845. s.Kernel = v
  56846. return s
  56847. }
  56848. // SetRamdisk sets the Ramdisk field's value.
  56849. func (s *ModifyInstanceAttributeInput) SetRamdisk(v *AttributeValue) *ModifyInstanceAttributeInput {
  56850. s.Ramdisk = v
  56851. return s
  56852. }
  56853. // SetSourceDestCheck sets the SourceDestCheck field's value.
  56854. func (s *ModifyInstanceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  56855. s.SourceDestCheck = v
  56856. return s
  56857. }
  56858. // SetSriovNetSupport sets the SriovNetSupport field's value.
  56859. func (s *ModifyInstanceAttributeInput) SetSriovNetSupport(v *AttributeValue) *ModifyInstanceAttributeInput {
  56860. s.SriovNetSupport = v
  56861. return s
  56862. }
  56863. // SetUserData sets the UserData field's value.
  56864. func (s *ModifyInstanceAttributeInput) SetUserData(v *BlobAttributeValue) *ModifyInstanceAttributeInput {
  56865. s.UserData = v
  56866. return s
  56867. }
  56868. // SetValue sets the Value field's value.
  56869. func (s *ModifyInstanceAttributeInput) SetValue(v string) *ModifyInstanceAttributeInput {
  56870. s.Value = &v
  56871. return s
  56872. }
  56873. type ModifyInstanceAttributeOutput struct {
  56874. _ struct{} `type:"structure"`
  56875. }
  56876. // String returns the string representation
  56877. func (s ModifyInstanceAttributeOutput) String() string {
  56878. return awsutil.Prettify(s)
  56879. }
  56880. // GoString returns the string representation
  56881. func (s ModifyInstanceAttributeOutput) GoString() string {
  56882. return s.String()
  56883. }
  56884. type ModifyInstanceCapacityReservationAttributesInput struct {
  56885. _ struct{} `type:"structure"`
  56886. // Information about the Capacity Reservation targeting option.
  56887. //
  56888. // CapacityReservationSpecification is a required field
  56889. CapacityReservationSpecification *CapacityReservationSpecification `type:"structure" required:"true"`
  56890. // Checks whether you have the required permissions for the action, without
  56891. // actually making the request, and provides an error response. If you have
  56892. // the required permissions, the error response is DryRunOperation. Otherwise,
  56893. // it is UnauthorizedOperation.
  56894. DryRun *bool `type:"boolean"`
  56895. // The ID of the instance to be modified.
  56896. //
  56897. // InstanceId is a required field
  56898. InstanceId *string `type:"string" required:"true"`
  56899. }
  56900. // String returns the string representation
  56901. func (s ModifyInstanceCapacityReservationAttributesInput) String() string {
  56902. return awsutil.Prettify(s)
  56903. }
  56904. // GoString returns the string representation
  56905. func (s ModifyInstanceCapacityReservationAttributesInput) GoString() string {
  56906. return s.String()
  56907. }
  56908. // Validate inspects the fields of the type to determine if they are valid.
  56909. func (s *ModifyInstanceCapacityReservationAttributesInput) Validate() error {
  56910. invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceCapacityReservationAttributesInput"}
  56911. if s.CapacityReservationSpecification == nil {
  56912. invalidParams.Add(request.NewErrParamRequired("CapacityReservationSpecification"))
  56913. }
  56914. if s.InstanceId == nil {
  56915. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  56916. }
  56917. if invalidParams.Len() > 0 {
  56918. return invalidParams
  56919. }
  56920. return nil
  56921. }
  56922. // SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value.
  56923. func (s *ModifyInstanceCapacityReservationAttributesInput) SetCapacityReservationSpecification(v *CapacityReservationSpecification) *ModifyInstanceCapacityReservationAttributesInput {
  56924. s.CapacityReservationSpecification = v
  56925. return s
  56926. }
  56927. // SetDryRun sets the DryRun field's value.
  56928. func (s *ModifyInstanceCapacityReservationAttributesInput) SetDryRun(v bool) *ModifyInstanceCapacityReservationAttributesInput {
  56929. s.DryRun = &v
  56930. return s
  56931. }
  56932. // SetInstanceId sets the InstanceId field's value.
  56933. func (s *ModifyInstanceCapacityReservationAttributesInput) SetInstanceId(v string) *ModifyInstanceCapacityReservationAttributesInput {
  56934. s.InstanceId = &v
  56935. return s
  56936. }
  56937. type ModifyInstanceCapacityReservationAttributesOutput struct {
  56938. _ struct{} `type:"structure"`
  56939. // Returns true if the request succeeds; otherwise, it returns an error.
  56940. Return *bool `locationName:"return" type:"boolean"`
  56941. }
  56942. // String returns the string representation
  56943. func (s ModifyInstanceCapacityReservationAttributesOutput) String() string {
  56944. return awsutil.Prettify(s)
  56945. }
  56946. // GoString returns the string representation
  56947. func (s ModifyInstanceCapacityReservationAttributesOutput) GoString() string {
  56948. return s.String()
  56949. }
  56950. // SetReturn sets the Return field's value.
  56951. func (s *ModifyInstanceCapacityReservationAttributesOutput) SetReturn(v bool) *ModifyInstanceCapacityReservationAttributesOutput {
  56952. s.Return = &v
  56953. return s
  56954. }
  56955. type ModifyInstanceCreditSpecificationInput struct {
  56956. _ struct{} `type:"structure"`
  56957. // A unique, case-sensitive token that you provide to ensure idempotency of
  56958. // your modification request. For more information, see Ensuring Idempotency
  56959. // (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  56960. ClientToken *string `type:"string"`
  56961. // Checks whether you have the required permissions for the action, without
  56962. // actually making the request, and provides an error response. If you have
  56963. // the required permissions, the error response is DryRunOperation. Otherwise,
  56964. // it is UnauthorizedOperation.
  56965. DryRun *bool `type:"boolean"`
  56966. // Information about the credit option for CPU usage.
  56967. //
  56968. // InstanceCreditSpecifications is a required field
  56969. InstanceCreditSpecifications []*InstanceCreditSpecificationRequest `locationName:"InstanceCreditSpecification" locationNameList:"item" type:"list" required:"true"`
  56970. }
  56971. // String returns the string representation
  56972. func (s ModifyInstanceCreditSpecificationInput) String() string {
  56973. return awsutil.Prettify(s)
  56974. }
  56975. // GoString returns the string representation
  56976. func (s ModifyInstanceCreditSpecificationInput) GoString() string {
  56977. return s.String()
  56978. }
  56979. // Validate inspects the fields of the type to determine if they are valid.
  56980. func (s *ModifyInstanceCreditSpecificationInput) Validate() error {
  56981. invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceCreditSpecificationInput"}
  56982. if s.InstanceCreditSpecifications == nil {
  56983. invalidParams.Add(request.NewErrParamRequired("InstanceCreditSpecifications"))
  56984. }
  56985. if invalidParams.Len() > 0 {
  56986. return invalidParams
  56987. }
  56988. return nil
  56989. }
  56990. // SetClientToken sets the ClientToken field's value.
  56991. func (s *ModifyInstanceCreditSpecificationInput) SetClientToken(v string) *ModifyInstanceCreditSpecificationInput {
  56992. s.ClientToken = &v
  56993. return s
  56994. }
  56995. // SetDryRun sets the DryRun field's value.
  56996. func (s *ModifyInstanceCreditSpecificationInput) SetDryRun(v bool) *ModifyInstanceCreditSpecificationInput {
  56997. s.DryRun = &v
  56998. return s
  56999. }
  57000. // SetInstanceCreditSpecifications sets the InstanceCreditSpecifications field's value.
  57001. func (s *ModifyInstanceCreditSpecificationInput) SetInstanceCreditSpecifications(v []*InstanceCreditSpecificationRequest) *ModifyInstanceCreditSpecificationInput {
  57002. s.InstanceCreditSpecifications = v
  57003. return s
  57004. }
  57005. type ModifyInstanceCreditSpecificationOutput struct {
  57006. _ struct{} `type:"structure"`
  57007. // Information about the instances whose credit option for CPU usage was successfully
  57008. // modified.
  57009. SuccessfulInstanceCreditSpecifications []*SuccessfulInstanceCreditSpecificationItem `locationName:"successfulInstanceCreditSpecificationSet" locationNameList:"item" type:"list"`
  57010. // Information about the instances whose credit option for CPU usage was not
  57011. // modified.
  57012. UnsuccessfulInstanceCreditSpecifications []*UnsuccessfulInstanceCreditSpecificationItem `locationName:"unsuccessfulInstanceCreditSpecificationSet" locationNameList:"item" type:"list"`
  57013. }
  57014. // String returns the string representation
  57015. func (s ModifyInstanceCreditSpecificationOutput) String() string {
  57016. return awsutil.Prettify(s)
  57017. }
  57018. // GoString returns the string representation
  57019. func (s ModifyInstanceCreditSpecificationOutput) GoString() string {
  57020. return s.String()
  57021. }
  57022. // SetSuccessfulInstanceCreditSpecifications sets the SuccessfulInstanceCreditSpecifications field's value.
  57023. func (s *ModifyInstanceCreditSpecificationOutput) SetSuccessfulInstanceCreditSpecifications(v []*SuccessfulInstanceCreditSpecificationItem) *ModifyInstanceCreditSpecificationOutput {
  57024. s.SuccessfulInstanceCreditSpecifications = v
  57025. return s
  57026. }
  57027. // SetUnsuccessfulInstanceCreditSpecifications sets the UnsuccessfulInstanceCreditSpecifications field's value.
  57028. func (s *ModifyInstanceCreditSpecificationOutput) SetUnsuccessfulInstanceCreditSpecifications(v []*UnsuccessfulInstanceCreditSpecificationItem) *ModifyInstanceCreditSpecificationOutput {
  57029. s.UnsuccessfulInstanceCreditSpecifications = v
  57030. return s
  57031. }
  57032. type ModifyInstancePlacementInput struct {
  57033. _ struct{} `type:"structure"`
  57034. // The affinity setting for the instance.
  57035. Affinity *string `locationName:"affinity" type:"string" enum:"Affinity"`
  57036. // The name of the placement group in which to place the instance. For spread
  57037. // placement groups, the instance must have a tenancy of default. For cluster
  57038. // and partition placement groups, the instance must have a tenancy of default
  57039. // or dedicated.
  57040. //
  57041. // To remove an instance from a placement group, specify an empty string ("").
  57042. GroupName *string `type:"string"`
  57043. // The ID of the Dedicated Host with which to associate the instance.
  57044. HostId *string `locationName:"hostId" type:"string"`
  57045. // The ID of the instance that you are modifying.
  57046. //
  57047. // InstanceId is a required field
  57048. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  57049. // Reserved for future use.
  57050. PartitionNumber *int64 `type:"integer"`
  57051. // The tenancy for the instance.
  57052. Tenancy *string `locationName:"tenancy" type:"string" enum:"HostTenancy"`
  57053. }
  57054. // String returns the string representation
  57055. func (s ModifyInstancePlacementInput) String() string {
  57056. return awsutil.Prettify(s)
  57057. }
  57058. // GoString returns the string representation
  57059. func (s ModifyInstancePlacementInput) GoString() string {
  57060. return s.String()
  57061. }
  57062. // Validate inspects the fields of the type to determine if they are valid.
  57063. func (s *ModifyInstancePlacementInput) Validate() error {
  57064. invalidParams := request.ErrInvalidParams{Context: "ModifyInstancePlacementInput"}
  57065. if s.InstanceId == nil {
  57066. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  57067. }
  57068. if invalidParams.Len() > 0 {
  57069. return invalidParams
  57070. }
  57071. return nil
  57072. }
  57073. // SetAffinity sets the Affinity field's value.
  57074. func (s *ModifyInstancePlacementInput) SetAffinity(v string) *ModifyInstancePlacementInput {
  57075. s.Affinity = &v
  57076. return s
  57077. }
  57078. // SetGroupName sets the GroupName field's value.
  57079. func (s *ModifyInstancePlacementInput) SetGroupName(v string) *ModifyInstancePlacementInput {
  57080. s.GroupName = &v
  57081. return s
  57082. }
  57083. // SetHostId sets the HostId field's value.
  57084. func (s *ModifyInstancePlacementInput) SetHostId(v string) *ModifyInstancePlacementInput {
  57085. s.HostId = &v
  57086. return s
  57087. }
  57088. // SetInstanceId sets the InstanceId field's value.
  57089. func (s *ModifyInstancePlacementInput) SetInstanceId(v string) *ModifyInstancePlacementInput {
  57090. s.InstanceId = &v
  57091. return s
  57092. }
  57093. // SetPartitionNumber sets the PartitionNumber field's value.
  57094. func (s *ModifyInstancePlacementInput) SetPartitionNumber(v int64) *ModifyInstancePlacementInput {
  57095. s.PartitionNumber = &v
  57096. return s
  57097. }
  57098. // SetTenancy sets the Tenancy field's value.
  57099. func (s *ModifyInstancePlacementInput) SetTenancy(v string) *ModifyInstancePlacementInput {
  57100. s.Tenancy = &v
  57101. return s
  57102. }
  57103. type ModifyInstancePlacementOutput struct {
  57104. _ struct{} `type:"structure"`
  57105. // Is true if the request succeeds, and an error otherwise.
  57106. Return *bool `locationName:"return" type:"boolean"`
  57107. }
  57108. // String returns the string representation
  57109. func (s ModifyInstancePlacementOutput) String() string {
  57110. return awsutil.Prettify(s)
  57111. }
  57112. // GoString returns the string representation
  57113. func (s ModifyInstancePlacementOutput) GoString() string {
  57114. return s.String()
  57115. }
  57116. // SetReturn sets the Return field's value.
  57117. func (s *ModifyInstancePlacementOutput) SetReturn(v bool) *ModifyInstancePlacementOutput {
  57118. s.Return = &v
  57119. return s
  57120. }
  57121. type ModifyLaunchTemplateInput struct {
  57122. _ struct{} `type:"structure"`
  57123. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  57124. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  57125. ClientToken *string `type:"string"`
  57126. // The version number of the launch template to set as the default version.
  57127. DefaultVersion *string `locationName:"SetDefaultVersion" type:"string"`
  57128. // Checks whether you have the required permissions for the action, without
  57129. // actually making the request, and provides an error response. If you have
  57130. // the required permissions, the error response is DryRunOperation. Otherwise,
  57131. // it is UnauthorizedOperation.
  57132. DryRun *bool `type:"boolean"`
  57133. // The ID of the launch template. You must specify either the launch template
  57134. // ID or launch template name in the request.
  57135. LaunchTemplateId *string `type:"string"`
  57136. // The name of the launch template. You must specify either the launch template
  57137. // ID or launch template name in the request.
  57138. LaunchTemplateName *string `min:"3" type:"string"`
  57139. }
  57140. // String returns the string representation
  57141. func (s ModifyLaunchTemplateInput) String() string {
  57142. return awsutil.Prettify(s)
  57143. }
  57144. // GoString returns the string representation
  57145. func (s ModifyLaunchTemplateInput) GoString() string {
  57146. return s.String()
  57147. }
  57148. // Validate inspects the fields of the type to determine if they are valid.
  57149. func (s *ModifyLaunchTemplateInput) Validate() error {
  57150. invalidParams := request.ErrInvalidParams{Context: "ModifyLaunchTemplateInput"}
  57151. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  57152. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  57153. }
  57154. if invalidParams.Len() > 0 {
  57155. return invalidParams
  57156. }
  57157. return nil
  57158. }
  57159. // SetClientToken sets the ClientToken field's value.
  57160. func (s *ModifyLaunchTemplateInput) SetClientToken(v string) *ModifyLaunchTemplateInput {
  57161. s.ClientToken = &v
  57162. return s
  57163. }
  57164. // SetDefaultVersion sets the DefaultVersion field's value.
  57165. func (s *ModifyLaunchTemplateInput) SetDefaultVersion(v string) *ModifyLaunchTemplateInput {
  57166. s.DefaultVersion = &v
  57167. return s
  57168. }
  57169. // SetDryRun sets the DryRun field's value.
  57170. func (s *ModifyLaunchTemplateInput) SetDryRun(v bool) *ModifyLaunchTemplateInput {
  57171. s.DryRun = &v
  57172. return s
  57173. }
  57174. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  57175. func (s *ModifyLaunchTemplateInput) SetLaunchTemplateId(v string) *ModifyLaunchTemplateInput {
  57176. s.LaunchTemplateId = &v
  57177. return s
  57178. }
  57179. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  57180. func (s *ModifyLaunchTemplateInput) SetLaunchTemplateName(v string) *ModifyLaunchTemplateInput {
  57181. s.LaunchTemplateName = &v
  57182. return s
  57183. }
  57184. type ModifyLaunchTemplateOutput struct {
  57185. _ struct{} `type:"structure"`
  57186. // Information about the launch template.
  57187. LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
  57188. }
  57189. // String returns the string representation
  57190. func (s ModifyLaunchTemplateOutput) String() string {
  57191. return awsutil.Prettify(s)
  57192. }
  57193. // GoString returns the string representation
  57194. func (s ModifyLaunchTemplateOutput) GoString() string {
  57195. return s.String()
  57196. }
  57197. // SetLaunchTemplate sets the LaunchTemplate field's value.
  57198. func (s *ModifyLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *ModifyLaunchTemplateOutput {
  57199. s.LaunchTemplate = v
  57200. return s
  57201. }
  57202. // Contains the parameters for ModifyNetworkInterfaceAttribute.
  57203. type ModifyNetworkInterfaceAttributeInput struct {
  57204. _ struct{} `type:"structure"`
  57205. // Information about the interface attachment. If modifying the 'delete on termination'
  57206. // attribute, you must specify the ID of the interface attachment.
  57207. Attachment *NetworkInterfaceAttachmentChanges `locationName:"attachment" type:"structure"`
  57208. // A description for the network interface.
  57209. Description *AttributeValue `locationName:"description" type:"structure"`
  57210. // Checks whether you have the required permissions for the action, without
  57211. // actually making the request, and provides an error response. If you have
  57212. // the required permissions, the error response is DryRunOperation. Otherwise,
  57213. // it is UnauthorizedOperation.
  57214. DryRun *bool `locationName:"dryRun" type:"boolean"`
  57215. // Changes the security groups for the network interface. The new set of groups
  57216. // you specify replaces the current set. You must specify at least one group,
  57217. // even if it's just the default security group in the VPC. You must specify
  57218. // the ID of the security group, not the name.
  57219. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  57220. // The ID of the network interface.
  57221. //
  57222. // NetworkInterfaceId is a required field
  57223. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  57224. // Indicates whether source/destination checking is enabled. A value of true
  57225. // means checking is enabled, and false means checking is disabled. This value
  57226. // must be false for a NAT instance to perform NAT. For more information, see
  57227. // NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  57228. // in the Amazon Virtual Private Cloud User Guide.
  57229. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  57230. }
  57231. // String returns the string representation
  57232. func (s ModifyNetworkInterfaceAttributeInput) String() string {
  57233. return awsutil.Prettify(s)
  57234. }
  57235. // GoString returns the string representation
  57236. func (s ModifyNetworkInterfaceAttributeInput) GoString() string {
  57237. return s.String()
  57238. }
  57239. // Validate inspects the fields of the type to determine if they are valid.
  57240. func (s *ModifyNetworkInterfaceAttributeInput) Validate() error {
  57241. invalidParams := request.ErrInvalidParams{Context: "ModifyNetworkInterfaceAttributeInput"}
  57242. if s.NetworkInterfaceId == nil {
  57243. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  57244. }
  57245. if invalidParams.Len() > 0 {
  57246. return invalidParams
  57247. }
  57248. return nil
  57249. }
  57250. // SetAttachment sets the Attachment field's value.
  57251. func (s *ModifyNetworkInterfaceAttributeInput) SetAttachment(v *NetworkInterfaceAttachmentChanges) *ModifyNetworkInterfaceAttributeInput {
  57252. s.Attachment = v
  57253. return s
  57254. }
  57255. // SetDescription sets the Description field's value.
  57256. func (s *ModifyNetworkInterfaceAttributeInput) SetDescription(v *AttributeValue) *ModifyNetworkInterfaceAttributeInput {
  57257. s.Description = v
  57258. return s
  57259. }
  57260. // SetDryRun sets the DryRun field's value.
  57261. func (s *ModifyNetworkInterfaceAttributeInput) SetDryRun(v bool) *ModifyNetworkInterfaceAttributeInput {
  57262. s.DryRun = &v
  57263. return s
  57264. }
  57265. // SetGroups sets the Groups field's value.
  57266. func (s *ModifyNetworkInterfaceAttributeInput) SetGroups(v []*string) *ModifyNetworkInterfaceAttributeInput {
  57267. s.Groups = v
  57268. return s
  57269. }
  57270. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  57271. func (s *ModifyNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ModifyNetworkInterfaceAttributeInput {
  57272. s.NetworkInterfaceId = &v
  57273. return s
  57274. }
  57275. // SetSourceDestCheck sets the SourceDestCheck field's value.
  57276. func (s *ModifyNetworkInterfaceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyNetworkInterfaceAttributeInput {
  57277. s.SourceDestCheck = v
  57278. return s
  57279. }
  57280. type ModifyNetworkInterfaceAttributeOutput struct {
  57281. _ struct{} `type:"structure"`
  57282. }
  57283. // String returns the string representation
  57284. func (s ModifyNetworkInterfaceAttributeOutput) String() string {
  57285. return awsutil.Prettify(s)
  57286. }
  57287. // GoString returns the string representation
  57288. func (s ModifyNetworkInterfaceAttributeOutput) GoString() string {
  57289. return s.String()
  57290. }
  57291. // Contains the parameters for ModifyReservedInstances.
  57292. type ModifyReservedInstancesInput struct {
  57293. _ struct{} `type:"structure"`
  57294. // A unique, case-sensitive token you provide to ensure idempotency of your
  57295. // modification request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  57296. ClientToken *string `locationName:"clientToken" type:"string"`
  57297. // The IDs of the Reserved Instances to modify.
  57298. //
  57299. // ReservedInstancesIds is a required field
  57300. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list" required:"true"`
  57301. // The configuration settings for the Reserved Instances to modify.
  57302. //
  57303. // TargetConfigurations is a required field
  57304. TargetConfigurations []*ReservedInstancesConfiguration `locationName:"ReservedInstancesConfigurationSetItemType" locationNameList:"item" type:"list" required:"true"`
  57305. }
  57306. // String returns the string representation
  57307. func (s ModifyReservedInstancesInput) String() string {
  57308. return awsutil.Prettify(s)
  57309. }
  57310. // GoString returns the string representation
  57311. func (s ModifyReservedInstancesInput) GoString() string {
  57312. return s.String()
  57313. }
  57314. // Validate inspects the fields of the type to determine if they are valid.
  57315. func (s *ModifyReservedInstancesInput) Validate() error {
  57316. invalidParams := request.ErrInvalidParams{Context: "ModifyReservedInstancesInput"}
  57317. if s.ReservedInstancesIds == nil {
  57318. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesIds"))
  57319. }
  57320. if s.TargetConfigurations == nil {
  57321. invalidParams.Add(request.NewErrParamRequired("TargetConfigurations"))
  57322. }
  57323. if invalidParams.Len() > 0 {
  57324. return invalidParams
  57325. }
  57326. return nil
  57327. }
  57328. // SetClientToken sets the ClientToken field's value.
  57329. func (s *ModifyReservedInstancesInput) SetClientToken(v string) *ModifyReservedInstancesInput {
  57330. s.ClientToken = &v
  57331. return s
  57332. }
  57333. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  57334. func (s *ModifyReservedInstancesInput) SetReservedInstancesIds(v []*string) *ModifyReservedInstancesInput {
  57335. s.ReservedInstancesIds = v
  57336. return s
  57337. }
  57338. // SetTargetConfigurations sets the TargetConfigurations field's value.
  57339. func (s *ModifyReservedInstancesInput) SetTargetConfigurations(v []*ReservedInstancesConfiguration) *ModifyReservedInstancesInput {
  57340. s.TargetConfigurations = v
  57341. return s
  57342. }
  57343. // Contains the output of ModifyReservedInstances.
  57344. type ModifyReservedInstancesOutput struct {
  57345. _ struct{} `type:"structure"`
  57346. // The ID for the modification.
  57347. ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`
  57348. }
  57349. // String returns the string representation
  57350. func (s ModifyReservedInstancesOutput) String() string {
  57351. return awsutil.Prettify(s)
  57352. }
  57353. // GoString returns the string representation
  57354. func (s ModifyReservedInstancesOutput) GoString() string {
  57355. return s.String()
  57356. }
  57357. // SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value.
  57358. func (s *ModifyReservedInstancesOutput) SetReservedInstancesModificationId(v string) *ModifyReservedInstancesOutput {
  57359. s.ReservedInstancesModificationId = &v
  57360. return s
  57361. }
  57362. // Contains the parameters for ModifySnapshotAttribute.
  57363. type ModifySnapshotAttributeInput struct {
  57364. _ struct{} `type:"structure"`
  57365. // The snapshot attribute to modify. Only volume creation permissions can be
  57366. // modified.
  57367. Attribute *string `type:"string" enum:"SnapshotAttributeName"`
  57368. // A JSON representation of the snapshot attribute modification.
  57369. CreateVolumePermission *CreateVolumePermissionModifications `type:"structure"`
  57370. // Checks whether you have the required permissions for the action, without
  57371. // actually making the request, and provides an error response. If you have
  57372. // the required permissions, the error response is DryRunOperation. Otherwise,
  57373. // it is UnauthorizedOperation.
  57374. DryRun *bool `locationName:"dryRun" type:"boolean"`
  57375. // The group to modify for the snapshot.
  57376. GroupNames []*string `locationName:"UserGroup" locationNameList:"GroupName" type:"list"`
  57377. // The type of operation to perform to the attribute.
  57378. OperationType *string `type:"string" enum:"OperationType"`
  57379. // The ID of the snapshot.
  57380. //
  57381. // SnapshotId is a required field
  57382. SnapshotId *string `type:"string" required:"true"`
  57383. // The account ID to modify for the snapshot.
  57384. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  57385. }
  57386. // String returns the string representation
  57387. func (s ModifySnapshotAttributeInput) String() string {
  57388. return awsutil.Prettify(s)
  57389. }
  57390. // GoString returns the string representation
  57391. func (s ModifySnapshotAttributeInput) GoString() string {
  57392. return s.String()
  57393. }
  57394. // Validate inspects the fields of the type to determine if they are valid.
  57395. func (s *ModifySnapshotAttributeInput) Validate() error {
  57396. invalidParams := request.ErrInvalidParams{Context: "ModifySnapshotAttributeInput"}
  57397. if s.SnapshotId == nil {
  57398. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  57399. }
  57400. if invalidParams.Len() > 0 {
  57401. return invalidParams
  57402. }
  57403. return nil
  57404. }
  57405. // SetAttribute sets the Attribute field's value.
  57406. func (s *ModifySnapshotAttributeInput) SetAttribute(v string) *ModifySnapshotAttributeInput {
  57407. s.Attribute = &v
  57408. return s
  57409. }
  57410. // SetCreateVolumePermission sets the CreateVolumePermission field's value.
  57411. func (s *ModifySnapshotAttributeInput) SetCreateVolumePermission(v *CreateVolumePermissionModifications) *ModifySnapshotAttributeInput {
  57412. s.CreateVolumePermission = v
  57413. return s
  57414. }
  57415. // SetDryRun sets the DryRun field's value.
  57416. func (s *ModifySnapshotAttributeInput) SetDryRun(v bool) *ModifySnapshotAttributeInput {
  57417. s.DryRun = &v
  57418. return s
  57419. }
  57420. // SetGroupNames sets the GroupNames field's value.
  57421. func (s *ModifySnapshotAttributeInput) SetGroupNames(v []*string) *ModifySnapshotAttributeInput {
  57422. s.GroupNames = v
  57423. return s
  57424. }
  57425. // SetOperationType sets the OperationType field's value.
  57426. func (s *ModifySnapshotAttributeInput) SetOperationType(v string) *ModifySnapshotAttributeInput {
  57427. s.OperationType = &v
  57428. return s
  57429. }
  57430. // SetSnapshotId sets the SnapshotId field's value.
  57431. func (s *ModifySnapshotAttributeInput) SetSnapshotId(v string) *ModifySnapshotAttributeInput {
  57432. s.SnapshotId = &v
  57433. return s
  57434. }
  57435. // SetUserIds sets the UserIds field's value.
  57436. func (s *ModifySnapshotAttributeInput) SetUserIds(v []*string) *ModifySnapshotAttributeInput {
  57437. s.UserIds = v
  57438. return s
  57439. }
  57440. type ModifySnapshotAttributeOutput struct {
  57441. _ struct{} `type:"structure"`
  57442. }
  57443. // String returns the string representation
  57444. func (s ModifySnapshotAttributeOutput) String() string {
  57445. return awsutil.Prettify(s)
  57446. }
  57447. // GoString returns the string representation
  57448. func (s ModifySnapshotAttributeOutput) GoString() string {
  57449. return s.String()
  57450. }
  57451. // Contains the parameters for ModifySpotFleetRequest.
  57452. type ModifySpotFleetRequestInput struct {
  57453. _ struct{} `type:"structure"`
  57454. // Indicates whether running Spot Instances should be terminated if the target
  57455. // capacity of the Spot Fleet request is decreased below the current size of
  57456. // the Spot Fleet.
  57457. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"`
  57458. // The ID of the Spot Fleet request.
  57459. //
  57460. // SpotFleetRequestId is a required field
  57461. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  57462. // The size of the fleet.
  57463. TargetCapacity *int64 `locationName:"targetCapacity" type:"integer"`
  57464. }
  57465. // String returns the string representation
  57466. func (s ModifySpotFleetRequestInput) String() string {
  57467. return awsutil.Prettify(s)
  57468. }
  57469. // GoString returns the string representation
  57470. func (s ModifySpotFleetRequestInput) GoString() string {
  57471. return s.String()
  57472. }
  57473. // Validate inspects the fields of the type to determine if they are valid.
  57474. func (s *ModifySpotFleetRequestInput) Validate() error {
  57475. invalidParams := request.ErrInvalidParams{Context: "ModifySpotFleetRequestInput"}
  57476. if s.SpotFleetRequestId == nil {
  57477. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  57478. }
  57479. if invalidParams.Len() > 0 {
  57480. return invalidParams
  57481. }
  57482. return nil
  57483. }
  57484. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  57485. func (s *ModifySpotFleetRequestInput) SetExcessCapacityTerminationPolicy(v string) *ModifySpotFleetRequestInput {
  57486. s.ExcessCapacityTerminationPolicy = &v
  57487. return s
  57488. }
  57489. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  57490. func (s *ModifySpotFleetRequestInput) SetSpotFleetRequestId(v string) *ModifySpotFleetRequestInput {
  57491. s.SpotFleetRequestId = &v
  57492. return s
  57493. }
  57494. // SetTargetCapacity sets the TargetCapacity field's value.
  57495. func (s *ModifySpotFleetRequestInput) SetTargetCapacity(v int64) *ModifySpotFleetRequestInput {
  57496. s.TargetCapacity = &v
  57497. return s
  57498. }
  57499. // Contains the output of ModifySpotFleetRequest.
  57500. type ModifySpotFleetRequestOutput struct {
  57501. _ struct{} `type:"structure"`
  57502. // Is true if the request succeeds, and an error otherwise.
  57503. Return *bool `locationName:"return" type:"boolean"`
  57504. }
  57505. // String returns the string representation
  57506. func (s ModifySpotFleetRequestOutput) String() string {
  57507. return awsutil.Prettify(s)
  57508. }
  57509. // GoString returns the string representation
  57510. func (s ModifySpotFleetRequestOutput) GoString() string {
  57511. return s.String()
  57512. }
  57513. // SetReturn sets the Return field's value.
  57514. func (s *ModifySpotFleetRequestOutput) SetReturn(v bool) *ModifySpotFleetRequestOutput {
  57515. s.Return = &v
  57516. return s
  57517. }
  57518. type ModifySubnetAttributeInput struct {
  57519. _ struct{} `type:"structure"`
  57520. // Specify true to indicate that network interfaces created in the specified
  57521. // subnet should be assigned an IPv6 address. This includes a network interface
  57522. // that's created when launching an instance into the subnet (the instance therefore
  57523. // receives an IPv6 address).
  57524. //
  57525. // If you enable the IPv6 addressing feature for your subnet, your network interface
  57526. // or instance only receives an IPv6 address if it's created using version 2016-11-15
  57527. // or later of the Amazon EC2 API.
  57528. AssignIpv6AddressOnCreation *AttributeBooleanValue `type:"structure"`
  57529. // Specify true to indicate that network interfaces created in the specified
  57530. // subnet should be assigned a public IPv4 address. This includes a network
  57531. // interface that's created when launching an instance into the subnet (the
  57532. // instance therefore receives a public IPv4 address).
  57533. MapPublicIpOnLaunch *AttributeBooleanValue `type:"structure"`
  57534. // The ID of the subnet.
  57535. //
  57536. // SubnetId is a required field
  57537. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  57538. }
  57539. // String returns the string representation
  57540. func (s ModifySubnetAttributeInput) String() string {
  57541. return awsutil.Prettify(s)
  57542. }
  57543. // GoString returns the string representation
  57544. func (s ModifySubnetAttributeInput) GoString() string {
  57545. return s.String()
  57546. }
  57547. // Validate inspects the fields of the type to determine if they are valid.
  57548. func (s *ModifySubnetAttributeInput) Validate() error {
  57549. invalidParams := request.ErrInvalidParams{Context: "ModifySubnetAttributeInput"}
  57550. if s.SubnetId == nil {
  57551. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  57552. }
  57553. if invalidParams.Len() > 0 {
  57554. return invalidParams
  57555. }
  57556. return nil
  57557. }
  57558. // SetAssignIpv6AddressOnCreation sets the AssignIpv6AddressOnCreation field's value.
  57559. func (s *ModifySubnetAttributeInput) SetAssignIpv6AddressOnCreation(v *AttributeBooleanValue) *ModifySubnetAttributeInput {
  57560. s.AssignIpv6AddressOnCreation = v
  57561. return s
  57562. }
  57563. // SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value.
  57564. func (s *ModifySubnetAttributeInput) SetMapPublicIpOnLaunch(v *AttributeBooleanValue) *ModifySubnetAttributeInput {
  57565. s.MapPublicIpOnLaunch = v
  57566. return s
  57567. }
  57568. // SetSubnetId sets the SubnetId field's value.
  57569. func (s *ModifySubnetAttributeInput) SetSubnetId(v string) *ModifySubnetAttributeInput {
  57570. s.SubnetId = &v
  57571. return s
  57572. }
  57573. type ModifySubnetAttributeOutput struct {
  57574. _ struct{} `type:"structure"`
  57575. }
  57576. // String returns the string representation
  57577. func (s ModifySubnetAttributeOutput) String() string {
  57578. return awsutil.Prettify(s)
  57579. }
  57580. // GoString returns the string representation
  57581. func (s ModifySubnetAttributeOutput) GoString() string {
  57582. return s.String()
  57583. }
  57584. type ModifyTransitGatewayVpcAttachmentInput struct {
  57585. _ struct{} `type:"structure"`
  57586. // The IDs of one or more subnets to add. You can specify at most one subnet
  57587. // per Availability Zone.
  57588. AddSubnetIds []*string `locationNameList:"item" type:"list"`
  57589. // Checks whether you have the required permissions for the action, without
  57590. // actually making the request, and provides an error response. If you have
  57591. // the required permissions, the error response is DryRunOperation. Otherwise,
  57592. // it is UnauthorizedOperation.
  57593. DryRun *bool `type:"boolean"`
  57594. // The new VPC attachment options.
  57595. Options *ModifyTransitGatewayVpcAttachmentRequestOptions `type:"structure"`
  57596. // The IDs of one or more subnets to remove.
  57597. RemoveSubnetIds []*string `locationNameList:"item" type:"list"`
  57598. // The ID of the attachment.
  57599. //
  57600. // TransitGatewayAttachmentId is a required field
  57601. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  57602. }
  57603. // String returns the string representation
  57604. func (s ModifyTransitGatewayVpcAttachmentInput) String() string {
  57605. return awsutil.Prettify(s)
  57606. }
  57607. // GoString returns the string representation
  57608. func (s ModifyTransitGatewayVpcAttachmentInput) GoString() string {
  57609. return s.String()
  57610. }
  57611. // Validate inspects the fields of the type to determine if they are valid.
  57612. func (s *ModifyTransitGatewayVpcAttachmentInput) Validate() error {
  57613. invalidParams := request.ErrInvalidParams{Context: "ModifyTransitGatewayVpcAttachmentInput"}
  57614. if s.TransitGatewayAttachmentId == nil {
  57615. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  57616. }
  57617. if invalidParams.Len() > 0 {
  57618. return invalidParams
  57619. }
  57620. return nil
  57621. }
  57622. // SetAddSubnetIds sets the AddSubnetIds field's value.
  57623. func (s *ModifyTransitGatewayVpcAttachmentInput) SetAddSubnetIds(v []*string) *ModifyTransitGatewayVpcAttachmentInput {
  57624. s.AddSubnetIds = v
  57625. return s
  57626. }
  57627. // SetDryRun sets the DryRun field's value.
  57628. func (s *ModifyTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *ModifyTransitGatewayVpcAttachmentInput {
  57629. s.DryRun = &v
  57630. return s
  57631. }
  57632. // SetOptions sets the Options field's value.
  57633. func (s *ModifyTransitGatewayVpcAttachmentInput) SetOptions(v *ModifyTransitGatewayVpcAttachmentRequestOptions) *ModifyTransitGatewayVpcAttachmentInput {
  57634. s.Options = v
  57635. return s
  57636. }
  57637. // SetRemoveSubnetIds sets the RemoveSubnetIds field's value.
  57638. func (s *ModifyTransitGatewayVpcAttachmentInput) SetRemoveSubnetIds(v []*string) *ModifyTransitGatewayVpcAttachmentInput {
  57639. s.RemoveSubnetIds = v
  57640. return s
  57641. }
  57642. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  57643. func (s *ModifyTransitGatewayVpcAttachmentInput) SetTransitGatewayAttachmentId(v string) *ModifyTransitGatewayVpcAttachmentInput {
  57644. s.TransitGatewayAttachmentId = &v
  57645. return s
  57646. }
  57647. type ModifyTransitGatewayVpcAttachmentOutput struct {
  57648. _ struct{} `type:"structure"`
  57649. // Information about the modified attachment.
  57650. TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
  57651. }
  57652. // String returns the string representation
  57653. func (s ModifyTransitGatewayVpcAttachmentOutput) String() string {
  57654. return awsutil.Prettify(s)
  57655. }
  57656. // GoString returns the string representation
  57657. func (s ModifyTransitGatewayVpcAttachmentOutput) GoString() string {
  57658. return s.String()
  57659. }
  57660. // SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value.
  57661. func (s *ModifyTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *ModifyTransitGatewayVpcAttachmentOutput {
  57662. s.TransitGatewayVpcAttachment = v
  57663. return s
  57664. }
  57665. // Describes the options for a VPC attachment.
  57666. type ModifyTransitGatewayVpcAttachmentRequestOptions struct {
  57667. _ struct{} `type:"structure"`
  57668. // Enable or disable DNS support. The default is enable.
  57669. DnsSupport *string `type:"string" enum:"DnsSupportValue"`
  57670. // Enable or disable IPv6 support. The default is enable.
  57671. Ipv6Support *string `type:"string" enum:"Ipv6SupportValue"`
  57672. }
  57673. // String returns the string representation
  57674. func (s ModifyTransitGatewayVpcAttachmentRequestOptions) String() string {
  57675. return awsutil.Prettify(s)
  57676. }
  57677. // GoString returns the string representation
  57678. func (s ModifyTransitGatewayVpcAttachmentRequestOptions) GoString() string {
  57679. return s.String()
  57680. }
  57681. // SetDnsSupport sets the DnsSupport field's value.
  57682. func (s *ModifyTransitGatewayVpcAttachmentRequestOptions) SetDnsSupport(v string) *ModifyTransitGatewayVpcAttachmentRequestOptions {
  57683. s.DnsSupport = &v
  57684. return s
  57685. }
  57686. // SetIpv6Support sets the Ipv6Support field's value.
  57687. func (s *ModifyTransitGatewayVpcAttachmentRequestOptions) SetIpv6Support(v string) *ModifyTransitGatewayVpcAttachmentRequestOptions {
  57688. s.Ipv6Support = &v
  57689. return s
  57690. }
  57691. // Contains the parameters for ModifyVolumeAttribute.
  57692. type ModifyVolumeAttributeInput struct {
  57693. _ struct{} `type:"structure"`
  57694. // Indicates whether the volume should be auto-enabled for I/O operations.
  57695. AutoEnableIO *AttributeBooleanValue `type:"structure"`
  57696. // Checks whether you have the required permissions for the action, without
  57697. // actually making the request, and provides an error response. If you have
  57698. // the required permissions, the error response is DryRunOperation. Otherwise,
  57699. // it is UnauthorizedOperation.
  57700. DryRun *bool `locationName:"dryRun" type:"boolean"`
  57701. // The ID of the volume.
  57702. //
  57703. // VolumeId is a required field
  57704. VolumeId *string `type:"string" required:"true"`
  57705. }
  57706. // String returns the string representation
  57707. func (s ModifyVolumeAttributeInput) String() string {
  57708. return awsutil.Prettify(s)
  57709. }
  57710. // GoString returns the string representation
  57711. func (s ModifyVolumeAttributeInput) GoString() string {
  57712. return s.String()
  57713. }
  57714. // Validate inspects the fields of the type to determine if they are valid.
  57715. func (s *ModifyVolumeAttributeInput) Validate() error {
  57716. invalidParams := request.ErrInvalidParams{Context: "ModifyVolumeAttributeInput"}
  57717. if s.VolumeId == nil {
  57718. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  57719. }
  57720. if invalidParams.Len() > 0 {
  57721. return invalidParams
  57722. }
  57723. return nil
  57724. }
  57725. // SetAutoEnableIO sets the AutoEnableIO field's value.
  57726. func (s *ModifyVolumeAttributeInput) SetAutoEnableIO(v *AttributeBooleanValue) *ModifyVolumeAttributeInput {
  57727. s.AutoEnableIO = v
  57728. return s
  57729. }
  57730. // SetDryRun sets the DryRun field's value.
  57731. func (s *ModifyVolumeAttributeInput) SetDryRun(v bool) *ModifyVolumeAttributeInput {
  57732. s.DryRun = &v
  57733. return s
  57734. }
  57735. // SetVolumeId sets the VolumeId field's value.
  57736. func (s *ModifyVolumeAttributeInput) SetVolumeId(v string) *ModifyVolumeAttributeInput {
  57737. s.VolumeId = &v
  57738. return s
  57739. }
  57740. type ModifyVolumeAttributeOutput struct {
  57741. _ struct{} `type:"structure"`
  57742. }
  57743. // String returns the string representation
  57744. func (s ModifyVolumeAttributeOutput) String() string {
  57745. return awsutil.Prettify(s)
  57746. }
  57747. // GoString returns the string representation
  57748. func (s ModifyVolumeAttributeOutput) GoString() string {
  57749. return s.String()
  57750. }
  57751. type ModifyVolumeInput struct {
  57752. _ struct{} `type:"structure"`
  57753. // Checks whether you have the required permissions for the action, without
  57754. // actually making the request, and provides an error response. If you have
  57755. // the required permissions, the error response is DryRunOperation. Otherwise,
  57756. // it is UnauthorizedOperation.
  57757. DryRun *bool `type:"boolean"`
  57758. // The target IOPS rate of the volume.
  57759. //
  57760. // This is only valid for Provisioned IOPS SSD (io1) volumes. For more information,
  57761. // see Provisioned IOPS SSD (io1) Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops).
  57762. //
  57763. // Default: If no IOPS value is specified, the existing value is retained.
  57764. Iops *int64 `type:"integer"`
  57765. // The target size of the volume, in GiB. The target volume size must be greater
  57766. // than or equal to than the existing size of the volume. For information about
  57767. // available EBS volume sizes, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
  57768. //
  57769. // Default: If no size is specified, the existing size is retained.
  57770. Size *int64 `type:"integer"`
  57771. // The ID of the volume.
  57772. //
  57773. // VolumeId is a required field
  57774. VolumeId *string `type:"string" required:"true"`
  57775. // The target EBS volume type of the volume.
  57776. //
  57777. // Default: If no type is specified, the existing type is retained.
  57778. VolumeType *string `type:"string" enum:"VolumeType"`
  57779. }
  57780. // String returns the string representation
  57781. func (s ModifyVolumeInput) String() string {
  57782. return awsutil.Prettify(s)
  57783. }
  57784. // GoString returns the string representation
  57785. func (s ModifyVolumeInput) GoString() string {
  57786. return s.String()
  57787. }
  57788. // Validate inspects the fields of the type to determine if they are valid.
  57789. func (s *ModifyVolumeInput) Validate() error {
  57790. invalidParams := request.ErrInvalidParams{Context: "ModifyVolumeInput"}
  57791. if s.VolumeId == nil {
  57792. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  57793. }
  57794. if invalidParams.Len() > 0 {
  57795. return invalidParams
  57796. }
  57797. return nil
  57798. }
  57799. // SetDryRun sets the DryRun field's value.
  57800. func (s *ModifyVolumeInput) SetDryRun(v bool) *ModifyVolumeInput {
  57801. s.DryRun = &v
  57802. return s
  57803. }
  57804. // SetIops sets the Iops field's value.
  57805. func (s *ModifyVolumeInput) SetIops(v int64) *ModifyVolumeInput {
  57806. s.Iops = &v
  57807. return s
  57808. }
  57809. // SetSize sets the Size field's value.
  57810. func (s *ModifyVolumeInput) SetSize(v int64) *ModifyVolumeInput {
  57811. s.Size = &v
  57812. return s
  57813. }
  57814. // SetVolumeId sets the VolumeId field's value.
  57815. func (s *ModifyVolumeInput) SetVolumeId(v string) *ModifyVolumeInput {
  57816. s.VolumeId = &v
  57817. return s
  57818. }
  57819. // SetVolumeType sets the VolumeType field's value.
  57820. func (s *ModifyVolumeInput) SetVolumeType(v string) *ModifyVolumeInput {
  57821. s.VolumeType = &v
  57822. return s
  57823. }
  57824. type ModifyVolumeOutput struct {
  57825. _ struct{} `type:"structure"`
  57826. // Information about the volume modification.
  57827. VolumeModification *VolumeModification `locationName:"volumeModification" type:"structure"`
  57828. }
  57829. // String returns the string representation
  57830. func (s ModifyVolumeOutput) String() string {
  57831. return awsutil.Prettify(s)
  57832. }
  57833. // GoString returns the string representation
  57834. func (s ModifyVolumeOutput) GoString() string {
  57835. return s.String()
  57836. }
  57837. // SetVolumeModification sets the VolumeModification field's value.
  57838. func (s *ModifyVolumeOutput) SetVolumeModification(v *VolumeModification) *ModifyVolumeOutput {
  57839. s.VolumeModification = v
  57840. return s
  57841. }
  57842. type ModifyVpcAttributeInput struct {
  57843. _ struct{} `type:"structure"`
  57844. // Indicates whether the instances launched in the VPC get DNS hostnames. If
  57845. // enabled, instances in the VPC get DNS hostnames; otherwise, they do not.
  57846. //
  57847. // You cannot modify the DNS resolution and DNS hostnames attributes in the
  57848. // same request. Use separate requests for each attribute. You can only enable
  57849. // DNS hostnames if you've enabled DNS support.
  57850. EnableDnsHostnames *AttributeBooleanValue `type:"structure"`
  57851. // Indicates whether the DNS resolution is supported for the VPC. If enabled,
  57852. // queries to the Amazon provided DNS server at the 169.254.169.253 IP address,
  57853. // or the reserved IP address at the base of the VPC network range "plus two"
  57854. // succeed. If disabled, the Amazon provided DNS service in the VPC that resolves
  57855. // public DNS hostnames to IP addresses is not enabled.
  57856. //
  57857. // You cannot modify the DNS resolution and DNS hostnames attributes in the
  57858. // same request. Use separate requests for each attribute.
  57859. EnableDnsSupport *AttributeBooleanValue `type:"structure"`
  57860. // The ID of the VPC.
  57861. //
  57862. // VpcId is a required field
  57863. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  57864. }
  57865. // String returns the string representation
  57866. func (s ModifyVpcAttributeInput) String() string {
  57867. return awsutil.Prettify(s)
  57868. }
  57869. // GoString returns the string representation
  57870. func (s ModifyVpcAttributeInput) GoString() string {
  57871. return s.String()
  57872. }
  57873. // Validate inspects the fields of the type to determine if they are valid.
  57874. func (s *ModifyVpcAttributeInput) Validate() error {
  57875. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcAttributeInput"}
  57876. if s.VpcId == nil {
  57877. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  57878. }
  57879. if invalidParams.Len() > 0 {
  57880. return invalidParams
  57881. }
  57882. return nil
  57883. }
  57884. // SetEnableDnsHostnames sets the EnableDnsHostnames field's value.
  57885. func (s *ModifyVpcAttributeInput) SetEnableDnsHostnames(v *AttributeBooleanValue) *ModifyVpcAttributeInput {
  57886. s.EnableDnsHostnames = v
  57887. return s
  57888. }
  57889. // SetEnableDnsSupport sets the EnableDnsSupport field's value.
  57890. func (s *ModifyVpcAttributeInput) SetEnableDnsSupport(v *AttributeBooleanValue) *ModifyVpcAttributeInput {
  57891. s.EnableDnsSupport = v
  57892. return s
  57893. }
  57894. // SetVpcId sets the VpcId field's value.
  57895. func (s *ModifyVpcAttributeInput) SetVpcId(v string) *ModifyVpcAttributeInput {
  57896. s.VpcId = &v
  57897. return s
  57898. }
  57899. type ModifyVpcAttributeOutput struct {
  57900. _ struct{} `type:"structure"`
  57901. }
  57902. // String returns the string representation
  57903. func (s ModifyVpcAttributeOutput) String() string {
  57904. return awsutil.Prettify(s)
  57905. }
  57906. // GoString returns the string representation
  57907. func (s ModifyVpcAttributeOutput) GoString() string {
  57908. return s.String()
  57909. }
  57910. type ModifyVpcEndpointConnectionNotificationInput struct {
  57911. _ struct{} `type:"structure"`
  57912. // One or more events for the endpoint. Valid values are Accept, Connect, Delete,
  57913. // and Reject.
  57914. ConnectionEvents []*string `locationNameList:"item" type:"list"`
  57915. // The ARN for the SNS topic for the notification.
  57916. ConnectionNotificationArn *string `type:"string"`
  57917. // The ID of the notification.
  57918. //
  57919. // ConnectionNotificationId is a required field
  57920. ConnectionNotificationId *string `type:"string" required:"true"`
  57921. // Checks whether you have the required permissions for the action, without
  57922. // actually making the request, and provides an error response. If you have
  57923. // the required permissions, the error response is DryRunOperation. Otherwise,
  57924. // it is UnauthorizedOperation.
  57925. DryRun *bool `type:"boolean"`
  57926. }
  57927. // String returns the string representation
  57928. func (s ModifyVpcEndpointConnectionNotificationInput) String() string {
  57929. return awsutil.Prettify(s)
  57930. }
  57931. // GoString returns the string representation
  57932. func (s ModifyVpcEndpointConnectionNotificationInput) GoString() string {
  57933. return s.String()
  57934. }
  57935. // Validate inspects the fields of the type to determine if they are valid.
  57936. func (s *ModifyVpcEndpointConnectionNotificationInput) Validate() error {
  57937. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointConnectionNotificationInput"}
  57938. if s.ConnectionNotificationId == nil {
  57939. invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationId"))
  57940. }
  57941. if invalidParams.Len() > 0 {
  57942. return invalidParams
  57943. }
  57944. return nil
  57945. }
  57946. // SetConnectionEvents sets the ConnectionEvents field's value.
  57947. func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionEvents(v []*string) *ModifyVpcEndpointConnectionNotificationInput {
  57948. s.ConnectionEvents = v
  57949. return s
  57950. }
  57951. // SetConnectionNotificationArn sets the ConnectionNotificationArn field's value.
  57952. func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionNotificationArn(v string) *ModifyVpcEndpointConnectionNotificationInput {
  57953. s.ConnectionNotificationArn = &v
  57954. return s
  57955. }
  57956. // SetConnectionNotificationId sets the ConnectionNotificationId field's value.
  57957. func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionNotificationId(v string) *ModifyVpcEndpointConnectionNotificationInput {
  57958. s.ConnectionNotificationId = &v
  57959. return s
  57960. }
  57961. // SetDryRun sets the DryRun field's value.
  57962. func (s *ModifyVpcEndpointConnectionNotificationInput) SetDryRun(v bool) *ModifyVpcEndpointConnectionNotificationInput {
  57963. s.DryRun = &v
  57964. return s
  57965. }
  57966. type ModifyVpcEndpointConnectionNotificationOutput struct {
  57967. _ struct{} `type:"structure"`
  57968. // Returns true if the request succeeds; otherwise, it returns an error.
  57969. ReturnValue *bool `locationName:"return" type:"boolean"`
  57970. }
  57971. // String returns the string representation
  57972. func (s ModifyVpcEndpointConnectionNotificationOutput) String() string {
  57973. return awsutil.Prettify(s)
  57974. }
  57975. // GoString returns the string representation
  57976. func (s ModifyVpcEndpointConnectionNotificationOutput) GoString() string {
  57977. return s.String()
  57978. }
  57979. // SetReturnValue sets the ReturnValue field's value.
  57980. func (s *ModifyVpcEndpointConnectionNotificationOutput) SetReturnValue(v bool) *ModifyVpcEndpointConnectionNotificationOutput {
  57981. s.ReturnValue = &v
  57982. return s
  57983. }
  57984. // Contains the parameters for ModifyVpcEndpoint.
  57985. type ModifyVpcEndpointInput struct {
  57986. _ struct{} `type:"structure"`
  57987. // (Gateway endpoint) One or more route tables IDs to associate with the endpoint.
  57988. AddRouteTableIds []*string `locationName:"AddRouteTableId" locationNameList:"item" type:"list"`
  57989. // (Interface endpoint) One or more security group IDs to associate with the
  57990. // network interface.
  57991. AddSecurityGroupIds []*string `locationName:"AddSecurityGroupId" locationNameList:"item" type:"list"`
  57992. // (Interface endpoint) One or more subnet IDs in which to serve the endpoint.
  57993. AddSubnetIds []*string `locationName:"AddSubnetId" locationNameList:"item" type:"list"`
  57994. // Checks whether you have the required permissions for the action, without
  57995. // actually making the request, and provides an error response. If you have
  57996. // the required permissions, the error response is DryRunOperation. Otherwise,
  57997. // it is UnauthorizedOperation.
  57998. DryRun *bool `type:"boolean"`
  57999. // (Gateway endpoint) A policy document to attach to the endpoint. The policy
  58000. // must be in valid JSON format.
  58001. PolicyDocument *string `type:"string"`
  58002. // (Interface endpoint) Indicate whether a private hosted zone is associated
  58003. // with the VPC.
  58004. PrivateDnsEnabled *bool `type:"boolean"`
  58005. // (Gateway endpoint) One or more route table IDs to disassociate from the endpoint.
  58006. RemoveRouteTableIds []*string `locationName:"RemoveRouteTableId" locationNameList:"item" type:"list"`
  58007. // (Interface endpoint) One or more security group IDs to disassociate from
  58008. // the network interface.
  58009. RemoveSecurityGroupIds []*string `locationName:"RemoveSecurityGroupId" locationNameList:"item" type:"list"`
  58010. // (Interface endpoint) One or more subnets IDs in which to remove the endpoint.
  58011. RemoveSubnetIds []*string `locationName:"RemoveSubnetId" locationNameList:"item" type:"list"`
  58012. // (Gateway endpoint) Specify true to reset the policy document to the default
  58013. // policy. The default policy allows full access to the service.
  58014. ResetPolicy *bool `type:"boolean"`
  58015. // The ID of the endpoint.
  58016. //
  58017. // VpcEndpointId is a required field
  58018. VpcEndpointId *string `type:"string" required:"true"`
  58019. }
  58020. // String returns the string representation
  58021. func (s ModifyVpcEndpointInput) String() string {
  58022. return awsutil.Prettify(s)
  58023. }
  58024. // GoString returns the string representation
  58025. func (s ModifyVpcEndpointInput) GoString() string {
  58026. return s.String()
  58027. }
  58028. // Validate inspects the fields of the type to determine if they are valid.
  58029. func (s *ModifyVpcEndpointInput) Validate() error {
  58030. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointInput"}
  58031. if s.VpcEndpointId == nil {
  58032. invalidParams.Add(request.NewErrParamRequired("VpcEndpointId"))
  58033. }
  58034. if invalidParams.Len() > 0 {
  58035. return invalidParams
  58036. }
  58037. return nil
  58038. }
  58039. // SetAddRouteTableIds sets the AddRouteTableIds field's value.
  58040. func (s *ModifyVpcEndpointInput) SetAddRouteTableIds(v []*string) *ModifyVpcEndpointInput {
  58041. s.AddRouteTableIds = v
  58042. return s
  58043. }
  58044. // SetAddSecurityGroupIds sets the AddSecurityGroupIds field's value.
  58045. func (s *ModifyVpcEndpointInput) SetAddSecurityGroupIds(v []*string) *ModifyVpcEndpointInput {
  58046. s.AddSecurityGroupIds = v
  58047. return s
  58048. }
  58049. // SetAddSubnetIds sets the AddSubnetIds field's value.
  58050. func (s *ModifyVpcEndpointInput) SetAddSubnetIds(v []*string) *ModifyVpcEndpointInput {
  58051. s.AddSubnetIds = v
  58052. return s
  58053. }
  58054. // SetDryRun sets the DryRun field's value.
  58055. func (s *ModifyVpcEndpointInput) SetDryRun(v bool) *ModifyVpcEndpointInput {
  58056. s.DryRun = &v
  58057. return s
  58058. }
  58059. // SetPolicyDocument sets the PolicyDocument field's value.
  58060. func (s *ModifyVpcEndpointInput) SetPolicyDocument(v string) *ModifyVpcEndpointInput {
  58061. s.PolicyDocument = &v
  58062. return s
  58063. }
  58064. // SetPrivateDnsEnabled sets the PrivateDnsEnabled field's value.
  58065. func (s *ModifyVpcEndpointInput) SetPrivateDnsEnabled(v bool) *ModifyVpcEndpointInput {
  58066. s.PrivateDnsEnabled = &v
  58067. return s
  58068. }
  58069. // SetRemoveRouteTableIds sets the RemoveRouteTableIds field's value.
  58070. func (s *ModifyVpcEndpointInput) SetRemoveRouteTableIds(v []*string) *ModifyVpcEndpointInput {
  58071. s.RemoveRouteTableIds = v
  58072. return s
  58073. }
  58074. // SetRemoveSecurityGroupIds sets the RemoveSecurityGroupIds field's value.
  58075. func (s *ModifyVpcEndpointInput) SetRemoveSecurityGroupIds(v []*string) *ModifyVpcEndpointInput {
  58076. s.RemoveSecurityGroupIds = v
  58077. return s
  58078. }
  58079. // SetRemoveSubnetIds sets the RemoveSubnetIds field's value.
  58080. func (s *ModifyVpcEndpointInput) SetRemoveSubnetIds(v []*string) *ModifyVpcEndpointInput {
  58081. s.RemoveSubnetIds = v
  58082. return s
  58083. }
  58084. // SetResetPolicy sets the ResetPolicy field's value.
  58085. func (s *ModifyVpcEndpointInput) SetResetPolicy(v bool) *ModifyVpcEndpointInput {
  58086. s.ResetPolicy = &v
  58087. return s
  58088. }
  58089. // SetVpcEndpointId sets the VpcEndpointId field's value.
  58090. func (s *ModifyVpcEndpointInput) SetVpcEndpointId(v string) *ModifyVpcEndpointInput {
  58091. s.VpcEndpointId = &v
  58092. return s
  58093. }
  58094. type ModifyVpcEndpointOutput struct {
  58095. _ struct{} `type:"structure"`
  58096. // Returns true if the request succeeds; otherwise, it returns an error.
  58097. Return *bool `locationName:"return" type:"boolean"`
  58098. }
  58099. // String returns the string representation
  58100. func (s ModifyVpcEndpointOutput) String() string {
  58101. return awsutil.Prettify(s)
  58102. }
  58103. // GoString returns the string representation
  58104. func (s ModifyVpcEndpointOutput) GoString() string {
  58105. return s.String()
  58106. }
  58107. // SetReturn sets the Return field's value.
  58108. func (s *ModifyVpcEndpointOutput) SetReturn(v bool) *ModifyVpcEndpointOutput {
  58109. s.Return = &v
  58110. return s
  58111. }
  58112. type ModifyVpcEndpointServiceConfigurationInput struct {
  58113. _ struct{} `type:"structure"`
  58114. // Indicate whether requests to create an endpoint to your service must be accepted.
  58115. AcceptanceRequired *bool `type:"boolean"`
  58116. // The Amazon Resource Names (ARNs) of Network Load Balancers to add to your
  58117. // service configuration.
  58118. AddNetworkLoadBalancerArns []*string `locationName:"AddNetworkLoadBalancerArn" locationNameList:"item" type:"list"`
  58119. // Checks whether you have the required permissions for the action, without
  58120. // actually making the request, and provides an error response. If you have
  58121. // the required permissions, the error response is DryRunOperation. Otherwise,
  58122. // it is UnauthorizedOperation.
  58123. DryRun *bool `type:"boolean"`
  58124. // The Amazon Resource Names (ARNs) of Network Load Balancers to remove from
  58125. // your service configuration.
  58126. RemoveNetworkLoadBalancerArns []*string `locationName:"RemoveNetworkLoadBalancerArn" locationNameList:"item" type:"list"`
  58127. // The ID of the service.
  58128. //
  58129. // ServiceId is a required field
  58130. ServiceId *string `type:"string" required:"true"`
  58131. }
  58132. // String returns the string representation
  58133. func (s ModifyVpcEndpointServiceConfigurationInput) String() string {
  58134. return awsutil.Prettify(s)
  58135. }
  58136. // GoString returns the string representation
  58137. func (s ModifyVpcEndpointServiceConfigurationInput) GoString() string {
  58138. return s.String()
  58139. }
  58140. // Validate inspects the fields of the type to determine if they are valid.
  58141. func (s *ModifyVpcEndpointServiceConfigurationInput) Validate() error {
  58142. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointServiceConfigurationInput"}
  58143. if s.ServiceId == nil {
  58144. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  58145. }
  58146. if invalidParams.Len() > 0 {
  58147. return invalidParams
  58148. }
  58149. return nil
  58150. }
  58151. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  58152. func (s *ModifyVpcEndpointServiceConfigurationInput) SetAcceptanceRequired(v bool) *ModifyVpcEndpointServiceConfigurationInput {
  58153. s.AcceptanceRequired = &v
  58154. return s
  58155. }
  58156. // SetAddNetworkLoadBalancerArns sets the AddNetworkLoadBalancerArns field's value.
  58157. func (s *ModifyVpcEndpointServiceConfigurationInput) SetAddNetworkLoadBalancerArns(v []*string) *ModifyVpcEndpointServiceConfigurationInput {
  58158. s.AddNetworkLoadBalancerArns = v
  58159. return s
  58160. }
  58161. // SetDryRun sets the DryRun field's value.
  58162. func (s *ModifyVpcEndpointServiceConfigurationInput) SetDryRun(v bool) *ModifyVpcEndpointServiceConfigurationInput {
  58163. s.DryRun = &v
  58164. return s
  58165. }
  58166. // SetRemoveNetworkLoadBalancerArns sets the RemoveNetworkLoadBalancerArns field's value.
  58167. func (s *ModifyVpcEndpointServiceConfigurationInput) SetRemoveNetworkLoadBalancerArns(v []*string) *ModifyVpcEndpointServiceConfigurationInput {
  58168. s.RemoveNetworkLoadBalancerArns = v
  58169. return s
  58170. }
  58171. // SetServiceId sets the ServiceId field's value.
  58172. func (s *ModifyVpcEndpointServiceConfigurationInput) SetServiceId(v string) *ModifyVpcEndpointServiceConfigurationInput {
  58173. s.ServiceId = &v
  58174. return s
  58175. }
  58176. type ModifyVpcEndpointServiceConfigurationOutput struct {
  58177. _ struct{} `type:"structure"`
  58178. // Returns true if the request succeeds; otherwise, it returns an error.
  58179. Return *bool `locationName:"return" type:"boolean"`
  58180. }
  58181. // String returns the string representation
  58182. func (s ModifyVpcEndpointServiceConfigurationOutput) String() string {
  58183. return awsutil.Prettify(s)
  58184. }
  58185. // GoString returns the string representation
  58186. func (s ModifyVpcEndpointServiceConfigurationOutput) GoString() string {
  58187. return s.String()
  58188. }
  58189. // SetReturn sets the Return field's value.
  58190. func (s *ModifyVpcEndpointServiceConfigurationOutput) SetReturn(v bool) *ModifyVpcEndpointServiceConfigurationOutput {
  58191. s.Return = &v
  58192. return s
  58193. }
  58194. type ModifyVpcEndpointServicePermissionsInput struct {
  58195. _ struct{} `type:"structure"`
  58196. // The Amazon Resource Names (ARN) of one or more principals. Permissions are
  58197. // granted to the principals in this list. To grant permissions to all principals,
  58198. // specify an asterisk (*).
  58199. AddAllowedPrincipals []*string `locationNameList:"item" type:"list"`
  58200. // Checks whether you have the required permissions for the action, without
  58201. // actually making the request, and provides an error response. If you have
  58202. // the required permissions, the error response is DryRunOperation. Otherwise,
  58203. // it is UnauthorizedOperation.
  58204. DryRun *bool `type:"boolean"`
  58205. // The Amazon Resource Names (ARN) of one or more principals. Permissions are
  58206. // revoked for principals in this list.
  58207. RemoveAllowedPrincipals []*string `locationNameList:"item" type:"list"`
  58208. // The ID of the service.
  58209. //
  58210. // ServiceId is a required field
  58211. ServiceId *string `type:"string" required:"true"`
  58212. }
  58213. // String returns the string representation
  58214. func (s ModifyVpcEndpointServicePermissionsInput) String() string {
  58215. return awsutil.Prettify(s)
  58216. }
  58217. // GoString returns the string representation
  58218. func (s ModifyVpcEndpointServicePermissionsInput) GoString() string {
  58219. return s.String()
  58220. }
  58221. // Validate inspects the fields of the type to determine if they are valid.
  58222. func (s *ModifyVpcEndpointServicePermissionsInput) Validate() error {
  58223. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointServicePermissionsInput"}
  58224. if s.ServiceId == nil {
  58225. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  58226. }
  58227. if invalidParams.Len() > 0 {
  58228. return invalidParams
  58229. }
  58230. return nil
  58231. }
  58232. // SetAddAllowedPrincipals sets the AddAllowedPrincipals field's value.
  58233. func (s *ModifyVpcEndpointServicePermissionsInput) SetAddAllowedPrincipals(v []*string) *ModifyVpcEndpointServicePermissionsInput {
  58234. s.AddAllowedPrincipals = v
  58235. return s
  58236. }
  58237. // SetDryRun sets the DryRun field's value.
  58238. func (s *ModifyVpcEndpointServicePermissionsInput) SetDryRun(v bool) *ModifyVpcEndpointServicePermissionsInput {
  58239. s.DryRun = &v
  58240. return s
  58241. }
  58242. // SetRemoveAllowedPrincipals sets the RemoveAllowedPrincipals field's value.
  58243. func (s *ModifyVpcEndpointServicePermissionsInput) SetRemoveAllowedPrincipals(v []*string) *ModifyVpcEndpointServicePermissionsInput {
  58244. s.RemoveAllowedPrincipals = v
  58245. return s
  58246. }
  58247. // SetServiceId sets the ServiceId field's value.
  58248. func (s *ModifyVpcEndpointServicePermissionsInput) SetServiceId(v string) *ModifyVpcEndpointServicePermissionsInput {
  58249. s.ServiceId = &v
  58250. return s
  58251. }
  58252. type ModifyVpcEndpointServicePermissionsOutput struct {
  58253. _ struct{} `type:"structure"`
  58254. // Returns true if the request succeeds; otherwise, it returns an error.
  58255. ReturnValue *bool `locationName:"return" type:"boolean"`
  58256. }
  58257. // String returns the string representation
  58258. func (s ModifyVpcEndpointServicePermissionsOutput) String() string {
  58259. return awsutil.Prettify(s)
  58260. }
  58261. // GoString returns the string representation
  58262. func (s ModifyVpcEndpointServicePermissionsOutput) GoString() string {
  58263. return s.String()
  58264. }
  58265. // SetReturnValue sets the ReturnValue field's value.
  58266. func (s *ModifyVpcEndpointServicePermissionsOutput) SetReturnValue(v bool) *ModifyVpcEndpointServicePermissionsOutput {
  58267. s.ReturnValue = &v
  58268. return s
  58269. }
  58270. type ModifyVpcPeeringConnectionOptionsInput struct {
  58271. _ struct{} `type:"structure"`
  58272. // The VPC peering connection options for the accepter VPC.
  58273. AccepterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`
  58274. // Checks whether you have the required permissions for the action, without
  58275. // actually making the request, and provides an error response. If you have
  58276. // the required permissions, the error response is DryRunOperation. Otherwise,
  58277. // it is UnauthorizedOperation.
  58278. DryRun *bool `type:"boolean"`
  58279. // The VPC peering connection options for the requester VPC.
  58280. RequesterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`
  58281. // The ID of the VPC peering connection.
  58282. //
  58283. // VpcPeeringConnectionId is a required field
  58284. VpcPeeringConnectionId *string `type:"string" required:"true"`
  58285. }
  58286. // String returns the string representation
  58287. func (s ModifyVpcPeeringConnectionOptionsInput) String() string {
  58288. return awsutil.Prettify(s)
  58289. }
  58290. // GoString returns the string representation
  58291. func (s ModifyVpcPeeringConnectionOptionsInput) GoString() string {
  58292. return s.String()
  58293. }
  58294. // Validate inspects the fields of the type to determine if they are valid.
  58295. func (s *ModifyVpcPeeringConnectionOptionsInput) Validate() error {
  58296. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcPeeringConnectionOptionsInput"}
  58297. if s.VpcPeeringConnectionId == nil {
  58298. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  58299. }
  58300. if invalidParams.Len() > 0 {
  58301. return invalidParams
  58302. }
  58303. return nil
  58304. }
  58305. // SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value.
  58306. func (s *ModifyVpcPeeringConnectionOptionsInput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput {
  58307. s.AccepterPeeringConnectionOptions = v
  58308. return s
  58309. }
  58310. // SetDryRun sets the DryRun field's value.
  58311. func (s *ModifyVpcPeeringConnectionOptionsInput) SetDryRun(v bool) *ModifyVpcPeeringConnectionOptionsInput {
  58312. s.DryRun = &v
  58313. return s
  58314. }
  58315. // SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value.
  58316. func (s *ModifyVpcPeeringConnectionOptionsInput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput {
  58317. s.RequesterPeeringConnectionOptions = v
  58318. return s
  58319. }
  58320. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  58321. func (s *ModifyVpcPeeringConnectionOptionsInput) SetVpcPeeringConnectionId(v string) *ModifyVpcPeeringConnectionOptionsInput {
  58322. s.VpcPeeringConnectionId = &v
  58323. return s
  58324. }
  58325. type ModifyVpcPeeringConnectionOptionsOutput struct {
  58326. _ struct{} `type:"structure"`
  58327. // Information about the VPC peering connection options for the accepter VPC.
  58328. AccepterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"accepterPeeringConnectionOptions" type:"structure"`
  58329. // Information about the VPC peering connection options for the requester VPC.
  58330. RequesterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"requesterPeeringConnectionOptions" type:"structure"`
  58331. }
  58332. // String returns the string representation
  58333. func (s ModifyVpcPeeringConnectionOptionsOutput) String() string {
  58334. return awsutil.Prettify(s)
  58335. }
  58336. // GoString returns the string representation
  58337. func (s ModifyVpcPeeringConnectionOptionsOutput) GoString() string {
  58338. return s.String()
  58339. }
  58340. // SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value.
  58341. func (s *ModifyVpcPeeringConnectionOptionsOutput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput {
  58342. s.AccepterPeeringConnectionOptions = v
  58343. return s
  58344. }
  58345. // SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value.
  58346. func (s *ModifyVpcPeeringConnectionOptionsOutput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput {
  58347. s.RequesterPeeringConnectionOptions = v
  58348. return s
  58349. }
  58350. type ModifyVpcTenancyInput struct {
  58351. _ struct{} `type:"structure"`
  58352. // Checks whether you have the required permissions for the action, without
  58353. // actually making the request, and provides an error response. If you have
  58354. // the required permissions, the error response is DryRunOperation. Otherwise,
  58355. // it is UnauthorizedOperation.
  58356. DryRun *bool `type:"boolean"`
  58357. // The instance tenancy attribute for the VPC.
  58358. //
  58359. // InstanceTenancy is a required field
  58360. InstanceTenancy *string `type:"string" required:"true" enum:"VpcTenancy"`
  58361. // The ID of the VPC.
  58362. //
  58363. // VpcId is a required field
  58364. VpcId *string `type:"string" required:"true"`
  58365. }
  58366. // String returns the string representation
  58367. func (s ModifyVpcTenancyInput) String() string {
  58368. return awsutil.Prettify(s)
  58369. }
  58370. // GoString returns the string representation
  58371. func (s ModifyVpcTenancyInput) GoString() string {
  58372. return s.String()
  58373. }
  58374. // Validate inspects the fields of the type to determine if they are valid.
  58375. func (s *ModifyVpcTenancyInput) Validate() error {
  58376. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcTenancyInput"}
  58377. if s.InstanceTenancy == nil {
  58378. invalidParams.Add(request.NewErrParamRequired("InstanceTenancy"))
  58379. }
  58380. if s.VpcId == nil {
  58381. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  58382. }
  58383. if invalidParams.Len() > 0 {
  58384. return invalidParams
  58385. }
  58386. return nil
  58387. }
  58388. // SetDryRun sets the DryRun field's value.
  58389. func (s *ModifyVpcTenancyInput) SetDryRun(v bool) *ModifyVpcTenancyInput {
  58390. s.DryRun = &v
  58391. return s
  58392. }
  58393. // SetInstanceTenancy sets the InstanceTenancy field's value.
  58394. func (s *ModifyVpcTenancyInput) SetInstanceTenancy(v string) *ModifyVpcTenancyInput {
  58395. s.InstanceTenancy = &v
  58396. return s
  58397. }
  58398. // SetVpcId sets the VpcId field's value.
  58399. func (s *ModifyVpcTenancyInput) SetVpcId(v string) *ModifyVpcTenancyInput {
  58400. s.VpcId = &v
  58401. return s
  58402. }
  58403. type ModifyVpcTenancyOutput struct {
  58404. _ struct{} `type:"structure"`
  58405. // Returns true if the request succeeds; otherwise, returns an error.
  58406. ReturnValue *bool `locationName:"return" type:"boolean"`
  58407. }
  58408. // String returns the string representation
  58409. func (s ModifyVpcTenancyOutput) String() string {
  58410. return awsutil.Prettify(s)
  58411. }
  58412. // GoString returns the string representation
  58413. func (s ModifyVpcTenancyOutput) GoString() string {
  58414. return s.String()
  58415. }
  58416. // SetReturnValue sets the ReturnValue field's value.
  58417. func (s *ModifyVpcTenancyOutput) SetReturnValue(v bool) *ModifyVpcTenancyOutput {
  58418. s.ReturnValue = &v
  58419. return s
  58420. }
  58421. type MonitorInstancesInput struct {
  58422. _ struct{} `type:"structure"`
  58423. // Checks whether you have the required permissions for the action, without
  58424. // actually making the request, and provides an error response. If you have
  58425. // the required permissions, the error response is DryRunOperation. Otherwise,
  58426. // it is UnauthorizedOperation.
  58427. DryRun *bool `locationName:"dryRun" type:"boolean"`
  58428. // One or more instance IDs.
  58429. //
  58430. // InstanceIds is a required field
  58431. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  58432. }
  58433. // String returns the string representation
  58434. func (s MonitorInstancesInput) String() string {
  58435. return awsutil.Prettify(s)
  58436. }
  58437. // GoString returns the string representation
  58438. func (s MonitorInstancesInput) GoString() string {
  58439. return s.String()
  58440. }
  58441. // Validate inspects the fields of the type to determine if they are valid.
  58442. func (s *MonitorInstancesInput) Validate() error {
  58443. invalidParams := request.ErrInvalidParams{Context: "MonitorInstancesInput"}
  58444. if s.InstanceIds == nil {
  58445. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  58446. }
  58447. if invalidParams.Len() > 0 {
  58448. return invalidParams
  58449. }
  58450. return nil
  58451. }
  58452. // SetDryRun sets the DryRun field's value.
  58453. func (s *MonitorInstancesInput) SetDryRun(v bool) *MonitorInstancesInput {
  58454. s.DryRun = &v
  58455. return s
  58456. }
  58457. // SetInstanceIds sets the InstanceIds field's value.
  58458. func (s *MonitorInstancesInput) SetInstanceIds(v []*string) *MonitorInstancesInput {
  58459. s.InstanceIds = v
  58460. return s
  58461. }
  58462. type MonitorInstancesOutput struct {
  58463. _ struct{} `type:"structure"`
  58464. // The monitoring information.
  58465. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
  58466. }
  58467. // String returns the string representation
  58468. func (s MonitorInstancesOutput) String() string {
  58469. return awsutil.Prettify(s)
  58470. }
  58471. // GoString returns the string representation
  58472. func (s MonitorInstancesOutput) GoString() string {
  58473. return s.String()
  58474. }
  58475. // SetInstanceMonitorings sets the InstanceMonitorings field's value.
  58476. func (s *MonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *MonitorInstancesOutput {
  58477. s.InstanceMonitorings = v
  58478. return s
  58479. }
  58480. // Describes the monitoring of an instance.
  58481. type Monitoring struct {
  58482. _ struct{} `type:"structure"`
  58483. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  58484. // is enabled.
  58485. State *string `locationName:"state" type:"string" enum:"MonitoringState"`
  58486. }
  58487. // String returns the string representation
  58488. func (s Monitoring) String() string {
  58489. return awsutil.Prettify(s)
  58490. }
  58491. // GoString returns the string representation
  58492. func (s Monitoring) GoString() string {
  58493. return s.String()
  58494. }
  58495. // SetState sets the State field's value.
  58496. func (s *Monitoring) SetState(v string) *Monitoring {
  58497. s.State = &v
  58498. return s
  58499. }
  58500. type MoveAddressToVpcInput struct {
  58501. _ struct{} `type:"structure"`
  58502. // Checks whether you have the required permissions for the action, without
  58503. // actually making the request, and provides an error response. If you have
  58504. // the required permissions, the error response is DryRunOperation. Otherwise,
  58505. // it is UnauthorizedOperation.
  58506. DryRun *bool `locationName:"dryRun" type:"boolean"`
  58507. // The Elastic IP address.
  58508. //
  58509. // PublicIp is a required field
  58510. PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
  58511. }
  58512. // String returns the string representation
  58513. func (s MoveAddressToVpcInput) String() string {
  58514. return awsutil.Prettify(s)
  58515. }
  58516. // GoString returns the string representation
  58517. func (s MoveAddressToVpcInput) GoString() string {
  58518. return s.String()
  58519. }
  58520. // Validate inspects the fields of the type to determine if they are valid.
  58521. func (s *MoveAddressToVpcInput) Validate() error {
  58522. invalidParams := request.ErrInvalidParams{Context: "MoveAddressToVpcInput"}
  58523. if s.PublicIp == nil {
  58524. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  58525. }
  58526. if invalidParams.Len() > 0 {
  58527. return invalidParams
  58528. }
  58529. return nil
  58530. }
  58531. // SetDryRun sets the DryRun field's value.
  58532. func (s *MoveAddressToVpcInput) SetDryRun(v bool) *MoveAddressToVpcInput {
  58533. s.DryRun = &v
  58534. return s
  58535. }
  58536. // SetPublicIp sets the PublicIp field's value.
  58537. func (s *MoveAddressToVpcInput) SetPublicIp(v string) *MoveAddressToVpcInput {
  58538. s.PublicIp = &v
  58539. return s
  58540. }
  58541. type MoveAddressToVpcOutput struct {
  58542. _ struct{} `type:"structure"`
  58543. // The allocation ID for the Elastic IP address.
  58544. AllocationId *string `locationName:"allocationId" type:"string"`
  58545. // The status of the move of the IP address.
  58546. Status *string `locationName:"status" type:"string" enum:"Status"`
  58547. }
  58548. // String returns the string representation
  58549. func (s MoveAddressToVpcOutput) String() string {
  58550. return awsutil.Prettify(s)
  58551. }
  58552. // GoString returns the string representation
  58553. func (s MoveAddressToVpcOutput) GoString() string {
  58554. return s.String()
  58555. }
  58556. // SetAllocationId sets the AllocationId field's value.
  58557. func (s *MoveAddressToVpcOutput) SetAllocationId(v string) *MoveAddressToVpcOutput {
  58558. s.AllocationId = &v
  58559. return s
  58560. }
  58561. // SetStatus sets the Status field's value.
  58562. func (s *MoveAddressToVpcOutput) SetStatus(v string) *MoveAddressToVpcOutput {
  58563. s.Status = &v
  58564. return s
  58565. }
  58566. // Describes the status of a moving Elastic IP address.
  58567. type MovingAddressStatus struct {
  58568. _ struct{} `type:"structure"`
  58569. // The status of the Elastic IP address that's being moved to the EC2-VPC platform,
  58570. // or restored to the EC2-Classic platform.
  58571. MoveStatus *string `locationName:"moveStatus" type:"string" enum:"MoveStatus"`
  58572. // The Elastic IP address.
  58573. PublicIp *string `locationName:"publicIp" type:"string"`
  58574. }
  58575. // String returns the string representation
  58576. func (s MovingAddressStatus) String() string {
  58577. return awsutil.Prettify(s)
  58578. }
  58579. // GoString returns the string representation
  58580. func (s MovingAddressStatus) GoString() string {
  58581. return s.String()
  58582. }
  58583. // SetMoveStatus sets the MoveStatus field's value.
  58584. func (s *MovingAddressStatus) SetMoveStatus(v string) *MovingAddressStatus {
  58585. s.MoveStatus = &v
  58586. return s
  58587. }
  58588. // SetPublicIp sets the PublicIp field's value.
  58589. func (s *MovingAddressStatus) SetPublicIp(v string) *MovingAddressStatus {
  58590. s.PublicIp = &v
  58591. return s
  58592. }
  58593. // Describes a NAT gateway.
  58594. type NatGateway struct {
  58595. _ struct{} `type:"structure"`
  58596. // The date and time the NAT gateway was created.
  58597. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  58598. // The date and time the NAT gateway was deleted, if applicable.
  58599. DeleteTime *time.Time `locationName:"deleteTime" type:"timestamp"`
  58600. // If the NAT gateway could not be created, specifies the error code for the
  58601. // failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound
  58602. // | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound)
  58603. FailureCode *string `locationName:"failureCode" type:"string"`
  58604. // If the NAT gateway could not be created, specifies the error message for
  58605. // the failure, that corresponds to the error code.
  58606. //
  58607. // * For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free
  58608. // addresses to create this NAT gateway"
  58609. //
  58610. // * For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway
  58611. // attached"
  58612. //
  58613. // * For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx
  58614. // could not be associated with this NAT gateway"
  58615. //
  58616. // * For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx
  58617. // is already associated"
  58618. //
  58619. // * For InternalError: "Network interface eni-xxxxxxxx, created and used
  58620. // internally by this NAT gateway is in an invalid state. Please try again."
  58621. //
  58622. // * For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx
  58623. // does not exist or could not be found."
  58624. FailureMessage *string `locationName:"failureMessage" type:"string"`
  58625. // Information about the IP addresses and network interface associated with
  58626. // the NAT gateway.
  58627. NatGatewayAddresses []*NatGatewayAddress `locationName:"natGatewayAddressSet" locationNameList:"item" type:"list"`
  58628. // The ID of the NAT gateway.
  58629. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  58630. // Reserved. If you need to sustain traffic greater than the documented limits
  58631. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  58632. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  58633. ProvisionedBandwidth *ProvisionedBandwidth `locationName:"provisionedBandwidth" type:"structure"`
  58634. // The state of the NAT gateway.
  58635. //
  58636. // * pending: The NAT gateway is being created and is not ready to process
  58637. // traffic.
  58638. //
  58639. // * failed: The NAT gateway could not be created. Check the failureCode
  58640. // and failureMessage fields for the reason.
  58641. //
  58642. // * available: The NAT gateway is able to process traffic. This status remains
  58643. // until you delete the NAT gateway, and does not indicate the health of
  58644. // the NAT gateway.
  58645. //
  58646. // * deleting: The NAT gateway is in the process of being terminated and
  58647. // may still be processing traffic.
  58648. //
  58649. // * deleted: The NAT gateway has been terminated and is no longer processing
  58650. // traffic.
  58651. State *string `locationName:"state" type:"string" enum:"NatGatewayState"`
  58652. // The ID of the subnet in which the NAT gateway is located.
  58653. SubnetId *string `locationName:"subnetId" type:"string"`
  58654. // The tags for the NAT gateway.
  58655. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  58656. // The ID of the VPC in which the NAT gateway is located.
  58657. VpcId *string `locationName:"vpcId" type:"string"`
  58658. }
  58659. // String returns the string representation
  58660. func (s NatGateway) String() string {
  58661. return awsutil.Prettify(s)
  58662. }
  58663. // GoString returns the string representation
  58664. func (s NatGateway) GoString() string {
  58665. return s.String()
  58666. }
  58667. // SetCreateTime sets the CreateTime field's value.
  58668. func (s *NatGateway) SetCreateTime(v time.Time) *NatGateway {
  58669. s.CreateTime = &v
  58670. return s
  58671. }
  58672. // SetDeleteTime sets the DeleteTime field's value.
  58673. func (s *NatGateway) SetDeleteTime(v time.Time) *NatGateway {
  58674. s.DeleteTime = &v
  58675. return s
  58676. }
  58677. // SetFailureCode sets the FailureCode field's value.
  58678. func (s *NatGateway) SetFailureCode(v string) *NatGateway {
  58679. s.FailureCode = &v
  58680. return s
  58681. }
  58682. // SetFailureMessage sets the FailureMessage field's value.
  58683. func (s *NatGateway) SetFailureMessage(v string) *NatGateway {
  58684. s.FailureMessage = &v
  58685. return s
  58686. }
  58687. // SetNatGatewayAddresses sets the NatGatewayAddresses field's value.
  58688. func (s *NatGateway) SetNatGatewayAddresses(v []*NatGatewayAddress) *NatGateway {
  58689. s.NatGatewayAddresses = v
  58690. return s
  58691. }
  58692. // SetNatGatewayId sets the NatGatewayId field's value.
  58693. func (s *NatGateway) SetNatGatewayId(v string) *NatGateway {
  58694. s.NatGatewayId = &v
  58695. return s
  58696. }
  58697. // SetProvisionedBandwidth sets the ProvisionedBandwidth field's value.
  58698. func (s *NatGateway) SetProvisionedBandwidth(v *ProvisionedBandwidth) *NatGateway {
  58699. s.ProvisionedBandwidth = v
  58700. return s
  58701. }
  58702. // SetState sets the State field's value.
  58703. func (s *NatGateway) SetState(v string) *NatGateway {
  58704. s.State = &v
  58705. return s
  58706. }
  58707. // SetSubnetId sets the SubnetId field's value.
  58708. func (s *NatGateway) SetSubnetId(v string) *NatGateway {
  58709. s.SubnetId = &v
  58710. return s
  58711. }
  58712. // SetTags sets the Tags field's value.
  58713. func (s *NatGateway) SetTags(v []*Tag) *NatGateway {
  58714. s.Tags = v
  58715. return s
  58716. }
  58717. // SetVpcId sets the VpcId field's value.
  58718. func (s *NatGateway) SetVpcId(v string) *NatGateway {
  58719. s.VpcId = &v
  58720. return s
  58721. }
  58722. // Describes the IP addresses and network interface associated with a NAT gateway.
  58723. type NatGatewayAddress struct {
  58724. _ struct{} `type:"structure"`
  58725. // The allocation ID of the Elastic IP address that's associated with the NAT
  58726. // gateway.
  58727. AllocationId *string `locationName:"allocationId" type:"string"`
  58728. // The ID of the network interface associated with the NAT gateway.
  58729. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  58730. // The private IP address associated with the Elastic IP address.
  58731. PrivateIp *string `locationName:"privateIp" type:"string"`
  58732. // The Elastic IP address associated with the NAT gateway.
  58733. PublicIp *string `locationName:"publicIp" type:"string"`
  58734. }
  58735. // String returns the string representation
  58736. func (s NatGatewayAddress) String() string {
  58737. return awsutil.Prettify(s)
  58738. }
  58739. // GoString returns the string representation
  58740. func (s NatGatewayAddress) GoString() string {
  58741. return s.String()
  58742. }
  58743. // SetAllocationId sets the AllocationId field's value.
  58744. func (s *NatGatewayAddress) SetAllocationId(v string) *NatGatewayAddress {
  58745. s.AllocationId = &v
  58746. return s
  58747. }
  58748. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  58749. func (s *NatGatewayAddress) SetNetworkInterfaceId(v string) *NatGatewayAddress {
  58750. s.NetworkInterfaceId = &v
  58751. return s
  58752. }
  58753. // SetPrivateIp sets the PrivateIp field's value.
  58754. func (s *NatGatewayAddress) SetPrivateIp(v string) *NatGatewayAddress {
  58755. s.PrivateIp = &v
  58756. return s
  58757. }
  58758. // SetPublicIp sets the PublicIp field's value.
  58759. func (s *NatGatewayAddress) SetPublicIp(v string) *NatGatewayAddress {
  58760. s.PublicIp = &v
  58761. return s
  58762. }
  58763. // Describes a network ACL.
  58764. type NetworkAcl struct {
  58765. _ struct{} `type:"structure"`
  58766. // Any associations between the network ACL and one or more subnets
  58767. Associations []*NetworkAclAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`
  58768. // One or more entries (rules) in the network ACL.
  58769. Entries []*NetworkAclEntry `locationName:"entrySet" locationNameList:"item" type:"list"`
  58770. // Indicates whether this is the default network ACL for the VPC.
  58771. IsDefault *bool `locationName:"default" type:"boolean"`
  58772. // The ID of the network ACL.
  58773. NetworkAclId *string `locationName:"networkAclId" type:"string"`
  58774. // The ID of the AWS account that owns the network ACL.
  58775. OwnerId *string `locationName:"ownerId" type:"string"`
  58776. // Any tags assigned to the network ACL.
  58777. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  58778. // The ID of the VPC for the network ACL.
  58779. VpcId *string `locationName:"vpcId" type:"string"`
  58780. }
  58781. // String returns the string representation
  58782. func (s NetworkAcl) String() string {
  58783. return awsutil.Prettify(s)
  58784. }
  58785. // GoString returns the string representation
  58786. func (s NetworkAcl) GoString() string {
  58787. return s.String()
  58788. }
  58789. // SetAssociations sets the Associations field's value.
  58790. func (s *NetworkAcl) SetAssociations(v []*NetworkAclAssociation) *NetworkAcl {
  58791. s.Associations = v
  58792. return s
  58793. }
  58794. // SetEntries sets the Entries field's value.
  58795. func (s *NetworkAcl) SetEntries(v []*NetworkAclEntry) *NetworkAcl {
  58796. s.Entries = v
  58797. return s
  58798. }
  58799. // SetIsDefault sets the IsDefault field's value.
  58800. func (s *NetworkAcl) SetIsDefault(v bool) *NetworkAcl {
  58801. s.IsDefault = &v
  58802. return s
  58803. }
  58804. // SetNetworkAclId sets the NetworkAclId field's value.
  58805. func (s *NetworkAcl) SetNetworkAclId(v string) *NetworkAcl {
  58806. s.NetworkAclId = &v
  58807. return s
  58808. }
  58809. // SetOwnerId sets the OwnerId field's value.
  58810. func (s *NetworkAcl) SetOwnerId(v string) *NetworkAcl {
  58811. s.OwnerId = &v
  58812. return s
  58813. }
  58814. // SetTags sets the Tags field's value.
  58815. func (s *NetworkAcl) SetTags(v []*Tag) *NetworkAcl {
  58816. s.Tags = v
  58817. return s
  58818. }
  58819. // SetVpcId sets the VpcId field's value.
  58820. func (s *NetworkAcl) SetVpcId(v string) *NetworkAcl {
  58821. s.VpcId = &v
  58822. return s
  58823. }
  58824. // Describes an association between a network ACL and a subnet.
  58825. type NetworkAclAssociation struct {
  58826. _ struct{} `type:"structure"`
  58827. // The ID of the association between a network ACL and a subnet.
  58828. NetworkAclAssociationId *string `locationName:"networkAclAssociationId" type:"string"`
  58829. // The ID of the network ACL.
  58830. NetworkAclId *string `locationName:"networkAclId" type:"string"`
  58831. // The ID of the subnet.
  58832. SubnetId *string `locationName:"subnetId" type:"string"`
  58833. }
  58834. // String returns the string representation
  58835. func (s NetworkAclAssociation) String() string {
  58836. return awsutil.Prettify(s)
  58837. }
  58838. // GoString returns the string representation
  58839. func (s NetworkAclAssociation) GoString() string {
  58840. return s.String()
  58841. }
  58842. // SetNetworkAclAssociationId sets the NetworkAclAssociationId field's value.
  58843. func (s *NetworkAclAssociation) SetNetworkAclAssociationId(v string) *NetworkAclAssociation {
  58844. s.NetworkAclAssociationId = &v
  58845. return s
  58846. }
  58847. // SetNetworkAclId sets the NetworkAclId field's value.
  58848. func (s *NetworkAclAssociation) SetNetworkAclId(v string) *NetworkAclAssociation {
  58849. s.NetworkAclId = &v
  58850. return s
  58851. }
  58852. // SetSubnetId sets the SubnetId field's value.
  58853. func (s *NetworkAclAssociation) SetSubnetId(v string) *NetworkAclAssociation {
  58854. s.SubnetId = &v
  58855. return s
  58856. }
  58857. // Describes an entry in a network ACL.
  58858. type NetworkAclEntry struct {
  58859. _ struct{} `type:"structure"`
  58860. // The IPv4 network range to allow or deny, in CIDR notation.
  58861. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  58862. // Indicates whether the rule is an egress rule (applied to traffic leaving
  58863. // the subnet).
  58864. Egress *bool `locationName:"egress" type:"boolean"`
  58865. // ICMP protocol: The ICMP type and code.
  58866. IcmpTypeCode *IcmpTypeCode `locationName:"icmpTypeCode" type:"structure"`
  58867. // The IPv6 network range to allow or deny, in CIDR notation.
  58868. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  58869. // TCP or UDP protocols: The range of ports the rule applies to.
  58870. PortRange *PortRange `locationName:"portRange" type:"structure"`
  58871. // The protocol number. A value of "-1" means all protocols.
  58872. Protocol *string `locationName:"protocol" type:"string"`
  58873. // Indicates whether to allow or deny the traffic that matches the rule.
  58874. RuleAction *string `locationName:"ruleAction" type:"string" enum:"RuleAction"`
  58875. // The rule number for the entry. ACL entries are processed in ascending order
  58876. // by rule number.
  58877. RuleNumber *int64 `locationName:"ruleNumber" type:"integer"`
  58878. }
  58879. // String returns the string representation
  58880. func (s NetworkAclEntry) String() string {
  58881. return awsutil.Prettify(s)
  58882. }
  58883. // GoString returns the string representation
  58884. func (s NetworkAclEntry) GoString() string {
  58885. return s.String()
  58886. }
  58887. // SetCidrBlock sets the CidrBlock field's value.
  58888. func (s *NetworkAclEntry) SetCidrBlock(v string) *NetworkAclEntry {
  58889. s.CidrBlock = &v
  58890. return s
  58891. }
  58892. // SetEgress sets the Egress field's value.
  58893. func (s *NetworkAclEntry) SetEgress(v bool) *NetworkAclEntry {
  58894. s.Egress = &v
  58895. return s
  58896. }
  58897. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  58898. func (s *NetworkAclEntry) SetIcmpTypeCode(v *IcmpTypeCode) *NetworkAclEntry {
  58899. s.IcmpTypeCode = v
  58900. return s
  58901. }
  58902. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  58903. func (s *NetworkAclEntry) SetIpv6CidrBlock(v string) *NetworkAclEntry {
  58904. s.Ipv6CidrBlock = &v
  58905. return s
  58906. }
  58907. // SetPortRange sets the PortRange field's value.
  58908. func (s *NetworkAclEntry) SetPortRange(v *PortRange) *NetworkAclEntry {
  58909. s.PortRange = v
  58910. return s
  58911. }
  58912. // SetProtocol sets the Protocol field's value.
  58913. func (s *NetworkAclEntry) SetProtocol(v string) *NetworkAclEntry {
  58914. s.Protocol = &v
  58915. return s
  58916. }
  58917. // SetRuleAction sets the RuleAction field's value.
  58918. func (s *NetworkAclEntry) SetRuleAction(v string) *NetworkAclEntry {
  58919. s.RuleAction = &v
  58920. return s
  58921. }
  58922. // SetRuleNumber sets the RuleNumber field's value.
  58923. func (s *NetworkAclEntry) SetRuleNumber(v int64) *NetworkAclEntry {
  58924. s.RuleNumber = &v
  58925. return s
  58926. }
  58927. // Describes a network interface.
  58928. type NetworkInterface struct {
  58929. _ struct{} `type:"structure"`
  58930. // The association information for an Elastic IP address (IPv4) associated with
  58931. // the network interface.
  58932. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`
  58933. // The network interface attachment.
  58934. Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  58935. // The Availability Zone.
  58936. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  58937. // A description.
  58938. Description *string `locationName:"description" type:"string"`
  58939. // Any security groups for the network interface.
  58940. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  58941. // The type of interface.
  58942. InterfaceType *string `locationName:"interfaceType" type:"string" enum:"NetworkInterfaceType"`
  58943. // The IPv6 addresses associated with the network interface.
  58944. Ipv6Addresses []*NetworkInterfaceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  58945. // The MAC address.
  58946. MacAddress *string `locationName:"macAddress" type:"string"`
  58947. // The ID of the network interface.
  58948. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  58949. // The AWS account ID of the owner of the network interface.
  58950. OwnerId *string `locationName:"ownerId" type:"string"`
  58951. // The private DNS name.
  58952. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  58953. // The IPv4 address of the network interface within the subnet.
  58954. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  58955. // The private IPv4 addresses associated with the network interface.
  58956. PrivateIpAddresses []*NetworkInterfacePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  58957. // The ID of the entity that launched the instance on your behalf (for example,
  58958. // AWS Management Console or Auto Scaling).
  58959. RequesterId *string `locationName:"requesterId" type:"string"`
  58960. // Indicates whether the network interface is being managed by AWS.
  58961. RequesterManaged *bool `locationName:"requesterManaged" type:"boolean"`
  58962. // Indicates whether traffic to or from the instance is validated.
  58963. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  58964. // The status of the network interface.
  58965. Status *string `locationName:"status" type:"string" enum:"NetworkInterfaceStatus"`
  58966. // The ID of the subnet.
  58967. SubnetId *string `locationName:"subnetId" type:"string"`
  58968. // Any tags assigned to the network interface.
  58969. TagSet []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  58970. // The ID of the VPC.
  58971. VpcId *string `locationName:"vpcId" type:"string"`
  58972. }
  58973. // String returns the string representation
  58974. func (s NetworkInterface) String() string {
  58975. return awsutil.Prettify(s)
  58976. }
  58977. // GoString returns the string representation
  58978. func (s NetworkInterface) GoString() string {
  58979. return s.String()
  58980. }
  58981. // SetAssociation sets the Association field's value.
  58982. func (s *NetworkInterface) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterface {
  58983. s.Association = v
  58984. return s
  58985. }
  58986. // SetAttachment sets the Attachment field's value.
  58987. func (s *NetworkInterface) SetAttachment(v *NetworkInterfaceAttachment) *NetworkInterface {
  58988. s.Attachment = v
  58989. return s
  58990. }
  58991. // SetAvailabilityZone sets the AvailabilityZone field's value.
  58992. func (s *NetworkInterface) SetAvailabilityZone(v string) *NetworkInterface {
  58993. s.AvailabilityZone = &v
  58994. return s
  58995. }
  58996. // SetDescription sets the Description field's value.
  58997. func (s *NetworkInterface) SetDescription(v string) *NetworkInterface {
  58998. s.Description = &v
  58999. return s
  59000. }
  59001. // SetGroups sets the Groups field's value.
  59002. func (s *NetworkInterface) SetGroups(v []*GroupIdentifier) *NetworkInterface {
  59003. s.Groups = v
  59004. return s
  59005. }
  59006. // SetInterfaceType sets the InterfaceType field's value.
  59007. func (s *NetworkInterface) SetInterfaceType(v string) *NetworkInterface {
  59008. s.InterfaceType = &v
  59009. return s
  59010. }
  59011. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  59012. func (s *NetworkInterface) SetIpv6Addresses(v []*NetworkInterfaceIpv6Address) *NetworkInterface {
  59013. s.Ipv6Addresses = v
  59014. return s
  59015. }
  59016. // SetMacAddress sets the MacAddress field's value.
  59017. func (s *NetworkInterface) SetMacAddress(v string) *NetworkInterface {
  59018. s.MacAddress = &v
  59019. return s
  59020. }
  59021. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  59022. func (s *NetworkInterface) SetNetworkInterfaceId(v string) *NetworkInterface {
  59023. s.NetworkInterfaceId = &v
  59024. return s
  59025. }
  59026. // SetOwnerId sets the OwnerId field's value.
  59027. func (s *NetworkInterface) SetOwnerId(v string) *NetworkInterface {
  59028. s.OwnerId = &v
  59029. return s
  59030. }
  59031. // SetPrivateDnsName sets the PrivateDnsName field's value.
  59032. func (s *NetworkInterface) SetPrivateDnsName(v string) *NetworkInterface {
  59033. s.PrivateDnsName = &v
  59034. return s
  59035. }
  59036. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  59037. func (s *NetworkInterface) SetPrivateIpAddress(v string) *NetworkInterface {
  59038. s.PrivateIpAddress = &v
  59039. return s
  59040. }
  59041. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  59042. func (s *NetworkInterface) SetPrivateIpAddresses(v []*NetworkInterfacePrivateIpAddress) *NetworkInterface {
  59043. s.PrivateIpAddresses = v
  59044. return s
  59045. }
  59046. // SetRequesterId sets the RequesterId field's value.
  59047. func (s *NetworkInterface) SetRequesterId(v string) *NetworkInterface {
  59048. s.RequesterId = &v
  59049. return s
  59050. }
  59051. // SetRequesterManaged sets the RequesterManaged field's value.
  59052. func (s *NetworkInterface) SetRequesterManaged(v bool) *NetworkInterface {
  59053. s.RequesterManaged = &v
  59054. return s
  59055. }
  59056. // SetSourceDestCheck sets the SourceDestCheck field's value.
  59057. func (s *NetworkInterface) SetSourceDestCheck(v bool) *NetworkInterface {
  59058. s.SourceDestCheck = &v
  59059. return s
  59060. }
  59061. // SetStatus sets the Status field's value.
  59062. func (s *NetworkInterface) SetStatus(v string) *NetworkInterface {
  59063. s.Status = &v
  59064. return s
  59065. }
  59066. // SetSubnetId sets the SubnetId field's value.
  59067. func (s *NetworkInterface) SetSubnetId(v string) *NetworkInterface {
  59068. s.SubnetId = &v
  59069. return s
  59070. }
  59071. // SetTagSet sets the TagSet field's value.
  59072. func (s *NetworkInterface) SetTagSet(v []*Tag) *NetworkInterface {
  59073. s.TagSet = v
  59074. return s
  59075. }
  59076. // SetVpcId sets the VpcId field's value.
  59077. func (s *NetworkInterface) SetVpcId(v string) *NetworkInterface {
  59078. s.VpcId = &v
  59079. return s
  59080. }
  59081. // Describes association information for an Elastic IP address (IPv4 only).
  59082. type NetworkInterfaceAssociation struct {
  59083. _ struct{} `type:"structure"`
  59084. // The allocation ID.
  59085. AllocationId *string `locationName:"allocationId" type:"string"`
  59086. // The association ID.
  59087. AssociationId *string `locationName:"associationId" type:"string"`
  59088. // The ID of the Elastic IP address owner.
  59089. IpOwnerId *string `locationName:"ipOwnerId" type:"string"`
  59090. // The public DNS name.
  59091. PublicDnsName *string `locationName:"publicDnsName" type:"string"`
  59092. // The address of the Elastic IP address bound to the network interface.
  59093. PublicIp *string `locationName:"publicIp" type:"string"`
  59094. }
  59095. // String returns the string representation
  59096. func (s NetworkInterfaceAssociation) String() string {
  59097. return awsutil.Prettify(s)
  59098. }
  59099. // GoString returns the string representation
  59100. func (s NetworkInterfaceAssociation) GoString() string {
  59101. return s.String()
  59102. }
  59103. // SetAllocationId sets the AllocationId field's value.
  59104. func (s *NetworkInterfaceAssociation) SetAllocationId(v string) *NetworkInterfaceAssociation {
  59105. s.AllocationId = &v
  59106. return s
  59107. }
  59108. // SetAssociationId sets the AssociationId field's value.
  59109. func (s *NetworkInterfaceAssociation) SetAssociationId(v string) *NetworkInterfaceAssociation {
  59110. s.AssociationId = &v
  59111. return s
  59112. }
  59113. // SetIpOwnerId sets the IpOwnerId field's value.
  59114. func (s *NetworkInterfaceAssociation) SetIpOwnerId(v string) *NetworkInterfaceAssociation {
  59115. s.IpOwnerId = &v
  59116. return s
  59117. }
  59118. // SetPublicDnsName sets the PublicDnsName field's value.
  59119. func (s *NetworkInterfaceAssociation) SetPublicDnsName(v string) *NetworkInterfaceAssociation {
  59120. s.PublicDnsName = &v
  59121. return s
  59122. }
  59123. // SetPublicIp sets the PublicIp field's value.
  59124. func (s *NetworkInterfaceAssociation) SetPublicIp(v string) *NetworkInterfaceAssociation {
  59125. s.PublicIp = &v
  59126. return s
  59127. }
  59128. // Describes a network interface attachment.
  59129. type NetworkInterfaceAttachment struct {
  59130. _ struct{} `type:"structure"`
  59131. // The timestamp indicating when the attachment initiated.
  59132. AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
  59133. // The ID of the network interface attachment.
  59134. AttachmentId *string `locationName:"attachmentId" type:"string"`
  59135. // Indicates whether the network interface is deleted when the instance is terminated.
  59136. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  59137. // The device index of the network interface attachment on the instance.
  59138. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  59139. // The ID of the instance.
  59140. InstanceId *string `locationName:"instanceId" type:"string"`
  59141. // The AWS account ID of the owner of the instance.
  59142. InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`
  59143. // The attachment state.
  59144. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  59145. }
  59146. // String returns the string representation
  59147. func (s NetworkInterfaceAttachment) String() string {
  59148. return awsutil.Prettify(s)
  59149. }
  59150. // GoString returns the string representation
  59151. func (s NetworkInterfaceAttachment) GoString() string {
  59152. return s.String()
  59153. }
  59154. // SetAttachTime sets the AttachTime field's value.
  59155. func (s *NetworkInterfaceAttachment) SetAttachTime(v time.Time) *NetworkInterfaceAttachment {
  59156. s.AttachTime = &v
  59157. return s
  59158. }
  59159. // SetAttachmentId sets the AttachmentId field's value.
  59160. func (s *NetworkInterfaceAttachment) SetAttachmentId(v string) *NetworkInterfaceAttachment {
  59161. s.AttachmentId = &v
  59162. return s
  59163. }
  59164. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  59165. func (s *NetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachment {
  59166. s.DeleteOnTermination = &v
  59167. return s
  59168. }
  59169. // SetDeviceIndex sets the DeviceIndex field's value.
  59170. func (s *NetworkInterfaceAttachment) SetDeviceIndex(v int64) *NetworkInterfaceAttachment {
  59171. s.DeviceIndex = &v
  59172. return s
  59173. }
  59174. // SetInstanceId sets the InstanceId field's value.
  59175. func (s *NetworkInterfaceAttachment) SetInstanceId(v string) *NetworkInterfaceAttachment {
  59176. s.InstanceId = &v
  59177. return s
  59178. }
  59179. // SetInstanceOwnerId sets the InstanceOwnerId field's value.
  59180. func (s *NetworkInterfaceAttachment) SetInstanceOwnerId(v string) *NetworkInterfaceAttachment {
  59181. s.InstanceOwnerId = &v
  59182. return s
  59183. }
  59184. // SetStatus sets the Status field's value.
  59185. func (s *NetworkInterfaceAttachment) SetStatus(v string) *NetworkInterfaceAttachment {
  59186. s.Status = &v
  59187. return s
  59188. }
  59189. // Describes an attachment change.
  59190. type NetworkInterfaceAttachmentChanges struct {
  59191. _ struct{} `type:"structure"`
  59192. // The ID of the network interface attachment.
  59193. AttachmentId *string `locationName:"attachmentId" type:"string"`
  59194. // Indicates whether the network interface is deleted when the instance is terminated.
  59195. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  59196. }
  59197. // String returns the string representation
  59198. func (s NetworkInterfaceAttachmentChanges) String() string {
  59199. return awsutil.Prettify(s)
  59200. }
  59201. // GoString returns the string representation
  59202. func (s NetworkInterfaceAttachmentChanges) GoString() string {
  59203. return s.String()
  59204. }
  59205. // SetAttachmentId sets the AttachmentId field's value.
  59206. func (s *NetworkInterfaceAttachmentChanges) SetAttachmentId(v string) *NetworkInterfaceAttachmentChanges {
  59207. s.AttachmentId = &v
  59208. return s
  59209. }
  59210. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  59211. func (s *NetworkInterfaceAttachmentChanges) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachmentChanges {
  59212. s.DeleteOnTermination = &v
  59213. return s
  59214. }
  59215. // Describes an IPv6 address associated with a network interface.
  59216. type NetworkInterfaceIpv6Address struct {
  59217. _ struct{} `type:"structure"`
  59218. // The IPv6 address.
  59219. Ipv6Address *string `locationName:"ipv6Address" type:"string"`
  59220. }
  59221. // String returns the string representation
  59222. func (s NetworkInterfaceIpv6Address) String() string {
  59223. return awsutil.Prettify(s)
  59224. }
  59225. // GoString returns the string representation
  59226. func (s NetworkInterfaceIpv6Address) GoString() string {
  59227. return s.String()
  59228. }
  59229. // SetIpv6Address sets the Ipv6Address field's value.
  59230. func (s *NetworkInterfaceIpv6Address) SetIpv6Address(v string) *NetworkInterfaceIpv6Address {
  59231. s.Ipv6Address = &v
  59232. return s
  59233. }
  59234. // Describes a permission for a network interface.
  59235. type NetworkInterfacePermission struct {
  59236. _ struct{} `type:"structure"`
  59237. // The AWS account ID.
  59238. AwsAccountId *string `locationName:"awsAccountId" type:"string"`
  59239. // The AWS service.
  59240. AwsService *string `locationName:"awsService" type:"string"`
  59241. // The ID of the network interface.
  59242. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  59243. // The ID of the network interface permission.
  59244. NetworkInterfacePermissionId *string `locationName:"networkInterfacePermissionId" type:"string"`
  59245. // The type of permission.
  59246. Permission *string `locationName:"permission" type:"string" enum:"InterfacePermissionType"`
  59247. // Information about the state of the permission.
  59248. PermissionState *NetworkInterfacePermissionState `locationName:"permissionState" type:"structure"`
  59249. }
  59250. // String returns the string representation
  59251. func (s NetworkInterfacePermission) String() string {
  59252. return awsutil.Prettify(s)
  59253. }
  59254. // GoString returns the string representation
  59255. func (s NetworkInterfacePermission) GoString() string {
  59256. return s.String()
  59257. }
  59258. // SetAwsAccountId sets the AwsAccountId field's value.
  59259. func (s *NetworkInterfacePermission) SetAwsAccountId(v string) *NetworkInterfacePermission {
  59260. s.AwsAccountId = &v
  59261. return s
  59262. }
  59263. // SetAwsService sets the AwsService field's value.
  59264. func (s *NetworkInterfacePermission) SetAwsService(v string) *NetworkInterfacePermission {
  59265. s.AwsService = &v
  59266. return s
  59267. }
  59268. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  59269. func (s *NetworkInterfacePermission) SetNetworkInterfaceId(v string) *NetworkInterfacePermission {
  59270. s.NetworkInterfaceId = &v
  59271. return s
  59272. }
  59273. // SetNetworkInterfacePermissionId sets the NetworkInterfacePermissionId field's value.
  59274. func (s *NetworkInterfacePermission) SetNetworkInterfacePermissionId(v string) *NetworkInterfacePermission {
  59275. s.NetworkInterfacePermissionId = &v
  59276. return s
  59277. }
  59278. // SetPermission sets the Permission field's value.
  59279. func (s *NetworkInterfacePermission) SetPermission(v string) *NetworkInterfacePermission {
  59280. s.Permission = &v
  59281. return s
  59282. }
  59283. // SetPermissionState sets the PermissionState field's value.
  59284. func (s *NetworkInterfacePermission) SetPermissionState(v *NetworkInterfacePermissionState) *NetworkInterfacePermission {
  59285. s.PermissionState = v
  59286. return s
  59287. }
  59288. // Describes the state of a network interface permission.
  59289. type NetworkInterfacePermissionState struct {
  59290. _ struct{} `type:"structure"`
  59291. // The state of the permission.
  59292. State *string `locationName:"state" type:"string" enum:"NetworkInterfacePermissionStateCode"`
  59293. // A status message, if applicable.
  59294. StatusMessage *string `locationName:"statusMessage" type:"string"`
  59295. }
  59296. // String returns the string representation
  59297. func (s NetworkInterfacePermissionState) String() string {
  59298. return awsutil.Prettify(s)
  59299. }
  59300. // GoString returns the string representation
  59301. func (s NetworkInterfacePermissionState) GoString() string {
  59302. return s.String()
  59303. }
  59304. // SetState sets the State field's value.
  59305. func (s *NetworkInterfacePermissionState) SetState(v string) *NetworkInterfacePermissionState {
  59306. s.State = &v
  59307. return s
  59308. }
  59309. // SetStatusMessage sets the StatusMessage field's value.
  59310. func (s *NetworkInterfacePermissionState) SetStatusMessage(v string) *NetworkInterfacePermissionState {
  59311. s.StatusMessage = &v
  59312. return s
  59313. }
  59314. // Describes the private IPv4 address of a network interface.
  59315. type NetworkInterfacePrivateIpAddress struct {
  59316. _ struct{} `type:"structure"`
  59317. // The association information for an Elastic IP address (IPv4) associated with
  59318. // the network interface.
  59319. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`
  59320. // Indicates whether this IPv4 address is the primary private IPv4 address of
  59321. // the network interface.
  59322. Primary *bool `locationName:"primary" type:"boolean"`
  59323. // The private DNS name.
  59324. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  59325. // The private IPv4 address.
  59326. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  59327. }
  59328. // String returns the string representation
  59329. func (s NetworkInterfacePrivateIpAddress) String() string {
  59330. return awsutil.Prettify(s)
  59331. }
  59332. // GoString returns the string representation
  59333. func (s NetworkInterfacePrivateIpAddress) GoString() string {
  59334. return s.String()
  59335. }
  59336. // SetAssociation sets the Association field's value.
  59337. func (s *NetworkInterfacePrivateIpAddress) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterfacePrivateIpAddress {
  59338. s.Association = v
  59339. return s
  59340. }
  59341. // SetPrimary sets the Primary field's value.
  59342. func (s *NetworkInterfacePrivateIpAddress) SetPrimary(v bool) *NetworkInterfacePrivateIpAddress {
  59343. s.Primary = &v
  59344. return s
  59345. }
  59346. // SetPrivateDnsName sets the PrivateDnsName field's value.
  59347. func (s *NetworkInterfacePrivateIpAddress) SetPrivateDnsName(v string) *NetworkInterfacePrivateIpAddress {
  59348. s.PrivateDnsName = &v
  59349. return s
  59350. }
  59351. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  59352. func (s *NetworkInterfacePrivateIpAddress) SetPrivateIpAddress(v string) *NetworkInterfacePrivateIpAddress {
  59353. s.PrivateIpAddress = &v
  59354. return s
  59355. }
  59356. type NewDhcpConfiguration struct {
  59357. _ struct{} `type:"structure"`
  59358. Key *string `locationName:"key" type:"string"`
  59359. Values []*string `locationName:"Value" locationNameList:"item" type:"list"`
  59360. }
  59361. // String returns the string representation
  59362. func (s NewDhcpConfiguration) String() string {
  59363. return awsutil.Prettify(s)
  59364. }
  59365. // GoString returns the string representation
  59366. func (s NewDhcpConfiguration) GoString() string {
  59367. return s.String()
  59368. }
  59369. // SetKey sets the Key field's value.
  59370. func (s *NewDhcpConfiguration) SetKey(v string) *NewDhcpConfiguration {
  59371. s.Key = &v
  59372. return s
  59373. }
  59374. // SetValues sets the Values field's value.
  59375. func (s *NewDhcpConfiguration) SetValues(v []*string) *NewDhcpConfiguration {
  59376. s.Values = v
  59377. return s
  59378. }
  59379. // The allocation strategy of On-Demand Instances in an EC2 Fleet.
  59380. type OnDemandOptions struct {
  59381. _ struct{} `type:"structure"`
  59382. // The order of the launch template overrides to use in fulfilling On-Demand
  59383. // capacity. If you specify lowest-price, EC2 Fleet uses price to determine
  59384. // the order, launching the lowest price first. If you specify prioritized,
  59385. // EC2 Fleet uses the priority that you assigned to each launch template override,
  59386. // launching the highest priority first. If you do not specify a value, EC2
  59387. // Fleet defaults to lowest-price.
  59388. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"FleetOnDemandAllocationStrategy"`
  59389. // The minimum target capacity for On-Demand Instances in the fleet. If the
  59390. // minimum target capacity is not reached, the fleet launches no instances.
  59391. MinTargetCapacity *int64 `locationName:"minTargetCapacity" type:"integer"`
  59392. // Indicates that the fleet launches all On-Demand Instances into a single Availability
  59393. // Zone.
  59394. SingleAvailabilityZone *bool `locationName:"singleAvailabilityZone" type:"boolean"`
  59395. // Indicates that the fleet uses a single instance type to launch all On-Demand
  59396. // Instances in the fleet.
  59397. SingleInstanceType *bool `locationName:"singleInstanceType" type:"boolean"`
  59398. }
  59399. // String returns the string representation
  59400. func (s OnDemandOptions) String() string {
  59401. return awsutil.Prettify(s)
  59402. }
  59403. // GoString returns the string representation
  59404. func (s OnDemandOptions) GoString() string {
  59405. return s.String()
  59406. }
  59407. // SetAllocationStrategy sets the AllocationStrategy field's value.
  59408. func (s *OnDemandOptions) SetAllocationStrategy(v string) *OnDemandOptions {
  59409. s.AllocationStrategy = &v
  59410. return s
  59411. }
  59412. // SetMinTargetCapacity sets the MinTargetCapacity field's value.
  59413. func (s *OnDemandOptions) SetMinTargetCapacity(v int64) *OnDemandOptions {
  59414. s.MinTargetCapacity = &v
  59415. return s
  59416. }
  59417. // SetSingleAvailabilityZone sets the SingleAvailabilityZone field's value.
  59418. func (s *OnDemandOptions) SetSingleAvailabilityZone(v bool) *OnDemandOptions {
  59419. s.SingleAvailabilityZone = &v
  59420. return s
  59421. }
  59422. // SetSingleInstanceType sets the SingleInstanceType field's value.
  59423. func (s *OnDemandOptions) SetSingleInstanceType(v bool) *OnDemandOptions {
  59424. s.SingleInstanceType = &v
  59425. return s
  59426. }
  59427. // The allocation strategy of On-Demand Instances in an EC2 Fleet.
  59428. type OnDemandOptionsRequest struct {
  59429. _ struct{} `type:"structure"`
  59430. // The order of the launch template overrides to use in fulfilling On-Demand
  59431. // capacity. If you specify lowest-price, EC2 Fleet uses price to determine
  59432. // the order, launching the lowest price first. If you specify prioritized,
  59433. // EC2 Fleet uses the priority that you assigned to each launch template override,
  59434. // launching the highest priority first. If you do not specify a value, EC2
  59435. // Fleet defaults to lowest-price.
  59436. AllocationStrategy *string `type:"string" enum:"FleetOnDemandAllocationStrategy"`
  59437. // The minimum target capacity for On-Demand Instances in the fleet. If the
  59438. // minimum target capacity is not reached, the fleet launches no instances.
  59439. MinTargetCapacity *int64 `type:"integer"`
  59440. // Indicates that the fleet launches all On-Demand Instances into a single Availability
  59441. // Zone.
  59442. SingleAvailabilityZone *bool `type:"boolean"`
  59443. // Indicates that the fleet uses a single instance type to launch all On-Demand
  59444. // Instances in the fleet.
  59445. SingleInstanceType *bool `type:"boolean"`
  59446. }
  59447. // String returns the string representation
  59448. func (s OnDemandOptionsRequest) String() string {
  59449. return awsutil.Prettify(s)
  59450. }
  59451. // GoString returns the string representation
  59452. func (s OnDemandOptionsRequest) GoString() string {
  59453. return s.String()
  59454. }
  59455. // SetAllocationStrategy sets the AllocationStrategy field's value.
  59456. func (s *OnDemandOptionsRequest) SetAllocationStrategy(v string) *OnDemandOptionsRequest {
  59457. s.AllocationStrategy = &v
  59458. return s
  59459. }
  59460. // SetMinTargetCapacity sets the MinTargetCapacity field's value.
  59461. func (s *OnDemandOptionsRequest) SetMinTargetCapacity(v int64) *OnDemandOptionsRequest {
  59462. s.MinTargetCapacity = &v
  59463. return s
  59464. }
  59465. // SetSingleAvailabilityZone sets the SingleAvailabilityZone field's value.
  59466. func (s *OnDemandOptionsRequest) SetSingleAvailabilityZone(v bool) *OnDemandOptionsRequest {
  59467. s.SingleAvailabilityZone = &v
  59468. return s
  59469. }
  59470. // SetSingleInstanceType sets the SingleInstanceType field's value.
  59471. func (s *OnDemandOptionsRequest) SetSingleInstanceType(v bool) *OnDemandOptionsRequest {
  59472. s.SingleInstanceType = &v
  59473. return s
  59474. }
  59475. // Describes the data that identifies an Amazon FPGA image (AFI) on the PCI
  59476. // bus.
  59477. type PciId struct {
  59478. _ struct{} `type:"structure"`
  59479. // The ID of the device.
  59480. DeviceId *string `type:"string"`
  59481. // The ID of the subsystem.
  59482. SubsystemId *string `type:"string"`
  59483. // The ID of the vendor for the subsystem.
  59484. SubsystemVendorId *string `type:"string"`
  59485. // The ID of the vendor.
  59486. VendorId *string `type:"string"`
  59487. }
  59488. // String returns the string representation
  59489. func (s PciId) String() string {
  59490. return awsutil.Prettify(s)
  59491. }
  59492. // GoString returns the string representation
  59493. func (s PciId) GoString() string {
  59494. return s.String()
  59495. }
  59496. // SetDeviceId sets the DeviceId field's value.
  59497. func (s *PciId) SetDeviceId(v string) *PciId {
  59498. s.DeviceId = &v
  59499. return s
  59500. }
  59501. // SetSubsystemId sets the SubsystemId field's value.
  59502. func (s *PciId) SetSubsystemId(v string) *PciId {
  59503. s.SubsystemId = &v
  59504. return s
  59505. }
  59506. // SetSubsystemVendorId sets the SubsystemVendorId field's value.
  59507. func (s *PciId) SetSubsystemVendorId(v string) *PciId {
  59508. s.SubsystemVendorId = &v
  59509. return s
  59510. }
  59511. // SetVendorId sets the VendorId field's value.
  59512. func (s *PciId) SetVendorId(v string) *PciId {
  59513. s.VendorId = &v
  59514. return s
  59515. }
  59516. // Describes the VPC peering connection options.
  59517. type PeeringConnectionOptions struct {
  59518. _ struct{} `type:"structure"`
  59519. // If true, the public DNS hostnames of instances in the specified VPC resolve
  59520. // to private IP addresses when queried from instances in the peer VPC.
  59521. AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`
  59522. // If true, enables outbound communication from an EC2-Classic instance that's
  59523. // linked to a local VPC using ClassicLink to instances in a peer VPC.
  59524. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`
  59525. // If true, enables outbound communication from instances in a local VPC to
  59526. // an EC2-Classic instance that's linked to a peer VPC using ClassicLink.
  59527. AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
  59528. }
  59529. // String returns the string representation
  59530. func (s PeeringConnectionOptions) String() string {
  59531. return awsutil.Prettify(s)
  59532. }
  59533. // GoString returns the string representation
  59534. func (s PeeringConnectionOptions) GoString() string {
  59535. return s.String()
  59536. }
  59537. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  59538. func (s *PeeringConnectionOptions) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptions {
  59539. s.AllowDnsResolutionFromRemoteVpc = &v
  59540. return s
  59541. }
  59542. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  59543. func (s *PeeringConnectionOptions) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptions {
  59544. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  59545. return s
  59546. }
  59547. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  59548. func (s *PeeringConnectionOptions) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptions {
  59549. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  59550. return s
  59551. }
  59552. // The VPC peering connection options.
  59553. type PeeringConnectionOptionsRequest struct {
  59554. _ struct{} `type:"structure"`
  59555. // If true, enables a local VPC to resolve public DNS hostnames to private IP
  59556. // addresses when queried from instances in the peer VPC.
  59557. AllowDnsResolutionFromRemoteVpc *bool `type:"boolean"`
  59558. // If true, enables outbound communication from an EC2-Classic instance that's
  59559. // linked to a local VPC using ClassicLink to instances in a peer VPC.
  59560. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `type:"boolean"`
  59561. // If true, enables outbound communication from instances in a local VPC to
  59562. // an EC2-Classic instance that's linked to a peer VPC using ClassicLink.
  59563. AllowEgressFromLocalVpcToRemoteClassicLink *bool `type:"boolean"`
  59564. }
  59565. // String returns the string representation
  59566. func (s PeeringConnectionOptionsRequest) String() string {
  59567. return awsutil.Prettify(s)
  59568. }
  59569. // GoString returns the string representation
  59570. func (s PeeringConnectionOptionsRequest) GoString() string {
  59571. return s.String()
  59572. }
  59573. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  59574. func (s *PeeringConnectionOptionsRequest) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptionsRequest {
  59575. s.AllowDnsResolutionFromRemoteVpc = &v
  59576. return s
  59577. }
  59578. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  59579. func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptionsRequest {
  59580. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  59581. return s
  59582. }
  59583. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  59584. func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptionsRequest {
  59585. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  59586. return s
  59587. }
  59588. // Describes the placement of an instance.
  59589. type Placement struct {
  59590. _ struct{} `type:"structure"`
  59591. // The affinity setting for the instance on the Dedicated Host. This parameter
  59592. // is not supported for the ImportInstance command.
  59593. Affinity *string `locationName:"affinity" type:"string"`
  59594. // The Availability Zone of the instance.
  59595. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  59596. // The name of the placement group the instance is in.
  59597. GroupName *string `locationName:"groupName" type:"string"`
  59598. // The ID of the Dedicated Host on which the instance resides. This parameter
  59599. // is not supported for the ImportInstance command.
  59600. HostId *string `locationName:"hostId" type:"string"`
  59601. // The number of the partition the instance is in. Valid only if the placement
  59602. // group strategy is set to partition.
  59603. PartitionNumber *int64 `locationName:"partitionNumber" type:"integer"`
  59604. // Reserved for future use.
  59605. SpreadDomain *string `locationName:"spreadDomain" type:"string"`
  59606. // The tenancy of the instance (if the instance is running in a VPC). An instance
  59607. // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
  59608. // is not supported for the ImportInstance command.
  59609. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  59610. }
  59611. // String returns the string representation
  59612. func (s Placement) String() string {
  59613. return awsutil.Prettify(s)
  59614. }
  59615. // GoString returns the string representation
  59616. func (s Placement) GoString() string {
  59617. return s.String()
  59618. }
  59619. // SetAffinity sets the Affinity field's value.
  59620. func (s *Placement) SetAffinity(v string) *Placement {
  59621. s.Affinity = &v
  59622. return s
  59623. }
  59624. // SetAvailabilityZone sets the AvailabilityZone field's value.
  59625. func (s *Placement) SetAvailabilityZone(v string) *Placement {
  59626. s.AvailabilityZone = &v
  59627. return s
  59628. }
  59629. // SetGroupName sets the GroupName field's value.
  59630. func (s *Placement) SetGroupName(v string) *Placement {
  59631. s.GroupName = &v
  59632. return s
  59633. }
  59634. // SetHostId sets the HostId field's value.
  59635. func (s *Placement) SetHostId(v string) *Placement {
  59636. s.HostId = &v
  59637. return s
  59638. }
  59639. // SetPartitionNumber sets the PartitionNumber field's value.
  59640. func (s *Placement) SetPartitionNumber(v int64) *Placement {
  59641. s.PartitionNumber = &v
  59642. return s
  59643. }
  59644. // SetSpreadDomain sets the SpreadDomain field's value.
  59645. func (s *Placement) SetSpreadDomain(v string) *Placement {
  59646. s.SpreadDomain = &v
  59647. return s
  59648. }
  59649. // SetTenancy sets the Tenancy field's value.
  59650. func (s *Placement) SetTenancy(v string) *Placement {
  59651. s.Tenancy = &v
  59652. return s
  59653. }
  59654. // Describes a placement group.
  59655. type PlacementGroup struct {
  59656. _ struct{} `type:"structure"`
  59657. // The name of the placement group.
  59658. GroupName *string `locationName:"groupName" type:"string"`
  59659. // The number of partitions. Valid only if strategy is set to partition.
  59660. PartitionCount *int64 `locationName:"partitionCount" type:"integer"`
  59661. // The state of the placement group.
  59662. State *string `locationName:"state" type:"string" enum:"PlacementGroupState"`
  59663. // The placement strategy.
  59664. Strategy *string `locationName:"strategy" type:"string" enum:"PlacementStrategy"`
  59665. }
  59666. // String returns the string representation
  59667. func (s PlacementGroup) String() string {
  59668. return awsutil.Prettify(s)
  59669. }
  59670. // GoString returns the string representation
  59671. func (s PlacementGroup) GoString() string {
  59672. return s.String()
  59673. }
  59674. // SetGroupName sets the GroupName field's value.
  59675. func (s *PlacementGroup) SetGroupName(v string) *PlacementGroup {
  59676. s.GroupName = &v
  59677. return s
  59678. }
  59679. // SetPartitionCount sets the PartitionCount field's value.
  59680. func (s *PlacementGroup) SetPartitionCount(v int64) *PlacementGroup {
  59681. s.PartitionCount = &v
  59682. return s
  59683. }
  59684. // SetState sets the State field's value.
  59685. func (s *PlacementGroup) SetState(v string) *PlacementGroup {
  59686. s.State = &v
  59687. return s
  59688. }
  59689. // SetStrategy sets the Strategy field's value.
  59690. func (s *PlacementGroup) SetStrategy(v string) *PlacementGroup {
  59691. s.Strategy = &v
  59692. return s
  59693. }
  59694. // Describes the placement of an instance.
  59695. type PlacementResponse struct {
  59696. _ struct{} `type:"structure"`
  59697. // The name of the placement group the instance is in.
  59698. GroupName *string `locationName:"groupName" type:"string"`
  59699. }
  59700. // String returns the string representation
  59701. func (s PlacementResponse) String() string {
  59702. return awsutil.Prettify(s)
  59703. }
  59704. // GoString returns the string representation
  59705. func (s PlacementResponse) GoString() string {
  59706. return s.String()
  59707. }
  59708. // SetGroupName sets the GroupName field's value.
  59709. func (s *PlacementResponse) SetGroupName(v string) *PlacementResponse {
  59710. s.GroupName = &v
  59711. return s
  59712. }
  59713. // Describes a range of ports.
  59714. type PortRange struct {
  59715. _ struct{} `type:"structure"`
  59716. // The first port in the range.
  59717. From *int64 `locationName:"from" type:"integer"`
  59718. // The last port in the range.
  59719. To *int64 `locationName:"to" type:"integer"`
  59720. }
  59721. // String returns the string representation
  59722. func (s PortRange) String() string {
  59723. return awsutil.Prettify(s)
  59724. }
  59725. // GoString returns the string representation
  59726. func (s PortRange) GoString() string {
  59727. return s.String()
  59728. }
  59729. // SetFrom sets the From field's value.
  59730. func (s *PortRange) SetFrom(v int64) *PortRange {
  59731. s.From = &v
  59732. return s
  59733. }
  59734. // SetTo sets the To field's value.
  59735. func (s *PortRange) SetTo(v int64) *PortRange {
  59736. s.To = &v
  59737. return s
  59738. }
  59739. // Describes prefixes for AWS services.
  59740. type PrefixList struct {
  59741. _ struct{} `type:"structure"`
  59742. // The IP address range of the AWS service.
  59743. Cidrs []*string `locationName:"cidrSet" locationNameList:"item" type:"list"`
  59744. // The ID of the prefix.
  59745. PrefixListId *string `locationName:"prefixListId" type:"string"`
  59746. // The name of the prefix.
  59747. PrefixListName *string `locationName:"prefixListName" type:"string"`
  59748. }
  59749. // String returns the string representation
  59750. func (s PrefixList) String() string {
  59751. return awsutil.Prettify(s)
  59752. }
  59753. // GoString returns the string representation
  59754. func (s PrefixList) GoString() string {
  59755. return s.String()
  59756. }
  59757. // SetCidrs sets the Cidrs field's value.
  59758. func (s *PrefixList) SetCidrs(v []*string) *PrefixList {
  59759. s.Cidrs = v
  59760. return s
  59761. }
  59762. // SetPrefixListId sets the PrefixListId field's value.
  59763. func (s *PrefixList) SetPrefixListId(v string) *PrefixList {
  59764. s.PrefixListId = &v
  59765. return s
  59766. }
  59767. // SetPrefixListName sets the PrefixListName field's value.
  59768. func (s *PrefixList) SetPrefixListName(v string) *PrefixList {
  59769. s.PrefixListName = &v
  59770. return s
  59771. }
  59772. // Describes a prefix list ID.
  59773. type PrefixListId struct {
  59774. _ struct{} `type:"structure"`
  59775. // A description for the security group rule that references this prefix list
  59776. // ID.
  59777. //
  59778. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  59779. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  59780. Description *string `locationName:"description" type:"string"`
  59781. // The ID of the prefix.
  59782. PrefixListId *string `locationName:"prefixListId" type:"string"`
  59783. }
  59784. // String returns the string representation
  59785. func (s PrefixListId) String() string {
  59786. return awsutil.Prettify(s)
  59787. }
  59788. // GoString returns the string representation
  59789. func (s PrefixListId) GoString() string {
  59790. return s.String()
  59791. }
  59792. // SetDescription sets the Description field's value.
  59793. func (s *PrefixListId) SetDescription(v string) *PrefixListId {
  59794. s.Description = &v
  59795. return s
  59796. }
  59797. // SetPrefixListId sets the PrefixListId field's value.
  59798. func (s *PrefixListId) SetPrefixListId(v string) *PrefixListId {
  59799. s.PrefixListId = &v
  59800. return s
  59801. }
  59802. // Describes the price for a Reserved Instance.
  59803. type PriceSchedule struct {
  59804. _ struct{} `type:"structure"`
  59805. // The current price schedule, as determined by the term remaining for the Reserved
  59806. // Instance in the listing.
  59807. //
  59808. // A specific price schedule is always in effect, but only one price schedule
  59809. // can be active at any time. Take, for example, a Reserved Instance listing
  59810. // that has five months remaining in its term. When you specify price schedules
  59811. // for five months and two months, this means that schedule 1, covering the
  59812. // first three months of the remaining term, will be active during months 5,
  59813. // 4, and 3. Then schedule 2, covering the last two months of the term, will
  59814. // be active for months 2 and 1.
  59815. Active *bool `locationName:"active" type:"boolean"`
  59816. // The currency for transacting the Reserved Instance resale. At this time,
  59817. // the only supported currency is USD.
  59818. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  59819. // The fixed price for the term.
  59820. Price *float64 `locationName:"price" type:"double"`
  59821. // The number of months remaining in the reservation. For example, 2 is the
  59822. // second to the last month before the capacity reservation expires.
  59823. Term *int64 `locationName:"term" type:"long"`
  59824. }
  59825. // String returns the string representation
  59826. func (s PriceSchedule) String() string {
  59827. return awsutil.Prettify(s)
  59828. }
  59829. // GoString returns the string representation
  59830. func (s PriceSchedule) GoString() string {
  59831. return s.String()
  59832. }
  59833. // SetActive sets the Active field's value.
  59834. func (s *PriceSchedule) SetActive(v bool) *PriceSchedule {
  59835. s.Active = &v
  59836. return s
  59837. }
  59838. // SetCurrencyCode sets the CurrencyCode field's value.
  59839. func (s *PriceSchedule) SetCurrencyCode(v string) *PriceSchedule {
  59840. s.CurrencyCode = &v
  59841. return s
  59842. }
  59843. // SetPrice sets the Price field's value.
  59844. func (s *PriceSchedule) SetPrice(v float64) *PriceSchedule {
  59845. s.Price = &v
  59846. return s
  59847. }
  59848. // SetTerm sets the Term field's value.
  59849. func (s *PriceSchedule) SetTerm(v int64) *PriceSchedule {
  59850. s.Term = &v
  59851. return s
  59852. }
  59853. // Describes the price for a Reserved Instance.
  59854. type PriceScheduleSpecification struct {
  59855. _ struct{} `type:"structure"`
  59856. // The currency for transacting the Reserved Instance resale. At this time,
  59857. // the only supported currency is USD.
  59858. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  59859. // The fixed price for the term.
  59860. Price *float64 `locationName:"price" type:"double"`
  59861. // The number of months remaining in the reservation. For example, 2 is the
  59862. // second to the last month before the capacity reservation expires.
  59863. Term *int64 `locationName:"term" type:"long"`
  59864. }
  59865. // String returns the string representation
  59866. func (s PriceScheduleSpecification) String() string {
  59867. return awsutil.Prettify(s)
  59868. }
  59869. // GoString returns the string representation
  59870. func (s PriceScheduleSpecification) GoString() string {
  59871. return s.String()
  59872. }
  59873. // SetCurrencyCode sets the CurrencyCode field's value.
  59874. func (s *PriceScheduleSpecification) SetCurrencyCode(v string) *PriceScheduleSpecification {
  59875. s.CurrencyCode = &v
  59876. return s
  59877. }
  59878. // SetPrice sets the Price field's value.
  59879. func (s *PriceScheduleSpecification) SetPrice(v float64) *PriceScheduleSpecification {
  59880. s.Price = &v
  59881. return s
  59882. }
  59883. // SetTerm sets the Term field's value.
  59884. func (s *PriceScheduleSpecification) SetTerm(v int64) *PriceScheduleSpecification {
  59885. s.Term = &v
  59886. return s
  59887. }
  59888. // Describes a Reserved Instance offering.
  59889. type PricingDetail struct {
  59890. _ struct{} `type:"structure"`
  59891. // The number of reservations available for the price.
  59892. Count *int64 `locationName:"count" type:"integer"`
  59893. // The price per instance.
  59894. Price *float64 `locationName:"price" type:"double"`
  59895. }
  59896. // String returns the string representation
  59897. func (s PricingDetail) String() string {
  59898. return awsutil.Prettify(s)
  59899. }
  59900. // GoString returns the string representation
  59901. func (s PricingDetail) GoString() string {
  59902. return s.String()
  59903. }
  59904. // SetCount sets the Count field's value.
  59905. func (s *PricingDetail) SetCount(v int64) *PricingDetail {
  59906. s.Count = &v
  59907. return s
  59908. }
  59909. // SetPrice sets the Price field's value.
  59910. func (s *PricingDetail) SetPrice(v float64) *PricingDetail {
  59911. s.Price = &v
  59912. return s
  59913. }
  59914. // PrincipalIdFormat description
  59915. type PrincipalIdFormat struct {
  59916. _ struct{} `type:"structure"`
  59917. // PrincipalIdFormatARN description
  59918. Arn *string `locationName:"arn" type:"string"`
  59919. // PrincipalIdFormatStatuses description
  59920. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  59921. }
  59922. // String returns the string representation
  59923. func (s PrincipalIdFormat) String() string {
  59924. return awsutil.Prettify(s)
  59925. }
  59926. // GoString returns the string representation
  59927. func (s PrincipalIdFormat) GoString() string {
  59928. return s.String()
  59929. }
  59930. // SetArn sets the Arn field's value.
  59931. func (s *PrincipalIdFormat) SetArn(v string) *PrincipalIdFormat {
  59932. s.Arn = &v
  59933. return s
  59934. }
  59935. // SetStatuses sets the Statuses field's value.
  59936. func (s *PrincipalIdFormat) SetStatuses(v []*IdFormat) *PrincipalIdFormat {
  59937. s.Statuses = v
  59938. return s
  59939. }
  59940. // Describes a secondary private IPv4 address for a network interface.
  59941. type PrivateIpAddressSpecification struct {
  59942. _ struct{} `type:"structure"`
  59943. // Indicates whether the private IPv4 address is the primary private IPv4 address.
  59944. // Only one IPv4 address can be designated as primary.
  59945. Primary *bool `locationName:"primary" type:"boolean"`
  59946. // The private IPv4 addresses.
  59947. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  59948. }
  59949. // String returns the string representation
  59950. func (s PrivateIpAddressSpecification) String() string {
  59951. return awsutil.Prettify(s)
  59952. }
  59953. // GoString returns the string representation
  59954. func (s PrivateIpAddressSpecification) GoString() string {
  59955. return s.String()
  59956. }
  59957. // SetPrimary sets the Primary field's value.
  59958. func (s *PrivateIpAddressSpecification) SetPrimary(v bool) *PrivateIpAddressSpecification {
  59959. s.Primary = &v
  59960. return s
  59961. }
  59962. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  59963. func (s *PrivateIpAddressSpecification) SetPrivateIpAddress(v string) *PrivateIpAddressSpecification {
  59964. s.PrivateIpAddress = &v
  59965. return s
  59966. }
  59967. // Describes a product code.
  59968. type ProductCode struct {
  59969. _ struct{} `type:"structure"`
  59970. // The product code.
  59971. ProductCodeId *string `locationName:"productCode" type:"string"`
  59972. // The type of product code.
  59973. ProductCodeType *string `locationName:"type" type:"string" enum:"ProductCodeValues"`
  59974. }
  59975. // String returns the string representation
  59976. func (s ProductCode) String() string {
  59977. return awsutil.Prettify(s)
  59978. }
  59979. // GoString returns the string representation
  59980. func (s ProductCode) GoString() string {
  59981. return s.String()
  59982. }
  59983. // SetProductCodeId sets the ProductCodeId field's value.
  59984. func (s *ProductCode) SetProductCodeId(v string) *ProductCode {
  59985. s.ProductCodeId = &v
  59986. return s
  59987. }
  59988. // SetProductCodeType sets the ProductCodeType field's value.
  59989. func (s *ProductCode) SetProductCodeType(v string) *ProductCode {
  59990. s.ProductCodeType = &v
  59991. return s
  59992. }
  59993. // Describes a virtual private gateway propagating route.
  59994. type PropagatingVgw struct {
  59995. _ struct{} `type:"structure"`
  59996. // The ID of the virtual private gateway.
  59997. GatewayId *string `locationName:"gatewayId" type:"string"`
  59998. }
  59999. // String returns the string representation
  60000. func (s PropagatingVgw) String() string {
  60001. return awsutil.Prettify(s)
  60002. }
  60003. // GoString returns the string representation
  60004. func (s PropagatingVgw) GoString() string {
  60005. return s.String()
  60006. }
  60007. // SetGatewayId sets the GatewayId field's value.
  60008. func (s *PropagatingVgw) SetGatewayId(v string) *PropagatingVgw {
  60009. s.GatewayId = &v
  60010. return s
  60011. }
  60012. type ProvisionByoipCidrInput struct {
  60013. _ struct{} `type:"structure"`
  60014. // The public IPv4 address range, in CIDR notation. The most specific prefix
  60015. // that you can specify is /24. The address range cannot overlap with another
  60016. // address range that you've brought to this or another region.
  60017. //
  60018. // Cidr is a required field
  60019. Cidr *string `type:"string" required:"true"`
  60020. // A signed document that proves that you are authorized to bring the specified
  60021. // IP address range to Amazon using BYOIP.
  60022. CidrAuthorizationContext *CidrAuthorizationContext `type:"structure"`
  60023. // A description for the address range and the address pool.
  60024. Description *string `type:"string"`
  60025. // Checks whether you have the required permissions for the action, without
  60026. // actually making the request, and provides an error response. If you have
  60027. // the required permissions, the error response is DryRunOperation. Otherwise,
  60028. // it is UnauthorizedOperation.
  60029. DryRun *bool `type:"boolean"`
  60030. }
  60031. // String returns the string representation
  60032. func (s ProvisionByoipCidrInput) String() string {
  60033. return awsutil.Prettify(s)
  60034. }
  60035. // GoString returns the string representation
  60036. func (s ProvisionByoipCidrInput) GoString() string {
  60037. return s.String()
  60038. }
  60039. // Validate inspects the fields of the type to determine if they are valid.
  60040. func (s *ProvisionByoipCidrInput) Validate() error {
  60041. invalidParams := request.ErrInvalidParams{Context: "ProvisionByoipCidrInput"}
  60042. if s.Cidr == nil {
  60043. invalidParams.Add(request.NewErrParamRequired("Cidr"))
  60044. }
  60045. if s.CidrAuthorizationContext != nil {
  60046. if err := s.CidrAuthorizationContext.Validate(); err != nil {
  60047. invalidParams.AddNested("CidrAuthorizationContext", err.(request.ErrInvalidParams))
  60048. }
  60049. }
  60050. if invalidParams.Len() > 0 {
  60051. return invalidParams
  60052. }
  60053. return nil
  60054. }
  60055. // SetCidr sets the Cidr field's value.
  60056. func (s *ProvisionByoipCidrInput) SetCidr(v string) *ProvisionByoipCidrInput {
  60057. s.Cidr = &v
  60058. return s
  60059. }
  60060. // SetCidrAuthorizationContext sets the CidrAuthorizationContext field's value.
  60061. func (s *ProvisionByoipCidrInput) SetCidrAuthorizationContext(v *CidrAuthorizationContext) *ProvisionByoipCidrInput {
  60062. s.CidrAuthorizationContext = v
  60063. return s
  60064. }
  60065. // SetDescription sets the Description field's value.
  60066. func (s *ProvisionByoipCidrInput) SetDescription(v string) *ProvisionByoipCidrInput {
  60067. s.Description = &v
  60068. return s
  60069. }
  60070. // SetDryRun sets the DryRun field's value.
  60071. func (s *ProvisionByoipCidrInput) SetDryRun(v bool) *ProvisionByoipCidrInput {
  60072. s.DryRun = &v
  60073. return s
  60074. }
  60075. type ProvisionByoipCidrOutput struct {
  60076. _ struct{} `type:"structure"`
  60077. // Information about the address pool.
  60078. ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"`
  60079. }
  60080. // String returns the string representation
  60081. func (s ProvisionByoipCidrOutput) String() string {
  60082. return awsutil.Prettify(s)
  60083. }
  60084. // GoString returns the string representation
  60085. func (s ProvisionByoipCidrOutput) GoString() string {
  60086. return s.String()
  60087. }
  60088. // SetByoipCidr sets the ByoipCidr field's value.
  60089. func (s *ProvisionByoipCidrOutput) SetByoipCidr(v *ByoipCidr) *ProvisionByoipCidrOutput {
  60090. s.ByoipCidr = v
  60091. return s
  60092. }
  60093. // Reserved. If you need to sustain traffic greater than the documented limits
  60094. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  60095. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  60096. type ProvisionedBandwidth struct {
  60097. _ struct{} `type:"structure"`
  60098. // Reserved. If you need to sustain traffic greater than the documented limits
  60099. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  60100. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  60101. ProvisionTime *time.Time `locationName:"provisionTime" type:"timestamp"`
  60102. // Reserved. If you need to sustain traffic greater than the documented limits
  60103. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  60104. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  60105. Provisioned *string `locationName:"provisioned" type:"string"`
  60106. // Reserved. If you need to sustain traffic greater than the documented limits
  60107. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  60108. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  60109. RequestTime *time.Time `locationName:"requestTime" type:"timestamp"`
  60110. // Reserved. If you need to sustain traffic greater than the documented limits
  60111. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  60112. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  60113. Requested *string `locationName:"requested" type:"string"`
  60114. // Reserved. If you need to sustain traffic greater than the documented limits
  60115. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  60116. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  60117. Status *string `locationName:"status" type:"string"`
  60118. }
  60119. // String returns the string representation
  60120. func (s ProvisionedBandwidth) String() string {
  60121. return awsutil.Prettify(s)
  60122. }
  60123. // GoString returns the string representation
  60124. func (s ProvisionedBandwidth) GoString() string {
  60125. return s.String()
  60126. }
  60127. // SetProvisionTime sets the ProvisionTime field's value.
  60128. func (s *ProvisionedBandwidth) SetProvisionTime(v time.Time) *ProvisionedBandwidth {
  60129. s.ProvisionTime = &v
  60130. return s
  60131. }
  60132. // SetProvisioned sets the Provisioned field's value.
  60133. func (s *ProvisionedBandwidth) SetProvisioned(v string) *ProvisionedBandwidth {
  60134. s.Provisioned = &v
  60135. return s
  60136. }
  60137. // SetRequestTime sets the RequestTime field's value.
  60138. func (s *ProvisionedBandwidth) SetRequestTime(v time.Time) *ProvisionedBandwidth {
  60139. s.RequestTime = &v
  60140. return s
  60141. }
  60142. // SetRequested sets the Requested field's value.
  60143. func (s *ProvisionedBandwidth) SetRequested(v string) *ProvisionedBandwidth {
  60144. s.Requested = &v
  60145. return s
  60146. }
  60147. // SetStatus sets the Status field's value.
  60148. func (s *ProvisionedBandwidth) SetStatus(v string) *ProvisionedBandwidth {
  60149. s.Status = &v
  60150. return s
  60151. }
  60152. // Describes an address pool.
  60153. type PublicIpv4Pool struct {
  60154. _ struct{} `type:"structure"`
  60155. // A description of the address pool.
  60156. Description *string `locationName:"description" type:"string"`
  60157. // The address ranges.
  60158. PoolAddressRanges []*PublicIpv4PoolRange `locationName:"poolAddressRangeSet" locationNameList:"item" type:"list"`
  60159. // The ID of the IPv4 address pool.
  60160. PoolId *string `locationName:"poolId" type:"string"`
  60161. // The total number of addresses.
  60162. TotalAddressCount *int64 `locationName:"totalAddressCount" type:"integer"`
  60163. // The total number of available addresses.
  60164. TotalAvailableAddressCount *int64 `locationName:"totalAvailableAddressCount" type:"integer"`
  60165. }
  60166. // String returns the string representation
  60167. func (s PublicIpv4Pool) String() string {
  60168. return awsutil.Prettify(s)
  60169. }
  60170. // GoString returns the string representation
  60171. func (s PublicIpv4Pool) GoString() string {
  60172. return s.String()
  60173. }
  60174. // SetDescription sets the Description field's value.
  60175. func (s *PublicIpv4Pool) SetDescription(v string) *PublicIpv4Pool {
  60176. s.Description = &v
  60177. return s
  60178. }
  60179. // SetPoolAddressRanges sets the PoolAddressRanges field's value.
  60180. func (s *PublicIpv4Pool) SetPoolAddressRanges(v []*PublicIpv4PoolRange) *PublicIpv4Pool {
  60181. s.PoolAddressRanges = v
  60182. return s
  60183. }
  60184. // SetPoolId sets the PoolId field's value.
  60185. func (s *PublicIpv4Pool) SetPoolId(v string) *PublicIpv4Pool {
  60186. s.PoolId = &v
  60187. return s
  60188. }
  60189. // SetTotalAddressCount sets the TotalAddressCount field's value.
  60190. func (s *PublicIpv4Pool) SetTotalAddressCount(v int64) *PublicIpv4Pool {
  60191. s.TotalAddressCount = &v
  60192. return s
  60193. }
  60194. // SetTotalAvailableAddressCount sets the TotalAvailableAddressCount field's value.
  60195. func (s *PublicIpv4Pool) SetTotalAvailableAddressCount(v int64) *PublicIpv4Pool {
  60196. s.TotalAvailableAddressCount = &v
  60197. return s
  60198. }
  60199. // Describes an address range of an IPv4 address pool.
  60200. type PublicIpv4PoolRange struct {
  60201. _ struct{} `type:"structure"`
  60202. // The number of addresses in the range.
  60203. AddressCount *int64 `locationName:"addressCount" type:"integer"`
  60204. // The number of available addresses in the range.
  60205. AvailableAddressCount *int64 `locationName:"availableAddressCount" type:"integer"`
  60206. // The first IP address in the range.
  60207. FirstAddress *string `locationName:"firstAddress" type:"string"`
  60208. // The last IP address in the range.
  60209. LastAddress *string `locationName:"lastAddress" type:"string"`
  60210. }
  60211. // String returns the string representation
  60212. func (s PublicIpv4PoolRange) String() string {
  60213. return awsutil.Prettify(s)
  60214. }
  60215. // GoString returns the string representation
  60216. func (s PublicIpv4PoolRange) GoString() string {
  60217. return s.String()
  60218. }
  60219. // SetAddressCount sets the AddressCount field's value.
  60220. func (s *PublicIpv4PoolRange) SetAddressCount(v int64) *PublicIpv4PoolRange {
  60221. s.AddressCount = &v
  60222. return s
  60223. }
  60224. // SetAvailableAddressCount sets the AvailableAddressCount field's value.
  60225. func (s *PublicIpv4PoolRange) SetAvailableAddressCount(v int64) *PublicIpv4PoolRange {
  60226. s.AvailableAddressCount = &v
  60227. return s
  60228. }
  60229. // SetFirstAddress sets the FirstAddress field's value.
  60230. func (s *PublicIpv4PoolRange) SetFirstAddress(v string) *PublicIpv4PoolRange {
  60231. s.FirstAddress = &v
  60232. return s
  60233. }
  60234. // SetLastAddress sets the LastAddress field's value.
  60235. func (s *PublicIpv4PoolRange) SetLastAddress(v string) *PublicIpv4PoolRange {
  60236. s.LastAddress = &v
  60237. return s
  60238. }
  60239. // Describes the result of the purchase.
  60240. type Purchase struct {
  60241. _ struct{} `type:"structure"`
  60242. // The currency in which the UpfrontPrice and HourlyPrice amounts are specified.
  60243. // At this time, the only supported currency is USD.
  60244. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  60245. // The duration of the reservation's term in seconds.
  60246. Duration *int64 `locationName:"duration" type:"integer"`
  60247. // The IDs of the Dedicated Hosts associated with the reservation.
  60248. HostIdSet []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  60249. // The ID of the reservation.
  60250. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  60251. // The hourly price of the reservation per hour.
  60252. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  60253. // The instance family on the Dedicated Host that the reservation can be associated
  60254. // with.
  60255. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  60256. // The payment option for the reservation.
  60257. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  60258. // The upfront price of the reservation.
  60259. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  60260. }
  60261. // String returns the string representation
  60262. func (s Purchase) String() string {
  60263. return awsutil.Prettify(s)
  60264. }
  60265. // GoString returns the string representation
  60266. func (s Purchase) GoString() string {
  60267. return s.String()
  60268. }
  60269. // SetCurrencyCode sets the CurrencyCode field's value.
  60270. func (s *Purchase) SetCurrencyCode(v string) *Purchase {
  60271. s.CurrencyCode = &v
  60272. return s
  60273. }
  60274. // SetDuration sets the Duration field's value.
  60275. func (s *Purchase) SetDuration(v int64) *Purchase {
  60276. s.Duration = &v
  60277. return s
  60278. }
  60279. // SetHostIdSet sets the HostIdSet field's value.
  60280. func (s *Purchase) SetHostIdSet(v []*string) *Purchase {
  60281. s.HostIdSet = v
  60282. return s
  60283. }
  60284. // SetHostReservationId sets the HostReservationId field's value.
  60285. func (s *Purchase) SetHostReservationId(v string) *Purchase {
  60286. s.HostReservationId = &v
  60287. return s
  60288. }
  60289. // SetHourlyPrice sets the HourlyPrice field's value.
  60290. func (s *Purchase) SetHourlyPrice(v string) *Purchase {
  60291. s.HourlyPrice = &v
  60292. return s
  60293. }
  60294. // SetInstanceFamily sets the InstanceFamily field's value.
  60295. func (s *Purchase) SetInstanceFamily(v string) *Purchase {
  60296. s.InstanceFamily = &v
  60297. return s
  60298. }
  60299. // SetPaymentOption sets the PaymentOption field's value.
  60300. func (s *Purchase) SetPaymentOption(v string) *Purchase {
  60301. s.PaymentOption = &v
  60302. return s
  60303. }
  60304. // SetUpfrontPrice sets the UpfrontPrice field's value.
  60305. func (s *Purchase) SetUpfrontPrice(v string) *Purchase {
  60306. s.UpfrontPrice = &v
  60307. return s
  60308. }
  60309. type PurchaseHostReservationInput struct {
  60310. _ struct{} `type:"structure"`
  60311. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  60312. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  60313. // in the Amazon Elastic Compute Cloud User Guide.
  60314. ClientToken *string `type:"string"`
  60315. // The currency in which the totalUpfrontPrice, LimitPrice, and totalHourlyPrice
  60316. // amounts are specified. At this time, the only supported currency is USD.
  60317. CurrencyCode *string `type:"string" enum:"CurrencyCodeValues"`
  60318. // The IDs of the Dedicated Hosts with which the reservation will be associated.
  60319. //
  60320. // HostIdSet is a required field
  60321. HostIdSet []*string `locationNameList:"item" type:"list" required:"true"`
  60322. // The specified limit is checked against the total upfront cost of the reservation
  60323. // (calculated as the offering's upfront cost multiplied by the host count).
  60324. // If the total upfront cost is greater than the specified price limit, the
  60325. // request fails. This is used to ensure that the purchase does not exceed the
  60326. // expected upfront cost of the purchase. At this time, the only supported currency
  60327. // is USD. For example, to indicate a limit price of USD 100, specify 100.00.
  60328. LimitPrice *string `type:"string"`
  60329. // The ID of the offering.
  60330. //
  60331. // OfferingId is a required field
  60332. OfferingId *string `type:"string" required:"true"`
  60333. }
  60334. // String returns the string representation
  60335. func (s PurchaseHostReservationInput) String() string {
  60336. return awsutil.Prettify(s)
  60337. }
  60338. // GoString returns the string representation
  60339. func (s PurchaseHostReservationInput) GoString() string {
  60340. return s.String()
  60341. }
  60342. // Validate inspects the fields of the type to determine if they are valid.
  60343. func (s *PurchaseHostReservationInput) Validate() error {
  60344. invalidParams := request.ErrInvalidParams{Context: "PurchaseHostReservationInput"}
  60345. if s.HostIdSet == nil {
  60346. invalidParams.Add(request.NewErrParamRequired("HostIdSet"))
  60347. }
  60348. if s.OfferingId == nil {
  60349. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  60350. }
  60351. if invalidParams.Len() > 0 {
  60352. return invalidParams
  60353. }
  60354. return nil
  60355. }
  60356. // SetClientToken sets the ClientToken field's value.
  60357. func (s *PurchaseHostReservationInput) SetClientToken(v string) *PurchaseHostReservationInput {
  60358. s.ClientToken = &v
  60359. return s
  60360. }
  60361. // SetCurrencyCode sets the CurrencyCode field's value.
  60362. func (s *PurchaseHostReservationInput) SetCurrencyCode(v string) *PurchaseHostReservationInput {
  60363. s.CurrencyCode = &v
  60364. return s
  60365. }
  60366. // SetHostIdSet sets the HostIdSet field's value.
  60367. func (s *PurchaseHostReservationInput) SetHostIdSet(v []*string) *PurchaseHostReservationInput {
  60368. s.HostIdSet = v
  60369. return s
  60370. }
  60371. // SetLimitPrice sets the LimitPrice field's value.
  60372. func (s *PurchaseHostReservationInput) SetLimitPrice(v string) *PurchaseHostReservationInput {
  60373. s.LimitPrice = &v
  60374. return s
  60375. }
  60376. // SetOfferingId sets the OfferingId field's value.
  60377. func (s *PurchaseHostReservationInput) SetOfferingId(v string) *PurchaseHostReservationInput {
  60378. s.OfferingId = &v
  60379. return s
  60380. }
  60381. type PurchaseHostReservationOutput struct {
  60382. _ struct{} `type:"structure"`
  60383. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  60384. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  60385. // in the Amazon Elastic Compute Cloud User Guide.
  60386. ClientToken *string `locationName:"clientToken" type:"string"`
  60387. // The currency in which the totalUpfrontPrice and totalHourlyPrice amounts
  60388. // are specified. At this time, the only supported currency is USD.
  60389. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  60390. // Describes the details of the purchase.
  60391. Purchase []*Purchase `locationName:"purchase" locationNameList:"item" type:"list"`
  60392. // The total hourly price of the reservation calculated per hour.
  60393. TotalHourlyPrice *string `locationName:"totalHourlyPrice" type:"string"`
  60394. // The total amount charged to your account when you purchase the reservation.
  60395. TotalUpfrontPrice *string `locationName:"totalUpfrontPrice" type:"string"`
  60396. }
  60397. // String returns the string representation
  60398. func (s PurchaseHostReservationOutput) String() string {
  60399. return awsutil.Prettify(s)
  60400. }
  60401. // GoString returns the string representation
  60402. func (s PurchaseHostReservationOutput) GoString() string {
  60403. return s.String()
  60404. }
  60405. // SetClientToken sets the ClientToken field's value.
  60406. func (s *PurchaseHostReservationOutput) SetClientToken(v string) *PurchaseHostReservationOutput {
  60407. s.ClientToken = &v
  60408. return s
  60409. }
  60410. // SetCurrencyCode sets the CurrencyCode field's value.
  60411. func (s *PurchaseHostReservationOutput) SetCurrencyCode(v string) *PurchaseHostReservationOutput {
  60412. s.CurrencyCode = &v
  60413. return s
  60414. }
  60415. // SetPurchase sets the Purchase field's value.
  60416. func (s *PurchaseHostReservationOutput) SetPurchase(v []*Purchase) *PurchaseHostReservationOutput {
  60417. s.Purchase = v
  60418. return s
  60419. }
  60420. // SetTotalHourlyPrice sets the TotalHourlyPrice field's value.
  60421. func (s *PurchaseHostReservationOutput) SetTotalHourlyPrice(v string) *PurchaseHostReservationOutput {
  60422. s.TotalHourlyPrice = &v
  60423. return s
  60424. }
  60425. // SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value.
  60426. func (s *PurchaseHostReservationOutput) SetTotalUpfrontPrice(v string) *PurchaseHostReservationOutput {
  60427. s.TotalUpfrontPrice = &v
  60428. return s
  60429. }
  60430. // Describes a request to purchase Scheduled Instances.
  60431. type PurchaseRequest struct {
  60432. _ struct{} `type:"structure"`
  60433. // The number of instances.
  60434. //
  60435. // InstanceCount is a required field
  60436. InstanceCount *int64 `type:"integer" required:"true"`
  60437. // The purchase token.
  60438. //
  60439. // PurchaseToken is a required field
  60440. PurchaseToken *string `type:"string" required:"true"`
  60441. }
  60442. // String returns the string representation
  60443. func (s PurchaseRequest) String() string {
  60444. return awsutil.Prettify(s)
  60445. }
  60446. // GoString returns the string representation
  60447. func (s PurchaseRequest) GoString() string {
  60448. return s.String()
  60449. }
  60450. // Validate inspects the fields of the type to determine if they are valid.
  60451. func (s *PurchaseRequest) Validate() error {
  60452. invalidParams := request.ErrInvalidParams{Context: "PurchaseRequest"}
  60453. if s.InstanceCount == nil {
  60454. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  60455. }
  60456. if s.PurchaseToken == nil {
  60457. invalidParams.Add(request.NewErrParamRequired("PurchaseToken"))
  60458. }
  60459. if invalidParams.Len() > 0 {
  60460. return invalidParams
  60461. }
  60462. return nil
  60463. }
  60464. // SetInstanceCount sets the InstanceCount field's value.
  60465. func (s *PurchaseRequest) SetInstanceCount(v int64) *PurchaseRequest {
  60466. s.InstanceCount = &v
  60467. return s
  60468. }
  60469. // SetPurchaseToken sets the PurchaseToken field's value.
  60470. func (s *PurchaseRequest) SetPurchaseToken(v string) *PurchaseRequest {
  60471. s.PurchaseToken = &v
  60472. return s
  60473. }
  60474. // Contains the parameters for PurchaseReservedInstancesOffering.
  60475. type PurchaseReservedInstancesOfferingInput struct {
  60476. _ struct{} `type:"structure"`
  60477. // Checks whether you have the required permissions for the action, without
  60478. // actually making the request, and provides an error response. If you have
  60479. // the required permissions, the error response is DryRunOperation. Otherwise,
  60480. // it is UnauthorizedOperation.
  60481. DryRun *bool `locationName:"dryRun" type:"boolean"`
  60482. // The number of Reserved Instances to purchase.
  60483. //
  60484. // InstanceCount is a required field
  60485. InstanceCount *int64 `type:"integer" required:"true"`
  60486. // Specified for Reserved Instance Marketplace offerings to limit the total
  60487. // order and ensure that the Reserved Instances are not purchased at unexpected
  60488. // prices.
  60489. LimitPrice *ReservedInstanceLimitPrice `locationName:"limitPrice" type:"structure"`
  60490. // The ID of the Reserved Instance offering to purchase.
  60491. //
  60492. // ReservedInstancesOfferingId is a required field
  60493. ReservedInstancesOfferingId *string `type:"string" required:"true"`
  60494. }
  60495. // String returns the string representation
  60496. func (s PurchaseReservedInstancesOfferingInput) String() string {
  60497. return awsutil.Prettify(s)
  60498. }
  60499. // GoString returns the string representation
  60500. func (s PurchaseReservedInstancesOfferingInput) GoString() string {
  60501. return s.String()
  60502. }
  60503. // Validate inspects the fields of the type to determine if they are valid.
  60504. func (s *PurchaseReservedInstancesOfferingInput) Validate() error {
  60505. invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedInstancesOfferingInput"}
  60506. if s.InstanceCount == nil {
  60507. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  60508. }
  60509. if s.ReservedInstancesOfferingId == nil {
  60510. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesOfferingId"))
  60511. }
  60512. if invalidParams.Len() > 0 {
  60513. return invalidParams
  60514. }
  60515. return nil
  60516. }
  60517. // SetDryRun sets the DryRun field's value.
  60518. func (s *PurchaseReservedInstancesOfferingInput) SetDryRun(v bool) *PurchaseReservedInstancesOfferingInput {
  60519. s.DryRun = &v
  60520. return s
  60521. }
  60522. // SetInstanceCount sets the InstanceCount field's value.
  60523. func (s *PurchaseReservedInstancesOfferingInput) SetInstanceCount(v int64) *PurchaseReservedInstancesOfferingInput {
  60524. s.InstanceCount = &v
  60525. return s
  60526. }
  60527. // SetLimitPrice sets the LimitPrice field's value.
  60528. func (s *PurchaseReservedInstancesOfferingInput) SetLimitPrice(v *ReservedInstanceLimitPrice) *PurchaseReservedInstancesOfferingInput {
  60529. s.LimitPrice = v
  60530. return s
  60531. }
  60532. // SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value.
  60533. func (s *PurchaseReservedInstancesOfferingInput) SetReservedInstancesOfferingId(v string) *PurchaseReservedInstancesOfferingInput {
  60534. s.ReservedInstancesOfferingId = &v
  60535. return s
  60536. }
  60537. // Contains the output of PurchaseReservedInstancesOffering.
  60538. type PurchaseReservedInstancesOfferingOutput struct {
  60539. _ struct{} `type:"structure"`
  60540. // The IDs of the purchased Reserved Instances.
  60541. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  60542. }
  60543. // String returns the string representation
  60544. func (s PurchaseReservedInstancesOfferingOutput) String() string {
  60545. return awsutil.Prettify(s)
  60546. }
  60547. // GoString returns the string representation
  60548. func (s PurchaseReservedInstancesOfferingOutput) GoString() string {
  60549. return s.String()
  60550. }
  60551. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  60552. func (s *PurchaseReservedInstancesOfferingOutput) SetReservedInstancesId(v string) *PurchaseReservedInstancesOfferingOutput {
  60553. s.ReservedInstancesId = &v
  60554. return s
  60555. }
  60556. // Contains the parameters for PurchaseScheduledInstances.
  60557. type PurchaseScheduledInstancesInput struct {
  60558. _ struct{} `type:"structure"`
  60559. // Unique, case-sensitive identifier that ensures the idempotency of the request.
  60560. // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  60561. ClientToken *string `type:"string" idempotencyToken:"true"`
  60562. // Checks whether you have the required permissions for the action, without
  60563. // actually making the request, and provides an error response. If you have
  60564. // the required permissions, the error response is DryRunOperation. Otherwise,
  60565. // it is UnauthorizedOperation.
  60566. DryRun *bool `type:"boolean"`
  60567. // One or more purchase requests.
  60568. //
  60569. // PurchaseRequests is a required field
  60570. PurchaseRequests []*PurchaseRequest `locationName:"PurchaseRequest" locationNameList:"PurchaseRequest" min:"1" type:"list" required:"true"`
  60571. }
  60572. // String returns the string representation
  60573. func (s PurchaseScheduledInstancesInput) String() string {
  60574. return awsutil.Prettify(s)
  60575. }
  60576. // GoString returns the string representation
  60577. func (s PurchaseScheduledInstancesInput) GoString() string {
  60578. return s.String()
  60579. }
  60580. // Validate inspects the fields of the type to determine if they are valid.
  60581. func (s *PurchaseScheduledInstancesInput) Validate() error {
  60582. invalidParams := request.ErrInvalidParams{Context: "PurchaseScheduledInstancesInput"}
  60583. if s.PurchaseRequests == nil {
  60584. invalidParams.Add(request.NewErrParamRequired("PurchaseRequests"))
  60585. }
  60586. if s.PurchaseRequests != nil && len(s.PurchaseRequests) < 1 {
  60587. invalidParams.Add(request.NewErrParamMinLen("PurchaseRequests", 1))
  60588. }
  60589. if s.PurchaseRequests != nil {
  60590. for i, v := range s.PurchaseRequests {
  60591. if v == nil {
  60592. continue
  60593. }
  60594. if err := v.Validate(); err != nil {
  60595. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PurchaseRequests", i), err.(request.ErrInvalidParams))
  60596. }
  60597. }
  60598. }
  60599. if invalidParams.Len() > 0 {
  60600. return invalidParams
  60601. }
  60602. return nil
  60603. }
  60604. // SetClientToken sets the ClientToken field's value.
  60605. func (s *PurchaseScheduledInstancesInput) SetClientToken(v string) *PurchaseScheduledInstancesInput {
  60606. s.ClientToken = &v
  60607. return s
  60608. }
  60609. // SetDryRun sets the DryRun field's value.
  60610. func (s *PurchaseScheduledInstancesInput) SetDryRun(v bool) *PurchaseScheduledInstancesInput {
  60611. s.DryRun = &v
  60612. return s
  60613. }
  60614. // SetPurchaseRequests sets the PurchaseRequests field's value.
  60615. func (s *PurchaseScheduledInstancesInput) SetPurchaseRequests(v []*PurchaseRequest) *PurchaseScheduledInstancesInput {
  60616. s.PurchaseRequests = v
  60617. return s
  60618. }
  60619. // Contains the output of PurchaseScheduledInstances.
  60620. type PurchaseScheduledInstancesOutput struct {
  60621. _ struct{} `type:"structure"`
  60622. // Information about the Scheduled Instances.
  60623. ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
  60624. }
  60625. // String returns the string representation
  60626. func (s PurchaseScheduledInstancesOutput) String() string {
  60627. return awsutil.Prettify(s)
  60628. }
  60629. // GoString returns the string representation
  60630. func (s PurchaseScheduledInstancesOutput) GoString() string {
  60631. return s.String()
  60632. }
  60633. // SetScheduledInstanceSet sets the ScheduledInstanceSet field's value.
  60634. func (s *PurchaseScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *PurchaseScheduledInstancesOutput {
  60635. s.ScheduledInstanceSet = v
  60636. return s
  60637. }
  60638. type RebootInstancesInput struct {
  60639. _ struct{} `type:"structure"`
  60640. // Checks whether you have the required permissions for the action, without
  60641. // actually making the request, and provides an error response. If you have
  60642. // the required permissions, the error response is DryRunOperation. Otherwise,
  60643. // it is UnauthorizedOperation.
  60644. DryRun *bool `locationName:"dryRun" type:"boolean"`
  60645. // One or more instance IDs.
  60646. //
  60647. // InstanceIds is a required field
  60648. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  60649. }
  60650. // String returns the string representation
  60651. func (s RebootInstancesInput) String() string {
  60652. return awsutil.Prettify(s)
  60653. }
  60654. // GoString returns the string representation
  60655. func (s RebootInstancesInput) GoString() string {
  60656. return s.String()
  60657. }
  60658. // Validate inspects the fields of the type to determine if they are valid.
  60659. func (s *RebootInstancesInput) Validate() error {
  60660. invalidParams := request.ErrInvalidParams{Context: "RebootInstancesInput"}
  60661. if s.InstanceIds == nil {
  60662. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  60663. }
  60664. if invalidParams.Len() > 0 {
  60665. return invalidParams
  60666. }
  60667. return nil
  60668. }
  60669. // SetDryRun sets the DryRun field's value.
  60670. func (s *RebootInstancesInput) SetDryRun(v bool) *RebootInstancesInput {
  60671. s.DryRun = &v
  60672. return s
  60673. }
  60674. // SetInstanceIds sets the InstanceIds field's value.
  60675. func (s *RebootInstancesInput) SetInstanceIds(v []*string) *RebootInstancesInput {
  60676. s.InstanceIds = v
  60677. return s
  60678. }
  60679. type RebootInstancesOutput struct {
  60680. _ struct{} `type:"structure"`
  60681. }
  60682. // String returns the string representation
  60683. func (s RebootInstancesOutput) String() string {
  60684. return awsutil.Prettify(s)
  60685. }
  60686. // GoString returns the string representation
  60687. func (s RebootInstancesOutput) GoString() string {
  60688. return s.String()
  60689. }
  60690. // Describes a recurring charge.
  60691. type RecurringCharge struct {
  60692. _ struct{} `type:"structure"`
  60693. // The amount of the recurring charge.
  60694. Amount *float64 `locationName:"amount" type:"double"`
  60695. // The frequency of the recurring charge.
  60696. Frequency *string `locationName:"frequency" type:"string" enum:"RecurringChargeFrequency"`
  60697. }
  60698. // String returns the string representation
  60699. func (s RecurringCharge) String() string {
  60700. return awsutil.Prettify(s)
  60701. }
  60702. // GoString returns the string representation
  60703. func (s RecurringCharge) GoString() string {
  60704. return s.String()
  60705. }
  60706. // SetAmount sets the Amount field's value.
  60707. func (s *RecurringCharge) SetAmount(v float64) *RecurringCharge {
  60708. s.Amount = &v
  60709. return s
  60710. }
  60711. // SetFrequency sets the Frequency field's value.
  60712. func (s *RecurringCharge) SetFrequency(v string) *RecurringCharge {
  60713. s.Frequency = &v
  60714. return s
  60715. }
  60716. // Describes a region.
  60717. type Region struct {
  60718. _ struct{} `type:"structure"`
  60719. // The region service endpoint.
  60720. Endpoint *string `locationName:"regionEndpoint" type:"string"`
  60721. // The name of the region.
  60722. RegionName *string `locationName:"regionName" type:"string"`
  60723. }
  60724. // String returns the string representation
  60725. func (s Region) String() string {
  60726. return awsutil.Prettify(s)
  60727. }
  60728. // GoString returns the string representation
  60729. func (s Region) GoString() string {
  60730. return s.String()
  60731. }
  60732. // SetEndpoint sets the Endpoint field's value.
  60733. func (s *Region) SetEndpoint(v string) *Region {
  60734. s.Endpoint = &v
  60735. return s
  60736. }
  60737. // SetRegionName sets the RegionName field's value.
  60738. func (s *Region) SetRegionName(v string) *Region {
  60739. s.RegionName = &v
  60740. return s
  60741. }
  60742. // Contains the parameters for RegisterImage.
  60743. type RegisterImageInput struct {
  60744. _ struct{} `type:"structure"`
  60745. // The architecture of the AMI.
  60746. //
  60747. // Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs,
  60748. // the architecture specified in the manifest file.
  60749. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  60750. // The billing product codes. Your account must be authorized to specify billing
  60751. // product codes. Otherwise, you can use the AWS Marketplace to bill for the
  60752. // use of an AMI.
  60753. BillingProducts []*string `locationName:"BillingProduct" locationNameList:"item" type:"list"`
  60754. // One or more block device mapping entries.
  60755. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  60756. // A description for your AMI.
  60757. Description *string `locationName:"description" type:"string"`
  60758. // Checks whether you have the required permissions for the action, without
  60759. // actually making the request, and provides an error response. If you have
  60760. // the required permissions, the error response is DryRunOperation. Otherwise,
  60761. // it is UnauthorizedOperation.
  60762. DryRun *bool `locationName:"dryRun" type:"boolean"`
  60763. // Set to true to enable enhanced networking with ENA for the AMI and any instances
  60764. // that you launch from the AMI.
  60765. //
  60766. // This option is supported only for HVM AMIs. Specifying this option with a
  60767. // PV AMI can make instances launched from the AMI unreachable.
  60768. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  60769. // The full path to your AMI manifest in Amazon S3 storage.
  60770. ImageLocation *string `type:"string"`
  60771. // The ID of the kernel.
  60772. KernelId *string `locationName:"kernelId" type:"string"`
  60773. // A name for your AMI.
  60774. //
  60775. // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
  60776. // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
  60777. // at-signs (@), or underscores(_)
  60778. //
  60779. // Name is a required field
  60780. Name *string `locationName:"name" type:"string" required:"true"`
  60781. // The ID of the RAM disk.
  60782. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  60783. // The device name of the root device volume (for example, /dev/sda1).
  60784. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  60785. // Set to simple to enable enhanced networking with the Intel 82599 Virtual
  60786. // Function interface for the AMI and any instances that you launch from the
  60787. // AMI.
  60788. //
  60789. // There is no way to disable sriovNetSupport at this time.
  60790. //
  60791. // This option is supported only for HVM AMIs. Specifying this option with a
  60792. // PV AMI can make instances launched from the AMI unreachable.
  60793. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  60794. // The type of virtualization (hvm | paravirtual).
  60795. //
  60796. // Default: paravirtual
  60797. VirtualizationType *string `locationName:"virtualizationType" type:"string"`
  60798. }
  60799. // String returns the string representation
  60800. func (s RegisterImageInput) String() string {
  60801. return awsutil.Prettify(s)
  60802. }
  60803. // GoString returns the string representation
  60804. func (s RegisterImageInput) GoString() string {
  60805. return s.String()
  60806. }
  60807. // Validate inspects the fields of the type to determine if they are valid.
  60808. func (s *RegisterImageInput) Validate() error {
  60809. invalidParams := request.ErrInvalidParams{Context: "RegisterImageInput"}
  60810. if s.Name == nil {
  60811. invalidParams.Add(request.NewErrParamRequired("Name"))
  60812. }
  60813. if invalidParams.Len() > 0 {
  60814. return invalidParams
  60815. }
  60816. return nil
  60817. }
  60818. // SetArchitecture sets the Architecture field's value.
  60819. func (s *RegisterImageInput) SetArchitecture(v string) *RegisterImageInput {
  60820. s.Architecture = &v
  60821. return s
  60822. }
  60823. // SetBillingProducts sets the BillingProducts field's value.
  60824. func (s *RegisterImageInput) SetBillingProducts(v []*string) *RegisterImageInput {
  60825. s.BillingProducts = v
  60826. return s
  60827. }
  60828. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  60829. func (s *RegisterImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RegisterImageInput {
  60830. s.BlockDeviceMappings = v
  60831. return s
  60832. }
  60833. // SetDescription sets the Description field's value.
  60834. func (s *RegisterImageInput) SetDescription(v string) *RegisterImageInput {
  60835. s.Description = &v
  60836. return s
  60837. }
  60838. // SetDryRun sets the DryRun field's value.
  60839. func (s *RegisterImageInput) SetDryRun(v bool) *RegisterImageInput {
  60840. s.DryRun = &v
  60841. return s
  60842. }
  60843. // SetEnaSupport sets the EnaSupport field's value.
  60844. func (s *RegisterImageInput) SetEnaSupport(v bool) *RegisterImageInput {
  60845. s.EnaSupport = &v
  60846. return s
  60847. }
  60848. // SetImageLocation sets the ImageLocation field's value.
  60849. func (s *RegisterImageInput) SetImageLocation(v string) *RegisterImageInput {
  60850. s.ImageLocation = &v
  60851. return s
  60852. }
  60853. // SetKernelId sets the KernelId field's value.
  60854. func (s *RegisterImageInput) SetKernelId(v string) *RegisterImageInput {
  60855. s.KernelId = &v
  60856. return s
  60857. }
  60858. // SetName sets the Name field's value.
  60859. func (s *RegisterImageInput) SetName(v string) *RegisterImageInput {
  60860. s.Name = &v
  60861. return s
  60862. }
  60863. // SetRamdiskId sets the RamdiskId field's value.
  60864. func (s *RegisterImageInput) SetRamdiskId(v string) *RegisterImageInput {
  60865. s.RamdiskId = &v
  60866. return s
  60867. }
  60868. // SetRootDeviceName sets the RootDeviceName field's value.
  60869. func (s *RegisterImageInput) SetRootDeviceName(v string) *RegisterImageInput {
  60870. s.RootDeviceName = &v
  60871. return s
  60872. }
  60873. // SetSriovNetSupport sets the SriovNetSupport field's value.
  60874. func (s *RegisterImageInput) SetSriovNetSupport(v string) *RegisterImageInput {
  60875. s.SriovNetSupport = &v
  60876. return s
  60877. }
  60878. // SetVirtualizationType sets the VirtualizationType field's value.
  60879. func (s *RegisterImageInput) SetVirtualizationType(v string) *RegisterImageInput {
  60880. s.VirtualizationType = &v
  60881. return s
  60882. }
  60883. // Contains the output of RegisterImage.
  60884. type RegisterImageOutput struct {
  60885. _ struct{} `type:"structure"`
  60886. // The ID of the newly registered AMI.
  60887. ImageId *string `locationName:"imageId" type:"string"`
  60888. }
  60889. // String returns the string representation
  60890. func (s RegisterImageOutput) String() string {
  60891. return awsutil.Prettify(s)
  60892. }
  60893. // GoString returns the string representation
  60894. func (s RegisterImageOutput) GoString() string {
  60895. return s.String()
  60896. }
  60897. // SetImageId sets the ImageId field's value.
  60898. func (s *RegisterImageOutput) SetImageId(v string) *RegisterImageOutput {
  60899. s.ImageId = &v
  60900. return s
  60901. }
  60902. type RejectTransitGatewayVpcAttachmentInput struct {
  60903. _ struct{} `type:"structure"`
  60904. // Checks whether you have the required permissions for the action, without
  60905. // actually making the request, and provides an error response. If you have
  60906. // the required permissions, the error response is DryRunOperation. Otherwise,
  60907. // it is UnauthorizedOperation.
  60908. DryRun *bool `type:"boolean"`
  60909. // The ID of the attachment.
  60910. //
  60911. // TransitGatewayAttachmentId is a required field
  60912. TransitGatewayAttachmentId *string `type:"string" required:"true"`
  60913. }
  60914. // String returns the string representation
  60915. func (s RejectTransitGatewayVpcAttachmentInput) String() string {
  60916. return awsutil.Prettify(s)
  60917. }
  60918. // GoString returns the string representation
  60919. func (s RejectTransitGatewayVpcAttachmentInput) GoString() string {
  60920. return s.String()
  60921. }
  60922. // Validate inspects the fields of the type to determine if they are valid.
  60923. func (s *RejectTransitGatewayVpcAttachmentInput) Validate() error {
  60924. invalidParams := request.ErrInvalidParams{Context: "RejectTransitGatewayVpcAttachmentInput"}
  60925. if s.TransitGatewayAttachmentId == nil {
  60926. invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId"))
  60927. }
  60928. if invalidParams.Len() > 0 {
  60929. return invalidParams
  60930. }
  60931. return nil
  60932. }
  60933. // SetDryRun sets the DryRun field's value.
  60934. func (s *RejectTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *RejectTransitGatewayVpcAttachmentInput {
  60935. s.DryRun = &v
  60936. return s
  60937. }
  60938. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  60939. func (s *RejectTransitGatewayVpcAttachmentInput) SetTransitGatewayAttachmentId(v string) *RejectTransitGatewayVpcAttachmentInput {
  60940. s.TransitGatewayAttachmentId = &v
  60941. return s
  60942. }
  60943. type RejectTransitGatewayVpcAttachmentOutput struct {
  60944. _ struct{} `type:"structure"`
  60945. // Information about the attachment.
  60946. TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"`
  60947. }
  60948. // String returns the string representation
  60949. func (s RejectTransitGatewayVpcAttachmentOutput) String() string {
  60950. return awsutil.Prettify(s)
  60951. }
  60952. // GoString returns the string representation
  60953. func (s RejectTransitGatewayVpcAttachmentOutput) GoString() string {
  60954. return s.String()
  60955. }
  60956. // SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value.
  60957. func (s *RejectTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *RejectTransitGatewayVpcAttachmentOutput {
  60958. s.TransitGatewayVpcAttachment = v
  60959. return s
  60960. }
  60961. type RejectVpcEndpointConnectionsInput struct {
  60962. _ struct{} `type:"structure"`
  60963. // Checks whether you have the required permissions for the action, without
  60964. // actually making the request, and provides an error response. If you have
  60965. // the required permissions, the error response is DryRunOperation. Otherwise,
  60966. // it is UnauthorizedOperation.
  60967. DryRun *bool `type:"boolean"`
  60968. // The ID of the service.
  60969. //
  60970. // ServiceId is a required field
  60971. ServiceId *string `type:"string" required:"true"`
  60972. // The IDs of one or more VPC endpoints.
  60973. //
  60974. // VpcEndpointIds is a required field
  60975. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  60976. }
  60977. // String returns the string representation
  60978. func (s RejectVpcEndpointConnectionsInput) String() string {
  60979. return awsutil.Prettify(s)
  60980. }
  60981. // GoString returns the string representation
  60982. func (s RejectVpcEndpointConnectionsInput) GoString() string {
  60983. return s.String()
  60984. }
  60985. // Validate inspects the fields of the type to determine if they are valid.
  60986. func (s *RejectVpcEndpointConnectionsInput) Validate() error {
  60987. invalidParams := request.ErrInvalidParams{Context: "RejectVpcEndpointConnectionsInput"}
  60988. if s.ServiceId == nil {
  60989. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  60990. }
  60991. if s.VpcEndpointIds == nil {
  60992. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  60993. }
  60994. if invalidParams.Len() > 0 {
  60995. return invalidParams
  60996. }
  60997. return nil
  60998. }
  60999. // SetDryRun sets the DryRun field's value.
  61000. func (s *RejectVpcEndpointConnectionsInput) SetDryRun(v bool) *RejectVpcEndpointConnectionsInput {
  61001. s.DryRun = &v
  61002. return s
  61003. }
  61004. // SetServiceId sets the ServiceId field's value.
  61005. func (s *RejectVpcEndpointConnectionsInput) SetServiceId(v string) *RejectVpcEndpointConnectionsInput {
  61006. s.ServiceId = &v
  61007. return s
  61008. }
  61009. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  61010. func (s *RejectVpcEndpointConnectionsInput) SetVpcEndpointIds(v []*string) *RejectVpcEndpointConnectionsInput {
  61011. s.VpcEndpointIds = v
  61012. return s
  61013. }
  61014. type RejectVpcEndpointConnectionsOutput struct {
  61015. _ struct{} `type:"structure"`
  61016. // Information about the endpoints that were not rejected, if applicable.
  61017. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  61018. }
  61019. // String returns the string representation
  61020. func (s RejectVpcEndpointConnectionsOutput) String() string {
  61021. return awsutil.Prettify(s)
  61022. }
  61023. // GoString returns the string representation
  61024. func (s RejectVpcEndpointConnectionsOutput) GoString() string {
  61025. return s.String()
  61026. }
  61027. // SetUnsuccessful sets the Unsuccessful field's value.
  61028. func (s *RejectVpcEndpointConnectionsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *RejectVpcEndpointConnectionsOutput {
  61029. s.Unsuccessful = v
  61030. return s
  61031. }
  61032. type RejectVpcPeeringConnectionInput struct {
  61033. _ struct{} `type:"structure"`
  61034. // Checks whether you have the required permissions for the action, without
  61035. // actually making the request, and provides an error response. If you have
  61036. // the required permissions, the error response is DryRunOperation. Otherwise,
  61037. // it is UnauthorizedOperation.
  61038. DryRun *bool `locationName:"dryRun" type:"boolean"`
  61039. // The ID of the VPC peering connection.
  61040. //
  61041. // VpcPeeringConnectionId is a required field
  61042. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
  61043. }
  61044. // String returns the string representation
  61045. func (s RejectVpcPeeringConnectionInput) String() string {
  61046. return awsutil.Prettify(s)
  61047. }
  61048. // GoString returns the string representation
  61049. func (s RejectVpcPeeringConnectionInput) GoString() string {
  61050. return s.String()
  61051. }
  61052. // Validate inspects the fields of the type to determine if they are valid.
  61053. func (s *RejectVpcPeeringConnectionInput) Validate() error {
  61054. invalidParams := request.ErrInvalidParams{Context: "RejectVpcPeeringConnectionInput"}
  61055. if s.VpcPeeringConnectionId == nil {
  61056. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  61057. }
  61058. if invalidParams.Len() > 0 {
  61059. return invalidParams
  61060. }
  61061. return nil
  61062. }
  61063. // SetDryRun sets the DryRun field's value.
  61064. func (s *RejectVpcPeeringConnectionInput) SetDryRun(v bool) *RejectVpcPeeringConnectionInput {
  61065. s.DryRun = &v
  61066. return s
  61067. }
  61068. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  61069. func (s *RejectVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *RejectVpcPeeringConnectionInput {
  61070. s.VpcPeeringConnectionId = &v
  61071. return s
  61072. }
  61073. type RejectVpcPeeringConnectionOutput struct {
  61074. _ struct{} `type:"structure"`
  61075. // Returns true if the request succeeds; otherwise, it returns an error.
  61076. Return *bool `locationName:"return" type:"boolean"`
  61077. }
  61078. // String returns the string representation
  61079. func (s RejectVpcPeeringConnectionOutput) String() string {
  61080. return awsutil.Prettify(s)
  61081. }
  61082. // GoString returns the string representation
  61083. func (s RejectVpcPeeringConnectionOutput) GoString() string {
  61084. return s.String()
  61085. }
  61086. // SetReturn sets the Return field's value.
  61087. func (s *RejectVpcPeeringConnectionOutput) SetReturn(v bool) *RejectVpcPeeringConnectionOutput {
  61088. s.Return = &v
  61089. return s
  61090. }
  61091. type ReleaseAddressInput struct {
  61092. _ struct{} `type:"structure"`
  61093. // [EC2-VPC] The allocation ID. Required for EC2-VPC.
  61094. AllocationId *string `type:"string"`
  61095. // Checks whether you have the required permissions for the action, without
  61096. // actually making the request, and provides an error response. If you have
  61097. // the required permissions, the error response is DryRunOperation. Otherwise,
  61098. // it is UnauthorizedOperation.
  61099. DryRun *bool `locationName:"dryRun" type:"boolean"`
  61100. // [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
  61101. PublicIp *string `type:"string"`
  61102. }
  61103. // String returns the string representation
  61104. func (s ReleaseAddressInput) String() string {
  61105. return awsutil.Prettify(s)
  61106. }
  61107. // GoString returns the string representation
  61108. func (s ReleaseAddressInput) GoString() string {
  61109. return s.String()
  61110. }
  61111. // SetAllocationId sets the AllocationId field's value.
  61112. func (s *ReleaseAddressInput) SetAllocationId(v string) *ReleaseAddressInput {
  61113. s.AllocationId = &v
  61114. return s
  61115. }
  61116. // SetDryRun sets the DryRun field's value.
  61117. func (s *ReleaseAddressInput) SetDryRun(v bool) *ReleaseAddressInput {
  61118. s.DryRun = &v
  61119. return s
  61120. }
  61121. // SetPublicIp sets the PublicIp field's value.
  61122. func (s *ReleaseAddressInput) SetPublicIp(v string) *ReleaseAddressInput {
  61123. s.PublicIp = &v
  61124. return s
  61125. }
  61126. type ReleaseAddressOutput struct {
  61127. _ struct{} `type:"structure"`
  61128. }
  61129. // String returns the string representation
  61130. func (s ReleaseAddressOutput) String() string {
  61131. return awsutil.Prettify(s)
  61132. }
  61133. // GoString returns the string representation
  61134. func (s ReleaseAddressOutput) GoString() string {
  61135. return s.String()
  61136. }
  61137. type ReleaseHostsInput struct {
  61138. _ struct{} `type:"structure"`
  61139. // The IDs of the Dedicated Hosts to release.
  61140. //
  61141. // HostIds is a required field
  61142. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`
  61143. }
  61144. // String returns the string representation
  61145. func (s ReleaseHostsInput) String() string {
  61146. return awsutil.Prettify(s)
  61147. }
  61148. // GoString returns the string representation
  61149. func (s ReleaseHostsInput) GoString() string {
  61150. return s.String()
  61151. }
  61152. // Validate inspects the fields of the type to determine if they are valid.
  61153. func (s *ReleaseHostsInput) Validate() error {
  61154. invalidParams := request.ErrInvalidParams{Context: "ReleaseHostsInput"}
  61155. if s.HostIds == nil {
  61156. invalidParams.Add(request.NewErrParamRequired("HostIds"))
  61157. }
  61158. if invalidParams.Len() > 0 {
  61159. return invalidParams
  61160. }
  61161. return nil
  61162. }
  61163. // SetHostIds sets the HostIds field's value.
  61164. func (s *ReleaseHostsInput) SetHostIds(v []*string) *ReleaseHostsInput {
  61165. s.HostIds = v
  61166. return s
  61167. }
  61168. type ReleaseHostsOutput struct {
  61169. _ struct{} `type:"structure"`
  61170. // The IDs of the Dedicated Hosts that were successfully released.
  61171. Successful []*string `locationName:"successful" locationNameList:"item" type:"list"`
  61172. // The IDs of the Dedicated Hosts that could not be released, including an error
  61173. // message.
  61174. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  61175. }
  61176. // String returns the string representation
  61177. func (s ReleaseHostsOutput) String() string {
  61178. return awsutil.Prettify(s)
  61179. }
  61180. // GoString returns the string representation
  61181. func (s ReleaseHostsOutput) GoString() string {
  61182. return s.String()
  61183. }
  61184. // SetSuccessful sets the Successful field's value.
  61185. func (s *ReleaseHostsOutput) SetSuccessful(v []*string) *ReleaseHostsOutput {
  61186. s.Successful = v
  61187. return s
  61188. }
  61189. // SetUnsuccessful sets the Unsuccessful field's value.
  61190. func (s *ReleaseHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ReleaseHostsOutput {
  61191. s.Unsuccessful = v
  61192. return s
  61193. }
  61194. type ReplaceIamInstanceProfileAssociationInput struct {
  61195. _ struct{} `type:"structure"`
  61196. // The ID of the existing IAM instance profile association.
  61197. //
  61198. // AssociationId is a required field
  61199. AssociationId *string `type:"string" required:"true"`
  61200. // The IAM instance profile.
  61201. //
  61202. // IamInstanceProfile is a required field
  61203. IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"`
  61204. }
  61205. // String returns the string representation
  61206. func (s ReplaceIamInstanceProfileAssociationInput) String() string {
  61207. return awsutil.Prettify(s)
  61208. }
  61209. // GoString returns the string representation
  61210. func (s ReplaceIamInstanceProfileAssociationInput) GoString() string {
  61211. return s.String()
  61212. }
  61213. // Validate inspects the fields of the type to determine if they are valid.
  61214. func (s *ReplaceIamInstanceProfileAssociationInput) Validate() error {
  61215. invalidParams := request.ErrInvalidParams{Context: "ReplaceIamInstanceProfileAssociationInput"}
  61216. if s.AssociationId == nil {
  61217. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  61218. }
  61219. if s.IamInstanceProfile == nil {
  61220. invalidParams.Add(request.NewErrParamRequired("IamInstanceProfile"))
  61221. }
  61222. if invalidParams.Len() > 0 {
  61223. return invalidParams
  61224. }
  61225. return nil
  61226. }
  61227. // SetAssociationId sets the AssociationId field's value.
  61228. func (s *ReplaceIamInstanceProfileAssociationInput) SetAssociationId(v string) *ReplaceIamInstanceProfileAssociationInput {
  61229. s.AssociationId = &v
  61230. return s
  61231. }
  61232. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  61233. func (s *ReplaceIamInstanceProfileAssociationInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *ReplaceIamInstanceProfileAssociationInput {
  61234. s.IamInstanceProfile = v
  61235. return s
  61236. }
  61237. type ReplaceIamInstanceProfileAssociationOutput struct {
  61238. _ struct{} `type:"structure"`
  61239. // Information about the IAM instance profile association.
  61240. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  61241. }
  61242. // String returns the string representation
  61243. func (s ReplaceIamInstanceProfileAssociationOutput) String() string {
  61244. return awsutil.Prettify(s)
  61245. }
  61246. // GoString returns the string representation
  61247. func (s ReplaceIamInstanceProfileAssociationOutput) GoString() string {
  61248. return s.String()
  61249. }
  61250. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  61251. func (s *ReplaceIamInstanceProfileAssociationOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *ReplaceIamInstanceProfileAssociationOutput {
  61252. s.IamInstanceProfileAssociation = v
  61253. return s
  61254. }
  61255. type ReplaceNetworkAclAssociationInput struct {
  61256. _ struct{} `type:"structure"`
  61257. // The ID of the current association between the original network ACL and the
  61258. // subnet.
  61259. //
  61260. // AssociationId is a required field
  61261. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  61262. // Checks whether you have the required permissions for the action, without
  61263. // actually making the request, and provides an error response. If you have
  61264. // the required permissions, the error response is DryRunOperation. Otherwise,
  61265. // it is UnauthorizedOperation.
  61266. DryRun *bool `locationName:"dryRun" type:"boolean"`
  61267. // The ID of the new network ACL to associate with the subnet.
  61268. //
  61269. // NetworkAclId is a required field
  61270. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  61271. }
  61272. // String returns the string representation
  61273. func (s ReplaceNetworkAclAssociationInput) String() string {
  61274. return awsutil.Prettify(s)
  61275. }
  61276. // GoString returns the string representation
  61277. func (s ReplaceNetworkAclAssociationInput) GoString() string {
  61278. return s.String()
  61279. }
  61280. // Validate inspects the fields of the type to determine if they are valid.
  61281. func (s *ReplaceNetworkAclAssociationInput) Validate() error {
  61282. invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclAssociationInput"}
  61283. if s.AssociationId == nil {
  61284. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  61285. }
  61286. if s.NetworkAclId == nil {
  61287. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  61288. }
  61289. if invalidParams.Len() > 0 {
  61290. return invalidParams
  61291. }
  61292. return nil
  61293. }
  61294. // SetAssociationId sets the AssociationId field's value.
  61295. func (s *ReplaceNetworkAclAssociationInput) SetAssociationId(v string) *ReplaceNetworkAclAssociationInput {
  61296. s.AssociationId = &v
  61297. return s
  61298. }
  61299. // SetDryRun sets the DryRun field's value.
  61300. func (s *ReplaceNetworkAclAssociationInput) SetDryRun(v bool) *ReplaceNetworkAclAssociationInput {
  61301. s.DryRun = &v
  61302. return s
  61303. }
  61304. // SetNetworkAclId sets the NetworkAclId field's value.
  61305. func (s *ReplaceNetworkAclAssociationInput) SetNetworkAclId(v string) *ReplaceNetworkAclAssociationInput {
  61306. s.NetworkAclId = &v
  61307. return s
  61308. }
  61309. type ReplaceNetworkAclAssociationOutput struct {
  61310. _ struct{} `type:"structure"`
  61311. // The ID of the new association.
  61312. NewAssociationId *string `locationName:"newAssociationId" type:"string"`
  61313. }
  61314. // String returns the string representation
  61315. func (s ReplaceNetworkAclAssociationOutput) String() string {
  61316. return awsutil.Prettify(s)
  61317. }
  61318. // GoString returns the string representation
  61319. func (s ReplaceNetworkAclAssociationOutput) GoString() string {
  61320. return s.String()
  61321. }
  61322. // SetNewAssociationId sets the NewAssociationId field's value.
  61323. func (s *ReplaceNetworkAclAssociationOutput) SetNewAssociationId(v string) *ReplaceNetworkAclAssociationOutput {
  61324. s.NewAssociationId = &v
  61325. return s
  61326. }
  61327. type ReplaceNetworkAclEntryInput struct {
  61328. _ struct{} `type:"structure"`
  61329. // The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
  61330. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  61331. // Checks whether you have the required permissions for the action, without
  61332. // actually making the request, and provides an error response. If you have
  61333. // the required permissions, the error response is DryRunOperation. Otherwise,
  61334. // it is UnauthorizedOperation.
  61335. DryRun *bool `locationName:"dryRun" type:"boolean"`
  61336. // Indicates whether to replace the egress rule.
  61337. //
  61338. // Default: If no value is specified, we replace the ingress rule.
  61339. //
  61340. // Egress is a required field
  61341. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  61342. // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol
  61343. // 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block.
  61344. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`
  61345. // The IPv6 network range to allow or deny, in CIDR notation (for example 2001:bd8:1234:1a00::/64).
  61346. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  61347. // The ID of the ACL.
  61348. //
  61349. // NetworkAclId is a required field
  61350. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  61351. // TCP or UDP protocols: The range of ports the rule applies to. Required if
  61352. // specifying protocol 6 (TCP) or 17 (UDP).
  61353. PortRange *PortRange `locationName:"portRange" type:"structure"`
  61354. // The protocol number. A value of "-1" means all protocols. If you specify
  61355. // "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP),
  61356. // traffic on all ports is allowed, regardless of any ports or ICMP types or
  61357. // codes that you specify. If you specify protocol "58" (ICMPv6) and specify
  61358. // an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless
  61359. // of any that you specify. If you specify protocol "58" (ICMPv6) and specify
  61360. // an IPv6 CIDR block, you must specify an ICMP type and code.
  61361. //
  61362. // Protocol is a required field
  61363. Protocol *string `locationName:"protocol" type:"string" required:"true"`
  61364. // Indicates whether to allow or deny the traffic that matches the rule.
  61365. //
  61366. // RuleAction is a required field
  61367. RuleAction *string `locationName:"ruleAction" type:"string" required:"true" enum:"RuleAction"`
  61368. // The rule number of the entry to replace.
  61369. //
  61370. // RuleNumber is a required field
  61371. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  61372. }
  61373. // String returns the string representation
  61374. func (s ReplaceNetworkAclEntryInput) String() string {
  61375. return awsutil.Prettify(s)
  61376. }
  61377. // GoString returns the string representation
  61378. func (s ReplaceNetworkAclEntryInput) GoString() string {
  61379. return s.String()
  61380. }
  61381. // Validate inspects the fields of the type to determine if they are valid.
  61382. func (s *ReplaceNetworkAclEntryInput) Validate() error {
  61383. invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclEntryInput"}
  61384. if s.Egress == nil {
  61385. invalidParams.Add(request.NewErrParamRequired("Egress"))
  61386. }
  61387. if s.NetworkAclId == nil {
  61388. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  61389. }
  61390. if s.Protocol == nil {
  61391. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  61392. }
  61393. if s.RuleAction == nil {
  61394. invalidParams.Add(request.NewErrParamRequired("RuleAction"))
  61395. }
  61396. if s.RuleNumber == nil {
  61397. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  61398. }
  61399. if invalidParams.Len() > 0 {
  61400. return invalidParams
  61401. }
  61402. return nil
  61403. }
  61404. // SetCidrBlock sets the CidrBlock field's value.
  61405. func (s *ReplaceNetworkAclEntryInput) SetCidrBlock(v string) *ReplaceNetworkAclEntryInput {
  61406. s.CidrBlock = &v
  61407. return s
  61408. }
  61409. // SetDryRun sets the DryRun field's value.
  61410. func (s *ReplaceNetworkAclEntryInput) SetDryRun(v bool) *ReplaceNetworkAclEntryInput {
  61411. s.DryRun = &v
  61412. return s
  61413. }
  61414. // SetEgress sets the Egress field's value.
  61415. func (s *ReplaceNetworkAclEntryInput) SetEgress(v bool) *ReplaceNetworkAclEntryInput {
  61416. s.Egress = &v
  61417. return s
  61418. }
  61419. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  61420. func (s *ReplaceNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *ReplaceNetworkAclEntryInput {
  61421. s.IcmpTypeCode = v
  61422. return s
  61423. }
  61424. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  61425. func (s *ReplaceNetworkAclEntryInput) SetIpv6CidrBlock(v string) *ReplaceNetworkAclEntryInput {
  61426. s.Ipv6CidrBlock = &v
  61427. return s
  61428. }
  61429. // SetNetworkAclId sets the NetworkAclId field's value.
  61430. func (s *ReplaceNetworkAclEntryInput) SetNetworkAclId(v string) *ReplaceNetworkAclEntryInput {
  61431. s.NetworkAclId = &v
  61432. return s
  61433. }
  61434. // SetPortRange sets the PortRange field's value.
  61435. func (s *ReplaceNetworkAclEntryInput) SetPortRange(v *PortRange) *ReplaceNetworkAclEntryInput {
  61436. s.PortRange = v
  61437. return s
  61438. }
  61439. // SetProtocol sets the Protocol field's value.
  61440. func (s *ReplaceNetworkAclEntryInput) SetProtocol(v string) *ReplaceNetworkAclEntryInput {
  61441. s.Protocol = &v
  61442. return s
  61443. }
  61444. // SetRuleAction sets the RuleAction field's value.
  61445. func (s *ReplaceNetworkAclEntryInput) SetRuleAction(v string) *ReplaceNetworkAclEntryInput {
  61446. s.RuleAction = &v
  61447. return s
  61448. }
  61449. // SetRuleNumber sets the RuleNumber field's value.
  61450. func (s *ReplaceNetworkAclEntryInput) SetRuleNumber(v int64) *ReplaceNetworkAclEntryInput {
  61451. s.RuleNumber = &v
  61452. return s
  61453. }
  61454. type ReplaceNetworkAclEntryOutput struct {
  61455. _ struct{} `type:"structure"`
  61456. }
  61457. // String returns the string representation
  61458. func (s ReplaceNetworkAclEntryOutput) String() string {
  61459. return awsutil.Prettify(s)
  61460. }
  61461. // GoString returns the string representation
  61462. func (s ReplaceNetworkAclEntryOutput) GoString() string {
  61463. return s.String()
  61464. }
  61465. type ReplaceRouteInput struct {
  61466. _ struct{} `type:"structure"`
  61467. // The IPv4 CIDR address block used for the destination match. The value that
  61468. // you provide must match the CIDR of an existing route in the table.
  61469. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  61470. // The IPv6 CIDR address block used for the destination match. The value that
  61471. // you provide must match the CIDR of an existing route in the table.
  61472. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  61473. // Checks whether you have the required permissions for the action, without
  61474. // actually making the request, and provides an error response. If you have
  61475. // the required permissions, the error response is DryRunOperation. Otherwise,
  61476. // it is UnauthorizedOperation.
  61477. DryRun *bool `locationName:"dryRun" type:"boolean"`
  61478. // [IPv6 traffic only] The ID of an egress-only internet gateway.
  61479. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  61480. // The ID of an internet gateway or virtual private gateway.
  61481. GatewayId *string `locationName:"gatewayId" type:"string"`
  61482. // The ID of a NAT instance in your VPC.
  61483. InstanceId *string `locationName:"instanceId" type:"string"`
  61484. // [IPv4 traffic only] The ID of a NAT gateway.
  61485. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  61486. // The ID of a network interface.
  61487. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  61488. // The ID of the route table.
  61489. //
  61490. // RouteTableId is a required field
  61491. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  61492. // The ID of a transit gateway.
  61493. TransitGatewayId *string `type:"string"`
  61494. // The ID of a VPC peering connection.
  61495. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  61496. }
  61497. // String returns the string representation
  61498. func (s ReplaceRouteInput) String() string {
  61499. return awsutil.Prettify(s)
  61500. }
  61501. // GoString returns the string representation
  61502. func (s ReplaceRouteInput) GoString() string {
  61503. return s.String()
  61504. }
  61505. // Validate inspects the fields of the type to determine if they are valid.
  61506. func (s *ReplaceRouteInput) Validate() error {
  61507. invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteInput"}
  61508. if s.RouteTableId == nil {
  61509. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  61510. }
  61511. if invalidParams.Len() > 0 {
  61512. return invalidParams
  61513. }
  61514. return nil
  61515. }
  61516. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  61517. func (s *ReplaceRouteInput) SetDestinationCidrBlock(v string) *ReplaceRouteInput {
  61518. s.DestinationCidrBlock = &v
  61519. return s
  61520. }
  61521. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  61522. func (s *ReplaceRouteInput) SetDestinationIpv6CidrBlock(v string) *ReplaceRouteInput {
  61523. s.DestinationIpv6CidrBlock = &v
  61524. return s
  61525. }
  61526. // SetDryRun sets the DryRun field's value.
  61527. func (s *ReplaceRouteInput) SetDryRun(v bool) *ReplaceRouteInput {
  61528. s.DryRun = &v
  61529. return s
  61530. }
  61531. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  61532. func (s *ReplaceRouteInput) SetEgressOnlyInternetGatewayId(v string) *ReplaceRouteInput {
  61533. s.EgressOnlyInternetGatewayId = &v
  61534. return s
  61535. }
  61536. // SetGatewayId sets the GatewayId field's value.
  61537. func (s *ReplaceRouteInput) SetGatewayId(v string) *ReplaceRouteInput {
  61538. s.GatewayId = &v
  61539. return s
  61540. }
  61541. // SetInstanceId sets the InstanceId field's value.
  61542. func (s *ReplaceRouteInput) SetInstanceId(v string) *ReplaceRouteInput {
  61543. s.InstanceId = &v
  61544. return s
  61545. }
  61546. // SetNatGatewayId sets the NatGatewayId field's value.
  61547. func (s *ReplaceRouteInput) SetNatGatewayId(v string) *ReplaceRouteInput {
  61548. s.NatGatewayId = &v
  61549. return s
  61550. }
  61551. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  61552. func (s *ReplaceRouteInput) SetNetworkInterfaceId(v string) *ReplaceRouteInput {
  61553. s.NetworkInterfaceId = &v
  61554. return s
  61555. }
  61556. // SetRouteTableId sets the RouteTableId field's value.
  61557. func (s *ReplaceRouteInput) SetRouteTableId(v string) *ReplaceRouteInput {
  61558. s.RouteTableId = &v
  61559. return s
  61560. }
  61561. // SetTransitGatewayId sets the TransitGatewayId field's value.
  61562. func (s *ReplaceRouteInput) SetTransitGatewayId(v string) *ReplaceRouteInput {
  61563. s.TransitGatewayId = &v
  61564. return s
  61565. }
  61566. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  61567. func (s *ReplaceRouteInput) SetVpcPeeringConnectionId(v string) *ReplaceRouteInput {
  61568. s.VpcPeeringConnectionId = &v
  61569. return s
  61570. }
  61571. type ReplaceRouteOutput struct {
  61572. _ struct{} `type:"structure"`
  61573. }
  61574. // String returns the string representation
  61575. func (s ReplaceRouteOutput) String() string {
  61576. return awsutil.Prettify(s)
  61577. }
  61578. // GoString returns the string representation
  61579. func (s ReplaceRouteOutput) GoString() string {
  61580. return s.String()
  61581. }
  61582. type ReplaceRouteTableAssociationInput struct {
  61583. _ struct{} `type:"structure"`
  61584. // The association ID.
  61585. //
  61586. // AssociationId is a required field
  61587. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  61588. // Checks whether you have the required permissions for the action, without
  61589. // actually making the request, and provides an error response. If you have
  61590. // the required permissions, the error response is DryRunOperation. Otherwise,
  61591. // it is UnauthorizedOperation.
  61592. DryRun *bool `locationName:"dryRun" type:"boolean"`
  61593. // The ID of the new route table to associate with the subnet.
  61594. //
  61595. // RouteTableId is a required field
  61596. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  61597. }
  61598. // String returns the string representation
  61599. func (s ReplaceRouteTableAssociationInput) String() string {
  61600. return awsutil.Prettify(s)
  61601. }
  61602. // GoString returns the string representation
  61603. func (s ReplaceRouteTableAssociationInput) GoString() string {
  61604. return s.String()
  61605. }
  61606. // Validate inspects the fields of the type to determine if they are valid.
  61607. func (s *ReplaceRouteTableAssociationInput) Validate() error {
  61608. invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteTableAssociationInput"}
  61609. if s.AssociationId == nil {
  61610. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  61611. }
  61612. if s.RouteTableId == nil {
  61613. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  61614. }
  61615. if invalidParams.Len() > 0 {
  61616. return invalidParams
  61617. }
  61618. return nil
  61619. }
  61620. // SetAssociationId sets the AssociationId field's value.
  61621. func (s *ReplaceRouteTableAssociationInput) SetAssociationId(v string) *ReplaceRouteTableAssociationInput {
  61622. s.AssociationId = &v
  61623. return s
  61624. }
  61625. // SetDryRun sets the DryRun field's value.
  61626. func (s *ReplaceRouteTableAssociationInput) SetDryRun(v bool) *ReplaceRouteTableAssociationInput {
  61627. s.DryRun = &v
  61628. return s
  61629. }
  61630. // SetRouteTableId sets the RouteTableId field's value.
  61631. func (s *ReplaceRouteTableAssociationInput) SetRouteTableId(v string) *ReplaceRouteTableAssociationInput {
  61632. s.RouteTableId = &v
  61633. return s
  61634. }
  61635. type ReplaceRouteTableAssociationOutput struct {
  61636. _ struct{} `type:"structure"`
  61637. // The ID of the new association.
  61638. NewAssociationId *string `locationName:"newAssociationId" type:"string"`
  61639. }
  61640. // String returns the string representation
  61641. func (s ReplaceRouteTableAssociationOutput) String() string {
  61642. return awsutil.Prettify(s)
  61643. }
  61644. // GoString returns the string representation
  61645. func (s ReplaceRouteTableAssociationOutput) GoString() string {
  61646. return s.String()
  61647. }
  61648. // SetNewAssociationId sets the NewAssociationId field's value.
  61649. func (s *ReplaceRouteTableAssociationOutput) SetNewAssociationId(v string) *ReplaceRouteTableAssociationOutput {
  61650. s.NewAssociationId = &v
  61651. return s
  61652. }
  61653. type ReplaceTransitGatewayRouteInput struct {
  61654. _ struct{} `type:"structure"`
  61655. // Indicates whether traffic matching this route is to be dropped.
  61656. Blackhole *bool `type:"boolean"`
  61657. // The CIDR range used for the destination match. Routing decisions are based
  61658. // on the most specific match.
  61659. //
  61660. // DestinationCidrBlock is a required field
  61661. DestinationCidrBlock *string `type:"string" required:"true"`
  61662. // Checks whether you have the required permissions for the action, without
  61663. // actually making the request, and provides an error response. If you have
  61664. // the required permissions, the error response is DryRunOperation. Otherwise,
  61665. // it is UnauthorizedOperation.
  61666. DryRun *bool `type:"boolean"`
  61667. // The ID of the attachment.
  61668. TransitGatewayAttachmentId *string `type:"string"`
  61669. // The ID of the route table.
  61670. //
  61671. // TransitGatewayRouteTableId is a required field
  61672. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  61673. }
  61674. // String returns the string representation
  61675. func (s ReplaceTransitGatewayRouteInput) String() string {
  61676. return awsutil.Prettify(s)
  61677. }
  61678. // GoString returns the string representation
  61679. func (s ReplaceTransitGatewayRouteInput) GoString() string {
  61680. return s.String()
  61681. }
  61682. // Validate inspects the fields of the type to determine if they are valid.
  61683. func (s *ReplaceTransitGatewayRouteInput) Validate() error {
  61684. invalidParams := request.ErrInvalidParams{Context: "ReplaceTransitGatewayRouteInput"}
  61685. if s.DestinationCidrBlock == nil {
  61686. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  61687. }
  61688. if s.TransitGatewayRouteTableId == nil {
  61689. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  61690. }
  61691. if invalidParams.Len() > 0 {
  61692. return invalidParams
  61693. }
  61694. return nil
  61695. }
  61696. // SetBlackhole sets the Blackhole field's value.
  61697. func (s *ReplaceTransitGatewayRouteInput) SetBlackhole(v bool) *ReplaceTransitGatewayRouteInput {
  61698. s.Blackhole = &v
  61699. return s
  61700. }
  61701. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  61702. func (s *ReplaceTransitGatewayRouteInput) SetDestinationCidrBlock(v string) *ReplaceTransitGatewayRouteInput {
  61703. s.DestinationCidrBlock = &v
  61704. return s
  61705. }
  61706. // SetDryRun sets the DryRun field's value.
  61707. func (s *ReplaceTransitGatewayRouteInput) SetDryRun(v bool) *ReplaceTransitGatewayRouteInput {
  61708. s.DryRun = &v
  61709. return s
  61710. }
  61711. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  61712. func (s *ReplaceTransitGatewayRouteInput) SetTransitGatewayAttachmentId(v string) *ReplaceTransitGatewayRouteInput {
  61713. s.TransitGatewayAttachmentId = &v
  61714. return s
  61715. }
  61716. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  61717. func (s *ReplaceTransitGatewayRouteInput) SetTransitGatewayRouteTableId(v string) *ReplaceTransitGatewayRouteInput {
  61718. s.TransitGatewayRouteTableId = &v
  61719. return s
  61720. }
  61721. type ReplaceTransitGatewayRouteOutput struct {
  61722. _ struct{} `type:"structure"`
  61723. // Information about the modified route.
  61724. Route *TransitGatewayRoute `locationName:"route" type:"structure"`
  61725. }
  61726. // String returns the string representation
  61727. func (s ReplaceTransitGatewayRouteOutput) String() string {
  61728. return awsutil.Prettify(s)
  61729. }
  61730. // GoString returns the string representation
  61731. func (s ReplaceTransitGatewayRouteOutput) GoString() string {
  61732. return s.String()
  61733. }
  61734. // SetRoute sets the Route field's value.
  61735. func (s *ReplaceTransitGatewayRouteOutput) SetRoute(v *TransitGatewayRoute) *ReplaceTransitGatewayRouteOutput {
  61736. s.Route = v
  61737. return s
  61738. }
  61739. type ReportInstanceStatusInput struct {
  61740. _ struct{} `type:"structure"`
  61741. // Descriptive text about the health state of your instance.
  61742. Description *string `locationName:"description" type:"string"`
  61743. // Checks whether you have the required permissions for the action, without
  61744. // actually making the request, and provides an error response. If you have
  61745. // the required permissions, the error response is DryRunOperation. Otherwise,
  61746. // it is UnauthorizedOperation.
  61747. DryRun *bool `locationName:"dryRun" type:"boolean"`
  61748. // The time at which the reported instance health state ended.
  61749. EndTime *time.Time `locationName:"endTime" type:"timestamp"`
  61750. // One or more instances.
  61751. //
  61752. // Instances is a required field
  61753. Instances []*string `locationName:"instanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  61754. // One or more reason codes that describe the health state of your instance.
  61755. //
  61756. // * instance-stuck-in-state: My instance is stuck in a state.
  61757. //
  61758. // * unresponsive: My instance is unresponsive.
  61759. //
  61760. // * not-accepting-credentials: My instance is not accepting my credentials.
  61761. //
  61762. // * password-not-available: A password is not available for my instance.
  61763. //
  61764. // * performance-network: My instance is experiencing performance problems
  61765. // that I believe are network related.
  61766. //
  61767. // * performance-instance-store: My instance is experiencing performance
  61768. // problems that I believe are related to the instance stores.
  61769. //
  61770. // * performance-ebs-volume: My instance is experiencing performance problems
  61771. // that I believe are related to an EBS volume.
  61772. //
  61773. // * performance-other: My instance is experiencing performance problems.
  61774. //
  61775. // * other: [explain using the description parameter]
  61776. //
  61777. // ReasonCodes is a required field
  61778. ReasonCodes []*string `locationName:"reasonCode" locationNameList:"item" type:"list" required:"true"`
  61779. // The time at which the reported instance health state began.
  61780. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  61781. // The status of all instances listed.
  61782. //
  61783. // Status is a required field
  61784. Status *string `locationName:"status" type:"string" required:"true" enum:"ReportStatusType"`
  61785. }
  61786. // String returns the string representation
  61787. func (s ReportInstanceStatusInput) String() string {
  61788. return awsutil.Prettify(s)
  61789. }
  61790. // GoString returns the string representation
  61791. func (s ReportInstanceStatusInput) GoString() string {
  61792. return s.String()
  61793. }
  61794. // Validate inspects the fields of the type to determine if they are valid.
  61795. func (s *ReportInstanceStatusInput) Validate() error {
  61796. invalidParams := request.ErrInvalidParams{Context: "ReportInstanceStatusInput"}
  61797. if s.Instances == nil {
  61798. invalidParams.Add(request.NewErrParamRequired("Instances"))
  61799. }
  61800. if s.ReasonCodes == nil {
  61801. invalidParams.Add(request.NewErrParamRequired("ReasonCodes"))
  61802. }
  61803. if s.Status == nil {
  61804. invalidParams.Add(request.NewErrParamRequired("Status"))
  61805. }
  61806. if invalidParams.Len() > 0 {
  61807. return invalidParams
  61808. }
  61809. return nil
  61810. }
  61811. // SetDescription sets the Description field's value.
  61812. func (s *ReportInstanceStatusInput) SetDescription(v string) *ReportInstanceStatusInput {
  61813. s.Description = &v
  61814. return s
  61815. }
  61816. // SetDryRun sets the DryRun field's value.
  61817. func (s *ReportInstanceStatusInput) SetDryRun(v bool) *ReportInstanceStatusInput {
  61818. s.DryRun = &v
  61819. return s
  61820. }
  61821. // SetEndTime sets the EndTime field's value.
  61822. func (s *ReportInstanceStatusInput) SetEndTime(v time.Time) *ReportInstanceStatusInput {
  61823. s.EndTime = &v
  61824. return s
  61825. }
  61826. // SetInstances sets the Instances field's value.
  61827. func (s *ReportInstanceStatusInput) SetInstances(v []*string) *ReportInstanceStatusInput {
  61828. s.Instances = v
  61829. return s
  61830. }
  61831. // SetReasonCodes sets the ReasonCodes field's value.
  61832. func (s *ReportInstanceStatusInput) SetReasonCodes(v []*string) *ReportInstanceStatusInput {
  61833. s.ReasonCodes = v
  61834. return s
  61835. }
  61836. // SetStartTime sets the StartTime field's value.
  61837. func (s *ReportInstanceStatusInput) SetStartTime(v time.Time) *ReportInstanceStatusInput {
  61838. s.StartTime = &v
  61839. return s
  61840. }
  61841. // SetStatus sets the Status field's value.
  61842. func (s *ReportInstanceStatusInput) SetStatus(v string) *ReportInstanceStatusInput {
  61843. s.Status = &v
  61844. return s
  61845. }
  61846. type ReportInstanceStatusOutput struct {
  61847. _ struct{} `type:"structure"`
  61848. }
  61849. // String returns the string representation
  61850. func (s ReportInstanceStatusOutput) String() string {
  61851. return awsutil.Prettify(s)
  61852. }
  61853. // GoString returns the string representation
  61854. func (s ReportInstanceStatusOutput) GoString() string {
  61855. return s.String()
  61856. }
  61857. // The information to include in the launch template.
  61858. type RequestLaunchTemplateData struct {
  61859. _ struct{} `type:"structure"`
  61860. // The block device mapping.
  61861. //
  61862. // Supplying both a snapshot ID and an encryption value as arguments for block-device
  61863. // mapping results in an error. This is because only blank volumes can be encrypted
  61864. // on start, and these are not created from a snapshot. If a snapshot is the
  61865. // basis for the volume, it contains data by definition and its encryption status
  61866. // cannot be changed using this action.
  61867. BlockDeviceMappings []*LaunchTemplateBlockDeviceMappingRequest `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  61868. // The Capacity Reservation targeting option.
  61869. CapacityReservationSpecification *LaunchTemplateCapacityReservationSpecificationRequest `type:"structure"`
  61870. // The CPU options for the instance. For more information, see Optimizing CPU
  61871. // Options (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html)
  61872. // in the Amazon Elastic Compute Cloud User Guide.
  61873. CpuOptions *LaunchTemplateCpuOptionsRequest `type:"structure"`
  61874. // The credit option for CPU usage of the instance. Valid for T2 or T3 instances
  61875. // only.
  61876. CreditSpecification *CreditSpecificationRequest `type:"structure"`
  61877. // If set to true, you can't terminate the instance using the Amazon EC2 console,
  61878. // CLI, or API. To change this attribute to false after launch, use ModifyInstanceAttribute.
  61879. DisableApiTermination *bool `type:"boolean"`
  61880. // Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
  61881. // provides dedicated throughput to Amazon EBS and an optimized configuration
  61882. // stack to provide optimal Amazon EBS I/O performance. This optimization isn't
  61883. // available with all instance types. Additional usage charges apply when using
  61884. // an EBS-optimized instance.
  61885. EbsOptimized *bool `type:"boolean"`
  61886. // An elastic GPU to associate with the instance.
  61887. ElasticGpuSpecifications []*ElasticGpuSpecification `locationName:"ElasticGpuSpecification" locationNameList:"ElasticGpuSpecification" type:"list"`
  61888. // The elastic inference accelerator for the instance.
  61889. ElasticInferenceAccelerators []*LaunchTemplateElasticInferenceAccelerator `locationName:"ElasticInferenceAccelerator" locationNameList:"item" type:"list"`
  61890. // Indicates whether an instance is enabled for hibernation. This parameter
  61891. // is valid only if the instance meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites).
  61892. // Hibernation is currently supported only for Amazon Linux. For more information,
  61893. // see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  61894. // in the Amazon Elastic Compute Cloud User Guide.
  61895. HibernationOptions *LaunchTemplateHibernationOptionsRequest `type:"structure"`
  61896. // The IAM instance profile.
  61897. IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecificationRequest `type:"structure"`
  61898. // The ID of the AMI, which you can get by using DescribeImages.
  61899. ImageId *string `type:"string"`
  61900. // Indicates whether an instance stops or terminates when you initiate shutdown
  61901. // from the instance (using the operating system command for system shutdown).
  61902. //
  61903. // Default: stop
  61904. InstanceInitiatedShutdownBehavior *string `type:"string" enum:"ShutdownBehavior"`
  61905. // The market (purchasing) option for the instances.
  61906. InstanceMarketOptions *LaunchTemplateInstanceMarketOptionsRequest `type:"structure"`
  61907. // The instance type. For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  61908. // in the Amazon Elastic Compute Cloud User Guide.
  61909. InstanceType *string `type:"string" enum:"InstanceType"`
  61910. // The ID of the kernel.
  61911. //
  61912. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  61913. // information, see User Provided Kernels (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  61914. // in the Amazon Elastic Compute Cloud User Guide.
  61915. KernelId *string `type:"string"`
  61916. // The name of the key pair. You can create a key pair using CreateKeyPair or
  61917. // ImportKeyPair.
  61918. //
  61919. // If you do not specify a key pair, you can't connect to the instance unless
  61920. // you choose an AMI that is configured to allow users another way to log in.
  61921. KeyName *string `type:"string"`
  61922. // The license configurations.
  61923. LicenseSpecifications []*LaunchTemplateLicenseConfigurationRequest `locationName:"LicenseSpecification" locationNameList:"item" type:"list"`
  61924. // The monitoring for the instance.
  61925. Monitoring *LaunchTemplatesMonitoringRequest `type:"structure"`
  61926. // One or more network interfaces.
  61927. NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecificationRequest `locationName:"NetworkInterface" locationNameList:"InstanceNetworkInterfaceSpecification" type:"list"`
  61928. // The placement for the instance.
  61929. Placement *LaunchTemplatePlacementRequest `type:"structure"`
  61930. // The ID of the RAM disk.
  61931. //
  61932. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  61933. // information, see User Provided Kernels (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  61934. // in the Amazon Elastic Compute Cloud User Guide.
  61935. RamDiskId *string `type:"string"`
  61936. // One or more security group IDs. You can create a security group using CreateSecurityGroup.
  61937. // You cannot specify both a security group ID and security name in the same
  61938. // request.
  61939. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  61940. // [EC2-Classic, default VPC] One or more security group names. For a nondefault
  61941. // VPC, you must use security group IDs instead. You cannot specify both a security
  61942. // group ID and security name in the same request.
  61943. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"`
  61944. // The tags to apply to the resources during launch. You can only tag instances
  61945. // and volumes on launch. The specified tags are applied to all instances or
  61946. // volumes that are created during launch. To tag a resource after it has been
  61947. // created, see CreateTags.
  61948. TagSpecifications []*LaunchTemplateTagSpecificationRequest `locationName:"TagSpecification" locationNameList:"LaunchTemplateTagSpecificationRequest" type:"list"`
  61949. // The Base64-encoded user data to make available to the instance. For more
  61950. // information, see Running Commands on Your Linux Instance at Launch (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html)
  61951. // (Linux) and Adding User Data (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data)
  61952. // (Windows).
  61953. UserData *string `type:"string"`
  61954. }
  61955. // String returns the string representation
  61956. func (s RequestLaunchTemplateData) String() string {
  61957. return awsutil.Prettify(s)
  61958. }
  61959. // GoString returns the string representation
  61960. func (s RequestLaunchTemplateData) GoString() string {
  61961. return s.String()
  61962. }
  61963. // Validate inspects the fields of the type to determine if they are valid.
  61964. func (s *RequestLaunchTemplateData) Validate() error {
  61965. invalidParams := request.ErrInvalidParams{Context: "RequestLaunchTemplateData"}
  61966. if s.CreditSpecification != nil {
  61967. if err := s.CreditSpecification.Validate(); err != nil {
  61968. invalidParams.AddNested("CreditSpecification", err.(request.ErrInvalidParams))
  61969. }
  61970. }
  61971. if s.ElasticGpuSpecifications != nil {
  61972. for i, v := range s.ElasticGpuSpecifications {
  61973. if v == nil {
  61974. continue
  61975. }
  61976. if err := v.Validate(); err != nil {
  61977. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticGpuSpecifications", i), err.(request.ErrInvalidParams))
  61978. }
  61979. }
  61980. }
  61981. if s.ElasticInferenceAccelerators != nil {
  61982. for i, v := range s.ElasticInferenceAccelerators {
  61983. if v == nil {
  61984. continue
  61985. }
  61986. if err := v.Validate(); err != nil {
  61987. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticInferenceAccelerators", i), err.(request.ErrInvalidParams))
  61988. }
  61989. }
  61990. }
  61991. if invalidParams.Len() > 0 {
  61992. return invalidParams
  61993. }
  61994. return nil
  61995. }
  61996. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  61997. func (s *RequestLaunchTemplateData) SetBlockDeviceMappings(v []*LaunchTemplateBlockDeviceMappingRequest) *RequestLaunchTemplateData {
  61998. s.BlockDeviceMappings = v
  61999. return s
  62000. }
  62001. // SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value.
  62002. func (s *RequestLaunchTemplateData) SetCapacityReservationSpecification(v *LaunchTemplateCapacityReservationSpecificationRequest) *RequestLaunchTemplateData {
  62003. s.CapacityReservationSpecification = v
  62004. return s
  62005. }
  62006. // SetCpuOptions sets the CpuOptions field's value.
  62007. func (s *RequestLaunchTemplateData) SetCpuOptions(v *LaunchTemplateCpuOptionsRequest) *RequestLaunchTemplateData {
  62008. s.CpuOptions = v
  62009. return s
  62010. }
  62011. // SetCreditSpecification sets the CreditSpecification field's value.
  62012. func (s *RequestLaunchTemplateData) SetCreditSpecification(v *CreditSpecificationRequest) *RequestLaunchTemplateData {
  62013. s.CreditSpecification = v
  62014. return s
  62015. }
  62016. // SetDisableApiTermination sets the DisableApiTermination field's value.
  62017. func (s *RequestLaunchTemplateData) SetDisableApiTermination(v bool) *RequestLaunchTemplateData {
  62018. s.DisableApiTermination = &v
  62019. return s
  62020. }
  62021. // SetEbsOptimized sets the EbsOptimized field's value.
  62022. func (s *RequestLaunchTemplateData) SetEbsOptimized(v bool) *RequestLaunchTemplateData {
  62023. s.EbsOptimized = &v
  62024. return s
  62025. }
  62026. // SetElasticGpuSpecifications sets the ElasticGpuSpecifications field's value.
  62027. func (s *RequestLaunchTemplateData) SetElasticGpuSpecifications(v []*ElasticGpuSpecification) *RequestLaunchTemplateData {
  62028. s.ElasticGpuSpecifications = v
  62029. return s
  62030. }
  62031. // SetElasticInferenceAccelerators sets the ElasticInferenceAccelerators field's value.
  62032. func (s *RequestLaunchTemplateData) SetElasticInferenceAccelerators(v []*LaunchTemplateElasticInferenceAccelerator) *RequestLaunchTemplateData {
  62033. s.ElasticInferenceAccelerators = v
  62034. return s
  62035. }
  62036. // SetHibernationOptions sets the HibernationOptions field's value.
  62037. func (s *RequestLaunchTemplateData) SetHibernationOptions(v *LaunchTemplateHibernationOptionsRequest) *RequestLaunchTemplateData {
  62038. s.HibernationOptions = v
  62039. return s
  62040. }
  62041. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  62042. func (s *RequestLaunchTemplateData) SetIamInstanceProfile(v *LaunchTemplateIamInstanceProfileSpecificationRequest) *RequestLaunchTemplateData {
  62043. s.IamInstanceProfile = v
  62044. return s
  62045. }
  62046. // SetImageId sets the ImageId field's value.
  62047. func (s *RequestLaunchTemplateData) SetImageId(v string) *RequestLaunchTemplateData {
  62048. s.ImageId = &v
  62049. return s
  62050. }
  62051. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  62052. func (s *RequestLaunchTemplateData) SetInstanceInitiatedShutdownBehavior(v string) *RequestLaunchTemplateData {
  62053. s.InstanceInitiatedShutdownBehavior = &v
  62054. return s
  62055. }
  62056. // SetInstanceMarketOptions sets the InstanceMarketOptions field's value.
  62057. func (s *RequestLaunchTemplateData) SetInstanceMarketOptions(v *LaunchTemplateInstanceMarketOptionsRequest) *RequestLaunchTemplateData {
  62058. s.InstanceMarketOptions = v
  62059. return s
  62060. }
  62061. // SetInstanceType sets the InstanceType field's value.
  62062. func (s *RequestLaunchTemplateData) SetInstanceType(v string) *RequestLaunchTemplateData {
  62063. s.InstanceType = &v
  62064. return s
  62065. }
  62066. // SetKernelId sets the KernelId field's value.
  62067. func (s *RequestLaunchTemplateData) SetKernelId(v string) *RequestLaunchTemplateData {
  62068. s.KernelId = &v
  62069. return s
  62070. }
  62071. // SetKeyName sets the KeyName field's value.
  62072. func (s *RequestLaunchTemplateData) SetKeyName(v string) *RequestLaunchTemplateData {
  62073. s.KeyName = &v
  62074. return s
  62075. }
  62076. // SetLicenseSpecifications sets the LicenseSpecifications field's value.
  62077. func (s *RequestLaunchTemplateData) SetLicenseSpecifications(v []*LaunchTemplateLicenseConfigurationRequest) *RequestLaunchTemplateData {
  62078. s.LicenseSpecifications = v
  62079. return s
  62080. }
  62081. // SetMonitoring sets the Monitoring field's value.
  62082. func (s *RequestLaunchTemplateData) SetMonitoring(v *LaunchTemplatesMonitoringRequest) *RequestLaunchTemplateData {
  62083. s.Monitoring = v
  62084. return s
  62085. }
  62086. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  62087. func (s *RequestLaunchTemplateData) SetNetworkInterfaces(v []*LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) *RequestLaunchTemplateData {
  62088. s.NetworkInterfaces = v
  62089. return s
  62090. }
  62091. // SetPlacement sets the Placement field's value.
  62092. func (s *RequestLaunchTemplateData) SetPlacement(v *LaunchTemplatePlacementRequest) *RequestLaunchTemplateData {
  62093. s.Placement = v
  62094. return s
  62095. }
  62096. // SetRamDiskId sets the RamDiskId field's value.
  62097. func (s *RequestLaunchTemplateData) SetRamDiskId(v string) *RequestLaunchTemplateData {
  62098. s.RamDiskId = &v
  62099. return s
  62100. }
  62101. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  62102. func (s *RequestLaunchTemplateData) SetSecurityGroupIds(v []*string) *RequestLaunchTemplateData {
  62103. s.SecurityGroupIds = v
  62104. return s
  62105. }
  62106. // SetSecurityGroups sets the SecurityGroups field's value.
  62107. func (s *RequestLaunchTemplateData) SetSecurityGroups(v []*string) *RequestLaunchTemplateData {
  62108. s.SecurityGroups = v
  62109. return s
  62110. }
  62111. // SetTagSpecifications sets the TagSpecifications field's value.
  62112. func (s *RequestLaunchTemplateData) SetTagSpecifications(v []*LaunchTemplateTagSpecificationRequest) *RequestLaunchTemplateData {
  62113. s.TagSpecifications = v
  62114. return s
  62115. }
  62116. // SetUserData sets the UserData field's value.
  62117. func (s *RequestLaunchTemplateData) SetUserData(v string) *RequestLaunchTemplateData {
  62118. s.UserData = &v
  62119. return s
  62120. }
  62121. // Contains the parameters for RequestSpotFleet.
  62122. type RequestSpotFleetInput struct {
  62123. _ struct{} `type:"structure"`
  62124. // Checks whether you have the required permissions for the action, without
  62125. // actually making the request, and provides an error response. If you have
  62126. // the required permissions, the error response is DryRunOperation. Otherwise,
  62127. // it is UnauthorizedOperation.
  62128. DryRun *bool `locationName:"dryRun" type:"boolean"`
  62129. // The configuration for the Spot Fleet request.
  62130. //
  62131. // SpotFleetRequestConfig is a required field
  62132. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"`
  62133. }
  62134. // String returns the string representation
  62135. func (s RequestSpotFleetInput) String() string {
  62136. return awsutil.Prettify(s)
  62137. }
  62138. // GoString returns the string representation
  62139. func (s RequestSpotFleetInput) GoString() string {
  62140. return s.String()
  62141. }
  62142. // Validate inspects the fields of the type to determine if they are valid.
  62143. func (s *RequestSpotFleetInput) Validate() error {
  62144. invalidParams := request.ErrInvalidParams{Context: "RequestSpotFleetInput"}
  62145. if s.SpotFleetRequestConfig == nil {
  62146. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestConfig"))
  62147. }
  62148. if s.SpotFleetRequestConfig != nil {
  62149. if err := s.SpotFleetRequestConfig.Validate(); err != nil {
  62150. invalidParams.AddNested("SpotFleetRequestConfig", err.(request.ErrInvalidParams))
  62151. }
  62152. }
  62153. if invalidParams.Len() > 0 {
  62154. return invalidParams
  62155. }
  62156. return nil
  62157. }
  62158. // SetDryRun sets the DryRun field's value.
  62159. func (s *RequestSpotFleetInput) SetDryRun(v bool) *RequestSpotFleetInput {
  62160. s.DryRun = &v
  62161. return s
  62162. }
  62163. // SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value.
  62164. func (s *RequestSpotFleetInput) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *RequestSpotFleetInput {
  62165. s.SpotFleetRequestConfig = v
  62166. return s
  62167. }
  62168. // Contains the output of RequestSpotFleet.
  62169. type RequestSpotFleetOutput struct {
  62170. _ struct{} `type:"structure"`
  62171. // The ID of the Spot Fleet request.
  62172. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
  62173. }
  62174. // String returns the string representation
  62175. func (s RequestSpotFleetOutput) String() string {
  62176. return awsutil.Prettify(s)
  62177. }
  62178. // GoString returns the string representation
  62179. func (s RequestSpotFleetOutput) GoString() string {
  62180. return s.String()
  62181. }
  62182. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  62183. func (s *RequestSpotFleetOutput) SetSpotFleetRequestId(v string) *RequestSpotFleetOutput {
  62184. s.SpotFleetRequestId = &v
  62185. return s
  62186. }
  62187. // Contains the parameters for RequestSpotInstances.
  62188. type RequestSpotInstancesInput struct {
  62189. _ struct{} `type:"structure"`
  62190. // The user-specified name for a logical grouping of requests.
  62191. //
  62192. // When you specify an Availability Zone group in a Spot Instance request, all
  62193. // Spot Instances in the request are launched in the same Availability Zone.
  62194. // Instance proximity is maintained with this parameter, but the choice of Availability
  62195. // Zone is not. The group applies only to requests for Spot Instances of the
  62196. // same instance type. Any additional Spot Instance requests that are specified
  62197. // with the same Availability Zone group name are launched in that same Availability
  62198. // Zone, as long as at least one instance from the group is still active.
  62199. //
  62200. // If there is no active instance running in the Availability Zone group that
  62201. // you specify for a new Spot Instance request (all instances are terminated,
  62202. // the request is expired, or the maximum price you specified falls below current
  62203. // Spot price), then Amazon EC2 launches the instance in any Availability Zone
  62204. // where the constraint can be met. Consequently, the subsequent set of Spot
  62205. // Instances could be placed in a different zone from the original request,
  62206. // even if you specified the same Availability Zone group.
  62207. //
  62208. // Default: Instances are launched in any available Availability Zone.
  62209. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`
  62210. // The required duration for the Spot Instances (also known as Spot blocks),
  62211. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  62212. // or 360).
  62213. //
  62214. // The duration period starts as soon as your Spot Instance receives its instance
  62215. // ID. At the end of the duration period, Amazon EC2 marks the Spot Instance
  62216. // for termination and provides a Spot Instance termination notice, which gives
  62217. // the instance a two-minute warning before it terminates.
  62218. //
  62219. // You can't specify an Availability Zone group or a launch group if you specify
  62220. // a duration.
  62221. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  62222. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  62223. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  62224. // in the Amazon EC2 User Guide for Linux Instances.
  62225. ClientToken *string `locationName:"clientToken" type:"string"`
  62226. // Checks whether you have the required permissions for the action, without
  62227. // actually making the request, and provides an error response. If you have
  62228. // the required permissions, the error response is DryRunOperation. Otherwise,
  62229. // it is UnauthorizedOperation.
  62230. DryRun *bool `locationName:"dryRun" type:"boolean"`
  62231. // The maximum number of Spot Instances to launch.
  62232. //
  62233. // Default: 1
  62234. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  62235. // The behavior when a Spot Instance is interrupted. The default is terminate.
  62236. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"`
  62237. // The instance launch group. Launch groups are Spot Instances that launch together
  62238. // and terminate together.
  62239. //
  62240. // Default: Instances are launched and terminated individually
  62241. LaunchGroup *string `locationName:"launchGroup" type:"string"`
  62242. // The launch specification.
  62243. LaunchSpecification *RequestSpotLaunchSpecification `type:"structure"`
  62244. // The maximum price per hour that you are willing to pay for a Spot Instance.
  62245. // The default is the On-Demand price.
  62246. SpotPrice *string `locationName:"spotPrice" type:"string"`
  62247. // The Spot Instance request type.
  62248. //
  62249. // Default: one-time
  62250. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"`
  62251. // The start date of the request. If this is a one-time request, the request
  62252. // becomes active at this date and time and remains active until all instances
  62253. // launch, the request expires, or the request is canceled. If the request is
  62254. // persistent, the request becomes active at this date and time and remains
  62255. // active until it expires or is canceled.
  62256. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`
  62257. // The end date of the request. If this is a one-time request, the request remains
  62258. // active until all instances launch, the request is canceled, or this date
  62259. // is reached. If the request is persistent, it remains active until it is canceled
  62260. // or this date is reached. The default end date is 7 days from the current
  62261. // date.
  62262. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
  62263. }
  62264. // String returns the string representation
  62265. func (s RequestSpotInstancesInput) String() string {
  62266. return awsutil.Prettify(s)
  62267. }
  62268. // GoString returns the string representation
  62269. func (s RequestSpotInstancesInput) GoString() string {
  62270. return s.String()
  62271. }
  62272. // Validate inspects the fields of the type to determine if they are valid.
  62273. func (s *RequestSpotInstancesInput) Validate() error {
  62274. invalidParams := request.ErrInvalidParams{Context: "RequestSpotInstancesInput"}
  62275. if s.LaunchSpecification != nil {
  62276. if err := s.LaunchSpecification.Validate(); err != nil {
  62277. invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams))
  62278. }
  62279. }
  62280. if invalidParams.Len() > 0 {
  62281. return invalidParams
  62282. }
  62283. return nil
  62284. }
  62285. // SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value.
  62286. func (s *RequestSpotInstancesInput) SetAvailabilityZoneGroup(v string) *RequestSpotInstancesInput {
  62287. s.AvailabilityZoneGroup = &v
  62288. return s
  62289. }
  62290. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  62291. func (s *RequestSpotInstancesInput) SetBlockDurationMinutes(v int64) *RequestSpotInstancesInput {
  62292. s.BlockDurationMinutes = &v
  62293. return s
  62294. }
  62295. // SetClientToken sets the ClientToken field's value.
  62296. func (s *RequestSpotInstancesInput) SetClientToken(v string) *RequestSpotInstancesInput {
  62297. s.ClientToken = &v
  62298. return s
  62299. }
  62300. // SetDryRun sets the DryRun field's value.
  62301. func (s *RequestSpotInstancesInput) SetDryRun(v bool) *RequestSpotInstancesInput {
  62302. s.DryRun = &v
  62303. return s
  62304. }
  62305. // SetInstanceCount sets the InstanceCount field's value.
  62306. func (s *RequestSpotInstancesInput) SetInstanceCount(v int64) *RequestSpotInstancesInput {
  62307. s.InstanceCount = &v
  62308. return s
  62309. }
  62310. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  62311. func (s *RequestSpotInstancesInput) SetInstanceInterruptionBehavior(v string) *RequestSpotInstancesInput {
  62312. s.InstanceInterruptionBehavior = &v
  62313. return s
  62314. }
  62315. // SetLaunchGroup sets the LaunchGroup field's value.
  62316. func (s *RequestSpotInstancesInput) SetLaunchGroup(v string) *RequestSpotInstancesInput {
  62317. s.LaunchGroup = &v
  62318. return s
  62319. }
  62320. // SetLaunchSpecification sets the LaunchSpecification field's value.
  62321. func (s *RequestSpotInstancesInput) SetLaunchSpecification(v *RequestSpotLaunchSpecification) *RequestSpotInstancesInput {
  62322. s.LaunchSpecification = v
  62323. return s
  62324. }
  62325. // SetSpotPrice sets the SpotPrice field's value.
  62326. func (s *RequestSpotInstancesInput) SetSpotPrice(v string) *RequestSpotInstancesInput {
  62327. s.SpotPrice = &v
  62328. return s
  62329. }
  62330. // SetType sets the Type field's value.
  62331. func (s *RequestSpotInstancesInput) SetType(v string) *RequestSpotInstancesInput {
  62332. s.Type = &v
  62333. return s
  62334. }
  62335. // SetValidFrom sets the ValidFrom field's value.
  62336. func (s *RequestSpotInstancesInput) SetValidFrom(v time.Time) *RequestSpotInstancesInput {
  62337. s.ValidFrom = &v
  62338. return s
  62339. }
  62340. // SetValidUntil sets the ValidUntil field's value.
  62341. func (s *RequestSpotInstancesInput) SetValidUntil(v time.Time) *RequestSpotInstancesInput {
  62342. s.ValidUntil = &v
  62343. return s
  62344. }
  62345. // Contains the output of RequestSpotInstances.
  62346. type RequestSpotInstancesOutput struct {
  62347. _ struct{} `type:"structure"`
  62348. // One or more Spot Instance requests.
  62349. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  62350. }
  62351. // String returns the string representation
  62352. func (s RequestSpotInstancesOutput) String() string {
  62353. return awsutil.Prettify(s)
  62354. }
  62355. // GoString returns the string representation
  62356. func (s RequestSpotInstancesOutput) GoString() string {
  62357. return s.String()
  62358. }
  62359. // SetSpotInstanceRequests sets the SpotInstanceRequests field's value.
  62360. func (s *RequestSpotInstancesOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *RequestSpotInstancesOutput {
  62361. s.SpotInstanceRequests = v
  62362. return s
  62363. }
  62364. // Describes the launch specification for an instance.
  62365. type RequestSpotLaunchSpecification struct {
  62366. _ struct{} `type:"structure"`
  62367. // Deprecated.
  62368. AddressingType *string `locationName:"addressingType" type:"string"`
  62369. // One or more block device mapping entries. You can't specify both a snapshot
  62370. // ID and an encryption value. This is because only blank volumes can be encrypted
  62371. // on creation. If a snapshot is the basis for a volume, it is not blank and
  62372. // its encryption status is used for the volume encryption status.
  62373. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  62374. // Indicates whether the instance is optimized for EBS I/O. This optimization
  62375. // provides dedicated throughput to Amazon EBS and an optimized configuration
  62376. // stack to provide optimal EBS I/O performance. This optimization isn't available
  62377. // with all instance types. Additional usage charges apply when using an EBS
  62378. // Optimized instance.
  62379. //
  62380. // Default: false
  62381. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  62382. // The IAM instance profile.
  62383. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  62384. // The ID of the AMI.
  62385. ImageId *string `locationName:"imageId" type:"string"`
  62386. // The instance type.
  62387. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  62388. // The ID of the kernel.
  62389. KernelId *string `locationName:"kernelId" type:"string"`
  62390. // The name of the key pair.
  62391. KeyName *string `locationName:"keyName" type:"string"`
  62392. // Indicates whether basic or detailed monitoring is enabled for the instance.
  62393. //
  62394. // Default: Disabled
  62395. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`
  62396. // One or more network interfaces. If you specify a network interface, you must
  62397. // specify subnet IDs and security group IDs using the network interface.
  62398. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"NetworkInterface" locationNameList:"item" type:"list"`
  62399. // The placement information for the instance.
  62400. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  62401. // The ID of the RAM disk.
  62402. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  62403. // One or more security group IDs.
  62404. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`
  62405. // One or more security groups. When requesting instances in a VPC, you must
  62406. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  62407. // you can specify the names or the IDs of the security groups.
  62408. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"item" type:"list"`
  62409. // The ID of the subnet in which to launch the instance.
  62410. SubnetId *string `locationName:"subnetId" type:"string"`
  62411. // The Base64-encoded user data for the instance.
  62412. UserData *string `locationName:"userData" type:"string"`
  62413. }
  62414. // String returns the string representation
  62415. func (s RequestSpotLaunchSpecification) String() string {
  62416. return awsutil.Prettify(s)
  62417. }
  62418. // GoString returns the string representation
  62419. func (s RequestSpotLaunchSpecification) GoString() string {
  62420. return s.String()
  62421. }
  62422. // Validate inspects the fields of the type to determine if they are valid.
  62423. func (s *RequestSpotLaunchSpecification) Validate() error {
  62424. invalidParams := request.ErrInvalidParams{Context: "RequestSpotLaunchSpecification"}
  62425. if s.Monitoring != nil {
  62426. if err := s.Monitoring.Validate(); err != nil {
  62427. invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams))
  62428. }
  62429. }
  62430. if invalidParams.Len() > 0 {
  62431. return invalidParams
  62432. }
  62433. return nil
  62434. }
  62435. // SetAddressingType sets the AddressingType field's value.
  62436. func (s *RequestSpotLaunchSpecification) SetAddressingType(v string) *RequestSpotLaunchSpecification {
  62437. s.AddressingType = &v
  62438. return s
  62439. }
  62440. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  62441. func (s *RequestSpotLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RequestSpotLaunchSpecification {
  62442. s.BlockDeviceMappings = v
  62443. return s
  62444. }
  62445. // SetEbsOptimized sets the EbsOptimized field's value.
  62446. func (s *RequestSpotLaunchSpecification) SetEbsOptimized(v bool) *RequestSpotLaunchSpecification {
  62447. s.EbsOptimized = &v
  62448. return s
  62449. }
  62450. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  62451. func (s *RequestSpotLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RequestSpotLaunchSpecification {
  62452. s.IamInstanceProfile = v
  62453. return s
  62454. }
  62455. // SetImageId sets the ImageId field's value.
  62456. func (s *RequestSpotLaunchSpecification) SetImageId(v string) *RequestSpotLaunchSpecification {
  62457. s.ImageId = &v
  62458. return s
  62459. }
  62460. // SetInstanceType sets the InstanceType field's value.
  62461. func (s *RequestSpotLaunchSpecification) SetInstanceType(v string) *RequestSpotLaunchSpecification {
  62462. s.InstanceType = &v
  62463. return s
  62464. }
  62465. // SetKernelId sets the KernelId field's value.
  62466. func (s *RequestSpotLaunchSpecification) SetKernelId(v string) *RequestSpotLaunchSpecification {
  62467. s.KernelId = &v
  62468. return s
  62469. }
  62470. // SetKeyName sets the KeyName field's value.
  62471. func (s *RequestSpotLaunchSpecification) SetKeyName(v string) *RequestSpotLaunchSpecification {
  62472. s.KeyName = &v
  62473. return s
  62474. }
  62475. // SetMonitoring sets the Monitoring field's value.
  62476. func (s *RequestSpotLaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *RequestSpotLaunchSpecification {
  62477. s.Monitoring = v
  62478. return s
  62479. }
  62480. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  62481. func (s *RequestSpotLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RequestSpotLaunchSpecification {
  62482. s.NetworkInterfaces = v
  62483. return s
  62484. }
  62485. // SetPlacement sets the Placement field's value.
  62486. func (s *RequestSpotLaunchSpecification) SetPlacement(v *SpotPlacement) *RequestSpotLaunchSpecification {
  62487. s.Placement = v
  62488. return s
  62489. }
  62490. // SetRamdiskId sets the RamdiskId field's value.
  62491. func (s *RequestSpotLaunchSpecification) SetRamdiskId(v string) *RequestSpotLaunchSpecification {
  62492. s.RamdiskId = &v
  62493. return s
  62494. }
  62495. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  62496. func (s *RequestSpotLaunchSpecification) SetSecurityGroupIds(v []*string) *RequestSpotLaunchSpecification {
  62497. s.SecurityGroupIds = v
  62498. return s
  62499. }
  62500. // SetSecurityGroups sets the SecurityGroups field's value.
  62501. func (s *RequestSpotLaunchSpecification) SetSecurityGroups(v []*string) *RequestSpotLaunchSpecification {
  62502. s.SecurityGroups = v
  62503. return s
  62504. }
  62505. // SetSubnetId sets the SubnetId field's value.
  62506. func (s *RequestSpotLaunchSpecification) SetSubnetId(v string) *RequestSpotLaunchSpecification {
  62507. s.SubnetId = &v
  62508. return s
  62509. }
  62510. // SetUserData sets the UserData field's value.
  62511. func (s *RequestSpotLaunchSpecification) SetUserData(v string) *RequestSpotLaunchSpecification {
  62512. s.UserData = &v
  62513. return s
  62514. }
  62515. // Describes a reservation.
  62516. type Reservation struct {
  62517. _ struct{} `type:"structure"`
  62518. // [EC2-Classic only] One or more security groups.
  62519. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  62520. // One or more instances.
  62521. Instances []*Instance `locationName:"instancesSet" locationNameList:"item" type:"list"`
  62522. // The ID of the AWS account that owns the reservation.
  62523. OwnerId *string `locationName:"ownerId" type:"string"`
  62524. // The ID of the requester that launched the instances on your behalf (for example,
  62525. // AWS Management Console or Auto Scaling).
  62526. RequesterId *string `locationName:"requesterId" type:"string"`
  62527. // The ID of the reservation.
  62528. ReservationId *string `locationName:"reservationId" type:"string"`
  62529. }
  62530. // String returns the string representation
  62531. func (s Reservation) String() string {
  62532. return awsutil.Prettify(s)
  62533. }
  62534. // GoString returns the string representation
  62535. func (s Reservation) GoString() string {
  62536. return s.String()
  62537. }
  62538. // SetGroups sets the Groups field's value.
  62539. func (s *Reservation) SetGroups(v []*GroupIdentifier) *Reservation {
  62540. s.Groups = v
  62541. return s
  62542. }
  62543. // SetInstances sets the Instances field's value.
  62544. func (s *Reservation) SetInstances(v []*Instance) *Reservation {
  62545. s.Instances = v
  62546. return s
  62547. }
  62548. // SetOwnerId sets the OwnerId field's value.
  62549. func (s *Reservation) SetOwnerId(v string) *Reservation {
  62550. s.OwnerId = &v
  62551. return s
  62552. }
  62553. // SetRequesterId sets the RequesterId field's value.
  62554. func (s *Reservation) SetRequesterId(v string) *Reservation {
  62555. s.RequesterId = &v
  62556. return s
  62557. }
  62558. // SetReservationId sets the ReservationId field's value.
  62559. func (s *Reservation) SetReservationId(v string) *Reservation {
  62560. s.ReservationId = &v
  62561. return s
  62562. }
  62563. // The cost associated with the Reserved Instance.
  62564. type ReservationValue struct {
  62565. _ struct{} `type:"structure"`
  62566. // The hourly rate of the reservation.
  62567. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  62568. // The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice
  62569. // * number of hours remaining).
  62570. RemainingTotalValue *string `locationName:"remainingTotalValue" type:"string"`
  62571. // The remaining upfront cost of the reservation.
  62572. RemainingUpfrontValue *string `locationName:"remainingUpfrontValue" type:"string"`
  62573. }
  62574. // String returns the string representation
  62575. func (s ReservationValue) String() string {
  62576. return awsutil.Prettify(s)
  62577. }
  62578. // GoString returns the string representation
  62579. func (s ReservationValue) GoString() string {
  62580. return s.String()
  62581. }
  62582. // SetHourlyPrice sets the HourlyPrice field's value.
  62583. func (s *ReservationValue) SetHourlyPrice(v string) *ReservationValue {
  62584. s.HourlyPrice = &v
  62585. return s
  62586. }
  62587. // SetRemainingTotalValue sets the RemainingTotalValue field's value.
  62588. func (s *ReservationValue) SetRemainingTotalValue(v string) *ReservationValue {
  62589. s.RemainingTotalValue = &v
  62590. return s
  62591. }
  62592. // SetRemainingUpfrontValue sets the RemainingUpfrontValue field's value.
  62593. func (s *ReservationValue) SetRemainingUpfrontValue(v string) *ReservationValue {
  62594. s.RemainingUpfrontValue = &v
  62595. return s
  62596. }
  62597. // Describes the limit price of a Reserved Instance offering.
  62598. type ReservedInstanceLimitPrice struct {
  62599. _ struct{} `type:"structure"`
  62600. // Used for Reserved Instance Marketplace offerings. Specifies the limit price
  62601. // on the total order (instanceCount * price).
  62602. Amount *float64 `locationName:"amount" type:"double"`
  62603. // The currency in which the limitPrice amount is specified. At this time, the
  62604. // only supported currency is USD.
  62605. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  62606. }
  62607. // String returns the string representation
  62608. func (s ReservedInstanceLimitPrice) String() string {
  62609. return awsutil.Prettify(s)
  62610. }
  62611. // GoString returns the string representation
  62612. func (s ReservedInstanceLimitPrice) GoString() string {
  62613. return s.String()
  62614. }
  62615. // SetAmount sets the Amount field's value.
  62616. func (s *ReservedInstanceLimitPrice) SetAmount(v float64) *ReservedInstanceLimitPrice {
  62617. s.Amount = &v
  62618. return s
  62619. }
  62620. // SetCurrencyCode sets the CurrencyCode field's value.
  62621. func (s *ReservedInstanceLimitPrice) SetCurrencyCode(v string) *ReservedInstanceLimitPrice {
  62622. s.CurrencyCode = &v
  62623. return s
  62624. }
  62625. // The total value of the Convertible Reserved Instance.
  62626. type ReservedInstanceReservationValue struct {
  62627. _ struct{} `type:"structure"`
  62628. // The total value of the Convertible Reserved Instance that you are exchanging.
  62629. ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"`
  62630. // The ID of the Convertible Reserved Instance that you are exchanging.
  62631. ReservedInstanceId *string `locationName:"reservedInstanceId" type:"string"`
  62632. }
  62633. // String returns the string representation
  62634. func (s ReservedInstanceReservationValue) String() string {
  62635. return awsutil.Prettify(s)
  62636. }
  62637. // GoString returns the string representation
  62638. func (s ReservedInstanceReservationValue) GoString() string {
  62639. return s.String()
  62640. }
  62641. // SetReservationValue sets the ReservationValue field's value.
  62642. func (s *ReservedInstanceReservationValue) SetReservationValue(v *ReservationValue) *ReservedInstanceReservationValue {
  62643. s.ReservationValue = v
  62644. return s
  62645. }
  62646. // SetReservedInstanceId sets the ReservedInstanceId field's value.
  62647. func (s *ReservedInstanceReservationValue) SetReservedInstanceId(v string) *ReservedInstanceReservationValue {
  62648. s.ReservedInstanceId = &v
  62649. return s
  62650. }
  62651. // Describes a Reserved Instance.
  62652. type ReservedInstances struct {
  62653. _ struct{} `type:"structure"`
  62654. // The Availability Zone in which the Reserved Instance can be used.
  62655. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  62656. // The currency of the Reserved Instance. It's specified using ISO 4217 standard
  62657. // currency codes. At this time, the only supported currency is USD.
  62658. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  62659. // The duration of the Reserved Instance, in seconds.
  62660. Duration *int64 `locationName:"duration" type:"long"`
  62661. // The time when the Reserved Instance expires.
  62662. End *time.Time `locationName:"end" type:"timestamp"`
  62663. // The purchase price of the Reserved Instance.
  62664. FixedPrice *float64 `locationName:"fixedPrice" type:"float"`
  62665. // The number of reservations purchased.
  62666. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  62667. // The tenancy of the instance.
  62668. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  62669. // The instance type on which the Reserved Instance can be used.
  62670. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  62671. // The offering class of the Reserved Instance.
  62672. OfferingClass *string `locationName:"offeringClass" type:"string" enum:"OfferingClassType"`
  62673. // The Reserved Instance offering type.
  62674. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  62675. // The Reserved Instance product platform description.
  62676. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  62677. // The recurring charge tag assigned to the resource.
  62678. RecurringCharges []*RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`
  62679. // The ID of the Reserved Instance.
  62680. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  62681. // The scope of the Reserved Instance.
  62682. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  62683. // The date and time the Reserved Instance started.
  62684. Start *time.Time `locationName:"start" type:"timestamp"`
  62685. // The state of the Reserved Instance purchase.
  62686. State *string `locationName:"state" type:"string" enum:"ReservedInstanceState"`
  62687. // Any tags assigned to the resource.
  62688. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  62689. // The usage price of the Reserved Instance, per hour.
  62690. UsagePrice *float64 `locationName:"usagePrice" type:"float"`
  62691. }
  62692. // String returns the string representation
  62693. func (s ReservedInstances) String() string {
  62694. return awsutil.Prettify(s)
  62695. }
  62696. // GoString returns the string representation
  62697. func (s ReservedInstances) GoString() string {
  62698. return s.String()
  62699. }
  62700. // SetAvailabilityZone sets the AvailabilityZone field's value.
  62701. func (s *ReservedInstances) SetAvailabilityZone(v string) *ReservedInstances {
  62702. s.AvailabilityZone = &v
  62703. return s
  62704. }
  62705. // SetCurrencyCode sets the CurrencyCode field's value.
  62706. func (s *ReservedInstances) SetCurrencyCode(v string) *ReservedInstances {
  62707. s.CurrencyCode = &v
  62708. return s
  62709. }
  62710. // SetDuration sets the Duration field's value.
  62711. func (s *ReservedInstances) SetDuration(v int64) *ReservedInstances {
  62712. s.Duration = &v
  62713. return s
  62714. }
  62715. // SetEnd sets the End field's value.
  62716. func (s *ReservedInstances) SetEnd(v time.Time) *ReservedInstances {
  62717. s.End = &v
  62718. return s
  62719. }
  62720. // SetFixedPrice sets the FixedPrice field's value.
  62721. func (s *ReservedInstances) SetFixedPrice(v float64) *ReservedInstances {
  62722. s.FixedPrice = &v
  62723. return s
  62724. }
  62725. // SetInstanceCount sets the InstanceCount field's value.
  62726. func (s *ReservedInstances) SetInstanceCount(v int64) *ReservedInstances {
  62727. s.InstanceCount = &v
  62728. return s
  62729. }
  62730. // SetInstanceTenancy sets the InstanceTenancy field's value.
  62731. func (s *ReservedInstances) SetInstanceTenancy(v string) *ReservedInstances {
  62732. s.InstanceTenancy = &v
  62733. return s
  62734. }
  62735. // SetInstanceType sets the InstanceType field's value.
  62736. func (s *ReservedInstances) SetInstanceType(v string) *ReservedInstances {
  62737. s.InstanceType = &v
  62738. return s
  62739. }
  62740. // SetOfferingClass sets the OfferingClass field's value.
  62741. func (s *ReservedInstances) SetOfferingClass(v string) *ReservedInstances {
  62742. s.OfferingClass = &v
  62743. return s
  62744. }
  62745. // SetOfferingType sets the OfferingType field's value.
  62746. func (s *ReservedInstances) SetOfferingType(v string) *ReservedInstances {
  62747. s.OfferingType = &v
  62748. return s
  62749. }
  62750. // SetProductDescription sets the ProductDescription field's value.
  62751. func (s *ReservedInstances) SetProductDescription(v string) *ReservedInstances {
  62752. s.ProductDescription = &v
  62753. return s
  62754. }
  62755. // SetRecurringCharges sets the RecurringCharges field's value.
  62756. func (s *ReservedInstances) SetRecurringCharges(v []*RecurringCharge) *ReservedInstances {
  62757. s.RecurringCharges = v
  62758. return s
  62759. }
  62760. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  62761. func (s *ReservedInstances) SetReservedInstancesId(v string) *ReservedInstances {
  62762. s.ReservedInstancesId = &v
  62763. return s
  62764. }
  62765. // SetScope sets the Scope field's value.
  62766. func (s *ReservedInstances) SetScope(v string) *ReservedInstances {
  62767. s.Scope = &v
  62768. return s
  62769. }
  62770. // SetStart sets the Start field's value.
  62771. func (s *ReservedInstances) SetStart(v time.Time) *ReservedInstances {
  62772. s.Start = &v
  62773. return s
  62774. }
  62775. // SetState sets the State field's value.
  62776. func (s *ReservedInstances) SetState(v string) *ReservedInstances {
  62777. s.State = &v
  62778. return s
  62779. }
  62780. // SetTags sets the Tags field's value.
  62781. func (s *ReservedInstances) SetTags(v []*Tag) *ReservedInstances {
  62782. s.Tags = v
  62783. return s
  62784. }
  62785. // SetUsagePrice sets the UsagePrice field's value.
  62786. func (s *ReservedInstances) SetUsagePrice(v float64) *ReservedInstances {
  62787. s.UsagePrice = &v
  62788. return s
  62789. }
  62790. // Describes the configuration settings for the modified Reserved Instances.
  62791. type ReservedInstancesConfiguration struct {
  62792. _ struct{} `type:"structure"`
  62793. // The Availability Zone for the modified Reserved Instances.
  62794. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  62795. // The number of modified Reserved Instances.
  62796. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  62797. // The instance type for the modified Reserved Instances.
  62798. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  62799. // The network platform of the modified Reserved Instances, which is either
  62800. // EC2-Classic or EC2-VPC.
  62801. Platform *string `locationName:"platform" type:"string"`
  62802. // Whether the Reserved Instance is applied to instances in a region or instances
  62803. // in a specific Availability Zone.
  62804. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  62805. }
  62806. // String returns the string representation
  62807. func (s ReservedInstancesConfiguration) String() string {
  62808. return awsutil.Prettify(s)
  62809. }
  62810. // GoString returns the string representation
  62811. func (s ReservedInstancesConfiguration) GoString() string {
  62812. return s.String()
  62813. }
  62814. // SetAvailabilityZone sets the AvailabilityZone field's value.
  62815. func (s *ReservedInstancesConfiguration) SetAvailabilityZone(v string) *ReservedInstancesConfiguration {
  62816. s.AvailabilityZone = &v
  62817. return s
  62818. }
  62819. // SetInstanceCount sets the InstanceCount field's value.
  62820. func (s *ReservedInstancesConfiguration) SetInstanceCount(v int64) *ReservedInstancesConfiguration {
  62821. s.InstanceCount = &v
  62822. return s
  62823. }
  62824. // SetInstanceType sets the InstanceType field's value.
  62825. func (s *ReservedInstancesConfiguration) SetInstanceType(v string) *ReservedInstancesConfiguration {
  62826. s.InstanceType = &v
  62827. return s
  62828. }
  62829. // SetPlatform sets the Platform field's value.
  62830. func (s *ReservedInstancesConfiguration) SetPlatform(v string) *ReservedInstancesConfiguration {
  62831. s.Platform = &v
  62832. return s
  62833. }
  62834. // SetScope sets the Scope field's value.
  62835. func (s *ReservedInstancesConfiguration) SetScope(v string) *ReservedInstancesConfiguration {
  62836. s.Scope = &v
  62837. return s
  62838. }
  62839. // Describes the ID of a Reserved Instance.
  62840. type ReservedInstancesId struct {
  62841. _ struct{} `type:"structure"`
  62842. // The ID of the Reserved Instance.
  62843. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  62844. }
  62845. // String returns the string representation
  62846. func (s ReservedInstancesId) String() string {
  62847. return awsutil.Prettify(s)
  62848. }
  62849. // GoString returns the string representation
  62850. func (s ReservedInstancesId) GoString() string {
  62851. return s.String()
  62852. }
  62853. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  62854. func (s *ReservedInstancesId) SetReservedInstancesId(v string) *ReservedInstancesId {
  62855. s.ReservedInstancesId = &v
  62856. return s
  62857. }
  62858. // Describes a Reserved Instance listing.
  62859. type ReservedInstancesListing struct {
  62860. _ struct{} `type:"structure"`
  62861. // A unique, case-sensitive key supplied by the client to ensure that the request
  62862. // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  62863. ClientToken *string `locationName:"clientToken" type:"string"`
  62864. // The time the listing was created.
  62865. CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
  62866. // The number of instances in this state.
  62867. InstanceCounts []*InstanceCount `locationName:"instanceCounts" locationNameList:"item" type:"list"`
  62868. // The price of the Reserved Instance listing.
  62869. PriceSchedules []*PriceSchedule `locationName:"priceSchedules" locationNameList:"item" type:"list"`
  62870. // The ID of the Reserved Instance.
  62871. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  62872. // The ID of the Reserved Instance listing.
  62873. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`
  62874. // The status of the Reserved Instance listing.
  62875. Status *string `locationName:"status" type:"string" enum:"ListingStatus"`
  62876. // The reason for the current status of the Reserved Instance listing. The response
  62877. // can be blank.
  62878. StatusMessage *string `locationName:"statusMessage" type:"string"`
  62879. // Any tags assigned to the resource.
  62880. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  62881. // The last modified timestamp of the listing.
  62882. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp"`
  62883. }
  62884. // String returns the string representation
  62885. func (s ReservedInstancesListing) String() string {
  62886. return awsutil.Prettify(s)
  62887. }
  62888. // GoString returns the string representation
  62889. func (s ReservedInstancesListing) GoString() string {
  62890. return s.String()
  62891. }
  62892. // SetClientToken sets the ClientToken field's value.
  62893. func (s *ReservedInstancesListing) SetClientToken(v string) *ReservedInstancesListing {
  62894. s.ClientToken = &v
  62895. return s
  62896. }
  62897. // SetCreateDate sets the CreateDate field's value.
  62898. func (s *ReservedInstancesListing) SetCreateDate(v time.Time) *ReservedInstancesListing {
  62899. s.CreateDate = &v
  62900. return s
  62901. }
  62902. // SetInstanceCounts sets the InstanceCounts field's value.
  62903. func (s *ReservedInstancesListing) SetInstanceCounts(v []*InstanceCount) *ReservedInstancesListing {
  62904. s.InstanceCounts = v
  62905. return s
  62906. }
  62907. // SetPriceSchedules sets the PriceSchedules field's value.
  62908. func (s *ReservedInstancesListing) SetPriceSchedules(v []*PriceSchedule) *ReservedInstancesListing {
  62909. s.PriceSchedules = v
  62910. return s
  62911. }
  62912. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  62913. func (s *ReservedInstancesListing) SetReservedInstancesId(v string) *ReservedInstancesListing {
  62914. s.ReservedInstancesId = &v
  62915. return s
  62916. }
  62917. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  62918. func (s *ReservedInstancesListing) SetReservedInstancesListingId(v string) *ReservedInstancesListing {
  62919. s.ReservedInstancesListingId = &v
  62920. return s
  62921. }
  62922. // SetStatus sets the Status field's value.
  62923. func (s *ReservedInstancesListing) SetStatus(v string) *ReservedInstancesListing {
  62924. s.Status = &v
  62925. return s
  62926. }
  62927. // SetStatusMessage sets the StatusMessage field's value.
  62928. func (s *ReservedInstancesListing) SetStatusMessage(v string) *ReservedInstancesListing {
  62929. s.StatusMessage = &v
  62930. return s
  62931. }
  62932. // SetTags sets the Tags field's value.
  62933. func (s *ReservedInstancesListing) SetTags(v []*Tag) *ReservedInstancesListing {
  62934. s.Tags = v
  62935. return s
  62936. }
  62937. // SetUpdateDate sets the UpdateDate field's value.
  62938. func (s *ReservedInstancesListing) SetUpdateDate(v time.Time) *ReservedInstancesListing {
  62939. s.UpdateDate = &v
  62940. return s
  62941. }
  62942. // Describes a Reserved Instance modification.
  62943. type ReservedInstancesModification struct {
  62944. _ struct{} `type:"structure"`
  62945. // A unique, case-sensitive key supplied by the client to ensure that the request
  62946. // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  62947. ClientToken *string `locationName:"clientToken" type:"string"`
  62948. // The time when the modification request was created.
  62949. CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
  62950. // The time for the modification to become effective.
  62951. EffectiveDate *time.Time `locationName:"effectiveDate" type:"timestamp"`
  62952. // Contains target configurations along with their corresponding new Reserved
  62953. // Instance IDs.
  62954. ModificationResults []*ReservedInstancesModificationResult `locationName:"modificationResultSet" locationNameList:"item" type:"list"`
  62955. // The IDs of one or more Reserved Instances.
  62956. ReservedInstancesIds []*ReservedInstancesId `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`
  62957. // A unique ID for the Reserved Instance modification.
  62958. ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`
  62959. // The status of the Reserved Instances modification request.
  62960. Status *string `locationName:"status" type:"string"`
  62961. // The reason for the status.
  62962. StatusMessage *string `locationName:"statusMessage" type:"string"`
  62963. // The time when the modification request was last updated.
  62964. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp"`
  62965. }
  62966. // String returns the string representation
  62967. func (s ReservedInstancesModification) String() string {
  62968. return awsutil.Prettify(s)
  62969. }
  62970. // GoString returns the string representation
  62971. func (s ReservedInstancesModification) GoString() string {
  62972. return s.String()
  62973. }
  62974. // SetClientToken sets the ClientToken field's value.
  62975. func (s *ReservedInstancesModification) SetClientToken(v string) *ReservedInstancesModification {
  62976. s.ClientToken = &v
  62977. return s
  62978. }
  62979. // SetCreateDate sets the CreateDate field's value.
  62980. func (s *ReservedInstancesModification) SetCreateDate(v time.Time) *ReservedInstancesModification {
  62981. s.CreateDate = &v
  62982. return s
  62983. }
  62984. // SetEffectiveDate sets the EffectiveDate field's value.
  62985. func (s *ReservedInstancesModification) SetEffectiveDate(v time.Time) *ReservedInstancesModification {
  62986. s.EffectiveDate = &v
  62987. return s
  62988. }
  62989. // SetModificationResults sets the ModificationResults field's value.
  62990. func (s *ReservedInstancesModification) SetModificationResults(v []*ReservedInstancesModificationResult) *ReservedInstancesModification {
  62991. s.ModificationResults = v
  62992. return s
  62993. }
  62994. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  62995. func (s *ReservedInstancesModification) SetReservedInstancesIds(v []*ReservedInstancesId) *ReservedInstancesModification {
  62996. s.ReservedInstancesIds = v
  62997. return s
  62998. }
  62999. // SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value.
  63000. func (s *ReservedInstancesModification) SetReservedInstancesModificationId(v string) *ReservedInstancesModification {
  63001. s.ReservedInstancesModificationId = &v
  63002. return s
  63003. }
  63004. // SetStatus sets the Status field's value.
  63005. func (s *ReservedInstancesModification) SetStatus(v string) *ReservedInstancesModification {
  63006. s.Status = &v
  63007. return s
  63008. }
  63009. // SetStatusMessage sets the StatusMessage field's value.
  63010. func (s *ReservedInstancesModification) SetStatusMessage(v string) *ReservedInstancesModification {
  63011. s.StatusMessage = &v
  63012. return s
  63013. }
  63014. // SetUpdateDate sets the UpdateDate field's value.
  63015. func (s *ReservedInstancesModification) SetUpdateDate(v time.Time) *ReservedInstancesModification {
  63016. s.UpdateDate = &v
  63017. return s
  63018. }
  63019. // Describes the modification request/s.
  63020. type ReservedInstancesModificationResult struct {
  63021. _ struct{} `type:"structure"`
  63022. // The ID for the Reserved Instances that were created as part of the modification
  63023. // request. This field is only available when the modification is fulfilled.
  63024. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  63025. // The target Reserved Instances configurations supplied as part of the modification
  63026. // request.
  63027. TargetConfiguration *ReservedInstancesConfiguration `locationName:"targetConfiguration" type:"structure"`
  63028. }
  63029. // String returns the string representation
  63030. func (s ReservedInstancesModificationResult) String() string {
  63031. return awsutil.Prettify(s)
  63032. }
  63033. // GoString returns the string representation
  63034. func (s ReservedInstancesModificationResult) GoString() string {
  63035. return s.String()
  63036. }
  63037. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  63038. func (s *ReservedInstancesModificationResult) SetReservedInstancesId(v string) *ReservedInstancesModificationResult {
  63039. s.ReservedInstancesId = &v
  63040. return s
  63041. }
  63042. // SetTargetConfiguration sets the TargetConfiguration field's value.
  63043. func (s *ReservedInstancesModificationResult) SetTargetConfiguration(v *ReservedInstancesConfiguration) *ReservedInstancesModificationResult {
  63044. s.TargetConfiguration = v
  63045. return s
  63046. }
  63047. // Describes a Reserved Instance offering.
  63048. type ReservedInstancesOffering struct {
  63049. _ struct{} `type:"structure"`
  63050. // The Availability Zone in which the Reserved Instance can be used.
  63051. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  63052. // The currency of the Reserved Instance offering you are purchasing. It's specified
  63053. // using ISO 4217 standard currency codes. At this time, the only supported
  63054. // currency is USD.
  63055. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  63056. // The duration of the Reserved Instance, in seconds.
  63057. Duration *int64 `locationName:"duration" type:"long"`
  63058. // The purchase price of the Reserved Instance.
  63059. FixedPrice *float64 `locationName:"fixedPrice" type:"float"`
  63060. // The tenancy of the instance.
  63061. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  63062. // The instance type on which the Reserved Instance can be used.
  63063. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  63064. // Indicates whether the offering is available through the Reserved Instance
  63065. // Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering,
  63066. // this is true.
  63067. Marketplace *bool `locationName:"marketplace" type:"boolean"`
  63068. // If convertible it can be exchanged for Reserved Instances of the same or
  63069. // higher monetary value, with different configurations. If standard, it is
  63070. // not possible to perform an exchange.
  63071. OfferingClass *string `locationName:"offeringClass" type:"string" enum:"OfferingClassType"`
  63072. // The Reserved Instance offering type.
  63073. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  63074. // The pricing details of the Reserved Instance offering.
  63075. PricingDetails []*PricingDetail `locationName:"pricingDetailsSet" locationNameList:"item" type:"list"`
  63076. // The Reserved Instance product platform description.
  63077. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  63078. // The recurring charge tag assigned to the resource.
  63079. RecurringCharges []*RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`
  63080. // The ID of the Reserved Instance offering. This is the offering ID used in
  63081. // GetReservedInstancesExchangeQuote to confirm that an exchange can be made.
  63082. ReservedInstancesOfferingId *string `locationName:"reservedInstancesOfferingId" type:"string"`
  63083. // Whether the Reserved Instance is applied to instances in a region or an Availability
  63084. // Zone.
  63085. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  63086. // The usage price of the Reserved Instance, per hour.
  63087. UsagePrice *float64 `locationName:"usagePrice" type:"float"`
  63088. }
  63089. // String returns the string representation
  63090. func (s ReservedInstancesOffering) String() string {
  63091. return awsutil.Prettify(s)
  63092. }
  63093. // GoString returns the string representation
  63094. func (s ReservedInstancesOffering) GoString() string {
  63095. return s.String()
  63096. }
  63097. // SetAvailabilityZone sets the AvailabilityZone field's value.
  63098. func (s *ReservedInstancesOffering) SetAvailabilityZone(v string) *ReservedInstancesOffering {
  63099. s.AvailabilityZone = &v
  63100. return s
  63101. }
  63102. // SetCurrencyCode sets the CurrencyCode field's value.
  63103. func (s *ReservedInstancesOffering) SetCurrencyCode(v string) *ReservedInstancesOffering {
  63104. s.CurrencyCode = &v
  63105. return s
  63106. }
  63107. // SetDuration sets the Duration field's value.
  63108. func (s *ReservedInstancesOffering) SetDuration(v int64) *ReservedInstancesOffering {
  63109. s.Duration = &v
  63110. return s
  63111. }
  63112. // SetFixedPrice sets the FixedPrice field's value.
  63113. func (s *ReservedInstancesOffering) SetFixedPrice(v float64) *ReservedInstancesOffering {
  63114. s.FixedPrice = &v
  63115. return s
  63116. }
  63117. // SetInstanceTenancy sets the InstanceTenancy field's value.
  63118. func (s *ReservedInstancesOffering) SetInstanceTenancy(v string) *ReservedInstancesOffering {
  63119. s.InstanceTenancy = &v
  63120. return s
  63121. }
  63122. // SetInstanceType sets the InstanceType field's value.
  63123. func (s *ReservedInstancesOffering) SetInstanceType(v string) *ReservedInstancesOffering {
  63124. s.InstanceType = &v
  63125. return s
  63126. }
  63127. // SetMarketplace sets the Marketplace field's value.
  63128. func (s *ReservedInstancesOffering) SetMarketplace(v bool) *ReservedInstancesOffering {
  63129. s.Marketplace = &v
  63130. return s
  63131. }
  63132. // SetOfferingClass sets the OfferingClass field's value.
  63133. func (s *ReservedInstancesOffering) SetOfferingClass(v string) *ReservedInstancesOffering {
  63134. s.OfferingClass = &v
  63135. return s
  63136. }
  63137. // SetOfferingType sets the OfferingType field's value.
  63138. func (s *ReservedInstancesOffering) SetOfferingType(v string) *ReservedInstancesOffering {
  63139. s.OfferingType = &v
  63140. return s
  63141. }
  63142. // SetPricingDetails sets the PricingDetails field's value.
  63143. func (s *ReservedInstancesOffering) SetPricingDetails(v []*PricingDetail) *ReservedInstancesOffering {
  63144. s.PricingDetails = v
  63145. return s
  63146. }
  63147. // SetProductDescription sets the ProductDescription field's value.
  63148. func (s *ReservedInstancesOffering) SetProductDescription(v string) *ReservedInstancesOffering {
  63149. s.ProductDescription = &v
  63150. return s
  63151. }
  63152. // SetRecurringCharges sets the RecurringCharges field's value.
  63153. func (s *ReservedInstancesOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedInstancesOffering {
  63154. s.RecurringCharges = v
  63155. return s
  63156. }
  63157. // SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value.
  63158. func (s *ReservedInstancesOffering) SetReservedInstancesOfferingId(v string) *ReservedInstancesOffering {
  63159. s.ReservedInstancesOfferingId = &v
  63160. return s
  63161. }
  63162. // SetScope sets the Scope field's value.
  63163. func (s *ReservedInstancesOffering) SetScope(v string) *ReservedInstancesOffering {
  63164. s.Scope = &v
  63165. return s
  63166. }
  63167. // SetUsagePrice sets the UsagePrice field's value.
  63168. func (s *ReservedInstancesOffering) SetUsagePrice(v float64) *ReservedInstancesOffering {
  63169. s.UsagePrice = &v
  63170. return s
  63171. }
  63172. type ResetFpgaImageAttributeInput struct {
  63173. _ struct{} `type:"structure"`
  63174. // The attribute.
  63175. Attribute *string `type:"string" enum:"ResetFpgaImageAttributeName"`
  63176. // Checks whether you have the required permissions for the action, without
  63177. // actually making the request, and provides an error response. If you have
  63178. // the required permissions, the error response is DryRunOperation. Otherwise,
  63179. // it is UnauthorizedOperation.
  63180. DryRun *bool `type:"boolean"`
  63181. // The ID of the AFI.
  63182. //
  63183. // FpgaImageId is a required field
  63184. FpgaImageId *string `type:"string" required:"true"`
  63185. }
  63186. // String returns the string representation
  63187. func (s ResetFpgaImageAttributeInput) String() string {
  63188. return awsutil.Prettify(s)
  63189. }
  63190. // GoString returns the string representation
  63191. func (s ResetFpgaImageAttributeInput) GoString() string {
  63192. return s.String()
  63193. }
  63194. // Validate inspects the fields of the type to determine if they are valid.
  63195. func (s *ResetFpgaImageAttributeInput) Validate() error {
  63196. invalidParams := request.ErrInvalidParams{Context: "ResetFpgaImageAttributeInput"}
  63197. if s.FpgaImageId == nil {
  63198. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  63199. }
  63200. if invalidParams.Len() > 0 {
  63201. return invalidParams
  63202. }
  63203. return nil
  63204. }
  63205. // SetAttribute sets the Attribute field's value.
  63206. func (s *ResetFpgaImageAttributeInput) SetAttribute(v string) *ResetFpgaImageAttributeInput {
  63207. s.Attribute = &v
  63208. return s
  63209. }
  63210. // SetDryRun sets the DryRun field's value.
  63211. func (s *ResetFpgaImageAttributeInput) SetDryRun(v bool) *ResetFpgaImageAttributeInput {
  63212. s.DryRun = &v
  63213. return s
  63214. }
  63215. // SetFpgaImageId sets the FpgaImageId field's value.
  63216. func (s *ResetFpgaImageAttributeInput) SetFpgaImageId(v string) *ResetFpgaImageAttributeInput {
  63217. s.FpgaImageId = &v
  63218. return s
  63219. }
  63220. type ResetFpgaImageAttributeOutput struct {
  63221. _ struct{} `type:"structure"`
  63222. // Is true if the request succeeds, and an error otherwise.
  63223. Return *bool `locationName:"return" type:"boolean"`
  63224. }
  63225. // String returns the string representation
  63226. func (s ResetFpgaImageAttributeOutput) String() string {
  63227. return awsutil.Prettify(s)
  63228. }
  63229. // GoString returns the string representation
  63230. func (s ResetFpgaImageAttributeOutput) GoString() string {
  63231. return s.String()
  63232. }
  63233. // SetReturn sets the Return field's value.
  63234. func (s *ResetFpgaImageAttributeOutput) SetReturn(v bool) *ResetFpgaImageAttributeOutput {
  63235. s.Return = &v
  63236. return s
  63237. }
  63238. // Contains the parameters for ResetImageAttribute.
  63239. type ResetImageAttributeInput struct {
  63240. _ struct{} `type:"structure"`
  63241. // The attribute to reset (currently you can only reset the launch permission
  63242. // attribute).
  63243. //
  63244. // Attribute is a required field
  63245. Attribute *string `type:"string" required:"true" enum:"ResetImageAttributeName"`
  63246. // Checks whether you have the required permissions for the action, without
  63247. // actually making the request, and provides an error response. If you have
  63248. // the required permissions, the error response is DryRunOperation. Otherwise,
  63249. // it is UnauthorizedOperation.
  63250. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63251. // The ID of the AMI.
  63252. //
  63253. // ImageId is a required field
  63254. ImageId *string `type:"string" required:"true"`
  63255. }
  63256. // String returns the string representation
  63257. func (s ResetImageAttributeInput) String() string {
  63258. return awsutil.Prettify(s)
  63259. }
  63260. // GoString returns the string representation
  63261. func (s ResetImageAttributeInput) GoString() string {
  63262. return s.String()
  63263. }
  63264. // Validate inspects the fields of the type to determine if they are valid.
  63265. func (s *ResetImageAttributeInput) Validate() error {
  63266. invalidParams := request.ErrInvalidParams{Context: "ResetImageAttributeInput"}
  63267. if s.Attribute == nil {
  63268. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  63269. }
  63270. if s.ImageId == nil {
  63271. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  63272. }
  63273. if invalidParams.Len() > 0 {
  63274. return invalidParams
  63275. }
  63276. return nil
  63277. }
  63278. // SetAttribute sets the Attribute field's value.
  63279. func (s *ResetImageAttributeInput) SetAttribute(v string) *ResetImageAttributeInput {
  63280. s.Attribute = &v
  63281. return s
  63282. }
  63283. // SetDryRun sets the DryRun field's value.
  63284. func (s *ResetImageAttributeInput) SetDryRun(v bool) *ResetImageAttributeInput {
  63285. s.DryRun = &v
  63286. return s
  63287. }
  63288. // SetImageId sets the ImageId field's value.
  63289. func (s *ResetImageAttributeInput) SetImageId(v string) *ResetImageAttributeInput {
  63290. s.ImageId = &v
  63291. return s
  63292. }
  63293. type ResetImageAttributeOutput struct {
  63294. _ struct{} `type:"structure"`
  63295. }
  63296. // String returns the string representation
  63297. func (s ResetImageAttributeOutput) String() string {
  63298. return awsutil.Prettify(s)
  63299. }
  63300. // GoString returns the string representation
  63301. func (s ResetImageAttributeOutput) GoString() string {
  63302. return s.String()
  63303. }
  63304. type ResetInstanceAttributeInput struct {
  63305. _ struct{} `type:"structure"`
  63306. // The attribute to reset.
  63307. //
  63308. // You can only reset the following attributes: kernel | ramdisk | sourceDestCheck.
  63309. // To change an instance attribute, use ModifyInstanceAttribute.
  63310. //
  63311. // Attribute is a required field
  63312. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"`
  63313. // Checks whether you have the required permissions for the action, without
  63314. // actually making the request, and provides an error response. If you have
  63315. // the required permissions, the error response is DryRunOperation. Otherwise,
  63316. // it is UnauthorizedOperation.
  63317. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63318. // The ID of the instance.
  63319. //
  63320. // InstanceId is a required field
  63321. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  63322. }
  63323. // String returns the string representation
  63324. func (s ResetInstanceAttributeInput) String() string {
  63325. return awsutil.Prettify(s)
  63326. }
  63327. // GoString returns the string representation
  63328. func (s ResetInstanceAttributeInput) GoString() string {
  63329. return s.String()
  63330. }
  63331. // Validate inspects the fields of the type to determine if they are valid.
  63332. func (s *ResetInstanceAttributeInput) Validate() error {
  63333. invalidParams := request.ErrInvalidParams{Context: "ResetInstanceAttributeInput"}
  63334. if s.Attribute == nil {
  63335. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  63336. }
  63337. if s.InstanceId == nil {
  63338. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  63339. }
  63340. if invalidParams.Len() > 0 {
  63341. return invalidParams
  63342. }
  63343. return nil
  63344. }
  63345. // SetAttribute sets the Attribute field's value.
  63346. func (s *ResetInstanceAttributeInput) SetAttribute(v string) *ResetInstanceAttributeInput {
  63347. s.Attribute = &v
  63348. return s
  63349. }
  63350. // SetDryRun sets the DryRun field's value.
  63351. func (s *ResetInstanceAttributeInput) SetDryRun(v bool) *ResetInstanceAttributeInput {
  63352. s.DryRun = &v
  63353. return s
  63354. }
  63355. // SetInstanceId sets the InstanceId field's value.
  63356. func (s *ResetInstanceAttributeInput) SetInstanceId(v string) *ResetInstanceAttributeInput {
  63357. s.InstanceId = &v
  63358. return s
  63359. }
  63360. type ResetInstanceAttributeOutput struct {
  63361. _ struct{} `type:"structure"`
  63362. }
  63363. // String returns the string representation
  63364. func (s ResetInstanceAttributeOutput) String() string {
  63365. return awsutil.Prettify(s)
  63366. }
  63367. // GoString returns the string representation
  63368. func (s ResetInstanceAttributeOutput) GoString() string {
  63369. return s.String()
  63370. }
  63371. // Contains the parameters for ResetNetworkInterfaceAttribute.
  63372. type ResetNetworkInterfaceAttributeInput struct {
  63373. _ struct{} `type:"structure"`
  63374. // Checks whether you have the required permissions for the action, without
  63375. // actually making the request, and provides an error response. If you have
  63376. // the required permissions, the error response is DryRunOperation. Otherwise,
  63377. // it is UnauthorizedOperation.
  63378. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63379. // The ID of the network interface.
  63380. //
  63381. // NetworkInterfaceId is a required field
  63382. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  63383. // The source/destination checking attribute. Resets the value to true.
  63384. SourceDestCheck *string `locationName:"sourceDestCheck" type:"string"`
  63385. }
  63386. // String returns the string representation
  63387. func (s ResetNetworkInterfaceAttributeInput) String() string {
  63388. return awsutil.Prettify(s)
  63389. }
  63390. // GoString returns the string representation
  63391. func (s ResetNetworkInterfaceAttributeInput) GoString() string {
  63392. return s.String()
  63393. }
  63394. // Validate inspects the fields of the type to determine if they are valid.
  63395. func (s *ResetNetworkInterfaceAttributeInput) Validate() error {
  63396. invalidParams := request.ErrInvalidParams{Context: "ResetNetworkInterfaceAttributeInput"}
  63397. if s.NetworkInterfaceId == nil {
  63398. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  63399. }
  63400. if invalidParams.Len() > 0 {
  63401. return invalidParams
  63402. }
  63403. return nil
  63404. }
  63405. // SetDryRun sets the DryRun field's value.
  63406. func (s *ResetNetworkInterfaceAttributeInput) SetDryRun(v bool) *ResetNetworkInterfaceAttributeInput {
  63407. s.DryRun = &v
  63408. return s
  63409. }
  63410. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  63411. func (s *ResetNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ResetNetworkInterfaceAttributeInput {
  63412. s.NetworkInterfaceId = &v
  63413. return s
  63414. }
  63415. // SetSourceDestCheck sets the SourceDestCheck field's value.
  63416. func (s *ResetNetworkInterfaceAttributeInput) SetSourceDestCheck(v string) *ResetNetworkInterfaceAttributeInput {
  63417. s.SourceDestCheck = &v
  63418. return s
  63419. }
  63420. type ResetNetworkInterfaceAttributeOutput struct {
  63421. _ struct{} `type:"structure"`
  63422. }
  63423. // String returns the string representation
  63424. func (s ResetNetworkInterfaceAttributeOutput) String() string {
  63425. return awsutil.Prettify(s)
  63426. }
  63427. // GoString returns the string representation
  63428. func (s ResetNetworkInterfaceAttributeOutput) GoString() string {
  63429. return s.String()
  63430. }
  63431. // Contains the parameters for ResetSnapshotAttribute.
  63432. type ResetSnapshotAttributeInput struct {
  63433. _ struct{} `type:"structure"`
  63434. // The attribute to reset. Currently, only the attribute for permission to create
  63435. // volumes can be reset.
  63436. //
  63437. // Attribute is a required field
  63438. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"`
  63439. // Checks whether you have the required permissions for the action, without
  63440. // actually making the request, and provides an error response. If you have
  63441. // the required permissions, the error response is DryRunOperation. Otherwise,
  63442. // it is UnauthorizedOperation.
  63443. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63444. // The ID of the snapshot.
  63445. //
  63446. // SnapshotId is a required field
  63447. SnapshotId *string `type:"string" required:"true"`
  63448. }
  63449. // String returns the string representation
  63450. func (s ResetSnapshotAttributeInput) String() string {
  63451. return awsutil.Prettify(s)
  63452. }
  63453. // GoString returns the string representation
  63454. func (s ResetSnapshotAttributeInput) GoString() string {
  63455. return s.String()
  63456. }
  63457. // Validate inspects the fields of the type to determine if they are valid.
  63458. func (s *ResetSnapshotAttributeInput) Validate() error {
  63459. invalidParams := request.ErrInvalidParams{Context: "ResetSnapshotAttributeInput"}
  63460. if s.Attribute == nil {
  63461. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  63462. }
  63463. if s.SnapshotId == nil {
  63464. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  63465. }
  63466. if invalidParams.Len() > 0 {
  63467. return invalidParams
  63468. }
  63469. return nil
  63470. }
  63471. // SetAttribute sets the Attribute field's value.
  63472. func (s *ResetSnapshotAttributeInput) SetAttribute(v string) *ResetSnapshotAttributeInput {
  63473. s.Attribute = &v
  63474. return s
  63475. }
  63476. // SetDryRun sets the DryRun field's value.
  63477. func (s *ResetSnapshotAttributeInput) SetDryRun(v bool) *ResetSnapshotAttributeInput {
  63478. s.DryRun = &v
  63479. return s
  63480. }
  63481. // SetSnapshotId sets the SnapshotId field's value.
  63482. func (s *ResetSnapshotAttributeInput) SetSnapshotId(v string) *ResetSnapshotAttributeInput {
  63483. s.SnapshotId = &v
  63484. return s
  63485. }
  63486. type ResetSnapshotAttributeOutput struct {
  63487. _ struct{} `type:"structure"`
  63488. }
  63489. // String returns the string representation
  63490. func (s ResetSnapshotAttributeOutput) String() string {
  63491. return awsutil.Prettify(s)
  63492. }
  63493. // GoString returns the string representation
  63494. func (s ResetSnapshotAttributeOutput) GoString() string {
  63495. return s.String()
  63496. }
  63497. // Describes the error that's returned when you cannot delete a launch template
  63498. // version.
  63499. type ResponseError struct {
  63500. _ struct{} `type:"structure"`
  63501. // The error code.
  63502. Code *string `locationName:"code" type:"string" enum:"LaunchTemplateErrorCode"`
  63503. // The error message, if applicable.
  63504. Message *string `locationName:"message" type:"string"`
  63505. }
  63506. // String returns the string representation
  63507. func (s ResponseError) String() string {
  63508. return awsutil.Prettify(s)
  63509. }
  63510. // GoString returns the string representation
  63511. func (s ResponseError) GoString() string {
  63512. return s.String()
  63513. }
  63514. // SetCode sets the Code field's value.
  63515. func (s *ResponseError) SetCode(v string) *ResponseError {
  63516. s.Code = &v
  63517. return s
  63518. }
  63519. // SetMessage sets the Message field's value.
  63520. func (s *ResponseError) SetMessage(v string) *ResponseError {
  63521. s.Message = &v
  63522. return s
  63523. }
  63524. // The information for a launch template.
  63525. type ResponseLaunchTemplateData struct {
  63526. _ struct{} `type:"structure"`
  63527. // The block device mappings.
  63528. BlockDeviceMappings []*LaunchTemplateBlockDeviceMapping `locationName:"blockDeviceMappingSet" locationNameList:"item" type:"list"`
  63529. // Information about the Capacity Reservation targeting option.
  63530. CapacityReservationSpecification *LaunchTemplateCapacityReservationSpecificationResponse `locationName:"capacityReservationSpecification" type:"structure"`
  63531. // The CPU options for the instance. For more information, see Optimizing CPU
  63532. // Options (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html)
  63533. // in the Amazon Elastic Compute Cloud User Guide.
  63534. CpuOptions *LaunchTemplateCpuOptions `locationName:"cpuOptions" type:"structure"`
  63535. // The credit option for CPU usage of the instance.
  63536. CreditSpecification *CreditSpecification `locationName:"creditSpecification" type:"structure"`
  63537. // If set to true, indicates that the instance cannot be terminated using the
  63538. // Amazon EC2 console, command line tool, or API.
  63539. DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"`
  63540. // Indicates whether the instance is optimized for Amazon EBS I/O.
  63541. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  63542. // The elastic GPU specification.
  63543. ElasticGpuSpecifications []*ElasticGpuSpecificationResponse `locationName:"elasticGpuSpecificationSet" locationNameList:"item" type:"list"`
  63544. // The elastic inference accelerator for the instance.
  63545. ElasticInferenceAccelerators []*LaunchTemplateElasticInferenceAcceleratorResponse `locationName:"elasticInferenceAcceleratorSet" locationNameList:"item" type:"list"`
  63546. // Indicates whether an instance is configured for hibernation. For more information,
  63547. // see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  63548. // in the Amazon Elastic Compute Cloud User Guide.
  63549. HibernationOptions *LaunchTemplateHibernationOptions `locationName:"hibernationOptions" type:"structure"`
  63550. // The IAM instance profile.
  63551. IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  63552. // The ID of the AMI that was used to launch the instance.
  63553. ImageId *string `locationName:"imageId" type:"string"`
  63554. // Indicates whether an instance stops or terminates when you initiate shutdown
  63555. // from the instance (using the operating system command for system shutdown).
  63556. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  63557. // The market (purchasing) option for the instances.
  63558. InstanceMarketOptions *LaunchTemplateInstanceMarketOptions `locationName:"instanceMarketOptions" type:"structure"`
  63559. // The instance type.
  63560. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  63561. // The ID of the kernel, if applicable.
  63562. KernelId *string `locationName:"kernelId" type:"string"`
  63563. // The name of the key pair.
  63564. KeyName *string `locationName:"keyName" type:"string"`
  63565. // The license configurations.
  63566. LicenseSpecifications []*LaunchTemplateLicenseConfiguration `locationName:"licenseSet" locationNameList:"item" type:"list"`
  63567. // The monitoring for the instance.
  63568. Monitoring *LaunchTemplatesMonitoring `locationName:"monitoring" type:"structure"`
  63569. // The network interfaces.
  63570. NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  63571. // The placement of the instance.
  63572. Placement *LaunchTemplatePlacement `locationName:"placement" type:"structure"`
  63573. // The ID of the RAM disk, if applicable.
  63574. RamDiskId *string `locationName:"ramDiskId" type:"string"`
  63575. // The security group IDs.
  63576. SecurityGroupIds []*string `locationName:"securityGroupIdSet" locationNameList:"item" type:"list"`
  63577. // The security group names.
  63578. SecurityGroups []*string `locationName:"securityGroupSet" locationNameList:"item" type:"list"`
  63579. // The tags.
  63580. TagSpecifications []*LaunchTemplateTagSpecification `locationName:"tagSpecificationSet" locationNameList:"item" type:"list"`
  63581. // The user data for the instance.
  63582. UserData *string `locationName:"userData" type:"string"`
  63583. }
  63584. // String returns the string representation
  63585. func (s ResponseLaunchTemplateData) String() string {
  63586. return awsutil.Prettify(s)
  63587. }
  63588. // GoString returns the string representation
  63589. func (s ResponseLaunchTemplateData) GoString() string {
  63590. return s.String()
  63591. }
  63592. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  63593. func (s *ResponseLaunchTemplateData) SetBlockDeviceMappings(v []*LaunchTemplateBlockDeviceMapping) *ResponseLaunchTemplateData {
  63594. s.BlockDeviceMappings = v
  63595. return s
  63596. }
  63597. // SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value.
  63598. func (s *ResponseLaunchTemplateData) SetCapacityReservationSpecification(v *LaunchTemplateCapacityReservationSpecificationResponse) *ResponseLaunchTemplateData {
  63599. s.CapacityReservationSpecification = v
  63600. return s
  63601. }
  63602. // SetCpuOptions sets the CpuOptions field's value.
  63603. func (s *ResponseLaunchTemplateData) SetCpuOptions(v *LaunchTemplateCpuOptions) *ResponseLaunchTemplateData {
  63604. s.CpuOptions = v
  63605. return s
  63606. }
  63607. // SetCreditSpecification sets the CreditSpecification field's value.
  63608. func (s *ResponseLaunchTemplateData) SetCreditSpecification(v *CreditSpecification) *ResponseLaunchTemplateData {
  63609. s.CreditSpecification = v
  63610. return s
  63611. }
  63612. // SetDisableApiTermination sets the DisableApiTermination field's value.
  63613. func (s *ResponseLaunchTemplateData) SetDisableApiTermination(v bool) *ResponseLaunchTemplateData {
  63614. s.DisableApiTermination = &v
  63615. return s
  63616. }
  63617. // SetEbsOptimized sets the EbsOptimized field's value.
  63618. func (s *ResponseLaunchTemplateData) SetEbsOptimized(v bool) *ResponseLaunchTemplateData {
  63619. s.EbsOptimized = &v
  63620. return s
  63621. }
  63622. // SetElasticGpuSpecifications sets the ElasticGpuSpecifications field's value.
  63623. func (s *ResponseLaunchTemplateData) SetElasticGpuSpecifications(v []*ElasticGpuSpecificationResponse) *ResponseLaunchTemplateData {
  63624. s.ElasticGpuSpecifications = v
  63625. return s
  63626. }
  63627. // SetElasticInferenceAccelerators sets the ElasticInferenceAccelerators field's value.
  63628. func (s *ResponseLaunchTemplateData) SetElasticInferenceAccelerators(v []*LaunchTemplateElasticInferenceAcceleratorResponse) *ResponseLaunchTemplateData {
  63629. s.ElasticInferenceAccelerators = v
  63630. return s
  63631. }
  63632. // SetHibernationOptions sets the HibernationOptions field's value.
  63633. func (s *ResponseLaunchTemplateData) SetHibernationOptions(v *LaunchTemplateHibernationOptions) *ResponseLaunchTemplateData {
  63634. s.HibernationOptions = v
  63635. return s
  63636. }
  63637. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  63638. func (s *ResponseLaunchTemplateData) SetIamInstanceProfile(v *LaunchTemplateIamInstanceProfileSpecification) *ResponseLaunchTemplateData {
  63639. s.IamInstanceProfile = v
  63640. return s
  63641. }
  63642. // SetImageId sets the ImageId field's value.
  63643. func (s *ResponseLaunchTemplateData) SetImageId(v string) *ResponseLaunchTemplateData {
  63644. s.ImageId = &v
  63645. return s
  63646. }
  63647. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  63648. func (s *ResponseLaunchTemplateData) SetInstanceInitiatedShutdownBehavior(v string) *ResponseLaunchTemplateData {
  63649. s.InstanceInitiatedShutdownBehavior = &v
  63650. return s
  63651. }
  63652. // SetInstanceMarketOptions sets the InstanceMarketOptions field's value.
  63653. func (s *ResponseLaunchTemplateData) SetInstanceMarketOptions(v *LaunchTemplateInstanceMarketOptions) *ResponseLaunchTemplateData {
  63654. s.InstanceMarketOptions = v
  63655. return s
  63656. }
  63657. // SetInstanceType sets the InstanceType field's value.
  63658. func (s *ResponseLaunchTemplateData) SetInstanceType(v string) *ResponseLaunchTemplateData {
  63659. s.InstanceType = &v
  63660. return s
  63661. }
  63662. // SetKernelId sets the KernelId field's value.
  63663. func (s *ResponseLaunchTemplateData) SetKernelId(v string) *ResponseLaunchTemplateData {
  63664. s.KernelId = &v
  63665. return s
  63666. }
  63667. // SetKeyName sets the KeyName field's value.
  63668. func (s *ResponseLaunchTemplateData) SetKeyName(v string) *ResponseLaunchTemplateData {
  63669. s.KeyName = &v
  63670. return s
  63671. }
  63672. // SetLicenseSpecifications sets the LicenseSpecifications field's value.
  63673. func (s *ResponseLaunchTemplateData) SetLicenseSpecifications(v []*LaunchTemplateLicenseConfiguration) *ResponseLaunchTemplateData {
  63674. s.LicenseSpecifications = v
  63675. return s
  63676. }
  63677. // SetMonitoring sets the Monitoring field's value.
  63678. func (s *ResponseLaunchTemplateData) SetMonitoring(v *LaunchTemplatesMonitoring) *ResponseLaunchTemplateData {
  63679. s.Monitoring = v
  63680. return s
  63681. }
  63682. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  63683. func (s *ResponseLaunchTemplateData) SetNetworkInterfaces(v []*LaunchTemplateInstanceNetworkInterfaceSpecification) *ResponseLaunchTemplateData {
  63684. s.NetworkInterfaces = v
  63685. return s
  63686. }
  63687. // SetPlacement sets the Placement field's value.
  63688. func (s *ResponseLaunchTemplateData) SetPlacement(v *LaunchTemplatePlacement) *ResponseLaunchTemplateData {
  63689. s.Placement = v
  63690. return s
  63691. }
  63692. // SetRamDiskId sets the RamDiskId field's value.
  63693. func (s *ResponseLaunchTemplateData) SetRamDiskId(v string) *ResponseLaunchTemplateData {
  63694. s.RamDiskId = &v
  63695. return s
  63696. }
  63697. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  63698. func (s *ResponseLaunchTemplateData) SetSecurityGroupIds(v []*string) *ResponseLaunchTemplateData {
  63699. s.SecurityGroupIds = v
  63700. return s
  63701. }
  63702. // SetSecurityGroups sets the SecurityGroups field's value.
  63703. func (s *ResponseLaunchTemplateData) SetSecurityGroups(v []*string) *ResponseLaunchTemplateData {
  63704. s.SecurityGroups = v
  63705. return s
  63706. }
  63707. // SetTagSpecifications sets the TagSpecifications field's value.
  63708. func (s *ResponseLaunchTemplateData) SetTagSpecifications(v []*LaunchTemplateTagSpecification) *ResponseLaunchTemplateData {
  63709. s.TagSpecifications = v
  63710. return s
  63711. }
  63712. // SetUserData sets the UserData field's value.
  63713. func (s *ResponseLaunchTemplateData) SetUserData(v string) *ResponseLaunchTemplateData {
  63714. s.UserData = &v
  63715. return s
  63716. }
  63717. type RestoreAddressToClassicInput struct {
  63718. _ struct{} `type:"structure"`
  63719. // Checks whether you have the required permissions for the action, without
  63720. // actually making the request, and provides an error response. If you have
  63721. // the required permissions, the error response is DryRunOperation. Otherwise,
  63722. // it is UnauthorizedOperation.
  63723. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63724. // The Elastic IP address.
  63725. //
  63726. // PublicIp is a required field
  63727. PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
  63728. }
  63729. // String returns the string representation
  63730. func (s RestoreAddressToClassicInput) String() string {
  63731. return awsutil.Prettify(s)
  63732. }
  63733. // GoString returns the string representation
  63734. func (s RestoreAddressToClassicInput) GoString() string {
  63735. return s.String()
  63736. }
  63737. // Validate inspects the fields of the type to determine if they are valid.
  63738. func (s *RestoreAddressToClassicInput) Validate() error {
  63739. invalidParams := request.ErrInvalidParams{Context: "RestoreAddressToClassicInput"}
  63740. if s.PublicIp == nil {
  63741. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  63742. }
  63743. if invalidParams.Len() > 0 {
  63744. return invalidParams
  63745. }
  63746. return nil
  63747. }
  63748. // SetDryRun sets the DryRun field's value.
  63749. func (s *RestoreAddressToClassicInput) SetDryRun(v bool) *RestoreAddressToClassicInput {
  63750. s.DryRun = &v
  63751. return s
  63752. }
  63753. // SetPublicIp sets the PublicIp field's value.
  63754. func (s *RestoreAddressToClassicInput) SetPublicIp(v string) *RestoreAddressToClassicInput {
  63755. s.PublicIp = &v
  63756. return s
  63757. }
  63758. type RestoreAddressToClassicOutput struct {
  63759. _ struct{} `type:"structure"`
  63760. // The Elastic IP address.
  63761. PublicIp *string `locationName:"publicIp" type:"string"`
  63762. // The move status for the IP address.
  63763. Status *string `locationName:"status" type:"string" enum:"Status"`
  63764. }
  63765. // String returns the string representation
  63766. func (s RestoreAddressToClassicOutput) String() string {
  63767. return awsutil.Prettify(s)
  63768. }
  63769. // GoString returns the string representation
  63770. func (s RestoreAddressToClassicOutput) GoString() string {
  63771. return s.String()
  63772. }
  63773. // SetPublicIp sets the PublicIp field's value.
  63774. func (s *RestoreAddressToClassicOutput) SetPublicIp(v string) *RestoreAddressToClassicOutput {
  63775. s.PublicIp = &v
  63776. return s
  63777. }
  63778. // SetStatus sets the Status field's value.
  63779. func (s *RestoreAddressToClassicOutput) SetStatus(v string) *RestoreAddressToClassicOutput {
  63780. s.Status = &v
  63781. return s
  63782. }
  63783. type RevokeClientVpnIngressInput struct {
  63784. _ struct{} `type:"structure"`
  63785. // The ID of the Active Directory group for which to revoke access.
  63786. AccessGroupId *string `type:"string"`
  63787. // The ID of the Client VPN endpoint with which the authorization rule is associated.
  63788. //
  63789. // ClientVpnEndpointId is a required field
  63790. ClientVpnEndpointId *string `type:"string" required:"true"`
  63791. // Checks whether you have the required permissions for the action, without
  63792. // actually making the request, and provides an error response. If you have
  63793. // the required permissions, the error response is DryRunOperation. Otherwise,
  63794. // it is UnauthorizedOperation.
  63795. DryRun *bool `type:"boolean"`
  63796. // Indicates whether access should be revoked for all clients.
  63797. RevokeAllGroups *bool `type:"boolean"`
  63798. // The IPv4 address range, in CIDR notation, of the network for which access
  63799. // is being removed.
  63800. //
  63801. // TargetNetworkCidr is a required field
  63802. TargetNetworkCidr *string `type:"string" required:"true"`
  63803. }
  63804. // String returns the string representation
  63805. func (s RevokeClientVpnIngressInput) String() string {
  63806. return awsutil.Prettify(s)
  63807. }
  63808. // GoString returns the string representation
  63809. func (s RevokeClientVpnIngressInput) GoString() string {
  63810. return s.String()
  63811. }
  63812. // Validate inspects the fields of the type to determine if they are valid.
  63813. func (s *RevokeClientVpnIngressInput) Validate() error {
  63814. invalidParams := request.ErrInvalidParams{Context: "RevokeClientVpnIngressInput"}
  63815. if s.ClientVpnEndpointId == nil {
  63816. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  63817. }
  63818. if s.TargetNetworkCidr == nil {
  63819. invalidParams.Add(request.NewErrParamRequired("TargetNetworkCidr"))
  63820. }
  63821. if invalidParams.Len() > 0 {
  63822. return invalidParams
  63823. }
  63824. return nil
  63825. }
  63826. // SetAccessGroupId sets the AccessGroupId field's value.
  63827. func (s *RevokeClientVpnIngressInput) SetAccessGroupId(v string) *RevokeClientVpnIngressInput {
  63828. s.AccessGroupId = &v
  63829. return s
  63830. }
  63831. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  63832. func (s *RevokeClientVpnIngressInput) SetClientVpnEndpointId(v string) *RevokeClientVpnIngressInput {
  63833. s.ClientVpnEndpointId = &v
  63834. return s
  63835. }
  63836. // SetDryRun sets the DryRun field's value.
  63837. func (s *RevokeClientVpnIngressInput) SetDryRun(v bool) *RevokeClientVpnIngressInput {
  63838. s.DryRun = &v
  63839. return s
  63840. }
  63841. // SetRevokeAllGroups sets the RevokeAllGroups field's value.
  63842. func (s *RevokeClientVpnIngressInput) SetRevokeAllGroups(v bool) *RevokeClientVpnIngressInput {
  63843. s.RevokeAllGroups = &v
  63844. return s
  63845. }
  63846. // SetTargetNetworkCidr sets the TargetNetworkCidr field's value.
  63847. func (s *RevokeClientVpnIngressInput) SetTargetNetworkCidr(v string) *RevokeClientVpnIngressInput {
  63848. s.TargetNetworkCidr = &v
  63849. return s
  63850. }
  63851. type RevokeClientVpnIngressOutput struct {
  63852. _ struct{} `type:"structure"`
  63853. // The current state of the authorization rule.
  63854. Status *ClientVpnAuthorizationRuleStatus `locationName:"status" type:"structure"`
  63855. }
  63856. // String returns the string representation
  63857. func (s RevokeClientVpnIngressOutput) String() string {
  63858. return awsutil.Prettify(s)
  63859. }
  63860. // GoString returns the string representation
  63861. func (s RevokeClientVpnIngressOutput) GoString() string {
  63862. return s.String()
  63863. }
  63864. // SetStatus sets the Status field's value.
  63865. func (s *RevokeClientVpnIngressOutput) SetStatus(v *ClientVpnAuthorizationRuleStatus) *RevokeClientVpnIngressOutput {
  63866. s.Status = v
  63867. return s
  63868. }
  63869. type RevokeSecurityGroupEgressInput struct {
  63870. _ struct{} `type:"structure"`
  63871. // Not supported. Use a set of IP permissions to specify the CIDR.
  63872. CidrIp *string `locationName:"cidrIp" type:"string"`
  63873. // Checks whether you have the required permissions for the action, without
  63874. // actually making the request, and provides an error response. If you have
  63875. // the required permissions, the error response is DryRunOperation. Otherwise,
  63876. // it is UnauthorizedOperation.
  63877. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63878. // Not supported. Use a set of IP permissions to specify the port.
  63879. FromPort *int64 `locationName:"fromPort" type:"integer"`
  63880. // The ID of the security group.
  63881. //
  63882. // GroupId is a required field
  63883. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  63884. // One or more sets of IP permissions. You can't specify a destination security
  63885. // group and a CIDR IP address range in the same set of permissions.
  63886. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  63887. // Not supported. Use a set of IP permissions to specify the protocol name or
  63888. // number.
  63889. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  63890. // Not supported. Use a set of IP permissions to specify a destination security
  63891. // group.
  63892. SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`
  63893. // Not supported. Use a set of IP permissions to specify a destination security
  63894. // group.
  63895. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`
  63896. // Not supported. Use a set of IP permissions to specify the port.
  63897. ToPort *int64 `locationName:"toPort" type:"integer"`
  63898. }
  63899. // String returns the string representation
  63900. func (s RevokeSecurityGroupEgressInput) String() string {
  63901. return awsutil.Prettify(s)
  63902. }
  63903. // GoString returns the string representation
  63904. func (s RevokeSecurityGroupEgressInput) GoString() string {
  63905. return s.String()
  63906. }
  63907. // Validate inspects the fields of the type to determine if they are valid.
  63908. func (s *RevokeSecurityGroupEgressInput) Validate() error {
  63909. invalidParams := request.ErrInvalidParams{Context: "RevokeSecurityGroupEgressInput"}
  63910. if s.GroupId == nil {
  63911. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  63912. }
  63913. if invalidParams.Len() > 0 {
  63914. return invalidParams
  63915. }
  63916. return nil
  63917. }
  63918. // SetCidrIp sets the CidrIp field's value.
  63919. func (s *RevokeSecurityGroupEgressInput) SetCidrIp(v string) *RevokeSecurityGroupEgressInput {
  63920. s.CidrIp = &v
  63921. return s
  63922. }
  63923. // SetDryRun sets the DryRun field's value.
  63924. func (s *RevokeSecurityGroupEgressInput) SetDryRun(v bool) *RevokeSecurityGroupEgressInput {
  63925. s.DryRun = &v
  63926. return s
  63927. }
  63928. // SetFromPort sets the FromPort field's value.
  63929. func (s *RevokeSecurityGroupEgressInput) SetFromPort(v int64) *RevokeSecurityGroupEgressInput {
  63930. s.FromPort = &v
  63931. return s
  63932. }
  63933. // SetGroupId sets the GroupId field's value.
  63934. func (s *RevokeSecurityGroupEgressInput) SetGroupId(v string) *RevokeSecurityGroupEgressInput {
  63935. s.GroupId = &v
  63936. return s
  63937. }
  63938. // SetIpPermissions sets the IpPermissions field's value.
  63939. func (s *RevokeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupEgressInput {
  63940. s.IpPermissions = v
  63941. return s
  63942. }
  63943. // SetIpProtocol sets the IpProtocol field's value.
  63944. func (s *RevokeSecurityGroupEgressInput) SetIpProtocol(v string) *RevokeSecurityGroupEgressInput {
  63945. s.IpProtocol = &v
  63946. return s
  63947. }
  63948. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  63949. func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupEgressInput {
  63950. s.SourceSecurityGroupName = &v
  63951. return s
  63952. }
  63953. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  63954. func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupEgressInput {
  63955. s.SourceSecurityGroupOwnerId = &v
  63956. return s
  63957. }
  63958. // SetToPort sets the ToPort field's value.
  63959. func (s *RevokeSecurityGroupEgressInput) SetToPort(v int64) *RevokeSecurityGroupEgressInput {
  63960. s.ToPort = &v
  63961. return s
  63962. }
  63963. type RevokeSecurityGroupEgressOutput struct {
  63964. _ struct{} `type:"structure"`
  63965. }
  63966. // String returns the string representation
  63967. func (s RevokeSecurityGroupEgressOutput) String() string {
  63968. return awsutil.Prettify(s)
  63969. }
  63970. // GoString returns the string representation
  63971. func (s RevokeSecurityGroupEgressOutput) GoString() string {
  63972. return s.String()
  63973. }
  63974. type RevokeSecurityGroupIngressInput struct {
  63975. _ struct{} `type:"structure"`
  63976. // The CIDR IP address range. You can't specify this parameter when specifying
  63977. // a source security group.
  63978. CidrIp *string `type:"string"`
  63979. // Checks whether you have the required permissions for the action, without
  63980. // actually making the request, and provides an error response. If you have
  63981. // the required permissions, the error response is DryRunOperation. Otherwise,
  63982. // it is UnauthorizedOperation.
  63983. DryRun *bool `locationName:"dryRun" type:"boolean"`
  63984. // The start of port range for the TCP and UDP protocols, or an ICMP type number.
  63985. // For the ICMP type number, use -1 to specify all ICMP types.
  63986. FromPort *int64 `type:"integer"`
  63987. // The ID of the security group. You must specify either the security group
  63988. // ID or the security group name in the request. For security groups in a nondefault
  63989. // VPC, you must specify the security group ID.
  63990. GroupId *string `type:"string"`
  63991. // [EC2-Classic, default VPC] The name of the security group. You must specify
  63992. // either the security group ID or the security group name in the request.
  63993. GroupName *string `type:"string"`
  63994. // One or more sets of IP permissions. You can't specify a source security group
  63995. // and a CIDR IP address range in the same set of permissions.
  63996. IpPermissions []*IpPermission `locationNameList:"item" type:"list"`
  63997. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  63998. // Use -1 to specify all.
  63999. IpProtocol *string `type:"string"`
  64000. // [EC2-Classic, default VPC] The name of the source security group. You can't
  64001. // specify this parameter in combination with the following parameters: the
  64002. // CIDR IP address range, the start of the port range, the IP protocol, and
  64003. // the end of the port range. For EC2-VPC, the source security group must be
  64004. // in the same VPC. To revoke a specific rule for an IP protocol and port range,
  64005. // use a set of IP permissions instead.
  64006. SourceSecurityGroupName *string `type:"string"`
  64007. // [EC2-Classic] The AWS account ID of the source security group, if the source
  64008. // security group is in a different account. You can't specify this parameter
  64009. // in combination with the following parameters: the CIDR IP address range,
  64010. // the IP protocol, the start of the port range, and the end of the port range.
  64011. // To revoke a specific rule for an IP protocol and port range, use a set of
  64012. // IP permissions instead.
  64013. SourceSecurityGroupOwnerId *string `type:"string"`
  64014. // The end of port range for the TCP and UDP protocols, or an ICMP code number.
  64015. // For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.
  64016. ToPort *int64 `type:"integer"`
  64017. }
  64018. // String returns the string representation
  64019. func (s RevokeSecurityGroupIngressInput) String() string {
  64020. return awsutil.Prettify(s)
  64021. }
  64022. // GoString returns the string representation
  64023. func (s RevokeSecurityGroupIngressInput) GoString() string {
  64024. return s.String()
  64025. }
  64026. // SetCidrIp sets the CidrIp field's value.
  64027. func (s *RevokeSecurityGroupIngressInput) SetCidrIp(v string) *RevokeSecurityGroupIngressInput {
  64028. s.CidrIp = &v
  64029. return s
  64030. }
  64031. // SetDryRun sets the DryRun field's value.
  64032. func (s *RevokeSecurityGroupIngressInput) SetDryRun(v bool) *RevokeSecurityGroupIngressInput {
  64033. s.DryRun = &v
  64034. return s
  64035. }
  64036. // SetFromPort sets the FromPort field's value.
  64037. func (s *RevokeSecurityGroupIngressInput) SetFromPort(v int64) *RevokeSecurityGroupIngressInput {
  64038. s.FromPort = &v
  64039. return s
  64040. }
  64041. // SetGroupId sets the GroupId field's value.
  64042. func (s *RevokeSecurityGroupIngressInput) SetGroupId(v string) *RevokeSecurityGroupIngressInput {
  64043. s.GroupId = &v
  64044. return s
  64045. }
  64046. // SetGroupName sets the GroupName field's value.
  64047. func (s *RevokeSecurityGroupIngressInput) SetGroupName(v string) *RevokeSecurityGroupIngressInput {
  64048. s.GroupName = &v
  64049. return s
  64050. }
  64051. // SetIpPermissions sets the IpPermissions field's value.
  64052. func (s *RevokeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupIngressInput {
  64053. s.IpPermissions = v
  64054. return s
  64055. }
  64056. // SetIpProtocol sets the IpProtocol field's value.
  64057. func (s *RevokeSecurityGroupIngressInput) SetIpProtocol(v string) *RevokeSecurityGroupIngressInput {
  64058. s.IpProtocol = &v
  64059. return s
  64060. }
  64061. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  64062. func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupIngressInput {
  64063. s.SourceSecurityGroupName = &v
  64064. return s
  64065. }
  64066. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  64067. func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupIngressInput {
  64068. s.SourceSecurityGroupOwnerId = &v
  64069. return s
  64070. }
  64071. // SetToPort sets the ToPort field's value.
  64072. func (s *RevokeSecurityGroupIngressInput) SetToPort(v int64) *RevokeSecurityGroupIngressInput {
  64073. s.ToPort = &v
  64074. return s
  64075. }
  64076. type RevokeSecurityGroupIngressOutput struct {
  64077. _ struct{} `type:"structure"`
  64078. }
  64079. // String returns the string representation
  64080. func (s RevokeSecurityGroupIngressOutput) String() string {
  64081. return awsutil.Prettify(s)
  64082. }
  64083. // GoString returns the string representation
  64084. func (s RevokeSecurityGroupIngressOutput) GoString() string {
  64085. return s.String()
  64086. }
  64087. // Describes a route in a route table.
  64088. type Route struct {
  64089. _ struct{} `type:"structure"`
  64090. // The IPv4 CIDR block used for the destination match.
  64091. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  64092. // The IPv6 CIDR block used for the destination match.
  64093. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  64094. // The prefix of the AWS service.
  64095. DestinationPrefixListId *string `locationName:"destinationPrefixListId" type:"string"`
  64096. // The ID of the egress-only internet gateway.
  64097. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  64098. // The ID of a gateway attached to your VPC.
  64099. GatewayId *string `locationName:"gatewayId" type:"string"`
  64100. // The ID of a NAT instance in your VPC.
  64101. InstanceId *string `locationName:"instanceId" type:"string"`
  64102. // The AWS account ID of the owner of the instance.
  64103. InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`
  64104. // The ID of a NAT gateway.
  64105. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  64106. // The ID of the network interface.
  64107. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  64108. // Describes how the route was created.
  64109. //
  64110. // * CreateRouteTable - The route was automatically created when the route
  64111. // table was created.
  64112. //
  64113. // * CreateRoute - The route was manually added to the route table.
  64114. //
  64115. // * EnableVgwRoutePropagation - The route was propagated by route propagation.
  64116. Origin *string `locationName:"origin" type:"string" enum:"RouteOrigin"`
  64117. // The state of the route. The blackhole state indicates that the route's target
  64118. // isn't available (for example, the specified gateway isn't attached to the
  64119. // VPC, or the specified NAT instance has been terminated).
  64120. State *string `locationName:"state" type:"string" enum:"RouteState"`
  64121. // The ID of a transit gateway.
  64122. TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
  64123. // The ID of a VPC peering connection.
  64124. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  64125. }
  64126. // String returns the string representation
  64127. func (s Route) String() string {
  64128. return awsutil.Prettify(s)
  64129. }
  64130. // GoString returns the string representation
  64131. func (s Route) GoString() string {
  64132. return s.String()
  64133. }
  64134. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  64135. func (s *Route) SetDestinationCidrBlock(v string) *Route {
  64136. s.DestinationCidrBlock = &v
  64137. return s
  64138. }
  64139. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  64140. func (s *Route) SetDestinationIpv6CidrBlock(v string) *Route {
  64141. s.DestinationIpv6CidrBlock = &v
  64142. return s
  64143. }
  64144. // SetDestinationPrefixListId sets the DestinationPrefixListId field's value.
  64145. func (s *Route) SetDestinationPrefixListId(v string) *Route {
  64146. s.DestinationPrefixListId = &v
  64147. return s
  64148. }
  64149. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  64150. func (s *Route) SetEgressOnlyInternetGatewayId(v string) *Route {
  64151. s.EgressOnlyInternetGatewayId = &v
  64152. return s
  64153. }
  64154. // SetGatewayId sets the GatewayId field's value.
  64155. func (s *Route) SetGatewayId(v string) *Route {
  64156. s.GatewayId = &v
  64157. return s
  64158. }
  64159. // SetInstanceId sets the InstanceId field's value.
  64160. func (s *Route) SetInstanceId(v string) *Route {
  64161. s.InstanceId = &v
  64162. return s
  64163. }
  64164. // SetInstanceOwnerId sets the InstanceOwnerId field's value.
  64165. func (s *Route) SetInstanceOwnerId(v string) *Route {
  64166. s.InstanceOwnerId = &v
  64167. return s
  64168. }
  64169. // SetNatGatewayId sets the NatGatewayId field's value.
  64170. func (s *Route) SetNatGatewayId(v string) *Route {
  64171. s.NatGatewayId = &v
  64172. return s
  64173. }
  64174. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  64175. func (s *Route) SetNetworkInterfaceId(v string) *Route {
  64176. s.NetworkInterfaceId = &v
  64177. return s
  64178. }
  64179. // SetOrigin sets the Origin field's value.
  64180. func (s *Route) SetOrigin(v string) *Route {
  64181. s.Origin = &v
  64182. return s
  64183. }
  64184. // SetState sets the State field's value.
  64185. func (s *Route) SetState(v string) *Route {
  64186. s.State = &v
  64187. return s
  64188. }
  64189. // SetTransitGatewayId sets the TransitGatewayId field's value.
  64190. func (s *Route) SetTransitGatewayId(v string) *Route {
  64191. s.TransitGatewayId = &v
  64192. return s
  64193. }
  64194. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  64195. func (s *Route) SetVpcPeeringConnectionId(v string) *Route {
  64196. s.VpcPeeringConnectionId = &v
  64197. return s
  64198. }
  64199. // Describes a route table.
  64200. type RouteTable struct {
  64201. _ struct{} `type:"structure"`
  64202. // The associations between the route table and one or more subnets.
  64203. Associations []*RouteTableAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`
  64204. // The ID of the AWS account that owns the route table.
  64205. OwnerId *string `locationName:"ownerId" type:"string"`
  64206. // Any virtual private gateway (VGW) propagating routes.
  64207. PropagatingVgws []*PropagatingVgw `locationName:"propagatingVgwSet" locationNameList:"item" type:"list"`
  64208. // The ID of the route table.
  64209. RouteTableId *string `locationName:"routeTableId" type:"string"`
  64210. // The routes in the route table.
  64211. Routes []*Route `locationName:"routeSet" locationNameList:"item" type:"list"`
  64212. // Any tags assigned to the route table.
  64213. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  64214. // The ID of the VPC.
  64215. VpcId *string `locationName:"vpcId" type:"string"`
  64216. }
  64217. // String returns the string representation
  64218. func (s RouteTable) String() string {
  64219. return awsutil.Prettify(s)
  64220. }
  64221. // GoString returns the string representation
  64222. func (s RouteTable) GoString() string {
  64223. return s.String()
  64224. }
  64225. // SetAssociations sets the Associations field's value.
  64226. func (s *RouteTable) SetAssociations(v []*RouteTableAssociation) *RouteTable {
  64227. s.Associations = v
  64228. return s
  64229. }
  64230. // SetOwnerId sets the OwnerId field's value.
  64231. func (s *RouteTable) SetOwnerId(v string) *RouteTable {
  64232. s.OwnerId = &v
  64233. return s
  64234. }
  64235. // SetPropagatingVgws sets the PropagatingVgws field's value.
  64236. func (s *RouteTable) SetPropagatingVgws(v []*PropagatingVgw) *RouteTable {
  64237. s.PropagatingVgws = v
  64238. return s
  64239. }
  64240. // SetRouteTableId sets the RouteTableId field's value.
  64241. func (s *RouteTable) SetRouteTableId(v string) *RouteTable {
  64242. s.RouteTableId = &v
  64243. return s
  64244. }
  64245. // SetRoutes sets the Routes field's value.
  64246. func (s *RouteTable) SetRoutes(v []*Route) *RouteTable {
  64247. s.Routes = v
  64248. return s
  64249. }
  64250. // SetTags sets the Tags field's value.
  64251. func (s *RouteTable) SetTags(v []*Tag) *RouteTable {
  64252. s.Tags = v
  64253. return s
  64254. }
  64255. // SetVpcId sets the VpcId field's value.
  64256. func (s *RouteTable) SetVpcId(v string) *RouteTable {
  64257. s.VpcId = &v
  64258. return s
  64259. }
  64260. // Describes an association between a route table and a subnet.
  64261. type RouteTableAssociation struct {
  64262. _ struct{} `type:"structure"`
  64263. // Indicates whether this is the main route table.
  64264. Main *bool `locationName:"main" type:"boolean"`
  64265. // The ID of the association between a route table and a subnet.
  64266. RouteTableAssociationId *string `locationName:"routeTableAssociationId" type:"string"`
  64267. // The ID of the route table.
  64268. RouteTableId *string `locationName:"routeTableId" type:"string"`
  64269. // The ID of the subnet. A subnet ID is not returned for an implicit association.
  64270. SubnetId *string `locationName:"subnetId" type:"string"`
  64271. }
  64272. // String returns the string representation
  64273. func (s RouteTableAssociation) String() string {
  64274. return awsutil.Prettify(s)
  64275. }
  64276. // GoString returns the string representation
  64277. func (s RouteTableAssociation) GoString() string {
  64278. return s.String()
  64279. }
  64280. // SetMain sets the Main field's value.
  64281. func (s *RouteTableAssociation) SetMain(v bool) *RouteTableAssociation {
  64282. s.Main = &v
  64283. return s
  64284. }
  64285. // SetRouteTableAssociationId sets the RouteTableAssociationId field's value.
  64286. func (s *RouteTableAssociation) SetRouteTableAssociationId(v string) *RouteTableAssociation {
  64287. s.RouteTableAssociationId = &v
  64288. return s
  64289. }
  64290. // SetRouteTableId sets the RouteTableId field's value.
  64291. func (s *RouteTableAssociation) SetRouteTableId(v string) *RouteTableAssociation {
  64292. s.RouteTableId = &v
  64293. return s
  64294. }
  64295. // SetSubnetId sets the SubnetId field's value.
  64296. func (s *RouteTableAssociation) SetSubnetId(v string) *RouteTableAssociation {
  64297. s.SubnetId = &v
  64298. return s
  64299. }
  64300. type RunInstancesInput struct {
  64301. _ struct{} `type:"structure"`
  64302. // Reserved.
  64303. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  64304. // One or more block device mapping entries. You can't specify both a snapshot
  64305. // ID and an encryption value. This is because only blank volumes can be encrypted
  64306. // on creation. If a snapshot is the basis for a volume, it is not blank and
  64307. // its encryption status is used for the volume encryption status.
  64308. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  64309. // Information about the Capacity Reservation targeting option.
  64310. CapacityReservationSpecification *CapacityReservationSpecification `type:"structure"`
  64311. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  64312. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  64313. //
  64314. // Constraints: Maximum 64 ASCII characters
  64315. ClientToken *string `locationName:"clientToken" type:"string"`
  64316. // The CPU options for the instance. For more information, see Optimizing CPU
  64317. // Options (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html)
  64318. // in the Amazon Elastic Compute Cloud User Guide.
  64319. CpuOptions *CpuOptionsRequest `type:"structure"`
  64320. // The credit option for CPU usage of the instance. Valid values are standard
  64321. // and unlimited. To change this attribute after launch, use ModifyInstanceCreditSpecification.
  64322. // For more information, see Burstable Performance Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html)
  64323. // in the Amazon Elastic Compute Cloud User Guide.
  64324. //
  64325. // Default: standard (T2 instances) or unlimited (T3 instances)
  64326. CreditSpecification *CreditSpecificationRequest `type:"structure"`
  64327. // If you set this parameter to true, you can't terminate the instance using
  64328. // the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute
  64329. // to false after launch, use ModifyInstanceAttribute. Alternatively, if you
  64330. // set InstanceInitiatedShutdownBehavior to terminate, you can terminate the
  64331. // instance by running the shutdown command from the instance.
  64332. //
  64333. // Default: false
  64334. DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"`
  64335. // Checks whether you have the required permissions for the action, without
  64336. // actually making the request, and provides an error response. If you have
  64337. // the required permissions, the error response is DryRunOperation. Otherwise,
  64338. // it is UnauthorizedOperation.
  64339. DryRun *bool `locationName:"dryRun" type:"boolean"`
  64340. // Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
  64341. // provides dedicated throughput to Amazon EBS and an optimized configuration
  64342. // stack to provide optimal Amazon EBS I/O performance. This optimization isn't
  64343. // available with all instance types. Additional usage charges apply when using
  64344. // an EBS-optimized instance.
  64345. //
  64346. // Default: false
  64347. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  64348. // An elastic GPU to associate with the instance.
  64349. ElasticGpuSpecification []*ElasticGpuSpecification `locationNameList:"item" type:"list"`
  64350. // An elastic inference accelerator.
  64351. ElasticInferenceAccelerators []*ElasticInferenceAccelerator `locationName:"ElasticInferenceAccelerator" locationNameList:"item" type:"list"`
  64352. // Indicates whether an instance is enabled for hibernation. For more information,
  64353. // see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  64354. // in the Amazon Elastic Compute Cloud User Guide.
  64355. HibernationOptions *HibernationOptionsRequest `type:"structure"`
  64356. // The IAM instance profile.
  64357. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  64358. // The ID of the AMI, which you can get by calling DescribeImages. An AMI is
  64359. // required to launch an instance and must be specified here or in a launch
  64360. // template.
  64361. ImageId *string `type:"string"`
  64362. // Indicates whether an instance stops or terminates when you initiate shutdown
  64363. // from the instance (using the operating system command for system shutdown).
  64364. //
  64365. // Default: stop
  64366. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  64367. // The market (purchasing) option for the instances.
  64368. //
  64369. // For RunInstances, persistent Spot Instance requests are only supported when
  64370. // InstanceInterruptionBehavior is set to either hibernate or stop.
  64371. InstanceMarketOptions *InstanceMarketOptionsRequest `type:"structure"`
  64372. // The instance type. For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  64373. // in the Amazon Elastic Compute Cloud User Guide.
  64374. //
  64375. // Default: m1.small
  64376. InstanceType *string `type:"string" enum:"InstanceType"`
  64377. // [EC2-VPC] A number of IPv6 addresses to associate with the primary network
  64378. // interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.
  64379. // You cannot specify this option and the option to assign specific IPv6 addresses
  64380. // in the same request. You can specify this option if you've specified a minimum
  64381. // number of instances to launch.
  64382. Ipv6AddressCount *int64 `type:"integer"`
  64383. // [EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet
  64384. // to associate with the primary network interface. You cannot specify this
  64385. // option and the option to assign a number of IPv6 addresses in the same request.
  64386. // You cannot specify this option if you've specified a minimum number of instances
  64387. // to launch.
  64388. Ipv6Addresses []*InstanceIpv6Address `locationName:"Ipv6Address" locationNameList:"item" type:"list"`
  64389. // The ID of the kernel.
  64390. //
  64391. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  64392. // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  64393. // in the Amazon Elastic Compute Cloud User Guide.
  64394. KernelId *string `type:"string"`
  64395. // The name of the key pair. You can create a key pair using CreateKeyPair or
  64396. // ImportKeyPair.
  64397. //
  64398. // If you do not specify a key pair, you can't connect to the instance unless
  64399. // you choose an AMI that is configured to allow users another way to log in.
  64400. KeyName *string `type:"string"`
  64401. // The launch template to use to launch the instances. Any parameters that you
  64402. // specify in RunInstances override the same parameters in the launch template.
  64403. // You can specify either the name or ID of a launch template, but not both.
  64404. LaunchTemplate *LaunchTemplateSpecification `type:"structure"`
  64405. // The license configurations.
  64406. LicenseSpecifications []*LicenseConfigurationRequest `locationName:"LicenseSpecification" locationNameList:"item" type:"list"`
  64407. // The maximum number of instances to launch. If you specify more instances
  64408. // than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches
  64409. // the largest possible number of instances above MinCount.
  64410. //
  64411. // Constraints: Between 1 and the maximum number you're allowed for the specified
  64412. // instance type. For more information about the default limits, and how to
  64413. // 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)
  64414. // in the Amazon EC2 FAQ.
  64415. //
  64416. // MaxCount is a required field
  64417. MaxCount *int64 `type:"integer" required:"true"`
  64418. // The minimum number of instances to launch. If you specify a minimum that
  64419. // is more instances than Amazon EC2 can launch in the target Availability Zone,
  64420. // Amazon EC2 launches no instances.
  64421. //
  64422. // Constraints: Between 1 and the maximum number you're allowed for the specified
  64423. // instance type. For more information about the default limits, and how to
  64424. // 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)
  64425. // in the Amazon EC2 General FAQ.
  64426. //
  64427. // MinCount is a required field
  64428. MinCount *int64 `type:"integer" required:"true"`
  64429. // The monitoring for the instance.
  64430. Monitoring *RunInstancesMonitoringEnabled `type:"structure"`
  64431. // One or more network interfaces.
  64432. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterface" locationNameList:"item" type:"list"`
  64433. // The placement for the instance.
  64434. Placement *Placement `type:"structure"`
  64435. // [EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4
  64436. // address range of the subnet.
  64437. //
  64438. // Only one private IP address can be designated as primary. You can't specify
  64439. // this option if you've specified the option to designate a private IP address
  64440. // as the primary IP address in a network interface specification. You cannot
  64441. // specify this option if you're launching more than one instance in the request.
  64442. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  64443. // The ID of the RAM disk.
  64444. //
  64445. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  64446. // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  64447. // in the Amazon Elastic Compute Cloud User Guide.
  64448. RamdiskId *string `type:"string"`
  64449. // One or more security group IDs. You can create a security group using CreateSecurityGroup.
  64450. //
  64451. // Default: Amazon EC2 uses the default security group.
  64452. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  64453. // [EC2-Classic, default VPC] One or more security group names. For a nondefault
  64454. // VPC, you must use security group IDs instead.
  64455. //
  64456. // Default: Amazon EC2 uses the default security group.
  64457. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"`
  64458. // [EC2-VPC] The ID of the subnet to launch the instance into.
  64459. SubnetId *string `type:"string"`
  64460. // The tags to apply to the resources during launch. You can only tag instances
  64461. // and volumes on launch. The specified tags are applied to all instances or
  64462. // volumes that are created during launch. To tag a resource after it has been
  64463. // created, see CreateTags.
  64464. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  64465. // The user data to make available to the instance. For more information, see
  64466. // Running Commands on Your Linux Instance at Launch (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html)
  64467. // (Linux) and Adding User Data (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data)
  64468. // (Windows). If you are using a command line tool, base64-encoding is performed
  64469. // for you, and you can load the text from a file. Otherwise, you must provide
  64470. // base64-encoded text.
  64471. UserData *string `type:"string"`
  64472. }
  64473. // String returns the string representation
  64474. func (s RunInstancesInput) String() string {
  64475. return awsutil.Prettify(s)
  64476. }
  64477. // GoString returns the string representation
  64478. func (s RunInstancesInput) GoString() string {
  64479. return s.String()
  64480. }
  64481. // Validate inspects the fields of the type to determine if they are valid.
  64482. func (s *RunInstancesInput) Validate() error {
  64483. invalidParams := request.ErrInvalidParams{Context: "RunInstancesInput"}
  64484. if s.MaxCount == nil {
  64485. invalidParams.Add(request.NewErrParamRequired("MaxCount"))
  64486. }
  64487. if s.MinCount == nil {
  64488. invalidParams.Add(request.NewErrParamRequired("MinCount"))
  64489. }
  64490. if s.CreditSpecification != nil {
  64491. if err := s.CreditSpecification.Validate(); err != nil {
  64492. invalidParams.AddNested("CreditSpecification", err.(request.ErrInvalidParams))
  64493. }
  64494. }
  64495. if s.ElasticGpuSpecification != nil {
  64496. for i, v := range s.ElasticGpuSpecification {
  64497. if v == nil {
  64498. continue
  64499. }
  64500. if err := v.Validate(); err != nil {
  64501. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticGpuSpecification", i), err.(request.ErrInvalidParams))
  64502. }
  64503. }
  64504. }
  64505. if s.ElasticInferenceAccelerators != nil {
  64506. for i, v := range s.ElasticInferenceAccelerators {
  64507. if v == nil {
  64508. continue
  64509. }
  64510. if err := v.Validate(); err != nil {
  64511. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticInferenceAccelerators", i), err.(request.ErrInvalidParams))
  64512. }
  64513. }
  64514. }
  64515. if s.Monitoring != nil {
  64516. if err := s.Monitoring.Validate(); err != nil {
  64517. invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams))
  64518. }
  64519. }
  64520. if invalidParams.Len() > 0 {
  64521. return invalidParams
  64522. }
  64523. return nil
  64524. }
  64525. // SetAdditionalInfo sets the AdditionalInfo field's value.
  64526. func (s *RunInstancesInput) SetAdditionalInfo(v string) *RunInstancesInput {
  64527. s.AdditionalInfo = &v
  64528. return s
  64529. }
  64530. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  64531. func (s *RunInstancesInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RunInstancesInput {
  64532. s.BlockDeviceMappings = v
  64533. return s
  64534. }
  64535. // SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value.
  64536. func (s *RunInstancesInput) SetCapacityReservationSpecification(v *CapacityReservationSpecification) *RunInstancesInput {
  64537. s.CapacityReservationSpecification = v
  64538. return s
  64539. }
  64540. // SetClientToken sets the ClientToken field's value.
  64541. func (s *RunInstancesInput) SetClientToken(v string) *RunInstancesInput {
  64542. s.ClientToken = &v
  64543. return s
  64544. }
  64545. // SetCpuOptions sets the CpuOptions field's value.
  64546. func (s *RunInstancesInput) SetCpuOptions(v *CpuOptionsRequest) *RunInstancesInput {
  64547. s.CpuOptions = v
  64548. return s
  64549. }
  64550. // SetCreditSpecification sets the CreditSpecification field's value.
  64551. func (s *RunInstancesInput) SetCreditSpecification(v *CreditSpecificationRequest) *RunInstancesInput {
  64552. s.CreditSpecification = v
  64553. return s
  64554. }
  64555. // SetDisableApiTermination sets the DisableApiTermination field's value.
  64556. func (s *RunInstancesInput) SetDisableApiTermination(v bool) *RunInstancesInput {
  64557. s.DisableApiTermination = &v
  64558. return s
  64559. }
  64560. // SetDryRun sets the DryRun field's value.
  64561. func (s *RunInstancesInput) SetDryRun(v bool) *RunInstancesInput {
  64562. s.DryRun = &v
  64563. return s
  64564. }
  64565. // SetEbsOptimized sets the EbsOptimized field's value.
  64566. func (s *RunInstancesInput) SetEbsOptimized(v bool) *RunInstancesInput {
  64567. s.EbsOptimized = &v
  64568. return s
  64569. }
  64570. // SetElasticGpuSpecification sets the ElasticGpuSpecification field's value.
  64571. func (s *RunInstancesInput) SetElasticGpuSpecification(v []*ElasticGpuSpecification) *RunInstancesInput {
  64572. s.ElasticGpuSpecification = v
  64573. return s
  64574. }
  64575. // SetElasticInferenceAccelerators sets the ElasticInferenceAccelerators field's value.
  64576. func (s *RunInstancesInput) SetElasticInferenceAccelerators(v []*ElasticInferenceAccelerator) *RunInstancesInput {
  64577. s.ElasticInferenceAccelerators = v
  64578. return s
  64579. }
  64580. // SetHibernationOptions sets the HibernationOptions field's value.
  64581. func (s *RunInstancesInput) SetHibernationOptions(v *HibernationOptionsRequest) *RunInstancesInput {
  64582. s.HibernationOptions = v
  64583. return s
  64584. }
  64585. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  64586. func (s *RunInstancesInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RunInstancesInput {
  64587. s.IamInstanceProfile = v
  64588. return s
  64589. }
  64590. // SetImageId sets the ImageId field's value.
  64591. func (s *RunInstancesInput) SetImageId(v string) *RunInstancesInput {
  64592. s.ImageId = &v
  64593. return s
  64594. }
  64595. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  64596. func (s *RunInstancesInput) SetInstanceInitiatedShutdownBehavior(v string) *RunInstancesInput {
  64597. s.InstanceInitiatedShutdownBehavior = &v
  64598. return s
  64599. }
  64600. // SetInstanceMarketOptions sets the InstanceMarketOptions field's value.
  64601. func (s *RunInstancesInput) SetInstanceMarketOptions(v *InstanceMarketOptionsRequest) *RunInstancesInput {
  64602. s.InstanceMarketOptions = v
  64603. return s
  64604. }
  64605. // SetInstanceType sets the InstanceType field's value.
  64606. func (s *RunInstancesInput) SetInstanceType(v string) *RunInstancesInput {
  64607. s.InstanceType = &v
  64608. return s
  64609. }
  64610. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  64611. func (s *RunInstancesInput) SetIpv6AddressCount(v int64) *RunInstancesInput {
  64612. s.Ipv6AddressCount = &v
  64613. return s
  64614. }
  64615. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  64616. func (s *RunInstancesInput) SetIpv6Addresses(v []*InstanceIpv6Address) *RunInstancesInput {
  64617. s.Ipv6Addresses = v
  64618. return s
  64619. }
  64620. // SetKernelId sets the KernelId field's value.
  64621. func (s *RunInstancesInput) SetKernelId(v string) *RunInstancesInput {
  64622. s.KernelId = &v
  64623. return s
  64624. }
  64625. // SetKeyName sets the KeyName field's value.
  64626. func (s *RunInstancesInput) SetKeyName(v string) *RunInstancesInput {
  64627. s.KeyName = &v
  64628. return s
  64629. }
  64630. // SetLaunchTemplate sets the LaunchTemplate field's value.
  64631. func (s *RunInstancesInput) SetLaunchTemplate(v *LaunchTemplateSpecification) *RunInstancesInput {
  64632. s.LaunchTemplate = v
  64633. return s
  64634. }
  64635. // SetLicenseSpecifications sets the LicenseSpecifications field's value.
  64636. func (s *RunInstancesInput) SetLicenseSpecifications(v []*LicenseConfigurationRequest) *RunInstancesInput {
  64637. s.LicenseSpecifications = v
  64638. return s
  64639. }
  64640. // SetMaxCount sets the MaxCount field's value.
  64641. func (s *RunInstancesInput) SetMaxCount(v int64) *RunInstancesInput {
  64642. s.MaxCount = &v
  64643. return s
  64644. }
  64645. // SetMinCount sets the MinCount field's value.
  64646. func (s *RunInstancesInput) SetMinCount(v int64) *RunInstancesInput {
  64647. s.MinCount = &v
  64648. return s
  64649. }
  64650. // SetMonitoring sets the Monitoring field's value.
  64651. func (s *RunInstancesInput) SetMonitoring(v *RunInstancesMonitoringEnabled) *RunInstancesInput {
  64652. s.Monitoring = v
  64653. return s
  64654. }
  64655. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  64656. func (s *RunInstancesInput) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RunInstancesInput {
  64657. s.NetworkInterfaces = v
  64658. return s
  64659. }
  64660. // SetPlacement sets the Placement field's value.
  64661. func (s *RunInstancesInput) SetPlacement(v *Placement) *RunInstancesInput {
  64662. s.Placement = v
  64663. return s
  64664. }
  64665. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  64666. func (s *RunInstancesInput) SetPrivateIpAddress(v string) *RunInstancesInput {
  64667. s.PrivateIpAddress = &v
  64668. return s
  64669. }
  64670. // SetRamdiskId sets the RamdiskId field's value.
  64671. func (s *RunInstancesInput) SetRamdiskId(v string) *RunInstancesInput {
  64672. s.RamdiskId = &v
  64673. return s
  64674. }
  64675. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  64676. func (s *RunInstancesInput) SetSecurityGroupIds(v []*string) *RunInstancesInput {
  64677. s.SecurityGroupIds = v
  64678. return s
  64679. }
  64680. // SetSecurityGroups sets the SecurityGroups field's value.
  64681. func (s *RunInstancesInput) SetSecurityGroups(v []*string) *RunInstancesInput {
  64682. s.SecurityGroups = v
  64683. return s
  64684. }
  64685. // SetSubnetId sets the SubnetId field's value.
  64686. func (s *RunInstancesInput) SetSubnetId(v string) *RunInstancesInput {
  64687. s.SubnetId = &v
  64688. return s
  64689. }
  64690. // SetTagSpecifications sets the TagSpecifications field's value.
  64691. func (s *RunInstancesInput) SetTagSpecifications(v []*TagSpecification) *RunInstancesInput {
  64692. s.TagSpecifications = v
  64693. return s
  64694. }
  64695. // SetUserData sets the UserData field's value.
  64696. func (s *RunInstancesInput) SetUserData(v string) *RunInstancesInput {
  64697. s.UserData = &v
  64698. return s
  64699. }
  64700. // Describes the monitoring of an instance.
  64701. type RunInstancesMonitoringEnabled struct {
  64702. _ struct{} `type:"structure"`
  64703. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  64704. // is enabled.
  64705. //
  64706. // Enabled is a required field
  64707. Enabled *bool `locationName:"enabled" type:"boolean" required:"true"`
  64708. }
  64709. // String returns the string representation
  64710. func (s RunInstancesMonitoringEnabled) String() string {
  64711. return awsutil.Prettify(s)
  64712. }
  64713. // GoString returns the string representation
  64714. func (s RunInstancesMonitoringEnabled) GoString() string {
  64715. return s.String()
  64716. }
  64717. // Validate inspects the fields of the type to determine if they are valid.
  64718. func (s *RunInstancesMonitoringEnabled) Validate() error {
  64719. invalidParams := request.ErrInvalidParams{Context: "RunInstancesMonitoringEnabled"}
  64720. if s.Enabled == nil {
  64721. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  64722. }
  64723. if invalidParams.Len() > 0 {
  64724. return invalidParams
  64725. }
  64726. return nil
  64727. }
  64728. // SetEnabled sets the Enabled field's value.
  64729. func (s *RunInstancesMonitoringEnabled) SetEnabled(v bool) *RunInstancesMonitoringEnabled {
  64730. s.Enabled = &v
  64731. return s
  64732. }
  64733. // Contains the parameters for RunScheduledInstances.
  64734. type RunScheduledInstancesInput struct {
  64735. _ struct{} `type:"structure"`
  64736. // Unique, case-sensitive identifier that ensures the idempotency of the request.
  64737. // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  64738. ClientToken *string `type:"string" idempotencyToken:"true"`
  64739. // Checks whether you have the required permissions for the action, without
  64740. // actually making the request, and provides an error response. If you have
  64741. // the required permissions, the error response is DryRunOperation. Otherwise,
  64742. // it is UnauthorizedOperation.
  64743. DryRun *bool `type:"boolean"`
  64744. // The number of instances.
  64745. //
  64746. // Default: 1
  64747. InstanceCount *int64 `type:"integer"`
  64748. // The launch specification. You must match the instance type, Availability
  64749. // Zone, network, and platform of the schedule that you purchased.
  64750. //
  64751. // LaunchSpecification is a required field
  64752. LaunchSpecification *ScheduledInstancesLaunchSpecification `type:"structure" required:"true"`
  64753. // The Scheduled Instance ID.
  64754. //
  64755. // ScheduledInstanceId is a required field
  64756. ScheduledInstanceId *string `type:"string" required:"true"`
  64757. }
  64758. // String returns the string representation
  64759. func (s RunScheduledInstancesInput) String() string {
  64760. return awsutil.Prettify(s)
  64761. }
  64762. // GoString returns the string representation
  64763. func (s RunScheduledInstancesInput) GoString() string {
  64764. return s.String()
  64765. }
  64766. // Validate inspects the fields of the type to determine if they are valid.
  64767. func (s *RunScheduledInstancesInput) Validate() error {
  64768. invalidParams := request.ErrInvalidParams{Context: "RunScheduledInstancesInput"}
  64769. if s.LaunchSpecification == nil {
  64770. invalidParams.Add(request.NewErrParamRequired("LaunchSpecification"))
  64771. }
  64772. if s.ScheduledInstanceId == nil {
  64773. invalidParams.Add(request.NewErrParamRequired("ScheduledInstanceId"))
  64774. }
  64775. if s.LaunchSpecification != nil {
  64776. if err := s.LaunchSpecification.Validate(); err != nil {
  64777. invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams))
  64778. }
  64779. }
  64780. if invalidParams.Len() > 0 {
  64781. return invalidParams
  64782. }
  64783. return nil
  64784. }
  64785. // SetClientToken sets the ClientToken field's value.
  64786. func (s *RunScheduledInstancesInput) SetClientToken(v string) *RunScheduledInstancesInput {
  64787. s.ClientToken = &v
  64788. return s
  64789. }
  64790. // SetDryRun sets the DryRun field's value.
  64791. func (s *RunScheduledInstancesInput) SetDryRun(v bool) *RunScheduledInstancesInput {
  64792. s.DryRun = &v
  64793. return s
  64794. }
  64795. // SetInstanceCount sets the InstanceCount field's value.
  64796. func (s *RunScheduledInstancesInput) SetInstanceCount(v int64) *RunScheduledInstancesInput {
  64797. s.InstanceCount = &v
  64798. return s
  64799. }
  64800. // SetLaunchSpecification sets the LaunchSpecification field's value.
  64801. func (s *RunScheduledInstancesInput) SetLaunchSpecification(v *ScheduledInstancesLaunchSpecification) *RunScheduledInstancesInput {
  64802. s.LaunchSpecification = v
  64803. return s
  64804. }
  64805. // SetScheduledInstanceId sets the ScheduledInstanceId field's value.
  64806. func (s *RunScheduledInstancesInput) SetScheduledInstanceId(v string) *RunScheduledInstancesInput {
  64807. s.ScheduledInstanceId = &v
  64808. return s
  64809. }
  64810. // Contains the output of RunScheduledInstances.
  64811. type RunScheduledInstancesOutput struct {
  64812. _ struct{} `type:"structure"`
  64813. // The IDs of the newly launched instances.
  64814. InstanceIdSet []*string `locationName:"instanceIdSet" locationNameList:"item" type:"list"`
  64815. }
  64816. // String returns the string representation
  64817. func (s RunScheduledInstancesOutput) String() string {
  64818. return awsutil.Prettify(s)
  64819. }
  64820. // GoString returns the string representation
  64821. func (s RunScheduledInstancesOutput) GoString() string {
  64822. return s.String()
  64823. }
  64824. // SetInstanceIdSet sets the InstanceIdSet field's value.
  64825. func (s *RunScheduledInstancesOutput) SetInstanceIdSet(v []*string) *RunScheduledInstancesOutput {
  64826. s.InstanceIdSet = v
  64827. return s
  64828. }
  64829. // Describes the storage parameters for S3 and S3 buckets for an instance store-backed
  64830. // AMI.
  64831. type S3Storage struct {
  64832. _ struct{} `type:"structure"`
  64833. // The access key ID of the owner of the bucket. Before you specify a value
  64834. // for your access key ID, review and follow the guidance in Best Practices
  64835. // for Managing AWS Access Keys (http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html).
  64836. AWSAccessKeyId *string `type:"string"`
  64837. // The bucket in which to store the AMI. You can specify a bucket that you already
  64838. // own or a new bucket that Amazon EC2 creates on your behalf. If you specify
  64839. // a bucket that belongs to someone else, Amazon EC2 returns an error.
  64840. Bucket *string `locationName:"bucket" type:"string"`
  64841. // The beginning of the file name of the AMI.
  64842. Prefix *string `locationName:"prefix" type:"string"`
  64843. // An Amazon S3 upload policy that gives Amazon EC2 permission to upload items
  64844. // into Amazon S3 on your behalf.
  64845. //
  64846. // UploadPolicy is automatically base64 encoded/decoded by the SDK.
  64847. UploadPolicy []byte `locationName:"uploadPolicy" type:"blob"`
  64848. // The signature of the JSON document.
  64849. UploadPolicySignature *string `locationName:"uploadPolicySignature" type:"string"`
  64850. }
  64851. // String returns the string representation
  64852. func (s S3Storage) String() string {
  64853. return awsutil.Prettify(s)
  64854. }
  64855. // GoString returns the string representation
  64856. func (s S3Storage) GoString() string {
  64857. return s.String()
  64858. }
  64859. // SetAWSAccessKeyId sets the AWSAccessKeyId field's value.
  64860. func (s *S3Storage) SetAWSAccessKeyId(v string) *S3Storage {
  64861. s.AWSAccessKeyId = &v
  64862. return s
  64863. }
  64864. // SetBucket sets the Bucket field's value.
  64865. func (s *S3Storage) SetBucket(v string) *S3Storage {
  64866. s.Bucket = &v
  64867. return s
  64868. }
  64869. // SetPrefix sets the Prefix field's value.
  64870. func (s *S3Storage) SetPrefix(v string) *S3Storage {
  64871. s.Prefix = &v
  64872. return s
  64873. }
  64874. // SetUploadPolicy sets the UploadPolicy field's value.
  64875. func (s *S3Storage) SetUploadPolicy(v []byte) *S3Storage {
  64876. s.UploadPolicy = v
  64877. return s
  64878. }
  64879. // SetUploadPolicySignature sets the UploadPolicySignature field's value.
  64880. func (s *S3Storage) SetUploadPolicySignature(v string) *S3Storage {
  64881. s.UploadPolicySignature = &v
  64882. return s
  64883. }
  64884. // Describes a Scheduled Instance.
  64885. type ScheduledInstance struct {
  64886. _ struct{} `type:"structure"`
  64887. // The Availability Zone.
  64888. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  64889. // The date when the Scheduled Instance was purchased.
  64890. CreateDate *time.Time `locationName:"createDate" type:"timestamp"`
  64891. // The hourly price for a single instance.
  64892. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  64893. // The number of instances.
  64894. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  64895. // The instance type.
  64896. InstanceType *string `locationName:"instanceType" type:"string"`
  64897. // The network platform (EC2-Classic or EC2-VPC).
  64898. NetworkPlatform *string `locationName:"networkPlatform" type:"string"`
  64899. // The time for the next schedule to start.
  64900. NextSlotStartTime *time.Time `locationName:"nextSlotStartTime" type:"timestamp"`
  64901. // The platform (Linux/UNIX or Windows).
  64902. Platform *string `locationName:"platform" type:"string"`
  64903. // The time that the previous schedule ended or will end.
  64904. PreviousSlotEndTime *time.Time `locationName:"previousSlotEndTime" type:"timestamp"`
  64905. // The schedule recurrence.
  64906. Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`
  64907. // The Scheduled Instance ID.
  64908. ScheduledInstanceId *string `locationName:"scheduledInstanceId" type:"string"`
  64909. // The number of hours in the schedule.
  64910. SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`
  64911. // The end date for the Scheduled Instance.
  64912. TermEndDate *time.Time `locationName:"termEndDate" type:"timestamp"`
  64913. // The start date for the Scheduled Instance.
  64914. TermStartDate *time.Time `locationName:"termStartDate" type:"timestamp"`
  64915. // The total number of hours for a single instance for the entire term.
  64916. TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
  64917. }
  64918. // String returns the string representation
  64919. func (s ScheduledInstance) String() string {
  64920. return awsutil.Prettify(s)
  64921. }
  64922. // GoString returns the string representation
  64923. func (s ScheduledInstance) GoString() string {
  64924. return s.String()
  64925. }
  64926. // SetAvailabilityZone sets the AvailabilityZone field's value.
  64927. func (s *ScheduledInstance) SetAvailabilityZone(v string) *ScheduledInstance {
  64928. s.AvailabilityZone = &v
  64929. return s
  64930. }
  64931. // SetCreateDate sets the CreateDate field's value.
  64932. func (s *ScheduledInstance) SetCreateDate(v time.Time) *ScheduledInstance {
  64933. s.CreateDate = &v
  64934. return s
  64935. }
  64936. // SetHourlyPrice sets the HourlyPrice field's value.
  64937. func (s *ScheduledInstance) SetHourlyPrice(v string) *ScheduledInstance {
  64938. s.HourlyPrice = &v
  64939. return s
  64940. }
  64941. // SetInstanceCount sets the InstanceCount field's value.
  64942. func (s *ScheduledInstance) SetInstanceCount(v int64) *ScheduledInstance {
  64943. s.InstanceCount = &v
  64944. return s
  64945. }
  64946. // SetInstanceType sets the InstanceType field's value.
  64947. func (s *ScheduledInstance) SetInstanceType(v string) *ScheduledInstance {
  64948. s.InstanceType = &v
  64949. return s
  64950. }
  64951. // SetNetworkPlatform sets the NetworkPlatform field's value.
  64952. func (s *ScheduledInstance) SetNetworkPlatform(v string) *ScheduledInstance {
  64953. s.NetworkPlatform = &v
  64954. return s
  64955. }
  64956. // SetNextSlotStartTime sets the NextSlotStartTime field's value.
  64957. func (s *ScheduledInstance) SetNextSlotStartTime(v time.Time) *ScheduledInstance {
  64958. s.NextSlotStartTime = &v
  64959. return s
  64960. }
  64961. // SetPlatform sets the Platform field's value.
  64962. func (s *ScheduledInstance) SetPlatform(v string) *ScheduledInstance {
  64963. s.Platform = &v
  64964. return s
  64965. }
  64966. // SetPreviousSlotEndTime sets the PreviousSlotEndTime field's value.
  64967. func (s *ScheduledInstance) SetPreviousSlotEndTime(v time.Time) *ScheduledInstance {
  64968. s.PreviousSlotEndTime = &v
  64969. return s
  64970. }
  64971. // SetRecurrence sets the Recurrence field's value.
  64972. func (s *ScheduledInstance) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstance {
  64973. s.Recurrence = v
  64974. return s
  64975. }
  64976. // SetScheduledInstanceId sets the ScheduledInstanceId field's value.
  64977. func (s *ScheduledInstance) SetScheduledInstanceId(v string) *ScheduledInstance {
  64978. s.ScheduledInstanceId = &v
  64979. return s
  64980. }
  64981. // SetSlotDurationInHours sets the SlotDurationInHours field's value.
  64982. func (s *ScheduledInstance) SetSlotDurationInHours(v int64) *ScheduledInstance {
  64983. s.SlotDurationInHours = &v
  64984. return s
  64985. }
  64986. // SetTermEndDate sets the TermEndDate field's value.
  64987. func (s *ScheduledInstance) SetTermEndDate(v time.Time) *ScheduledInstance {
  64988. s.TermEndDate = &v
  64989. return s
  64990. }
  64991. // SetTermStartDate sets the TermStartDate field's value.
  64992. func (s *ScheduledInstance) SetTermStartDate(v time.Time) *ScheduledInstance {
  64993. s.TermStartDate = &v
  64994. return s
  64995. }
  64996. // SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value.
  64997. func (s *ScheduledInstance) SetTotalScheduledInstanceHours(v int64) *ScheduledInstance {
  64998. s.TotalScheduledInstanceHours = &v
  64999. return s
  65000. }
  65001. // Describes a schedule that is available for your Scheduled Instances.
  65002. type ScheduledInstanceAvailability struct {
  65003. _ struct{} `type:"structure"`
  65004. // The Availability Zone.
  65005. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  65006. // The number of available instances.
  65007. AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"`
  65008. // The time period for the first schedule to start.
  65009. FirstSlotStartTime *time.Time `locationName:"firstSlotStartTime" type:"timestamp"`
  65010. // The hourly price for a single instance.
  65011. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  65012. // The instance type. You can specify one of the C3, C4, M4, or R3 instance
  65013. // types.
  65014. InstanceType *string `locationName:"instanceType" type:"string"`
  65015. // The maximum term. The only possible value is 365 days.
  65016. MaxTermDurationInDays *int64 `locationName:"maxTermDurationInDays" type:"integer"`
  65017. // The minimum term. The only possible value is 365 days.
  65018. MinTermDurationInDays *int64 `locationName:"minTermDurationInDays" type:"integer"`
  65019. // The network platform (EC2-Classic or EC2-VPC).
  65020. NetworkPlatform *string `locationName:"networkPlatform" type:"string"`
  65021. // The platform (Linux/UNIX or Windows).
  65022. Platform *string `locationName:"platform" type:"string"`
  65023. // The purchase token. This token expires in two hours.
  65024. PurchaseToken *string `locationName:"purchaseToken" type:"string"`
  65025. // The schedule recurrence.
  65026. Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`
  65027. // The number of hours in the schedule.
  65028. SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`
  65029. // The total number of hours for a single instance for the entire term.
  65030. TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
  65031. }
  65032. // String returns the string representation
  65033. func (s ScheduledInstanceAvailability) String() string {
  65034. return awsutil.Prettify(s)
  65035. }
  65036. // GoString returns the string representation
  65037. func (s ScheduledInstanceAvailability) GoString() string {
  65038. return s.String()
  65039. }
  65040. // SetAvailabilityZone sets the AvailabilityZone field's value.
  65041. func (s *ScheduledInstanceAvailability) SetAvailabilityZone(v string) *ScheduledInstanceAvailability {
  65042. s.AvailabilityZone = &v
  65043. return s
  65044. }
  65045. // SetAvailableInstanceCount sets the AvailableInstanceCount field's value.
  65046. func (s *ScheduledInstanceAvailability) SetAvailableInstanceCount(v int64) *ScheduledInstanceAvailability {
  65047. s.AvailableInstanceCount = &v
  65048. return s
  65049. }
  65050. // SetFirstSlotStartTime sets the FirstSlotStartTime field's value.
  65051. func (s *ScheduledInstanceAvailability) SetFirstSlotStartTime(v time.Time) *ScheduledInstanceAvailability {
  65052. s.FirstSlotStartTime = &v
  65053. return s
  65054. }
  65055. // SetHourlyPrice sets the HourlyPrice field's value.
  65056. func (s *ScheduledInstanceAvailability) SetHourlyPrice(v string) *ScheduledInstanceAvailability {
  65057. s.HourlyPrice = &v
  65058. return s
  65059. }
  65060. // SetInstanceType sets the InstanceType field's value.
  65061. func (s *ScheduledInstanceAvailability) SetInstanceType(v string) *ScheduledInstanceAvailability {
  65062. s.InstanceType = &v
  65063. return s
  65064. }
  65065. // SetMaxTermDurationInDays sets the MaxTermDurationInDays field's value.
  65066. func (s *ScheduledInstanceAvailability) SetMaxTermDurationInDays(v int64) *ScheduledInstanceAvailability {
  65067. s.MaxTermDurationInDays = &v
  65068. return s
  65069. }
  65070. // SetMinTermDurationInDays sets the MinTermDurationInDays field's value.
  65071. func (s *ScheduledInstanceAvailability) SetMinTermDurationInDays(v int64) *ScheduledInstanceAvailability {
  65072. s.MinTermDurationInDays = &v
  65073. return s
  65074. }
  65075. // SetNetworkPlatform sets the NetworkPlatform field's value.
  65076. func (s *ScheduledInstanceAvailability) SetNetworkPlatform(v string) *ScheduledInstanceAvailability {
  65077. s.NetworkPlatform = &v
  65078. return s
  65079. }
  65080. // SetPlatform sets the Platform field's value.
  65081. func (s *ScheduledInstanceAvailability) SetPlatform(v string) *ScheduledInstanceAvailability {
  65082. s.Platform = &v
  65083. return s
  65084. }
  65085. // SetPurchaseToken sets the PurchaseToken field's value.
  65086. func (s *ScheduledInstanceAvailability) SetPurchaseToken(v string) *ScheduledInstanceAvailability {
  65087. s.PurchaseToken = &v
  65088. return s
  65089. }
  65090. // SetRecurrence sets the Recurrence field's value.
  65091. func (s *ScheduledInstanceAvailability) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstanceAvailability {
  65092. s.Recurrence = v
  65093. return s
  65094. }
  65095. // SetSlotDurationInHours sets the SlotDurationInHours field's value.
  65096. func (s *ScheduledInstanceAvailability) SetSlotDurationInHours(v int64) *ScheduledInstanceAvailability {
  65097. s.SlotDurationInHours = &v
  65098. return s
  65099. }
  65100. // SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value.
  65101. func (s *ScheduledInstanceAvailability) SetTotalScheduledInstanceHours(v int64) *ScheduledInstanceAvailability {
  65102. s.TotalScheduledInstanceHours = &v
  65103. return s
  65104. }
  65105. // Describes the recurring schedule for a Scheduled Instance.
  65106. type ScheduledInstanceRecurrence struct {
  65107. _ struct{} `type:"structure"`
  65108. // The frequency (Daily, Weekly, or Monthly).
  65109. Frequency *string `locationName:"frequency" type:"string"`
  65110. // The interval quantity. The interval unit depends on the value of frequency.
  65111. // For example, every 2 weeks or every 2 months.
  65112. Interval *int64 `locationName:"interval" type:"integer"`
  65113. // The days. For a monthly schedule, this is one or more days of the month (1-31).
  65114. // For a weekly schedule, this is one or more days of the week (1-7, where 1
  65115. // is Sunday).
  65116. OccurrenceDaySet []*int64 `locationName:"occurrenceDaySet" locationNameList:"item" type:"list"`
  65117. // Indicates whether the occurrence is relative to the end of the specified
  65118. // week or month.
  65119. OccurrenceRelativeToEnd *bool `locationName:"occurrenceRelativeToEnd" type:"boolean"`
  65120. // The unit for occurrenceDaySet (DayOfWeek or DayOfMonth).
  65121. OccurrenceUnit *string `locationName:"occurrenceUnit" type:"string"`
  65122. }
  65123. // String returns the string representation
  65124. func (s ScheduledInstanceRecurrence) String() string {
  65125. return awsutil.Prettify(s)
  65126. }
  65127. // GoString returns the string representation
  65128. func (s ScheduledInstanceRecurrence) GoString() string {
  65129. return s.String()
  65130. }
  65131. // SetFrequency sets the Frequency field's value.
  65132. func (s *ScheduledInstanceRecurrence) SetFrequency(v string) *ScheduledInstanceRecurrence {
  65133. s.Frequency = &v
  65134. return s
  65135. }
  65136. // SetInterval sets the Interval field's value.
  65137. func (s *ScheduledInstanceRecurrence) SetInterval(v int64) *ScheduledInstanceRecurrence {
  65138. s.Interval = &v
  65139. return s
  65140. }
  65141. // SetOccurrenceDaySet sets the OccurrenceDaySet field's value.
  65142. func (s *ScheduledInstanceRecurrence) SetOccurrenceDaySet(v []*int64) *ScheduledInstanceRecurrence {
  65143. s.OccurrenceDaySet = v
  65144. return s
  65145. }
  65146. // SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value.
  65147. func (s *ScheduledInstanceRecurrence) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrence {
  65148. s.OccurrenceRelativeToEnd = &v
  65149. return s
  65150. }
  65151. // SetOccurrenceUnit sets the OccurrenceUnit field's value.
  65152. func (s *ScheduledInstanceRecurrence) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrence {
  65153. s.OccurrenceUnit = &v
  65154. return s
  65155. }
  65156. // Describes the recurring schedule for a Scheduled Instance.
  65157. type ScheduledInstanceRecurrenceRequest struct {
  65158. _ struct{} `type:"structure"`
  65159. // The frequency (Daily, Weekly, or Monthly).
  65160. Frequency *string `type:"string"`
  65161. // The interval quantity. The interval unit depends on the value of Frequency.
  65162. // For example, every 2 weeks or every 2 months.
  65163. Interval *int64 `type:"integer"`
  65164. // The days. For a monthly schedule, this is one or more days of the month (1-31).
  65165. // For a weekly schedule, this is one or more days of the week (1-7, where 1
  65166. // is Sunday). You can't specify this value with a daily schedule. If the occurrence
  65167. // is relative to the end of the month, you can specify only a single day.
  65168. OccurrenceDays []*int64 `locationName:"OccurrenceDay" locationNameList:"OccurenceDay" type:"list"`
  65169. // Indicates whether the occurrence is relative to the end of the specified
  65170. // week or month. You can't specify this value with a daily schedule.
  65171. OccurrenceRelativeToEnd *bool `type:"boolean"`
  65172. // The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required
  65173. // for a monthly schedule. You can't specify DayOfWeek with a weekly schedule.
  65174. // You can't specify this value with a daily schedule.
  65175. OccurrenceUnit *string `type:"string"`
  65176. }
  65177. // String returns the string representation
  65178. func (s ScheduledInstanceRecurrenceRequest) String() string {
  65179. return awsutil.Prettify(s)
  65180. }
  65181. // GoString returns the string representation
  65182. func (s ScheduledInstanceRecurrenceRequest) GoString() string {
  65183. return s.String()
  65184. }
  65185. // SetFrequency sets the Frequency field's value.
  65186. func (s *ScheduledInstanceRecurrenceRequest) SetFrequency(v string) *ScheduledInstanceRecurrenceRequest {
  65187. s.Frequency = &v
  65188. return s
  65189. }
  65190. // SetInterval sets the Interval field's value.
  65191. func (s *ScheduledInstanceRecurrenceRequest) SetInterval(v int64) *ScheduledInstanceRecurrenceRequest {
  65192. s.Interval = &v
  65193. return s
  65194. }
  65195. // SetOccurrenceDays sets the OccurrenceDays field's value.
  65196. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceDays(v []*int64) *ScheduledInstanceRecurrenceRequest {
  65197. s.OccurrenceDays = v
  65198. return s
  65199. }
  65200. // SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value.
  65201. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrenceRequest {
  65202. s.OccurrenceRelativeToEnd = &v
  65203. return s
  65204. }
  65205. // SetOccurrenceUnit sets the OccurrenceUnit field's value.
  65206. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrenceRequest {
  65207. s.OccurrenceUnit = &v
  65208. return s
  65209. }
  65210. // Describes a block device mapping for a Scheduled Instance.
  65211. type ScheduledInstancesBlockDeviceMapping struct {
  65212. _ struct{} `type:"structure"`
  65213. // The device name (for example, /dev/sdh or xvdh).
  65214. DeviceName *string `type:"string"`
  65215. // Parameters used to set up EBS volumes automatically when the instance is
  65216. // launched.
  65217. Ebs *ScheduledInstancesEbs `type:"structure"`
  65218. // Suppresses the specified device included in the block device mapping of the
  65219. // AMI.
  65220. NoDevice *string `type:"string"`
  65221. // The virtual device name (ephemeralN). Instance store volumes are numbered
  65222. // starting from 0. An instance type with two available instance store volumes
  65223. // can specify mappings for ephemeral0 and ephemeral1. The number of available
  65224. // instance store volumes depends on the instance type. After you connect to
  65225. // the instance, you must mount the volume.
  65226. //
  65227. // Constraints: For M3 instances, you must specify instance store volumes in
  65228. // the block device mapping for the instance. When you launch an M3 instance,
  65229. // we ignore any instance store volumes specified in the block device mapping
  65230. // for the AMI.
  65231. VirtualName *string `type:"string"`
  65232. }
  65233. // String returns the string representation
  65234. func (s ScheduledInstancesBlockDeviceMapping) String() string {
  65235. return awsutil.Prettify(s)
  65236. }
  65237. // GoString returns the string representation
  65238. func (s ScheduledInstancesBlockDeviceMapping) GoString() string {
  65239. return s.String()
  65240. }
  65241. // SetDeviceName sets the DeviceName field's value.
  65242. func (s *ScheduledInstancesBlockDeviceMapping) SetDeviceName(v string) *ScheduledInstancesBlockDeviceMapping {
  65243. s.DeviceName = &v
  65244. return s
  65245. }
  65246. // SetEbs sets the Ebs field's value.
  65247. func (s *ScheduledInstancesBlockDeviceMapping) SetEbs(v *ScheduledInstancesEbs) *ScheduledInstancesBlockDeviceMapping {
  65248. s.Ebs = v
  65249. return s
  65250. }
  65251. // SetNoDevice sets the NoDevice field's value.
  65252. func (s *ScheduledInstancesBlockDeviceMapping) SetNoDevice(v string) *ScheduledInstancesBlockDeviceMapping {
  65253. s.NoDevice = &v
  65254. return s
  65255. }
  65256. // SetVirtualName sets the VirtualName field's value.
  65257. func (s *ScheduledInstancesBlockDeviceMapping) SetVirtualName(v string) *ScheduledInstancesBlockDeviceMapping {
  65258. s.VirtualName = &v
  65259. return s
  65260. }
  65261. // Describes an EBS volume for a Scheduled Instance.
  65262. type ScheduledInstancesEbs struct {
  65263. _ struct{} `type:"structure"`
  65264. // Indicates whether the volume is deleted on instance termination.
  65265. DeleteOnTermination *bool `type:"boolean"`
  65266. // Indicates whether the volume is encrypted. You can attached encrypted volumes
  65267. // only to instances that support them.
  65268. Encrypted *bool `type:"boolean"`
  65269. // The number of I/O operations per second (IOPS) that the volume supports.
  65270. // For io1 volumes, this represents the number of IOPS that are provisioned
  65271. // for the volume. For gp2 volumes, this represents the baseline performance
  65272. // of the volume and the rate at which the volume accumulates I/O credits for
  65273. // bursting. For more information about gp2 baseline performance, I/O credits,
  65274. // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  65275. // in the Amazon Elastic Compute Cloud User Guide.
  65276. //
  65277. // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
  65278. // gp2 volumes.
  65279. //
  65280. // Condition: This parameter is required for requests to create io1volumes;
  65281. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  65282. Iops *int64 `type:"integer"`
  65283. // The ID of the snapshot.
  65284. SnapshotId *string `type:"string"`
  65285. // The size of the volume, in GiB.
  65286. //
  65287. // Default: If you're creating the volume from a snapshot and don't specify
  65288. // a volume size, the default is the snapshot size.
  65289. VolumeSize *int64 `type:"integer"`
  65290. // The volume type. gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD,
  65291. // Throughput Optimized HDD for st1, Cold HDD for sc1, or standard for Magnetic.
  65292. //
  65293. // Default: standard
  65294. VolumeType *string `type:"string"`
  65295. }
  65296. // String returns the string representation
  65297. func (s ScheduledInstancesEbs) String() string {
  65298. return awsutil.Prettify(s)
  65299. }
  65300. // GoString returns the string representation
  65301. func (s ScheduledInstancesEbs) GoString() string {
  65302. return s.String()
  65303. }
  65304. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  65305. func (s *ScheduledInstancesEbs) SetDeleteOnTermination(v bool) *ScheduledInstancesEbs {
  65306. s.DeleteOnTermination = &v
  65307. return s
  65308. }
  65309. // SetEncrypted sets the Encrypted field's value.
  65310. func (s *ScheduledInstancesEbs) SetEncrypted(v bool) *ScheduledInstancesEbs {
  65311. s.Encrypted = &v
  65312. return s
  65313. }
  65314. // SetIops sets the Iops field's value.
  65315. func (s *ScheduledInstancesEbs) SetIops(v int64) *ScheduledInstancesEbs {
  65316. s.Iops = &v
  65317. return s
  65318. }
  65319. // SetSnapshotId sets the SnapshotId field's value.
  65320. func (s *ScheduledInstancesEbs) SetSnapshotId(v string) *ScheduledInstancesEbs {
  65321. s.SnapshotId = &v
  65322. return s
  65323. }
  65324. // SetVolumeSize sets the VolumeSize field's value.
  65325. func (s *ScheduledInstancesEbs) SetVolumeSize(v int64) *ScheduledInstancesEbs {
  65326. s.VolumeSize = &v
  65327. return s
  65328. }
  65329. // SetVolumeType sets the VolumeType field's value.
  65330. func (s *ScheduledInstancesEbs) SetVolumeType(v string) *ScheduledInstancesEbs {
  65331. s.VolumeType = &v
  65332. return s
  65333. }
  65334. // Describes an IAM instance profile for a Scheduled Instance.
  65335. type ScheduledInstancesIamInstanceProfile struct {
  65336. _ struct{} `type:"structure"`
  65337. // The Amazon Resource Name (ARN).
  65338. Arn *string `type:"string"`
  65339. // The name.
  65340. Name *string `type:"string"`
  65341. }
  65342. // String returns the string representation
  65343. func (s ScheduledInstancesIamInstanceProfile) String() string {
  65344. return awsutil.Prettify(s)
  65345. }
  65346. // GoString returns the string representation
  65347. func (s ScheduledInstancesIamInstanceProfile) GoString() string {
  65348. return s.String()
  65349. }
  65350. // SetArn sets the Arn field's value.
  65351. func (s *ScheduledInstancesIamInstanceProfile) SetArn(v string) *ScheduledInstancesIamInstanceProfile {
  65352. s.Arn = &v
  65353. return s
  65354. }
  65355. // SetName sets the Name field's value.
  65356. func (s *ScheduledInstancesIamInstanceProfile) SetName(v string) *ScheduledInstancesIamInstanceProfile {
  65357. s.Name = &v
  65358. return s
  65359. }
  65360. // Describes an IPv6 address.
  65361. type ScheduledInstancesIpv6Address struct {
  65362. _ struct{} `type:"structure"`
  65363. // The IPv6 address.
  65364. Ipv6Address *string `type:"string"`
  65365. }
  65366. // String returns the string representation
  65367. func (s ScheduledInstancesIpv6Address) String() string {
  65368. return awsutil.Prettify(s)
  65369. }
  65370. // GoString returns the string representation
  65371. func (s ScheduledInstancesIpv6Address) GoString() string {
  65372. return s.String()
  65373. }
  65374. // SetIpv6Address sets the Ipv6Address field's value.
  65375. func (s *ScheduledInstancesIpv6Address) SetIpv6Address(v string) *ScheduledInstancesIpv6Address {
  65376. s.Ipv6Address = &v
  65377. return s
  65378. }
  65379. // Describes the launch specification for a Scheduled Instance.
  65380. //
  65381. // If you are launching the Scheduled Instance in EC2-VPC, you must specify
  65382. // the ID of the subnet. You can specify the subnet using either SubnetId or
  65383. // NetworkInterface.
  65384. type ScheduledInstancesLaunchSpecification struct {
  65385. _ struct{} `type:"structure"`
  65386. // One or more block device mapping entries.
  65387. BlockDeviceMappings []*ScheduledInstancesBlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  65388. // Indicates whether the instances are optimized for EBS I/O. This optimization
  65389. // provides dedicated throughput to Amazon EBS and an optimized configuration
  65390. // stack to provide optimal EBS I/O performance. This optimization isn't available
  65391. // with all instance types. Additional usage charges apply when using an EBS-optimized
  65392. // instance.
  65393. //
  65394. // Default: false
  65395. EbsOptimized *bool `type:"boolean"`
  65396. // The IAM instance profile.
  65397. IamInstanceProfile *ScheduledInstancesIamInstanceProfile `type:"structure"`
  65398. // The ID of the Amazon Machine Image (AMI).
  65399. //
  65400. // ImageId is a required field
  65401. ImageId *string `type:"string" required:"true"`
  65402. // The instance type.
  65403. InstanceType *string `type:"string"`
  65404. // The ID of the kernel.
  65405. KernelId *string `type:"string"`
  65406. // The name of the key pair.
  65407. KeyName *string `type:"string"`
  65408. // Enable or disable monitoring for the instances.
  65409. Monitoring *ScheduledInstancesMonitoring `type:"structure"`
  65410. // One or more network interfaces.
  65411. NetworkInterfaces []*ScheduledInstancesNetworkInterface `locationName:"NetworkInterface" locationNameList:"NetworkInterface" type:"list"`
  65412. // The placement information.
  65413. Placement *ScheduledInstancesPlacement `type:"structure"`
  65414. // The ID of the RAM disk.
  65415. RamdiskId *string `type:"string"`
  65416. // The IDs of one or more security groups.
  65417. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  65418. // The ID of the subnet in which to launch the instances.
  65419. SubnetId *string `type:"string"`
  65420. // The base64-encoded MIME user data.
  65421. UserData *string `type:"string"`
  65422. }
  65423. // String returns the string representation
  65424. func (s ScheduledInstancesLaunchSpecification) String() string {
  65425. return awsutil.Prettify(s)
  65426. }
  65427. // GoString returns the string representation
  65428. func (s ScheduledInstancesLaunchSpecification) GoString() string {
  65429. return s.String()
  65430. }
  65431. // Validate inspects the fields of the type to determine if they are valid.
  65432. func (s *ScheduledInstancesLaunchSpecification) Validate() error {
  65433. invalidParams := request.ErrInvalidParams{Context: "ScheduledInstancesLaunchSpecification"}
  65434. if s.ImageId == nil {
  65435. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  65436. }
  65437. if invalidParams.Len() > 0 {
  65438. return invalidParams
  65439. }
  65440. return nil
  65441. }
  65442. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  65443. func (s *ScheduledInstancesLaunchSpecification) SetBlockDeviceMappings(v []*ScheduledInstancesBlockDeviceMapping) *ScheduledInstancesLaunchSpecification {
  65444. s.BlockDeviceMappings = v
  65445. return s
  65446. }
  65447. // SetEbsOptimized sets the EbsOptimized field's value.
  65448. func (s *ScheduledInstancesLaunchSpecification) SetEbsOptimized(v bool) *ScheduledInstancesLaunchSpecification {
  65449. s.EbsOptimized = &v
  65450. return s
  65451. }
  65452. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  65453. func (s *ScheduledInstancesLaunchSpecification) SetIamInstanceProfile(v *ScheduledInstancesIamInstanceProfile) *ScheduledInstancesLaunchSpecification {
  65454. s.IamInstanceProfile = v
  65455. return s
  65456. }
  65457. // SetImageId sets the ImageId field's value.
  65458. func (s *ScheduledInstancesLaunchSpecification) SetImageId(v string) *ScheduledInstancesLaunchSpecification {
  65459. s.ImageId = &v
  65460. return s
  65461. }
  65462. // SetInstanceType sets the InstanceType field's value.
  65463. func (s *ScheduledInstancesLaunchSpecification) SetInstanceType(v string) *ScheduledInstancesLaunchSpecification {
  65464. s.InstanceType = &v
  65465. return s
  65466. }
  65467. // SetKernelId sets the KernelId field's value.
  65468. func (s *ScheduledInstancesLaunchSpecification) SetKernelId(v string) *ScheduledInstancesLaunchSpecification {
  65469. s.KernelId = &v
  65470. return s
  65471. }
  65472. // SetKeyName sets the KeyName field's value.
  65473. func (s *ScheduledInstancesLaunchSpecification) SetKeyName(v string) *ScheduledInstancesLaunchSpecification {
  65474. s.KeyName = &v
  65475. return s
  65476. }
  65477. // SetMonitoring sets the Monitoring field's value.
  65478. func (s *ScheduledInstancesLaunchSpecification) SetMonitoring(v *ScheduledInstancesMonitoring) *ScheduledInstancesLaunchSpecification {
  65479. s.Monitoring = v
  65480. return s
  65481. }
  65482. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  65483. func (s *ScheduledInstancesLaunchSpecification) SetNetworkInterfaces(v []*ScheduledInstancesNetworkInterface) *ScheduledInstancesLaunchSpecification {
  65484. s.NetworkInterfaces = v
  65485. return s
  65486. }
  65487. // SetPlacement sets the Placement field's value.
  65488. func (s *ScheduledInstancesLaunchSpecification) SetPlacement(v *ScheduledInstancesPlacement) *ScheduledInstancesLaunchSpecification {
  65489. s.Placement = v
  65490. return s
  65491. }
  65492. // SetRamdiskId sets the RamdiskId field's value.
  65493. func (s *ScheduledInstancesLaunchSpecification) SetRamdiskId(v string) *ScheduledInstancesLaunchSpecification {
  65494. s.RamdiskId = &v
  65495. return s
  65496. }
  65497. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  65498. func (s *ScheduledInstancesLaunchSpecification) SetSecurityGroupIds(v []*string) *ScheduledInstancesLaunchSpecification {
  65499. s.SecurityGroupIds = v
  65500. return s
  65501. }
  65502. // SetSubnetId sets the SubnetId field's value.
  65503. func (s *ScheduledInstancesLaunchSpecification) SetSubnetId(v string) *ScheduledInstancesLaunchSpecification {
  65504. s.SubnetId = &v
  65505. return s
  65506. }
  65507. // SetUserData sets the UserData field's value.
  65508. func (s *ScheduledInstancesLaunchSpecification) SetUserData(v string) *ScheduledInstancesLaunchSpecification {
  65509. s.UserData = &v
  65510. return s
  65511. }
  65512. // Describes whether monitoring is enabled for a Scheduled Instance.
  65513. type ScheduledInstancesMonitoring struct {
  65514. _ struct{} `type:"structure"`
  65515. // Indicates whether monitoring is enabled.
  65516. Enabled *bool `type:"boolean"`
  65517. }
  65518. // String returns the string representation
  65519. func (s ScheduledInstancesMonitoring) String() string {
  65520. return awsutil.Prettify(s)
  65521. }
  65522. // GoString returns the string representation
  65523. func (s ScheduledInstancesMonitoring) GoString() string {
  65524. return s.String()
  65525. }
  65526. // SetEnabled sets the Enabled field's value.
  65527. func (s *ScheduledInstancesMonitoring) SetEnabled(v bool) *ScheduledInstancesMonitoring {
  65528. s.Enabled = &v
  65529. return s
  65530. }
  65531. // Describes a network interface for a Scheduled Instance.
  65532. type ScheduledInstancesNetworkInterface struct {
  65533. _ struct{} `type:"structure"`
  65534. // Indicates whether to assign a public IPv4 address to instances launched in
  65535. // a VPC. The public IPv4 address can only be assigned to a network interface
  65536. // for eth0, and can only be assigned to a new network interface, not an existing
  65537. // one. You cannot specify more than one network interface in the request. If
  65538. // launching into a default subnet, the default value is true.
  65539. AssociatePublicIpAddress *bool `type:"boolean"`
  65540. // Indicates whether to delete the interface when the instance is terminated.
  65541. DeleteOnTermination *bool `type:"boolean"`
  65542. // The description.
  65543. Description *string `type:"string"`
  65544. // The index of the device for the network interface attachment.
  65545. DeviceIndex *int64 `type:"integer"`
  65546. // The IDs of one or more security groups.
  65547. Groups []*string `locationName:"Group" locationNameList:"SecurityGroupId" type:"list"`
  65548. // The number of IPv6 addresses to assign to the network interface. The IPv6
  65549. // addresses are automatically selected from the subnet range.
  65550. Ipv6AddressCount *int64 `type:"integer"`
  65551. // One or more specific IPv6 addresses from the subnet range.
  65552. Ipv6Addresses []*ScheduledInstancesIpv6Address `locationName:"Ipv6Address" locationNameList:"Ipv6Address" type:"list"`
  65553. // The ID of the network interface.
  65554. NetworkInterfaceId *string `type:"string"`
  65555. // The IPv4 address of the network interface within the subnet.
  65556. PrivateIpAddress *string `type:"string"`
  65557. // The private IPv4 addresses.
  65558. PrivateIpAddressConfigs []*ScheduledInstancesPrivateIpAddressConfig `locationName:"PrivateIpAddressConfig" locationNameList:"PrivateIpAddressConfigSet" type:"list"`
  65559. // The number of secondary private IPv4 addresses.
  65560. SecondaryPrivateIpAddressCount *int64 `type:"integer"`
  65561. // The ID of the subnet.
  65562. SubnetId *string `type:"string"`
  65563. }
  65564. // String returns the string representation
  65565. func (s ScheduledInstancesNetworkInterface) String() string {
  65566. return awsutil.Prettify(s)
  65567. }
  65568. // GoString returns the string representation
  65569. func (s ScheduledInstancesNetworkInterface) GoString() string {
  65570. return s.String()
  65571. }
  65572. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  65573. func (s *ScheduledInstancesNetworkInterface) SetAssociatePublicIpAddress(v bool) *ScheduledInstancesNetworkInterface {
  65574. s.AssociatePublicIpAddress = &v
  65575. return s
  65576. }
  65577. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  65578. func (s *ScheduledInstancesNetworkInterface) SetDeleteOnTermination(v bool) *ScheduledInstancesNetworkInterface {
  65579. s.DeleteOnTermination = &v
  65580. return s
  65581. }
  65582. // SetDescription sets the Description field's value.
  65583. func (s *ScheduledInstancesNetworkInterface) SetDescription(v string) *ScheduledInstancesNetworkInterface {
  65584. s.Description = &v
  65585. return s
  65586. }
  65587. // SetDeviceIndex sets the DeviceIndex field's value.
  65588. func (s *ScheduledInstancesNetworkInterface) SetDeviceIndex(v int64) *ScheduledInstancesNetworkInterface {
  65589. s.DeviceIndex = &v
  65590. return s
  65591. }
  65592. // SetGroups sets the Groups field's value.
  65593. func (s *ScheduledInstancesNetworkInterface) SetGroups(v []*string) *ScheduledInstancesNetworkInterface {
  65594. s.Groups = v
  65595. return s
  65596. }
  65597. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  65598. func (s *ScheduledInstancesNetworkInterface) SetIpv6AddressCount(v int64) *ScheduledInstancesNetworkInterface {
  65599. s.Ipv6AddressCount = &v
  65600. return s
  65601. }
  65602. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  65603. func (s *ScheduledInstancesNetworkInterface) SetIpv6Addresses(v []*ScheduledInstancesIpv6Address) *ScheduledInstancesNetworkInterface {
  65604. s.Ipv6Addresses = v
  65605. return s
  65606. }
  65607. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  65608. func (s *ScheduledInstancesNetworkInterface) SetNetworkInterfaceId(v string) *ScheduledInstancesNetworkInterface {
  65609. s.NetworkInterfaceId = &v
  65610. return s
  65611. }
  65612. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  65613. func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddress(v string) *ScheduledInstancesNetworkInterface {
  65614. s.PrivateIpAddress = &v
  65615. return s
  65616. }
  65617. // SetPrivateIpAddressConfigs sets the PrivateIpAddressConfigs field's value.
  65618. func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddressConfigs(v []*ScheduledInstancesPrivateIpAddressConfig) *ScheduledInstancesNetworkInterface {
  65619. s.PrivateIpAddressConfigs = v
  65620. return s
  65621. }
  65622. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  65623. func (s *ScheduledInstancesNetworkInterface) SetSecondaryPrivateIpAddressCount(v int64) *ScheduledInstancesNetworkInterface {
  65624. s.SecondaryPrivateIpAddressCount = &v
  65625. return s
  65626. }
  65627. // SetSubnetId sets the SubnetId field's value.
  65628. func (s *ScheduledInstancesNetworkInterface) SetSubnetId(v string) *ScheduledInstancesNetworkInterface {
  65629. s.SubnetId = &v
  65630. return s
  65631. }
  65632. // Describes the placement for a Scheduled Instance.
  65633. type ScheduledInstancesPlacement struct {
  65634. _ struct{} `type:"structure"`
  65635. // The Availability Zone.
  65636. AvailabilityZone *string `type:"string"`
  65637. // The name of the placement group.
  65638. GroupName *string `type:"string"`
  65639. }
  65640. // String returns the string representation
  65641. func (s ScheduledInstancesPlacement) String() string {
  65642. return awsutil.Prettify(s)
  65643. }
  65644. // GoString returns the string representation
  65645. func (s ScheduledInstancesPlacement) GoString() string {
  65646. return s.String()
  65647. }
  65648. // SetAvailabilityZone sets the AvailabilityZone field's value.
  65649. func (s *ScheduledInstancesPlacement) SetAvailabilityZone(v string) *ScheduledInstancesPlacement {
  65650. s.AvailabilityZone = &v
  65651. return s
  65652. }
  65653. // SetGroupName sets the GroupName field's value.
  65654. func (s *ScheduledInstancesPlacement) SetGroupName(v string) *ScheduledInstancesPlacement {
  65655. s.GroupName = &v
  65656. return s
  65657. }
  65658. // Describes a private IPv4 address for a Scheduled Instance.
  65659. type ScheduledInstancesPrivateIpAddressConfig struct {
  65660. _ struct{} `type:"structure"`
  65661. // Indicates whether this is a primary IPv4 address. Otherwise, this is a secondary
  65662. // IPv4 address.
  65663. Primary *bool `type:"boolean"`
  65664. // The IPv4 address.
  65665. PrivateIpAddress *string `type:"string"`
  65666. }
  65667. // String returns the string representation
  65668. func (s ScheduledInstancesPrivateIpAddressConfig) String() string {
  65669. return awsutil.Prettify(s)
  65670. }
  65671. // GoString returns the string representation
  65672. func (s ScheduledInstancesPrivateIpAddressConfig) GoString() string {
  65673. return s.String()
  65674. }
  65675. // SetPrimary sets the Primary field's value.
  65676. func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrimary(v bool) *ScheduledInstancesPrivateIpAddressConfig {
  65677. s.Primary = &v
  65678. return s
  65679. }
  65680. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  65681. func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrivateIpAddress(v string) *ScheduledInstancesPrivateIpAddressConfig {
  65682. s.PrivateIpAddress = &v
  65683. return s
  65684. }
  65685. type SearchTransitGatewayRoutesInput struct {
  65686. _ struct{} `type:"structure"`
  65687. // Checks whether you have the required permissions for the action, without
  65688. // actually making the request, and provides an error response. If you have
  65689. // the required permissions, the error response is DryRunOperation. Otherwise,
  65690. // it is UnauthorizedOperation.
  65691. DryRun *bool `type:"boolean"`
  65692. // One or more filters. The possible values are:
  65693. //
  65694. // * transit-gateway-route-destination-cidr-block - The CIDR range.
  65695. //
  65696. // * transit-gateway-route-state - The state of the route (active | blackhole).
  65697. //
  65698. // * transit-gateway-route-transit-gateway-attachment-id - The ID of the
  65699. // attachment.
  65700. //
  65701. // * transit-gateway-route-type - The route type (static | propagated).
  65702. //
  65703. // Filters is a required field
  65704. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list" required:"true"`
  65705. // The maximum number of routes to return.
  65706. MaxResults *int64 `min:"5" type:"integer"`
  65707. // The ID of the transit gateway route table.
  65708. //
  65709. // TransitGatewayRouteTableId is a required field
  65710. TransitGatewayRouteTableId *string `type:"string" required:"true"`
  65711. }
  65712. // String returns the string representation
  65713. func (s SearchTransitGatewayRoutesInput) String() string {
  65714. return awsutil.Prettify(s)
  65715. }
  65716. // GoString returns the string representation
  65717. func (s SearchTransitGatewayRoutesInput) GoString() string {
  65718. return s.String()
  65719. }
  65720. // Validate inspects the fields of the type to determine if they are valid.
  65721. func (s *SearchTransitGatewayRoutesInput) Validate() error {
  65722. invalidParams := request.ErrInvalidParams{Context: "SearchTransitGatewayRoutesInput"}
  65723. if s.Filters == nil {
  65724. invalidParams.Add(request.NewErrParamRequired("Filters"))
  65725. }
  65726. if s.MaxResults != nil && *s.MaxResults < 5 {
  65727. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  65728. }
  65729. if s.TransitGatewayRouteTableId == nil {
  65730. invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId"))
  65731. }
  65732. if invalidParams.Len() > 0 {
  65733. return invalidParams
  65734. }
  65735. return nil
  65736. }
  65737. // SetDryRun sets the DryRun field's value.
  65738. func (s *SearchTransitGatewayRoutesInput) SetDryRun(v bool) *SearchTransitGatewayRoutesInput {
  65739. s.DryRun = &v
  65740. return s
  65741. }
  65742. // SetFilters sets the Filters field's value.
  65743. func (s *SearchTransitGatewayRoutesInput) SetFilters(v []*Filter) *SearchTransitGatewayRoutesInput {
  65744. s.Filters = v
  65745. return s
  65746. }
  65747. // SetMaxResults sets the MaxResults field's value.
  65748. func (s *SearchTransitGatewayRoutesInput) SetMaxResults(v int64) *SearchTransitGatewayRoutesInput {
  65749. s.MaxResults = &v
  65750. return s
  65751. }
  65752. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  65753. func (s *SearchTransitGatewayRoutesInput) SetTransitGatewayRouteTableId(v string) *SearchTransitGatewayRoutesInput {
  65754. s.TransitGatewayRouteTableId = &v
  65755. return s
  65756. }
  65757. type SearchTransitGatewayRoutesOutput struct {
  65758. _ struct{} `type:"structure"`
  65759. // Indicates whether there are additional routes available.
  65760. AdditionalRoutesAvailable *bool `locationName:"additionalRoutesAvailable" type:"boolean"`
  65761. // Information about the routes.
  65762. Routes []*TransitGatewayRoute `locationName:"routeSet" locationNameList:"item" type:"list"`
  65763. }
  65764. // String returns the string representation
  65765. func (s SearchTransitGatewayRoutesOutput) String() string {
  65766. return awsutil.Prettify(s)
  65767. }
  65768. // GoString returns the string representation
  65769. func (s SearchTransitGatewayRoutesOutput) GoString() string {
  65770. return s.String()
  65771. }
  65772. // SetAdditionalRoutesAvailable sets the AdditionalRoutesAvailable field's value.
  65773. func (s *SearchTransitGatewayRoutesOutput) SetAdditionalRoutesAvailable(v bool) *SearchTransitGatewayRoutesOutput {
  65774. s.AdditionalRoutesAvailable = &v
  65775. return s
  65776. }
  65777. // SetRoutes sets the Routes field's value.
  65778. func (s *SearchTransitGatewayRoutesOutput) SetRoutes(v []*TransitGatewayRoute) *SearchTransitGatewayRoutesOutput {
  65779. s.Routes = v
  65780. return s
  65781. }
  65782. // Describes a security group
  65783. type SecurityGroup struct {
  65784. _ struct{} `type:"structure"`
  65785. // A description of the security group.
  65786. Description *string `locationName:"groupDescription" type:"string"`
  65787. // The ID of the security group.
  65788. GroupId *string `locationName:"groupId" type:"string"`
  65789. // The name of the security group.
  65790. GroupName *string `locationName:"groupName" type:"string"`
  65791. // One or more inbound rules associated with the security group.
  65792. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  65793. // [EC2-VPC] One or more outbound rules associated with the security group.
  65794. IpPermissionsEgress []*IpPermission `locationName:"ipPermissionsEgress" locationNameList:"item" type:"list"`
  65795. // The AWS account ID of the owner of the security group.
  65796. OwnerId *string `locationName:"ownerId" type:"string"`
  65797. // Any tags assigned to the security group.
  65798. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  65799. // [EC2-VPC] The ID of the VPC for the security group.
  65800. VpcId *string `locationName:"vpcId" type:"string"`
  65801. }
  65802. // String returns the string representation
  65803. func (s SecurityGroup) String() string {
  65804. return awsutil.Prettify(s)
  65805. }
  65806. // GoString returns the string representation
  65807. func (s SecurityGroup) GoString() string {
  65808. return s.String()
  65809. }
  65810. // SetDescription sets the Description field's value.
  65811. func (s *SecurityGroup) SetDescription(v string) *SecurityGroup {
  65812. s.Description = &v
  65813. return s
  65814. }
  65815. // SetGroupId sets the GroupId field's value.
  65816. func (s *SecurityGroup) SetGroupId(v string) *SecurityGroup {
  65817. s.GroupId = &v
  65818. return s
  65819. }
  65820. // SetGroupName sets the GroupName field's value.
  65821. func (s *SecurityGroup) SetGroupName(v string) *SecurityGroup {
  65822. s.GroupName = &v
  65823. return s
  65824. }
  65825. // SetIpPermissions sets the IpPermissions field's value.
  65826. func (s *SecurityGroup) SetIpPermissions(v []*IpPermission) *SecurityGroup {
  65827. s.IpPermissions = v
  65828. return s
  65829. }
  65830. // SetIpPermissionsEgress sets the IpPermissionsEgress field's value.
  65831. func (s *SecurityGroup) SetIpPermissionsEgress(v []*IpPermission) *SecurityGroup {
  65832. s.IpPermissionsEgress = v
  65833. return s
  65834. }
  65835. // SetOwnerId sets the OwnerId field's value.
  65836. func (s *SecurityGroup) SetOwnerId(v string) *SecurityGroup {
  65837. s.OwnerId = &v
  65838. return s
  65839. }
  65840. // SetTags sets the Tags field's value.
  65841. func (s *SecurityGroup) SetTags(v []*Tag) *SecurityGroup {
  65842. s.Tags = v
  65843. return s
  65844. }
  65845. // SetVpcId sets the VpcId field's value.
  65846. func (s *SecurityGroup) SetVpcId(v string) *SecurityGroup {
  65847. s.VpcId = &v
  65848. return s
  65849. }
  65850. // Describes a security group.
  65851. type SecurityGroupIdentifier struct {
  65852. _ struct{} `type:"structure"`
  65853. // The ID of the security group.
  65854. GroupId *string `locationName:"groupId" type:"string"`
  65855. // The name of the security group.
  65856. GroupName *string `locationName:"groupName" type:"string"`
  65857. }
  65858. // String returns the string representation
  65859. func (s SecurityGroupIdentifier) String() string {
  65860. return awsutil.Prettify(s)
  65861. }
  65862. // GoString returns the string representation
  65863. func (s SecurityGroupIdentifier) GoString() string {
  65864. return s.String()
  65865. }
  65866. // SetGroupId sets the GroupId field's value.
  65867. func (s *SecurityGroupIdentifier) SetGroupId(v string) *SecurityGroupIdentifier {
  65868. s.GroupId = &v
  65869. return s
  65870. }
  65871. // SetGroupName sets the GroupName field's value.
  65872. func (s *SecurityGroupIdentifier) SetGroupName(v string) *SecurityGroupIdentifier {
  65873. s.GroupName = &v
  65874. return s
  65875. }
  65876. // Describes a VPC with a security group that references your security group.
  65877. type SecurityGroupReference struct {
  65878. _ struct{} `type:"structure"`
  65879. // The ID of your security group.
  65880. GroupId *string `locationName:"groupId" type:"string"`
  65881. // The ID of the VPC with the referencing security group.
  65882. ReferencingVpcId *string `locationName:"referencingVpcId" type:"string"`
  65883. // The ID of the VPC peering connection.
  65884. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  65885. }
  65886. // String returns the string representation
  65887. func (s SecurityGroupReference) String() string {
  65888. return awsutil.Prettify(s)
  65889. }
  65890. // GoString returns the string representation
  65891. func (s SecurityGroupReference) GoString() string {
  65892. return s.String()
  65893. }
  65894. // SetGroupId sets the GroupId field's value.
  65895. func (s *SecurityGroupReference) SetGroupId(v string) *SecurityGroupReference {
  65896. s.GroupId = &v
  65897. return s
  65898. }
  65899. // SetReferencingVpcId sets the ReferencingVpcId field's value.
  65900. func (s *SecurityGroupReference) SetReferencingVpcId(v string) *SecurityGroupReference {
  65901. s.ReferencingVpcId = &v
  65902. return s
  65903. }
  65904. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  65905. func (s *SecurityGroupReference) SetVpcPeeringConnectionId(v string) *SecurityGroupReference {
  65906. s.VpcPeeringConnectionId = &v
  65907. return s
  65908. }
  65909. // Describes a service configuration for a VPC endpoint service.
  65910. type ServiceConfiguration struct {
  65911. _ struct{} `type:"structure"`
  65912. // Indicates whether requests from other AWS accounts to create an endpoint
  65913. // to the service must first be accepted.
  65914. AcceptanceRequired *bool `locationName:"acceptanceRequired" type:"boolean"`
  65915. // In the Availability Zones in which the service is available.
  65916. AvailabilityZones []*string `locationName:"availabilityZoneSet" locationNameList:"item" type:"list"`
  65917. // The DNS names for the service.
  65918. BaseEndpointDnsNames []*string `locationName:"baseEndpointDnsNameSet" locationNameList:"item" type:"list"`
  65919. // The Amazon Resource Names (ARNs) of the Network Load Balancers for the service.
  65920. NetworkLoadBalancerArns []*string `locationName:"networkLoadBalancerArnSet" locationNameList:"item" type:"list"`
  65921. // The private DNS name for the service.
  65922. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  65923. // The ID of the service.
  65924. ServiceId *string `locationName:"serviceId" type:"string"`
  65925. // The name of the service.
  65926. ServiceName *string `locationName:"serviceName" type:"string"`
  65927. // The service state.
  65928. ServiceState *string `locationName:"serviceState" type:"string" enum:"ServiceState"`
  65929. // The type of service.
  65930. ServiceType []*ServiceTypeDetail `locationName:"serviceType" locationNameList:"item" type:"list"`
  65931. }
  65932. // String returns the string representation
  65933. func (s ServiceConfiguration) String() string {
  65934. return awsutil.Prettify(s)
  65935. }
  65936. // GoString returns the string representation
  65937. func (s ServiceConfiguration) GoString() string {
  65938. return s.String()
  65939. }
  65940. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  65941. func (s *ServiceConfiguration) SetAcceptanceRequired(v bool) *ServiceConfiguration {
  65942. s.AcceptanceRequired = &v
  65943. return s
  65944. }
  65945. // SetAvailabilityZones sets the AvailabilityZones field's value.
  65946. func (s *ServiceConfiguration) SetAvailabilityZones(v []*string) *ServiceConfiguration {
  65947. s.AvailabilityZones = v
  65948. return s
  65949. }
  65950. // SetBaseEndpointDnsNames sets the BaseEndpointDnsNames field's value.
  65951. func (s *ServiceConfiguration) SetBaseEndpointDnsNames(v []*string) *ServiceConfiguration {
  65952. s.BaseEndpointDnsNames = v
  65953. return s
  65954. }
  65955. // SetNetworkLoadBalancerArns sets the NetworkLoadBalancerArns field's value.
  65956. func (s *ServiceConfiguration) SetNetworkLoadBalancerArns(v []*string) *ServiceConfiguration {
  65957. s.NetworkLoadBalancerArns = v
  65958. return s
  65959. }
  65960. // SetPrivateDnsName sets the PrivateDnsName field's value.
  65961. func (s *ServiceConfiguration) SetPrivateDnsName(v string) *ServiceConfiguration {
  65962. s.PrivateDnsName = &v
  65963. return s
  65964. }
  65965. // SetServiceId sets the ServiceId field's value.
  65966. func (s *ServiceConfiguration) SetServiceId(v string) *ServiceConfiguration {
  65967. s.ServiceId = &v
  65968. return s
  65969. }
  65970. // SetServiceName sets the ServiceName field's value.
  65971. func (s *ServiceConfiguration) SetServiceName(v string) *ServiceConfiguration {
  65972. s.ServiceName = &v
  65973. return s
  65974. }
  65975. // SetServiceState sets the ServiceState field's value.
  65976. func (s *ServiceConfiguration) SetServiceState(v string) *ServiceConfiguration {
  65977. s.ServiceState = &v
  65978. return s
  65979. }
  65980. // SetServiceType sets the ServiceType field's value.
  65981. func (s *ServiceConfiguration) SetServiceType(v []*ServiceTypeDetail) *ServiceConfiguration {
  65982. s.ServiceType = v
  65983. return s
  65984. }
  65985. // Describes a VPC endpoint service.
  65986. type ServiceDetail struct {
  65987. _ struct{} `type:"structure"`
  65988. // Indicates whether VPC endpoint connection requests to the service must be
  65989. // accepted by the service owner.
  65990. AcceptanceRequired *bool `locationName:"acceptanceRequired" type:"boolean"`
  65991. // The Availability Zones in which the service is available.
  65992. AvailabilityZones []*string `locationName:"availabilityZoneSet" locationNameList:"item" type:"list"`
  65993. // The DNS names for the service.
  65994. BaseEndpointDnsNames []*string `locationName:"baseEndpointDnsNameSet" locationNameList:"item" type:"list"`
  65995. // The AWS account ID of the service owner.
  65996. Owner *string `locationName:"owner" type:"string"`
  65997. // The private DNS name for the service.
  65998. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  65999. // The Amazon Resource Name (ARN) of the service.
  66000. ServiceName *string `locationName:"serviceName" type:"string"`
  66001. // The type of service.
  66002. ServiceType []*ServiceTypeDetail `locationName:"serviceType" locationNameList:"item" type:"list"`
  66003. // Indicates whether the service supports endpoint policies.
  66004. VpcEndpointPolicySupported *bool `locationName:"vpcEndpointPolicySupported" type:"boolean"`
  66005. }
  66006. // String returns the string representation
  66007. func (s ServiceDetail) String() string {
  66008. return awsutil.Prettify(s)
  66009. }
  66010. // GoString returns the string representation
  66011. func (s ServiceDetail) GoString() string {
  66012. return s.String()
  66013. }
  66014. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  66015. func (s *ServiceDetail) SetAcceptanceRequired(v bool) *ServiceDetail {
  66016. s.AcceptanceRequired = &v
  66017. return s
  66018. }
  66019. // SetAvailabilityZones sets the AvailabilityZones field's value.
  66020. func (s *ServiceDetail) SetAvailabilityZones(v []*string) *ServiceDetail {
  66021. s.AvailabilityZones = v
  66022. return s
  66023. }
  66024. // SetBaseEndpointDnsNames sets the BaseEndpointDnsNames field's value.
  66025. func (s *ServiceDetail) SetBaseEndpointDnsNames(v []*string) *ServiceDetail {
  66026. s.BaseEndpointDnsNames = v
  66027. return s
  66028. }
  66029. // SetOwner sets the Owner field's value.
  66030. func (s *ServiceDetail) SetOwner(v string) *ServiceDetail {
  66031. s.Owner = &v
  66032. return s
  66033. }
  66034. // SetPrivateDnsName sets the PrivateDnsName field's value.
  66035. func (s *ServiceDetail) SetPrivateDnsName(v string) *ServiceDetail {
  66036. s.PrivateDnsName = &v
  66037. return s
  66038. }
  66039. // SetServiceName sets the ServiceName field's value.
  66040. func (s *ServiceDetail) SetServiceName(v string) *ServiceDetail {
  66041. s.ServiceName = &v
  66042. return s
  66043. }
  66044. // SetServiceType sets the ServiceType field's value.
  66045. func (s *ServiceDetail) SetServiceType(v []*ServiceTypeDetail) *ServiceDetail {
  66046. s.ServiceType = v
  66047. return s
  66048. }
  66049. // SetVpcEndpointPolicySupported sets the VpcEndpointPolicySupported field's value.
  66050. func (s *ServiceDetail) SetVpcEndpointPolicySupported(v bool) *ServiceDetail {
  66051. s.VpcEndpointPolicySupported = &v
  66052. return s
  66053. }
  66054. // Describes the type of service for a VPC endpoint.
  66055. type ServiceTypeDetail struct {
  66056. _ struct{} `type:"structure"`
  66057. // The type of service.
  66058. ServiceType *string `locationName:"serviceType" type:"string" enum:"ServiceType"`
  66059. }
  66060. // String returns the string representation
  66061. func (s ServiceTypeDetail) String() string {
  66062. return awsutil.Prettify(s)
  66063. }
  66064. // GoString returns the string representation
  66065. func (s ServiceTypeDetail) GoString() string {
  66066. return s.String()
  66067. }
  66068. // SetServiceType sets the ServiceType field's value.
  66069. func (s *ServiceTypeDetail) SetServiceType(v string) *ServiceTypeDetail {
  66070. s.ServiceType = &v
  66071. return s
  66072. }
  66073. // Describes the time period for a Scheduled Instance to start its first schedule.
  66074. // The time period must span less than one day.
  66075. type SlotDateTimeRangeRequest struct {
  66076. _ struct{} `type:"structure"`
  66077. // The earliest date and time, in UTC, for the Scheduled Instance to start.
  66078. //
  66079. // EarliestTime is a required field
  66080. EarliestTime *time.Time `type:"timestamp" required:"true"`
  66081. // The latest date and time, in UTC, for the Scheduled Instance to start. This
  66082. // value must be later than or equal to the earliest date and at most three
  66083. // months in the future.
  66084. //
  66085. // LatestTime is a required field
  66086. LatestTime *time.Time `type:"timestamp" required:"true"`
  66087. }
  66088. // String returns the string representation
  66089. func (s SlotDateTimeRangeRequest) String() string {
  66090. return awsutil.Prettify(s)
  66091. }
  66092. // GoString returns the string representation
  66093. func (s SlotDateTimeRangeRequest) GoString() string {
  66094. return s.String()
  66095. }
  66096. // Validate inspects the fields of the type to determine if they are valid.
  66097. func (s *SlotDateTimeRangeRequest) Validate() error {
  66098. invalidParams := request.ErrInvalidParams{Context: "SlotDateTimeRangeRequest"}
  66099. if s.EarliestTime == nil {
  66100. invalidParams.Add(request.NewErrParamRequired("EarliestTime"))
  66101. }
  66102. if s.LatestTime == nil {
  66103. invalidParams.Add(request.NewErrParamRequired("LatestTime"))
  66104. }
  66105. if invalidParams.Len() > 0 {
  66106. return invalidParams
  66107. }
  66108. return nil
  66109. }
  66110. // SetEarliestTime sets the EarliestTime field's value.
  66111. func (s *SlotDateTimeRangeRequest) SetEarliestTime(v time.Time) *SlotDateTimeRangeRequest {
  66112. s.EarliestTime = &v
  66113. return s
  66114. }
  66115. // SetLatestTime sets the LatestTime field's value.
  66116. func (s *SlotDateTimeRangeRequest) SetLatestTime(v time.Time) *SlotDateTimeRangeRequest {
  66117. s.LatestTime = &v
  66118. return s
  66119. }
  66120. // Describes the time period for a Scheduled Instance to start its first schedule.
  66121. type SlotStartTimeRangeRequest struct {
  66122. _ struct{} `type:"structure"`
  66123. // The earliest date and time, in UTC, for the Scheduled Instance to start.
  66124. EarliestTime *time.Time `type:"timestamp"`
  66125. // The latest date and time, in UTC, for the Scheduled Instance to start.
  66126. LatestTime *time.Time `type:"timestamp"`
  66127. }
  66128. // String returns the string representation
  66129. func (s SlotStartTimeRangeRequest) String() string {
  66130. return awsutil.Prettify(s)
  66131. }
  66132. // GoString returns the string representation
  66133. func (s SlotStartTimeRangeRequest) GoString() string {
  66134. return s.String()
  66135. }
  66136. // SetEarliestTime sets the EarliestTime field's value.
  66137. func (s *SlotStartTimeRangeRequest) SetEarliestTime(v time.Time) *SlotStartTimeRangeRequest {
  66138. s.EarliestTime = &v
  66139. return s
  66140. }
  66141. // SetLatestTime sets the LatestTime field's value.
  66142. func (s *SlotStartTimeRangeRequest) SetLatestTime(v time.Time) *SlotStartTimeRangeRequest {
  66143. s.LatestTime = &v
  66144. return s
  66145. }
  66146. // Describes a snapshot.
  66147. type Snapshot struct {
  66148. _ struct{} `type:"structure"`
  66149. // The data encryption key identifier for the snapshot. This value is a unique
  66150. // identifier that corresponds to the data encryption key that was used to encrypt
  66151. // the original volume or snapshot copy. Because data encryption keys are inherited
  66152. // by volumes created from snapshots, and vice versa, if snapshots share the
  66153. // same data encryption key identifier, then they belong to the same volume/snapshot
  66154. // lineage. This parameter is only returned by the DescribeSnapshots API operation.
  66155. DataEncryptionKeyId *string `locationName:"dataEncryptionKeyId" type:"string"`
  66156. // The description for the snapshot.
  66157. Description *string `locationName:"description" type:"string"`
  66158. // Indicates whether the snapshot is encrypted.
  66159. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  66160. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  66161. // key (CMK) that was used to protect the volume encryption key for the parent
  66162. // volume.
  66163. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  66164. // Value from an Amazon-maintained list (amazon | aws-marketplace | microsoft)
  66165. // of snapshot owners. Not to be confused with the user-configured AWS account
  66166. // alias, which is set from the IAM console.
  66167. OwnerAlias *string `locationName:"ownerAlias" type:"string"`
  66168. // The AWS account ID of the EBS snapshot owner.
  66169. OwnerId *string `locationName:"ownerId" type:"string"`
  66170. // The progress of the snapshot, as a percentage.
  66171. Progress *string `locationName:"progress" type:"string"`
  66172. // The ID of the snapshot. Each snapshot receives a unique identifier when it
  66173. // is created.
  66174. SnapshotId *string `locationName:"snapshotId" type:"string"`
  66175. // The time stamp when the snapshot was initiated.
  66176. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  66177. // The snapshot state.
  66178. State *string `locationName:"status" type:"string" enum:"SnapshotState"`
  66179. // Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy
  66180. // operation fails (for example, if the proper AWS Key Management Service (AWS
  66181. // KMS) permissions are not obtained) this field displays error state details
  66182. // to help you diagnose why the error occurred. This parameter is only returned
  66183. // by the DescribeSnapshots API operation.
  66184. StateMessage *string `locationName:"statusMessage" type:"string"`
  66185. // Any tags assigned to the snapshot.
  66186. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  66187. // The ID of the volume that was used to create the snapshot. Snapshots created
  66188. // by the CopySnapshot action have an arbitrary volume ID that should not be
  66189. // used for any purpose.
  66190. VolumeId *string `locationName:"volumeId" type:"string"`
  66191. // The size of the volume, in GiB.
  66192. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  66193. }
  66194. // String returns the string representation
  66195. func (s Snapshot) String() string {
  66196. return awsutil.Prettify(s)
  66197. }
  66198. // GoString returns the string representation
  66199. func (s Snapshot) GoString() string {
  66200. return s.String()
  66201. }
  66202. // SetDataEncryptionKeyId sets the DataEncryptionKeyId field's value.
  66203. func (s *Snapshot) SetDataEncryptionKeyId(v string) *Snapshot {
  66204. s.DataEncryptionKeyId = &v
  66205. return s
  66206. }
  66207. // SetDescription sets the Description field's value.
  66208. func (s *Snapshot) SetDescription(v string) *Snapshot {
  66209. s.Description = &v
  66210. return s
  66211. }
  66212. // SetEncrypted sets the Encrypted field's value.
  66213. func (s *Snapshot) SetEncrypted(v bool) *Snapshot {
  66214. s.Encrypted = &v
  66215. return s
  66216. }
  66217. // SetKmsKeyId sets the KmsKeyId field's value.
  66218. func (s *Snapshot) SetKmsKeyId(v string) *Snapshot {
  66219. s.KmsKeyId = &v
  66220. return s
  66221. }
  66222. // SetOwnerAlias sets the OwnerAlias field's value.
  66223. func (s *Snapshot) SetOwnerAlias(v string) *Snapshot {
  66224. s.OwnerAlias = &v
  66225. return s
  66226. }
  66227. // SetOwnerId sets the OwnerId field's value.
  66228. func (s *Snapshot) SetOwnerId(v string) *Snapshot {
  66229. s.OwnerId = &v
  66230. return s
  66231. }
  66232. // SetProgress sets the Progress field's value.
  66233. func (s *Snapshot) SetProgress(v string) *Snapshot {
  66234. s.Progress = &v
  66235. return s
  66236. }
  66237. // SetSnapshotId sets the SnapshotId field's value.
  66238. func (s *Snapshot) SetSnapshotId(v string) *Snapshot {
  66239. s.SnapshotId = &v
  66240. return s
  66241. }
  66242. // SetStartTime sets the StartTime field's value.
  66243. func (s *Snapshot) SetStartTime(v time.Time) *Snapshot {
  66244. s.StartTime = &v
  66245. return s
  66246. }
  66247. // SetState sets the State field's value.
  66248. func (s *Snapshot) SetState(v string) *Snapshot {
  66249. s.State = &v
  66250. return s
  66251. }
  66252. // SetStateMessage sets the StateMessage field's value.
  66253. func (s *Snapshot) SetStateMessage(v string) *Snapshot {
  66254. s.StateMessage = &v
  66255. return s
  66256. }
  66257. // SetTags sets the Tags field's value.
  66258. func (s *Snapshot) SetTags(v []*Tag) *Snapshot {
  66259. s.Tags = v
  66260. return s
  66261. }
  66262. // SetVolumeId sets the VolumeId field's value.
  66263. func (s *Snapshot) SetVolumeId(v string) *Snapshot {
  66264. s.VolumeId = &v
  66265. return s
  66266. }
  66267. // SetVolumeSize sets the VolumeSize field's value.
  66268. func (s *Snapshot) SetVolumeSize(v int64) *Snapshot {
  66269. s.VolumeSize = &v
  66270. return s
  66271. }
  66272. // Describes the snapshot created from the imported disk.
  66273. type SnapshotDetail struct {
  66274. _ struct{} `type:"structure"`
  66275. // A description for the snapshot.
  66276. Description *string `locationName:"description" type:"string"`
  66277. // The block device mapping for the snapshot.
  66278. DeviceName *string `locationName:"deviceName" type:"string"`
  66279. // The size of the disk in the snapshot, in GiB.
  66280. DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`
  66281. // The format of the disk image from which the snapshot is created.
  66282. Format *string `locationName:"format" type:"string"`
  66283. // The percentage of progress for the task.
  66284. Progress *string `locationName:"progress" type:"string"`
  66285. // The snapshot ID of the disk being imported.
  66286. SnapshotId *string `locationName:"snapshotId" type:"string"`
  66287. // A brief status of the snapshot creation.
  66288. Status *string `locationName:"status" type:"string"`
  66289. // A detailed status message for the snapshot creation.
  66290. StatusMessage *string `locationName:"statusMessage" type:"string"`
  66291. // The URL used to access the disk image.
  66292. Url *string `locationName:"url" type:"string"`
  66293. // The S3 bucket for the disk image.
  66294. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
  66295. }
  66296. // String returns the string representation
  66297. func (s SnapshotDetail) String() string {
  66298. return awsutil.Prettify(s)
  66299. }
  66300. // GoString returns the string representation
  66301. func (s SnapshotDetail) GoString() string {
  66302. return s.String()
  66303. }
  66304. // SetDescription sets the Description field's value.
  66305. func (s *SnapshotDetail) SetDescription(v string) *SnapshotDetail {
  66306. s.Description = &v
  66307. return s
  66308. }
  66309. // SetDeviceName sets the DeviceName field's value.
  66310. func (s *SnapshotDetail) SetDeviceName(v string) *SnapshotDetail {
  66311. s.DeviceName = &v
  66312. return s
  66313. }
  66314. // SetDiskImageSize sets the DiskImageSize field's value.
  66315. func (s *SnapshotDetail) SetDiskImageSize(v float64) *SnapshotDetail {
  66316. s.DiskImageSize = &v
  66317. return s
  66318. }
  66319. // SetFormat sets the Format field's value.
  66320. func (s *SnapshotDetail) SetFormat(v string) *SnapshotDetail {
  66321. s.Format = &v
  66322. return s
  66323. }
  66324. // SetProgress sets the Progress field's value.
  66325. func (s *SnapshotDetail) SetProgress(v string) *SnapshotDetail {
  66326. s.Progress = &v
  66327. return s
  66328. }
  66329. // SetSnapshotId sets the SnapshotId field's value.
  66330. func (s *SnapshotDetail) SetSnapshotId(v string) *SnapshotDetail {
  66331. s.SnapshotId = &v
  66332. return s
  66333. }
  66334. // SetStatus sets the Status field's value.
  66335. func (s *SnapshotDetail) SetStatus(v string) *SnapshotDetail {
  66336. s.Status = &v
  66337. return s
  66338. }
  66339. // SetStatusMessage sets the StatusMessage field's value.
  66340. func (s *SnapshotDetail) SetStatusMessage(v string) *SnapshotDetail {
  66341. s.StatusMessage = &v
  66342. return s
  66343. }
  66344. // SetUrl sets the Url field's value.
  66345. func (s *SnapshotDetail) SetUrl(v string) *SnapshotDetail {
  66346. s.Url = &v
  66347. return s
  66348. }
  66349. // SetUserBucket sets the UserBucket field's value.
  66350. func (s *SnapshotDetail) SetUserBucket(v *UserBucketDetails) *SnapshotDetail {
  66351. s.UserBucket = v
  66352. return s
  66353. }
  66354. // The disk container object for the import snapshot request.
  66355. type SnapshotDiskContainer struct {
  66356. _ struct{} `type:"structure"`
  66357. // The description of the disk image being imported.
  66358. Description *string `type:"string"`
  66359. // The format of the disk image being imported.
  66360. //
  66361. // Valid values: VHD | VMDK
  66362. Format *string `type:"string"`
  66363. // The URL to the Amazon S3-based disk image being imported. It can either be
  66364. // a https URL (https://..) or an Amazon S3 URL (s3://..).
  66365. Url *string `type:"string"`
  66366. // The S3 bucket for the disk image.
  66367. UserBucket *UserBucket `type:"structure"`
  66368. }
  66369. // String returns the string representation
  66370. func (s SnapshotDiskContainer) String() string {
  66371. return awsutil.Prettify(s)
  66372. }
  66373. // GoString returns the string representation
  66374. func (s SnapshotDiskContainer) GoString() string {
  66375. return s.String()
  66376. }
  66377. // SetDescription sets the Description field's value.
  66378. func (s *SnapshotDiskContainer) SetDescription(v string) *SnapshotDiskContainer {
  66379. s.Description = &v
  66380. return s
  66381. }
  66382. // SetFormat sets the Format field's value.
  66383. func (s *SnapshotDiskContainer) SetFormat(v string) *SnapshotDiskContainer {
  66384. s.Format = &v
  66385. return s
  66386. }
  66387. // SetUrl sets the Url field's value.
  66388. func (s *SnapshotDiskContainer) SetUrl(v string) *SnapshotDiskContainer {
  66389. s.Url = &v
  66390. return s
  66391. }
  66392. // SetUserBucket sets the UserBucket field's value.
  66393. func (s *SnapshotDiskContainer) SetUserBucket(v *UserBucket) *SnapshotDiskContainer {
  66394. s.UserBucket = v
  66395. return s
  66396. }
  66397. // Details about the import snapshot task.
  66398. type SnapshotTaskDetail struct {
  66399. _ struct{} `type:"structure"`
  66400. // The description of the snapshot.
  66401. Description *string `locationName:"description" type:"string"`
  66402. // The size of the disk in the snapshot, in GiB.
  66403. DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`
  66404. // Indicates whether the snapshot is encrypted.
  66405. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  66406. // The format of the disk image from which the snapshot is created.
  66407. Format *string `locationName:"format" type:"string"`
  66408. // The identifier for the AWS Key Management Service (AWS KMS) customer master
  66409. // key (CMK) that was used to create the encrypted snapshot.
  66410. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  66411. // The percentage of completion for the import snapshot task.
  66412. Progress *string `locationName:"progress" type:"string"`
  66413. // The snapshot ID of the disk being imported.
  66414. SnapshotId *string `locationName:"snapshotId" type:"string"`
  66415. // A brief status for the import snapshot task.
  66416. Status *string `locationName:"status" type:"string"`
  66417. // A detailed status message for the import snapshot task.
  66418. StatusMessage *string `locationName:"statusMessage" type:"string"`
  66419. // The URL of the disk image from which the snapshot is created.
  66420. Url *string `locationName:"url" type:"string"`
  66421. // The S3 bucket for the disk image.
  66422. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
  66423. }
  66424. // String returns the string representation
  66425. func (s SnapshotTaskDetail) String() string {
  66426. return awsutil.Prettify(s)
  66427. }
  66428. // GoString returns the string representation
  66429. func (s SnapshotTaskDetail) GoString() string {
  66430. return s.String()
  66431. }
  66432. // SetDescription sets the Description field's value.
  66433. func (s *SnapshotTaskDetail) SetDescription(v string) *SnapshotTaskDetail {
  66434. s.Description = &v
  66435. return s
  66436. }
  66437. // SetDiskImageSize sets the DiskImageSize field's value.
  66438. func (s *SnapshotTaskDetail) SetDiskImageSize(v float64) *SnapshotTaskDetail {
  66439. s.DiskImageSize = &v
  66440. return s
  66441. }
  66442. // SetEncrypted sets the Encrypted field's value.
  66443. func (s *SnapshotTaskDetail) SetEncrypted(v bool) *SnapshotTaskDetail {
  66444. s.Encrypted = &v
  66445. return s
  66446. }
  66447. // SetFormat sets the Format field's value.
  66448. func (s *SnapshotTaskDetail) SetFormat(v string) *SnapshotTaskDetail {
  66449. s.Format = &v
  66450. return s
  66451. }
  66452. // SetKmsKeyId sets the KmsKeyId field's value.
  66453. func (s *SnapshotTaskDetail) SetKmsKeyId(v string) *SnapshotTaskDetail {
  66454. s.KmsKeyId = &v
  66455. return s
  66456. }
  66457. // SetProgress sets the Progress field's value.
  66458. func (s *SnapshotTaskDetail) SetProgress(v string) *SnapshotTaskDetail {
  66459. s.Progress = &v
  66460. return s
  66461. }
  66462. // SetSnapshotId sets the SnapshotId field's value.
  66463. func (s *SnapshotTaskDetail) SetSnapshotId(v string) *SnapshotTaskDetail {
  66464. s.SnapshotId = &v
  66465. return s
  66466. }
  66467. // SetStatus sets the Status field's value.
  66468. func (s *SnapshotTaskDetail) SetStatus(v string) *SnapshotTaskDetail {
  66469. s.Status = &v
  66470. return s
  66471. }
  66472. // SetStatusMessage sets the StatusMessage field's value.
  66473. func (s *SnapshotTaskDetail) SetStatusMessage(v string) *SnapshotTaskDetail {
  66474. s.StatusMessage = &v
  66475. return s
  66476. }
  66477. // SetUrl sets the Url field's value.
  66478. func (s *SnapshotTaskDetail) SetUrl(v string) *SnapshotTaskDetail {
  66479. s.Url = &v
  66480. return s
  66481. }
  66482. // SetUserBucket sets the UserBucket field's value.
  66483. func (s *SnapshotTaskDetail) SetUserBucket(v *UserBucketDetails) *SnapshotTaskDetail {
  66484. s.UserBucket = v
  66485. return s
  66486. }
  66487. // Describes the data feed for a Spot Instance.
  66488. type SpotDatafeedSubscription struct {
  66489. _ struct{} `type:"structure"`
  66490. // The Amazon S3 bucket where the Spot Instance data feed is located.
  66491. Bucket *string `locationName:"bucket" type:"string"`
  66492. // The fault codes for the Spot Instance request, if any.
  66493. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`
  66494. // The AWS account ID of the account.
  66495. OwnerId *string `locationName:"ownerId" type:"string"`
  66496. // The prefix that is prepended to data feed files.
  66497. Prefix *string `locationName:"prefix" type:"string"`
  66498. // The state of the Spot Instance data feed subscription.
  66499. State *string `locationName:"state" type:"string" enum:"DatafeedSubscriptionState"`
  66500. }
  66501. // String returns the string representation
  66502. func (s SpotDatafeedSubscription) String() string {
  66503. return awsutil.Prettify(s)
  66504. }
  66505. // GoString returns the string representation
  66506. func (s SpotDatafeedSubscription) GoString() string {
  66507. return s.String()
  66508. }
  66509. // SetBucket sets the Bucket field's value.
  66510. func (s *SpotDatafeedSubscription) SetBucket(v string) *SpotDatafeedSubscription {
  66511. s.Bucket = &v
  66512. return s
  66513. }
  66514. // SetFault sets the Fault field's value.
  66515. func (s *SpotDatafeedSubscription) SetFault(v *SpotInstanceStateFault) *SpotDatafeedSubscription {
  66516. s.Fault = v
  66517. return s
  66518. }
  66519. // SetOwnerId sets the OwnerId field's value.
  66520. func (s *SpotDatafeedSubscription) SetOwnerId(v string) *SpotDatafeedSubscription {
  66521. s.OwnerId = &v
  66522. return s
  66523. }
  66524. // SetPrefix sets the Prefix field's value.
  66525. func (s *SpotDatafeedSubscription) SetPrefix(v string) *SpotDatafeedSubscription {
  66526. s.Prefix = &v
  66527. return s
  66528. }
  66529. // SetState sets the State field's value.
  66530. func (s *SpotDatafeedSubscription) SetState(v string) *SpotDatafeedSubscription {
  66531. s.State = &v
  66532. return s
  66533. }
  66534. // Describes the launch specification for one or more Spot Instances.
  66535. type SpotFleetLaunchSpecification struct {
  66536. _ struct{} `type:"structure"`
  66537. // Deprecated.
  66538. AddressingType *string `locationName:"addressingType" type:"string"`
  66539. // One or more block device mapping entries. You can't specify both a snapshot
  66540. // ID and an encryption value. This is because only blank volumes can be encrypted
  66541. // on creation. If a snapshot is the basis for a volume, it is not blank and
  66542. // its encryption status is used for the volume encryption status.
  66543. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  66544. // Indicates whether the instances are optimized for EBS I/O. This optimization
  66545. // provides dedicated throughput to Amazon EBS and an optimized configuration
  66546. // stack to provide optimal EBS I/O performance. This optimization isn't available
  66547. // with all instance types. Additional usage charges apply when using an EBS
  66548. // Optimized instance.
  66549. //
  66550. // Default: false
  66551. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  66552. // The IAM instance profile.
  66553. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  66554. // The ID of the AMI.
  66555. ImageId *string `locationName:"imageId" type:"string"`
  66556. // The instance type.
  66557. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  66558. // The ID of the kernel.
  66559. KernelId *string `locationName:"kernelId" type:"string"`
  66560. // The name of the key pair.
  66561. KeyName *string `locationName:"keyName" type:"string"`
  66562. // Enable or disable monitoring for the instances.
  66563. Monitoring *SpotFleetMonitoring `locationName:"monitoring" type:"structure"`
  66564. // One or more network interfaces. If you specify a network interface, you must
  66565. // specify subnet IDs and security group IDs using the network interface.
  66566. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  66567. // The placement information.
  66568. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  66569. // The ID of the RAM disk.
  66570. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  66571. // One or more security groups. When requesting instances in a VPC, you must
  66572. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  66573. // you can specify the names or the IDs of the security groups.
  66574. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  66575. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  66576. // If this value is not specified, the default is the Spot price specified for
  66577. // the fleet. To determine the Spot price per unit hour, divide the Spot price
  66578. // by the value of WeightedCapacity.
  66579. SpotPrice *string `locationName:"spotPrice" type:"string"`
  66580. // The ID of the subnet in which to launch the instances. To specify multiple
  66581. // subnets, separate them using commas; for example, "subnet-a61dafcf, subnet-65ea5f08".
  66582. SubnetId *string `locationName:"subnetId" type:"string"`
  66583. // The tags to apply during creation.
  66584. TagSpecifications []*SpotFleetTagSpecification `locationName:"tagSpecificationSet" locationNameList:"item" type:"list"`
  66585. // The Base64-encoded user data to make available to the instances.
  66586. UserData *string `locationName:"userData" type:"string"`
  66587. // The number of units provided by the specified instance type. These are the
  66588. // same units that you chose to set the target capacity in terms (instances
  66589. // or a performance characteristic such as vCPUs, memory, or I/O).
  66590. //
  66591. // If the target capacity divided by this value is not a whole number, we round
  66592. // the number of instances to the next whole number. If this value is not specified,
  66593. // the default is 1.
  66594. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
  66595. }
  66596. // String returns the string representation
  66597. func (s SpotFleetLaunchSpecification) String() string {
  66598. return awsutil.Prettify(s)
  66599. }
  66600. // GoString returns the string representation
  66601. func (s SpotFleetLaunchSpecification) GoString() string {
  66602. return s.String()
  66603. }
  66604. // SetAddressingType sets the AddressingType field's value.
  66605. func (s *SpotFleetLaunchSpecification) SetAddressingType(v string) *SpotFleetLaunchSpecification {
  66606. s.AddressingType = &v
  66607. return s
  66608. }
  66609. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  66610. func (s *SpotFleetLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *SpotFleetLaunchSpecification {
  66611. s.BlockDeviceMappings = v
  66612. return s
  66613. }
  66614. // SetEbsOptimized sets the EbsOptimized field's value.
  66615. func (s *SpotFleetLaunchSpecification) SetEbsOptimized(v bool) *SpotFleetLaunchSpecification {
  66616. s.EbsOptimized = &v
  66617. return s
  66618. }
  66619. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  66620. func (s *SpotFleetLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *SpotFleetLaunchSpecification {
  66621. s.IamInstanceProfile = v
  66622. return s
  66623. }
  66624. // SetImageId sets the ImageId field's value.
  66625. func (s *SpotFleetLaunchSpecification) SetImageId(v string) *SpotFleetLaunchSpecification {
  66626. s.ImageId = &v
  66627. return s
  66628. }
  66629. // SetInstanceType sets the InstanceType field's value.
  66630. func (s *SpotFleetLaunchSpecification) SetInstanceType(v string) *SpotFleetLaunchSpecification {
  66631. s.InstanceType = &v
  66632. return s
  66633. }
  66634. // SetKernelId sets the KernelId field's value.
  66635. func (s *SpotFleetLaunchSpecification) SetKernelId(v string) *SpotFleetLaunchSpecification {
  66636. s.KernelId = &v
  66637. return s
  66638. }
  66639. // SetKeyName sets the KeyName field's value.
  66640. func (s *SpotFleetLaunchSpecification) SetKeyName(v string) *SpotFleetLaunchSpecification {
  66641. s.KeyName = &v
  66642. return s
  66643. }
  66644. // SetMonitoring sets the Monitoring field's value.
  66645. func (s *SpotFleetLaunchSpecification) SetMonitoring(v *SpotFleetMonitoring) *SpotFleetLaunchSpecification {
  66646. s.Monitoring = v
  66647. return s
  66648. }
  66649. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  66650. func (s *SpotFleetLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *SpotFleetLaunchSpecification {
  66651. s.NetworkInterfaces = v
  66652. return s
  66653. }
  66654. // SetPlacement sets the Placement field's value.
  66655. func (s *SpotFleetLaunchSpecification) SetPlacement(v *SpotPlacement) *SpotFleetLaunchSpecification {
  66656. s.Placement = v
  66657. return s
  66658. }
  66659. // SetRamdiskId sets the RamdiskId field's value.
  66660. func (s *SpotFleetLaunchSpecification) SetRamdiskId(v string) *SpotFleetLaunchSpecification {
  66661. s.RamdiskId = &v
  66662. return s
  66663. }
  66664. // SetSecurityGroups sets the SecurityGroups field's value.
  66665. func (s *SpotFleetLaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *SpotFleetLaunchSpecification {
  66666. s.SecurityGroups = v
  66667. return s
  66668. }
  66669. // SetSpotPrice sets the SpotPrice field's value.
  66670. func (s *SpotFleetLaunchSpecification) SetSpotPrice(v string) *SpotFleetLaunchSpecification {
  66671. s.SpotPrice = &v
  66672. return s
  66673. }
  66674. // SetSubnetId sets the SubnetId field's value.
  66675. func (s *SpotFleetLaunchSpecification) SetSubnetId(v string) *SpotFleetLaunchSpecification {
  66676. s.SubnetId = &v
  66677. return s
  66678. }
  66679. // SetTagSpecifications sets the TagSpecifications field's value.
  66680. func (s *SpotFleetLaunchSpecification) SetTagSpecifications(v []*SpotFleetTagSpecification) *SpotFleetLaunchSpecification {
  66681. s.TagSpecifications = v
  66682. return s
  66683. }
  66684. // SetUserData sets the UserData field's value.
  66685. func (s *SpotFleetLaunchSpecification) SetUserData(v string) *SpotFleetLaunchSpecification {
  66686. s.UserData = &v
  66687. return s
  66688. }
  66689. // SetWeightedCapacity sets the WeightedCapacity field's value.
  66690. func (s *SpotFleetLaunchSpecification) SetWeightedCapacity(v float64) *SpotFleetLaunchSpecification {
  66691. s.WeightedCapacity = &v
  66692. return s
  66693. }
  66694. // Describes whether monitoring is enabled.
  66695. type SpotFleetMonitoring struct {
  66696. _ struct{} `type:"structure"`
  66697. // Enables monitoring for the instance.
  66698. //
  66699. // Default: false
  66700. Enabled *bool `locationName:"enabled" type:"boolean"`
  66701. }
  66702. // String returns the string representation
  66703. func (s SpotFleetMonitoring) String() string {
  66704. return awsutil.Prettify(s)
  66705. }
  66706. // GoString returns the string representation
  66707. func (s SpotFleetMonitoring) GoString() string {
  66708. return s.String()
  66709. }
  66710. // SetEnabled sets the Enabled field's value.
  66711. func (s *SpotFleetMonitoring) SetEnabled(v bool) *SpotFleetMonitoring {
  66712. s.Enabled = &v
  66713. return s
  66714. }
  66715. // Describes a Spot Fleet request.
  66716. type SpotFleetRequestConfig struct {
  66717. _ struct{} `type:"structure"`
  66718. // The progress of the Spot Fleet request. If there is an error, the status
  66719. // is error. After all requests are placed, the status is pending_fulfillment.
  66720. // If the size of the fleet is equal to or greater than its target capacity,
  66721. // the status is fulfilled. If the size of the fleet is decreased, the status
  66722. // is pending_termination while Spot Instances are terminating.
  66723. ActivityStatus *string `locationName:"activityStatus" type:"string" enum:"ActivityStatus"`
  66724. // The creation date and time of the request.
  66725. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  66726. // The configuration of the Spot Fleet request.
  66727. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure"`
  66728. // The ID of the Spot Fleet request.
  66729. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string"`
  66730. // The state of the Spot Fleet request.
  66731. SpotFleetRequestState *string `locationName:"spotFleetRequestState" type:"string" enum:"BatchState"`
  66732. }
  66733. // String returns the string representation
  66734. func (s SpotFleetRequestConfig) String() string {
  66735. return awsutil.Prettify(s)
  66736. }
  66737. // GoString returns the string representation
  66738. func (s SpotFleetRequestConfig) GoString() string {
  66739. return s.String()
  66740. }
  66741. // SetActivityStatus sets the ActivityStatus field's value.
  66742. func (s *SpotFleetRequestConfig) SetActivityStatus(v string) *SpotFleetRequestConfig {
  66743. s.ActivityStatus = &v
  66744. return s
  66745. }
  66746. // SetCreateTime sets the CreateTime field's value.
  66747. func (s *SpotFleetRequestConfig) SetCreateTime(v time.Time) *SpotFleetRequestConfig {
  66748. s.CreateTime = &v
  66749. return s
  66750. }
  66751. // SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value.
  66752. func (s *SpotFleetRequestConfig) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *SpotFleetRequestConfig {
  66753. s.SpotFleetRequestConfig = v
  66754. return s
  66755. }
  66756. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  66757. func (s *SpotFleetRequestConfig) SetSpotFleetRequestId(v string) *SpotFleetRequestConfig {
  66758. s.SpotFleetRequestId = &v
  66759. return s
  66760. }
  66761. // SetSpotFleetRequestState sets the SpotFleetRequestState field's value.
  66762. func (s *SpotFleetRequestConfig) SetSpotFleetRequestState(v string) *SpotFleetRequestConfig {
  66763. s.SpotFleetRequestState = &v
  66764. return s
  66765. }
  66766. // Describes the configuration of a Spot Fleet request.
  66767. type SpotFleetRequestConfigData struct {
  66768. _ struct{} `type:"structure"`
  66769. // Indicates how to allocate the target capacity across the Spot pools specified
  66770. // by the Spot Fleet request. The default is lowestPrice.
  66771. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"AllocationStrategy"`
  66772. // A unique, case-sensitive identifier that you provide to ensure the idempotency
  66773. // of your listings. This helps to avoid duplicate listings. For more information,
  66774. // see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  66775. ClientToken *string `locationName:"clientToken" type:"string"`
  66776. // Indicates whether running Spot Instances should be terminated if the target
  66777. // capacity of the Spot Fleet request is decreased below the current size of
  66778. // the Spot Fleet.
  66779. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"`
  66780. // The number of units fulfilled by this request compared to the set target
  66781. // capacity. You cannot set this value.
  66782. FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"`
  66783. // Grants the Spot Fleet permission to terminate Spot Instances on your behalf
  66784. // when you cancel its Spot Fleet request using CancelSpotFleetRequests or when
  66785. // the Spot Fleet request expires, if you set terminateInstancesWithExpiration.
  66786. //
  66787. // IamFleetRole is a required field
  66788. IamFleetRole *string `locationName:"iamFleetRole" type:"string" required:"true"`
  66789. // The behavior when a Spot Instance is interrupted. The default is terminate.
  66790. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"`
  66791. // The number of Spot pools across which to allocate your target Spot capacity.
  66792. // Valid only when Spot AllocationStrategy is set to lowest-price. Spot Fleet
  66793. // selects the cheapest Spot pools and evenly allocates your target Spot capacity
  66794. // across the number of Spot pools that you specify.
  66795. InstancePoolsToUseCount *int64 `locationName:"instancePoolsToUseCount" type:"integer"`
  66796. // The launch specifications for the Spot Fleet request.
  66797. LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" type:"list"`
  66798. // The launch template and overrides.
  66799. LaunchTemplateConfigs []*LaunchTemplateConfig `locationName:"launchTemplateConfigs" locationNameList:"item" type:"list"`
  66800. // One or more Classic Load Balancers and target groups to attach to the Spot
  66801. // Fleet request. Spot Fleet registers the running Spot Instances with the specified
  66802. // Classic Load Balancers and target groups.
  66803. //
  66804. // With Network Load Balancers, Spot Fleet cannot register instances that have
  66805. // the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1,
  66806. // HS1, M1, M2, M3, and T1.
  66807. LoadBalancersConfig *LoadBalancersConfig `locationName:"loadBalancersConfig" type:"structure"`
  66808. // The order of the launch template overrides to use in fulfilling On-Demand
  66809. // capacity. If you specify lowestPrice, Spot Fleet uses price to determine
  66810. // the order, launching the lowest price first. If you specify prioritized,
  66811. // Spot Fleet uses the priority that you assign to each Spot Fleet launch template
  66812. // override, launching the highest priority first. If you do not specify a value,
  66813. // Spot Fleet defaults to lowestPrice.
  66814. OnDemandAllocationStrategy *string `locationName:"onDemandAllocationStrategy" type:"string" enum:"OnDemandAllocationStrategy"`
  66815. // The number of On-Demand units fulfilled by this request compared to the set
  66816. // target On-Demand capacity.
  66817. OnDemandFulfilledCapacity *float64 `locationName:"onDemandFulfilledCapacity" type:"double"`
  66818. // The number of On-Demand units to request. You can choose to set the target
  66819. // capacity in terms of instances or a performance characteristic that is important
  66820. // to your application workload, such as vCPUs, memory, or I/O. If the request
  66821. // type is maintain, you can specify a target capacity of 0 and add capacity
  66822. // later.
  66823. OnDemandTargetCapacity *int64 `locationName:"onDemandTargetCapacity" type:"integer"`
  66824. // Indicates whether Spot Fleet should replace unhealthy instances.
  66825. ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"`
  66826. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  66827. // The default is the On-Demand price.
  66828. SpotPrice *string `locationName:"spotPrice" type:"string"`
  66829. // The number of units to request. You can choose to set the target capacity
  66830. // in terms of instances or a performance characteristic that is important to
  66831. // your application workload, such as vCPUs, memory, or I/O. If the request
  66832. // type is maintain, you can specify a target capacity of 0 and add capacity
  66833. // later.
  66834. //
  66835. // TargetCapacity is a required field
  66836. TargetCapacity *int64 `locationName:"targetCapacity" type:"integer" required:"true"`
  66837. // Indicates whether running Spot Instances should be terminated when the Spot
  66838. // Fleet request expires.
  66839. TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"`
  66840. // The type of request. Indicates whether the Spot Fleet only requests the target
  66841. // capacity or also attempts to maintain it. When this value is request, the
  66842. // Spot Fleet only places the required requests. It does not attempt to replenish
  66843. // Spot Instances if capacity is diminished, nor does it submit requests in
  66844. // alternative Spot pools if capacity is not available. When this value is maintain,
  66845. // the Spot Fleet maintains the target capacity. The Spot Fleet places the required
  66846. // requests to meet capacity and automatically replenishes any interrupted instances.
  66847. // Default: maintain. instant is listed but is not used by Spot Fleet.
  66848. Type *string `locationName:"type" type:"string" enum:"FleetType"`
  66849. // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  66850. // The default is to start fulfilling the request immediately.
  66851. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`
  66852. // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  66853. // At this point, no new Spot Instance requests are placed or able to fulfill
  66854. // the request. The default end date is 7 days from the current date.
  66855. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
  66856. }
  66857. // String returns the string representation
  66858. func (s SpotFleetRequestConfigData) String() string {
  66859. return awsutil.Prettify(s)
  66860. }
  66861. // GoString returns the string representation
  66862. func (s SpotFleetRequestConfigData) GoString() string {
  66863. return s.String()
  66864. }
  66865. // Validate inspects the fields of the type to determine if they are valid.
  66866. func (s *SpotFleetRequestConfigData) Validate() error {
  66867. invalidParams := request.ErrInvalidParams{Context: "SpotFleetRequestConfigData"}
  66868. if s.IamFleetRole == nil {
  66869. invalidParams.Add(request.NewErrParamRequired("IamFleetRole"))
  66870. }
  66871. if s.TargetCapacity == nil {
  66872. invalidParams.Add(request.NewErrParamRequired("TargetCapacity"))
  66873. }
  66874. if s.LaunchTemplateConfigs != nil {
  66875. for i, v := range s.LaunchTemplateConfigs {
  66876. if v == nil {
  66877. continue
  66878. }
  66879. if err := v.Validate(); err != nil {
  66880. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LaunchTemplateConfigs", i), err.(request.ErrInvalidParams))
  66881. }
  66882. }
  66883. }
  66884. if s.LoadBalancersConfig != nil {
  66885. if err := s.LoadBalancersConfig.Validate(); err != nil {
  66886. invalidParams.AddNested("LoadBalancersConfig", err.(request.ErrInvalidParams))
  66887. }
  66888. }
  66889. if invalidParams.Len() > 0 {
  66890. return invalidParams
  66891. }
  66892. return nil
  66893. }
  66894. // SetAllocationStrategy sets the AllocationStrategy field's value.
  66895. func (s *SpotFleetRequestConfigData) SetAllocationStrategy(v string) *SpotFleetRequestConfigData {
  66896. s.AllocationStrategy = &v
  66897. return s
  66898. }
  66899. // SetClientToken sets the ClientToken field's value.
  66900. func (s *SpotFleetRequestConfigData) SetClientToken(v string) *SpotFleetRequestConfigData {
  66901. s.ClientToken = &v
  66902. return s
  66903. }
  66904. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  66905. func (s *SpotFleetRequestConfigData) SetExcessCapacityTerminationPolicy(v string) *SpotFleetRequestConfigData {
  66906. s.ExcessCapacityTerminationPolicy = &v
  66907. return s
  66908. }
  66909. // SetFulfilledCapacity sets the FulfilledCapacity field's value.
  66910. func (s *SpotFleetRequestConfigData) SetFulfilledCapacity(v float64) *SpotFleetRequestConfigData {
  66911. s.FulfilledCapacity = &v
  66912. return s
  66913. }
  66914. // SetIamFleetRole sets the IamFleetRole field's value.
  66915. func (s *SpotFleetRequestConfigData) SetIamFleetRole(v string) *SpotFleetRequestConfigData {
  66916. s.IamFleetRole = &v
  66917. return s
  66918. }
  66919. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  66920. func (s *SpotFleetRequestConfigData) SetInstanceInterruptionBehavior(v string) *SpotFleetRequestConfigData {
  66921. s.InstanceInterruptionBehavior = &v
  66922. return s
  66923. }
  66924. // SetInstancePoolsToUseCount sets the InstancePoolsToUseCount field's value.
  66925. func (s *SpotFleetRequestConfigData) SetInstancePoolsToUseCount(v int64) *SpotFleetRequestConfigData {
  66926. s.InstancePoolsToUseCount = &v
  66927. return s
  66928. }
  66929. // SetLaunchSpecifications sets the LaunchSpecifications field's value.
  66930. func (s *SpotFleetRequestConfigData) SetLaunchSpecifications(v []*SpotFleetLaunchSpecification) *SpotFleetRequestConfigData {
  66931. s.LaunchSpecifications = v
  66932. return s
  66933. }
  66934. // SetLaunchTemplateConfigs sets the LaunchTemplateConfigs field's value.
  66935. func (s *SpotFleetRequestConfigData) SetLaunchTemplateConfigs(v []*LaunchTemplateConfig) *SpotFleetRequestConfigData {
  66936. s.LaunchTemplateConfigs = v
  66937. return s
  66938. }
  66939. // SetLoadBalancersConfig sets the LoadBalancersConfig field's value.
  66940. func (s *SpotFleetRequestConfigData) SetLoadBalancersConfig(v *LoadBalancersConfig) *SpotFleetRequestConfigData {
  66941. s.LoadBalancersConfig = v
  66942. return s
  66943. }
  66944. // SetOnDemandAllocationStrategy sets the OnDemandAllocationStrategy field's value.
  66945. func (s *SpotFleetRequestConfigData) SetOnDemandAllocationStrategy(v string) *SpotFleetRequestConfigData {
  66946. s.OnDemandAllocationStrategy = &v
  66947. return s
  66948. }
  66949. // SetOnDemandFulfilledCapacity sets the OnDemandFulfilledCapacity field's value.
  66950. func (s *SpotFleetRequestConfigData) SetOnDemandFulfilledCapacity(v float64) *SpotFleetRequestConfigData {
  66951. s.OnDemandFulfilledCapacity = &v
  66952. return s
  66953. }
  66954. // SetOnDemandTargetCapacity sets the OnDemandTargetCapacity field's value.
  66955. func (s *SpotFleetRequestConfigData) SetOnDemandTargetCapacity(v int64) *SpotFleetRequestConfigData {
  66956. s.OnDemandTargetCapacity = &v
  66957. return s
  66958. }
  66959. // SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value.
  66960. func (s *SpotFleetRequestConfigData) SetReplaceUnhealthyInstances(v bool) *SpotFleetRequestConfigData {
  66961. s.ReplaceUnhealthyInstances = &v
  66962. return s
  66963. }
  66964. // SetSpotPrice sets the SpotPrice field's value.
  66965. func (s *SpotFleetRequestConfigData) SetSpotPrice(v string) *SpotFleetRequestConfigData {
  66966. s.SpotPrice = &v
  66967. return s
  66968. }
  66969. // SetTargetCapacity sets the TargetCapacity field's value.
  66970. func (s *SpotFleetRequestConfigData) SetTargetCapacity(v int64) *SpotFleetRequestConfigData {
  66971. s.TargetCapacity = &v
  66972. return s
  66973. }
  66974. // SetTerminateInstancesWithExpiration sets the TerminateInstancesWithExpiration field's value.
  66975. func (s *SpotFleetRequestConfigData) SetTerminateInstancesWithExpiration(v bool) *SpotFleetRequestConfigData {
  66976. s.TerminateInstancesWithExpiration = &v
  66977. return s
  66978. }
  66979. // SetType sets the Type field's value.
  66980. func (s *SpotFleetRequestConfigData) SetType(v string) *SpotFleetRequestConfigData {
  66981. s.Type = &v
  66982. return s
  66983. }
  66984. // SetValidFrom sets the ValidFrom field's value.
  66985. func (s *SpotFleetRequestConfigData) SetValidFrom(v time.Time) *SpotFleetRequestConfigData {
  66986. s.ValidFrom = &v
  66987. return s
  66988. }
  66989. // SetValidUntil sets the ValidUntil field's value.
  66990. func (s *SpotFleetRequestConfigData) SetValidUntil(v time.Time) *SpotFleetRequestConfigData {
  66991. s.ValidUntil = &v
  66992. return s
  66993. }
  66994. // The tags for a Spot Fleet resource.
  66995. type SpotFleetTagSpecification struct {
  66996. _ struct{} `type:"structure"`
  66997. // The type of resource. Currently, the only resource type that is supported
  66998. // is instance.
  66999. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  67000. // The tags.
  67001. Tags []*Tag `locationName:"tag" locationNameList:"item" type:"list"`
  67002. }
  67003. // String returns the string representation
  67004. func (s SpotFleetTagSpecification) String() string {
  67005. return awsutil.Prettify(s)
  67006. }
  67007. // GoString returns the string representation
  67008. func (s SpotFleetTagSpecification) GoString() string {
  67009. return s.String()
  67010. }
  67011. // SetResourceType sets the ResourceType field's value.
  67012. func (s *SpotFleetTagSpecification) SetResourceType(v string) *SpotFleetTagSpecification {
  67013. s.ResourceType = &v
  67014. return s
  67015. }
  67016. // SetTags sets the Tags field's value.
  67017. func (s *SpotFleetTagSpecification) SetTags(v []*Tag) *SpotFleetTagSpecification {
  67018. s.Tags = v
  67019. return s
  67020. }
  67021. // Describes a Spot Instance request.
  67022. type SpotInstanceRequest struct {
  67023. _ struct{} `type:"structure"`
  67024. // If you specified a duration and your Spot Instance request was fulfilled,
  67025. // this is the fixed hourly price in effect for the Spot Instance while it runs.
  67026. ActualBlockHourlyPrice *string `locationName:"actualBlockHourlyPrice" type:"string"`
  67027. // The Availability Zone group. If you specify the same Availability Zone group
  67028. // for all Spot Instance requests, all Spot Instances are launched in the same
  67029. // Availability Zone.
  67030. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`
  67031. // The duration for the Spot Instance, in minutes.
  67032. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  67033. // The date and time when the Spot Instance request was created, in UTC format
  67034. // (for example, YYYY-MM-DDTHH:MM:SSZ).
  67035. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  67036. // The fault codes for the Spot Instance request, if any.
  67037. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`
  67038. // The instance ID, if an instance has been launched to fulfill the Spot Instance
  67039. // request.
  67040. InstanceId *string `locationName:"instanceId" type:"string"`
  67041. // The behavior when a Spot Instance is interrupted.
  67042. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"`
  67043. // The instance launch group. Launch groups are Spot Instances that launch together
  67044. // and terminate together.
  67045. LaunchGroup *string `locationName:"launchGroup" type:"string"`
  67046. // Additional information for launching instances.
  67047. LaunchSpecification *LaunchSpecification `locationName:"launchSpecification" type:"structure"`
  67048. // The Availability Zone in which the request is launched.
  67049. LaunchedAvailabilityZone *string `locationName:"launchedAvailabilityZone" type:"string"`
  67050. // The product description associated with the Spot Instance.
  67051. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  67052. // The ID of the Spot Instance request.
  67053. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  67054. // The maximum price per hour that you are willing to pay for a Spot Instance.
  67055. SpotPrice *string `locationName:"spotPrice" type:"string"`
  67056. // The state of the Spot Instance request. Spot status information helps track
  67057. // your Spot Instance requests. For more information, see Spot Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
  67058. // in the Amazon EC2 User Guide for Linux Instances.
  67059. State *string `locationName:"state" type:"string" enum:"SpotInstanceState"`
  67060. // The status code and status message describing the Spot Instance request.
  67061. Status *SpotInstanceStatus `locationName:"status" type:"structure"`
  67062. // Any tags assigned to the resource.
  67063. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  67064. // The Spot Instance request type.
  67065. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"`
  67066. // The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  67067. // The request becomes active at this date and time.
  67068. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"`
  67069. // The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  67070. // If this is a one-time request, it remains active until all instances launch,
  67071. // the request is canceled, or this date is reached. If the request is persistent,
  67072. // it remains active until it is canceled or this date is reached. The default
  67073. // end date is 7 days from the current date.
  67074. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"`
  67075. }
  67076. // String returns the string representation
  67077. func (s SpotInstanceRequest) String() string {
  67078. return awsutil.Prettify(s)
  67079. }
  67080. // GoString returns the string representation
  67081. func (s SpotInstanceRequest) GoString() string {
  67082. return s.String()
  67083. }
  67084. // SetActualBlockHourlyPrice sets the ActualBlockHourlyPrice field's value.
  67085. func (s *SpotInstanceRequest) SetActualBlockHourlyPrice(v string) *SpotInstanceRequest {
  67086. s.ActualBlockHourlyPrice = &v
  67087. return s
  67088. }
  67089. // SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value.
  67090. func (s *SpotInstanceRequest) SetAvailabilityZoneGroup(v string) *SpotInstanceRequest {
  67091. s.AvailabilityZoneGroup = &v
  67092. return s
  67093. }
  67094. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  67095. func (s *SpotInstanceRequest) SetBlockDurationMinutes(v int64) *SpotInstanceRequest {
  67096. s.BlockDurationMinutes = &v
  67097. return s
  67098. }
  67099. // SetCreateTime sets the CreateTime field's value.
  67100. func (s *SpotInstanceRequest) SetCreateTime(v time.Time) *SpotInstanceRequest {
  67101. s.CreateTime = &v
  67102. return s
  67103. }
  67104. // SetFault sets the Fault field's value.
  67105. func (s *SpotInstanceRequest) SetFault(v *SpotInstanceStateFault) *SpotInstanceRequest {
  67106. s.Fault = v
  67107. return s
  67108. }
  67109. // SetInstanceId sets the InstanceId field's value.
  67110. func (s *SpotInstanceRequest) SetInstanceId(v string) *SpotInstanceRequest {
  67111. s.InstanceId = &v
  67112. return s
  67113. }
  67114. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  67115. func (s *SpotInstanceRequest) SetInstanceInterruptionBehavior(v string) *SpotInstanceRequest {
  67116. s.InstanceInterruptionBehavior = &v
  67117. return s
  67118. }
  67119. // SetLaunchGroup sets the LaunchGroup field's value.
  67120. func (s *SpotInstanceRequest) SetLaunchGroup(v string) *SpotInstanceRequest {
  67121. s.LaunchGroup = &v
  67122. return s
  67123. }
  67124. // SetLaunchSpecification sets the LaunchSpecification field's value.
  67125. func (s *SpotInstanceRequest) SetLaunchSpecification(v *LaunchSpecification) *SpotInstanceRequest {
  67126. s.LaunchSpecification = v
  67127. return s
  67128. }
  67129. // SetLaunchedAvailabilityZone sets the LaunchedAvailabilityZone field's value.
  67130. func (s *SpotInstanceRequest) SetLaunchedAvailabilityZone(v string) *SpotInstanceRequest {
  67131. s.LaunchedAvailabilityZone = &v
  67132. return s
  67133. }
  67134. // SetProductDescription sets the ProductDescription field's value.
  67135. func (s *SpotInstanceRequest) SetProductDescription(v string) *SpotInstanceRequest {
  67136. s.ProductDescription = &v
  67137. return s
  67138. }
  67139. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  67140. func (s *SpotInstanceRequest) SetSpotInstanceRequestId(v string) *SpotInstanceRequest {
  67141. s.SpotInstanceRequestId = &v
  67142. return s
  67143. }
  67144. // SetSpotPrice sets the SpotPrice field's value.
  67145. func (s *SpotInstanceRequest) SetSpotPrice(v string) *SpotInstanceRequest {
  67146. s.SpotPrice = &v
  67147. return s
  67148. }
  67149. // SetState sets the State field's value.
  67150. func (s *SpotInstanceRequest) SetState(v string) *SpotInstanceRequest {
  67151. s.State = &v
  67152. return s
  67153. }
  67154. // SetStatus sets the Status field's value.
  67155. func (s *SpotInstanceRequest) SetStatus(v *SpotInstanceStatus) *SpotInstanceRequest {
  67156. s.Status = v
  67157. return s
  67158. }
  67159. // SetTags sets the Tags field's value.
  67160. func (s *SpotInstanceRequest) SetTags(v []*Tag) *SpotInstanceRequest {
  67161. s.Tags = v
  67162. return s
  67163. }
  67164. // SetType sets the Type field's value.
  67165. func (s *SpotInstanceRequest) SetType(v string) *SpotInstanceRequest {
  67166. s.Type = &v
  67167. return s
  67168. }
  67169. // SetValidFrom sets the ValidFrom field's value.
  67170. func (s *SpotInstanceRequest) SetValidFrom(v time.Time) *SpotInstanceRequest {
  67171. s.ValidFrom = &v
  67172. return s
  67173. }
  67174. // SetValidUntil sets the ValidUntil field's value.
  67175. func (s *SpotInstanceRequest) SetValidUntil(v time.Time) *SpotInstanceRequest {
  67176. s.ValidUntil = &v
  67177. return s
  67178. }
  67179. // Describes a Spot Instance state change.
  67180. type SpotInstanceStateFault struct {
  67181. _ struct{} `type:"structure"`
  67182. // The reason code for the Spot Instance state change.
  67183. Code *string `locationName:"code" type:"string"`
  67184. // The message for the Spot Instance state change.
  67185. Message *string `locationName:"message" type:"string"`
  67186. }
  67187. // String returns the string representation
  67188. func (s SpotInstanceStateFault) String() string {
  67189. return awsutil.Prettify(s)
  67190. }
  67191. // GoString returns the string representation
  67192. func (s SpotInstanceStateFault) GoString() string {
  67193. return s.String()
  67194. }
  67195. // SetCode sets the Code field's value.
  67196. func (s *SpotInstanceStateFault) SetCode(v string) *SpotInstanceStateFault {
  67197. s.Code = &v
  67198. return s
  67199. }
  67200. // SetMessage sets the Message field's value.
  67201. func (s *SpotInstanceStateFault) SetMessage(v string) *SpotInstanceStateFault {
  67202. s.Message = &v
  67203. return s
  67204. }
  67205. // Describes the status of a Spot Instance request.
  67206. type SpotInstanceStatus struct {
  67207. _ struct{} `type:"structure"`
  67208. // 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)
  67209. // in the Amazon EC2 User Guide for Linux Instances.
  67210. Code *string `locationName:"code" type:"string"`
  67211. // The description for the status code.
  67212. Message *string `locationName:"message" type:"string"`
  67213. // The date and time of the most recent status update, in UTC format (for example,
  67214. // YYYY-MM-DDTHH:MM:SSZ).
  67215. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp"`
  67216. }
  67217. // String returns the string representation
  67218. func (s SpotInstanceStatus) String() string {
  67219. return awsutil.Prettify(s)
  67220. }
  67221. // GoString returns the string representation
  67222. func (s SpotInstanceStatus) GoString() string {
  67223. return s.String()
  67224. }
  67225. // SetCode sets the Code field's value.
  67226. func (s *SpotInstanceStatus) SetCode(v string) *SpotInstanceStatus {
  67227. s.Code = &v
  67228. return s
  67229. }
  67230. // SetMessage sets the Message field's value.
  67231. func (s *SpotInstanceStatus) SetMessage(v string) *SpotInstanceStatus {
  67232. s.Message = &v
  67233. return s
  67234. }
  67235. // SetUpdateTime sets the UpdateTime field's value.
  67236. func (s *SpotInstanceStatus) SetUpdateTime(v time.Time) *SpotInstanceStatus {
  67237. s.UpdateTime = &v
  67238. return s
  67239. }
  67240. // The options for Spot Instances.
  67241. type SpotMarketOptions struct {
  67242. _ struct{} `type:"structure"`
  67243. // The required duration for the Spot Instances (also known as Spot blocks),
  67244. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  67245. // or 360).
  67246. BlockDurationMinutes *int64 `type:"integer"`
  67247. // The behavior when a Spot Instance is interrupted. The default is terminate.
  67248. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"`
  67249. // The maximum hourly price you're willing to pay for the Spot Instances. The
  67250. // default is the On-Demand price.
  67251. MaxPrice *string `type:"string"`
  67252. // The Spot Instance request type. For RunInstances, persistent Spot Instance
  67253. // requests are only supported when InstanceInterruptionBehavior is set to either
  67254. // hibernate or stop.
  67255. SpotInstanceType *string `type:"string" enum:"SpotInstanceType"`
  67256. // The end date of the request. For a one-time request, the request remains
  67257. // active until all instances launch, the request is canceled, or this date
  67258. // is reached. If the request is persistent, it remains active until it is canceled
  67259. // or this date and time is reached. The default end date is 7 days from the
  67260. // current date.
  67261. ValidUntil *time.Time `type:"timestamp"`
  67262. }
  67263. // String returns the string representation
  67264. func (s SpotMarketOptions) String() string {
  67265. return awsutil.Prettify(s)
  67266. }
  67267. // GoString returns the string representation
  67268. func (s SpotMarketOptions) GoString() string {
  67269. return s.String()
  67270. }
  67271. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  67272. func (s *SpotMarketOptions) SetBlockDurationMinutes(v int64) *SpotMarketOptions {
  67273. s.BlockDurationMinutes = &v
  67274. return s
  67275. }
  67276. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  67277. func (s *SpotMarketOptions) SetInstanceInterruptionBehavior(v string) *SpotMarketOptions {
  67278. s.InstanceInterruptionBehavior = &v
  67279. return s
  67280. }
  67281. // SetMaxPrice sets the MaxPrice field's value.
  67282. func (s *SpotMarketOptions) SetMaxPrice(v string) *SpotMarketOptions {
  67283. s.MaxPrice = &v
  67284. return s
  67285. }
  67286. // SetSpotInstanceType sets the SpotInstanceType field's value.
  67287. func (s *SpotMarketOptions) SetSpotInstanceType(v string) *SpotMarketOptions {
  67288. s.SpotInstanceType = &v
  67289. return s
  67290. }
  67291. // SetValidUntil sets the ValidUntil field's value.
  67292. func (s *SpotMarketOptions) SetValidUntil(v time.Time) *SpotMarketOptions {
  67293. s.ValidUntil = &v
  67294. return s
  67295. }
  67296. // Describes the configuration of Spot Instances in an EC2 Fleet.
  67297. type SpotOptions struct {
  67298. _ struct{} `type:"structure"`
  67299. // Indicates how to allocate the target capacity across the Spot pools specified
  67300. // by the Spot Fleet request. The default is lowest-price.
  67301. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"SpotAllocationStrategy"`
  67302. // The behavior when a Spot Instance is interrupted. The default is terminate.
  67303. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"SpotInstanceInterruptionBehavior"`
  67304. // The number of Spot pools across which to allocate your target Spot capacity.
  67305. // Valid only when AllocationStrategy is set to lowestPrice. EC2 Fleet selects
  67306. // the cheapest Spot pools and evenly allocates your target Spot capacity across
  67307. // the number of Spot pools that you specify.
  67308. InstancePoolsToUseCount *int64 `locationName:"instancePoolsToUseCount" type:"integer"`
  67309. // The minimum target capacity for Spot Instances in the fleet. If the minimum
  67310. // target capacity is not reached, the fleet launches no instances.
  67311. MinTargetCapacity *int64 `locationName:"minTargetCapacity" type:"integer"`
  67312. // Indicates that the fleet launches all Spot Instances into a single Availability
  67313. // Zone.
  67314. SingleAvailabilityZone *bool `locationName:"singleAvailabilityZone" type:"boolean"`
  67315. // Indicates that the fleet uses a single instance type to launch all Spot Instances
  67316. // in the fleet.
  67317. SingleInstanceType *bool `locationName:"singleInstanceType" type:"boolean"`
  67318. }
  67319. // String returns the string representation
  67320. func (s SpotOptions) String() string {
  67321. return awsutil.Prettify(s)
  67322. }
  67323. // GoString returns the string representation
  67324. func (s SpotOptions) GoString() string {
  67325. return s.String()
  67326. }
  67327. // SetAllocationStrategy sets the AllocationStrategy field's value.
  67328. func (s *SpotOptions) SetAllocationStrategy(v string) *SpotOptions {
  67329. s.AllocationStrategy = &v
  67330. return s
  67331. }
  67332. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  67333. func (s *SpotOptions) SetInstanceInterruptionBehavior(v string) *SpotOptions {
  67334. s.InstanceInterruptionBehavior = &v
  67335. return s
  67336. }
  67337. // SetInstancePoolsToUseCount sets the InstancePoolsToUseCount field's value.
  67338. func (s *SpotOptions) SetInstancePoolsToUseCount(v int64) *SpotOptions {
  67339. s.InstancePoolsToUseCount = &v
  67340. return s
  67341. }
  67342. // SetMinTargetCapacity sets the MinTargetCapacity field's value.
  67343. func (s *SpotOptions) SetMinTargetCapacity(v int64) *SpotOptions {
  67344. s.MinTargetCapacity = &v
  67345. return s
  67346. }
  67347. // SetSingleAvailabilityZone sets the SingleAvailabilityZone field's value.
  67348. func (s *SpotOptions) SetSingleAvailabilityZone(v bool) *SpotOptions {
  67349. s.SingleAvailabilityZone = &v
  67350. return s
  67351. }
  67352. // SetSingleInstanceType sets the SingleInstanceType field's value.
  67353. func (s *SpotOptions) SetSingleInstanceType(v bool) *SpotOptions {
  67354. s.SingleInstanceType = &v
  67355. return s
  67356. }
  67357. // Describes the configuration of Spot Instances in an EC2 Fleet request.
  67358. type SpotOptionsRequest struct {
  67359. _ struct{} `type:"structure"`
  67360. // Indicates how to allocate the target capacity across the Spot pools specified
  67361. // by the Spot Fleet request. The default is lowestPrice.
  67362. AllocationStrategy *string `type:"string" enum:"SpotAllocationStrategy"`
  67363. // The behavior when a Spot Instance is interrupted. The default is terminate.
  67364. InstanceInterruptionBehavior *string `type:"string" enum:"SpotInstanceInterruptionBehavior"`
  67365. // The number of Spot pools across which to allocate your target Spot capacity.
  67366. // Valid only when Spot AllocationStrategy is set to lowest-price. EC2 Fleet
  67367. // selects the cheapest Spot pools and evenly allocates your target Spot capacity
  67368. // across the number of Spot pools that you specify.
  67369. InstancePoolsToUseCount *int64 `type:"integer"`
  67370. // The minimum target capacity for Spot Instances in the fleet. If the minimum
  67371. // target capacity is not reached, the fleet launches no instances.
  67372. MinTargetCapacity *int64 `type:"integer"`
  67373. // Indicates that the fleet launches all Spot Instances into a single Availability
  67374. // Zone.
  67375. SingleAvailabilityZone *bool `type:"boolean"`
  67376. // Indicates that the fleet uses a single instance type to launch all Spot Instances
  67377. // in the fleet.
  67378. SingleInstanceType *bool `type:"boolean"`
  67379. }
  67380. // String returns the string representation
  67381. func (s SpotOptionsRequest) String() string {
  67382. return awsutil.Prettify(s)
  67383. }
  67384. // GoString returns the string representation
  67385. func (s SpotOptionsRequest) GoString() string {
  67386. return s.String()
  67387. }
  67388. // SetAllocationStrategy sets the AllocationStrategy field's value.
  67389. func (s *SpotOptionsRequest) SetAllocationStrategy(v string) *SpotOptionsRequest {
  67390. s.AllocationStrategy = &v
  67391. return s
  67392. }
  67393. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  67394. func (s *SpotOptionsRequest) SetInstanceInterruptionBehavior(v string) *SpotOptionsRequest {
  67395. s.InstanceInterruptionBehavior = &v
  67396. return s
  67397. }
  67398. // SetInstancePoolsToUseCount sets the InstancePoolsToUseCount field's value.
  67399. func (s *SpotOptionsRequest) SetInstancePoolsToUseCount(v int64) *SpotOptionsRequest {
  67400. s.InstancePoolsToUseCount = &v
  67401. return s
  67402. }
  67403. // SetMinTargetCapacity sets the MinTargetCapacity field's value.
  67404. func (s *SpotOptionsRequest) SetMinTargetCapacity(v int64) *SpotOptionsRequest {
  67405. s.MinTargetCapacity = &v
  67406. return s
  67407. }
  67408. // SetSingleAvailabilityZone sets the SingleAvailabilityZone field's value.
  67409. func (s *SpotOptionsRequest) SetSingleAvailabilityZone(v bool) *SpotOptionsRequest {
  67410. s.SingleAvailabilityZone = &v
  67411. return s
  67412. }
  67413. // SetSingleInstanceType sets the SingleInstanceType field's value.
  67414. func (s *SpotOptionsRequest) SetSingleInstanceType(v bool) *SpotOptionsRequest {
  67415. s.SingleInstanceType = &v
  67416. return s
  67417. }
  67418. // Describes Spot Instance placement.
  67419. type SpotPlacement struct {
  67420. _ struct{} `type:"structure"`
  67421. // The Availability Zone.
  67422. //
  67423. // [Spot Fleet only] To specify multiple Availability Zones, separate them using
  67424. // commas; for example, "us-west-2a, us-west-2b".
  67425. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  67426. // The name of the placement group.
  67427. GroupName *string `locationName:"groupName" type:"string"`
  67428. // The tenancy of the instance (if the instance is running in a VPC). An instance
  67429. // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
  67430. // is not supported for Spot Instances.
  67431. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  67432. }
  67433. // String returns the string representation
  67434. func (s SpotPlacement) String() string {
  67435. return awsutil.Prettify(s)
  67436. }
  67437. // GoString returns the string representation
  67438. func (s SpotPlacement) GoString() string {
  67439. return s.String()
  67440. }
  67441. // SetAvailabilityZone sets the AvailabilityZone field's value.
  67442. func (s *SpotPlacement) SetAvailabilityZone(v string) *SpotPlacement {
  67443. s.AvailabilityZone = &v
  67444. return s
  67445. }
  67446. // SetGroupName sets the GroupName field's value.
  67447. func (s *SpotPlacement) SetGroupName(v string) *SpotPlacement {
  67448. s.GroupName = &v
  67449. return s
  67450. }
  67451. // SetTenancy sets the Tenancy field's value.
  67452. func (s *SpotPlacement) SetTenancy(v string) *SpotPlacement {
  67453. s.Tenancy = &v
  67454. return s
  67455. }
  67456. // Describes the maximum price per hour that you are willing to pay for a Spot
  67457. // Instance.
  67458. type SpotPrice struct {
  67459. _ struct{} `type:"structure"`
  67460. // The Availability Zone.
  67461. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  67462. // The instance type.
  67463. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  67464. // A general description of the AMI.
  67465. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  67466. // The maximum price per hour that you are willing to pay for a Spot Instance.
  67467. SpotPrice *string `locationName:"spotPrice" type:"string"`
  67468. // The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  67469. Timestamp *time.Time `locationName:"timestamp" type:"timestamp"`
  67470. }
  67471. // String returns the string representation
  67472. func (s SpotPrice) String() string {
  67473. return awsutil.Prettify(s)
  67474. }
  67475. // GoString returns the string representation
  67476. func (s SpotPrice) GoString() string {
  67477. return s.String()
  67478. }
  67479. // SetAvailabilityZone sets the AvailabilityZone field's value.
  67480. func (s *SpotPrice) SetAvailabilityZone(v string) *SpotPrice {
  67481. s.AvailabilityZone = &v
  67482. return s
  67483. }
  67484. // SetInstanceType sets the InstanceType field's value.
  67485. func (s *SpotPrice) SetInstanceType(v string) *SpotPrice {
  67486. s.InstanceType = &v
  67487. return s
  67488. }
  67489. // SetProductDescription sets the ProductDescription field's value.
  67490. func (s *SpotPrice) SetProductDescription(v string) *SpotPrice {
  67491. s.ProductDescription = &v
  67492. return s
  67493. }
  67494. // SetSpotPrice sets the SpotPrice field's value.
  67495. func (s *SpotPrice) SetSpotPrice(v string) *SpotPrice {
  67496. s.SpotPrice = &v
  67497. return s
  67498. }
  67499. // SetTimestamp sets the Timestamp field's value.
  67500. func (s *SpotPrice) SetTimestamp(v time.Time) *SpotPrice {
  67501. s.Timestamp = &v
  67502. return s
  67503. }
  67504. // Describes a stale rule in a security group.
  67505. type StaleIpPermission struct {
  67506. _ struct{} `type:"structure"`
  67507. // The start of the port range for the TCP and UDP protocols, or an ICMP type
  67508. // number. A value of -1 indicates all ICMP types.
  67509. FromPort *int64 `locationName:"fromPort" type:"integer"`
  67510. // The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers)
  67511. // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml).
  67512. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  67513. // One or more IP ranges. Not applicable for stale security group rules.
  67514. IpRanges []*string `locationName:"ipRanges" locationNameList:"item" type:"list"`
  67515. // One or more prefix list IDs for an AWS service. Not applicable for stale
  67516. // security group rules.
  67517. PrefixListIds []*string `locationName:"prefixListIds" locationNameList:"item" type:"list"`
  67518. // The end of the port range for the TCP and UDP protocols, or an ICMP type
  67519. // number. A value of -1 indicates all ICMP types.
  67520. ToPort *int64 `locationName:"toPort" type:"integer"`
  67521. // One or more security group pairs. Returns the ID of the referenced security
  67522. // group and VPC, and the ID and status of the VPC peering connection.
  67523. UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
  67524. }
  67525. // String returns the string representation
  67526. func (s StaleIpPermission) String() string {
  67527. return awsutil.Prettify(s)
  67528. }
  67529. // GoString returns the string representation
  67530. func (s StaleIpPermission) GoString() string {
  67531. return s.String()
  67532. }
  67533. // SetFromPort sets the FromPort field's value.
  67534. func (s *StaleIpPermission) SetFromPort(v int64) *StaleIpPermission {
  67535. s.FromPort = &v
  67536. return s
  67537. }
  67538. // SetIpProtocol sets the IpProtocol field's value.
  67539. func (s *StaleIpPermission) SetIpProtocol(v string) *StaleIpPermission {
  67540. s.IpProtocol = &v
  67541. return s
  67542. }
  67543. // SetIpRanges sets the IpRanges field's value.
  67544. func (s *StaleIpPermission) SetIpRanges(v []*string) *StaleIpPermission {
  67545. s.IpRanges = v
  67546. return s
  67547. }
  67548. // SetPrefixListIds sets the PrefixListIds field's value.
  67549. func (s *StaleIpPermission) SetPrefixListIds(v []*string) *StaleIpPermission {
  67550. s.PrefixListIds = v
  67551. return s
  67552. }
  67553. // SetToPort sets the ToPort field's value.
  67554. func (s *StaleIpPermission) SetToPort(v int64) *StaleIpPermission {
  67555. s.ToPort = &v
  67556. return s
  67557. }
  67558. // SetUserIdGroupPairs sets the UserIdGroupPairs field's value.
  67559. func (s *StaleIpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *StaleIpPermission {
  67560. s.UserIdGroupPairs = v
  67561. return s
  67562. }
  67563. // Describes a stale security group (a security group that contains stale rules).
  67564. type StaleSecurityGroup struct {
  67565. _ struct{} `type:"structure"`
  67566. // The description of the security group.
  67567. Description *string `locationName:"description" type:"string"`
  67568. // The ID of the security group.
  67569. GroupId *string `locationName:"groupId" type:"string"`
  67570. // The name of the security group.
  67571. GroupName *string `locationName:"groupName" type:"string"`
  67572. // Information about the stale inbound rules in the security group.
  67573. StaleIpPermissions []*StaleIpPermission `locationName:"staleIpPermissions" locationNameList:"item" type:"list"`
  67574. // Information about the stale outbound rules in the security group.
  67575. StaleIpPermissionsEgress []*StaleIpPermission `locationName:"staleIpPermissionsEgress" locationNameList:"item" type:"list"`
  67576. // The ID of the VPC for the security group.
  67577. VpcId *string `locationName:"vpcId" type:"string"`
  67578. }
  67579. // String returns the string representation
  67580. func (s StaleSecurityGroup) String() string {
  67581. return awsutil.Prettify(s)
  67582. }
  67583. // GoString returns the string representation
  67584. func (s StaleSecurityGroup) GoString() string {
  67585. return s.String()
  67586. }
  67587. // SetDescription sets the Description field's value.
  67588. func (s *StaleSecurityGroup) SetDescription(v string) *StaleSecurityGroup {
  67589. s.Description = &v
  67590. return s
  67591. }
  67592. // SetGroupId sets the GroupId field's value.
  67593. func (s *StaleSecurityGroup) SetGroupId(v string) *StaleSecurityGroup {
  67594. s.GroupId = &v
  67595. return s
  67596. }
  67597. // SetGroupName sets the GroupName field's value.
  67598. func (s *StaleSecurityGroup) SetGroupName(v string) *StaleSecurityGroup {
  67599. s.GroupName = &v
  67600. return s
  67601. }
  67602. // SetStaleIpPermissions sets the StaleIpPermissions field's value.
  67603. func (s *StaleSecurityGroup) SetStaleIpPermissions(v []*StaleIpPermission) *StaleSecurityGroup {
  67604. s.StaleIpPermissions = v
  67605. return s
  67606. }
  67607. // SetStaleIpPermissionsEgress sets the StaleIpPermissionsEgress field's value.
  67608. func (s *StaleSecurityGroup) SetStaleIpPermissionsEgress(v []*StaleIpPermission) *StaleSecurityGroup {
  67609. s.StaleIpPermissionsEgress = v
  67610. return s
  67611. }
  67612. // SetVpcId sets the VpcId field's value.
  67613. func (s *StaleSecurityGroup) SetVpcId(v string) *StaleSecurityGroup {
  67614. s.VpcId = &v
  67615. return s
  67616. }
  67617. type StartInstancesInput struct {
  67618. _ struct{} `type:"structure"`
  67619. // Reserved.
  67620. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  67621. // Checks whether you have the required permissions for the action, without
  67622. // actually making the request, and provides an error response. If you have
  67623. // the required permissions, the error response is DryRunOperation. Otherwise,
  67624. // it is UnauthorizedOperation.
  67625. DryRun *bool `locationName:"dryRun" type:"boolean"`
  67626. // One or more instance IDs.
  67627. //
  67628. // InstanceIds is a required field
  67629. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  67630. }
  67631. // String returns the string representation
  67632. func (s StartInstancesInput) String() string {
  67633. return awsutil.Prettify(s)
  67634. }
  67635. // GoString returns the string representation
  67636. func (s StartInstancesInput) GoString() string {
  67637. return s.String()
  67638. }
  67639. // Validate inspects the fields of the type to determine if they are valid.
  67640. func (s *StartInstancesInput) Validate() error {
  67641. invalidParams := request.ErrInvalidParams{Context: "StartInstancesInput"}
  67642. if s.InstanceIds == nil {
  67643. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  67644. }
  67645. if invalidParams.Len() > 0 {
  67646. return invalidParams
  67647. }
  67648. return nil
  67649. }
  67650. // SetAdditionalInfo sets the AdditionalInfo field's value.
  67651. func (s *StartInstancesInput) SetAdditionalInfo(v string) *StartInstancesInput {
  67652. s.AdditionalInfo = &v
  67653. return s
  67654. }
  67655. // SetDryRun sets the DryRun field's value.
  67656. func (s *StartInstancesInput) SetDryRun(v bool) *StartInstancesInput {
  67657. s.DryRun = &v
  67658. return s
  67659. }
  67660. // SetInstanceIds sets the InstanceIds field's value.
  67661. func (s *StartInstancesInput) SetInstanceIds(v []*string) *StartInstancesInput {
  67662. s.InstanceIds = v
  67663. return s
  67664. }
  67665. type StartInstancesOutput struct {
  67666. _ struct{} `type:"structure"`
  67667. // Information about one or more started instances.
  67668. StartingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  67669. }
  67670. // String returns the string representation
  67671. func (s StartInstancesOutput) String() string {
  67672. return awsutil.Prettify(s)
  67673. }
  67674. // GoString returns the string representation
  67675. func (s StartInstancesOutput) GoString() string {
  67676. return s.String()
  67677. }
  67678. // SetStartingInstances sets the StartingInstances field's value.
  67679. func (s *StartInstancesOutput) SetStartingInstances(v []*InstanceStateChange) *StartInstancesOutput {
  67680. s.StartingInstances = v
  67681. return s
  67682. }
  67683. // Describes a state change.
  67684. type StateReason struct {
  67685. _ struct{} `type:"structure"`
  67686. // The reason code for the state change.
  67687. Code *string `locationName:"code" type:"string"`
  67688. // The message for the state change.
  67689. //
  67690. // * Server.InsufficientInstanceCapacity: There was insufficient capacity
  67691. // available to satisfy the launch request.
  67692. //
  67693. // * Server.InternalError: An internal error caused the instance to terminate
  67694. // during launch.
  67695. //
  67696. // * Server.ScheduledStop: The instance was stopped due to a scheduled retirement.
  67697. //
  67698. // * Server.SpotInstanceShutdown: The instance was stopped because the number
  67699. // of Spot requests with a maximum price equal to or higher than the Spot
  67700. // price exceeded available capacity or because of an increase in the Spot
  67701. // price.
  67702. //
  67703. // * Server.SpotInstanceTermination: The instance was terminated because
  67704. // the number of Spot requests with a maximum price equal to or higher than
  67705. // the Spot price exceeded available capacity or because of an increase in
  67706. // the Spot price.
  67707. //
  67708. // * Client.InstanceInitiatedShutdown: The instance was shut down using the
  67709. // shutdown -h command from the instance.
  67710. //
  67711. // * Client.InstanceTerminated: The instance was terminated or rebooted during
  67712. // AMI creation.
  67713. //
  67714. // * Client.InternalError: A client error caused the instance to terminate
  67715. // during launch.
  67716. //
  67717. // * Client.InvalidSnapshot.NotFound: The specified snapshot was not found.
  67718. //
  67719. // * Client.UserInitiatedHibernate: Hibernation was initiated on the instance.
  67720. //
  67721. // * Client.UserInitiatedShutdown: The instance was shut down using the Amazon
  67722. // EC2 API.
  67723. //
  67724. // * Client.VolumeLimitExceeded: The limit on the number of EBS volumes or
  67725. // total storage was exceeded. Decrease usage or request an increase in your
  67726. // account limits.
  67727. Message *string `locationName:"message" type:"string"`
  67728. }
  67729. // String returns the string representation
  67730. func (s StateReason) String() string {
  67731. return awsutil.Prettify(s)
  67732. }
  67733. // GoString returns the string representation
  67734. func (s StateReason) GoString() string {
  67735. return s.String()
  67736. }
  67737. // SetCode sets the Code field's value.
  67738. func (s *StateReason) SetCode(v string) *StateReason {
  67739. s.Code = &v
  67740. return s
  67741. }
  67742. // SetMessage sets the Message field's value.
  67743. func (s *StateReason) SetMessage(v string) *StateReason {
  67744. s.Message = &v
  67745. return s
  67746. }
  67747. type StopInstancesInput struct {
  67748. _ struct{} `type:"structure"`
  67749. // Checks whether you have the required permissions for the action, without
  67750. // actually making the request, and provides an error response. If you have
  67751. // the required permissions, the error response is DryRunOperation. Otherwise,
  67752. // it is UnauthorizedOperation.
  67753. DryRun *bool `locationName:"dryRun" type:"boolean"`
  67754. // Forces the instances to stop. The instances do not have an opportunity to
  67755. // flush file system caches or file system metadata. If you use this option,
  67756. // you must perform file system check and repair procedures. This option is
  67757. // not recommended for Windows instances.
  67758. //
  67759. // Default: false
  67760. Force *bool `locationName:"force" type:"boolean"`
  67761. // Hibernates the instance if the instance was enabled for hibernation at launch.
  67762. // If the instance cannot hibernate successfully, a normal shutdown occurs.
  67763. // For more information, see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html)
  67764. // in the Amazon Elastic Compute Cloud User Guide.
  67765. //
  67766. // Default: false
  67767. Hibernate *bool `type:"boolean"`
  67768. // One or more instance IDs.
  67769. //
  67770. // InstanceIds is a required field
  67771. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  67772. }
  67773. // String returns the string representation
  67774. func (s StopInstancesInput) String() string {
  67775. return awsutil.Prettify(s)
  67776. }
  67777. // GoString returns the string representation
  67778. func (s StopInstancesInput) GoString() string {
  67779. return s.String()
  67780. }
  67781. // Validate inspects the fields of the type to determine if they are valid.
  67782. func (s *StopInstancesInput) Validate() error {
  67783. invalidParams := request.ErrInvalidParams{Context: "StopInstancesInput"}
  67784. if s.InstanceIds == nil {
  67785. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  67786. }
  67787. if invalidParams.Len() > 0 {
  67788. return invalidParams
  67789. }
  67790. return nil
  67791. }
  67792. // SetDryRun sets the DryRun field's value.
  67793. func (s *StopInstancesInput) SetDryRun(v bool) *StopInstancesInput {
  67794. s.DryRun = &v
  67795. return s
  67796. }
  67797. // SetForce sets the Force field's value.
  67798. func (s *StopInstancesInput) SetForce(v bool) *StopInstancesInput {
  67799. s.Force = &v
  67800. return s
  67801. }
  67802. // SetHibernate sets the Hibernate field's value.
  67803. func (s *StopInstancesInput) SetHibernate(v bool) *StopInstancesInput {
  67804. s.Hibernate = &v
  67805. return s
  67806. }
  67807. // SetInstanceIds sets the InstanceIds field's value.
  67808. func (s *StopInstancesInput) SetInstanceIds(v []*string) *StopInstancesInput {
  67809. s.InstanceIds = v
  67810. return s
  67811. }
  67812. type StopInstancesOutput struct {
  67813. _ struct{} `type:"structure"`
  67814. // Information about one or more stopped instances.
  67815. StoppingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  67816. }
  67817. // String returns the string representation
  67818. func (s StopInstancesOutput) String() string {
  67819. return awsutil.Prettify(s)
  67820. }
  67821. // GoString returns the string representation
  67822. func (s StopInstancesOutput) GoString() string {
  67823. return s.String()
  67824. }
  67825. // SetStoppingInstances sets the StoppingInstances field's value.
  67826. func (s *StopInstancesOutput) SetStoppingInstances(v []*InstanceStateChange) *StopInstancesOutput {
  67827. s.StoppingInstances = v
  67828. return s
  67829. }
  67830. // Describes the storage location for an instance store-backed AMI.
  67831. type Storage struct {
  67832. _ struct{} `type:"structure"`
  67833. // An Amazon S3 storage location.
  67834. S3 *S3Storage `type:"structure"`
  67835. }
  67836. // String returns the string representation
  67837. func (s Storage) String() string {
  67838. return awsutil.Prettify(s)
  67839. }
  67840. // GoString returns the string representation
  67841. func (s Storage) GoString() string {
  67842. return s.String()
  67843. }
  67844. // SetS3 sets the S3 field's value.
  67845. func (s *Storage) SetS3(v *S3Storage) *Storage {
  67846. s.S3 = v
  67847. return s
  67848. }
  67849. // Describes a storage location in Amazon S3.
  67850. type StorageLocation struct {
  67851. _ struct{} `type:"structure"`
  67852. // The name of the S3 bucket.
  67853. Bucket *string `type:"string"`
  67854. // The key.
  67855. Key *string `type:"string"`
  67856. }
  67857. // String returns the string representation
  67858. func (s StorageLocation) String() string {
  67859. return awsutil.Prettify(s)
  67860. }
  67861. // GoString returns the string representation
  67862. func (s StorageLocation) GoString() string {
  67863. return s.String()
  67864. }
  67865. // SetBucket sets the Bucket field's value.
  67866. func (s *StorageLocation) SetBucket(v string) *StorageLocation {
  67867. s.Bucket = &v
  67868. return s
  67869. }
  67870. // SetKey sets the Key field's value.
  67871. func (s *StorageLocation) SetKey(v string) *StorageLocation {
  67872. s.Key = &v
  67873. return s
  67874. }
  67875. // Describes a subnet.
  67876. type Subnet struct {
  67877. _ struct{} `type:"structure"`
  67878. // Indicates whether a network interface created in this subnet (including a
  67879. // network interface created by RunInstances) receives an IPv6 address.
  67880. AssignIpv6AddressOnCreation *bool `locationName:"assignIpv6AddressOnCreation" type:"boolean"`
  67881. // The Availability Zone of the subnet.
  67882. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  67883. // The AZ ID of the subnet.
  67884. AvailabilityZoneId *string `locationName:"availabilityZoneId" type:"string"`
  67885. // The number of unused private IPv4 addresses in the subnet. The IPv4 addresses
  67886. // for any stopped instances are considered unavailable.
  67887. AvailableIpAddressCount *int64 `locationName:"availableIpAddressCount" type:"integer"`
  67888. // The IPv4 CIDR block assigned to the subnet.
  67889. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  67890. // Indicates whether this is the default subnet for the Availability Zone.
  67891. DefaultForAz *bool `locationName:"defaultForAz" type:"boolean"`
  67892. // Information about the IPv6 CIDR blocks associated with the subnet.
  67893. Ipv6CidrBlockAssociationSet []*SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"`
  67894. // Indicates whether instances launched in this subnet receive a public IPv4
  67895. // address.
  67896. MapPublicIpOnLaunch *bool `locationName:"mapPublicIpOnLaunch" type:"boolean"`
  67897. // The ID of the AWS account that owns the subnet.
  67898. OwnerId *string `locationName:"ownerId" type:"string"`
  67899. // The current state of the subnet.
  67900. State *string `locationName:"state" type:"string" enum:"SubnetState"`
  67901. // The Amazon Resource Name (ARN) of the subnet.
  67902. SubnetArn *string `locationName:"subnetArn" type:"string"`
  67903. // The ID of the subnet.
  67904. SubnetId *string `locationName:"subnetId" type:"string"`
  67905. // Any tags assigned to the subnet.
  67906. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  67907. // The ID of the VPC the subnet is in.
  67908. VpcId *string `locationName:"vpcId" type:"string"`
  67909. }
  67910. // String returns the string representation
  67911. func (s Subnet) String() string {
  67912. return awsutil.Prettify(s)
  67913. }
  67914. // GoString returns the string representation
  67915. func (s Subnet) GoString() string {
  67916. return s.String()
  67917. }
  67918. // SetAssignIpv6AddressOnCreation sets the AssignIpv6AddressOnCreation field's value.
  67919. func (s *Subnet) SetAssignIpv6AddressOnCreation(v bool) *Subnet {
  67920. s.AssignIpv6AddressOnCreation = &v
  67921. return s
  67922. }
  67923. // SetAvailabilityZone sets the AvailabilityZone field's value.
  67924. func (s *Subnet) SetAvailabilityZone(v string) *Subnet {
  67925. s.AvailabilityZone = &v
  67926. return s
  67927. }
  67928. // SetAvailabilityZoneId sets the AvailabilityZoneId field's value.
  67929. func (s *Subnet) SetAvailabilityZoneId(v string) *Subnet {
  67930. s.AvailabilityZoneId = &v
  67931. return s
  67932. }
  67933. // SetAvailableIpAddressCount sets the AvailableIpAddressCount field's value.
  67934. func (s *Subnet) SetAvailableIpAddressCount(v int64) *Subnet {
  67935. s.AvailableIpAddressCount = &v
  67936. return s
  67937. }
  67938. // SetCidrBlock sets the CidrBlock field's value.
  67939. func (s *Subnet) SetCidrBlock(v string) *Subnet {
  67940. s.CidrBlock = &v
  67941. return s
  67942. }
  67943. // SetDefaultForAz sets the DefaultForAz field's value.
  67944. func (s *Subnet) SetDefaultForAz(v bool) *Subnet {
  67945. s.DefaultForAz = &v
  67946. return s
  67947. }
  67948. // SetIpv6CidrBlockAssociationSet sets the Ipv6CidrBlockAssociationSet field's value.
  67949. func (s *Subnet) SetIpv6CidrBlockAssociationSet(v []*SubnetIpv6CidrBlockAssociation) *Subnet {
  67950. s.Ipv6CidrBlockAssociationSet = v
  67951. return s
  67952. }
  67953. // SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value.
  67954. func (s *Subnet) SetMapPublicIpOnLaunch(v bool) *Subnet {
  67955. s.MapPublicIpOnLaunch = &v
  67956. return s
  67957. }
  67958. // SetOwnerId sets the OwnerId field's value.
  67959. func (s *Subnet) SetOwnerId(v string) *Subnet {
  67960. s.OwnerId = &v
  67961. return s
  67962. }
  67963. // SetState sets the State field's value.
  67964. func (s *Subnet) SetState(v string) *Subnet {
  67965. s.State = &v
  67966. return s
  67967. }
  67968. // SetSubnetArn sets the SubnetArn field's value.
  67969. func (s *Subnet) SetSubnetArn(v string) *Subnet {
  67970. s.SubnetArn = &v
  67971. return s
  67972. }
  67973. // SetSubnetId sets the SubnetId field's value.
  67974. func (s *Subnet) SetSubnetId(v string) *Subnet {
  67975. s.SubnetId = &v
  67976. return s
  67977. }
  67978. // SetTags sets the Tags field's value.
  67979. func (s *Subnet) SetTags(v []*Tag) *Subnet {
  67980. s.Tags = v
  67981. return s
  67982. }
  67983. // SetVpcId sets the VpcId field's value.
  67984. func (s *Subnet) SetVpcId(v string) *Subnet {
  67985. s.VpcId = &v
  67986. return s
  67987. }
  67988. // Describes the state of a CIDR block.
  67989. type SubnetCidrBlockState struct {
  67990. _ struct{} `type:"structure"`
  67991. // The state of a CIDR block.
  67992. State *string `locationName:"state" type:"string" enum:"SubnetCidrBlockStateCode"`
  67993. // A message about the status of the CIDR block, if applicable.
  67994. StatusMessage *string `locationName:"statusMessage" type:"string"`
  67995. }
  67996. // String returns the string representation
  67997. func (s SubnetCidrBlockState) String() string {
  67998. return awsutil.Prettify(s)
  67999. }
  68000. // GoString returns the string representation
  68001. func (s SubnetCidrBlockState) GoString() string {
  68002. return s.String()
  68003. }
  68004. // SetState sets the State field's value.
  68005. func (s *SubnetCidrBlockState) SetState(v string) *SubnetCidrBlockState {
  68006. s.State = &v
  68007. return s
  68008. }
  68009. // SetStatusMessage sets the StatusMessage field's value.
  68010. func (s *SubnetCidrBlockState) SetStatusMessage(v string) *SubnetCidrBlockState {
  68011. s.StatusMessage = &v
  68012. return s
  68013. }
  68014. // Describes an IPv6 CIDR block associated with a subnet.
  68015. type SubnetIpv6CidrBlockAssociation struct {
  68016. _ struct{} `type:"structure"`
  68017. // The association ID for the CIDR block.
  68018. AssociationId *string `locationName:"associationId" type:"string"`
  68019. // The IPv6 CIDR block.
  68020. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  68021. // Information about the state of the CIDR block.
  68022. Ipv6CidrBlockState *SubnetCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"`
  68023. }
  68024. // String returns the string representation
  68025. func (s SubnetIpv6CidrBlockAssociation) String() string {
  68026. return awsutil.Prettify(s)
  68027. }
  68028. // GoString returns the string representation
  68029. func (s SubnetIpv6CidrBlockAssociation) GoString() string {
  68030. return s.String()
  68031. }
  68032. // SetAssociationId sets the AssociationId field's value.
  68033. func (s *SubnetIpv6CidrBlockAssociation) SetAssociationId(v string) *SubnetIpv6CidrBlockAssociation {
  68034. s.AssociationId = &v
  68035. return s
  68036. }
  68037. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  68038. func (s *SubnetIpv6CidrBlockAssociation) SetIpv6CidrBlock(v string) *SubnetIpv6CidrBlockAssociation {
  68039. s.Ipv6CidrBlock = &v
  68040. return s
  68041. }
  68042. // SetIpv6CidrBlockState sets the Ipv6CidrBlockState field's value.
  68043. func (s *SubnetIpv6CidrBlockAssociation) SetIpv6CidrBlockState(v *SubnetCidrBlockState) *SubnetIpv6CidrBlockAssociation {
  68044. s.Ipv6CidrBlockState = v
  68045. return s
  68046. }
  68047. // Describes the T2 or T3 instance whose credit option for CPU usage was successfully
  68048. // modified.
  68049. type SuccessfulInstanceCreditSpecificationItem struct {
  68050. _ struct{} `type:"structure"`
  68051. // The ID of the instance.
  68052. InstanceId *string `locationName:"instanceId" type:"string"`
  68053. }
  68054. // String returns the string representation
  68055. func (s SuccessfulInstanceCreditSpecificationItem) String() string {
  68056. return awsutil.Prettify(s)
  68057. }
  68058. // GoString returns the string representation
  68059. func (s SuccessfulInstanceCreditSpecificationItem) GoString() string {
  68060. return s.String()
  68061. }
  68062. // SetInstanceId sets the InstanceId field's value.
  68063. func (s *SuccessfulInstanceCreditSpecificationItem) SetInstanceId(v string) *SuccessfulInstanceCreditSpecificationItem {
  68064. s.InstanceId = &v
  68065. return s
  68066. }
  68067. // Describes a tag.
  68068. type Tag struct {
  68069. _ struct{} `type:"structure"`
  68070. // The key of the tag.
  68071. //
  68072. // Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode
  68073. // characters. May not begin with aws:.
  68074. Key *string `locationName:"key" type:"string"`
  68075. // The value of the tag.
  68076. //
  68077. // Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode
  68078. // characters.
  68079. Value *string `locationName:"value" type:"string"`
  68080. }
  68081. // String returns the string representation
  68082. func (s Tag) String() string {
  68083. return awsutil.Prettify(s)
  68084. }
  68085. // GoString returns the string representation
  68086. func (s Tag) GoString() string {
  68087. return s.String()
  68088. }
  68089. // SetKey sets the Key field's value.
  68090. func (s *Tag) SetKey(v string) *Tag {
  68091. s.Key = &v
  68092. return s
  68093. }
  68094. // SetValue sets the Value field's value.
  68095. func (s *Tag) SetValue(v string) *Tag {
  68096. s.Value = &v
  68097. return s
  68098. }
  68099. // Describes a tag.
  68100. type TagDescription struct {
  68101. _ struct{} `type:"structure"`
  68102. // The tag key.
  68103. Key *string `locationName:"key" type:"string"`
  68104. // The ID of the resource.
  68105. ResourceId *string `locationName:"resourceId" type:"string"`
  68106. // The resource type.
  68107. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  68108. // The tag value.
  68109. Value *string `locationName:"value" type:"string"`
  68110. }
  68111. // String returns the string representation
  68112. func (s TagDescription) String() string {
  68113. return awsutil.Prettify(s)
  68114. }
  68115. // GoString returns the string representation
  68116. func (s TagDescription) GoString() string {
  68117. return s.String()
  68118. }
  68119. // SetKey sets the Key field's value.
  68120. func (s *TagDescription) SetKey(v string) *TagDescription {
  68121. s.Key = &v
  68122. return s
  68123. }
  68124. // SetResourceId sets the ResourceId field's value.
  68125. func (s *TagDescription) SetResourceId(v string) *TagDescription {
  68126. s.ResourceId = &v
  68127. return s
  68128. }
  68129. // SetResourceType sets the ResourceType field's value.
  68130. func (s *TagDescription) SetResourceType(v string) *TagDescription {
  68131. s.ResourceType = &v
  68132. return s
  68133. }
  68134. // SetValue sets the Value field's value.
  68135. func (s *TagDescription) SetValue(v string) *TagDescription {
  68136. s.Value = &v
  68137. return s
  68138. }
  68139. // The tags to apply to a resource when the resource is being created.
  68140. type TagSpecification struct {
  68141. _ struct{} `type:"structure"`
  68142. // The type of resource to tag. Currently, the resource types that support tagging
  68143. // on creation are fleet, dedicated-host, instance, snapshot, and volume. To
  68144. // tag a resource after it has been created, see CreateTags.
  68145. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  68146. // The tags to apply to the resource.
  68147. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list"`
  68148. }
  68149. // String returns the string representation
  68150. func (s TagSpecification) String() string {
  68151. return awsutil.Prettify(s)
  68152. }
  68153. // GoString returns the string representation
  68154. func (s TagSpecification) GoString() string {
  68155. return s.String()
  68156. }
  68157. // SetResourceType sets the ResourceType field's value.
  68158. func (s *TagSpecification) SetResourceType(v string) *TagSpecification {
  68159. s.ResourceType = &v
  68160. return s
  68161. }
  68162. // SetTags sets the Tags field's value.
  68163. func (s *TagSpecification) SetTags(v []*Tag) *TagSpecification {
  68164. s.Tags = v
  68165. return s
  68166. }
  68167. // The number of units to request. You can choose to set the target capacity
  68168. // in terms of instances or a performance characteristic that is important to
  68169. // your application workload, such as vCPUs, memory, or I/O. If the request
  68170. // type is maintain, you can specify a target capacity of 0 and add capacity
  68171. // later.
  68172. type TargetCapacitySpecification struct {
  68173. _ struct{} `type:"structure"`
  68174. // The default TotalTargetCapacity, which is either Spot or On-Demand.
  68175. DefaultTargetCapacityType *string `locationName:"defaultTargetCapacityType" type:"string" enum:"DefaultTargetCapacityType"`
  68176. // The number of On-Demand units to request.
  68177. OnDemandTargetCapacity *int64 `locationName:"onDemandTargetCapacity" type:"integer"`
  68178. // The maximum number of Spot units to launch.
  68179. SpotTargetCapacity *int64 `locationName:"spotTargetCapacity" type:"integer"`
  68180. // The number of units to request, filled using DefaultTargetCapacityType.
  68181. TotalTargetCapacity *int64 `locationName:"totalTargetCapacity" type:"integer"`
  68182. }
  68183. // String returns the string representation
  68184. func (s TargetCapacitySpecification) String() string {
  68185. return awsutil.Prettify(s)
  68186. }
  68187. // GoString returns the string representation
  68188. func (s TargetCapacitySpecification) GoString() string {
  68189. return s.String()
  68190. }
  68191. // SetDefaultTargetCapacityType sets the DefaultTargetCapacityType field's value.
  68192. func (s *TargetCapacitySpecification) SetDefaultTargetCapacityType(v string) *TargetCapacitySpecification {
  68193. s.DefaultTargetCapacityType = &v
  68194. return s
  68195. }
  68196. // SetOnDemandTargetCapacity sets the OnDemandTargetCapacity field's value.
  68197. func (s *TargetCapacitySpecification) SetOnDemandTargetCapacity(v int64) *TargetCapacitySpecification {
  68198. s.OnDemandTargetCapacity = &v
  68199. return s
  68200. }
  68201. // SetSpotTargetCapacity sets the SpotTargetCapacity field's value.
  68202. func (s *TargetCapacitySpecification) SetSpotTargetCapacity(v int64) *TargetCapacitySpecification {
  68203. s.SpotTargetCapacity = &v
  68204. return s
  68205. }
  68206. // SetTotalTargetCapacity sets the TotalTargetCapacity field's value.
  68207. func (s *TargetCapacitySpecification) SetTotalTargetCapacity(v int64) *TargetCapacitySpecification {
  68208. s.TotalTargetCapacity = &v
  68209. return s
  68210. }
  68211. // The number of units to request. You can choose to set the target capacity
  68212. // in terms of instances or a performance characteristic that is important to
  68213. // your application workload, such as vCPUs, memory, or I/O. If the request
  68214. // type is maintain, you can specify a target capacity of 0 and add capacity
  68215. // later.
  68216. type TargetCapacitySpecificationRequest struct {
  68217. _ struct{} `type:"structure"`
  68218. // The default TotalTargetCapacity, which is either Spot or On-Demand.
  68219. DefaultTargetCapacityType *string `type:"string" enum:"DefaultTargetCapacityType"`
  68220. // The number of On-Demand units to request.
  68221. OnDemandTargetCapacity *int64 `type:"integer"`
  68222. // The number of Spot units to request.
  68223. SpotTargetCapacity *int64 `type:"integer"`
  68224. // The number of units to request, filled using DefaultTargetCapacityType.
  68225. //
  68226. // TotalTargetCapacity is a required field
  68227. TotalTargetCapacity *int64 `type:"integer" required:"true"`
  68228. }
  68229. // String returns the string representation
  68230. func (s TargetCapacitySpecificationRequest) String() string {
  68231. return awsutil.Prettify(s)
  68232. }
  68233. // GoString returns the string representation
  68234. func (s TargetCapacitySpecificationRequest) GoString() string {
  68235. return s.String()
  68236. }
  68237. // Validate inspects the fields of the type to determine if they are valid.
  68238. func (s *TargetCapacitySpecificationRequest) Validate() error {
  68239. invalidParams := request.ErrInvalidParams{Context: "TargetCapacitySpecificationRequest"}
  68240. if s.TotalTargetCapacity == nil {
  68241. invalidParams.Add(request.NewErrParamRequired("TotalTargetCapacity"))
  68242. }
  68243. if invalidParams.Len() > 0 {
  68244. return invalidParams
  68245. }
  68246. return nil
  68247. }
  68248. // SetDefaultTargetCapacityType sets the DefaultTargetCapacityType field's value.
  68249. func (s *TargetCapacitySpecificationRequest) SetDefaultTargetCapacityType(v string) *TargetCapacitySpecificationRequest {
  68250. s.DefaultTargetCapacityType = &v
  68251. return s
  68252. }
  68253. // SetOnDemandTargetCapacity sets the OnDemandTargetCapacity field's value.
  68254. func (s *TargetCapacitySpecificationRequest) SetOnDemandTargetCapacity(v int64) *TargetCapacitySpecificationRequest {
  68255. s.OnDemandTargetCapacity = &v
  68256. return s
  68257. }
  68258. // SetSpotTargetCapacity sets the SpotTargetCapacity field's value.
  68259. func (s *TargetCapacitySpecificationRequest) SetSpotTargetCapacity(v int64) *TargetCapacitySpecificationRequest {
  68260. s.SpotTargetCapacity = &v
  68261. return s
  68262. }
  68263. // SetTotalTargetCapacity sets the TotalTargetCapacity field's value.
  68264. func (s *TargetCapacitySpecificationRequest) SetTotalTargetCapacity(v int64) *TargetCapacitySpecificationRequest {
  68265. s.TotalTargetCapacity = &v
  68266. return s
  68267. }
  68268. // Information about the Convertible Reserved Instance offering.
  68269. type TargetConfiguration struct {
  68270. _ struct{} `type:"structure"`
  68271. // The number of instances the Convertible Reserved Instance offering can be
  68272. // applied to. This parameter is reserved and cannot be specified in a request
  68273. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  68274. // The ID of the Convertible Reserved Instance offering.
  68275. OfferingId *string `locationName:"offeringId" type:"string"`
  68276. }
  68277. // String returns the string representation
  68278. func (s TargetConfiguration) String() string {
  68279. return awsutil.Prettify(s)
  68280. }
  68281. // GoString returns the string representation
  68282. func (s TargetConfiguration) GoString() string {
  68283. return s.String()
  68284. }
  68285. // SetInstanceCount sets the InstanceCount field's value.
  68286. func (s *TargetConfiguration) SetInstanceCount(v int64) *TargetConfiguration {
  68287. s.InstanceCount = &v
  68288. return s
  68289. }
  68290. // SetOfferingId sets the OfferingId field's value.
  68291. func (s *TargetConfiguration) SetOfferingId(v string) *TargetConfiguration {
  68292. s.OfferingId = &v
  68293. return s
  68294. }
  68295. // Details about the target configuration.
  68296. type TargetConfigurationRequest struct {
  68297. _ struct{} `type:"structure"`
  68298. // The number of instances the Covertible Reserved Instance offering can be
  68299. // applied to. This parameter is reserved and cannot be specified in a request
  68300. InstanceCount *int64 `type:"integer"`
  68301. // The Convertible Reserved Instance offering ID.
  68302. //
  68303. // OfferingId is a required field
  68304. OfferingId *string `type:"string" required:"true"`
  68305. }
  68306. // String returns the string representation
  68307. func (s TargetConfigurationRequest) String() string {
  68308. return awsutil.Prettify(s)
  68309. }
  68310. // GoString returns the string representation
  68311. func (s TargetConfigurationRequest) GoString() string {
  68312. return s.String()
  68313. }
  68314. // Validate inspects the fields of the type to determine if they are valid.
  68315. func (s *TargetConfigurationRequest) Validate() error {
  68316. invalidParams := request.ErrInvalidParams{Context: "TargetConfigurationRequest"}
  68317. if s.OfferingId == nil {
  68318. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  68319. }
  68320. if invalidParams.Len() > 0 {
  68321. return invalidParams
  68322. }
  68323. return nil
  68324. }
  68325. // SetInstanceCount sets the InstanceCount field's value.
  68326. func (s *TargetConfigurationRequest) SetInstanceCount(v int64) *TargetConfigurationRequest {
  68327. s.InstanceCount = &v
  68328. return s
  68329. }
  68330. // SetOfferingId sets the OfferingId field's value.
  68331. func (s *TargetConfigurationRequest) SetOfferingId(v string) *TargetConfigurationRequest {
  68332. s.OfferingId = &v
  68333. return s
  68334. }
  68335. // Describes a load balancer target group.
  68336. type TargetGroup struct {
  68337. _ struct{} `type:"structure"`
  68338. // The Amazon Resource Name (ARN) of the target group.
  68339. Arn *string `locationName:"arn" type:"string"`
  68340. }
  68341. // String returns the string representation
  68342. func (s TargetGroup) String() string {
  68343. return awsutil.Prettify(s)
  68344. }
  68345. // GoString returns the string representation
  68346. func (s TargetGroup) GoString() string {
  68347. return s.String()
  68348. }
  68349. // SetArn sets the Arn field's value.
  68350. func (s *TargetGroup) SetArn(v string) *TargetGroup {
  68351. s.Arn = &v
  68352. return s
  68353. }
  68354. // Describes the target groups to attach to a Spot Fleet. Spot Fleet registers
  68355. // the running Spot Instances with these target groups.
  68356. type TargetGroupsConfig struct {
  68357. _ struct{} `type:"structure"`
  68358. // One or more target groups.
  68359. TargetGroups []*TargetGroup `locationName:"targetGroups" locationNameList:"item" min:"1" type:"list"`
  68360. }
  68361. // String returns the string representation
  68362. func (s TargetGroupsConfig) String() string {
  68363. return awsutil.Prettify(s)
  68364. }
  68365. // GoString returns the string representation
  68366. func (s TargetGroupsConfig) GoString() string {
  68367. return s.String()
  68368. }
  68369. // Validate inspects the fields of the type to determine if they are valid.
  68370. func (s *TargetGroupsConfig) Validate() error {
  68371. invalidParams := request.ErrInvalidParams{Context: "TargetGroupsConfig"}
  68372. if s.TargetGroups != nil && len(s.TargetGroups) < 1 {
  68373. invalidParams.Add(request.NewErrParamMinLen("TargetGroups", 1))
  68374. }
  68375. if invalidParams.Len() > 0 {
  68376. return invalidParams
  68377. }
  68378. return nil
  68379. }
  68380. // SetTargetGroups sets the TargetGroups field's value.
  68381. func (s *TargetGroupsConfig) SetTargetGroups(v []*TargetGroup) *TargetGroupsConfig {
  68382. s.TargetGroups = v
  68383. return s
  68384. }
  68385. // Describes a target network associated with a Client VPN endpoint.
  68386. type TargetNetwork struct {
  68387. _ struct{} `type:"structure"`
  68388. // The ID of the association.
  68389. AssociationId *string `locationName:"associationId" type:"string"`
  68390. // The ID of the Client VPN endpoint with which the target network is associated.
  68391. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  68392. // The IDs of the security groups applied to the target network association.
  68393. SecurityGroups []*string `locationName:"securityGroups" locationNameList:"item" type:"list"`
  68394. // The current state of the target network association.
  68395. Status *AssociationStatus `locationName:"status" type:"structure"`
  68396. // The ID of the subnet specified as the target network.
  68397. TargetNetworkId *string `locationName:"targetNetworkId" type:"string"`
  68398. // The ID of the VPC in which the target network (subnet) is located.
  68399. VpcId *string `locationName:"vpcId" type:"string"`
  68400. }
  68401. // String returns the string representation
  68402. func (s TargetNetwork) String() string {
  68403. return awsutil.Prettify(s)
  68404. }
  68405. // GoString returns the string representation
  68406. func (s TargetNetwork) GoString() string {
  68407. return s.String()
  68408. }
  68409. // SetAssociationId sets the AssociationId field's value.
  68410. func (s *TargetNetwork) SetAssociationId(v string) *TargetNetwork {
  68411. s.AssociationId = &v
  68412. return s
  68413. }
  68414. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  68415. func (s *TargetNetwork) SetClientVpnEndpointId(v string) *TargetNetwork {
  68416. s.ClientVpnEndpointId = &v
  68417. return s
  68418. }
  68419. // SetSecurityGroups sets the SecurityGroups field's value.
  68420. func (s *TargetNetwork) SetSecurityGroups(v []*string) *TargetNetwork {
  68421. s.SecurityGroups = v
  68422. return s
  68423. }
  68424. // SetStatus sets the Status field's value.
  68425. func (s *TargetNetwork) SetStatus(v *AssociationStatus) *TargetNetwork {
  68426. s.Status = v
  68427. return s
  68428. }
  68429. // SetTargetNetworkId sets the TargetNetworkId field's value.
  68430. func (s *TargetNetwork) SetTargetNetworkId(v string) *TargetNetwork {
  68431. s.TargetNetworkId = &v
  68432. return s
  68433. }
  68434. // SetVpcId sets the VpcId field's value.
  68435. func (s *TargetNetwork) SetVpcId(v string) *TargetNetwork {
  68436. s.VpcId = &v
  68437. return s
  68438. }
  68439. // The total value of the new Convertible Reserved Instances.
  68440. type TargetReservationValue struct {
  68441. _ struct{} `type:"structure"`
  68442. // The total value of the Convertible Reserved Instances that make up the exchange.
  68443. // This is the sum of the list value, remaining upfront price, and additional
  68444. // upfront cost of the exchange.
  68445. ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"`
  68446. // The configuration of the Convertible Reserved Instances that make up the
  68447. // exchange.
  68448. TargetConfiguration *TargetConfiguration `locationName:"targetConfiguration" type:"structure"`
  68449. }
  68450. // String returns the string representation
  68451. func (s TargetReservationValue) String() string {
  68452. return awsutil.Prettify(s)
  68453. }
  68454. // GoString returns the string representation
  68455. func (s TargetReservationValue) GoString() string {
  68456. return s.String()
  68457. }
  68458. // SetReservationValue sets the ReservationValue field's value.
  68459. func (s *TargetReservationValue) SetReservationValue(v *ReservationValue) *TargetReservationValue {
  68460. s.ReservationValue = v
  68461. return s
  68462. }
  68463. // SetTargetConfiguration sets the TargetConfiguration field's value.
  68464. func (s *TargetReservationValue) SetTargetConfiguration(v *TargetConfiguration) *TargetReservationValue {
  68465. s.TargetConfiguration = v
  68466. return s
  68467. }
  68468. type TerminateClientVpnConnectionsInput struct {
  68469. _ struct{} `type:"structure"`
  68470. // The ID of the Client VPN endpoint to which the client is connected.
  68471. //
  68472. // ClientVpnEndpointId is a required field
  68473. ClientVpnEndpointId *string `type:"string" required:"true"`
  68474. // The ID of the client connection to be terminated.
  68475. ConnectionId *string `type:"string"`
  68476. // Checks whether you have the required permissions for the action, without
  68477. // actually making the request, and provides an error response. If you have
  68478. // the required permissions, the error response is DryRunOperation. Otherwise,
  68479. // it is UnauthorizedOperation.
  68480. DryRun *bool `type:"boolean"`
  68481. // The name of the user who initiated the connection. Use this option to terminate
  68482. // all active connections for the specified user. This option can only be used
  68483. // if the user has established up to five connections.
  68484. Username *string `type:"string"`
  68485. }
  68486. // String returns the string representation
  68487. func (s TerminateClientVpnConnectionsInput) String() string {
  68488. return awsutil.Prettify(s)
  68489. }
  68490. // GoString returns the string representation
  68491. func (s TerminateClientVpnConnectionsInput) GoString() string {
  68492. return s.String()
  68493. }
  68494. // Validate inspects the fields of the type to determine if they are valid.
  68495. func (s *TerminateClientVpnConnectionsInput) Validate() error {
  68496. invalidParams := request.ErrInvalidParams{Context: "TerminateClientVpnConnectionsInput"}
  68497. if s.ClientVpnEndpointId == nil {
  68498. invalidParams.Add(request.NewErrParamRequired("ClientVpnEndpointId"))
  68499. }
  68500. if invalidParams.Len() > 0 {
  68501. return invalidParams
  68502. }
  68503. return nil
  68504. }
  68505. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  68506. func (s *TerminateClientVpnConnectionsInput) SetClientVpnEndpointId(v string) *TerminateClientVpnConnectionsInput {
  68507. s.ClientVpnEndpointId = &v
  68508. return s
  68509. }
  68510. // SetConnectionId sets the ConnectionId field's value.
  68511. func (s *TerminateClientVpnConnectionsInput) SetConnectionId(v string) *TerminateClientVpnConnectionsInput {
  68512. s.ConnectionId = &v
  68513. return s
  68514. }
  68515. // SetDryRun sets the DryRun field's value.
  68516. func (s *TerminateClientVpnConnectionsInput) SetDryRun(v bool) *TerminateClientVpnConnectionsInput {
  68517. s.DryRun = &v
  68518. return s
  68519. }
  68520. // SetUsername sets the Username field's value.
  68521. func (s *TerminateClientVpnConnectionsInput) SetUsername(v string) *TerminateClientVpnConnectionsInput {
  68522. s.Username = &v
  68523. return s
  68524. }
  68525. type TerminateClientVpnConnectionsOutput struct {
  68526. _ struct{} `type:"structure"`
  68527. // The ID of the Client VPN endpoint.
  68528. ClientVpnEndpointId *string `locationName:"clientVpnEndpointId" type:"string"`
  68529. // The current state of the client connections.
  68530. ConnectionStatuses []*TerminateConnectionStatus `locationName:"connectionStatuses" locationNameList:"item" type:"list"`
  68531. // The user who established the terminated client connections.
  68532. Username *string `locationName:"username" type:"string"`
  68533. }
  68534. // String returns the string representation
  68535. func (s TerminateClientVpnConnectionsOutput) String() string {
  68536. return awsutil.Prettify(s)
  68537. }
  68538. // GoString returns the string representation
  68539. func (s TerminateClientVpnConnectionsOutput) GoString() string {
  68540. return s.String()
  68541. }
  68542. // SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.
  68543. func (s *TerminateClientVpnConnectionsOutput) SetClientVpnEndpointId(v string) *TerminateClientVpnConnectionsOutput {
  68544. s.ClientVpnEndpointId = &v
  68545. return s
  68546. }
  68547. // SetConnectionStatuses sets the ConnectionStatuses field's value.
  68548. func (s *TerminateClientVpnConnectionsOutput) SetConnectionStatuses(v []*TerminateConnectionStatus) *TerminateClientVpnConnectionsOutput {
  68549. s.ConnectionStatuses = v
  68550. return s
  68551. }
  68552. // SetUsername sets the Username field's value.
  68553. func (s *TerminateClientVpnConnectionsOutput) SetUsername(v string) *TerminateClientVpnConnectionsOutput {
  68554. s.Username = &v
  68555. return s
  68556. }
  68557. // Information about a terminated Client VPN endpoint client connection.
  68558. type TerminateConnectionStatus struct {
  68559. _ struct{} `type:"structure"`
  68560. // The ID of the client connection.
  68561. ConnectionId *string `locationName:"connectionId" type:"string"`
  68562. // A message about the status of the client connection, if applicable.
  68563. CurrentStatus *ClientVpnConnectionStatus `locationName:"currentStatus" type:"structure"`
  68564. // The state of the client connection.
  68565. PreviousStatus *ClientVpnConnectionStatus `locationName:"previousStatus" type:"structure"`
  68566. }
  68567. // String returns the string representation
  68568. func (s TerminateConnectionStatus) String() string {
  68569. return awsutil.Prettify(s)
  68570. }
  68571. // GoString returns the string representation
  68572. func (s TerminateConnectionStatus) GoString() string {
  68573. return s.String()
  68574. }
  68575. // SetConnectionId sets the ConnectionId field's value.
  68576. func (s *TerminateConnectionStatus) SetConnectionId(v string) *TerminateConnectionStatus {
  68577. s.ConnectionId = &v
  68578. return s
  68579. }
  68580. // SetCurrentStatus sets the CurrentStatus field's value.
  68581. func (s *TerminateConnectionStatus) SetCurrentStatus(v *ClientVpnConnectionStatus) *TerminateConnectionStatus {
  68582. s.CurrentStatus = v
  68583. return s
  68584. }
  68585. // SetPreviousStatus sets the PreviousStatus field's value.
  68586. func (s *TerminateConnectionStatus) SetPreviousStatus(v *ClientVpnConnectionStatus) *TerminateConnectionStatus {
  68587. s.PreviousStatus = v
  68588. return s
  68589. }
  68590. type TerminateInstancesInput struct {
  68591. _ struct{} `type:"structure"`
  68592. // Checks whether you have the required permissions for the action, without
  68593. // actually making the request, and provides an error response. If you have
  68594. // the required permissions, the error response is DryRunOperation. Otherwise,
  68595. // it is UnauthorizedOperation.
  68596. DryRun *bool `locationName:"dryRun" type:"boolean"`
  68597. // One or more instance IDs.
  68598. //
  68599. // Constraints: Up to 1000 instance IDs. We recommend breaking up this request
  68600. // into smaller batches.
  68601. //
  68602. // InstanceIds is a required field
  68603. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  68604. }
  68605. // String returns the string representation
  68606. func (s TerminateInstancesInput) String() string {
  68607. return awsutil.Prettify(s)
  68608. }
  68609. // GoString returns the string representation
  68610. func (s TerminateInstancesInput) GoString() string {
  68611. return s.String()
  68612. }
  68613. // Validate inspects the fields of the type to determine if they are valid.
  68614. func (s *TerminateInstancesInput) Validate() error {
  68615. invalidParams := request.ErrInvalidParams{Context: "TerminateInstancesInput"}
  68616. if s.InstanceIds == nil {
  68617. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  68618. }
  68619. if invalidParams.Len() > 0 {
  68620. return invalidParams
  68621. }
  68622. return nil
  68623. }
  68624. // SetDryRun sets the DryRun field's value.
  68625. func (s *TerminateInstancesInput) SetDryRun(v bool) *TerminateInstancesInput {
  68626. s.DryRun = &v
  68627. return s
  68628. }
  68629. // SetInstanceIds sets the InstanceIds field's value.
  68630. func (s *TerminateInstancesInput) SetInstanceIds(v []*string) *TerminateInstancesInput {
  68631. s.InstanceIds = v
  68632. return s
  68633. }
  68634. type TerminateInstancesOutput struct {
  68635. _ struct{} `type:"structure"`
  68636. // Information about one or more terminated instances.
  68637. TerminatingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  68638. }
  68639. // String returns the string representation
  68640. func (s TerminateInstancesOutput) String() string {
  68641. return awsutil.Prettify(s)
  68642. }
  68643. // GoString returns the string representation
  68644. func (s TerminateInstancesOutput) GoString() string {
  68645. return s.String()
  68646. }
  68647. // SetTerminatingInstances sets the TerminatingInstances field's value.
  68648. func (s *TerminateInstancesOutput) SetTerminatingInstances(v []*InstanceStateChange) *TerminateInstancesOutput {
  68649. s.TerminatingInstances = v
  68650. return s
  68651. }
  68652. // Describes a transit gateway.
  68653. type TransitGateway struct {
  68654. _ struct{} `type:"structure"`
  68655. // The creation time.
  68656. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  68657. // The description of the transit gateway.
  68658. Description *string `locationName:"description" type:"string"`
  68659. // The transit gateway options.
  68660. Options *TransitGatewayOptions `locationName:"options" type:"structure"`
  68661. // The ID of the AWS account ID that owns the transit gateway.
  68662. OwnerId *string `locationName:"ownerId" type:"string"`
  68663. // The state of the transit gateway.
  68664. State *string `locationName:"state" type:"string" enum:"TransitGatewayState"`
  68665. // The tags for the transit gateway.
  68666. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  68667. // The Amazon Resource Name (ARN) of the transit gateway.
  68668. TransitGatewayArn *string `locationName:"transitGatewayArn" type:"string"`
  68669. // The ID of the transit gateway.
  68670. TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
  68671. }
  68672. // String returns the string representation
  68673. func (s TransitGateway) String() string {
  68674. return awsutil.Prettify(s)
  68675. }
  68676. // GoString returns the string representation
  68677. func (s TransitGateway) GoString() string {
  68678. return s.String()
  68679. }
  68680. // SetCreationTime sets the CreationTime field's value.
  68681. func (s *TransitGateway) SetCreationTime(v time.Time) *TransitGateway {
  68682. s.CreationTime = &v
  68683. return s
  68684. }
  68685. // SetDescription sets the Description field's value.
  68686. func (s *TransitGateway) SetDescription(v string) *TransitGateway {
  68687. s.Description = &v
  68688. return s
  68689. }
  68690. // SetOptions sets the Options field's value.
  68691. func (s *TransitGateway) SetOptions(v *TransitGatewayOptions) *TransitGateway {
  68692. s.Options = v
  68693. return s
  68694. }
  68695. // SetOwnerId sets the OwnerId field's value.
  68696. func (s *TransitGateway) SetOwnerId(v string) *TransitGateway {
  68697. s.OwnerId = &v
  68698. return s
  68699. }
  68700. // SetState sets the State field's value.
  68701. func (s *TransitGateway) SetState(v string) *TransitGateway {
  68702. s.State = &v
  68703. return s
  68704. }
  68705. // SetTags sets the Tags field's value.
  68706. func (s *TransitGateway) SetTags(v []*Tag) *TransitGateway {
  68707. s.Tags = v
  68708. return s
  68709. }
  68710. // SetTransitGatewayArn sets the TransitGatewayArn field's value.
  68711. func (s *TransitGateway) SetTransitGatewayArn(v string) *TransitGateway {
  68712. s.TransitGatewayArn = &v
  68713. return s
  68714. }
  68715. // SetTransitGatewayId sets the TransitGatewayId field's value.
  68716. func (s *TransitGateway) SetTransitGatewayId(v string) *TransitGateway {
  68717. s.TransitGatewayId = &v
  68718. return s
  68719. }
  68720. // Describes an association between a resource attachment and a transit gateway
  68721. // route table.
  68722. type TransitGatewayAssociation struct {
  68723. _ struct{} `type:"structure"`
  68724. // The ID of the resource.
  68725. ResourceId *string `locationName:"resourceId" type:"string"`
  68726. // The resource type.
  68727. ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"`
  68728. // The state of the association.
  68729. State *string `locationName:"state" type:"string" enum:"TransitGatewayAssociationState"`
  68730. // The ID of the attachment.
  68731. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  68732. // The ID of the transit gateway route table.
  68733. TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
  68734. }
  68735. // String returns the string representation
  68736. func (s TransitGatewayAssociation) String() string {
  68737. return awsutil.Prettify(s)
  68738. }
  68739. // GoString returns the string representation
  68740. func (s TransitGatewayAssociation) GoString() string {
  68741. return s.String()
  68742. }
  68743. // SetResourceId sets the ResourceId field's value.
  68744. func (s *TransitGatewayAssociation) SetResourceId(v string) *TransitGatewayAssociation {
  68745. s.ResourceId = &v
  68746. return s
  68747. }
  68748. // SetResourceType sets the ResourceType field's value.
  68749. func (s *TransitGatewayAssociation) SetResourceType(v string) *TransitGatewayAssociation {
  68750. s.ResourceType = &v
  68751. return s
  68752. }
  68753. // SetState sets the State field's value.
  68754. func (s *TransitGatewayAssociation) SetState(v string) *TransitGatewayAssociation {
  68755. s.State = &v
  68756. return s
  68757. }
  68758. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  68759. func (s *TransitGatewayAssociation) SetTransitGatewayAttachmentId(v string) *TransitGatewayAssociation {
  68760. s.TransitGatewayAttachmentId = &v
  68761. return s
  68762. }
  68763. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  68764. func (s *TransitGatewayAssociation) SetTransitGatewayRouteTableId(v string) *TransitGatewayAssociation {
  68765. s.TransitGatewayRouteTableId = &v
  68766. return s
  68767. }
  68768. // Describes an attachment between a resource and a transit gateway.
  68769. type TransitGatewayAttachment struct {
  68770. _ struct{} `type:"structure"`
  68771. // The association.
  68772. Association *TransitGatewayAttachmentAssociation `locationName:"association" type:"structure"`
  68773. // The creation time.
  68774. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  68775. // The ID of the resource.
  68776. ResourceId *string `locationName:"resourceId" type:"string"`
  68777. // The ID of the AWS account that owns the resource.
  68778. ResourceOwnerId *string `locationName:"resourceOwnerId" type:"string"`
  68779. // The resource type.
  68780. ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"`
  68781. // The attachment state.
  68782. State *string `locationName:"state" type:"string" enum:"TransitGatewayAttachmentState"`
  68783. // The tags for the attachment.
  68784. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  68785. // The ID of the attachment.
  68786. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  68787. // The ID of the transit gateway.
  68788. TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
  68789. // The ID of the AWS account that owns the transit gateway.
  68790. TransitGatewayOwnerId *string `locationName:"transitGatewayOwnerId" type:"string"`
  68791. }
  68792. // String returns the string representation
  68793. func (s TransitGatewayAttachment) String() string {
  68794. return awsutil.Prettify(s)
  68795. }
  68796. // GoString returns the string representation
  68797. func (s TransitGatewayAttachment) GoString() string {
  68798. return s.String()
  68799. }
  68800. // SetAssociation sets the Association field's value.
  68801. func (s *TransitGatewayAttachment) SetAssociation(v *TransitGatewayAttachmentAssociation) *TransitGatewayAttachment {
  68802. s.Association = v
  68803. return s
  68804. }
  68805. // SetCreationTime sets the CreationTime field's value.
  68806. func (s *TransitGatewayAttachment) SetCreationTime(v time.Time) *TransitGatewayAttachment {
  68807. s.CreationTime = &v
  68808. return s
  68809. }
  68810. // SetResourceId sets the ResourceId field's value.
  68811. func (s *TransitGatewayAttachment) SetResourceId(v string) *TransitGatewayAttachment {
  68812. s.ResourceId = &v
  68813. return s
  68814. }
  68815. // SetResourceOwnerId sets the ResourceOwnerId field's value.
  68816. func (s *TransitGatewayAttachment) SetResourceOwnerId(v string) *TransitGatewayAttachment {
  68817. s.ResourceOwnerId = &v
  68818. return s
  68819. }
  68820. // SetResourceType sets the ResourceType field's value.
  68821. func (s *TransitGatewayAttachment) SetResourceType(v string) *TransitGatewayAttachment {
  68822. s.ResourceType = &v
  68823. return s
  68824. }
  68825. // SetState sets the State field's value.
  68826. func (s *TransitGatewayAttachment) SetState(v string) *TransitGatewayAttachment {
  68827. s.State = &v
  68828. return s
  68829. }
  68830. // SetTags sets the Tags field's value.
  68831. func (s *TransitGatewayAttachment) SetTags(v []*Tag) *TransitGatewayAttachment {
  68832. s.Tags = v
  68833. return s
  68834. }
  68835. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  68836. func (s *TransitGatewayAttachment) SetTransitGatewayAttachmentId(v string) *TransitGatewayAttachment {
  68837. s.TransitGatewayAttachmentId = &v
  68838. return s
  68839. }
  68840. // SetTransitGatewayId sets the TransitGatewayId field's value.
  68841. func (s *TransitGatewayAttachment) SetTransitGatewayId(v string) *TransitGatewayAttachment {
  68842. s.TransitGatewayId = &v
  68843. return s
  68844. }
  68845. // SetTransitGatewayOwnerId sets the TransitGatewayOwnerId field's value.
  68846. func (s *TransitGatewayAttachment) SetTransitGatewayOwnerId(v string) *TransitGatewayAttachment {
  68847. s.TransitGatewayOwnerId = &v
  68848. return s
  68849. }
  68850. // Describes an association.
  68851. type TransitGatewayAttachmentAssociation struct {
  68852. _ struct{} `type:"structure"`
  68853. // The state of the association.
  68854. State *string `locationName:"state" type:"string" enum:"TransitGatewayAssociationState"`
  68855. // The ID of the route table for the transit gateway.
  68856. TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
  68857. }
  68858. // String returns the string representation
  68859. func (s TransitGatewayAttachmentAssociation) String() string {
  68860. return awsutil.Prettify(s)
  68861. }
  68862. // GoString returns the string representation
  68863. func (s TransitGatewayAttachmentAssociation) GoString() string {
  68864. return s.String()
  68865. }
  68866. // SetState sets the State field's value.
  68867. func (s *TransitGatewayAttachmentAssociation) SetState(v string) *TransitGatewayAttachmentAssociation {
  68868. s.State = &v
  68869. return s
  68870. }
  68871. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  68872. func (s *TransitGatewayAttachmentAssociation) SetTransitGatewayRouteTableId(v string) *TransitGatewayAttachmentAssociation {
  68873. s.TransitGatewayRouteTableId = &v
  68874. return s
  68875. }
  68876. // Describes a propagation route table.
  68877. type TransitGatewayAttachmentPropagation struct {
  68878. _ struct{} `type:"structure"`
  68879. // The state of the propagation route table.
  68880. State *string `locationName:"state" type:"string" enum:"TransitGatewayPropagationState"`
  68881. // The ID of the propagation route table.
  68882. TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
  68883. }
  68884. // String returns the string representation
  68885. func (s TransitGatewayAttachmentPropagation) String() string {
  68886. return awsutil.Prettify(s)
  68887. }
  68888. // GoString returns the string representation
  68889. func (s TransitGatewayAttachmentPropagation) GoString() string {
  68890. return s.String()
  68891. }
  68892. // SetState sets the State field's value.
  68893. func (s *TransitGatewayAttachmentPropagation) SetState(v string) *TransitGatewayAttachmentPropagation {
  68894. s.State = &v
  68895. return s
  68896. }
  68897. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  68898. func (s *TransitGatewayAttachmentPropagation) SetTransitGatewayRouteTableId(v string) *TransitGatewayAttachmentPropagation {
  68899. s.TransitGatewayRouteTableId = &v
  68900. return s
  68901. }
  68902. // Describes the options for a transit gateway.
  68903. type TransitGatewayOptions struct {
  68904. _ struct{} `type:"structure"`
  68905. // A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
  68906. // The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294
  68907. // for 32-bit ASNs.
  68908. AmazonSideAsn *int64 `locationName:"amazonSideAsn" type:"long"`
  68909. // The ID of the default association route table.
  68910. AssociationDefaultRouteTableId *string `locationName:"associationDefaultRouteTableId" type:"string"`
  68911. // Indicates whether attachment requests are automatically accepted.
  68912. AutoAcceptSharedAttachments *string `locationName:"autoAcceptSharedAttachments" type:"string" enum:"AutoAcceptSharedAttachmentsValue"`
  68913. // Indicates whether resource attachments are automatically associated with
  68914. // the default association route table.
  68915. DefaultRouteTableAssociation *string `locationName:"defaultRouteTableAssociation" type:"string" enum:"DefaultRouteTableAssociationValue"`
  68916. // Indicates whether resource attachments automatically propagate routes to
  68917. // the default propagation route table.
  68918. DefaultRouteTablePropagation *string `locationName:"defaultRouteTablePropagation" type:"string" enum:"DefaultRouteTablePropagationValue"`
  68919. // Indicates whether DNS support is enabled.
  68920. DnsSupport *string `locationName:"dnsSupport" type:"string" enum:"DnsSupportValue"`
  68921. // The ID of the default propagation route table.
  68922. PropagationDefaultRouteTableId *string `locationName:"propagationDefaultRouteTableId" type:"string"`
  68923. // Indicates whether Equal Cost Multipath Protocol support is enabled.
  68924. VpnEcmpSupport *string `locationName:"vpnEcmpSupport" type:"string" enum:"VpnEcmpSupportValue"`
  68925. }
  68926. // String returns the string representation
  68927. func (s TransitGatewayOptions) String() string {
  68928. return awsutil.Prettify(s)
  68929. }
  68930. // GoString returns the string representation
  68931. func (s TransitGatewayOptions) GoString() string {
  68932. return s.String()
  68933. }
  68934. // SetAmazonSideAsn sets the AmazonSideAsn field's value.
  68935. func (s *TransitGatewayOptions) SetAmazonSideAsn(v int64) *TransitGatewayOptions {
  68936. s.AmazonSideAsn = &v
  68937. return s
  68938. }
  68939. // SetAssociationDefaultRouteTableId sets the AssociationDefaultRouteTableId field's value.
  68940. func (s *TransitGatewayOptions) SetAssociationDefaultRouteTableId(v string) *TransitGatewayOptions {
  68941. s.AssociationDefaultRouteTableId = &v
  68942. return s
  68943. }
  68944. // SetAutoAcceptSharedAttachments sets the AutoAcceptSharedAttachments field's value.
  68945. func (s *TransitGatewayOptions) SetAutoAcceptSharedAttachments(v string) *TransitGatewayOptions {
  68946. s.AutoAcceptSharedAttachments = &v
  68947. return s
  68948. }
  68949. // SetDefaultRouteTableAssociation sets the DefaultRouteTableAssociation field's value.
  68950. func (s *TransitGatewayOptions) SetDefaultRouteTableAssociation(v string) *TransitGatewayOptions {
  68951. s.DefaultRouteTableAssociation = &v
  68952. return s
  68953. }
  68954. // SetDefaultRouteTablePropagation sets the DefaultRouteTablePropagation field's value.
  68955. func (s *TransitGatewayOptions) SetDefaultRouteTablePropagation(v string) *TransitGatewayOptions {
  68956. s.DefaultRouteTablePropagation = &v
  68957. return s
  68958. }
  68959. // SetDnsSupport sets the DnsSupport field's value.
  68960. func (s *TransitGatewayOptions) SetDnsSupport(v string) *TransitGatewayOptions {
  68961. s.DnsSupport = &v
  68962. return s
  68963. }
  68964. // SetPropagationDefaultRouteTableId sets the PropagationDefaultRouteTableId field's value.
  68965. func (s *TransitGatewayOptions) SetPropagationDefaultRouteTableId(v string) *TransitGatewayOptions {
  68966. s.PropagationDefaultRouteTableId = &v
  68967. return s
  68968. }
  68969. // SetVpnEcmpSupport sets the VpnEcmpSupport field's value.
  68970. func (s *TransitGatewayOptions) SetVpnEcmpSupport(v string) *TransitGatewayOptions {
  68971. s.VpnEcmpSupport = &v
  68972. return s
  68973. }
  68974. // Describes route propagation.
  68975. type TransitGatewayPropagation struct {
  68976. _ struct{} `type:"structure"`
  68977. // The ID of the resource.
  68978. ResourceId *string `locationName:"resourceId" type:"string"`
  68979. // The resource type.
  68980. ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"`
  68981. // The state.
  68982. State *string `locationName:"state" type:"string" enum:"TransitGatewayPropagationState"`
  68983. // The ID of the attachment.
  68984. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  68985. // The ID of the transit gateway route table.
  68986. TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
  68987. }
  68988. // String returns the string representation
  68989. func (s TransitGatewayPropagation) String() string {
  68990. return awsutil.Prettify(s)
  68991. }
  68992. // GoString returns the string representation
  68993. func (s TransitGatewayPropagation) GoString() string {
  68994. return s.String()
  68995. }
  68996. // SetResourceId sets the ResourceId field's value.
  68997. func (s *TransitGatewayPropagation) SetResourceId(v string) *TransitGatewayPropagation {
  68998. s.ResourceId = &v
  68999. return s
  69000. }
  69001. // SetResourceType sets the ResourceType field's value.
  69002. func (s *TransitGatewayPropagation) SetResourceType(v string) *TransitGatewayPropagation {
  69003. s.ResourceType = &v
  69004. return s
  69005. }
  69006. // SetState sets the State field's value.
  69007. func (s *TransitGatewayPropagation) SetState(v string) *TransitGatewayPropagation {
  69008. s.State = &v
  69009. return s
  69010. }
  69011. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  69012. func (s *TransitGatewayPropagation) SetTransitGatewayAttachmentId(v string) *TransitGatewayPropagation {
  69013. s.TransitGatewayAttachmentId = &v
  69014. return s
  69015. }
  69016. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  69017. func (s *TransitGatewayPropagation) SetTransitGatewayRouteTableId(v string) *TransitGatewayPropagation {
  69018. s.TransitGatewayRouteTableId = &v
  69019. return s
  69020. }
  69021. // Describes the options for a transit gateway.
  69022. type TransitGatewayRequestOptions struct {
  69023. _ struct{} `type:"structure"`
  69024. // A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
  69025. // The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294
  69026. // for 32-bit ASNs.
  69027. AmazonSideAsn *int64 `type:"long"`
  69028. // Enable or disable automatic acceptance of attachment requests. The default
  69029. // is disable.
  69030. AutoAcceptSharedAttachments *string `type:"string" enum:"AutoAcceptSharedAttachmentsValue"`
  69031. // Enable or disable automatic association with the default association route
  69032. // table. The default is enable.
  69033. DefaultRouteTableAssociation *string `type:"string" enum:"DefaultRouteTableAssociationValue"`
  69034. // Enable or disable automatic propagation of routes to the default propagation
  69035. // route table. The default is enable.
  69036. DefaultRouteTablePropagation *string `type:"string" enum:"DefaultRouteTablePropagationValue"`
  69037. // Enable or disable DNS support.
  69038. DnsSupport *string `type:"string" enum:"DnsSupportValue"`
  69039. // Enable or disable Equal Cost Multipath Protocol support.
  69040. VpnEcmpSupport *string `type:"string" enum:"VpnEcmpSupportValue"`
  69041. }
  69042. // String returns the string representation
  69043. func (s TransitGatewayRequestOptions) String() string {
  69044. return awsutil.Prettify(s)
  69045. }
  69046. // GoString returns the string representation
  69047. func (s TransitGatewayRequestOptions) GoString() string {
  69048. return s.String()
  69049. }
  69050. // SetAmazonSideAsn sets the AmazonSideAsn field's value.
  69051. func (s *TransitGatewayRequestOptions) SetAmazonSideAsn(v int64) *TransitGatewayRequestOptions {
  69052. s.AmazonSideAsn = &v
  69053. return s
  69054. }
  69055. // SetAutoAcceptSharedAttachments sets the AutoAcceptSharedAttachments field's value.
  69056. func (s *TransitGatewayRequestOptions) SetAutoAcceptSharedAttachments(v string) *TransitGatewayRequestOptions {
  69057. s.AutoAcceptSharedAttachments = &v
  69058. return s
  69059. }
  69060. // SetDefaultRouteTableAssociation sets the DefaultRouteTableAssociation field's value.
  69061. func (s *TransitGatewayRequestOptions) SetDefaultRouteTableAssociation(v string) *TransitGatewayRequestOptions {
  69062. s.DefaultRouteTableAssociation = &v
  69063. return s
  69064. }
  69065. // SetDefaultRouteTablePropagation sets the DefaultRouteTablePropagation field's value.
  69066. func (s *TransitGatewayRequestOptions) SetDefaultRouteTablePropagation(v string) *TransitGatewayRequestOptions {
  69067. s.DefaultRouteTablePropagation = &v
  69068. return s
  69069. }
  69070. // SetDnsSupport sets the DnsSupport field's value.
  69071. func (s *TransitGatewayRequestOptions) SetDnsSupport(v string) *TransitGatewayRequestOptions {
  69072. s.DnsSupport = &v
  69073. return s
  69074. }
  69075. // SetVpnEcmpSupport sets the VpnEcmpSupport field's value.
  69076. func (s *TransitGatewayRequestOptions) SetVpnEcmpSupport(v string) *TransitGatewayRequestOptions {
  69077. s.VpnEcmpSupport = &v
  69078. return s
  69079. }
  69080. // Describes a route for a transit gateway route table.
  69081. type TransitGatewayRoute struct {
  69082. _ struct{} `type:"structure"`
  69083. // The CIDR block used for destination matches.
  69084. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  69085. // The state of the route.
  69086. State *string `locationName:"state" type:"string" enum:"TransitGatewayRouteState"`
  69087. // The attachments.
  69088. TransitGatewayAttachments []*TransitGatewayRouteAttachment `locationName:"transitGatewayAttachments" locationNameList:"item" type:"list"`
  69089. // The route type.
  69090. Type *string `locationName:"type" type:"string" enum:"TransitGatewayRouteType"`
  69091. }
  69092. // String returns the string representation
  69093. func (s TransitGatewayRoute) String() string {
  69094. return awsutil.Prettify(s)
  69095. }
  69096. // GoString returns the string representation
  69097. func (s TransitGatewayRoute) GoString() string {
  69098. return s.String()
  69099. }
  69100. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  69101. func (s *TransitGatewayRoute) SetDestinationCidrBlock(v string) *TransitGatewayRoute {
  69102. s.DestinationCidrBlock = &v
  69103. return s
  69104. }
  69105. // SetState sets the State field's value.
  69106. func (s *TransitGatewayRoute) SetState(v string) *TransitGatewayRoute {
  69107. s.State = &v
  69108. return s
  69109. }
  69110. // SetTransitGatewayAttachments sets the TransitGatewayAttachments field's value.
  69111. func (s *TransitGatewayRoute) SetTransitGatewayAttachments(v []*TransitGatewayRouteAttachment) *TransitGatewayRoute {
  69112. s.TransitGatewayAttachments = v
  69113. return s
  69114. }
  69115. // SetType sets the Type field's value.
  69116. func (s *TransitGatewayRoute) SetType(v string) *TransitGatewayRoute {
  69117. s.Type = &v
  69118. return s
  69119. }
  69120. // Describes a route attachment.
  69121. type TransitGatewayRouteAttachment struct {
  69122. _ struct{} `type:"structure"`
  69123. // The ID of the resource.
  69124. ResourceId *string `locationName:"resourceId" type:"string"`
  69125. // The resource type.
  69126. ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"`
  69127. // The ID of the attachment.
  69128. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  69129. }
  69130. // String returns the string representation
  69131. func (s TransitGatewayRouteAttachment) String() string {
  69132. return awsutil.Prettify(s)
  69133. }
  69134. // GoString returns the string representation
  69135. func (s TransitGatewayRouteAttachment) GoString() string {
  69136. return s.String()
  69137. }
  69138. // SetResourceId sets the ResourceId field's value.
  69139. func (s *TransitGatewayRouteAttachment) SetResourceId(v string) *TransitGatewayRouteAttachment {
  69140. s.ResourceId = &v
  69141. return s
  69142. }
  69143. // SetResourceType sets the ResourceType field's value.
  69144. func (s *TransitGatewayRouteAttachment) SetResourceType(v string) *TransitGatewayRouteAttachment {
  69145. s.ResourceType = &v
  69146. return s
  69147. }
  69148. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  69149. func (s *TransitGatewayRouteAttachment) SetTransitGatewayAttachmentId(v string) *TransitGatewayRouteAttachment {
  69150. s.TransitGatewayAttachmentId = &v
  69151. return s
  69152. }
  69153. // Describes a transit gateway route table.
  69154. type TransitGatewayRouteTable struct {
  69155. _ struct{} `type:"structure"`
  69156. // The creation time.
  69157. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  69158. // Indicates whether this is the default association route table for the transit
  69159. // gateway.
  69160. DefaultAssociationRouteTable *bool `locationName:"defaultAssociationRouteTable" type:"boolean"`
  69161. // Indicates whether this is the default propagation route table for the transit
  69162. // gateway.
  69163. DefaultPropagationRouteTable *bool `locationName:"defaultPropagationRouteTable" type:"boolean"`
  69164. // The state of the transit gateway route table.
  69165. State *string `locationName:"state" type:"string" enum:"TransitGatewayRouteTableState"`
  69166. // Any tags assigned to the route table.
  69167. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  69168. // The ID of the transit gateway.
  69169. TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
  69170. // The ID of the transit gateway route table.
  69171. TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"`
  69172. }
  69173. // String returns the string representation
  69174. func (s TransitGatewayRouteTable) String() string {
  69175. return awsutil.Prettify(s)
  69176. }
  69177. // GoString returns the string representation
  69178. func (s TransitGatewayRouteTable) GoString() string {
  69179. return s.String()
  69180. }
  69181. // SetCreationTime sets the CreationTime field's value.
  69182. func (s *TransitGatewayRouteTable) SetCreationTime(v time.Time) *TransitGatewayRouteTable {
  69183. s.CreationTime = &v
  69184. return s
  69185. }
  69186. // SetDefaultAssociationRouteTable sets the DefaultAssociationRouteTable field's value.
  69187. func (s *TransitGatewayRouteTable) SetDefaultAssociationRouteTable(v bool) *TransitGatewayRouteTable {
  69188. s.DefaultAssociationRouteTable = &v
  69189. return s
  69190. }
  69191. // SetDefaultPropagationRouteTable sets the DefaultPropagationRouteTable field's value.
  69192. func (s *TransitGatewayRouteTable) SetDefaultPropagationRouteTable(v bool) *TransitGatewayRouteTable {
  69193. s.DefaultPropagationRouteTable = &v
  69194. return s
  69195. }
  69196. // SetState sets the State field's value.
  69197. func (s *TransitGatewayRouteTable) SetState(v string) *TransitGatewayRouteTable {
  69198. s.State = &v
  69199. return s
  69200. }
  69201. // SetTags sets the Tags field's value.
  69202. func (s *TransitGatewayRouteTable) SetTags(v []*Tag) *TransitGatewayRouteTable {
  69203. s.Tags = v
  69204. return s
  69205. }
  69206. // SetTransitGatewayId sets the TransitGatewayId field's value.
  69207. func (s *TransitGatewayRouteTable) SetTransitGatewayId(v string) *TransitGatewayRouteTable {
  69208. s.TransitGatewayId = &v
  69209. return s
  69210. }
  69211. // SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value.
  69212. func (s *TransitGatewayRouteTable) SetTransitGatewayRouteTableId(v string) *TransitGatewayRouteTable {
  69213. s.TransitGatewayRouteTableId = &v
  69214. return s
  69215. }
  69216. // Describes an association between a route table and a resource attachment.
  69217. type TransitGatewayRouteTableAssociation struct {
  69218. _ struct{} `type:"structure"`
  69219. // The ID of the resource.
  69220. ResourceId *string `locationName:"resourceId" type:"string"`
  69221. // The resource type.
  69222. ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"`
  69223. // The state of the association.
  69224. State *string `locationName:"state" type:"string" enum:"TransitGatewayAssociationState"`
  69225. // The ID of the attachment.
  69226. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  69227. }
  69228. // String returns the string representation
  69229. func (s TransitGatewayRouteTableAssociation) String() string {
  69230. return awsutil.Prettify(s)
  69231. }
  69232. // GoString returns the string representation
  69233. func (s TransitGatewayRouteTableAssociation) GoString() string {
  69234. return s.String()
  69235. }
  69236. // SetResourceId sets the ResourceId field's value.
  69237. func (s *TransitGatewayRouteTableAssociation) SetResourceId(v string) *TransitGatewayRouteTableAssociation {
  69238. s.ResourceId = &v
  69239. return s
  69240. }
  69241. // SetResourceType sets the ResourceType field's value.
  69242. func (s *TransitGatewayRouteTableAssociation) SetResourceType(v string) *TransitGatewayRouteTableAssociation {
  69243. s.ResourceType = &v
  69244. return s
  69245. }
  69246. // SetState sets the State field's value.
  69247. func (s *TransitGatewayRouteTableAssociation) SetState(v string) *TransitGatewayRouteTableAssociation {
  69248. s.State = &v
  69249. return s
  69250. }
  69251. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  69252. func (s *TransitGatewayRouteTableAssociation) SetTransitGatewayAttachmentId(v string) *TransitGatewayRouteTableAssociation {
  69253. s.TransitGatewayAttachmentId = &v
  69254. return s
  69255. }
  69256. // Describes a route table propagation.
  69257. type TransitGatewayRouteTablePropagation struct {
  69258. _ struct{} `type:"structure"`
  69259. // The ID of the resource.
  69260. ResourceId *string `locationName:"resourceId" type:"string"`
  69261. // The type of resource.
  69262. ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"`
  69263. // The state of the resource.
  69264. State *string `locationName:"state" type:"string" enum:"TransitGatewayPropagationState"`
  69265. // The ID of the attachment.
  69266. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  69267. }
  69268. // String returns the string representation
  69269. func (s TransitGatewayRouteTablePropagation) String() string {
  69270. return awsutil.Prettify(s)
  69271. }
  69272. // GoString returns the string representation
  69273. func (s TransitGatewayRouteTablePropagation) GoString() string {
  69274. return s.String()
  69275. }
  69276. // SetResourceId sets the ResourceId field's value.
  69277. func (s *TransitGatewayRouteTablePropagation) SetResourceId(v string) *TransitGatewayRouteTablePropagation {
  69278. s.ResourceId = &v
  69279. return s
  69280. }
  69281. // SetResourceType sets the ResourceType field's value.
  69282. func (s *TransitGatewayRouteTablePropagation) SetResourceType(v string) *TransitGatewayRouteTablePropagation {
  69283. s.ResourceType = &v
  69284. return s
  69285. }
  69286. // SetState sets the State field's value.
  69287. func (s *TransitGatewayRouteTablePropagation) SetState(v string) *TransitGatewayRouteTablePropagation {
  69288. s.State = &v
  69289. return s
  69290. }
  69291. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  69292. func (s *TransitGatewayRouteTablePropagation) SetTransitGatewayAttachmentId(v string) *TransitGatewayRouteTablePropagation {
  69293. s.TransitGatewayAttachmentId = &v
  69294. return s
  69295. }
  69296. // Describes a VPC attachment.
  69297. type TransitGatewayVpcAttachment struct {
  69298. _ struct{} `type:"structure"`
  69299. // The creation time.
  69300. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  69301. // The VPC attachment options.
  69302. Options *TransitGatewayVpcAttachmentOptions `locationName:"options" type:"structure"`
  69303. // The state of the VPC attachment.
  69304. State *string `locationName:"state" type:"string" enum:"TransitGatewayAttachmentState"`
  69305. // The IDs of the subnets.
  69306. SubnetIds []*string `locationName:"subnetIds" locationNameList:"item" type:"list"`
  69307. // The tags for the VPC attachment.
  69308. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  69309. // The ID of the attachment.
  69310. TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"`
  69311. // The ID of the transit gateway.
  69312. TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
  69313. // The ID of the VPC.
  69314. VpcId *string `locationName:"vpcId" type:"string"`
  69315. // The ID of the AWS account that owns the VPC.
  69316. VpcOwnerId *string `locationName:"vpcOwnerId" type:"string"`
  69317. }
  69318. // String returns the string representation
  69319. func (s TransitGatewayVpcAttachment) String() string {
  69320. return awsutil.Prettify(s)
  69321. }
  69322. // GoString returns the string representation
  69323. func (s TransitGatewayVpcAttachment) GoString() string {
  69324. return s.String()
  69325. }
  69326. // SetCreationTime sets the CreationTime field's value.
  69327. func (s *TransitGatewayVpcAttachment) SetCreationTime(v time.Time) *TransitGatewayVpcAttachment {
  69328. s.CreationTime = &v
  69329. return s
  69330. }
  69331. // SetOptions sets the Options field's value.
  69332. func (s *TransitGatewayVpcAttachment) SetOptions(v *TransitGatewayVpcAttachmentOptions) *TransitGatewayVpcAttachment {
  69333. s.Options = v
  69334. return s
  69335. }
  69336. // SetState sets the State field's value.
  69337. func (s *TransitGatewayVpcAttachment) SetState(v string) *TransitGatewayVpcAttachment {
  69338. s.State = &v
  69339. return s
  69340. }
  69341. // SetSubnetIds sets the SubnetIds field's value.
  69342. func (s *TransitGatewayVpcAttachment) SetSubnetIds(v []*string) *TransitGatewayVpcAttachment {
  69343. s.SubnetIds = v
  69344. return s
  69345. }
  69346. // SetTags sets the Tags field's value.
  69347. func (s *TransitGatewayVpcAttachment) SetTags(v []*Tag) *TransitGatewayVpcAttachment {
  69348. s.Tags = v
  69349. return s
  69350. }
  69351. // SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.
  69352. func (s *TransitGatewayVpcAttachment) SetTransitGatewayAttachmentId(v string) *TransitGatewayVpcAttachment {
  69353. s.TransitGatewayAttachmentId = &v
  69354. return s
  69355. }
  69356. // SetTransitGatewayId sets the TransitGatewayId field's value.
  69357. func (s *TransitGatewayVpcAttachment) SetTransitGatewayId(v string) *TransitGatewayVpcAttachment {
  69358. s.TransitGatewayId = &v
  69359. return s
  69360. }
  69361. // SetVpcId sets the VpcId field's value.
  69362. func (s *TransitGatewayVpcAttachment) SetVpcId(v string) *TransitGatewayVpcAttachment {
  69363. s.VpcId = &v
  69364. return s
  69365. }
  69366. // SetVpcOwnerId sets the VpcOwnerId field's value.
  69367. func (s *TransitGatewayVpcAttachment) SetVpcOwnerId(v string) *TransitGatewayVpcAttachment {
  69368. s.VpcOwnerId = &v
  69369. return s
  69370. }
  69371. // Describes the VPC attachment options.
  69372. type TransitGatewayVpcAttachmentOptions struct {
  69373. _ struct{} `type:"structure"`
  69374. // Indicates whether DNS support is enabled.
  69375. DnsSupport *string `locationName:"dnsSupport" type:"string" enum:"DnsSupportValue"`
  69376. // Indicates whether IPv6 support is enabled.
  69377. Ipv6Support *string `locationName:"ipv6Support" type:"string" enum:"Ipv6SupportValue"`
  69378. }
  69379. // String returns the string representation
  69380. func (s TransitGatewayVpcAttachmentOptions) String() string {
  69381. return awsutil.Prettify(s)
  69382. }
  69383. // GoString returns the string representation
  69384. func (s TransitGatewayVpcAttachmentOptions) GoString() string {
  69385. return s.String()
  69386. }
  69387. // SetDnsSupport sets the DnsSupport field's value.
  69388. func (s *TransitGatewayVpcAttachmentOptions) SetDnsSupport(v string) *TransitGatewayVpcAttachmentOptions {
  69389. s.DnsSupport = &v
  69390. return s
  69391. }
  69392. // SetIpv6Support sets the Ipv6Support field's value.
  69393. func (s *TransitGatewayVpcAttachmentOptions) SetIpv6Support(v string) *TransitGatewayVpcAttachmentOptions {
  69394. s.Ipv6Support = &v
  69395. return s
  69396. }
  69397. type UnassignIpv6AddressesInput struct {
  69398. _ struct{} `type:"structure"`
  69399. // The IPv6 addresses to unassign from the network interface.
  69400. //
  69401. // Ipv6Addresses is a required field
  69402. Ipv6Addresses []*string `locationName:"ipv6Addresses" locationNameList:"item" type:"list" required:"true"`
  69403. // The ID of the network interface.
  69404. //
  69405. // NetworkInterfaceId is a required field
  69406. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  69407. }
  69408. // String returns the string representation
  69409. func (s UnassignIpv6AddressesInput) String() string {
  69410. return awsutil.Prettify(s)
  69411. }
  69412. // GoString returns the string representation
  69413. func (s UnassignIpv6AddressesInput) GoString() string {
  69414. return s.String()
  69415. }
  69416. // Validate inspects the fields of the type to determine if they are valid.
  69417. func (s *UnassignIpv6AddressesInput) Validate() error {
  69418. invalidParams := request.ErrInvalidParams{Context: "UnassignIpv6AddressesInput"}
  69419. if s.Ipv6Addresses == nil {
  69420. invalidParams.Add(request.NewErrParamRequired("Ipv6Addresses"))
  69421. }
  69422. if s.NetworkInterfaceId == nil {
  69423. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  69424. }
  69425. if invalidParams.Len() > 0 {
  69426. return invalidParams
  69427. }
  69428. return nil
  69429. }
  69430. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  69431. func (s *UnassignIpv6AddressesInput) SetIpv6Addresses(v []*string) *UnassignIpv6AddressesInput {
  69432. s.Ipv6Addresses = v
  69433. return s
  69434. }
  69435. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  69436. func (s *UnassignIpv6AddressesInput) SetNetworkInterfaceId(v string) *UnassignIpv6AddressesInput {
  69437. s.NetworkInterfaceId = &v
  69438. return s
  69439. }
  69440. type UnassignIpv6AddressesOutput struct {
  69441. _ struct{} `type:"structure"`
  69442. // The ID of the network interface.
  69443. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  69444. // The IPv6 addresses that have been unassigned from the network interface.
  69445. UnassignedIpv6Addresses []*string `locationName:"unassignedIpv6Addresses" locationNameList:"item" type:"list"`
  69446. }
  69447. // String returns the string representation
  69448. func (s UnassignIpv6AddressesOutput) String() string {
  69449. return awsutil.Prettify(s)
  69450. }
  69451. // GoString returns the string representation
  69452. func (s UnassignIpv6AddressesOutput) GoString() string {
  69453. return s.String()
  69454. }
  69455. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  69456. func (s *UnassignIpv6AddressesOutput) SetNetworkInterfaceId(v string) *UnassignIpv6AddressesOutput {
  69457. s.NetworkInterfaceId = &v
  69458. return s
  69459. }
  69460. // SetUnassignedIpv6Addresses sets the UnassignedIpv6Addresses field's value.
  69461. func (s *UnassignIpv6AddressesOutput) SetUnassignedIpv6Addresses(v []*string) *UnassignIpv6AddressesOutput {
  69462. s.UnassignedIpv6Addresses = v
  69463. return s
  69464. }
  69465. // Contains the parameters for UnassignPrivateIpAddresses.
  69466. type UnassignPrivateIpAddressesInput struct {
  69467. _ struct{} `type:"structure"`
  69468. // The ID of the network interface.
  69469. //
  69470. // NetworkInterfaceId is a required field
  69471. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  69472. // The secondary private IP addresses to unassign from the network interface.
  69473. // You can specify this option multiple times to unassign more than one IP address.
  69474. //
  69475. // PrivateIpAddresses is a required field
  69476. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list" required:"true"`
  69477. }
  69478. // String returns the string representation
  69479. func (s UnassignPrivateIpAddressesInput) String() string {
  69480. return awsutil.Prettify(s)
  69481. }
  69482. // GoString returns the string representation
  69483. func (s UnassignPrivateIpAddressesInput) GoString() string {
  69484. return s.String()
  69485. }
  69486. // Validate inspects the fields of the type to determine if they are valid.
  69487. func (s *UnassignPrivateIpAddressesInput) Validate() error {
  69488. invalidParams := request.ErrInvalidParams{Context: "UnassignPrivateIpAddressesInput"}
  69489. if s.NetworkInterfaceId == nil {
  69490. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  69491. }
  69492. if s.PrivateIpAddresses == nil {
  69493. invalidParams.Add(request.NewErrParamRequired("PrivateIpAddresses"))
  69494. }
  69495. if invalidParams.Len() > 0 {
  69496. return invalidParams
  69497. }
  69498. return nil
  69499. }
  69500. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  69501. func (s *UnassignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *UnassignPrivateIpAddressesInput {
  69502. s.NetworkInterfaceId = &v
  69503. return s
  69504. }
  69505. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  69506. func (s *UnassignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *UnassignPrivateIpAddressesInput {
  69507. s.PrivateIpAddresses = v
  69508. return s
  69509. }
  69510. type UnassignPrivateIpAddressesOutput struct {
  69511. _ struct{} `type:"structure"`
  69512. }
  69513. // String returns the string representation
  69514. func (s UnassignPrivateIpAddressesOutput) String() string {
  69515. return awsutil.Prettify(s)
  69516. }
  69517. // GoString returns the string representation
  69518. func (s UnassignPrivateIpAddressesOutput) GoString() string {
  69519. return s.String()
  69520. }
  69521. type UnmonitorInstancesInput struct {
  69522. _ struct{} `type:"structure"`
  69523. // Checks whether you have the required permissions for the action, without
  69524. // actually making the request, and provides an error response. If you have
  69525. // the required permissions, the error response is DryRunOperation. Otherwise,
  69526. // it is UnauthorizedOperation.
  69527. DryRun *bool `locationName:"dryRun" type:"boolean"`
  69528. // One or more instance IDs.
  69529. //
  69530. // InstanceIds is a required field
  69531. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  69532. }
  69533. // String returns the string representation
  69534. func (s UnmonitorInstancesInput) String() string {
  69535. return awsutil.Prettify(s)
  69536. }
  69537. // GoString returns the string representation
  69538. func (s UnmonitorInstancesInput) GoString() string {
  69539. return s.String()
  69540. }
  69541. // Validate inspects the fields of the type to determine if they are valid.
  69542. func (s *UnmonitorInstancesInput) Validate() error {
  69543. invalidParams := request.ErrInvalidParams{Context: "UnmonitorInstancesInput"}
  69544. if s.InstanceIds == nil {
  69545. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  69546. }
  69547. if invalidParams.Len() > 0 {
  69548. return invalidParams
  69549. }
  69550. return nil
  69551. }
  69552. // SetDryRun sets the DryRun field's value.
  69553. func (s *UnmonitorInstancesInput) SetDryRun(v bool) *UnmonitorInstancesInput {
  69554. s.DryRun = &v
  69555. return s
  69556. }
  69557. // SetInstanceIds sets the InstanceIds field's value.
  69558. func (s *UnmonitorInstancesInput) SetInstanceIds(v []*string) *UnmonitorInstancesInput {
  69559. s.InstanceIds = v
  69560. return s
  69561. }
  69562. type UnmonitorInstancesOutput struct {
  69563. _ struct{} `type:"structure"`
  69564. // The monitoring information.
  69565. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
  69566. }
  69567. // String returns the string representation
  69568. func (s UnmonitorInstancesOutput) String() string {
  69569. return awsutil.Prettify(s)
  69570. }
  69571. // GoString returns the string representation
  69572. func (s UnmonitorInstancesOutput) GoString() string {
  69573. return s.String()
  69574. }
  69575. // SetInstanceMonitorings sets the InstanceMonitorings field's value.
  69576. func (s *UnmonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *UnmonitorInstancesOutput {
  69577. s.InstanceMonitorings = v
  69578. return s
  69579. }
  69580. // Describes the T2 or T3 instance whose credit option for CPU usage was not
  69581. // modified.
  69582. type UnsuccessfulInstanceCreditSpecificationItem struct {
  69583. _ struct{} `type:"structure"`
  69584. // The applicable error for the T2 or T3 instance whose credit option for CPU
  69585. // usage was not modified.
  69586. Error *UnsuccessfulInstanceCreditSpecificationItemError `locationName:"error" type:"structure"`
  69587. // The ID of the instance.
  69588. InstanceId *string `locationName:"instanceId" type:"string"`
  69589. }
  69590. // String returns the string representation
  69591. func (s UnsuccessfulInstanceCreditSpecificationItem) String() string {
  69592. return awsutil.Prettify(s)
  69593. }
  69594. // GoString returns the string representation
  69595. func (s UnsuccessfulInstanceCreditSpecificationItem) GoString() string {
  69596. return s.String()
  69597. }
  69598. // SetError sets the Error field's value.
  69599. func (s *UnsuccessfulInstanceCreditSpecificationItem) SetError(v *UnsuccessfulInstanceCreditSpecificationItemError) *UnsuccessfulInstanceCreditSpecificationItem {
  69600. s.Error = v
  69601. return s
  69602. }
  69603. // SetInstanceId sets the InstanceId field's value.
  69604. func (s *UnsuccessfulInstanceCreditSpecificationItem) SetInstanceId(v string) *UnsuccessfulInstanceCreditSpecificationItem {
  69605. s.InstanceId = &v
  69606. return s
  69607. }
  69608. // Information about the error for the T2 or T3 instance whose credit option
  69609. // for CPU usage was not modified.
  69610. type UnsuccessfulInstanceCreditSpecificationItemError struct {
  69611. _ struct{} `type:"structure"`
  69612. // The error code.
  69613. Code *string `locationName:"code" type:"string" enum:"UnsuccessfulInstanceCreditSpecificationErrorCode"`
  69614. // The applicable error message.
  69615. Message *string `locationName:"message" type:"string"`
  69616. }
  69617. // String returns the string representation
  69618. func (s UnsuccessfulInstanceCreditSpecificationItemError) String() string {
  69619. return awsutil.Prettify(s)
  69620. }
  69621. // GoString returns the string representation
  69622. func (s UnsuccessfulInstanceCreditSpecificationItemError) GoString() string {
  69623. return s.String()
  69624. }
  69625. // SetCode sets the Code field's value.
  69626. func (s *UnsuccessfulInstanceCreditSpecificationItemError) SetCode(v string) *UnsuccessfulInstanceCreditSpecificationItemError {
  69627. s.Code = &v
  69628. return s
  69629. }
  69630. // SetMessage sets the Message field's value.
  69631. func (s *UnsuccessfulInstanceCreditSpecificationItemError) SetMessage(v string) *UnsuccessfulInstanceCreditSpecificationItemError {
  69632. s.Message = &v
  69633. return s
  69634. }
  69635. // Information about items that were not successfully processed in a batch call.
  69636. type UnsuccessfulItem struct {
  69637. _ struct{} `type:"structure"`
  69638. // Information about the error.
  69639. Error *UnsuccessfulItemError `locationName:"error" type:"structure"`
  69640. // The ID of the resource.
  69641. ResourceId *string `locationName:"resourceId" type:"string"`
  69642. }
  69643. // String returns the string representation
  69644. func (s UnsuccessfulItem) String() string {
  69645. return awsutil.Prettify(s)
  69646. }
  69647. // GoString returns the string representation
  69648. func (s UnsuccessfulItem) GoString() string {
  69649. return s.String()
  69650. }
  69651. // SetError sets the Error field's value.
  69652. func (s *UnsuccessfulItem) SetError(v *UnsuccessfulItemError) *UnsuccessfulItem {
  69653. s.Error = v
  69654. return s
  69655. }
  69656. // SetResourceId sets the ResourceId field's value.
  69657. func (s *UnsuccessfulItem) SetResourceId(v string) *UnsuccessfulItem {
  69658. s.ResourceId = &v
  69659. return s
  69660. }
  69661. // Information about the error that occurred. For more information about errors,
  69662. // see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html).
  69663. type UnsuccessfulItemError struct {
  69664. _ struct{} `type:"structure"`
  69665. // The error code.
  69666. Code *string `locationName:"code" type:"string"`
  69667. // The error message accompanying the error code.
  69668. Message *string `locationName:"message" type:"string"`
  69669. }
  69670. // String returns the string representation
  69671. func (s UnsuccessfulItemError) String() string {
  69672. return awsutil.Prettify(s)
  69673. }
  69674. // GoString returns the string representation
  69675. func (s UnsuccessfulItemError) GoString() string {
  69676. return s.String()
  69677. }
  69678. // SetCode sets the Code field's value.
  69679. func (s *UnsuccessfulItemError) SetCode(v string) *UnsuccessfulItemError {
  69680. s.Code = &v
  69681. return s
  69682. }
  69683. // SetMessage sets the Message field's value.
  69684. func (s *UnsuccessfulItemError) SetMessage(v string) *UnsuccessfulItemError {
  69685. s.Message = &v
  69686. return s
  69687. }
  69688. type UpdateSecurityGroupRuleDescriptionsEgressInput struct {
  69689. _ struct{} `type:"structure"`
  69690. // Checks whether you have the required permissions for the action, without
  69691. // actually making the request, and provides an error response. If you have
  69692. // the required permissions, the error response is DryRunOperation. Otherwise,
  69693. // it is UnauthorizedOperation.
  69694. DryRun *bool `type:"boolean"`
  69695. // The ID of the security group. You must specify either the security group
  69696. // ID or the security group name in the request. For security groups in a nondefault
  69697. // VPC, you must specify the security group ID.
  69698. GroupId *string `type:"string"`
  69699. // [Default VPC] The name of the security group. You must specify either the
  69700. // security group ID or the security group name in the request.
  69701. GroupName *string `type:"string"`
  69702. // The IP permissions for the security group rule.
  69703. //
  69704. // IpPermissions is a required field
  69705. IpPermissions []*IpPermission `locationNameList:"item" type:"list" required:"true"`
  69706. }
  69707. // String returns the string representation
  69708. func (s UpdateSecurityGroupRuleDescriptionsEgressInput) String() string {
  69709. return awsutil.Prettify(s)
  69710. }
  69711. // GoString returns the string representation
  69712. func (s UpdateSecurityGroupRuleDescriptionsEgressInput) GoString() string {
  69713. return s.String()
  69714. }
  69715. // Validate inspects the fields of the type to determine if they are valid.
  69716. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) Validate() error {
  69717. invalidParams := request.ErrInvalidParams{Context: "UpdateSecurityGroupRuleDescriptionsEgressInput"}
  69718. if s.IpPermissions == nil {
  69719. invalidParams.Add(request.NewErrParamRequired("IpPermissions"))
  69720. }
  69721. if invalidParams.Len() > 0 {
  69722. return invalidParams
  69723. }
  69724. return nil
  69725. }
  69726. // SetDryRun sets the DryRun field's value.
  69727. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetDryRun(v bool) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  69728. s.DryRun = &v
  69729. return s
  69730. }
  69731. // SetGroupId sets the GroupId field's value.
  69732. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetGroupId(v string) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  69733. s.GroupId = &v
  69734. return s
  69735. }
  69736. // SetGroupName sets the GroupName field's value.
  69737. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetGroupName(v string) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  69738. s.GroupName = &v
  69739. return s
  69740. }
  69741. // SetIpPermissions sets the IpPermissions field's value.
  69742. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetIpPermissions(v []*IpPermission) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  69743. s.IpPermissions = v
  69744. return s
  69745. }
  69746. type UpdateSecurityGroupRuleDescriptionsEgressOutput struct {
  69747. _ struct{} `type:"structure"`
  69748. // Returns true if the request succeeds; otherwise, returns an error.
  69749. Return *bool `locationName:"return" type:"boolean"`
  69750. }
  69751. // String returns the string representation
  69752. func (s UpdateSecurityGroupRuleDescriptionsEgressOutput) String() string {
  69753. return awsutil.Prettify(s)
  69754. }
  69755. // GoString returns the string representation
  69756. func (s UpdateSecurityGroupRuleDescriptionsEgressOutput) GoString() string {
  69757. return s.String()
  69758. }
  69759. // SetReturn sets the Return field's value.
  69760. func (s *UpdateSecurityGroupRuleDescriptionsEgressOutput) SetReturn(v bool) *UpdateSecurityGroupRuleDescriptionsEgressOutput {
  69761. s.Return = &v
  69762. return s
  69763. }
  69764. type UpdateSecurityGroupRuleDescriptionsIngressInput struct {
  69765. _ struct{} `type:"structure"`
  69766. // Checks whether you have the required permissions for the action, without
  69767. // actually making the request, and provides an error response. If you have
  69768. // the required permissions, the error response is DryRunOperation. Otherwise,
  69769. // it is UnauthorizedOperation.
  69770. DryRun *bool `type:"boolean"`
  69771. // The ID of the security group. You must specify either the security group
  69772. // ID or the security group name in the request. For security groups in a nondefault
  69773. // VPC, you must specify the security group ID.
  69774. GroupId *string `type:"string"`
  69775. // [EC2-Classic, default VPC] The name of the security group. You must specify
  69776. // either the security group ID or the security group name in the request.
  69777. GroupName *string `type:"string"`
  69778. // The IP permissions for the security group rule.
  69779. //
  69780. // IpPermissions is a required field
  69781. IpPermissions []*IpPermission `locationNameList:"item" type:"list" required:"true"`
  69782. }
  69783. // String returns the string representation
  69784. func (s UpdateSecurityGroupRuleDescriptionsIngressInput) String() string {
  69785. return awsutil.Prettify(s)
  69786. }
  69787. // GoString returns the string representation
  69788. func (s UpdateSecurityGroupRuleDescriptionsIngressInput) GoString() string {
  69789. return s.String()
  69790. }
  69791. // Validate inspects the fields of the type to determine if they are valid.
  69792. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) Validate() error {
  69793. invalidParams := request.ErrInvalidParams{Context: "UpdateSecurityGroupRuleDescriptionsIngressInput"}
  69794. if s.IpPermissions == nil {
  69795. invalidParams.Add(request.NewErrParamRequired("IpPermissions"))
  69796. }
  69797. if invalidParams.Len() > 0 {
  69798. return invalidParams
  69799. }
  69800. return nil
  69801. }
  69802. // SetDryRun sets the DryRun field's value.
  69803. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetDryRun(v bool) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  69804. s.DryRun = &v
  69805. return s
  69806. }
  69807. // SetGroupId sets the GroupId field's value.
  69808. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetGroupId(v string) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  69809. s.GroupId = &v
  69810. return s
  69811. }
  69812. // SetGroupName sets the GroupName field's value.
  69813. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetGroupName(v string) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  69814. s.GroupName = &v
  69815. return s
  69816. }
  69817. // SetIpPermissions sets the IpPermissions field's value.
  69818. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetIpPermissions(v []*IpPermission) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  69819. s.IpPermissions = v
  69820. return s
  69821. }
  69822. type UpdateSecurityGroupRuleDescriptionsIngressOutput struct {
  69823. _ struct{} `type:"structure"`
  69824. // Returns true if the request succeeds; otherwise, returns an error.
  69825. Return *bool `locationName:"return" type:"boolean"`
  69826. }
  69827. // String returns the string representation
  69828. func (s UpdateSecurityGroupRuleDescriptionsIngressOutput) String() string {
  69829. return awsutil.Prettify(s)
  69830. }
  69831. // GoString returns the string representation
  69832. func (s UpdateSecurityGroupRuleDescriptionsIngressOutput) GoString() string {
  69833. return s.String()
  69834. }
  69835. // SetReturn sets the Return field's value.
  69836. func (s *UpdateSecurityGroupRuleDescriptionsIngressOutput) SetReturn(v bool) *UpdateSecurityGroupRuleDescriptionsIngressOutput {
  69837. s.Return = &v
  69838. return s
  69839. }
  69840. // Describes the S3 bucket for the disk image.
  69841. type UserBucket struct {
  69842. _ struct{} `type:"structure"`
  69843. // The name of the S3 bucket where the disk image is located.
  69844. S3Bucket *string `type:"string"`
  69845. // The file name of the disk image.
  69846. S3Key *string `type:"string"`
  69847. }
  69848. // String returns the string representation
  69849. func (s UserBucket) String() string {
  69850. return awsutil.Prettify(s)
  69851. }
  69852. // GoString returns the string representation
  69853. func (s UserBucket) GoString() string {
  69854. return s.String()
  69855. }
  69856. // SetS3Bucket sets the S3Bucket field's value.
  69857. func (s *UserBucket) SetS3Bucket(v string) *UserBucket {
  69858. s.S3Bucket = &v
  69859. return s
  69860. }
  69861. // SetS3Key sets the S3Key field's value.
  69862. func (s *UserBucket) SetS3Key(v string) *UserBucket {
  69863. s.S3Key = &v
  69864. return s
  69865. }
  69866. // Describes the S3 bucket for the disk image.
  69867. type UserBucketDetails struct {
  69868. _ struct{} `type:"structure"`
  69869. // The S3 bucket from which the disk image was created.
  69870. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  69871. // The file name of the disk image.
  69872. S3Key *string `locationName:"s3Key" type:"string"`
  69873. }
  69874. // String returns the string representation
  69875. func (s UserBucketDetails) String() string {
  69876. return awsutil.Prettify(s)
  69877. }
  69878. // GoString returns the string representation
  69879. func (s UserBucketDetails) GoString() string {
  69880. return s.String()
  69881. }
  69882. // SetS3Bucket sets the S3Bucket field's value.
  69883. func (s *UserBucketDetails) SetS3Bucket(v string) *UserBucketDetails {
  69884. s.S3Bucket = &v
  69885. return s
  69886. }
  69887. // SetS3Key sets the S3Key field's value.
  69888. func (s *UserBucketDetails) SetS3Key(v string) *UserBucketDetails {
  69889. s.S3Key = &v
  69890. return s
  69891. }
  69892. // Describes the user data for an instance.
  69893. type UserData struct {
  69894. _ struct{} `type:"structure"`
  69895. // The user data. If you are using an AWS SDK or command line tool, Base64-encoding
  69896. // is performed for you, and you can load the text from a file. Otherwise, you
  69897. // must provide Base64-encoded text.
  69898. Data *string `locationName:"data" type:"string"`
  69899. }
  69900. // String returns the string representation
  69901. func (s UserData) String() string {
  69902. return awsutil.Prettify(s)
  69903. }
  69904. // GoString returns the string representation
  69905. func (s UserData) GoString() string {
  69906. return s.String()
  69907. }
  69908. // SetData sets the Data field's value.
  69909. func (s *UserData) SetData(v string) *UserData {
  69910. s.Data = &v
  69911. return s
  69912. }
  69913. // Describes a security group and AWS account ID pair.
  69914. type UserIdGroupPair struct {
  69915. _ struct{} `type:"structure"`
  69916. // A description for the security group rule that references this user ID group
  69917. // pair.
  69918. //
  69919. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  69920. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  69921. Description *string `locationName:"description" type:"string"`
  69922. // The ID of the security group.
  69923. GroupId *string `locationName:"groupId" type:"string"`
  69924. // The name of the security group. In a request, use this parameter for a security
  69925. // group in EC2-Classic or a default VPC only. For a security group in a nondefault
  69926. // VPC, use the security group ID.
  69927. //
  69928. // For a referenced security group in another VPC, this value is not returned
  69929. // if the referenced security group is deleted.
  69930. GroupName *string `locationName:"groupName" type:"string"`
  69931. // The status of a VPC peering connection, if applicable.
  69932. PeeringStatus *string `locationName:"peeringStatus" type:"string"`
  69933. // The ID of an AWS account.
  69934. //
  69935. // For a referenced security group in another VPC, the account ID of the referenced
  69936. // security group is returned in the response. If the referenced security group
  69937. // is deleted, this value is not returned.
  69938. //
  69939. // [EC2-Classic] Required when adding or removing rules that reference a security
  69940. // group in another AWS account.
  69941. UserId *string `locationName:"userId" type:"string"`
  69942. // The ID of the VPC for the referenced security group, if applicable.
  69943. VpcId *string `locationName:"vpcId" type:"string"`
  69944. // The ID of the VPC peering connection, if applicable.
  69945. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  69946. }
  69947. // String returns the string representation
  69948. func (s UserIdGroupPair) String() string {
  69949. return awsutil.Prettify(s)
  69950. }
  69951. // GoString returns the string representation
  69952. func (s UserIdGroupPair) GoString() string {
  69953. return s.String()
  69954. }
  69955. // SetDescription sets the Description field's value.
  69956. func (s *UserIdGroupPair) SetDescription(v string) *UserIdGroupPair {
  69957. s.Description = &v
  69958. return s
  69959. }
  69960. // SetGroupId sets the GroupId field's value.
  69961. func (s *UserIdGroupPair) SetGroupId(v string) *UserIdGroupPair {
  69962. s.GroupId = &v
  69963. return s
  69964. }
  69965. // SetGroupName sets the GroupName field's value.
  69966. func (s *UserIdGroupPair) SetGroupName(v string) *UserIdGroupPair {
  69967. s.GroupName = &v
  69968. return s
  69969. }
  69970. // SetPeeringStatus sets the PeeringStatus field's value.
  69971. func (s *UserIdGroupPair) SetPeeringStatus(v string) *UserIdGroupPair {
  69972. s.PeeringStatus = &v
  69973. return s
  69974. }
  69975. // SetUserId sets the UserId field's value.
  69976. func (s *UserIdGroupPair) SetUserId(v string) *UserIdGroupPair {
  69977. s.UserId = &v
  69978. return s
  69979. }
  69980. // SetVpcId sets the VpcId field's value.
  69981. func (s *UserIdGroupPair) SetVpcId(v string) *UserIdGroupPair {
  69982. s.VpcId = &v
  69983. return s
  69984. }
  69985. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  69986. func (s *UserIdGroupPair) SetVpcPeeringConnectionId(v string) *UserIdGroupPair {
  69987. s.VpcPeeringConnectionId = &v
  69988. return s
  69989. }
  69990. // Describes telemetry for a VPN tunnel.
  69991. type VgwTelemetry struct {
  69992. _ struct{} `type:"structure"`
  69993. // The number of accepted routes.
  69994. AcceptedRouteCount *int64 `locationName:"acceptedRouteCount" type:"integer"`
  69995. // The date and time of the last change in status.
  69996. LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp"`
  69997. // The Internet-routable IP address of the virtual private gateway's outside
  69998. // interface.
  69999. OutsideIpAddress *string `locationName:"outsideIpAddress" type:"string"`
  70000. // The status of the VPN tunnel.
  70001. Status *string `locationName:"status" type:"string" enum:"TelemetryStatus"`
  70002. // If an error occurs, a description of the error.
  70003. StatusMessage *string `locationName:"statusMessage" type:"string"`
  70004. }
  70005. // String returns the string representation
  70006. func (s VgwTelemetry) String() string {
  70007. return awsutil.Prettify(s)
  70008. }
  70009. // GoString returns the string representation
  70010. func (s VgwTelemetry) GoString() string {
  70011. return s.String()
  70012. }
  70013. // SetAcceptedRouteCount sets the AcceptedRouteCount field's value.
  70014. func (s *VgwTelemetry) SetAcceptedRouteCount(v int64) *VgwTelemetry {
  70015. s.AcceptedRouteCount = &v
  70016. return s
  70017. }
  70018. // SetLastStatusChange sets the LastStatusChange field's value.
  70019. func (s *VgwTelemetry) SetLastStatusChange(v time.Time) *VgwTelemetry {
  70020. s.LastStatusChange = &v
  70021. return s
  70022. }
  70023. // SetOutsideIpAddress sets the OutsideIpAddress field's value.
  70024. func (s *VgwTelemetry) SetOutsideIpAddress(v string) *VgwTelemetry {
  70025. s.OutsideIpAddress = &v
  70026. return s
  70027. }
  70028. // SetStatus sets the Status field's value.
  70029. func (s *VgwTelemetry) SetStatus(v string) *VgwTelemetry {
  70030. s.Status = &v
  70031. return s
  70032. }
  70033. // SetStatusMessage sets the StatusMessage field's value.
  70034. func (s *VgwTelemetry) SetStatusMessage(v string) *VgwTelemetry {
  70035. s.StatusMessage = &v
  70036. return s
  70037. }
  70038. // Describes a volume.
  70039. type Volume struct {
  70040. _ struct{} `type:"structure"`
  70041. // Information about the volume attachments.
  70042. Attachments []*VolumeAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  70043. // The Availability Zone for the volume.
  70044. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  70045. // The time stamp when volume creation was initiated.
  70046. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  70047. // Indicates whether the volume will be encrypted.
  70048. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  70049. // The number of I/O operations per second (IOPS) that the volume supports.
  70050. // For Provisioned IOPS SSD volumes, this represents the number of IOPS that
  70051. // are provisioned for the volume. For General Purpose SSD volumes, this represents
  70052. // the baseline performance of the volume and the rate at which the volume accumulates
  70053. // I/O credits for bursting. For more information about General Purpose SSD
  70054. // baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types
  70055. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  70056. // in the Amazon Elastic Compute Cloud User Guide.
  70057. //
  70058. // Constraints: Range is 100-16,000 IOPS for gp2 volumes and 100 to 64,000IOPS
  70059. // for io1 volumes in most regions. Maximum io1IOPS of 64,000 is guaranteed
  70060. // only on Nitro-based instances (AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances).
  70061. // Other instance families guarantee performance up to 32,000 IOPS. For more
  70062. // information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  70063. // in the Amazon Elastic Compute Cloud User Guide.
  70064. //
  70065. // Condition: This parameter is required for requests to create io1 volumes;
  70066. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  70067. Iops *int64 `locationName:"iops" type:"integer"`
  70068. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  70069. // key (CMK) that was used to protect the volume encryption key for the volume.
  70070. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  70071. // The size of the volume, in GiBs.
  70072. Size *int64 `locationName:"size" type:"integer"`
  70073. // The snapshot from which the volume was created, if applicable.
  70074. SnapshotId *string `locationName:"snapshotId" type:"string"`
  70075. // The volume state.
  70076. State *string `locationName:"status" type:"string" enum:"VolumeState"`
  70077. // Any tags assigned to the volume.
  70078. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  70079. // The ID of the volume.
  70080. VolumeId *string `locationName:"volumeId" type:"string"`
  70081. // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
  70082. // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
  70083. // for Magnetic volumes.
  70084. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  70085. }
  70086. // String returns the string representation
  70087. func (s Volume) String() string {
  70088. return awsutil.Prettify(s)
  70089. }
  70090. // GoString returns the string representation
  70091. func (s Volume) GoString() string {
  70092. return s.String()
  70093. }
  70094. // SetAttachments sets the Attachments field's value.
  70095. func (s *Volume) SetAttachments(v []*VolumeAttachment) *Volume {
  70096. s.Attachments = v
  70097. return s
  70098. }
  70099. // SetAvailabilityZone sets the AvailabilityZone field's value.
  70100. func (s *Volume) SetAvailabilityZone(v string) *Volume {
  70101. s.AvailabilityZone = &v
  70102. return s
  70103. }
  70104. // SetCreateTime sets the CreateTime field's value.
  70105. func (s *Volume) SetCreateTime(v time.Time) *Volume {
  70106. s.CreateTime = &v
  70107. return s
  70108. }
  70109. // SetEncrypted sets the Encrypted field's value.
  70110. func (s *Volume) SetEncrypted(v bool) *Volume {
  70111. s.Encrypted = &v
  70112. return s
  70113. }
  70114. // SetIops sets the Iops field's value.
  70115. func (s *Volume) SetIops(v int64) *Volume {
  70116. s.Iops = &v
  70117. return s
  70118. }
  70119. // SetKmsKeyId sets the KmsKeyId field's value.
  70120. func (s *Volume) SetKmsKeyId(v string) *Volume {
  70121. s.KmsKeyId = &v
  70122. return s
  70123. }
  70124. // SetSize sets the Size field's value.
  70125. func (s *Volume) SetSize(v int64) *Volume {
  70126. s.Size = &v
  70127. return s
  70128. }
  70129. // SetSnapshotId sets the SnapshotId field's value.
  70130. func (s *Volume) SetSnapshotId(v string) *Volume {
  70131. s.SnapshotId = &v
  70132. return s
  70133. }
  70134. // SetState sets the State field's value.
  70135. func (s *Volume) SetState(v string) *Volume {
  70136. s.State = &v
  70137. return s
  70138. }
  70139. // SetTags sets the Tags field's value.
  70140. func (s *Volume) SetTags(v []*Tag) *Volume {
  70141. s.Tags = v
  70142. return s
  70143. }
  70144. // SetVolumeId sets the VolumeId field's value.
  70145. func (s *Volume) SetVolumeId(v string) *Volume {
  70146. s.VolumeId = &v
  70147. return s
  70148. }
  70149. // SetVolumeType sets the VolumeType field's value.
  70150. func (s *Volume) SetVolumeType(v string) *Volume {
  70151. s.VolumeType = &v
  70152. return s
  70153. }
  70154. // Describes volume attachment details.
  70155. type VolumeAttachment struct {
  70156. _ struct{} `type:"structure"`
  70157. // The time stamp when the attachment initiated.
  70158. AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
  70159. // Indicates whether the EBS volume is deleted on instance termination.
  70160. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  70161. // The device name.
  70162. Device *string `locationName:"device" type:"string"`
  70163. // The ID of the instance.
  70164. InstanceId *string `locationName:"instanceId" type:"string"`
  70165. // The attachment state of the volume.
  70166. State *string `locationName:"status" type:"string" enum:"VolumeAttachmentState"`
  70167. // The ID of the volume.
  70168. VolumeId *string `locationName:"volumeId" type:"string"`
  70169. }
  70170. // String returns the string representation
  70171. func (s VolumeAttachment) String() string {
  70172. return awsutil.Prettify(s)
  70173. }
  70174. // GoString returns the string representation
  70175. func (s VolumeAttachment) GoString() string {
  70176. return s.String()
  70177. }
  70178. // SetAttachTime sets the AttachTime field's value.
  70179. func (s *VolumeAttachment) SetAttachTime(v time.Time) *VolumeAttachment {
  70180. s.AttachTime = &v
  70181. return s
  70182. }
  70183. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  70184. func (s *VolumeAttachment) SetDeleteOnTermination(v bool) *VolumeAttachment {
  70185. s.DeleteOnTermination = &v
  70186. return s
  70187. }
  70188. // SetDevice sets the Device field's value.
  70189. func (s *VolumeAttachment) SetDevice(v string) *VolumeAttachment {
  70190. s.Device = &v
  70191. return s
  70192. }
  70193. // SetInstanceId sets the InstanceId field's value.
  70194. func (s *VolumeAttachment) SetInstanceId(v string) *VolumeAttachment {
  70195. s.InstanceId = &v
  70196. return s
  70197. }
  70198. // SetState sets the State field's value.
  70199. func (s *VolumeAttachment) SetState(v string) *VolumeAttachment {
  70200. s.State = &v
  70201. return s
  70202. }
  70203. // SetVolumeId sets the VolumeId field's value.
  70204. func (s *VolumeAttachment) SetVolumeId(v string) *VolumeAttachment {
  70205. s.VolumeId = &v
  70206. return s
  70207. }
  70208. // Describes an EBS volume.
  70209. type VolumeDetail struct {
  70210. _ struct{} `type:"structure"`
  70211. // The size of the volume, in GiB.
  70212. //
  70213. // Size is a required field
  70214. Size *int64 `locationName:"size" type:"long" required:"true"`
  70215. }
  70216. // String returns the string representation
  70217. func (s VolumeDetail) String() string {
  70218. return awsutil.Prettify(s)
  70219. }
  70220. // GoString returns the string representation
  70221. func (s VolumeDetail) GoString() string {
  70222. return s.String()
  70223. }
  70224. // Validate inspects the fields of the type to determine if they are valid.
  70225. func (s *VolumeDetail) Validate() error {
  70226. invalidParams := request.ErrInvalidParams{Context: "VolumeDetail"}
  70227. if s.Size == nil {
  70228. invalidParams.Add(request.NewErrParamRequired("Size"))
  70229. }
  70230. if invalidParams.Len() > 0 {
  70231. return invalidParams
  70232. }
  70233. return nil
  70234. }
  70235. // SetSize sets the Size field's value.
  70236. func (s *VolumeDetail) SetSize(v int64) *VolumeDetail {
  70237. s.Size = &v
  70238. return s
  70239. }
  70240. // Describes the modification status of an EBS volume.
  70241. //
  70242. // If the volume has never been modified, some element values will be null.
  70243. type VolumeModification struct {
  70244. _ struct{} `type:"structure"`
  70245. // The modification completion or failure time.
  70246. EndTime *time.Time `locationName:"endTime" type:"timestamp"`
  70247. // The current modification state. The modification state is null for unmodified
  70248. // volumes.
  70249. ModificationState *string `locationName:"modificationState" type:"string" enum:"VolumeModificationState"`
  70250. // The original IOPS rate of the volume.
  70251. OriginalIops *int64 `locationName:"originalIops" type:"integer"`
  70252. // The original size of the volume.
  70253. OriginalSize *int64 `locationName:"originalSize" type:"integer"`
  70254. // The original EBS volume type of the volume.
  70255. OriginalVolumeType *string `locationName:"originalVolumeType" type:"string" enum:"VolumeType"`
  70256. // The modification progress, from 0 to 100 percent complete.
  70257. Progress *int64 `locationName:"progress" type:"long"`
  70258. // The modification start time.
  70259. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  70260. // A status message about the modification progress or failure.
  70261. StatusMessage *string `locationName:"statusMessage" type:"string"`
  70262. // The target IOPS rate of the volume.
  70263. TargetIops *int64 `locationName:"targetIops" type:"integer"`
  70264. // The target size of the volume, in GiB.
  70265. TargetSize *int64 `locationName:"targetSize" type:"integer"`
  70266. // The target EBS volume type of the volume.
  70267. TargetVolumeType *string `locationName:"targetVolumeType" type:"string" enum:"VolumeType"`
  70268. // The ID of the volume.
  70269. VolumeId *string `locationName:"volumeId" type:"string"`
  70270. }
  70271. // String returns the string representation
  70272. func (s VolumeModification) String() string {
  70273. return awsutil.Prettify(s)
  70274. }
  70275. // GoString returns the string representation
  70276. func (s VolumeModification) GoString() string {
  70277. return s.String()
  70278. }
  70279. // SetEndTime sets the EndTime field's value.
  70280. func (s *VolumeModification) SetEndTime(v time.Time) *VolumeModification {
  70281. s.EndTime = &v
  70282. return s
  70283. }
  70284. // SetModificationState sets the ModificationState field's value.
  70285. func (s *VolumeModification) SetModificationState(v string) *VolumeModification {
  70286. s.ModificationState = &v
  70287. return s
  70288. }
  70289. // SetOriginalIops sets the OriginalIops field's value.
  70290. func (s *VolumeModification) SetOriginalIops(v int64) *VolumeModification {
  70291. s.OriginalIops = &v
  70292. return s
  70293. }
  70294. // SetOriginalSize sets the OriginalSize field's value.
  70295. func (s *VolumeModification) SetOriginalSize(v int64) *VolumeModification {
  70296. s.OriginalSize = &v
  70297. return s
  70298. }
  70299. // SetOriginalVolumeType sets the OriginalVolumeType field's value.
  70300. func (s *VolumeModification) SetOriginalVolumeType(v string) *VolumeModification {
  70301. s.OriginalVolumeType = &v
  70302. return s
  70303. }
  70304. // SetProgress sets the Progress field's value.
  70305. func (s *VolumeModification) SetProgress(v int64) *VolumeModification {
  70306. s.Progress = &v
  70307. return s
  70308. }
  70309. // SetStartTime sets the StartTime field's value.
  70310. func (s *VolumeModification) SetStartTime(v time.Time) *VolumeModification {
  70311. s.StartTime = &v
  70312. return s
  70313. }
  70314. // SetStatusMessage sets the StatusMessage field's value.
  70315. func (s *VolumeModification) SetStatusMessage(v string) *VolumeModification {
  70316. s.StatusMessage = &v
  70317. return s
  70318. }
  70319. // SetTargetIops sets the TargetIops field's value.
  70320. func (s *VolumeModification) SetTargetIops(v int64) *VolumeModification {
  70321. s.TargetIops = &v
  70322. return s
  70323. }
  70324. // SetTargetSize sets the TargetSize field's value.
  70325. func (s *VolumeModification) SetTargetSize(v int64) *VolumeModification {
  70326. s.TargetSize = &v
  70327. return s
  70328. }
  70329. // SetTargetVolumeType sets the TargetVolumeType field's value.
  70330. func (s *VolumeModification) SetTargetVolumeType(v string) *VolumeModification {
  70331. s.TargetVolumeType = &v
  70332. return s
  70333. }
  70334. // SetVolumeId sets the VolumeId field's value.
  70335. func (s *VolumeModification) SetVolumeId(v string) *VolumeModification {
  70336. s.VolumeId = &v
  70337. return s
  70338. }
  70339. // Describes a volume status operation code.
  70340. type VolumeStatusAction struct {
  70341. _ struct{} `type:"structure"`
  70342. // The code identifying the operation, for example, enable-volume-io.
  70343. Code *string `locationName:"code" type:"string"`
  70344. // A description of the operation.
  70345. Description *string `locationName:"description" type:"string"`
  70346. // The ID of the event associated with this operation.
  70347. EventId *string `locationName:"eventId" type:"string"`
  70348. // The event type associated with this operation.
  70349. EventType *string `locationName:"eventType" type:"string"`
  70350. }
  70351. // String returns the string representation
  70352. func (s VolumeStatusAction) String() string {
  70353. return awsutil.Prettify(s)
  70354. }
  70355. // GoString returns the string representation
  70356. func (s VolumeStatusAction) GoString() string {
  70357. return s.String()
  70358. }
  70359. // SetCode sets the Code field's value.
  70360. func (s *VolumeStatusAction) SetCode(v string) *VolumeStatusAction {
  70361. s.Code = &v
  70362. return s
  70363. }
  70364. // SetDescription sets the Description field's value.
  70365. func (s *VolumeStatusAction) SetDescription(v string) *VolumeStatusAction {
  70366. s.Description = &v
  70367. return s
  70368. }
  70369. // SetEventId sets the EventId field's value.
  70370. func (s *VolumeStatusAction) SetEventId(v string) *VolumeStatusAction {
  70371. s.EventId = &v
  70372. return s
  70373. }
  70374. // SetEventType sets the EventType field's value.
  70375. func (s *VolumeStatusAction) SetEventType(v string) *VolumeStatusAction {
  70376. s.EventType = &v
  70377. return s
  70378. }
  70379. // Describes a volume status.
  70380. type VolumeStatusDetails struct {
  70381. _ struct{} `type:"structure"`
  70382. // The name of the volume status.
  70383. Name *string `locationName:"name" type:"string" enum:"VolumeStatusName"`
  70384. // The intended status of the volume status.
  70385. Status *string `locationName:"status" type:"string"`
  70386. }
  70387. // String returns the string representation
  70388. func (s VolumeStatusDetails) String() string {
  70389. return awsutil.Prettify(s)
  70390. }
  70391. // GoString returns the string representation
  70392. func (s VolumeStatusDetails) GoString() string {
  70393. return s.String()
  70394. }
  70395. // SetName sets the Name field's value.
  70396. func (s *VolumeStatusDetails) SetName(v string) *VolumeStatusDetails {
  70397. s.Name = &v
  70398. return s
  70399. }
  70400. // SetStatus sets the Status field's value.
  70401. func (s *VolumeStatusDetails) SetStatus(v string) *VolumeStatusDetails {
  70402. s.Status = &v
  70403. return s
  70404. }
  70405. // Describes a volume status event.
  70406. type VolumeStatusEvent struct {
  70407. _ struct{} `type:"structure"`
  70408. // A description of the event.
  70409. Description *string `locationName:"description" type:"string"`
  70410. // The ID of this event.
  70411. EventId *string `locationName:"eventId" type:"string"`
  70412. // The type of this event.
  70413. EventType *string `locationName:"eventType" type:"string"`
  70414. // The latest end time of the event.
  70415. NotAfter *time.Time `locationName:"notAfter" type:"timestamp"`
  70416. // The earliest start time of the event.
  70417. NotBefore *time.Time `locationName:"notBefore" type:"timestamp"`
  70418. }
  70419. // String returns the string representation
  70420. func (s VolumeStatusEvent) String() string {
  70421. return awsutil.Prettify(s)
  70422. }
  70423. // GoString returns the string representation
  70424. func (s VolumeStatusEvent) GoString() string {
  70425. return s.String()
  70426. }
  70427. // SetDescription sets the Description field's value.
  70428. func (s *VolumeStatusEvent) SetDescription(v string) *VolumeStatusEvent {
  70429. s.Description = &v
  70430. return s
  70431. }
  70432. // SetEventId sets the EventId field's value.
  70433. func (s *VolumeStatusEvent) SetEventId(v string) *VolumeStatusEvent {
  70434. s.EventId = &v
  70435. return s
  70436. }
  70437. // SetEventType sets the EventType field's value.
  70438. func (s *VolumeStatusEvent) SetEventType(v string) *VolumeStatusEvent {
  70439. s.EventType = &v
  70440. return s
  70441. }
  70442. // SetNotAfter sets the NotAfter field's value.
  70443. func (s *VolumeStatusEvent) SetNotAfter(v time.Time) *VolumeStatusEvent {
  70444. s.NotAfter = &v
  70445. return s
  70446. }
  70447. // SetNotBefore sets the NotBefore field's value.
  70448. func (s *VolumeStatusEvent) SetNotBefore(v time.Time) *VolumeStatusEvent {
  70449. s.NotBefore = &v
  70450. return s
  70451. }
  70452. // Describes the status of a volume.
  70453. type VolumeStatusInfo struct {
  70454. _ struct{} `type:"structure"`
  70455. // The details of the volume status.
  70456. Details []*VolumeStatusDetails `locationName:"details" locationNameList:"item" type:"list"`
  70457. // The status of the volume.
  70458. Status *string `locationName:"status" type:"string" enum:"VolumeStatusInfoStatus"`
  70459. }
  70460. // String returns the string representation
  70461. func (s VolumeStatusInfo) String() string {
  70462. return awsutil.Prettify(s)
  70463. }
  70464. // GoString returns the string representation
  70465. func (s VolumeStatusInfo) GoString() string {
  70466. return s.String()
  70467. }
  70468. // SetDetails sets the Details field's value.
  70469. func (s *VolumeStatusInfo) SetDetails(v []*VolumeStatusDetails) *VolumeStatusInfo {
  70470. s.Details = v
  70471. return s
  70472. }
  70473. // SetStatus sets the Status field's value.
  70474. func (s *VolumeStatusInfo) SetStatus(v string) *VolumeStatusInfo {
  70475. s.Status = &v
  70476. return s
  70477. }
  70478. // Describes the volume status.
  70479. type VolumeStatusItem struct {
  70480. _ struct{} `type:"structure"`
  70481. // The details of the operation.
  70482. Actions []*VolumeStatusAction `locationName:"actionsSet" locationNameList:"item" type:"list"`
  70483. // The Availability Zone of the volume.
  70484. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  70485. // A list of events associated with the volume.
  70486. Events []*VolumeStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`
  70487. // The volume ID.
  70488. VolumeId *string `locationName:"volumeId" type:"string"`
  70489. // The volume status.
  70490. VolumeStatus *VolumeStatusInfo `locationName:"volumeStatus" type:"structure"`
  70491. }
  70492. // String returns the string representation
  70493. func (s VolumeStatusItem) String() string {
  70494. return awsutil.Prettify(s)
  70495. }
  70496. // GoString returns the string representation
  70497. func (s VolumeStatusItem) GoString() string {
  70498. return s.String()
  70499. }
  70500. // SetActions sets the Actions field's value.
  70501. func (s *VolumeStatusItem) SetActions(v []*VolumeStatusAction) *VolumeStatusItem {
  70502. s.Actions = v
  70503. return s
  70504. }
  70505. // SetAvailabilityZone sets the AvailabilityZone field's value.
  70506. func (s *VolumeStatusItem) SetAvailabilityZone(v string) *VolumeStatusItem {
  70507. s.AvailabilityZone = &v
  70508. return s
  70509. }
  70510. // SetEvents sets the Events field's value.
  70511. func (s *VolumeStatusItem) SetEvents(v []*VolumeStatusEvent) *VolumeStatusItem {
  70512. s.Events = v
  70513. return s
  70514. }
  70515. // SetVolumeId sets the VolumeId field's value.
  70516. func (s *VolumeStatusItem) SetVolumeId(v string) *VolumeStatusItem {
  70517. s.VolumeId = &v
  70518. return s
  70519. }
  70520. // SetVolumeStatus sets the VolumeStatus field's value.
  70521. func (s *VolumeStatusItem) SetVolumeStatus(v *VolumeStatusInfo) *VolumeStatusItem {
  70522. s.VolumeStatus = v
  70523. return s
  70524. }
  70525. // Describes a VPC.
  70526. type Vpc struct {
  70527. _ struct{} `type:"structure"`
  70528. // The primary IPv4 CIDR block for the VPC.
  70529. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  70530. // Information about the IPv4 CIDR blocks associated with the VPC.
  70531. CidrBlockAssociationSet []*VpcCidrBlockAssociation `locationName:"cidrBlockAssociationSet" locationNameList:"item" type:"list"`
  70532. // The ID of the set of DHCP options you've associated with the VPC (or default
  70533. // if the default options are associated with the VPC).
  70534. DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`
  70535. // The allowed tenancy of instances launched into the VPC.
  70536. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  70537. // Information about the IPv6 CIDR blocks associated with the VPC.
  70538. Ipv6CidrBlockAssociationSet []*VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"`
  70539. // Indicates whether the VPC is the default VPC.
  70540. IsDefault *bool `locationName:"isDefault" type:"boolean"`
  70541. // The ID of the AWS account that owns the VPC.
  70542. OwnerId *string `locationName:"ownerId" type:"string"`
  70543. // The current state of the VPC.
  70544. State *string `locationName:"state" type:"string" enum:"VpcState"`
  70545. // Any tags assigned to the VPC.
  70546. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  70547. // The ID of the VPC.
  70548. VpcId *string `locationName:"vpcId" type:"string"`
  70549. }
  70550. // String returns the string representation
  70551. func (s Vpc) String() string {
  70552. return awsutil.Prettify(s)
  70553. }
  70554. // GoString returns the string representation
  70555. func (s Vpc) GoString() string {
  70556. return s.String()
  70557. }
  70558. // SetCidrBlock sets the CidrBlock field's value.
  70559. func (s *Vpc) SetCidrBlock(v string) *Vpc {
  70560. s.CidrBlock = &v
  70561. return s
  70562. }
  70563. // SetCidrBlockAssociationSet sets the CidrBlockAssociationSet field's value.
  70564. func (s *Vpc) SetCidrBlockAssociationSet(v []*VpcCidrBlockAssociation) *Vpc {
  70565. s.CidrBlockAssociationSet = v
  70566. return s
  70567. }
  70568. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  70569. func (s *Vpc) SetDhcpOptionsId(v string) *Vpc {
  70570. s.DhcpOptionsId = &v
  70571. return s
  70572. }
  70573. // SetInstanceTenancy sets the InstanceTenancy field's value.
  70574. func (s *Vpc) SetInstanceTenancy(v string) *Vpc {
  70575. s.InstanceTenancy = &v
  70576. return s
  70577. }
  70578. // SetIpv6CidrBlockAssociationSet sets the Ipv6CidrBlockAssociationSet field's value.
  70579. func (s *Vpc) SetIpv6CidrBlockAssociationSet(v []*VpcIpv6CidrBlockAssociation) *Vpc {
  70580. s.Ipv6CidrBlockAssociationSet = v
  70581. return s
  70582. }
  70583. // SetIsDefault sets the IsDefault field's value.
  70584. func (s *Vpc) SetIsDefault(v bool) *Vpc {
  70585. s.IsDefault = &v
  70586. return s
  70587. }
  70588. // SetOwnerId sets the OwnerId field's value.
  70589. func (s *Vpc) SetOwnerId(v string) *Vpc {
  70590. s.OwnerId = &v
  70591. return s
  70592. }
  70593. // SetState sets the State field's value.
  70594. func (s *Vpc) SetState(v string) *Vpc {
  70595. s.State = &v
  70596. return s
  70597. }
  70598. // SetTags sets the Tags field's value.
  70599. func (s *Vpc) SetTags(v []*Tag) *Vpc {
  70600. s.Tags = v
  70601. return s
  70602. }
  70603. // SetVpcId sets the VpcId field's value.
  70604. func (s *Vpc) SetVpcId(v string) *Vpc {
  70605. s.VpcId = &v
  70606. return s
  70607. }
  70608. // Describes an attachment between a virtual private gateway and a VPC.
  70609. type VpcAttachment struct {
  70610. _ struct{} `type:"structure"`
  70611. // The current state of the attachment.
  70612. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"`
  70613. // The ID of the VPC.
  70614. VpcId *string `locationName:"vpcId" type:"string"`
  70615. }
  70616. // String returns the string representation
  70617. func (s VpcAttachment) String() string {
  70618. return awsutil.Prettify(s)
  70619. }
  70620. // GoString returns the string representation
  70621. func (s VpcAttachment) GoString() string {
  70622. return s.String()
  70623. }
  70624. // SetState sets the State field's value.
  70625. func (s *VpcAttachment) SetState(v string) *VpcAttachment {
  70626. s.State = &v
  70627. return s
  70628. }
  70629. // SetVpcId sets the VpcId field's value.
  70630. func (s *VpcAttachment) SetVpcId(v string) *VpcAttachment {
  70631. s.VpcId = &v
  70632. return s
  70633. }
  70634. // Describes an IPv4 CIDR block associated with a VPC.
  70635. type VpcCidrBlockAssociation struct {
  70636. _ struct{} `type:"structure"`
  70637. // The association ID for the IPv4 CIDR block.
  70638. AssociationId *string `locationName:"associationId" type:"string"`
  70639. // The IPv4 CIDR block.
  70640. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  70641. // Information about the state of the CIDR block.
  70642. CidrBlockState *VpcCidrBlockState `locationName:"cidrBlockState" type:"structure"`
  70643. }
  70644. // String returns the string representation
  70645. func (s VpcCidrBlockAssociation) String() string {
  70646. return awsutil.Prettify(s)
  70647. }
  70648. // GoString returns the string representation
  70649. func (s VpcCidrBlockAssociation) GoString() string {
  70650. return s.String()
  70651. }
  70652. // SetAssociationId sets the AssociationId field's value.
  70653. func (s *VpcCidrBlockAssociation) SetAssociationId(v string) *VpcCidrBlockAssociation {
  70654. s.AssociationId = &v
  70655. return s
  70656. }
  70657. // SetCidrBlock sets the CidrBlock field's value.
  70658. func (s *VpcCidrBlockAssociation) SetCidrBlock(v string) *VpcCidrBlockAssociation {
  70659. s.CidrBlock = &v
  70660. return s
  70661. }
  70662. // SetCidrBlockState sets the CidrBlockState field's value.
  70663. func (s *VpcCidrBlockAssociation) SetCidrBlockState(v *VpcCidrBlockState) *VpcCidrBlockAssociation {
  70664. s.CidrBlockState = v
  70665. return s
  70666. }
  70667. // Describes the state of a CIDR block.
  70668. type VpcCidrBlockState struct {
  70669. _ struct{} `type:"structure"`
  70670. // The state of the CIDR block.
  70671. State *string `locationName:"state" type:"string" enum:"VpcCidrBlockStateCode"`
  70672. // A message about the status of the CIDR block, if applicable.
  70673. StatusMessage *string `locationName:"statusMessage" type:"string"`
  70674. }
  70675. // String returns the string representation
  70676. func (s VpcCidrBlockState) String() string {
  70677. return awsutil.Prettify(s)
  70678. }
  70679. // GoString returns the string representation
  70680. func (s VpcCidrBlockState) GoString() string {
  70681. return s.String()
  70682. }
  70683. // SetState sets the State field's value.
  70684. func (s *VpcCidrBlockState) SetState(v string) *VpcCidrBlockState {
  70685. s.State = &v
  70686. return s
  70687. }
  70688. // SetStatusMessage sets the StatusMessage field's value.
  70689. func (s *VpcCidrBlockState) SetStatusMessage(v string) *VpcCidrBlockState {
  70690. s.StatusMessage = &v
  70691. return s
  70692. }
  70693. // Describes whether a VPC is enabled for ClassicLink.
  70694. type VpcClassicLink struct {
  70695. _ struct{} `type:"structure"`
  70696. // Indicates whether the VPC is enabled for ClassicLink.
  70697. ClassicLinkEnabled *bool `locationName:"classicLinkEnabled" type:"boolean"`
  70698. // Any tags assigned to the VPC.
  70699. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  70700. // The ID of the VPC.
  70701. VpcId *string `locationName:"vpcId" type:"string"`
  70702. }
  70703. // String returns the string representation
  70704. func (s VpcClassicLink) String() string {
  70705. return awsutil.Prettify(s)
  70706. }
  70707. // GoString returns the string representation
  70708. func (s VpcClassicLink) GoString() string {
  70709. return s.String()
  70710. }
  70711. // SetClassicLinkEnabled sets the ClassicLinkEnabled field's value.
  70712. func (s *VpcClassicLink) SetClassicLinkEnabled(v bool) *VpcClassicLink {
  70713. s.ClassicLinkEnabled = &v
  70714. return s
  70715. }
  70716. // SetTags sets the Tags field's value.
  70717. func (s *VpcClassicLink) SetTags(v []*Tag) *VpcClassicLink {
  70718. s.Tags = v
  70719. return s
  70720. }
  70721. // SetVpcId sets the VpcId field's value.
  70722. func (s *VpcClassicLink) SetVpcId(v string) *VpcClassicLink {
  70723. s.VpcId = &v
  70724. return s
  70725. }
  70726. // Describes a VPC endpoint.
  70727. type VpcEndpoint struct {
  70728. _ struct{} `type:"structure"`
  70729. // The date and time the VPC endpoint was created.
  70730. CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp"`
  70731. // (Interface endpoint) The DNS entries for the endpoint.
  70732. DnsEntries []*DnsEntry `locationName:"dnsEntrySet" locationNameList:"item" type:"list"`
  70733. // (Interface endpoint) Information about the security groups associated with
  70734. // the network interface.
  70735. Groups []*SecurityGroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  70736. // (Interface endpoint) One or more network interfaces for the endpoint.
  70737. NetworkInterfaceIds []*string `locationName:"networkInterfaceIdSet" locationNameList:"item" type:"list"`
  70738. // The policy document associated with the endpoint, if applicable.
  70739. PolicyDocument *string `locationName:"policyDocument" type:"string"`
  70740. // (Interface endpoint) Indicates whether the VPC is associated with a private
  70741. // hosted zone.
  70742. PrivateDnsEnabled *bool `locationName:"privateDnsEnabled" type:"boolean"`
  70743. // (Gateway endpoint) One or more route tables associated with the endpoint.
  70744. RouteTableIds []*string `locationName:"routeTableIdSet" locationNameList:"item" type:"list"`
  70745. // The name of the service to which the endpoint is associated.
  70746. ServiceName *string `locationName:"serviceName" type:"string"`
  70747. // The state of the VPC endpoint.
  70748. State *string `locationName:"state" type:"string" enum:"State"`
  70749. // (Interface endpoint) One or more subnets in which the endpoint is located.
  70750. SubnetIds []*string `locationName:"subnetIdSet" locationNameList:"item" type:"list"`
  70751. // The ID of the VPC endpoint.
  70752. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  70753. // The type of endpoint.
  70754. VpcEndpointType *string `locationName:"vpcEndpointType" type:"string" enum:"VpcEndpointType"`
  70755. // The ID of the VPC to which the endpoint is associated.
  70756. VpcId *string `locationName:"vpcId" type:"string"`
  70757. }
  70758. // String returns the string representation
  70759. func (s VpcEndpoint) String() string {
  70760. return awsutil.Prettify(s)
  70761. }
  70762. // GoString returns the string representation
  70763. func (s VpcEndpoint) GoString() string {
  70764. return s.String()
  70765. }
  70766. // SetCreationTimestamp sets the CreationTimestamp field's value.
  70767. func (s *VpcEndpoint) SetCreationTimestamp(v time.Time) *VpcEndpoint {
  70768. s.CreationTimestamp = &v
  70769. return s
  70770. }
  70771. // SetDnsEntries sets the DnsEntries field's value.
  70772. func (s *VpcEndpoint) SetDnsEntries(v []*DnsEntry) *VpcEndpoint {
  70773. s.DnsEntries = v
  70774. return s
  70775. }
  70776. // SetGroups sets the Groups field's value.
  70777. func (s *VpcEndpoint) SetGroups(v []*SecurityGroupIdentifier) *VpcEndpoint {
  70778. s.Groups = v
  70779. return s
  70780. }
  70781. // SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value.
  70782. func (s *VpcEndpoint) SetNetworkInterfaceIds(v []*string) *VpcEndpoint {
  70783. s.NetworkInterfaceIds = v
  70784. return s
  70785. }
  70786. // SetPolicyDocument sets the PolicyDocument field's value.
  70787. func (s *VpcEndpoint) SetPolicyDocument(v string) *VpcEndpoint {
  70788. s.PolicyDocument = &v
  70789. return s
  70790. }
  70791. // SetPrivateDnsEnabled sets the PrivateDnsEnabled field's value.
  70792. func (s *VpcEndpoint) SetPrivateDnsEnabled(v bool) *VpcEndpoint {
  70793. s.PrivateDnsEnabled = &v
  70794. return s
  70795. }
  70796. // SetRouteTableIds sets the RouteTableIds field's value.
  70797. func (s *VpcEndpoint) SetRouteTableIds(v []*string) *VpcEndpoint {
  70798. s.RouteTableIds = v
  70799. return s
  70800. }
  70801. // SetServiceName sets the ServiceName field's value.
  70802. func (s *VpcEndpoint) SetServiceName(v string) *VpcEndpoint {
  70803. s.ServiceName = &v
  70804. return s
  70805. }
  70806. // SetState sets the State field's value.
  70807. func (s *VpcEndpoint) SetState(v string) *VpcEndpoint {
  70808. s.State = &v
  70809. return s
  70810. }
  70811. // SetSubnetIds sets the SubnetIds field's value.
  70812. func (s *VpcEndpoint) SetSubnetIds(v []*string) *VpcEndpoint {
  70813. s.SubnetIds = v
  70814. return s
  70815. }
  70816. // SetVpcEndpointId sets the VpcEndpointId field's value.
  70817. func (s *VpcEndpoint) SetVpcEndpointId(v string) *VpcEndpoint {
  70818. s.VpcEndpointId = &v
  70819. return s
  70820. }
  70821. // SetVpcEndpointType sets the VpcEndpointType field's value.
  70822. func (s *VpcEndpoint) SetVpcEndpointType(v string) *VpcEndpoint {
  70823. s.VpcEndpointType = &v
  70824. return s
  70825. }
  70826. // SetVpcId sets the VpcId field's value.
  70827. func (s *VpcEndpoint) SetVpcId(v string) *VpcEndpoint {
  70828. s.VpcId = &v
  70829. return s
  70830. }
  70831. // Describes a VPC endpoint connection to a service.
  70832. type VpcEndpointConnection struct {
  70833. _ struct{} `type:"structure"`
  70834. // The date and time the VPC endpoint was created.
  70835. CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp"`
  70836. // The ID of the service to which the endpoint is connected.
  70837. ServiceId *string `locationName:"serviceId" type:"string"`
  70838. // The ID of the VPC endpoint.
  70839. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  70840. // The AWS account ID of the owner of the VPC endpoint.
  70841. VpcEndpointOwner *string `locationName:"vpcEndpointOwner" type:"string"`
  70842. // The state of the VPC endpoint.
  70843. VpcEndpointState *string `locationName:"vpcEndpointState" type:"string" enum:"State"`
  70844. }
  70845. // String returns the string representation
  70846. func (s VpcEndpointConnection) String() string {
  70847. return awsutil.Prettify(s)
  70848. }
  70849. // GoString returns the string representation
  70850. func (s VpcEndpointConnection) GoString() string {
  70851. return s.String()
  70852. }
  70853. // SetCreationTimestamp sets the CreationTimestamp field's value.
  70854. func (s *VpcEndpointConnection) SetCreationTimestamp(v time.Time) *VpcEndpointConnection {
  70855. s.CreationTimestamp = &v
  70856. return s
  70857. }
  70858. // SetServiceId sets the ServiceId field's value.
  70859. func (s *VpcEndpointConnection) SetServiceId(v string) *VpcEndpointConnection {
  70860. s.ServiceId = &v
  70861. return s
  70862. }
  70863. // SetVpcEndpointId sets the VpcEndpointId field's value.
  70864. func (s *VpcEndpointConnection) SetVpcEndpointId(v string) *VpcEndpointConnection {
  70865. s.VpcEndpointId = &v
  70866. return s
  70867. }
  70868. // SetVpcEndpointOwner sets the VpcEndpointOwner field's value.
  70869. func (s *VpcEndpointConnection) SetVpcEndpointOwner(v string) *VpcEndpointConnection {
  70870. s.VpcEndpointOwner = &v
  70871. return s
  70872. }
  70873. // SetVpcEndpointState sets the VpcEndpointState field's value.
  70874. func (s *VpcEndpointConnection) SetVpcEndpointState(v string) *VpcEndpointConnection {
  70875. s.VpcEndpointState = &v
  70876. return s
  70877. }
  70878. // Describes an IPv6 CIDR block associated with a VPC.
  70879. type VpcIpv6CidrBlockAssociation struct {
  70880. _ struct{} `type:"structure"`
  70881. // The association ID for the IPv6 CIDR block.
  70882. AssociationId *string `locationName:"associationId" type:"string"`
  70883. // The IPv6 CIDR block.
  70884. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  70885. // Information about the state of the CIDR block.
  70886. Ipv6CidrBlockState *VpcCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"`
  70887. }
  70888. // String returns the string representation
  70889. func (s VpcIpv6CidrBlockAssociation) String() string {
  70890. return awsutil.Prettify(s)
  70891. }
  70892. // GoString returns the string representation
  70893. func (s VpcIpv6CidrBlockAssociation) GoString() string {
  70894. return s.String()
  70895. }
  70896. // SetAssociationId sets the AssociationId field's value.
  70897. func (s *VpcIpv6CidrBlockAssociation) SetAssociationId(v string) *VpcIpv6CidrBlockAssociation {
  70898. s.AssociationId = &v
  70899. return s
  70900. }
  70901. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  70902. func (s *VpcIpv6CidrBlockAssociation) SetIpv6CidrBlock(v string) *VpcIpv6CidrBlockAssociation {
  70903. s.Ipv6CidrBlock = &v
  70904. return s
  70905. }
  70906. // SetIpv6CidrBlockState sets the Ipv6CidrBlockState field's value.
  70907. func (s *VpcIpv6CidrBlockAssociation) SetIpv6CidrBlockState(v *VpcCidrBlockState) *VpcIpv6CidrBlockAssociation {
  70908. s.Ipv6CidrBlockState = v
  70909. return s
  70910. }
  70911. // Describes a VPC peering connection.
  70912. type VpcPeeringConnection struct {
  70913. _ struct{} `type:"structure"`
  70914. // Information about the accepter VPC. CIDR block information is only returned
  70915. // when describing an active VPC peering connection.
  70916. AccepterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"accepterVpcInfo" type:"structure"`
  70917. // The time that an unaccepted VPC peering connection will expire.
  70918. ExpirationTime *time.Time `locationName:"expirationTime" type:"timestamp"`
  70919. // Information about the requester VPC. CIDR block information is only returned
  70920. // when describing an active VPC peering connection.
  70921. RequesterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"requesterVpcInfo" type:"structure"`
  70922. // The status of the VPC peering connection.
  70923. Status *VpcPeeringConnectionStateReason `locationName:"status" type:"structure"`
  70924. // Any tags assigned to the resource.
  70925. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  70926. // The ID of the VPC peering connection.
  70927. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  70928. }
  70929. // String returns the string representation
  70930. func (s VpcPeeringConnection) String() string {
  70931. return awsutil.Prettify(s)
  70932. }
  70933. // GoString returns the string representation
  70934. func (s VpcPeeringConnection) GoString() string {
  70935. return s.String()
  70936. }
  70937. // SetAccepterVpcInfo sets the AccepterVpcInfo field's value.
  70938. func (s *VpcPeeringConnection) SetAccepterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection {
  70939. s.AccepterVpcInfo = v
  70940. return s
  70941. }
  70942. // SetExpirationTime sets the ExpirationTime field's value.
  70943. func (s *VpcPeeringConnection) SetExpirationTime(v time.Time) *VpcPeeringConnection {
  70944. s.ExpirationTime = &v
  70945. return s
  70946. }
  70947. // SetRequesterVpcInfo sets the RequesterVpcInfo field's value.
  70948. func (s *VpcPeeringConnection) SetRequesterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection {
  70949. s.RequesterVpcInfo = v
  70950. return s
  70951. }
  70952. // SetStatus sets the Status field's value.
  70953. func (s *VpcPeeringConnection) SetStatus(v *VpcPeeringConnectionStateReason) *VpcPeeringConnection {
  70954. s.Status = v
  70955. return s
  70956. }
  70957. // SetTags sets the Tags field's value.
  70958. func (s *VpcPeeringConnection) SetTags(v []*Tag) *VpcPeeringConnection {
  70959. s.Tags = v
  70960. return s
  70961. }
  70962. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  70963. func (s *VpcPeeringConnection) SetVpcPeeringConnectionId(v string) *VpcPeeringConnection {
  70964. s.VpcPeeringConnectionId = &v
  70965. return s
  70966. }
  70967. // Describes the VPC peering connection options.
  70968. type VpcPeeringConnectionOptionsDescription struct {
  70969. _ struct{} `type:"structure"`
  70970. // Indicates whether a local VPC can resolve public DNS hostnames to private
  70971. // IP addresses when queried from instances in a peer VPC.
  70972. AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`
  70973. // Indicates whether a local ClassicLink connection can communicate with the
  70974. // peer VPC over the VPC peering connection.
  70975. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`
  70976. // Indicates whether a local VPC can communicate with a ClassicLink connection
  70977. // in the peer VPC over the VPC peering connection.
  70978. AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
  70979. }
  70980. // String returns the string representation
  70981. func (s VpcPeeringConnectionOptionsDescription) String() string {
  70982. return awsutil.Prettify(s)
  70983. }
  70984. // GoString returns the string representation
  70985. func (s VpcPeeringConnectionOptionsDescription) GoString() string {
  70986. return s.String()
  70987. }
  70988. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  70989. func (s *VpcPeeringConnectionOptionsDescription) SetAllowDnsResolutionFromRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription {
  70990. s.AllowDnsResolutionFromRemoteVpc = &v
  70991. return s
  70992. }
  70993. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  70994. func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription {
  70995. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  70996. return s
  70997. }
  70998. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  70999. func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *VpcPeeringConnectionOptionsDescription {
  71000. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  71001. return s
  71002. }
  71003. // Describes the status of a VPC peering connection.
  71004. type VpcPeeringConnectionStateReason struct {
  71005. _ struct{} `type:"structure"`
  71006. // The status of the VPC peering connection.
  71007. Code *string `locationName:"code" type:"string" enum:"VpcPeeringConnectionStateReasonCode"`
  71008. // A message that provides more information about the status, if applicable.
  71009. Message *string `locationName:"message" type:"string"`
  71010. }
  71011. // String returns the string representation
  71012. func (s VpcPeeringConnectionStateReason) String() string {
  71013. return awsutil.Prettify(s)
  71014. }
  71015. // GoString returns the string representation
  71016. func (s VpcPeeringConnectionStateReason) GoString() string {
  71017. return s.String()
  71018. }
  71019. // SetCode sets the Code field's value.
  71020. func (s *VpcPeeringConnectionStateReason) SetCode(v string) *VpcPeeringConnectionStateReason {
  71021. s.Code = &v
  71022. return s
  71023. }
  71024. // SetMessage sets the Message field's value.
  71025. func (s *VpcPeeringConnectionStateReason) SetMessage(v string) *VpcPeeringConnectionStateReason {
  71026. s.Message = &v
  71027. return s
  71028. }
  71029. // Describes a VPC in a VPC peering connection.
  71030. type VpcPeeringConnectionVpcInfo struct {
  71031. _ struct{} `type:"structure"`
  71032. // The IPv4 CIDR block for the VPC.
  71033. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  71034. // Information about the IPv4 CIDR blocks for the VPC.
  71035. CidrBlockSet []*CidrBlock `locationName:"cidrBlockSet" locationNameList:"item" type:"list"`
  71036. // The IPv6 CIDR block for the VPC.
  71037. Ipv6CidrBlockSet []*Ipv6CidrBlock `locationName:"ipv6CidrBlockSet" locationNameList:"item" type:"list"`
  71038. // The AWS account ID of the VPC owner.
  71039. OwnerId *string `locationName:"ownerId" type:"string"`
  71040. // Information about the VPC peering connection options for the accepter or
  71041. // requester VPC.
  71042. PeeringOptions *VpcPeeringConnectionOptionsDescription `locationName:"peeringOptions" type:"structure"`
  71043. // The region in which the VPC is located.
  71044. Region *string `locationName:"region" type:"string"`
  71045. // The ID of the VPC.
  71046. VpcId *string `locationName:"vpcId" type:"string"`
  71047. }
  71048. // String returns the string representation
  71049. func (s VpcPeeringConnectionVpcInfo) String() string {
  71050. return awsutil.Prettify(s)
  71051. }
  71052. // GoString returns the string representation
  71053. func (s VpcPeeringConnectionVpcInfo) GoString() string {
  71054. return s.String()
  71055. }
  71056. // SetCidrBlock sets the CidrBlock field's value.
  71057. func (s *VpcPeeringConnectionVpcInfo) SetCidrBlock(v string) *VpcPeeringConnectionVpcInfo {
  71058. s.CidrBlock = &v
  71059. return s
  71060. }
  71061. // SetCidrBlockSet sets the CidrBlockSet field's value.
  71062. func (s *VpcPeeringConnectionVpcInfo) SetCidrBlockSet(v []*CidrBlock) *VpcPeeringConnectionVpcInfo {
  71063. s.CidrBlockSet = v
  71064. return s
  71065. }
  71066. // SetIpv6CidrBlockSet sets the Ipv6CidrBlockSet field's value.
  71067. func (s *VpcPeeringConnectionVpcInfo) SetIpv6CidrBlockSet(v []*Ipv6CidrBlock) *VpcPeeringConnectionVpcInfo {
  71068. s.Ipv6CidrBlockSet = v
  71069. return s
  71070. }
  71071. // SetOwnerId sets the OwnerId field's value.
  71072. func (s *VpcPeeringConnectionVpcInfo) SetOwnerId(v string) *VpcPeeringConnectionVpcInfo {
  71073. s.OwnerId = &v
  71074. return s
  71075. }
  71076. // SetPeeringOptions sets the PeeringOptions field's value.
  71077. func (s *VpcPeeringConnectionVpcInfo) SetPeeringOptions(v *VpcPeeringConnectionOptionsDescription) *VpcPeeringConnectionVpcInfo {
  71078. s.PeeringOptions = v
  71079. return s
  71080. }
  71081. // SetRegion sets the Region field's value.
  71082. func (s *VpcPeeringConnectionVpcInfo) SetRegion(v string) *VpcPeeringConnectionVpcInfo {
  71083. s.Region = &v
  71084. return s
  71085. }
  71086. // SetVpcId sets the VpcId field's value.
  71087. func (s *VpcPeeringConnectionVpcInfo) SetVpcId(v string) *VpcPeeringConnectionVpcInfo {
  71088. s.VpcId = &v
  71089. return s
  71090. }
  71091. // Describes a VPN connection.
  71092. type VpnConnection struct {
  71093. _ struct{} `type:"structure"`
  71094. // The category of the VPN connection. A value of VPN indicates an AWS VPN connection.
  71095. // A value of VPN-Classic indicates an AWS Classic VPN connection. For more
  71096. // information, see AWS Managed VPN Categories (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html#vpn-categories)
  71097. // in the Amazon Virtual Private Cloud User Guide.
  71098. Category *string `locationName:"category" type:"string"`
  71099. // The configuration information for the VPN connection's customer gateway (in
  71100. // the native XML format). This element is always present in the CreateVpnConnection
  71101. // response; however, it's present in the DescribeVpnConnections response only
  71102. // if the VPN connection is in the pending or available state.
  71103. CustomerGatewayConfiguration *string `locationName:"customerGatewayConfiguration" type:"string"`
  71104. // The ID of the customer gateway at your end of the VPN connection.
  71105. CustomerGatewayId *string `locationName:"customerGatewayId" type:"string"`
  71106. // The VPN connection options.
  71107. Options *VpnConnectionOptions `locationName:"options" type:"structure"`
  71108. // The static routes associated with the VPN connection.
  71109. Routes []*VpnStaticRoute `locationName:"routes" locationNameList:"item" type:"list"`
  71110. // The current state of the VPN connection.
  71111. State *string `locationName:"state" type:"string" enum:"VpnState"`
  71112. // Any tags assigned to the VPN connection.
  71113. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  71114. // The ID of the transit gateway associated with the VPN connection.
  71115. TransitGatewayId *string `locationName:"transitGatewayId" type:"string"`
  71116. // The type of VPN connection.
  71117. Type *string `locationName:"type" type:"string" enum:"GatewayType"`
  71118. // Information about the VPN tunnel.
  71119. VgwTelemetry []*VgwTelemetry `locationName:"vgwTelemetry" locationNameList:"item" type:"list"`
  71120. // The ID of the VPN connection.
  71121. VpnConnectionId *string `locationName:"vpnConnectionId" type:"string"`
  71122. // The ID of the virtual private gateway at the AWS side of the VPN connection.
  71123. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"`
  71124. }
  71125. // String returns the string representation
  71126. func (s VpnConnection) String() string {
  71127. return awsutil.Prettify(s)
  71128. }
  71129. // GoString returns the string representation
  71130. func (s VpnConnection) GoString() string {
  71131. return s.String()
  71132. }
  71133. // SetCategory sets the Category field's value.
  71134. func (s *VpnConnection) SetCategory(v string) *VpnConnection {
  71135. s.Category = &v
  71136. return s
  71137. }
  71138. // SetCustomerGatewayConfiguration sets the CustomerGatewayConfiguration field's value.
  71139. func (s *VpnConnection) SetCustomerGatewayConfiguration(v string) *VpnConnection {
  71140. s.CustomerGatewayConfiguration = &v
  71141. return s
  71142. }
  71143. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  71144. func (s *VpnConnection) SetCustomerGatewayId(v string) *VpnConnection {
  71145. s.CustomerGatewayId = &v
  71146. return s
  71147. }
  71148. // SetOptions sets the Options field's value.
  71149. func (s *VpnConnection) SetOptions(v *VpnConnectionOptions) *VpnConnection {
  71150. s.Options = v
  71151. return s
  71152. }
  71153. // SetRoutes sets the Routes field's value.
  71154. func (s *VpnConnection) SetRoutes(v []*VpnStaticRoute) *VpnConnection {
  71155. s.Routes = v
  71156. return s
  71157. }
  71158. // SetState sets the State field's value.
  71159. func (s *VpnConnection) SetState(v string) *VpnConnection {
  71160. s.State = &v
  71161. return s
  71162. }
  71163. // SetTags sets the Tags field's value.
  71164. func (s *VpnConnection) SetTags(v []*Tag) *VpnConnection {
  71165. s.Tags = v
  71166. return s
  71167. }
  71168. // SetTransitGatewayId sets the TransitGatewayId field's value.
  71169. func (s *VpnConnection) SetTransitGatewayId(v string) *VpnConnection {
  71170. s.TransitGatewayId = &v
  71171. return s
  71172. }
  71173. // SetType sets the Type field's value.
  71174. func (s *VpnConnection) SetType(v string) *VpnConnection {
  71175. s.Type = &v
  71176. return s
  71177. }
  71178. // SetVgwTelemetry sets the VgwTelemetry field's value.
  71179. func (s *VpnConnection) SetVgwTelemetry(v []*VgwTelemetry) *VpnConnection {
  71180. s.VgwTelemetry = v
  71181. return s
  71182. }
  71183. // SetVpnConnectionId sets the VpnConnectionId field's value.
  71184. func (s *VpnConnection) SetVpnConnectionId(v string) *VpnConnection {
  71185. s.VpnConnectionId = &v
  71186. return s
  71187. }
  71188. // SetVpnGatewayId sets the VpnGatewayId field's value.
  71189. func (s *VpnConnection) SetVpnGatewayId(v string) *VpnConnection {
  71190. s.VpnGatewayId = &v
  71191. return s
  71192. }
  71193. // Describes VPN connection options.
  71194. type VpnConnectionOptions struct {
  71195. _ struct{} `type:"structure"`
  71196. // Indicates whether the VPN connection uses static routes only. Static routes
  71197. // must be used for devices that don't support BGP.
  71198. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`
  71199. }
  71200. // String returns the string representation
  71201. func (s VpnConnectionOptions) String() string {
  71202. return awsutil.Prettify(s)
  71203. }
  71204. // GoString returns the string representation
  71205. func (s VpnConnectionOptions) GoString() string {
  71206. return s.String()
  71207. }
  71208. // SetStaticRoutesOnly sets the StaticRoutesOnly field's value.
  71209. func (s *VpnConnectionOptions) SetStaticRoutesOnly(v bool) *VpnConnectionOptions {
  71210. s.StaticRoutesOnly = &v
  71211. return s
  71212. }
  71213. // Describes VPN connection options.
  71214. type VpnConnectionOptionsSpecification struct {
  71215. _ struct{} `type:"structure"`
  71216. // Indicate whether the VPN connection uses static routes only. If you are creating
  71217. // a VPN connection for a device that does not support BGP, you must specify
  71218. // true. Use CreateVpnConnectionRoute to create a static route.
  71219. //
  71220. // Default: false
  71221. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`
  71222. // The tunnel options for the VPN connection.
  71223. TunnelOptions []*VpnTunnelOptionsSpecification `locationNameList:"item" type:"list"`
  71224. }
  71225. // String returns the string representation
  71226. func (s VpnConnectionOptionsSpecification) String() string {
  71227. return awsutil.Prettify(s)
  71228. }
  71229. // GoString returns the string representation
  71230. func (s VpnConnectionOptionsSpecification) GoString() string {
  71231. return s.String()
  71232. }
  71233. // SetStaticRoutesOnly sets the StaticRoutesOnly field's value.
  71234. func (s *VpnConnectionOptionsSpecification) SetStaticRoutesOnly(v bool) *VpnConnectionOptionsSpecification {
  71235. s.StaticRoutesOnly = &v
  71236. return s
  71237. }
  71238. // SetTunnelOptions sets the TunnelOptions field's value.
  71239. func (s *VpnConnectionOptionsSpecification) SetTunnelOptions(v []*VpnTunnelOptionsSpecification) *VpnConnectionOptionsSpecification {
  71240. s.TunnelOptions = v
  71241. return s
  71242. }
  71243. // Describes a virtual private gateway.
  71244. type VpnGateway struct {
  71245. _ struct{} `type:"structure"`
  71246. // The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
  71247. AmazonSideAsn *int64 `locationName:"amazonSideAsn" type:"long"`
  71248. // The Availability Zone where the virtual private gateway was created, if applicable.
  71249. // This field may be empty or not returned.
  71250. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  71251. // The current state of the virtual private gateway.
  71252. State *string `locationName:"state" type:"string" enum:"VpnState"`
  71253. // Any tags assigned to the virtual private gateway.
  71254. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  71255. // The type of VPN connection the virtual private gateway supports.
  71256. Type *string `locationName:"type" type:"string" enum:"GatewayType"`
  71257. // Any VPCs attached to the virtual private gateway.
  71258. VpcAttachments []*VpcAttachment `locationName:"attachments" locationNameList:"item" type:"list"`
  71259. // The ID of the virtual private gateway.
  71260. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"`
  71261. }
  71262. // String returns the string representation
  71263. func (s VpnGateway) String() string {
  71264. return awsutil.Prettify(s)
  71265. }
  71266. // GoString returns the string representation
  71267. func (s VpnGateway) GoString() string {
  71268. return s.String()
  71269. }
  71270. // SetAmazonSideAsn sets the AmazonSideAsn field's value.
  71271. func (s *VpnGateway) SetAmazonSideAsn(v int64) *VpnGateway {
  71272. s.AmazonSideAsn = &v
  71273. return s
  71274. }
  71275. // SetAvailabilityZone sets the AvailabilityZone field's value.
  71276. func (s *VpnGateway) SetAvailabilityZone(v string) *VpnGateway {
  71277. s.AvailabilityZone = &v
  71278. return s
  71279. }
  71280. // SetState sets the State field's value.
  71281. func (s *VpnGateway) SetState(v string) *VpnGateway {
  71282. s.State = &v
  71283. return s
  71284. }
  71285. // SetTags sets the Tags field's value.
  71286. func (s *VpnGateway) SetTags(v []*Tag) *VpnGateway {
  71287. s.Tags = v
  71288. return s
  71289. }
  71290. // SetType sets the Type field's value.
  71291. func (s *VpnGateway) SetType(v string) *VpnGateway {
  71292. s.Type = &v
  71293. return s
  71294. }
  71295. // SetVpcAttachments sets the VpcAttachments field's value.
  71296. func (s *VpnGateway) SetVpcAttachments(v []*VpcAttachment) *VpnGateway {
  71297. s.VpcAttachments = v
  71298. return s
  71299. }
  71300. // SetVpnGatewayId sets the VpnGatewayId field's value.
  71301. func (s *VpnGateway) SetVpnGatewayId(v string) *VpnGateway {
  71302. s.VpnGatewayId = &v
  71303. return s
  71304. }
  71305. // Describes a static route for a VPN connection.
  71306. type VpnStaticRoute struct {
  71307. _ struct{} `type:"structure"`
  71308. // The CIDR block associated with the local subnet of the customer data center.
  71309. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  71310. // Indicates how the routes were provided.
  71311. Source *string `locationName:"source" type:"string" enum:"VpnStaticRouteSource"`
  71312. // The current state of the static route.
  71313. State *string `locationName:"state" type:"string" enum:"VpnState"`
  71314. }
  71315. // String returns the string representation
  71316. func (s VpnStaticRoute) String() string {
  71317. return awsutil.Prettify(s)
  71318. }
  71319. // GoString returns the string representation
  71320. func (s VpnStaticRoute) GoString() string {
  71321. return s.String()
  71322. }
  71323. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  71324. func (s *VpnStaticRoute) SetDestinationCidrBlock(v string) *VpnStaticRoute {
  71325. s.DestinationCidrBlock = &v
  71326. return s
  71327. }
  71328. // SetSource sets the Source field's value.
  71329. func (s *VpnStaticRoute) SetSource(v string) *VpnStaticRoute {
  71330. s.Source = &v
  71331. return s
  71332. }
  71333. // SetState sets the State field's value.
  71334. func (s *VpnStaticRoute) SetState(v string) *VpnStaticRoute {
  71335. s.State = &v
  71336. return s
  71337. }
  71338. // The tunnel options for a VPN connection.
  71339. type VpnTunnelOptionsSpecification struct {
  71340. _ struct{} `type:"structure"`
  71341. // The pre-shared key (PSK) to establish initial authentication between the
  71342. // virtual private gateway and customer gateway.
  71343. //
  71344. // Constraints: Allowed characters are alphanumeric characters and ._. Must
  71345. // be between 8 and 64 characters in length and cannot start with zero (0).
  71346. PreSharedKey *string `type:"string"`
  71347. // The range of inside IP addresses for the tunnel. Any specified CIDR blocks
  71348. // must be unique across all VPN connections that use the same virtual private
  71349. // gateway.
  71350. //
  71351. // Constraints: A size /30 CIDR block from the 169.254.0.0/16 range. The following
  71352. // CIDR blocks are reserved and cannot be used:
  71353. //
  71354. // * 169.254.0.0/30
  71355. //
  71356. // * 169.254.1.0/30
  71357. //
  71358. // * 169.254.2.0/30
  71359. //
  71360. // * 169.254.3.0/30
  71361. //
  71362. // * 169.254.4.0/30
  71363. //
  71364. // * 169.254.5.0/30
  71365. //
  71366. // * 169.254.169.252/30
  71367. TunnelInsideCidr *string `type:"string"`
  71368. }
  71369. // String returns the string representation
  71370. func (s VpnTunnelOptionsSpecification) String() string {
  71371. return awsutil.Prettify(s)
  71372. }
  71373. // GoString returns the string representation
  71374. func (s VpnTunnelOptionsSpecification) GoString() string {
  71375. return s.String()
  71376. }
  71377. // SetPreSharedKey sets the PreSharedKey field's value.
  71378. func (s *VpnTunnelOptionsSpecification) SetPreSharedKey(v string) *VpnTunnelOptionsSpecification {
  71379. s.PreSharedKey = &v
  71380. return s
  71381. }
  71382. // SetTunnelInsideCidr sets the TunnelInsideCidr field's value.
  71383. func (s *VpnTunnelOptionsSpecification) SetTunnelInsideCidr(v string) *VpnTunnelOptionsSpecification {
  71384. s.TunnelInsideCidr = &v
  71385. return s
  71386. }
  71387. type WithdrawByoipCidrInput struct {
  71388. _ struct{} `type:"structure"`
  71389. // The public IPv4 address range, in CIDR notation.
  71390. //
  71391. // Cidr is a required field
  71392. Cidr *string `type:"string" required:"true"`
  71393. // Checks whether you have the required permissions for the action, without
  71394. // actually making the request, and provides an error response. If you have
  71395. // the required permissions, the error response is DryRunOperation. Otherwise,
  71396. // it is UnauthorizedOperation.
  71397. DryRun *bool `type:"boolean"`
  71398. }
  71399. // String returns the string representation
  71400. func (s WithdrawByoipCidrInput) String() string {
  71401. return awsutil.Prettify(s)
  71402. }
  71403. // GoString returns the string representation
  71404. func (s WithdrawByoipCidrInput) GoString() string {
  71405. return s.String()
  71406. }
  71407. // Validate inspects the fields of the type to determine if they are valid.
  71408. func (s *WithdrawByoipCidrInput) Validate() error {
  71409. invalidParams := request.ErrInvalidParams{Context: "WithdrawByoipCidrInput"}
  71410. if s.Cidr == nil {
  71411. invalidParams.Add(request.NewErrParamRequired("Cidr"))
  71412. }
  71413. if invalidParams.Len() > 0 {
  71414. return invalidParams
  71415. }
  71416. return nil
  71417. }
  71418. // SetCidr sets the Cidr field's value.
  71419. func (s *WithdrawByoipCidrInput) SetCidr(v string) *WithdrawByoipCidrInput {
  71420. s.Cidr = &v
  71421. return s
  71422. }
  71423. // SetDryRun sets the DryRun field's value.
  71424. func (s *WithdrawByoipCidrInput) SetDryRun(v bool) *WithdrawByoipCidrInput {
  71425. s.DryRun = &v
  71426. return s
  71427. }
  71428. type WithdrawByoipCidrOutput struct {
  71429. _ struct{} `type:"structure"`
  71430. // Information about the address pool.
  71431. ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"`
  71432. }
  71433. // String returns the string representation
  71434. func (s WithdrawByoipCidrOutput) String() string {
  71435. return awsutil.Prettify(s)
  71436. }
  71437. // GoString returns the string representation
  71438. func (s WithdrawByoipCidrOutput) GoString() string {
  71439. return s.String()
  71440. }
  71441. // SetByoipCidr sets the ByoipCidr field's value.
  71442. func (s *WithdrawByoipCidrOutput) SetByoipCidr(v *ByoipCidr) *WithdrawByoipCidrOutput {
  71443. s.ByoipCidr = v
  71444. return s
  71445. }
  71446. const (
  71447. // AccountAttributeNameSupportedPlatforms is a AccountAttributeName enum value
  71448. AccountAttributeNameSupportedPlatforms = "supported-platforms"
  71449. // AccountAttributeNameDefaultVpc is a AccountAttributeName enum value
  71450. AccountAttributeNameDefaultVpc = "default-vpc"
  71451. )
  71452. const (
  71453. // ActivityStatusError is a ActivityStatus enum value
  71454. ActivityStatusError = "error"
  71455. // ActivityStatusPendingFulfillment is a ActivityStatus enum value
  71456. ActivityStatusPendingFulfillment = "pending_fulfillment"
  71457. // ActivityStatusPendingTermination is a ActivityStatus enum value
  71458. ActivityStatusPendingTermination = "pending_termination"
  71459. // ActivityStatusFulfilled is a ActivityStatus enum value
  71460. ActivityStatusFulfilled = "fulfilled"
  71461. )
  71462. const (
  71463. // AffinityDefault is a Affinity enum value
  71464. AffinityDefault = "default"
  71465. // AffinityHost is a Affinity enum value
  71466. AffinityHost = "host"
  71467. )
  71468. const (
  71469. // AllocationStateAvailable is a AllocationState enum value
  71470. AllocationStateAvailable = "available"
  71471. // AllocationStateUnderAssessment is a AllocationState enum value
  71472. AllocationStateUnderAssessment = "under-assessment"
  71473. // AllocationStatePermanentFailure is a AllocationState enum value
  71474. AllocationStatePermanentFailure = "permanent-failure"
  71475. // AllocationStateReleased is a AllocationState enum value
  71476. AllocationStateReleased = "released"
  71477. // AllocationStateReleasedPermanentFailure is a AllocationState enum value
  71478. AllocationStateReleasedPermanentFailure = "released-permanent-failure"
  71479. )
  71480. const (
  71481. // AllocationStrategyLowestPrice is a AllocationStrategy enum value
  71482. AllocationStrategyLowestPrice = "lowestPrice"
  71483. // AllocationStrategyDiversified is a AllocationStrategy enum value
  71484. AllocationStrategyDiversified = "diversified"
  71485. )
  71486. const (
  71487. // ArchitectureValuesI386 is a ArchitectureValues enum value
  71488. ArchitectureValuesI386 = "i386"
  71489. // ArchitectureValuesX8664 is a ArchitectureValues enum value
  71490. ArchitectureValuesX8664 = "x86_64"
  71491. // ArchitectureValuesArm64 is a ArchitectureValues enum value
  71492. ArchitectureValuesArm64 = "arm64"
  71493. )
  71494. const (
  71495. // AssociatedNetworkTypeVpc is a AssociatedNetworkType enum value
  71496. AssociatedNetworkTypeVpc = "vpc"
  71497. )
  71498. const (
  71499. // AssociationStatusCodeAssociating is a AssociationStatusCode enum value
  71500. AssociationStatusCodeAssociating = "associating"
  71501. // AssociationStatusCodeAssociated is a AssociationStatusCode enum value
  71502. AssociationStatusCodeAssociated = "associated"
  71503. // AssociationStatusCodeAssociationFailed is a AssociationStatusCode enum value
  71504. AssociationStatusCodeAssociationFailed = "association-failed"
  71505. // AssociationStatusCodeDisassociating is a AssociationStatusCode enum value
  71506. AssociationStatusCodeDisassociating = "disassociating"
  71507. // AssociationStatusCodeDisassociated is a AssociationStatusCode enum value
  71508. AssociationStatusCodeDisassociated = "disassociated"
  71509. )
  71510. const (
  71511. // AttachmentStatusAttaching is a AttachmentStatus enum value
  71512. AttachmentStatusAttaching = "attaching"
  71513. // AttachmentStatusAttached is a AttachmentStatus enum value
  71514. AttachmentStatusAttached = "attached"
  71515. // AttachmentStatusDetaching is a AttachmentStatus enum value
  71516. AttachmentStatusDetaching = "detaching"
  71517. // AttachmentStatusDetached is a AttachmentStatus enum value
  71518. AttachmentStatusDetached = "detached"
  71519. )
  71520. const (
  71521. // AutoAcceptSharedAttachmentsValueEnable is a AutoAcceptSharedAttachmentsValue enum value
  71522. AutoAcceptSharedAttachmentsValueEnable = "enable"
  71523. // AutoAcceptSharedAttachmentsValueDisable is a AutoAcceptSharedAttachmentsValue enum value
  71524. AutoAcceptSharedAttachmentsValueDisable = "disable"
  71525. )
  71526. const (
  71527. // AutoPlacementOn is a AutoPlacement enum value
  71528. AutoPlacementOn = "on"
  71529. // AutoPlacementOff is a AutoPlacement enum value
  71530. AutoPlacementOff = "off"
  71531. )
  71532. const (
  71533. // AvailabilityZoneStateAvailable is a AvailabilityZoneState enum value
  71534. AvailabilityZoneStateAvailable = "available"
  71535. // AvailabilityZoneStateInformation is a AvailabilityZoneState enum value
  71536. AvailabilityZoneStateInformation = "information"
  71537. // AvailabilityZoneStateImpaired is a AvailabilityZoneState enum value
  71538. AvailabilityZoneStateImpaired = "impaired"
  71539. // AvailabilityZoneStateUnavailable is a AvailabilityZoneState enum value
  71540. AvailabilityZoneStateUnavailable = "unavailable"
  71541. )
  71542. const (
  71543. // BatchStateSubmitted is a BatchState enum value
  71544. BatchStateSubmitted = "submitted"
  71545. // BatchStateActive is a BatchState enum value
  71546. BatchStateActive = "active"
  71547. // BatchStateCancelled is a BatchState enum value
  71548. BatchStateCancelled = "cancelled"
  71549. // BatchStateFailed is a BatchState enum value
  71550. BatchStateFailed = "failed"
  71551. // BatchStateCancelledRunning is a BatchState enum value
  71552. BatchStateCancelledRunning = "cancelled_running"
  71553. // BatchStateCancelledTerminating is a BatchState enum value
  71554. BatchStateCancelledTerminating = "cancelled_terminating"
  71555. // BatchStateModifying is a BatchState enum value
  71556. BatchStateModifying = "modifying"
  71557. )
  71558. const (
  71559. // BundleTaskStatePending is a BundleTaskState enum value
  71560. BundleTaskStatePending = "pending"
  71561. // BundleTaskStateWaitingForShutdown is a BundleTaskState enum value
  71562. BundleTaskStateWaitingForShutdown = "waiting-for-shutdown"
  71563. // BundleTaskStateBundling is a BundleTaskState enum value
  71564. BundleTaskStateBundling = "bundling"
  71565. // BundleTaskStateStoring is a BundleTaskState enum value
  71566. BundleTaskStateStoring = "storing"
  71567. // BundleTaskStateCancelling is a BundleTaskState enum value
  71568. BundleTaskStateCancelling = "cancelling"
  71569. // BundleTaskStateComplete is a BundleTaskState enum value
  71570. BundleTaskStateComplete = "complete"
  71571. // BundleTaskStateFailed is a BundleTaskState enum value
  71572. BundleTaskStateFailed = "failed"
  71573. )
  71574. const (
  71575. // ByoipCidrStateAdvertised is a ByoipCidrState enum value
  71576. ByoipCidrStateAdvertised = "advertised"
  71577. // ByoipCidrStateDeprovisioned is a ByoipCidrState enum value
  71578. ByoipCidrStateDeprovisioned = "deprovisioned"
  71579. // ByoipCidrStateFailedDeprovision is a ByoipCidrState enum value
  71580. ByoipCidrStateFailedDeprovision = "failed-deprovision"
  71581. // ByoipCidrStateFailedProvision is a ByoipCidrState enum value
  71582. ByoipCidrStateFailedProvision = "failed-provision"
  71583. // ByoipCidrStatePendingDeprovision is a ByoipCidrState enum value
  71584. ByoipCidrStatePendingDeprovision = "pending-deprovision"
  71585. // ByoipCidrStatePendingProvision is a ByoipCidrState enum value
  71586. ByoipCidrStatePendingProvision = "pending-provision"
  71587. // ByoipCidrStateProvisioned is a ByoipCidrState enum value
  71588. ByoipCidrStateProvisioned = "provisioned"
  71589. )
  71590. const (
  71591. // CancelBatchErrorCodeFleetRequestIdDoesNotExist is a CancelBatchErrorCode enum value
  71592. CancelBatchErrorCodeFleetRequestIdDoesNotExist = "fleetRequestIdDoesNotExist"
  71593. // CancelBatchErrorCodeFleetRequestIdMalformed is a CancelBatchErrorCode enum value
  71594. CancelBatchErrorCodeFleetRequestIdMalformed = "fleetRequestIdMalformed"
  71595. // CancelBatchErrorCodeFleetRequestNotInCancellableState is a CancelBatchErrorCode enum value
  71596. CancelBatchErrorCodeFleetRequestNotInCancellableState = "fleetRequestNotInCancellableState"
  71597. // CancelBatchErrorCodeUnexpectedError is a CancelBatchErrorCode enum value
  71598. CancelBatchErrorCodeUnexpectedError = "unexpectedError"
  71599. )
  71600. const (
  71601. // CancelSpotInstanceRequestStateActive is a CancelSpotInstanceRequestState enum value
  71602. CancelSpotInstanceRequestStateActive = "active"
  71603. // CancelSpotInstanceRequestStateOpen is a CancelSpotInstanceRequestState enum value
  71604. CancelSpotInstanceRequestStateOpen = "open"
  71605. // CancelSpotInstanceRequestStateClosed is a CancelSpotInstanceRequestState enum value
  71606. CancelSpotInstanceRequestStateClosed = "closed"
  71607. // CancelSpotInstanceRequestStateCancelled is a CancelSpotInstanceRequestState enum value
  71608. CancelSpotInstanceRequestStateCancelled = "cancelled"
  71609. // CancelSpotInstanceRequestStateCompleted is a CancelSpotInstanceRequestState enum value
  71610. CancelSpotInstanceRequestStateCompleted = "completed"
  71611. )
  71612. const (
  71613. // CapacityReservationInstancePlatformLinuxUnix is a CapacityReservationInstancePlatform enum value
  71614. CapacityReservationInstancePlatformLinuxUnix = "Linux/UNIX"
  71615. // CapacityReservationInstancePlatformRedHatEnterpriseLinux is a CapacityReservationInstancePlatform enum value
  71616. CapacityReservationInstancePlatformRedHatEnterpriseLinux = "Red Hat Enterprise Linux"
  71617. // CapacityReservationInstancePlatformSuselinux is a CapacityReservationInstancePlatform enum value
  71618. CapacityReservationInstancePlatformSuselinux = "SUSE Linux"
  71619. // CapacityReservationInstancePlatformWindows is a CapacityReservationInstancePlatform enum value
  71620. CapacityReservationInstancePlatformWindows = "Windows"
  71621. // CapacityReservationInstancePlatformWindowswithSqlserver is a CapacityReservationInstancePlatform enum value
  71622. CapacityReservationInstancePlatformWindowswithSqlserver = "Windows with SQL Server"
  71623. // CapacityReservationInstancePlatformWindowswithSqlserverEnterprise is a CapacityReservationInstancePlatform enum value
  71624. CapacityReservationInstancePlatformWindowswithSqlserverEnterprise = "Windows with SQL Server Enterprise"
  71625. // CapacityReservationInstancePlatformWindowswithSqlserverStandard is a CapacityReservationInstancePlatform enum value
  71626. CapacityReservationInstancePlatformWindowswithSqlserverStandard = "Windows with SQL Server Standard"
  71627. // CapacityReservationInstancePlatformWindowswithSqlserverWeb is a CapacityReservationInstancePlatform enum value
  71628. CapacityReservationInstancePlatformWindowswithSqlserverWeb = "Windows with SQL Server Web"
  71629. )
  71630. const (
  71631. // CapacityReservationPreferenceOpen is a CapacityReservationPreference enum value
  71632. CapacityReservationPreferenceOpen = "open"
  71633. // CapacityReservationPreferenceNone is a CapacityReservationPreference enum value
  71634. CapacityReservationPreferenceNone = "none"
  71635. )
  71636. const (
  71637. // CapacityReservationStateActive is a CapacityReservationState enum value
  71638. CapacityReservationStateActive = "active"
  71639. // CapacityReservationStateExpired is a CapacityReservationState enum value
  71640. CapacityReservationStateExpired = "expired"
  71641. // CapacityReservationStateCancelled is a CapacityReservationState enum value
  71642. CapacityReservationStateCancelled = "cancelled"
  71643. // CapacityReservationStatePending is a CapacityReservationState enum value
  71644. CapacityReservationStatePending = "pending"
  71645. // CapacityReservationStateFailed is a CapacityReservationState enum value
  71646. CapacityReservationStateFailed = "failed"
  71647. )
  71648. const (
  71649. // CapacityReservationTenancyDefault is a CapacityReservationTenancy enum value
  71650. CapacityReservationTenancyDefault = "default"
  71651. // CapacityReservationTenancyDedicated is a CapacityReservationTenancy enum value
  71652. CapacityReservationTenancyDedicated = "dedicated"
  71653. )
  71654. const (
  71655. // ClientCertificateRevocationListStatusCodePending is a ClientCertificateRevocationListStatusCode enum value
  71656. ClientCertificateRevocationListStatusCodePending = "pending"
  71657. // ClientCertificateRevocationListStatusCodeActive is a ClientCertificateRevocationListStatusCode enum value
  71658. ClientCertificateRevocationListStatusCodeActive = "active"
  71659. )
  71660. const (
  71661. // ClientVpnAuthenticationTypeCertificateAuthentication is a ClientVpnAuthenticationType enum value
  71662. ClientVpnAuthenticationTypeCertificateAuthentication = "certificate-authentication"
  71663. // ClientVpnAuthenticationTypeDirectoryServiceAuthentication is a ClientVpnAuthenticationType enum value
  71664. ClientVpnAuthenticationTypeDirectoryServiceAuthentication = "directory-service-authentication"
  71665. )
  71666. const (
  71667. // ClientVpnAuthorizationRuleStatusCodeAuthorizing is a ClientVpnAuthorizationRuleStatusCode enum value
  71668. ClientVpnAuthorizationRuleStatusCodeAuthorizing = "authorizing"
  71669. // ClientVpnAuthorizationRuleStatusCodeActive is a ClientVpnAuthorizationRuleStatusCode enum value
  71670. ClientVpnAuthorizationRuleStatusCodeActive = "active"
  71671. // ClientVpnAuthorizationRuleStatusCodeFailed is a ClientVpnAuthorizationRuleStatusCode enum value
  71672. ClientVpnAuthorizationRuleStatusCodeFailed = "failed"
  71673. // ClientVpnAuthorizationRuleStatusCodeRevoking is a ClientVpnAuthorizationRuleStatusCode enum value
  71674. ClientVpnAuthorizationRuleStatusCodeRevoking = "revoking"
  71675. )
  71676. const (
  71677. // ClientVpnConnectionStatusCodeActive is a ClientVpnConnectionStatusCode enum value
  71678. ClientVpnConnectionStatusCodeActive = "active"
  71679. // ClientVpnConnectionStatusCodeFailedToTerminate is a ClientVpnConnectionStatusCode enum value
  71680. ClientVpnConnectionStatusCodeFailedToTerminate = "failed-to-terminate"
  71681. // ClientVpnConnectionStatusCodeTerminating is a ClientVpnConnectionStatusCode enum value
  71682. ClientVpnConnectionStatusCodeTerminating = "terminating"
  71683. // ClientVpnConnectionStatusCodeTerminated is a ClientVpnConnectionStatusCode enum value
  71684. ClientVpnConnectionStatusCodeTerminated = "terminated"
  71685. )
  71686. const (
  71687. // ClientVpnEndpointStatusCodePendingAssociate is a ClientVpnEndpointStatusCode enum value
  71688. ClientVpnEndpointStatusCodePendingAssociate = "pending-associate"
  71689. // ClientVpnEndpointStatusCodeAvailable is a ClientVpnEndpointStatusCode enum value
  71690. ClientVpnEndpointStatusCodeAvailable = "available"
  71691. // ClientVpnEndpointStatusCodeDeleting is a ClientVpnEndpointStatusCode enum value
  71692. ClientVpnEndpointStatusCodeDeleting = "deleting"
  71693. // ClientVpnEndpointStatusCodeDeleted is a ClientVpnEndpointStatusCode enum value
  71694. ClientVpnEndpointStatusCodeDeleted = "deleted"
  71695. )
  71696. const (
  71697. // ClientVpnRouteStatusCodeCreating is a ClientVpnRouteStatusCode enum value
  71698. ClientVpnRouteStatusCodeCreating = "creating"
  71699. // ClientVpnRouteStatusCodeActive is a ClientVpnRouteStatusCode enum value
  71700. ClientVpnRouteStatusCodeActive = "active"
  71701. // ClientVpnRouteStatusCodeFailed is a ClientVpnRouteStatusCode enum value
  71702. ClientVpnRouteStatusCodeFailed = "failed"
  71703. // ClientVpnRouteStatusCodeDeleting is a ClientVpnRouteStatusCode enum value
  71704. ClientVpnRouteStatusCodeDeleting = "deleting"
  71705. )
  71706. const (
  71707. // ConnectionNotificationStateEnabled is a ConnectionNotificationState enum value
  71708. ConnectionNotificationStateEnabled = "Enabled"
  71709. // ConnectionNotificationStateDisabled is a ConnectionNotificationState enum value
  71710. ConnectionNotificationStateDisabled = "Disabled"
  71711. )
  71712. const (
  71713. // ConnectionNotificationTypeTopic is a ConnectionNotificationType enum value
  71714. ConnectionNotificationTypeTopic = "Topic"
  71715. )
  71716. const (
  71717. // ContainerFormatOva is a ContainerFormat enum value
  71718. ContainerFormatOva = "ova"
  71719. )
  71720. const (
  71721. // ConversionTaskStateActive is a ConversionTaskState enum value
  71722. ConversionTaskStateActive = "active"
  71723. // ConversionTaskStateCancelling is a ConversionTaskState enum value
  71724. ConversionTaskStateCancelling = "cancelling"
  71725. // ConversionTaskStateCancelled is a ConversionTaskState enum value
  71726. ConversionTaskStateCancelled = "cancelled"
  71727. // ConversionTaskStateCompleted is a ConversionTaskState enum value
  71728. ConversionTaskStateCompleted = "completed"
  71729. )
  71730. const (
  71731. // CurrencyCodeValuesUsd is a CurrencyCodeValues enum value
  71732. CurrencyCodeValuesUsd = "USD"
  71733. )
  71734. const (
  71735. // DatafeedSubscriptionStateActive is a DatafeedSubscriptionState enum value
  71736. DatafeedSubscriptionStateActive = "Active"
  71737. // DatafeedSubscriptionStateInactive is a DatafeedSubscriptionState enum value
  71738. DatafeedSubscriptionStateInactive = "Inactive"
  71739. )
  71740. const (
  71741. // DefaultRouteTableAssociationValueEnable is a DefaultRouteTableAssociationValue enum value
  71742. DefaultRouteTableAssociationValueEnable = "enable"
  71743. // DefaultRouteTableAssociationValueDisable is a DefaultRouteTableAssociationValue enum value
  71744. DefaultRouteTableAssociationValueDisable = "disable"
  71745. )
  71746. const (
  71747. // DefaultRouteTablePropagationValueEnable is a DefaultRouteTablePropagationValue enum value
  71748. DefaultRouteTablePropagationValueEnable = "enable"
  71749. // DefaultRouteTablePropagationValueDisable is a DefaultRouteTablePropagationValue enum value
  71750. DefaultRouteTablePropagationValueDisable = "disable"
  71751. )
  71752. const (
  71753. // DefaultTargetCapacityTypeSpot is a DefaultTargetCapacityType enum value
  71754. DefaultTargetCapacityTypeSpot = "spot"
  71755. // DefaultTargetCapacityTypeOnDemand is a DefaultTargetCapacityType enum value
  71756. DefaultTargetCapacityTypeOnDemand = "on-demand"
  71757. )
  71758. const (
  71759. // DeleteFleetErrorCodeFleetIdDoesNotExist is a DeleteFleetErrorCode enum value
  71760. DeleteFleetErrorCodeFleetIdDoesNotExist = "fleetIdDoesNotExist"
  71761. // DeleteFleetErrorCodeFleetIdMalformed is a DeleteFleetErrorCode enum value
  71762. DeleteFleetErrorCodeFleetIdMalformed = "fleetIdMalformed"
  71763. // DeleteFleetErrorCodeFleetNotInDeletableState is a DeleteFleetErrorCode enum value
  71764. DeleteFleetErrorCodeFleetNotInDeletableState = "fleetNotInDeletableState"
  71765. // DeleteFleetErrorCodeUnexpectedError is a DeleteFleetErrorCode enum value
  71766. DeleteFleetErrorCodeUnexpectedError = "unexpectedError"
  71767. )
  71768. const (
  71769. // DeviceTypeEbs is a DeviceType enum value
  71770. DeviceTypeEbs = "ebs"
  71771. // DeviceTypeInstanceStore is a DeviceType enum value
  71772. DeviceTypeInstanceStore = "instance-store"
  71773. )
  71774. const (
  71775. // DiskImageFormatVmdk is a DiskImageFormat enum value
  71776. DiskImageFormatVmdk = "VMDK"
  71777. // DiskImageFormatRaw is a DiskImageFormat enum value
  71778. DiskImageFormatRaw = "RAW"
  71779. // DiskImageFormatVhd is a DiskImageFormat enum value
  71780. DiskImageFormatVhd = "VHD"
  71781. )
  71782. const (
  71783. // DnsSupportValueEnable is a DnsSupportValue enum value
  71784. DnsSupportValueEnable = "enable"
  71785. // DnsSupportValueDisable is a DnsSupportValue enum value
  71786. DnsSupportValueDisable = "disable"
  71787. )
  71788. const (
  71789. // DomainTypeVpc is a DomainType enum value
  71790. DomainTypeVpc = "vpc"
  71791. // DomainTypeStandard is a DomainType enum value
  71792. DomainTypeStandard = "standard"
  71793. )
  71794. const (
  71795. // ElasticGpuStateAttached is a ElasticGpuState enum value
  71796. ElasticGpuStateAttached = "ATTACHED"
  71797. )
  71798. const (
  71799. // ElasticGpuStatusOk is a ElasticGpuStatus enum value
  71800. ElasticGpuStatusOk = "OK"
  71801. // ElasticGpuStatusImpaired is a ElasticGpuStatus enum value
  71802. ElasticGpuStatusImpaired = "IMPAIRED"
  71803. )
  71804. const (
  71805. // EndDateTypeUnlimited is a EndDateType enum value
  71806. EndDateTypeUnlimited = "unlimited"
  71807. // EndDateTypeLimited is a EndDateType enum value
  71808. EndDateTypeLimited = "limited"
  71809. )
  71810. const (
  71811. // EventCodeInstanceReboot is a EventCode enum value
  71812. EventCodeInstanceReboot = "instance-reboot"
  71813. // EventCodeSystemReboot is a EventCode enum value
  71814. EventCodeSystemReboot = "system-reboot"
  71815. // EventCodeSystemMaintenance is a EventCode enum value
  71816. EventCodeSystemMaintenance = "system-maintenance"
  71817. // EventCodeInstanceRetirement is a EventCode enum value
  71818. EventCodeInstanceRetirement = "instance-retirement"
  71819. // EventCodeInstanceStop is a EventCode enum value
  71820. EventCodeInstanceStop = "instance-stop"
  71821. )
  71822. const (
  71823. // EventTypeInstanceChange is a EventType enum value
  71824. EventTypeInstanceChange = "instanceChange"
  71825. // EventTypeFleetRequestChange is a EventType enum value
  71826. EventTypeFleetRequestChange = "fleetRequestChange"
  71827. // EventTypeError is a EventType enum value
  71828. EventTypeError = "error"
  71829. )
  71830. const (
  71831. // ExcessCapacityTerminationPolicyNoTermination is a ExcessCapacityTerminationPolicy enum value
  71832. ExcessCapacityTerminationPolicyNoTermination = "noTermination"
  71833. // ExcessCapacityTerminationPolicyDefault is a ExcessCapacityTerminationPolicy enum value
  71834. ExcessCapacityTerminationPolicyDefault = "default"
  71835. )
  71836. const (
  71837. // ExportEnvironmentCitrix is a ExportEnvironment enum value
  71838. ExportEnvironmentCitrix = "citrix"
  71839. // ExportEnvironmentVmware is a ExportEnvironment enum value
  71840. ExportEnvironmentVmware = "vmware"
  71841. // ExportEnvironmentMicrosoft is a ExportEnvironment enum value
  71842. ExportEnvironmentMicrosoft = "microsoft"
  71843. )
  71844. const (
  71845. // ExportTaskStateActive is a ExportTaskState enum value
  71846. ExportTaskStateActive = "active"
  71847. // ExportTaskStateCancelling is a ExportTaskState enum value
  71848. ExportTaskStateCancelling = "cancelling"
  71849. // ExportTaskStateCancelled is a ExportTaskState enum value
  71850. ExportTaskStateCancelled = "cancelled"
  71851. // ExportTaskStateCompleted is a ExportTaskState enum value
  71852. ExportTaskStateCompleted = "completed"
  71853. )
  71854. const (
  71855. // FleetActivityStatusError is a FleetActivityStatus enum value
  71856. FleetActivityStatusError = "error"
  71857. // FleetActivityStatusPendingFulfillment is a FleetActivityStatus enum value
  71858. FleetActivityStatusPendingFulfillment = "pending-fulfillment"
  71859. // FleetActivityStatusPendingTermination is a FleetActivityStatus enum value
  71860. FleetActivityStatusPendingTermination = "pending-termination"
  71861. // FleetActivityStatusFulfilled is a FleetActivityStatus enum value
  71862. FleetActivityStatusFulfilled = "fulfilled"
  71863. )
  71864. const (
  71865. // FleetEventTypeInstanceChange is a FleetEventType enum value
  71866. FleetEventTypeInstanceChange = "instance-change"
  71867. // FleetEventTypeFleetChange is a FleetEventType enum value
  71868. FleetEventTypeFleetChange = "fleet-change"
  71869. // FleetEventTypeServiceError is a FleetEventType enum value
  71870. FleetEventTypeServiceError = "service-error"
  71871. )
  71872. const (
  71873. // FleetExcessCapacityTerminationPolicyNoTermination is a FleetExcessCapacityTerminationPolicy enum value
  71874. FleetExcessCapacityTerminationPolicyNoTermination = "no-termination"
  71875. // FleetExcessCapacityTerminationPolicyTermination is a FleetExcessCapacityTerminationPolicy enum value
  71876. FleetExcessCapacityTerminationPolicyTermination = "termination"
  71877. )
  71878. const (
  71879. // FleetOnDemandAllocationStrategyLowestPrice is a FleetOnDemandAllocationStrategy enum value
  71880. FleetOnDemandAllocationStrategyLowestPrice = "lowest-price"
  71881. // FleetOnDemandAllocationStrategyPrioritized is a FleetOnDemandAllocationStrategy enum value
  71882. FleetOnDemandAllocationStrategyPrioritized = "prioritized"
  71883. )
  71884. const (
  71885. // FleetStateCodeSubmitted is a FleetStateCode enum value
  71886. FleetStateCodeSubmitted = "submitted"
  71887. // FleetStateCodeActive is a FleetStateCode enum value
  71888. FleetStateCodeActive = "active"
  71889. // FleetStateCodeDeleted is a FleetStateCode enum value
  71890. FleetStateCodeDeleted = "deleted"
  71891. // FleetStateCodeFailed is a FleetStateCode enum value
  71892. FleetStateCodeFailed = "failed"
  71893. // FleetStateCodeDeletedRunning is a FleetStateCode enum value
  71894. FleetStateCodeDeletedRunning = "deleted-running"
  71895. // FleetStateCodeDeletedTerminating is a FleetStateCode enum value
  71896. FleetStateCodeDeletedTerminating = "deleted-terminating"
  71897. // FleetStateCodeModifying is a FleetStateCode enum value
  71898. FleetStateCodeModifying = "modifying"
  71899. )
  71900. const (
  71901. // FleetTypeRequest is a FleetType enum value
  71902. FleetTypeRequest = "request"
  71903. // FleetTypeMaintain is a FleetType enum value
  71904. FleetTypeMaintain = "maintain"
  71905. // FleetTypeInstant is a FleetType enum value
  71906. FleetTypeInstant = "instant"
  71907. )
  71908. const (
  71909. // FlowLogsResourceTypeVpc is a FlowLogsResourceType enum value
  71910. FlowLogsResourceTypeVpc = "VPC"
  71911. // FlowLogsResourceTypeSubnet is a FlowLogsResourceType enum value
  71912. FlowLogsResourceTypeSubnet = "Subnet"
  71913. // FlowLogsResourceTypeNetworkInterface is a FlowLogsResourceType enum value
  71914. FlowLogsResourceTypeNetworkInterface = "NetworkInterface"
  71915. )
  71916. const (
  71917. // FpgaImageAttributeNameDescription is a FpgaImageAttributeName enum value
  71918. FpgaImageAttributeNameDescription = "description"
  71919. // FpgaImageAttributeNameName is a FpgaImageAttributeName enum value
  71920. FpgaImageAttributeNameName = "name"
  71921. // FpgaImageAttributeNameLoadPermission is a FpgaImageAttributeName enum value
  71922. FpgaImageAttributeNameLoadPermission = "loadPermission"
  71923. // FpgaImageAttributeNameProductCodes is a FpgaImageAttributeName enum value
  71924. FpgaImageAttributeNameProductCodes = "productCodes"
  71925. )
  71926. const (
  71927. // FpgaImageStateCodePending is a FpgaImageStateCode enum value
  71928. FpgaImageStateCodePending = "pending"
  71929. // FpgaImageStateCodeFailed is a FpgaImageStateCode enum value
  71930. FpgaImageStateCodeFailed = "failed"
  71931. // FpgaImageStateCodeAvailable is a FpgaImageStateCode enum value
  71932. FpgaImageStateCodeAvailable = "available"
  71933. // FpgaImageStateCodeUnavailable is a FpgaImageStateCode enum value
  71934. FpgaImageStateCodeUnavailable = "unavailable"
  71935. )
  71936. const (
  71937. // GatewayTypeIpsec1 is a GatewayType enum value
  71938. GatewayTypeIpsec1 = "ipsec.1"
  71939. )
  71940. const (
  71941. // HostTenancyDedicated is a HostTenancy enum value
  71942. HostTenancyDedicated = "dedicated"
  71943. // HostTenancyHost is a HostTenancy enum value
  71944. HostTenancyHost = "host"
  71945. )
  71946. const (
  71947. // HypervisorTypeOvm is a HypervisorType enum value
  71948. HypervisorTypeOvm = "ovm"
  71949. // HypervisorTypeXen is a HypervisorType enum value
  71950. HypervisorTypeXen = "xen"
  71951. )
  71952. const (
  71953. // IamInstanceProfileAssociationStateAssociating is a IamInstanceProfileAssociationState enum value
  71954. IamInstanceProfileAssociationStateAssociating = "associating"
  71955. // IamInstanceProfileAssociationStateAssociated is a IamInstanceProfileAssociationState enum value
  71956. IamInstanceProfileAssociationStateAssociated = "associated"
  71957. // IamInstanceProfileAssociationStateDisassociating is a IamInstanceProfileAssociationState enum value
  71958. IamInstanceProfileAssociationStateDisassociating = "disassociating"
  71959. // IamInstanceProfileAssociationStateDisassociated is a IamInstanceProfileAssociationState enum value
  71960. IamInstanceProfileAssociationStateDisassociated = "disassociated"
  71961. )
  71962. const (
  71963. // ImageAttributeNameDescription is a ImageAttributeName enum value
  71964. ImageAttributeNameDescription = "description"
  71965. // ImageAttributeNameKernel is a ImageAttributeName enum value
  71966. ImageAttributeNameKernel = "kernel"
  71967. // ImageAttributeNameRamdisk is a ImageAttributeName enum value
  71968. ImageAttributeNameRamdisk = "ramdisk"
  71969. // ImageAttributeNameLaunchPermission is a ImageAttributeName enum value
  71970. ImageAttributeNameLaunchPermission = "launchPermission"
  71971. // ImageAttributeNameProductCodes is a ImageAttributeName enum value
  71972. ImageAttributeNameProductCodes = "productCodes"
  71973. // ImageAttributeNameBlockDeviceMapping is a ImageAttributeName enum value
  71974. ImageAttributeNameBlockDeviceMapping = "blockDeviceMapping"
  71975. // ImageAttributeNameSriovNetSupport is a ImageAttributeName enum value
  71976. ImageAttributeNameSriovNetSupport = "sriovNetSupport"
  71977. )
  71978. const (
  71979. // ImageStatePending is a ImageState enum value
  71980. ImageStatePending = "pending"
  71981. // ImageStateAvailable is a ImageState enum value
  71982. ImageStateAvailable = "available"
  71983. // ImageStateInvalid is a ImageState enum value
  71984. ImageStateInvalid = "invalid"
  71985. // ImageStateDeregistered is a ImageState enum value
  71986. ImageStateDeregistered = "deregistered"
  71987. // ImageStateTransient is a ImageState enum value
  71988. ImageStateTransient = "transient"
  71989. // ImageStateFailed is a ImageState enum value
  71990. ImageStateFailed = "failed"
  71991. // ImageStateError is a ImageState enum value
  71992. ImageStateError = "error"
  71993. )
  71994. const (
  71995. // ImageTypeValuesMachine is a ImageTypeValues enum value
  71996. ImageTypeValuesMachine = "machine"
  71997. // ImageTypeValuesKernel is a ImageTypeValues enum value
  71998. ImageTypeValuesKernel = "kernel"
  71999. // ImageTypeValuesRamdisk is a ImageTypeValues enum value
  72000. ImageTypeValuesRamdisk = "ramdisk"
  72001. )
  72002. const (
  72003. // InstanceAttributeNameInstanceType is a InstanceAttributeName enum value
  72004. InstanceAttributeNameInstanceType = "instanceType"
  72005. // InstanceAttributeNameKernel is a InstanceAttributeName enum value
  72006. InstanceAttributeNameKernel = "kernel"
  72007. // InstanceAttributeNameRamdisk is a InstanceAttributeName enum value
  72008. InstanceAttributeNameRamdisk = "ramdisk"
  72009. // InstanceAttributeNameUserData is a InstanceAttributeName enum value
  72010. InstanceAttributeNameUserData = "userData"
  72011. // InstanceAttributeNameDisableApiTermination is a InstanceAttributeName enum value
  72012. InstanceAttributeNameDisableApiTermination = "disableApiTermination"
  72013. // InstanceAttributeNameInstanceInitiatedShutdownBehavior is a InstanceAttributeName enum value
  72014. InstanceAttributeNameInstanceInitiatedShutdownBehavior = "instanceInitiatedShutdownBehavior"
  72015. // InstanceAttributeNameRootDeviceName is a InstanceAttributeName enum value
  72016. InstanceAttributeNameRootDeviceName = "rootDeviceName"
  72017. // InstanceAttributeNameBlockDeviceMapping is a InstanceAttributeName enum value
  72018. InstanceAttributeNameBlockDeviceMapping = "blockDeviceMapping"
  72019. // InstanceAttributeNameProductCodes is a InstanceAttributeName enum value
  72020. InstanceAttributeNameProductCodes = "productCodes"
  72021. // InstanceAttributeNameSourceDestCheck is a InstanceAttributeName enum value
  72022. InstanceAttributeNameSourceDestCheck = "sourceDestCheck"
  72023. // InstanceAttributeNameGroupSet is a InstanceAttributeName enum value
  72024. InstanceAttributeNameGroupSet = "groupSet"
  72025. // InstanceAttributeNameEbsOptimized is a InstanceAttributeName enum value
  72026. InstanceAttributeNameEbsOptimized = "ebsOptimized"
  72027. // InstanceAttributeNameSriovNetSupport is a InstanceAttributeName enum value
  72028. InstanceAttributeNameSriovNetSupport = "sriovNetSupport"
  72029. // InstanceAttributeNameEnaSupport is a InstanceAttributeName enum value
  72030. InstanceAttributeNameEnaSupport = "enaSupport"
  72031. )
  72032. const (
  72033. // InstanceHealthStatusHealthy is a InstanceHealthStatus enum value
  72034. InstanceHealthStatusHealthy = "healthy"
  72035. // InstanceHealthStatusUnhealthy is a InstanceHealthStatus enum value
  72036. InstanceHealthStatusUnhealthy = "unhealthy"
  72037. )
  72038. const (
  72039. // InstanceInterruptionBehaviorHibernate is a InstanceInterruptionBehavior enum value
  72040. InstanceInterruptionBehaviorHibernate = "hibernate"
  72041. // InstanceInterruptionBehaviorStop is a InstanceInterruptionBehavior enum value
  72042. InstanceInterruptionBehaviorStop = "stop"
  72043. // InstanceInterruptionBehaviorTerminate is a InstanceInterruptionBehavior enum value
  72044. InstanceInterruptionBehaviorTerminate = "terminate"
  72045. )
  72046. const (
  72047. // InstanceLifecycleSpot is a InstanceLifecycle enum value
  72048. InstanceLifecycleSpot = "spot"
  72049. // InstanceLifecycleOnDemand is a InstanceLifecycle enum value
  72050. InstanceLifecycleOnDemand = "on-demand"
  72051. )
  72052. const (
  72053. // InstanceLifecycleTypeSpot is a InstanceLifecycleType enum value
  72054. InstanceLifecycleTypeSpot = "spot"
  72055. // InstanceLifecycleTypeScheduled is a InstanceLifecycleType enum value
  72056. InstanceLifecycleTypeScheduled = "scheduled"
  72057. )
  72058. const (
  72059. // InstanceMatchCriteriaOpen is a InstanceMatchCriteria enum value
  72060. InstanceMatchCriteriaOpen = "open"
  72061. // InstanceMatchCriteriaTargeted is a InstanceMatchCriteria enum value
  72062. InstanceMatchCriteriaTargeted = "targeted"
  72063. )
  72064. const (
  72065. // InstanceStateNamePending is a InstanceStateName enum value
  72066. InstanceStateNamePending = "pending"
  72067. // InstanceStateNameRunning is a InstanceStateName enum value
  72068. InstanceStateNameRunning = "running"
  72069. // InstanceStateNameShuttingDown is a InstanceStateName enum value
  72070. InstanceStateNameShuttingDown = "shutting-down"
  72071. // InstanceStateNameTerminated is a InstanceStateName enum value
  72072. InstanceStateNameTerminated = "terminated"
  72073. // InstanceStateNameStopping is a InstanceStateName enum value
  72074. InstanceStateNameStopping = "stopping"
  72075. // InstanceStateNameStopped is a InstanceStateName enum value
  72076. InstanceStateNameStopped = "stopped"
  72077. )
  72078. const (
  72079. // InstanceTypeT1Micro is a InstanceType enum value
  72080. InstanceTypeT1Micro = "t1.micro"
  72081. // InstanceTypeT2Nano is a InstanceType enum value
  72082. InstanceTypeT2Nano = "t2.nano"
  72083. // InstanceTypeT2Micro is a InstanceType enum value
  72084. InstanceTypeT2Micro = "t2.micro"
  72085. // InstanceTypeT2Small is a InstanceType enum value
  72086. InstanceTypeT2Small = "t2.small"
  72087. // InstanceTypeT2Medium is a InstanceType enum value
  72088. InstanceTypeT2Medium = "t2.medium"
  72089. // InstanceTypeT2Large is a InstanceType enum value
  72090. InstanceTypeT2Large = "t2.large"
  72091. // InstanceTypeT2Xlarge is a InstanceType enum value
  72092. InstanceTypeT2Xlarge = "t2.xlarge"
  72093. // InstanceTypeT22xlarge is a InstanceType enum value
  72094. InstanceTypeT22xlarge = "t2.2xlarge"
  72095. // InstanceTypeT3Nano is a InstanceType enum value
  72096. InstanceTypeT3Nano = "t3.nano"
  72097. // InstanceTypeT3Micro is a InstanceType enum value
  72098. InstanceTypeT3Micro = "t3.micro"
  72099. // InstanceTypeT3Small is a InstanceType enum value
  72100. InstanceTypeT3Small = "t3.small"
  72101. // InstanceTypeT3Medium is a InstanceType enum value
  72102. InstanceTypeT3Medium = "t3.medium"
  72103. // InstanceTypeT3Large is a InstanceType enum value
  72104. InstanceTypeT3Large = "t3.large"
  72105. // InstanceTypeT3Xlarge is a InstanceType enum value
  72106. InstanceTypeT3Xlarge = "t3.xlarge"
  72107. // InstanceTypeT32xlarge is a InstanceType enum value
  72108. InstanceTypeT32xlarge = "t3.2xlarge"
  72109. // InstanceTypeM1Small is a InstanceType enum value
  72110. InstanceTypeM1Small = "m1.small"
  72111. // InstanceTypeM1Medium is a InstanceType enum value
  72112. InstanceTypeM1Medium = "m1.medium"
  72113. // InstanceTypeM1Large is a InstanceType enum value
  72114. InstanceTypeM1Large = "m1.large"
  72115. // InstanceTypeM1Xlarge is a InstanceType enum value
  72116. InstanceTypeM1Xlarge = "m1.xlarge"
  72117. // InstanceTypeM3Medium is a InstanceType enum value
  72118. InstanceTypeM3Medium = "m3.medium"
  72119. // InstanceTypeM3Large is a InstanceType enum value
  72120. InstanceTypeM3Large = "m3.large"
  72121. // InstanceTypeM3Xlarge is a InstanceType enum value
  72122. InstanceTypeM3Xlarge = "m3.xlarge"
  72123. // InstanceTypeM32xlarge is a InstanceType enum value
  72124. InstanceTypeM32xlarge = "m3.2xlarge"
  72125. // InstanceTypeM4Large is a InstanceType enum value
  72126. InstanceTypeM4Large = "m4.large"
  72127. // InstanceTypeM4Xlarge is a InstanceType enum value
  72128. InstanceTypeM4Xlarge = "m4.xlarge"
  72129. // InstanceTypeM42xlarge is a InstanceType enum value
  72130. InstanceTypeM42xlarge = "m4.2xlarge"
  72131. // InstanceTypeM44xlarge is a InstanceType enum value
  72132. InstanceTypeM44xlarge = "m4.4xlarge"
  72133. // InstanceTypeM410xlarge is a InstanceType enum value
  72134. InstanceTypeM410xlarge = "m4.10xlarge"
  72135. // InstanceTypeM416xlarge is a InstanceType enum value
  72136. InstanceTypeM416xlarge = "m4.16xlarge"
  72137. // InstanceTypeM2Xlarge is a InstanceType enum value
  72138. InstanceTypeM2Xlarge = "m2.xlarge"
  72139. // InstanceTypeM22xlarge is a InstanceType enum value
  72140. InstanceTypeM22xlarge = "m2.2xlarge"
  72141. // InstanceTypeM24xlarge is a InstanceType enum value
  72142. InstanceTypeM24xlarge = "m2.4xlarge"
  72143. // InstanceTypeCr18xlarge is a InstanceType enum value
  72144. InstanceTypeCr18xlarge = "cr1.8xlarge"
  72145. // InstanceTypeR3Large is a InstanceType enum value
  72146. InstanceTypeR3Large = "r3.large"
  72147. // InstanceTypeR3Xlarge is a InstanceType enum value
  72148. InstanceTypeR3Xlarge = "r3.xlarge"
  72149. // InstanceTypeR32xlarge is a InstanceType enum value
  72150. InstanceTypeR32xlarge = "r3.2xlarge"
  72151. // InstanceTypeR34xlarge is a InstanceType enum value
  72152. InstanceTypeR34xlarge = "r3.4xlarge"
  72153. // InstanceTypeR38xlarge is a InstanceType enum value
  72154. InstanceTypeR38xlarge = "r3.8xlarge"
  72155. // InstanceTypeR4Large is a InstanceType enum value
  72156. InstanceTypeR4Large = "r4.large"
  72157. // InstanceTypeR4Xlarge is a InstanceType enum value
  72158. InstanceTypeR4Xlarge = "r4.xlarge"
  72159. // InstanceTypeR42xlarge is a InstanceType enum value
  72160. InstanceTypeR42xlarge = "r4.2xlarge"
  72161. // InstanceTypeR44xlarge is a InstanceType enum value
  72162. InstanceTypeR44xlarge = "r4.4xlarge"
  72163. // InstanceTypeR48xlarge is a InstanceType enum value
  72164. InstanceTypeR48xlarge = "r4.8xlarge"
  72165. // InstanceTypeR416xlarge is a InstanceType enum value
  72166. InstanceTypeR416xlarge = "r4.16xlarge"
  72167. // InstanceTypeR5Large is a InstanceType enum value
  72168. InstanceTypeR5Large = "r5.large"
  72169. // InstanceTypeR5Xlarge is a InstanceType enum value
  72170. InstanceTypeR5Xlarge = "r5.xlarge"
  72171. // InstanceTypeR52xlarge is a InstanceType enum value
  72172. InstanceTypeR52xlarge = "r5.2xlarge"
  72173. // InstanceTypeR54xlarge is a InstanceType enum value
  72174. InstanceTypeR54xlarge = "r5.4xlarge"
  72175. // InstanceTypeR512xlarge is a InstanceType enum value
  72176. InstanceTypeR512xlarge = "r5.12xlarge"
  72177. // InstanceTypeR524xlarge is a InstanceType enum value
  72178. InstanceTypeR524xlarge = "r5.24xlarge"
  72179. // InstanceTypeR5Metal is a InstanceType enum value
  72180. InstanceTypeR5Metal = "r5.metal"
  72181. // InstanceTypeR5aLarge is a InstanceType enum value
  72182. InstanceTypeR5aLarge = "r5a.large"
  72183. // InstanceTypeR5aXlarge is a InstanceType enum value
  72184. InstanceTypeR5aXlarge = "r5a.xlarge"
  72185. // InstanceTypeR5a2xlarge is a InstanceType enum value
  72186. InstanceTypeR5a2xlarge = "r5a.2xlarge"
  72187. // InstanceTypeR5a4xlarge is a InstanceType enum value
  72188. InstanceTypeR5a4xlarge = "r5a.4xlarge"
  72189. // InstanceTypeR5a12xlarge is a InstanceType enum value
  72190. InstanceTypeR5a12xlarge = "r5a.12xlarge"
  72191. // InstanceTypeR5a24xlarge is a InstanceType enum value
  72192. InstanceTypeR5a24xlarge = "r5a.24xlarge"
  72193. // InstanceTypeR5dLarge is a InstanceType enum value
  72194. InstanceTypeR5dLarge = "r5d.large"
  72195. // InstanceTypeR5dXlarge is a InstanceType enum value
  72196. InstanceTypeR5dXlarge = "r5d.xlarge"
  72197. // InstanceTypeR5d2xlarge is a InstanceType enum value
  72198. InstanceTypeR5d2xlarge = "r5d.2xlarge"
  72199. // InstanceTypeR5d4xlarge is a InstanceType enum value
  72200. InstanceTypeR5d4xlarge = "r5d.4xlarge"
  72201. // InstanceTypeR5d12xlarge is a InstanceType enum value
  72202. InstanceTypeR5d12xlarge = "r5d.12xlarge"
  72203. // InstanceTypeR5d24xlarge is a InstanceType enum value
  72204. InstanceTypeR5d24xlarge = "r5d.24xlarge"
  72205. // InstanceTypeR5dMetal is a InstanceType enum value
  72206. InstanceTypeR5dMetal = "r5d.metal"
  72207. // InstanceTypeX116xlarge is a InstanceType enum value
  72208. InstanceTypeX116xlarge = "x1.16xlarge"
  72209. // InstanceTypeX132xlarge is a InstanceType enum value
  72210. InstanceTypeX132xlarge = "x1.32xlarge"
  72211. // InstanceTypeX1eXlarge is a InstanceType enum value
  72212. InstanceTypeX1eXlarge = "x1e.xlarge"
  72213. // InstanceTypeX1e2xlarge is a InstanceType enum value
  72214. InstanceTypeX1e2xlarge = "x1e.2xlarge"
  72215. // InstanceTypeX1e4xlarge is a InstanceType enum value
  72216. InstanceTypeX1e4xlarge = "x1e.4xlarge"
  72217. // InstanceTypeX1e8xlarge is a InstanceType enum value
  72218. InstanceTypeX1e8xlarge = "x1e.8xlarge"
  72219. // InstanceTypeX1e16xlarge is a InstanceType enum value
  72220. InstanceTypeX1e16xlarge = "x1e.16xlarge"
  72221. // InstanceTypeX1e32xlarge is a InstanceType enum value
  72222. InstanceTypeX1e32xlarge = "x1e.32xlarge"
  72223. // InstanceTypeI2Xlarge is a InstanceType enum value
  72224. InstanceTypeI2Xlarge = "i2.xlarge"
  72225. // InstanceTypeI22xlarge is a InstanceType enum value
  72226. InstanceTypeI22xlarge = "i2.2xlarge"
  72227. // InstanceTypeI24xlarge is a InstanceType enum value
  72228. InstanceTypeI24xlarge = "i2.4xlarge"
  72229. // InstanceTypeI28xlarge is a InstanceType enum value
  72230. InstanceTypeI28xlarge = "i2.8xlarge"
  72231. // InstanceTypeI3Large is a InstanceType enum value
  72232. InstanceTypeI3Large = "i3.large"
  72233. // InstanceTypeI3Xlarge is a InstanceType enum value
  72234. InstanceTypeI3Xlarge = "i3.xlarge"
  72235. // InstanceTypeI32xlarge is a InstanceType enum value
  72236. InstanceTypeI32xlarge = "i3.2xlarge"
  72237. // InstanceTypeI34xlarge is a InstanceType enum value
  72238. InstanceTypeI34xlarge = "i3.4xlarge"
  72239. // InstanceTypeI38xlarge is a InstanceType enum value
  72240. InstanceTypeI38xlarge = "i3.8xlarge"
  72241. // InstanceTypeI316xlarge is a InstanceType enum value
  72242. InstanceTypeI316xlarge = "i3.16xlarge"
  72243. // InstanceTypeI3Metal is a InstanceType enum value
  72244. InstanceTypeI3Metal = "i3.metal"
  72245. // InstanceTypeHi14xlarge is a InstanceType enum value
  72246. InstanceTypeHi14xlarge = "hi1.4xlarge"
  72247. // InstanceTypeHs18xlarge is a InstanceType enum value
  72248. InstanceTypeHs18xlarge = "hs1.8xlarge"
  72249. // InstanceTypeC1Medium is a InstanceType enum value
  72250. InstanceTypeC1Medium = "c1.medium"
  72251. // InstanceTypeC1Xlarge is a InstanceType enum value
  72252. InstanceTypeC1Xlarge = "c1.xlarge"
  72253. // InstanceTypeC3Large is a InstanceType enum value
  72254. InstanceTypeC3Large = "c3.large"
  72255. // InstanceTypeC3Xlarge is a InstanceType enum value
  72256. InstanceTypeC3Xlarge = "c3.xlarge"
  72257. // InstanceTypeC32xlarge is a InstanceType enum value
  72258. InstanceTypeC32xlarge = "c3.2xlarge"
  72259. // InstanceTypeC34xlarge is a InstanceType enum value
  72260. InstanceTypeC34xlarge = "c3.4xlarge"
  72261. // InstanceTypeC38xlarge is a InstanceType enum value
  72262. InstanceTypeC38xlarge = "c3.8xlarge"
  72263. // InstanceTypeC4Large is a InstanceType enum value
  72264. InstanceTypeC4Large = "c4.large"
  72265. // InstanceTypeC4Xlarge is a InstanceType enum value
  72266. InstanceTypeC4Xlarge = "c4.xlarge"
  72267. // InstanceTypeC42xlarge is a InstanceType enum value
  72268. InstanceTypeC42xlarge = "c4.2xlarge"
  72269. // InstanceTypeC44xlarge is a InstanceType enum value
  72270. InstanceTypeC44xlarge = "c4.4xlarge"
  72271. // InstanceTypeC48xlarge is a InstanceType enum value
  72272. InstanceTypeC48xlarge = "c4.8xlarge"
  72273. // InstanceTypeC5Large is a InstanceType enum value
  72274. InstanceTypeC5Large = "c5.large"
  72275. // InstanceTypeC5Xlarge is a InstanceType enum value
  72276. InstanceTypeC5Xlarge = "c5.xlarge"
  72277. // InstanceTypeC52xlarge is a InstanceType enum value
  72278. InstanceTypeC52xlarge = "c5.2xlarge"
  72279. // InstanceTypeC54xlarge is a InstanceType enum value
  72280. InstanceTypeC54xlarge = "c5.4xlarge"
  72281. // InstanceTypeC59xlarge is a InstanceType enum value
  72282. InstanceTypeC59xlarge = "c5.9xlarge"
  72283. // InstanceTypeC518xlarge is a InstanceType enum value
  72284. InstanceTypeC518xlarge = "c5.18xlarge"
  72285. // InstanceTypeC5dLarge is a InstanceType enum value
  72286. InstanceTypeC5dLarge = "c5d.large"
  72287. // InstanceTypeC5dXlarge is a InstanceType enum value
  72288. InstanceTypeC5dXlarge = "c5d.xlarge"
  72289. // InstanceTypeC5d2xlarge is a InstanceType enum value
  72290. InstanceTypeC5d2xlarge = "c5d.2xlarge"
  72291. // InstanceTypeC5d4xlarge is a InstanceType enum value
  72292. InstanceTypeC5d4xlarge = "c5d.4xlarge"
  72293. // InstanceTypeC5d9xlarge is a InstanceType enum value
  72294. InstanceTypeC5d9xlarge = "c5d.9xlarge"
  72295. // InstanceTypeC5d18xlarge is a InstanceType enum value
  72296. InstanceTypeC5d18xlarge = "c5d.18xlarge"
  72297. // InstanceTypeC5nLarge is a InstanceType enum value
  72298. InstanceTypeC5nLarge = "c5n.large"
  72299. // InstanceTypeC5nXlarge is a InstanceType enum value
  72300. InstanceTypeC5nXlarge = "c5n.xlarge"
  72301. // InstanceTypeC5n2xlarge is a InstanceType enum value
  72302. InstanceTypeC5n2xlarge = "c5n.2xlarge"
  72303. // InstanceTypeC5n4xlarge is a InstanceType enum value
  72304. InstanceTypeC5n4xlarge = "c5n.4xlarge"
  72305. // InstanceTypeC5n9xlarge is a InstanceType enum value
  72306. InstanceTypeC5n9xlarge = "c5n.9xlarge"
  72307. // InstanceTypeC5n18xlarge is a InstanceType enum value
  72308. InstanceTypeC5n18xlarge = "c5n.18xlarge"
  72309. // InstanceTypeCc14xlarge is a InstanceType enum value
  72310. InstanceTypeCc14xlarge = "cc1.4xlarge"
  72311. // InstanceTypeCc28xlarge is a InstanceType enum value
  72312. InstanceTypeCc28xlarge = "cc2.8xlarge"
  72313. // InstanceTypeG22xlarge is a InstanceType enum value
  72314. InstanceTypeG22xlarge = "g2.2xlarge"
  72315. // InstanceTypeG28xlarge is a InstanceType enum value
  72316. InstanceTypeG28xlarge = "g2.8xlarge"
  72317. // InstanceTypeG34xlarge is a InstanceType enum value
  72318. InstanceTypeG34xlarge = "g3.4xlarge"
  72319. // InstanceTypeG38xlarge is a InstanceType enum value
  72320. InstanceTypeG38xlarge = "g3.8xlarge"
  72321. // InstanceTypeG316xlarge is a InstanceType enum value
  72322. InstanceTypeG316xlarge = "g3.16xlarge"
  72323. // InstanceTypeG3sXlarge is a InstanceType enum value
  72324. InstanceTypeG3sXlarge = "g3s.xlarge"
  72325. // InstanceTypeCg14xlarge is a InstanceType enum value
  72326. InstanceTypeCg14xlarge = "cg1.4xlarge"
  72327. // InstanceTypeP2Xlarge is a InstanceType enum value
  72328. InstanceTypeP2Xlarge = "p2.xlarge"
  72329. // InstanceTypeP28xlarge is a InstanceType enum value
  72330. InstanceTypeP28xlarge = "p2.8xlarge"
  72331. // InstanceTypeP216xlarge is a InstanceType enum value
  72332. InstanceTypeP216xlarge = "p2.16xlarge"
  72333. // InstanceTypeP32xlarge is a InstanceType enum value
  72334. InstanceTypeP32xlarge = "p3.2xlarge"
  72335. // InstanceTypeP38xlarge is a InstanceType enum value
  72336. InstanceTypeP38xlarge = "p3.8xlarge"
  72337. // InstanceTypeP316xlarge is a InstanceType enum value
  72338. InstanceTypeP316xlarge = "p3.16xlarge"
  72339. // InstanceTypeP3dn24xlarge is a InstanceType enum value
  72340. InstanceTypeP3dn24xlarge = "p3dn.24xlarge"
  72341. // InstanceTypeD2Xlarge is a InstanceType enum value
  72342. InstanceTypeD2Xlarge = "d2.xlarge"
  72343. // InstanceTypeD22xlarge is a InstanceType enum value
  72344. InstanceTypeD22xlarge = "d2.2xlarge"
  72345. // InstanceTypeD24xlarge is a InstanceType enum value
  72346. InstanceTypeD24xlarge = "d2.4xlarge"
  72347. // InstanceTypeD28xlarge is a InstanceType enum value
  72348. InstanceTypeD28xlarge = "d2.8xlarge"
  72349. // InstanceTypeF12xlarge is a InstanceType enum value
  72350. InstanceTypeF12xlarge = "f1.2xlarge"
  72351. // InstanceTypeF14xlarge is a InstanceType enum value
  72352. InstanceTypeF14xlarge = "f1.4xlarge"
  72353. // InstanceTypeF116xlarge is a InstanceType enum value
  72354. InstanceTypeF116xlarge = "f1.16xlarge"
  72355. // InstanceTypeM5Large is a InstanceType enum value
  72356. InstanceTypeM5Large = "m5.large"
  72357. // InstanceTypeM5Xlarge is a InstanceType enum value
  72358. InstanceTypeM5Xlarge = "m5.xlarge"
  72359. // InstanceTypeM52xlarge is a InstanceType enum value
  72360. InstanceTypeM52xlarge = "m5.2xlarge"
  72361. // InstanceTypeM54xlarge is a InstanceType enum value
  72362. InstanceTypeM54xlarge = "m5.4xlarge"
  72363. // InstanceTypeM512xlarge is a InstanceType enum value
  72364. InstanceTypeM512xlarge = "m5.12xlarge"
  72365. // InstanceTypeM524xlarge is a InstanceType enum value
  72366. InstanceTypeM524xlarge = "m5.24xlarge"
  72367. // InstanceTypeM5aLarge is a InstanceType enum value
  72368. InstanceTypeM5aLarge = "m5a.large"
  72369. // InstanceTypeM5aXlarge is a InstanceType enum value
  72370. InstanceTypeM5aXlarge = "m5a.xlarge"
  72371. // InstanceTypeM5a2xlarge is a InstanceType enum value
  72372. InstanceTypeM5a2xlarge = "m5a.2xlarge"
  72373. // InstanceTypeM5a4xlarge is a InstanceType enum value
  72374. InstanceTypeM5a4xlarge = "m5a.4xlarge"
  72375. // InstanceTypeM5a12xlarge is a InstanceType enum value
  72376. InstanceTypeM5a12xlarge = "m5a.12xlarge"
  72377. // InstanceTypeM5a24xlarge is a InstanceType enum value
  72378. InstanceTypeM5a24xlarge = "m5a.24xlarge"
  72379. // InstanceTypeM5dLarge is a InstanceType enum value
  72380. InstanceTypeM5dLarge = "m5d.large"
  72381. // InstanceTypeM5dXlarge is a InstanceType enum value
  72382. InstanceTypeM5dXlarge = "m5d.xlarge"
  72383. // InstanceTypeM5d2xlarge is a InstanceType enum value
  72384. InstanceTypeM5d2xlarge = "m5d.2xlarge"
  72385. // InstanceTypeM5d4xlarge is a InstanceType enum value
  72386. InstanceTypeM5d4xlarge = "m5d.4xlarge"
  72387. // InstanceTypeM5d12xlarge is a InstanceType enum value
  72388. InstanceTypeM5d12xlarge = "m5d.12xlarge"
  72389. // InstanceTypeM5d24xlarge is a InstanceType enum value
  72390. InstanceTypeM5d24xlarge = "m5d.24xlarge"
  72391. // InstanceTypeH12xlarge is a InstanceType enum value
  72392. InstanceTypeH12xlarge = "h1.2xlarge"
  72393. // InstanceTypeH14xlarge is a InstanceType enum value
  72394. InstanceTypeH14xlarge = "h1.4xlarge"
  72395. // InstanceTypeH18xlarge is a InstanceType enum value
  72396. InstanceTypeH18xlarge = "h1.8xlarge"
  72397. // InstanceTypeH116xlarge is a InstanceType enum value
  72398. InstanceTypeH116xlarge = "h1.16xlarge"
  72399. // InstanceTypeZ1dLarge is a InstanceType enum value
  72400. InstanceTypeZ1dLarge = "z1d.large"
  72401. // InstanceTypeZ1dXlarge is a InstanceType enum value
  72402. InstanceTypeZ1dXlarge = "z1d.xlarge"
  72403. // InstanceTypeZ1d2xlarge is a InstanceType enum value
  72404. InstanceTypeZ1d2xlarge = "z1d.2xlarge"
  72405. // InstanceTypeZ1d3xlarge is a InstanceType enum value
  72406. InstanceTypeZ1d3xlarge = "z1d.3xlarge"
  72407. // InstanceTypeZ1d6xlarge is a InstanceType enum value
  72408. InstanceTypeZ1d6xlarge = "z1d.6xlarge"
  72409. // InstanceTypeZ1d12xlarge is a InstanceType enum value
  72410. InstanceTypeZ1d12xlarge = "z1d.12xlarge"
  72411. // InstanceTypeU6tb1Metal is a InstanceType enum value
  72412. InstanceTypeU6tb1Metal = "u-6tb1.metal"
  72413. // InstanceTypeU9tb1Metal is a InstanceType enum value
  72414. InstanceTypeU9tb1Metal = "u-9tb1.metal"
  72415. // InstanceTypeU12tb1Metal is a InstanceType enum value
  72416. InstanceTypeU12tb1Metal = "u-12tb1.metal"
  72417. // InstanceTypeA1Medium is a InstanceType enum value
  72418. InstanceTypeA1Medium = "a1.medium"
  72419. // InstanceTypeA1Large is a InstanceType enum value
  72420. InstanceTypeA1Large = "a1.large"
  72421. // InstanceTypeA1Xlarge is a InstanceType enum value
  72422. InstanceTypeA1Xlarge = "a1.xlarge"
  72423. // InstanceTypeA12xlarge is a InstanceType enum value
  72424. InstanceTypeA12xlarge = "a1.2xlarge"
  72425. // InstanceTypeA14xlarge is a InstanceType enum value
  72426. InstanceTypeA14xlarge = "a1.4xlarge"
  72427. )
  72428. const (
  72429. // InterfacePermissionTypeInstanceAttach is a InterfacePermissionType enum value
  72430. InterfacePermissionTypeInstanceAttach = "INSTANCE-ATTACH"
  72431. // InterfacePermissionTypeEipAssociate is a InterfacePermissionType enum value
  72432. InterfacePermissionTypeEipAssociate = "EIP-ASSOCIATE"
  72433. )
  72434. const (
  72435. // Ipv6SupportValueEnable is a Ipv6SupportValue enum value
  72436. Ipv6SupportValueEnable = "enable"
  72437. // Ipv6SupportValueDisable is a Ipv6SupportValue enum value
  72438. Ipv6SupportValueDisable = "disable"
  72439. )
  72440. const (
  72441. // LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist is a LaunchTemplateErrorCode enum value
  72442. LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist = "launchTemplateIdDoesNotExist"
  72443. // LaunchTemplateErrorCodeLaunchTemplateIdMalformed is a LaunchTemplateErrorCode enum value
  72444. LaunchTemplateErrorCodeLaunchTemplateIdMalformed = "launchTemplateIdMalformed"
  72445. // LaunchTemplateErrorCodeLaunchTemplateNameDoesNotExist is a LaunchTemplateErrorCode enum value
  72446. LaunchTemplateErrorCodeLaunchTemplateNameDoesNotExist = "launchTemplateNameDoesNotExist"
  72447. // LaunchTemplateErrorCodeLaunchTemplateNameMalformed is a LaunchTemplateErrorCode enum value
  72448. LaunchTemplateErrorCodeLaunchTemplateNameMalformed = "launchTemplateNameMalformed"
  72449. // LaunchTemplateErrorCodeLaunchTemplateVersionDoesNotExist is a LaunchTemplateErrorCode enum value
  72450. LaunchTemplateErrorCodeLaunchTemplateVersionDoesNotExist = "launchTemplateVersionDoesNotExist"
  72451. // LaunchTemplateErrorCodeUnexpectedError is a LaunchTemplateErrorCode enum value
  72452. LaunchTemplateErrorCodeUnexpectedError = "unexpectedError"
  72453. )
  72454. const (
  72455. // ListingStateAvailable is a ListingState enum value
  72456. ListingStateAvailable = "available"
  72457. // ListingStateSold is a ListingState enum value
  72458. ListingStateSold = "sold"
  72459. // ListingStateCancelled is a ListingState enum value
  72460. ListingStateCancelled = "cancelled"
  72461. // ListingStatePending is a ListingState enum value
  72462. ListingStatePending = "pending"
  72463. )
  72464. const (
  72465. // ListingStatusActive is a ListingStatus enum value
  72466. ListingStatusActive = "active"
  72467. // ListingStatusPending is a ListingStatus enum value
  72468. ListingStatusPending = "pending"
  72469. // ListingStatusCancelled is a ListingStatus enum value
  72470. ListingStatusCancelled = "cancelled"
  72471. // ListingStatusClosed is a ListingStatus enum value
  72472. ListingStatusClosed = "closed"
  72473. )
  72474. const (
  72475. // LogDestinationTypeCloudWatchLogs is a LogDestinationType enum value
  72476. LogDestinationTypeCloudWatchLogs = "cloud-watch-logs"
  72477. // LogDestinationTypeS3 is a LogDestinationType enum value
  72478. LogDestinationTypeS3 = "s3"
  72479. )
  72480. const (
  72481. // MarketTypeSpot is a MarketType enum value
  72482. MarketTypeSpot = "spot"
  72483. )
  72484. const (
  72485. // MonitoringStateDisabled is a MonitoringState enum value
  72486. MonitoringStateDisabled = "disabled"
  72487. // MonitoringStateDisabling is a MonitoringState enum value
  72488. MonitoringStateDisabling = "disabling"
  72489. // MonitoringStateEnabled is a MonitoringState enum value
  72490. MonitoringStateEnabled = "enabled"
  72491. // MonitoringStatePending is a MonitoringState enum value
  72492. MonitoringStatePending = "pending"
  72493. )
  72494. const (
  72495. // MoveStatusMovingToVpc is a MoveStatus enum value
  72496. MoveStatusMovingToVpc = "movingToVpc"
  72497. // MoveStatusRestoringToClassic is a MoveStatus enum value
  72498. MoveStatusRestoringToClassic = "restoringToClassic"
  72499. )
  72500. const (
  72501. // NatGatewayStatePending is a NatGatewayState enum value
  72502. NatGatewayStatePending = "pending"
  72503. // NatGatewayStateFailed is a NatGatewayState enum value
  72504. NatGatewayStateFailed = "failed"
  72505. // NatGatewayStateAvailable is a NatGatewayState enum value
  72506. NatGatewayStateAvailable = "available"
  72507. // NatGatewayStateDeleting is a NatGatewayState enum value
  72508. NatGatewayStateDeleting = "deleting"
  72509. // NatGatewayStateDeleted is a NatGatewayState enum value
  72510. NatGatewayStateDeleted = "deleted"
  72511. )
  72512. const (
  72513. // NetworkInterfaceAttributeDescription is a NetworkInterfaceAttribute enum value
  72514. NetworkInterfaceAttributeDescription = "description"
  72515. // NetworkInterfaceAttributeGroupSet is a NetworkInterfaceAttribute enum value
  72516. NetworkInterfaceAttributeGroupSet = "groupSet"
  72517. // NetworkInterfaceAttributeSourceDestCheck is a NetworkInterfaceAttribute enum value
  72518. NetworkInterfaceAttributeSourceDestCheck = "sourceDestCheck"
  72519. // NetworkInterfaceAttributeAttachment is a NetworkInterfaceAttribute enum value
  72520. NetworkInterfaceAttributeAttachment = "attachment"
  72521. )
  72522. const (
  72523. // NetworkInterfacePermissionStateCodePending is a NetworkInterfacePermissionStateCode enum value
  72524. NetworkInterfacePermissionStateCodePending = "pending"
  72525. // NetworkInterfacePermissionStateCodeGranted is a NetworkInterfacePermissionStateCode enum value
  72526. NetworkInterfacePermissionStateCodeGranted = "granted"
  72527. // NetworkInterfacePermissionStateCodeRevoking is a NetworkInterfacePermissionStateCode enum value
  72528. NetworkInterfacePermissionStateCodeRevoking = "revoking"
  72529. // NetworkInterfacePermissionStateCodeRevoked is a NetworkInterfacePermissionStateCode enum value
  72530. NetworkInterfacePermissionStateCodeRevoked = "revoked"
  72531. )
  72532. const (
  72533. // NetworkInterfaceStatusAvailable is a NetworkInterfaceStatus enum value
  72534. NetworkInterfaceStatusAvailable = "available"
  72535. // NetworkInterfaceStatusAssociated is a NetworkInterfaceStatus enum value
  72536. NetworkInterfaceStatusAssociated = "associated"
  72537. // NetworkInterfaceStatusAttaching is a NetworkInterfaceStatus enum value
  72538. NetworkInterfaceStatusAttaching = "attaching"
  72539. // NetworkInterfaceStatusInUse is a NetworkInterfaceStatus enum value
  72540. NetworkInterfaceStatusInUse = "in-use"
  72541. // NetworkInterfaceStatusDetaching is a NetworkInterfaceStatus enum value
  72542. NetworkInterfaceStatusDetaching = "detaching"
  72543. )
  72544. const (
  72545. // NetworkInterfaceTypeInterface is a NetworkInterfaceType enum value
  72546. NetworkInterfaceTypeInterface = "interface"
  72547. // NetworkInterfaceTypeNatGateway is a NetworkInterfaceType enum value
  72548. NetworkInterfaceTypeNatGateway = "natGateway"
  72549. )
  72550. const (
  72551. // OfferingClassTypeStandard is a OfferingClassType enum value
  72552. OfferingClassTypeStandard = "standard"
  72553. // OfferingClassTypeConvertible is a OfferingClassType enum value
  72554. OfferingClassTypeConvertible = "convertible"
  72555. )
  72556. const (
  72557. // OfferingTypeValuesHeavyUtilization is a OfferingTypeValues enum value
  72558. OfferingTypeValuesHeavyUtilization = "Heavy Utilization"
  72559. // OfferingTypeValuesMediumUtilization is a OfferingTypeValues enum value
  72560. OfferingTypeValuesMediumUtilization = "Medium Utilization"
  72561. // OfferingTypeValuesLightUtilization is a OfferingTypeValues enum value
  72562. OfferingTypeValuesLightUtilization = "Light Utilization"
  72563. // OfferingTypeValuesNoUpfront is a OfferingTypeValues enum value
  72564. OfferingTypeValuesNoUpfront = "No Upfront"
  72565. // OfferingTypeValuesPartialUpfront is a OfferingTypeValues enum value
  72566. OfferingTypeValuesPartialUpfront = "Partial Upfront"
  72567. // OfferingTypeValuesAllUpfront is a OfferingTypeValues enum value
  72568. OfferingTypeValuesAllUpfront = "All Upfront"
  72569. )
  72570. const (
  72571. // OnDemandAllocationStrategyLowestPrice is a OnDemandAllocationStrategy enum value
  72572. OnDemandAllocationStrategyLowestPrice = "lowestPrice"
  72573. // OnDemandAllocationStrategyPrioritized is a OnDemandAllocationStrategy enum value
  72574. OnDemandAllocationStrategyPrioritized = "prioritized"
  72575. )
  72576. const (
  72577. // OperationTypeAdd is a OperationType enum value
  72578. OperationTypeAdd = "add"
  72579. // OperationTypeRemove is a OperationType enum value
  72580. OperationTypeRemove = "remove"
  72581. )
  72582. const (
  72583. // PaymentOptionAllUpfront is a PaymentOption enum value
  72584. PaymentOptionAllUpfront = "AllUpfront"
  72585. // PaymentOptionPartialUpfront is a PaymentOption enum value
  72586. PaymentOptionPartialUpfront = "PartialUpfront"
  72587. // PaymentOptionNoUpfront is a PaymentOption enum value
  72588. PaymentOptionNoUpfront = "NoUpfront"
  72589. )
  72590. const (
  72591. // PermissionGroupAll is a PermissionGroup enum value
  72592. PermissionGroupAll = "all"
  72593. )
  72594. const (
  72595. // PlacementGroupStatePending is a PlacementGroupState enum value
  72596. PlacementGroupStatePending = "pending"
  72597. // PlacementGroupStateAvailable is a PlacementGroupState enum value
  72598. PlacementGroupStateAvailable = "available"
  72599. // PlacementGroupStateDeleting is a PlacementGroupState enum value
  72600. PlacementGroupStateDeleting = "deleting"
  72601. // PlacementGroupStateDeleted is a PlacementGroupState enum value
  72602. PlacementGroupStateDeleted = "deleted"
  72603. )
  72604. const (
  72605. // PlacementStrategyCluster is a PlacementStrategy enum value
  72606. PlacementStrategyCluster = "cluster"
  72607. // PlacementStrategySpread is a PlacementStrategy enum value
  72608. PlacementStrategySpread = "spread"
  72609. // PlacementStrategyPartition is a PlacementStrategy enum value
  72610. PlacementStrategyPartition = "partition"
  72611. )
  72612. const (
  72613. // PlatformValuesWindows is a PlatformValues enum value
  72614. PlatformValuesWindows = "Windows"
  72615. )
  72616. const (
  72617. // PrincipalTypeAll is a PrincipalType enum value
  72618. PrincipalTypeAll = "All"
  72619. // PrincipalTypeService is a PrincipalType enum value
  72620. PrincipalTypeService = "Service"
  72621. // PrincipalTypeOrganizationUnit is a PrincipalType enum value
  72622. PrincipalTypeOrganizationUnit = "OrganizationUnit"
  72623. // PrincipalTypeAccount is a PrincipalType enum value
  72624. PrincipalTypeAccount = "Account"
  72625. // PrincipalTypeUser is a PrincipalType enum value
  72626. PrincipalTypeUser = "User"
  72627. // PrincipalTypeRole is a PrincipalType enum value
  72628. PrincipalTypeRole = "Role"
  72629. )
  72630. const (
  72631. // ProductCodeValuesDevpay is a ProductCodeValues enum value
  72632. ProductCodeValuesDevpay = "devpay"
  72633. // ProductCodeValuesMarketplace is a ProductCodeValues enum value
  72634. ProductCodeValuesMarketplace = "marketplace"
  72635. )
  72636. const (
  72637. // RIProductDescriptionLinuxUnix is a RIProductDescription enum value
  72638. RIProductDescriptionLinuxUnix = "Linux/UNIX"
  72639. // RIProductDescriptionLinuxUnixamazonVpc is a RIProductDescription enum value
  72640. RIProductDescriptionLinuxUnixamazonVpc = "Linux/UNIX (Amazon VPC)"
  72641. // RIProductDescriptionWindows is a RIProductDescription enum value
  72642. RIProductDescriptionWindows = "Windows"
  72643. // RIProductDescriptionWindowsAmazonVpc is a RIProductDescription enum value
  72644. RIProductDescriptionWindowsAmazonVpc = "Windows (Amazon VPC)"
  72645. )
  72646. const (
  72647. // RecurringChargeFrequencyHourly is a RecurringChargeFrequency enum value
  72648. RecurringChargeFrequencyHourly = "Hourly"
  72649. )
  72650. const (
  72651. // ReportInstanceReasonCodesInstanceStuckInState is a ReportInstanceReasonCodes enum value
  72652. ReportInstanceReasonCodesInstanceStuckInState = "instance-stuck-in-state"
  72653. // ReportInstanceReasonCodesUnresponsive is a ReportInstanceReasonCodes enum value
  72654. ReportInstanceReasonCodesUnresponsive = "unresponsive"
  72655. // ReportInstanceReasonCodesNotAcceptingCredentials is a ReportInstanceReasonCodes enum value
  72656. ReportInstanceReasonCodesNotAcceptingCredentials = "not-accepting-credentials"
  72657. // ReportInstanceReasonCodesPasswordNotAvailable is a ReportInstanceReasonCodes enum value
  72658. ReportInstanceReasonCodesPasswordNotAvailable = "password-not-available"
  72659. // ReportInstanceReasonCodesPerformanceNetwork is a ReportInstanceReasonCodes enum value
  72660. ReportInstanceReasonCodesPerformanceNetwork = "performance-network"
  72661. // ReportInstanceReasonCodesPerformanceInstanceStore is a ReportInstanceReasonCodes enum value
  72662. ReportInstanceReasonCodesPerformanceInstanceStore = "performance-instance-store"
  72663. // ReportInstanceReasonCodesPerformanceEbsVolume is a ReportInstanceReasonCodes enum value
  72664. ReportInstanceReasonCodesPerformanceEbsVolume = "performance-ebs-volume"
  72665. // ReportInstanceReasonCodesPerformanceOther is a ReportInstanceReasonCodes enum value
  72666. ReportInstanceReasonCodesPerformanceOther = "performance-other"
  72667. // ReportInstanceReasonCodesOther is a ReportInstanceReasonCodes enum value
  72668. ReportInstanceReasonCodesOther = "other"
  72669. )
  72670. const (
  72671. // ReportStatusTypeOk is a ReportStatusType enum value
  72672. ReportStatusTypeOk = "ok"
  72673. // ReportStatusTypeImpaired is a ReportStatusType enum value
  72674. ReportStatusTypeImpaired = "impaired"
  72675. )
  72676. const (
  72677. // ReservationStatePaymentPending is a ReservationState enum value
  72678. ReservationStatePaymentPending = "payment-pending"
  72679. // ReservationStatePaymentFailed is a ReservationState enum value
  72680. ReservationStatePaymentFailed = "payment-failed"
  72681. // ReservationStateActive is a ReservationState enum value
  72682. ReservationStateActive = "active"
  72683. // ReservationStateRetired is a ReservationState enum value
  72684. ReservationStateRetired = "retired"
  72685. )
  72686. const (
  72687. // ReservedInstanceStatePaymentPending is a ReservedInstanceState enum value
  72688. ReservedInstanceStatePaymentPending = "payment-pending"
  72689. // ReservedInstanceStateActive is a ReservedInstanceState enum value
  72690. ReservedInstanceStateActive = "active"
  72691. // ReservedInstanceStatePaymentFailed is a ReservedInstanceState enum value
  72692. ReservedInstanceStatePaymentFailed = "payment-failed"
  72693. // ReservedInstanceStateRetired is a ReservedInstanceState enum value
  72694. ReservedInstanceStateRetired = "retired"
  72695. )
  72696. const (
  72697. // ResetFpgaImageAttributeNameLoadPermission is a ResetFpgaImageAttributeName enum value
  72698. ResetFpgaImageAttributeNameLoadPermission = "loadPermission"
  72699. )
  72700. const (
  72701. // ResetImageAttributeNameLaunchPermission is a ResetImageAttributeName enum value
  72702. ResetImageAttributeNameLaunchPermission = "launchPermission"
  72703. )
  72704. const (
  72705. // ResourceTypeCustomerGateway is a ResourceType enum value
  72706. ResourceTypeCustomerGateway = "customer-gateway"
  72707. // ResourceTypeDedicatedHost is a ResourceType enum value
  72708. ResourceTypeDedicatedHost = "dedicated-host"
  72709. // ResourceTypeDhcpOptions is a ResourceType enum value
  72710. ResourceTypeDhcpOptions = "dhcp-options"
  72711. // ResourceTypeElasticIp is a ResourceType enum value
  72712. ResourceTypeElasticIp = "elastic-ip"
  72713. // ResourceTypeFleet is a ResourceType enum value
  72714. ResourceTypeFleet = "fleet"
  72715. // ResourceTypeFpgaImage is a ResourceType enum value
  72716. ResourceTypeFpgaImage = "fpga-image"
  72717. // ResourceTypeImage is a ResourceType enum value
  72718. ResourceTypeImage = "image"
  72719. // ResourceTypeInstance is a ResourceType enum value
  72720. ResourceTypeInstance = "instance"
  72721. // ResourceTypeInternetGateway is a ResourceType enum value
  72722. ResourceTypeInternetGateway = "internet-gateway"
  72723. // ResourceTypeLaunchTemplate is a ResourceType enum value
  72724. ResourceTypeLaunchTemplate = "launch-template"
  72725. // ResourceTypeNatgateway is a ResourceType enum value
  72726. ResourceTypeNatgateway = "natgateway"
  72727. // ResourceTypeNetworkAcl is a ResourceType enum value
  72728. ResourceTypeNetworkAcl = "network-acl"
  72729. // ResourceTypeNetworkInterface is a ResourceType enum value
  72730. ResourceTypeNetworkInterface = "network-interface"
  72731. // ResourceTypeReservedInstances is a ResourceType enum value
  72732. ResourceTypeReservedInstances = "reserved-instances"
  72733. // ResourceTypeRouteTable is a ResourceType enum value
  72734. ResourceTypeRouteTable = "route-table"
  72735. // ResourceTypeSecurityGroup is a ResourceType enum value
  72736. ResourceTypeSecurityGroup = "security-group"
  72737. // ResourceTypeSnapshot is a ResourceType enum value
  72738. ResourceTypeSnapshot = "snapshot"
  72739. // ResourceTypeSpotInstancesRequest is a ResourceType enum value
  72740. ResourceTypeSpotInstancesRequest = "spot-instances-request"
  72741. // ResourceTypeSubnet is a ResourceType enum value
  72742. ResourceTypeSubnet = "subnet"
  72743. // ResourceTypeTransitGateway is a ResourceType enum value
  72744. ResourceTypeTransitGateway = "transit-gateway"
  72745. // ResourceTypeTransitGatewayAttachment is a ResourceType enum value
  72746. ResourceTypeTransitGatewayAttachment = "transit-gateway-attachment"
  72747. // ResourceTypeTransitGatewayRouteTable is a ResourceType enum value
  72748. ResourceTypeTransitGatewayRouteTable = "transit-gateway-route-table"
  72749. // ResourceTypeVolume is a ResourceType enum value
  72750. ResourceTypeVolume = "volume"
  72751. // ResourceTypeVpc is a ResourceType enum value
  72752. ResourceTypeVpc = "vpc"
  72753. // ResourceTypeVpcPeeringConnection is a ResourceType enum value
  72754. ResourceTypeVpcPeeringConnection = "vpc-peering-connection"
  72755. // ResourceTypeVpnConnection is a ResourceType enum value
  72756. ResourceTypeVpnConnection = "vpn-connection"
  72757. // ResourceTypeVpnGateway is a ResourceType enum value
  72758. ResourceTypeVpnGateway = "vpn-gateway"
  72759. )
  72760. const (
  72761. // RouteOriginCreateRouteTable is a RouteOrigin enum value
  72762. RouteOriginCreateRouteTable = "CreateRouteTable"
  72763. // RouteOriginCreateRoute is a RouteOrigin enum value
  72764. RouteOriginCreateRoute = "CreateRoute"
  72765. // RouteOriginEnableVgwRoutePropagation is a RouteOrigin enum value
  72766. RouteOriginEnableVgwRoutePropagation = "EnableVgwRoutePropagation"
  72767. )
  72768. const (
  72769. // RouteStateActive is a RouteState enum value
  72770. RouteStateActive = "active"
  72771. // RouteStateBlackhole is a RouteState enum value
  72772. RouteStateBlackhole = "blackhole"
  72773. )
  72774. const (
  72775. // RuleActionAllow is a RuleAction enum value
  72776. RuleActionAllow = "allow"
  72777. // RuleActionDeny is a RuleAction enum value
  72778. RuleActionDeny = "deny"
  72779. )
  72780. const (
  72781. // ServiceStatePending is a ServiceState enum value
  72782. ServiceStatePending = "Pending"
  72783. // ServiceStateAvailable is a ServiceState enum value
  72784. ServiceStateAvailable = "Available"
  72785. // ServiceStateDeleting is a ServiceState enum value
  72786. ServiceStateDeleting = "Deleting"
  72787. // ServiceStateDeleted is a ServiceState enum value
  72788. ServiceStateDeleted = "Deleted"
  72789. // ServiceStateFailed is a ServiceState enum value
  72790. ServiceStateFailed = "Failed"
  72791. )
  72792. const (
  72793. // ServiceTypeInterface is a ServiceType enum value
  72794. ServiceTypeInterface = "Interface"
  72795. // ServiceTypeGateway is a ServiceType enum value
  72796. ServiceTypeGateway = "Gateway"
  72797. )
  72798. const (
  72799. // ShutdownBehaviorStop is a ShutdownBehavior enum value
  72800. ShutdownBehaviorStop = "stop"
  72801. // ShutdownBehaviorTerminate is a ShutdownBehavior enum value
  72802. ShutdownBehaviorTerminate = "terminate"
  72803. )
  72804. const (
  72805. // SnapshotAttributeNameProductCodes is a SnapshotAttributeName enum value
  72806. SnapshotAttributeNameProductCodes = "productCodes"
  72807. // SnapshotAttributeNameCreateVolumePermission is a SnapshotAttributeName enum value
  72808. SnapshotAttributeNameCreateVolumePermission = "createVolumePermission"
  72809. )
  72810. const (
  72811. // SnapshotStatePending is a SnapshotState enum value
  72812. SnapshotStatePending = "pending"
  72813. // SnapshotStateCompleted is a SnapshotState enum value
  72814. SnapshotStateCompleted = "completed"
  72815. // SnapshotStateError is a SnapshotState enum value
  72816. SnapshotStateError = "error"
  72817. )
  72818. const (
  72819. // SpotAllocationStrategyLowestPrice is a SpotAllocationStrategy enum value
  72820. SpotAllocationStrategyLowestPrice = "lowest-price"
  72821. // SpotAllocationStrategyDiversified is a SpotAllocationStrategy enum value
  72822. SpotAllocationStrategyDiversified = "diversified"
  72823. )
  72824. const (
  72825. // SpotInstanceInterruptionBehaviorHibernate is a SpotInstanceInterruptionBehavior enum value
  72826. SpotInstanceInterruptionBehaviorHibernate = "hibernate"
  72827. // SpotInstanceInterruptionBehaviorStop is a SpotInstanceInterruptionBehavior enum value
  72828. SpotInstanceInterruptionBehaviorStop = "stop"
  72829. // SpotInstanceInterruptionBehaviorTerminate is a SpotInstanceInterruptionBehavior enum value
  72830. SpotInstanceInterruptionBehaviorTerminate = "terminate"
  72831. )
  72832. const (
  72833. // SpotInstanceStateOpen is a SpotInstanceState enum value
  72834. SpotInstanceStateOpen = "open"
  72835. // SpotInstanceStateActive is a SpotInstanceState enum value
  72836. SpotInstanceStateActive = "active"
  72837. // SpotInstanceStateClosed is a SpotInstanceState enum value
  72838. SpotInstanceStateClosed = "closed"
  72839. // SpotInstanceStateCancelled is a SpotInstanceState enum value
  72840. SpotInstanceStateCancelled = "cancelled"
  72841. // SpotInstanceStateFailed is a SpotInstanceState enum value
  72842. SpotInstanceStateFailed = "failed"
  72843. )
  72844. const (
  72845. // SpotInstanceTypeOneTime is a SpotInstanceType enum value
  72846. SpotInstanceTypeOneTime = "one-time"
  72847. // SpotInstanceTypePersistent is a SpotInstanceType enum value
  72848. SpotInstanceTypePersistent = "persistent"
  72849. )
  72850. const (
  72851. // StatePendingAcceptance is a State enum value
  72852. StatePendingAcceptance = "PendingAcceptance"
  72853. // StatePending is a State enum value
  72854. StatePending = "Pending"
  72855. // StateAvailable is a State enum value
  72856. StateAvailable = "Available"
  72857. // StateDeleting is a State enum value
  72858. StateDeleting = "Deleting"
  72859. // StateDeleted is a State enum value
  72860. StateDeleted = "Deleted"
  72861. // StateRejected is a State enum value
  72862. StateRejected = "Rejected"
  72863. // StateFailed is a State enum value
  72864. StateFailed = "Failed"
  72865. // StateExpired is a State enum value
  72866. StateExpired = "Expired"
  72867. )
  72868. const (
  72869. // StatusMoveInProgress is a Status enum value
  72870. StatusMoveInProgress = "MoveInProgress"
  72871. // StatusInVpc is a Status enum value
  72872. StatusInVpc = "InVpc"
  72873. // StatusInClassic is a Status enum value
  72874. StatusInClassic = "InClassic"
  72875. )
  72876. const (
  72877. // StatusNameReachability is a StatusName enum value
  72878. StatusNameReachability = "reachability"
  72879. )
  72880. const (
  72881. // StatusTypePassed is a StatusType enum value
  72882. StatusTypePassed = "passed"
  72883. // StatusTypeFailed is a StatusType enum value
  72884. StatusTypeFailed = "failed"
  72885. // StatusTypeInsufficientData is a StatusType enum value
  72886. StatusTypeInsufficientData = "insufficient-data"
  72887. // StatusTypeInitializing is a StatusType enum value
  72888. StatusTypeInitializing = "initializing"
  72889. )
  72890. const (
  72891. // SubnetCidrBlockStateCodeAssociating is a SubnetCidrBlockStateCode enum value
  72892. SubnetCidrBlockStateCodeAssociating = "associating"
  72893. // SubnetCidrBlockStateCodeAssociated is a SubnetCidrBlockStateCode enum value
  72894. SubnetCidrBlockStateCodeAssociated = "associated"
  72895. // SubnetCidrBlockStateCodeDisassociating is a SubnetCidrBlockStateCode enum value
  72896. SubnetCidrBlockStateCodeDisassociating = "disassociating"
  72897. // SubnetCidrBlockStateCodeDisassociated is a SubnetCidrBlockStateCode enum value
  72898. SubnetCidrBlockStateCodeDisassociated = "disassociated"
  72899. // SubnetCidrBlockStateCodeFailing is a SubnetCidrBlockStateCode enum value
  72900. SubnetCidrBlockStateCodeFailing = "failing"
  72901. // SubnetCidrBlockStateCodeFailed is a SubnetCidrBlockStateCode enum value
  72902. SubnetCidrBlockStateCodeFailed = "failed"
  72903. )
  72904. const (
  72905. // SubnetStatePending is a SubnetState enum value
  72906. SubnetStatePending = "pending"
  72907. // SubnetStateAvailable is a SubnetState enum value
  72908. SubnetStateAvailable = "available"
  72909. )
  72910. const (
  72911. // SummaryStatusOk is a SummaryStatus enum value
  72912. SummaryStatusOk = "ok"
  72913. // SummaryStatusImpaired is a SummaryStatus enum value
  72914. SummaryStatusImpaired = "impaired"
  72915. // SummaryStatusInsufficientData is a SummaryStatus enum value
  72916. SummaryStatusInsufficientData = "insufficient-data"
  72917. // SummaryStatusNotApplicable is a SummaryStatus enum value
  72918. SummaryStatusNotApplicable = "not-applicable"
  72919. // SummaryStatusInitializing is a SummaryStatus enum value
  72920. SummaryStatusInitializing = "initializing"
  72921. )
  72922. const (
  72923. // TelemetryStatusUp is a TelemetryStatus enum value
  72924. TelemetryStatusUp = "UP"
  72925. // TelemetryStatusDown is a TelemetryStatus enum value
  72926. TelemetryStatusDown = "DOWN"
  72927. )
  72928. const (
  72929. // TenancyDefault is a Tenancy enum value
  72930. TenancyDefault = "default"
  72931. // TenancyDedicated is a Tenancy enum value
  72932. TenancyDedicated = "dedicated"
  72933. // TenancyHost is a Tenancy enum value
  72934. TenancyHost = "host"
  72935. )
  72936. const (
  72937. // TrafficTypeAccept is a TrafficType enum value
  72938. TrafficTypeAccept = "ACCEPT"
  72939. // TrafficTypeReject is a TrafficType enum value
  72940. TrafficTypeReject = "REJECT"
  72941. // TrafficTypeAll is a TrafficType enum value
  72942. TrafficTypeAll = "ALL"
  72943. )
  72944. const (
  72945. // TransitGatewayAssociationStateAssociating is a TransitGatewayAssociationState enum value
  72946. TransitGatewayAssociationStateAssociating = "associating"
  72947. // TransitGatewayAssociationStateAssociated is a TransitGatewayAssociationState enum value
  72948. TransitGatewayAssociationStateAssociated = "associated"
  72949. // TransitGatewayAssociationStateDisassociating is a TransitGatewayAssociationState enum value
  72950. TransitGatewayAssociationStateDisassociating = "disassociating"
  72951. // TransitGatewayAssociationStateDisassociated is a TransitGatewayAssociationState enum value
  72952. TransitGatewayAssociationStateDisassociated = "disassociated"
  72953. )
  72954. const (
  72955. // TransitGatewayAttachmentResourceTypeVpc is a TransitGatewayAttachmentResourceType enum value
  72956. TransitGatewayAttachmentResourceTypeVpc = "vpc"
  72957. // TransitGatewayAttachmentResourceTypeVpn is a TransitGatewayAttachmentResourceType enum value
  72958. TransitGatewayAttachmentResourceTypeVpn = "vpn"
  72959. )
  72960. const (
  72961. // TransitGatewayAttachmentStatePendingAcceptance is a TransitGatewayAttachmentState enum value
  72962. TransitGatewayAttachmentStatePendingAcceptance = "pendingAcceptance"
  72963. // TransitGatewayAttachmentStateRollingBack is a TransitGatewayAttachmentState enum value
  72964. TransitGatewayAttachmentStateRollingBack = "rollingBack"
  72965. // TransitGatewayAttachmentStatePending is a TransitGatewayAttachmentState enum value
  72966. TransitGatewayAttachmentStatePending = "pending"
  72967. // TransitGatewayAttachmentStateAvailable is a TransitGatewayAttachmentState enum value
  72968. TransitGatewayAttachmentStateAvailable = "available"
  72969. // TransitGatewayAttachmentStateModifying is a TransitGatewayAttachmentState enum value
  72970. TransitGatewayAttachmentStateModifying = "modifying"
  72971. // TransitGatewayAttachmentStateDeleting is a TransitGatewayAttachmentState enum value
  72972. TransitGatewayAttachmentStateDeleting = "deleting"
  72973. // TransitGatewayAttachmentStateDeleted is a TransitGatewayAttachmentState enum value
  72974. TransitGatewayAttachmentStateDeleted = "deleted"
  72975. // TransitGatewayAttachmentStateFailed is a TransitGatewayAttachmentState enum value
  72976. TransitGatewayAttachmentStateFailed = "failed"
  72977. // TransitGatewayAttachmentStateRejected is a TransitGatewayAttachmentState enum value
  72978. TransitGatewayAttachmentStateRejected = "rejected"
  72979. // TransitGatewayAttachmentStateRejecting is a TransitGatewayAttachmentState enum value
  72980. TransitGatewayAttachmentStateRejecting = "rejecting"
  72981. // TransitGatewayAttachmentStateFailing is a TransitGatewayAttachmentState enum value
  72982. TransitGatewayAttachmentStateFailing = "failing"
  72983. )
  72984. const (
  72985. // TransitGatewayPropagationStateEnabling is a TransitGatewayPropagationState enum value
  72986. TransitGatewayPropagationStateEnabling = "enabling"
  72987. // TransitGatewayPropagationStateEnabled is a TransitGatewayPropagationState enum value
  72988. TransitGatewayPropagationStateEnabled = "enabled"
  72989. // TransitGatewayPropagationStateDisabling is a TransitGatewayPropagationState enum value
  72990. TransitGatewayPropagationStateDisabling = "disabling"
  72991. // TransitGatewayPropagationStateDisabled is a TransitGatewayPropagationState enum value
  72992. TransitGatewayPropagationStateDisabled = "disabled"
  72993. )
  72994. const (
  72995. // TransitGatewayRouteStatePending is a TransitGatewayRouteState enum value
  72996. TransitGatewayRouteStatePending = "pending"
  72997. // TransitGatewayRouteStateActive is a TransitGatewayRouteState enum value
  72998. TransitGatewayRouteStateActive = "active"
  72999. // TransitGatewayRouteStateBlackhole is a TransitGatewayRouteState enum value
  73000. TransitGatewayRouteStateBlackhole = "blackhole"
  73001. // TransitGatewayRouteStateDeleting is a TransitGatewayRouteState enum value
  73002. TransitGatewayRouteStateDeleting = "deleting"
  73003. // TransitGatewayRouteStateDeleted is a TransitGatewayRouteState enum value
  73004. TransitGatewayRouteStateDeleted = "deleted"
  73005. )
  73006. const (
  73007. // TransitGatewayRouteTableStatePending is a TransitGatewayRouteTableState enum value
  73008. TransitGatewayRouteTableStatePending = "pending"
  73009. // TransitGatewayRouteTableStateAvailable is a TransitGatewayRouteTableState enum value
  73010. TransitGatewayRouteTableStateAvailable = "available"
  73011. // TransitGatewayRouteTableStateDeleting is a TransitGatewayRouteTableState enum value
  73012. TransitGatewayRouteTableStateDeleting = "deleting"
  73013. // TransitGatewayRouteTableStateDeleted is a TransitGatewayRouteTableState enum value
  73014. TransitGatewayRouteTableStateDeleted = "deleted"
  73015. )
  73016. const (
  73017. // TransitGatewayRouteTypeStatic is a TransitGatewayRouteType enum value
  73018. TransitGatewayRouteTypeStatic = "static"
  73019. // TransitGatewayRouteTypePropagated is a TransitGatewayRouteType enum value
  73020. TransitGatewayRouteTypePropagated = "propagated"
  73021. )
  73022. const (
  73023. // TransitGatewayStatePending is a TransitGatewayState enum value
  73024. TransitGatewayStatePending = "pending"
  73025. // TransitGatewayStateAvailable is a TransitGatewayState enum value
  73026. TransitGatewayStateAvailable = "available"
  73027. // TransitGatewayStateModifying is a TransitGatewayState enum value
  73028. TransitGatewayStateModifying = "modifying"
  73029. // TransitGatewayStateDeleting is a TransitGatewayState enum value
  73030. TransitGatewayStateDeleting = "deleting"
  73031. // TransitGatewayStateDeleted is a TransitGatewayState enum value
  73032. TransitGatewayStateDeleted = "deleted"
  73033. )
  73034. const (
  73035. // TransportProtocolTcp is a TransportProtocol enum value
  73036. TransportProtocolTcp = "tcp"
  73037. // TransportProtocolUdp is a TransportProtocol enum value
  73038. TransportProtocolUdp = "udp"
  73039. )
  73040. const (
  73041. // UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdMalformed is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  73042. UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdMalformed = "InvalidInstanceID.Malformed"
  73043. // UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdNotFound is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  73044. UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdNotFound = "InvalidInstanceID.NotFound"
  73045. // UnsuccessfulInstanceCreditSpecificationErrorCodeIncorrectInstanceState is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  73046. UnsuccessfulInstanceCreditSpecificationErrorCodeIncorrectInstanceState = "IncorrectInstanceState"
  73047. // UnsuccessfulInstanceCreditSpecificationErrorCodeInstanceCreditSpecificationNotSupported is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  73048. UnsuccessfulInstanceCreditSpecificationErrorCodeInstanceCreditSpecificationNotSupported = "InstanceCreditSpecification.NotSupported"
  73049. )
  73050. const (
  73051. // VirtualizationTypeHvm is a VirtualizationType enum value
  73052. VirtualizationTypeHvm = "hvm"
  73053. // VirtualizationTypeParavirtual is a VirtualizationType enum value
  73054. VirtualizationTypeParavirtual = "paravirtual"
  73055. )
  73056. const (
  73057. // VolumeAttachmentStateAttaching is a VolumeAttachmentState enum value
  73058. VolumeAttachmentStateAttaching = "attaching"
  73059. // VolumeAttachmentStateAttached is a VolumeAttachmentState enum value
  73060. VolumeAttachmentStateAttached = "attached"
  73061. // VolumeAttachmentStateDetaching is a VolumeAttachmentState enum value
  73062. VolumeAttachmentStateDetaching = "detaching"
  73063. // VolumeAttachmentStateDetached is a VolumeAttachmentState enum value
  73064. VolumeAttachmentStateDetached = "detached"
  73065. // VolumeAttachmentStateBusy is a VolumeAttachmentState enum value
  73066. VolumeAttachmentStateBusy = "busy"
  73067. )
  73068. const (
  73069. // VolumeAttributeNameAutoEnableIo is a VolumeAttributeName enum value
  73070. VolumeAttributeNameAutoEnableIo = "autoEnableIO"
  73071. // VolumeAttributeNameProductCodes is a VolumeAttributeName enum value
  73072. VolumeAttributeNameProductCodes = "productCodes"
  73073. )
  73074. const (
  73075. // VolumeModificationStateModifying is a VolumeModificationState enum value
  73076. VolumeModificationStateModifying = "modifying"
  73077. // VolumeModificationStateOptimizing is a VolumeModificationState enum value
  73078. VolumeModificationStateOptimizing = "optimizing"
  73079. // VolumeModificationStateCompleted is a VolumeModificationState enum value
  73080. VolumeModificationStateCompleted = "completed"
  73081. // VolumeModificationStateFailed is a VolumeModificationState enum value
  73082. VolumeModificationStateFailed = "failed"
  73083. )
  73084. const (
  73085. // VolumeStateCreating is a VolumeState enum value
  73086. VolumeStateCreating = "creating"
  73087. // VolumeStateAvailable is a VolumeState enum value
  73088. VolumeStateAvailable = "available"
  73089. // VolumeStateInUse is a VolumeState enum value
  73090. VolumeStateInUse = "in-use"
  73091. // VolumeStateDeleting is a VolumeState enum value
  73092. VolumeStateDeleting = "deleting"
  73093. // VolumeStateDeleted is a VolumeState enum value
  73094. VolumeStateDeleted = "deleted"
  73095. // VolumeStateError is a VolumeState enum value
  73096. VolumeStateError = "error"
  73097. )
  73098. const (
  73099. // VolumeStatusInfoStatusOk is a VolumeStatusInfoStatus enum value
  73100. VolumeStatusInfoStatusOk = "ok"
  73101. // VolumeStatusInfoStatusImpaired is a VolumeStatusInfoStatus enum value
  73102. VolumeStatusInfoStatusImpaired = "impaired"
  73103. // VolumeStatusInfoStatusInsufficientData is a VolumeStatusInfoStatus enum value
  73104. VolumeStatusInfoStatusInsufficientData = "insufficient-data"
  73105. )
  73106. const (
  73107. // VolumeStatusNameIoEnabled is a VolumeStatusName enum value
  73108. VolumeStatusNameIoEnabled = "io-enabled"
  73109. // VolumeStatusNameIoPerformance is a VolumeStatusName enum value
  73110. VolumeStatusNameIoPerformance = "io-performance"
  73111. )
  73112. const (
  73113. // VolumeTypeStandard is a VolumeType enum value
  73114. VolumeTypeStandard = "standard"
  73115. // VolumeTypeIo1 is a VolumeType enum value
  73116. VolumeTypeIo1 = "io1"
  73117. // VolumeTypeGp2 is a VolumeType enum value
  73118. VolumeTypeGp2 = "gp2"
  73119. // VolumeTypeSc1 is a VolumeType enum value
  73120. VolumeTypeSc1 = "sc1"
  73121. // VolumeTypeSt1 is a VolumeType enum value
  73122. VolumeTypeSt1 = "st1"
  73123. )
  73124. const (
  73125. // VpcAttributeNameEnableDnsSupport is a VpcAttributeName enum value
  73126. VpcAttributeNameEnableDnsSupport = "enableDnsSupport"
  73127. // VpcAttributeNameEnableDnsHostnames is a VpcAttributeName enum value
  73128. VpcAttributeNameEnableDnsHostnames = "enableDnsHostnames"
  73129. )
  73130. const (
  73131. // VpcCidrBlockStateCodeAssociating is a VpcCidrBlockStateCode enum value
  73132. VpcCidrBlockStateCodeAssociating = "associating"
  73133. // VpcCidrBlockStateCodeAssociated is a VpcCidrBlockStateCode enum value
  73134. VpcCidrBlockStateCodeAssociated = "associated"
  73135. // VpcCidrBlockStateCodeDisassociating is a VpcCidrBlockStateCode enum value
  73136. VpcCidrBlockStateCodeDisassociating = "disassociating"
  73137. // VpcCidrBlockStateCodeDisassociated is a VpcCidrBlockStateCode enum value
  73138. VpcCidrBlockStateCodeDisassociated = "disassociated"
  73139. // VpcCidrBlockStateCodeFailing is a VpcCidrBlockStateCode enum value
  73140. VpcCidrBlockStateCodeFailing = "failing"
  73141. // VpcCidrBlockStateCodeFailed is a VpcCidrBlockStateCode enum value
  73142. VpcCidrBlockStateCodeFailed = "failed"
  73143. )
  73144. const (
  73145. // VpcEndpointTypeInterface is a VpcEndpointType enum value
  73146. VpcEndpointTypeInterface = "Interface"
  73147. // VpcEndpointTypeGateway is a VpcEndpointType enum value
  73148. VpcEndpointTypeGateway = "Gateway"
  73149. )
  73150. const (
  73151. // VpcPeeringConnectionStateReasonCodeInitiatingRequest is a VpcPeeringConnectionStateReasonCode enum value
  73152. VpcPeeringConnectionStateReasonCodeInitiatingRequest = "initiating-request"
  73153. // VpcPeeringConnectionStateReasonCodePendingAcceptance is a VpcPeeringConnectionStateReasonCode enum value
  73154. VpcPeeringConnectionStateReasonCodePendingAcceptance = "pending-acceptance"
  73155. // VpcPeeringConnectionStateReasonCodeActive is a VpcPeeringConnectionStateReasonCode enum value
  73156. VpcPeeringConnectionStateReasonCodeActive = "active"
  73157. // VpcPeeringConnectionStateReasonCodeDeleted is a VpcPeeringConnectionStateReasonCode enum value
  73158. VpcPeeringConnectionStateReasonCodeDeleted = "deleted"
  73159. // VpcPeeringConnectionStateReasonCodeRejected is a VpcPeeringConnectionStateReasonCode enum value
  73160. VpcPeeringConnectionStateReasonCodeRejected = "rejected"
  73161. // VpcPeeringConnectionStateReasonCodeFailed is a VpcPeeringConnectionStateReasonCode enum value
  73162. VpcPeeringConnectionStateReasonCodeFailed = "failed"
  73163. // VpcPeeringConnectionStateReasonCodeExpired is a VpcPeeringConnectionStateReasonCode enum value
  73164. VpcPeeringConnectionStateReasonCodeExpired = "expired"
  73165. // VpcPeeringConnectionStateReasonCodeProvisioning is a VpcPeeringConnectionStateReasonCode enum value
  73166. VpcPeeringConnectionStateReasonCodeProvisioning = "provisioning"
  73167. // VpcPeeringConnectionStateReasonCodeDeleting is a VpcPeeringConnectionStateReasonCode enum value
  73168. VpcPeeringConnectionStateReasonCodeDeleting = "deleting"
  73169. )
  73170. const (
  73171. // VpcStatePending is a VpcState enum value
  73172. VpcStatePending = "pending"
  73173. // VpcStateAvailable is a VpcState enum value
  73174. VpcStateAvailable = "available"
  73175. )
  73176. const (
  73177. // VpcTenancyDefault is a VpcTenancy enum value
  73178. VpcTenancyDefault = "default"
  73179. )
  73180. const (
  73181. // VpnEcmpSupportValueEnable is a VpnEcmpSupportValue enum value
  73182. VpnEcmpSupportValueEnable = "enable"
  73183. // VpnEcmpSupportValueDisable is a VpnEcmpSupportValue enum value
  73184. VpnEcmpSupportValueDisable = "disable"
  73185. )
  73186. const (
  73187. // VpnProtocolOpenvpn is a VpnProtocol enum value
  73188. VpnProtocolOpenvpn = "openvpn"
  73189. )
  73190. const (
  73191. // VpnStatePending is a VpnState enum value
  73192. VpnStatePending = "pending"
  73193. // VpnStateAvailable is a VpnState enum value
  73194. VpnStateAvailable = "available"
  73195. // VpnStateDeleting is a VpnState enum value
  73196. VpnStateDeleting = "deleting"
  73197. // VpnStateDeleted is a VpnState enum value
  73198. VpnStateDeleted = "deleted"
  73199. )
  73200. const (
  73201. // VpnStaticRouteSourceStatic is a VpnStaticRouteSource enum value
  73202. VpnStaticRouteSourceStatic = "Static"
  73203. )
  73204. const (
  73205. // ScopeAvailabilityZone is a scope enum value
  73206. ScopeAvailabilityZone = "Availability Zone"
  73207. // ScopeRegion is a scope enum value
  73208. ScopeRegion = "Region"
  73209. )