api.go 3.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622
  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. )